/* Hero Section Styles */
.hero-section {
  position: relative;
  padding: 8rem 0 6rem;
  background: linear-gradient(135deg, var(--background) 0%, var(--card) 100%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=1200');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.05;
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 1;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--faith-color);
  color: white;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  margin-bottom: 2rem;
  animation: fadeIn 0.8s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--foreground);
  animation: slideUp 0.8s ease-out 0.2s both;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: var(--font-weight-medium);
  animation: slideUp 0.8s ease-out 0.4s both;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 3rem;
  line-height: 1.7;
  animation: slideUp 0.8s ease-out 0.6s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: slideUp 0.8s ease-out 0.8s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  animation: slideUp 0.8s ease-out 1s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.hero-stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-weight: var(--font-weight-medium);
}

/* Popular Posts Section */
.popular-posts-section {
  padding: 6rem 0;
  background: var(--background);
}

.popular-posts-header {
  text-align: center;
  margin-bottom: 4rem;
}

.popular-posts-title {
  font-size: 2.5rem;
  font-weight: var(--font-weight-medium);
  margin-bottom: 1rem;
  color: var(--foreground);
}

.popular-posts-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

.popular-posts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.featured-post {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.featured-post-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.featured-post-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
  display: flex;
  align-items: end;
  padding: 2rem;
  color: white;
}

.featured-post-content h3 {
  font-size: 1.75rem;
  font-weight: var(--font-weight-medium);
  margin-bottom: 0.75rem;
  color: white;
  line-height: 1.3;
}

.featured-post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  opacity: 0.9;
}

.featured-post-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.featured-post-excerpt {
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.featured-post-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.featured-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--faith-color);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
}

.popular-posts-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-post {
  display: flex;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 1rem;
  transition: var(--transition);
}

.sidebar-post:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.sidebar-post-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: calc(var(--border-radius) - 4px);
  flex-shrink: 0;
}

.sidebar-post-content {
  flex: 1;
  min-width: 0;
}

.sidebar-post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.sidebar-post-title {
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
  margin-bottom: 0.5rem;
  color: var(--foreground);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-post-excerpt {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-post-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.sidebar-post-stats span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Category badges for posts */
.category-badge-faith {
  background: var(--faith-color);
  color: white;
}

.category-badge-finance {
  background: var(--finance-color);
  color: white;
}

.category-badge-books {
  background: var(--books-color);
  color: white;
}

.category-badge-opportunities {
  background: var(--opportunities-color);
  color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .popular-posts-grid {
    grid-template-columns: 1fr;
  }
  
  .popular-posts-sidebar {
    flex-direction: row;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
  }
  
  .sidebar-post {
    min-width: 300px;
    flex-shrink: 0;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 6rem 0 4rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-stats {
    gap: 2rem;
  }
  
  .hero-stat-number {
    font-size: 1.5rem;
  }
  
  .featured-post-image {
    height: 250px;
  }
  
  .featured-post-overlay {
    padding: 1.5rem;
  }
  
  .featured-post-content h3 {
    font-size: 1.5rem;
  }
  
  .sidebar-post {
    flex-direction: column;
    min-width: 250px;
  }
  
  .sidebar-post-image {
    width: 100%;
    height: 120px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 4rem 0 3rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .popular-posts-sidebar {
    flex-direction: column;
  }
  
  .sidebar-post {
    min-width: auto;
    flex-direction: row;
  }
  
  .sidebar-post-image {
    width: 80px;
    height: 80px;
  }
}