/* ================================================================
   Culture For Good - Modern Blog Page Styles
   Enhanced UI with brand colors and professional design
   ================================================================ */

/* Blog Hero Section */
.blog-hero {
  background: linear-gradient(135deg, #505ca6 0%, #3f4a8a 100%);
  padding: 4rem 0 3rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(64, 169, 68, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.blog-hero-content {
  text-align: center;
  color: #ffffff;
  position: relative;
  z-index: 1;
}

.blog-hero-content h1 {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
}

.blog-hero-content p {
  font-size: 1.125rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
  color: #ffffff;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 600;
  color: #222222;
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #40A944;
  border-radius: 2px;
}

.section-header p {
  font-size: 1.0625rem;
  color: #666;
  max-width: 700px;
  margin: 1.5rem auto 0;
}

/* Blog Posts Section */
.blog-posts-section {
  padding: 2rem 0 4rem;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Blog Card */
.blog-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: #505ca6;
}

.blog-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Blog Category Badge */
.blog-category {
  display: inline-block;
  background: #505ca6;
  color: #ffffff;
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  width: fit-content;
}

.blog-category.category-heart {
  background: #b2023e;
}

.blog-category.category-wellness {
  background: #40A944;
}

.blog-category.category-nutrition {
  background: #505ca6;
}

/* Blog Card Heading */
.blog-card h3 {
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.blog-card h3 a {
  color: #222222;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-card h3 a:hover {
  color: #505ca6;
}

/* Blog Excerpt */
.blog-excerpt {
  color: #666;
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex: 1;
}

/* Read More Link */
.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #40A944;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: auto;
}

.blog-read-more svg {
  transition: transform 0.3s ease;
}

.blog-read-more:hover {
  color: #358a38;
  gap: 0.75rem;
}

.blog-read-more:hover svg {
  transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-hero {
    padding: 3rem 0 2rem;
    margin-bottom: 2rem;
  }

  .blog-hero-content h1 {
    font-size: 2rem;
  }

  .blog-hero-content p {
    font-size: 1rem;
  }

  .section-header h2 {
    font-size: 1.875rem;
  }

  .section-header p {
    font-size: 0.9375rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .blog-card-content {
    padding: 1.5rem;
  }

  .blog-card h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .blog-hero {
    padding: 2rem 0 1.5rem;
  }

  .blog-hero-content h1 {
    font-size: 1.75rem;
  }

  .blog-card-content {
    padding: 1.25rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }
}

/* Loading States & Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blog-card {
  animation: fadeIn 0.5s ease-out;
}

.blog-card:nth-child(1) {
  animation-delay: 0.1s;
}

.blog-card:nth-child(2) {
  animation-delay: 0.2s;
}

.blog-card:nth-child(3) {
  animation-delay: 0.3s;
}

/* Accessibility */
.blog-card:focus-within {
  outline: 2px solid #505ca6;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
