/* Search and Categories Section */
.blog-filter {
  padding: 40px 0;
  background-color: var(--gray);
}

.filter-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.search-box {
  flex: 1;
  min-width: 300px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 15px 20px;
  padding-right: 50px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.search-box button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 20px;
  color: var(--primary);
  cursor: pointer;
}

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-tag {
  padding: 8px 16px;
  background-color: white;
  border-radius: 30px;
  font-size: 14px;
  color: var(--dark);
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.category-tag:hover,
.category-tag.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

/* Featured Post */
.featured-post {
  padding: 80px 0;
}

.featured-post h2 {
  font-size: 36px;
  margin-bottom: 40px;
  text-align: center;
  color: var(--dark);
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.featured-image {
  height: 100%;
  min-height: 400px;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-content {
  padding: 40px;
}

.featured-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 5px 15px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.featured-content h3 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--dark);
}

.post-meta {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  color: #666;
  font-size: 14px;
}

.author-image {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  overflow: hidden;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-meta span {
  margin-right: 20px;
}

.featured-content p {
  margin-bottom: 30px;
  color: #666;
}

/* Blog Posts Grid */
.blog-posts {
  padding: 80px 0;
  background-color: var(--gray);
}

.blog-posts h2 {
  font-size: 36px;
  margin-bottom: 40px;
  text-align: center;
  color: var(--dark);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.post-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.post-card:hover {
  transform: translateY(-10px);
}

.post-image {
  height: 220px;
  position: relative;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-category {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 5px 15px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
}

.post-content {
  padding: 30px;
}

.post-content h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--dark);
}

.post-content .post-meta {
  margin-bottom: 15px;
}

.post-content p {
  color: #666;
  margin-bottom: 20px;
}

.read-more {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}

.read-more:hover {
  color: var(--secondary);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 5px;
  border-radius: 4px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s;
}

.pagination a:hover,
.pagination a.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

/* Newsletter Section */
.newsletter {
  padding: 80px 0;
  text-align: center;
}

.newsletter h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--dark);
}

.newsletter p {
  max-width: 600px;
  margin: 0 auto 30px;
  color: #666;
}

.newsletter-form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 15px 20px;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  font-size: 16px;
}

.newsletter-form button {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 0 30px;
  border: none;
  border-radius: 0 4px 4px 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s;
}

.newsletter-form button:hover {
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-image {
    height: 300px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    border-radius: 4px;
    margin-bottom: 10px;
  }

  .newsletter-form button {
    border-radius: 4px;
    padding: 15px;
  }
}
