/* Blog Hero Section */
.blog-hero {
  padding: 200px 0 100px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.95));
  text-align: center;
}
.blog-hero:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
          radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 60%),
          radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.1) 0%, transparent 60%);
  z-index: -1;
}
.blog-hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.blog-hero h1 {
  font-size: 64px;
  margin-bottom: 30px;
  line-height: 1.1;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.blog-hero p {
  font-size: 24px;
  margin-bottom: 50px;
  color: var(--text-secondary);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.blog-search {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}
.blog-search input {
  width: 100%;
  padding: 18px 25px;
  background: rgba(30, 41, 59, 0.5);
  border: var(--border);
  border-radius: 50px;
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  transition: var(--transition);
  color: var(--text);
  padding-right: 70px;
}
.blog-search input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.blog-search button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(90deg, var(--accent), var(--neon));
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 20px;
  transition: var(--transition);
}
.blog-search button:hover {
  transform: translateY(-50%) scale(1.1);
}

/* Blog Content */
.blog-content {
  position: relative;
  padding: 80px 0;
}
.blog-container {
  display: flex;
  gap: 40px;
}
/* Main Content */
.blog-posts {
  flex: 3;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}
.blog-card {
  background: rgba(30, 41, 59, 0.5);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--border);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}
.blog-image {
  height: 220px;
  position: relative;
  overflow: hidden;
}
.blog-image:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
}
.blog-category {
  position: absolute;
  top: 25px;
  left: 25px;
  background: linear-gradient(90deg, var(--accent), var(--neon));
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  z-index: 2;
}
.blog-content-inner {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-meta {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 20px;
  gap: 20px;
  flex-wrap: wrap;
}
.blog-meta i {
  margin-right: 8px;
  color: var(--neon);
}
.blog-card h3 {
  margin-bottom: 20px;
  font-size: 24px;
  min-height: auto;
}
.blog-excerpt {
  margin-bottom: 25px;
  color: var(--text-secondary);
  flex: 1;
}
.blog-footer {
  padding: 0 30px 30px;
}
/* Sidebar */
.blog-sidebar {
  flex: 1;
}
.sidebar-widget {
  background: rgba(30, 41, 59, 0.5);
  border-radius: var(--radius-lg);
  border: var(--border);
  backdrop-filter: blur(10px);
  padding: 30px;
  margin-bottom: 40px;
}
.sidebar-widget h3 {
  font-size: 24px;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}
.sidebar-widget h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--neon));
  border-radius: 2px;
}
.categories-list {
  list-style: none;
}
.categories-list li {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}
.categories-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.categories-list a {
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.categories-list a:hover {
  color: var(--neon);
}
.categories-list span {
  background: rgba(59, 130, 246, 0.1);
  color: var(--neon);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
}
.popular-posts {
  list-style: none;
}
.popular-post {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}
.popular-post:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.popular-post-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.popular-post-image:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
}
.popular-post-content {
  flex: 1;
}
.popular-post-content h4 {
  font-size: 18px;
  margin-bottom: 8px;
}
.popular-post-content .post-date {
  font-size: 14px;
  color: var(--text-secondary);
}
.tags-widget {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag {
  background: rgba(59, 130, 246, 0.1);
  color: var(--neon);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  transition: var(--transition);
  border: 1px solid rgba(59, 130, 246, 0.3);
  text-decoration: none;
}
.tag:hover {
  background: linear-gradient(90deg, var(--accent), var(--neon));
  color: var(--primary);
}
/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}
.page-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.5);
  border: var(--border);
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 600;
}
.page-item:hover, .page-item.active {
  background: linear-gradient(90deg, var(--accent), var(--neon));
  color: var(--primary);
}

/* Адаптивность */
@media (max-width: 1200px) {
  .blog-hero h1 {
    font-size: 56px;
  }
  .section-title {
    font-size: 42px;
  }
}
@media (max-width: 992px) {
  .blog-hero {
    padding: 180px 0 80px;
  }
  .blog-hero h1 {
    font-size: 48px;
  }
  .blog-hero p {
    font-size: 20px;
  }
  .section-title {
    font-size: 36px;
  }
  .blog-container {
    flex-direction: column;
  }
}
@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  .blog-hero {
    padding: 150px 0 60px;
  }
  .blog-hero h1 {
    font-size: 40px;
  }
  .blog-hero p {
    font-size: 18px;
  }
  .section-title {
    font-size: 32px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 576px) {
  .container {
    padding: 0 20px;
  }
  .blog-hero h1 {
    font-size: 36px;
  }
  .section-title {
    font-size: 28px;
  }
  .blog-content-inner,
  .blog-footer,
  .sidebar-widget {
    padding: 25px;
  }
  .pagination {
    flex-wrap: wrap;
  }
}
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}
 .blog-image img, .popular-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Масштабирует изображение, сохраняя пропорции */
}