/* ============================================================
   BlogSphere - Homepage Stylesheet
   ============================================================
   File:     assets/css/home.css
   Purpose:  Styles for all homepage sections

   Table of Contents:
     1.  Section Headers (reusable)
     2.  Hero Section / Slider
     3.  AdSense Placeholders
     4.  Trending Categories Section
     5.  Latest Articles Carousel
     6.  Main Content Layout (Grid + Sidebar)
     7.  Article Cards (Grid)
     8.  Sidebar Widgets
     9.  Featured Topics Section
    10.  Editor's Choice Section
    11.  Statistics Section
    12.  Newsletter CTA Section
    13.  Scroll Arrow Buttons (reusable)
    14.  Homepage Responsive
   ============================================================ */

/* ============================================================
   1. SECTION HEADERS (Reusable across homepage)
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.section-header-center {
  justify-content: center;
  text-align: center;
  flex-direction: column;
}

.section-title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-text);
  position: relative;
}

.section-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
  display: none;
}

/* ============================================================
   2. HERO SECTION / SLIDER
   ============================================================ */
.hero-section {
  padding: var(--space-xl) 0 var(--space-lg);
}

.hero-slider {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-color: var(--color-bg-tertiary);
}

.hero-slide {
  display: none;
  width: 100%;
}

.hero-slide.active {
  display: block;
  animation: fadeIn 0.6s ease-out;
}

.hero-card {
  display: block;
  position: relative;
  text-decoration: none;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.hero-card-image {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-card:hover .hero-img {
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.3) 40%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

.hero-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-2xl);
  z-index: 2;
}

.hero-category-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: white;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  text-transform: capitalize;
}

.hero-title {
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  color: white;
  margin-bottom: var(--space-sm);
  line-height: var(--leading-tight);
  max-width: 700px;
}

.hero-excerpt {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-md);
  max-width: 600px;
  line-height: var(--leading-relaxed);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.hero-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.hero-author-name,
.hero-date,
.hero-read-time {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
}

.hero-meta-divider {
  color: rgba(255, 255, 255, 0.4);
  font-size: var(--text-xs);
}

/* Hero Slider Controls */
.hero-slider-controls {
  position: absolute;
  bottom: var(--space-xl);
  right: var(--space-2xl);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  z-index: 3;
}

.hero-slider-dots {
  display: flex;
  gap: 6px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.hero-dot.active {
  background-color: white;
  width: 28px;
  border-radius: var(--radius-full);
}

.hero-slider-arrows {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.hero-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  transition: all var(--transition-fast);
  backdrop-filter: blur(4px);
}

.hero-arrow:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.hero-slide-counter {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  font-weight: var(--weight-medium);
}

/* Hero Empty Fallback */
.hero-empty {
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
}

.hero-empty-content {
  text-align: center;
  color: white;
}

.hero-empty-content h1 {
  color: white;
  margin-bottom: var(--space-md);
}

.hero-empty-content p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-lg);
}

/* ============================================================
   3. ADSENSE PLACEHOLDERS
   ============================================================ */
.ad-section {
  padding: var(--space-md) 0;
}

.ad-placeholder {
  background-color: var(--color-bg-secondary);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.ad-banner {
  height: 100px;
  width: 100%;
}

.ad-sidebar {
  height: 250px;
  width: 100%;
}

.ad-demo-block {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.ad-demo-block span {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  font-weight: var(--weight-medium);
}

/* ============================================================
   4. TRENDING CATEGORIES SECTION
   ============================================================ */
.categories-section {
  padding-top: var(--space-lg);
}

.categories-scroll-wrapper {
  overflow: hidden;
  position: relative;
}

.categories-scroll {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: var(--space-sm);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.categories-scroll::-webkit-scrollbar {
  display: none;
}

.category-card {
  flex: 0 0 auto;
  width: 140px;
  padding: var(--space-lg) var(--space-md);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  text-align: center;
  text-decoration: none;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary);
}

.category-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  transition: all var(--transition-base);
}

.category-card:hover .category-card-icon {
  transform: scale(1.1);
}

.category-card-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  line-height: var(--leading-tight);
}

.category-card-count {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ============================================================
   5. LATEST ARTICLES CAROUSEL
   ============================================================ */
.latest-carousel-wrapper {
  overflow: hidden;
}

.latest-carousel {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: var(--space-md);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.latest-carousel::-webkit-scrollbar {
  display: none;
}

.latest-carousel-card {
  flex: 0 0 calc(33.333% - var(--space-lg) * 2 / 3);
  min-width: 300px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.latest-carousel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-border);
}

.post-card-link {
  text-decoration: none;
  display: block;
}

.post-card-thumb {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.post-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  background-color: var(--color-bg-tertiary);
}

.latest-carousel-card:hover .post-card-img {
  transform: scale(1.05);
}

.post-card-featured-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.25rem 0.7rem;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  background-color: var(--color-primary);
  color: white;
  border-radius: var(--radius-sm);
}

.post-card-body {
  padding: var(--space-md);
  height: fit-content !important;
}

.post-card-category {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-xs);
  display: block;
}

.post-card-title {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-xs);
  line-height: var(--leading-snug);
}

.post-card-excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  line-height: var(--leading-normal);
}

.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.post-card-author-info {
  display: none;
  align-items: center;
  gap: var(--space-sm);
}

.post-card-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.post-card-author-name {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-text);
}

.post-card-stats {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.post-card-date {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.post-card-views {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ============================================================
   6. MAIN CONTENT LAYOUT (Grid + Sidebar)
   ============================================================ */
.home-content-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: var(--space-2xl);
  align-items: start;
}

.home-articles-grid {
  min-width: 0;
}

/* ============================================================
   7. ARTICLE CARDS (Grid Layout)
   ============================================================ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.article-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-border);
}

.article-card-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card-thumb {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
}

.article-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  background-color: var(--color-bg-tertiary);
}

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

.article-featured-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.2rem 0.6rem;
  font-size: 10px;
  font-weight: var(--weight-bold);
  background-color: var(--color-primary);
  color: white;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-category-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 0.25rem 0.7rem;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: white;
  border-radius: var(--radius-sm);
}

.article-card-body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-title {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-xs);
  line-height: var(--leading-snug);
}

.article-card-excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  line-height: var(--leading-normal);
  flex: 1;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.article-card-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.article-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.article-author-info {
  display: flex;
  flex-direction: column;
}

.article-author-name {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
}

.article-publish-date {
  font-size: 11px;
  color: var(--color-text-muted);
}

.article-card-stats {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 11px;
  color: var(--color-text-muted);
}

.article-card-stats span {
  display: flex;
  align-items: center;
  gap: 3px;
}

.article-read-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
  margin: 0 var(--space-md) var(--space-md);
  background-color: var(--color-text);
  color: var(--color-text-inverse);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.article-read-more-btn:hover {
  background-color: var(--color-primary);
  color: white;
  transform: translateY(-1px);
}

.no-posts-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-3xl);
  color: var(--color-text-muted);
}

.no-posts-message i {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
  color: var(--color-text-light);
}

/* ============================================================
   8. SIDEBAR WIDGETS
   ============================================================ */
.home-sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-lg));
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.sidebar-widget {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.sidebar-widget-title {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-border-light);
}

/* Search Box in Sidebar */
.sidebar-search-box {
  margin-bottom: var(--space-md);
}

.sidebar-search-input-wrap {
  display: flex;
  align-items: center;
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.sidebar-search-input {
  flex: 1;
  padding: 0.6rem 0.8rem;
  border: none;
  background: transparent;
  font-size: var(--text-sm);
  color: var(--color-text);
  outline: none;
}

.sidebar-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--color-primary);
  color: white;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  margin: 2px;
  transition: background-color var(--transition-fast);
}

.sidebar-search-btn:hover {
  background-color: var(--color-primary-dark);
}

/* Popular Posts */
.popular-posts-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.popular-post-item {
  display: flex;
  gap: var(--space-sm);
  text-decoration: none;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
}

.popular-post-item:hover {
  background-color: var(--color-bg-secondary);
}

.popular-post-thumb {
  width: 72px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.popular-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: var(--color-bg-tertiary);
}

.popular-post-info {
  flex: 1;
  min-width: 0;
}

.popular-post-category {
  font-size: 10px;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.popular-post-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  margin-bottom: 2px;
  line-height: var(--leading-snug);
}

.popular-post-views {
  font-size: 11px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Recent Comments Widget */
.sidebar-comments-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.sidebar-comment-item {
  display: flex;
  gap: var(--space-sm);
}

.sidebar-comment-avatar {
  font-size: var(--text-2xl);
  color: var(--color-text-light);
  flex-shrink: 0;
}

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

.sidebar-comment-author {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
}

.sidebar-comment-text {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 2px 0;
  line-height: var(--leading-normal);
}

.sidebar-comment-link {
  font-size: 11px;
  color: var(--color-primary);
  text-decoration: none;
}

.sidebar-comment-link:hover {
  text-decoration: underline;
}

/* Newsletter Sidebar Widget */
.sidebar-newsletter-card {
  text-align: center;
  background: var(--gradient-primary);
  margin: calc(var(--space-lg) * -1);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
}

.sidebar-newsletter-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: white;
  margin-bottom: var(--space-xs);
}

.sidebar-newsletter-desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-md);
}

.sidebar-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.sidebar-newsletter-input {
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: var(--text-sm);
  outline: none !important;
  text-align: center;
}

.sidebar-newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.sidebar-newsletter-input:focus {
  border-color: rgba(255, 255, 255, 0.6);
  background-color: rgba(255, 255, 255, 0.2);
}

.sidebar-newsletter-btn {
  padding: 0.65rem;
  background-color: white;
  color: var(--color-primary);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sidebar-newsletter-btn:hover {
  background-color: var(--color-text);
  color: white;
  transform: translateY(-1px);
}

/* ============================================================
   9. FEATURED TOPICS SECTION
   ============================================================ */
.featured-topics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.featured-topic-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 200px;
  text-decoration: none;
  display: block;
}

.featured-topic-card:hover .featured-topic-image img {
  transform: scale(1.08);
}

.featured-topic-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

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

.featured-topic-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-4xl);
}

.featured-topic-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  z-index: 1;
}

.featured-topic-name {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: white;
  margin-bottom: 2px;
}

.featured-topic-count {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.75);
}

/* ============================================================
   10. EDITOR'S CHOICE SECTION
   ============================================================ */
.editors-choice-carousel-wrapper {
  overflow: hidden;
}

.editors-choice-carousel {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: var(--space-sm);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.editors-choice-carousel::-webkit-scrollbar {
  display: none;
}

.editors-choice-card {
  flex: 0 0 calc(33.333% - var(--space-lg) * 2 / 3);
  min-width: 300px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.editors-choice-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.ec-card-link {
  text-decoration: none;
  display: block;
}

.ec-card-thumb {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.ec-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  background-color: var(--color-bg-tertiary);
}

.editors-choice-card:hover .ec-card-img {
  transform: scale(1.05);
}

.ec-featured-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.25rem 0.7rem;
  font-size: 11px;
  font-weight: var(--weight-semibold);
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  gap: 4px;
}

.ec-featured-badge i {
  color: #f39c12;
  font-size: 10px;
}

.ec-card-body {
  padding: var(--space-md);
}

.ec-card-category {
  font-size: 11px;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-xs);
  display: block;
}

.ec-card-title {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-xs);
  line-height: var(--leading-snug);
}

.ec-card-excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  line-height: var(--leading-normal);
}

.ec-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.ec-card-dot {
  font-size: 8px;
}

/* ============================================================
   11. STATISTICS SECTION
   ============================================================ */
.stats-section {
  background-color: var(--color-bg-secondary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.stat-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: rgba(108, 92, 231, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  margin: 0 auto var(--space-md);
}

.stat-value {
  font-size: var(--text-3xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-text);
  margin-bottom: var(--space-xs);
  font-family: var(--font-heading);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: var(--weight-medium);
}

/* ============================================================
   12. NEWSLETTER CTA SECTION
   ============================================================ */
.newsletter-cta-section {
  padding-bottom: var(--space-3xl);
}

.newsletter-cta-card {
  background: var(--gradient-primary);
  border-radius: var(--radius-2xl);
  padding: var(--space-3xl) var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.newsletter-cta-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.circle-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -50px;
}

.circle-2 {
  width: 200px;
  height: 200px;
  bottom: -60px;
  left: -30px;
}

.circle-3 {
  width: 120px;
  height: 120px;
  top: 30%;
  left: 15%;
}

.newsletter-cta-content {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
}

.newsletter-cta-title {
  font-size: var(--text-3xl);
  font-weight: var(--weight-extrabold);
  color: white;
  margin-bottom: var(--space-sm);
}

.newsletter-cta-desc {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-xl);
}

.newsletter-cta-input-group {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  padding: 4px;
  max-width: 420px;
  margin: 0 auto;
  backdrop-filter: blur(4px);
}

.newsletter-cta-input {
  flex: 1;
  padding: 0.75rem 1.25rem;
  background: transparent;
  border: none;
  color: white;
  font-size: var(--text-sm);
  outline: none !important;
  min-width: 0;
}

.newsletter-cta-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-cta-btn {
  padding: 0.7rem 1.5rem;
  background-color: white;
  color: var(--color-primary);
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.newsletter-cta-btn:hover {
  background-color: var(--color-text);
  color: white;
  transform: translateY(-1px);
}

/* ============================================================
   13. SCROLL ARROW BUTTONS (Reusable)
   ============================================================ */
.section-nav-arrows {
  display: flex;
  gap: var(--space-sm);
}

.scroll-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  transition: all var(--transition-fast);
}

.scroll-arrow:hover {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* ============================================================
   14. HOMEPAGE RESPONSIVE
   ============================================================ */

/* Large Desktop: 1200px */
@media (max-width: 1200px) {
  .home-content-layout {
    grid-template-columns: 1fr 300px;
    gap: var(--space-xl);
  }

  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet: 1024px */
@media (max-width: 1024px) {
  .hero-card-image {
    height: 400px;
  }

  .hero-title {
    font-size: var(--text-3xl);
  }

  .home-content-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .home-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .sidebar-newsletter {
    grid-column: 1 / -1;
  }

  .featured-topics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .latest-carousel-card,
  .editors-choice-card {
    flex: 0 0 calc(50% - var(--space-lg) / 2);
    min-width: 280px;
  }
}

/* Mobile: 768px */
@media (max-width: 768px) {
  .hero-section {
    padding: var(--space-md) 0 var(--space-md);
  }

  .hero-card-image {
    height: 350px;
  }

  .hero-card-content {
    padding: var(--space-lg);
  }

  .hero-title {
    font-size: var(--text-2xl);
  }

  .hero-excerpt {
    font-size: var(--text-sm);
    display: none;
  }

  .hero-slider-controls {
    right: var(--space-lg);
    bottom: var(--space-lg);
  }

  .hero-slider-dots {
    display: none;
  }

  .section-title {
    font-size: var(--text-xl);
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .home-sidebar {
    grid-template-columns: 1fr;
  }

  .featured-topics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .featured-topic-card {
    height: 160px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .stat-card {
    padding: var(--space-lg);
  }

  .stat-value {
    font-size: var(--text-2xl);
  }

  .newsletter-cta-card {
    padding: var(--space-2xl) var(--space-lg);
  }

  .newsletter-cta-title {
    font-size: var(--text-2xl);
  }

  .newsletter-cta-input-group {
    flex-direction: column;
    border-radius: var(--radius-lg);
  }

  .newsletter-cta-input {
    width: 100%;
    text-align: center;
  }

  .newsletter-cta-btn {
    width: 100%;
    border-radius: var(--radius-md);
  }

  .latest-carousel-card,
  .editors-choice-card {
    flex: 0 0 85%;
    min-width: 260px;
  }

  .category-card {
    width: 120px;
    padding: var(--space-md);
  }

  .category-card-icon {
    width: 48px;
    height: 48px;
    font-size: var(--text-lg);
  }
}

/* Small Mobile: 480px */
@media (max-width: 480px) {
  .hero-card-image {
    height: 300px;
  }

  .hero-title {
    font-size: var(--text-xl);
  }

  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }

  .hero-meta-divider {
    display: none;
  }

  .hero-slider-controls {
    position: relative;
    right: auto;
    bottom: auto;
    justify-content: center;
    padding: var(--space-md);
    background-color: var(--color-bg);
  }

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

  .featured-topic-card {
    height: 140px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .newsletter-cta-title {
    font-size: var(--text-xl);
  }

  .latest-carousel-card,
  .editors-choice-card {
    flex: 0 0 90%;
  }
}
