/* Blog Page Specific Styles */

/* Blog Hero */
.blog-hero {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  color: white;
  text-align: center;
}

.blog-hero-content {
  max-width: 64rem;
  margin: 0 auto;
}

.blog-hero-title {
  font-size: clamp(3rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.blog-hero-description {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: #d1d5db;
  max-width: 48rem;
  margin: 0 auto;
  line-height: 1.6;
}

/* Featured Post */
.featured-post {
  background: #f9fafb;
}

.featured-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #1f2937;
}

.featured-article {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 1024px) {
  .featured-article {
    grid-template-columns: 1fr 1fr;
  }
}

.featured-image {
  position: relative;
  overflow: hidden;
}

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

.featured-article:hover .featured-image img {
  transform: scale(1.05);
}

.featured-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .featured-content {
    padding: 3rem;
  }
}

.featured-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.category-tag {
  background: #fef3c7;
  color: #92400e;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.read-time {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #6b7280;
  font-size: 0.75rem;
}

.read-time .icon {
  width: 0.875rem;
  height: 0.875rem;
}

.featured-post-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.featured-excerpt {
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.author-info {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.author-meta,
.date-meta {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #6b7280;
  font-size: 0.75rem;
}

.author-meta .icon,
.date-meta .icon {
  width: 0.875rem;
  height: 0.875rem;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #d4af37;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.read-more-btn:hover {
  color: #b8941f;
}

.read-more-btn .icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s ease;
}

.read-more-btn:hover .icon {
  transform: translateX(4px);
}

/* Categories Filter */
.categories-filter {
  padding: 2rem 0;
  background: white;
  border-bottom: 1px solid #e5e7eb;
}

.categories-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.category-btn {
  padding: 0.5rem 1.5rem;
  border: 1px solid #d1d5db;
  background: white;
  color: #4b5563;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
  background: #d4af37;
  color: white;
  border-color: #d4af37;
}

/* Blog Posts Grid */
.blog-posts {
  background: #f9fafb;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

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

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

.blog-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-meta .category-tag {
  font-size: 0.625rem;
}

.blog-meta .read-time {
  font-size: 0.625rem;
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-excerpt {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.author-date {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.author,
.date {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #6b7280;
  font-size: 0.625rem;
}

.author .icon,
.date .icon {
  width: 0.75rem;
  height: 0.75rem;
}

.read-more {
  color: #d4af37;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.75rem;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #b8941f;
}

/* Load More Section */
.load-more-section {
  text-align: center;
  margin-top: 3rem;
}

/* Newsletter Section */
.newsletter {
  background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 100%);
  color: white;
  text-align: center;
}

.newsletter-content {
  max-width: 32rem;
  margin: 0 auto;
}

.newsletter-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.newsletter-description {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  opacity: 0.9;
}

.newsletter-form {
  max-width: 24rem;
  margin: 0 auto;
}

.newsletter-input-group {
  display: flex;
  gap: 0.5rem;
  flex-direction: column;
}

@media (min-width: 640px) {
  .newsletter-input-group {
    flex-direction: row;
  }
}

.newsletter-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  color: #1f2937;
}

.newsletter-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.newsletter-form .btn-secondary {
  background: white;
  color: #d4af37;
  border: 2px solid white;
  white-space: nowrap;
}

.newsletter-form .btn-secondary:hover {
  background: transparent;
  color: white;
  border-color: white;
}

/* Blog Filter Animation */
.blog-card.hidden {
  display: none;
}

.blog-card.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

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

  .featured-content {
    padding: 1.5rem;
  }

  .featured-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .featured-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .author-info {
    flex-direction: column;
    gap: 0.5rem;
  }

  .categories-buttons {
    gap: 0.5rem;
  }

  .category-btn {
    padding: 0.375rem 1rem;
    font-size: 0.75rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .blog-content {
    padding: 1rem;
  }

  .blog-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .newsletter-input-group {
    gap: 1rem;
  }
}

/* Print Styles */
@media print {
  .blog-hero,
  .categories-filter,
  .newsletter,
  .load-more-section {
    display: none;
  }

  .blog-card {
    break-inside: avoid;
    margin-bottom: 1rem;
  }

  .blog-image {
    height: 200px;
  }

  .featured-article {
    grid-template-columns: 1fr;
  }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
  .blog-card {
    background: #374151;
    color: #f9fafb;
  }

  .blog-title {
    color: #f9fafb;
  }

  .blog-excerpt {
    color: #d1d5db;
  }

  .author,
  .date {
    color: #9ca3af;
  }
}
