/* Blog Page Styles */
.blog-hero {
  padding: 6rem 0;
  background: var(--primary-mix);
  text-align: center;
}

.blog-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.blog-hero h2 {
  font-size: 3rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.blog-hero p {
  font-size: 1.25rem;
  color: var(--text-light);
}

/* Blog Grid Section */
.blog-grid {
  padding: 4rem 0;
  background: white;
}

.blog-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--card-border);
  border-radius: 2rem;
  background: white;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.blog-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: 1.5rem;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-light);
}

.blog-content h3 {
  font-size: 1.25rem;
  color: var(--text-color);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.blog-content p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--card-border);
  border-radius: 0.5rem;
  background: white;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-btn:hover,
.pagination-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination-btn.next {
  padding: 0.5rem 1.5rem;
}

/* Newsletter Section */
.newsletter {
  padding: 4rem 0;
  background: var(--bg-light);
  text-align: center;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter h2 {
  font-size: 2rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.newsletter p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--card-border);
  border-radius: 0.5rem;
  font-size: 1rem;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-hero h2,
  .newsletter h2 {
    font-size: 2.5rem;
  }

  .articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

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

  .newsletter-form .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .blog-hero,
  .blog-grid,
  .newsletter {
    padding: 3rem 0;
  }

  .blog-hero h2,
  .newsletter h2 {
    font-size: 2rem;
  }

  .blog-filters {
    justify-content: center;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}
