/* ==========================================================================
   EMAGAZINE DATA JOURNALISM - STYLESHEET
   Dược liệu vùng cao Nam Trà My - HTX Sâm Ngọc Linh
   Tác giả: Trung Phong | Chuyên trang Báo chí Dữ liệu
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. RESET & CSS VARIABLES (DESIGN TOKENS)
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette - Forest & Gold Elegance */
  --bg-primary: #FBFBFA;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #F3F5F1;
  --bg-surface-alt: #E9ECE5;
  --bg-forest-deep: #0D2118;
  --bg-forest-dark: #122B20;

  --text-primary: #18231C;
  --text-secondary: #3D4A41;
  --text-muted: #0f0927;
  --text-light: #F4F6F4;
  --text-inverse: #FFFFFF;

  --accent-forest: #1F4E3B;
  --accent-emerald: #2D6A4F;
  --accent-leaf: #40916C;
  --accent-mint: #52B788;
  --accent-gold: #B8860B;
  --accent-gold-warm: #D4A373;
  --accent-gold-light: #FAEDCD;
  --accent-copper: #BC6C25;

  --border-subtle: rgba(24, 35, 28, 0.1);
  --border-medium: rgba(24, 35, 28, 0.2);
  --border-highlight: rgba(45, 106, 79, 0.35);

  --shadow-sm: 0 2px 8px rgba(13, 33, 24, 0.04);
  --shadow-md: 0 8px 24px rgba(13, 33, 24, 0.08);
  --shadow-lg: 0 16px 40px rgba(13, 33, 24, 0.12);
  --shadow-glow: 0 0 30px rgba(82, 183, 136, 0.18);

  /* Typography Scales - Cỡ chữ tối thiểu toàn trang 16px */
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Be Vietnam Pro', sans-serif;
  --font-data: 'Space Grotesk', 'Be Vietnam Pro', sans-serif;

  --text-sm: 1.0rem;
  /* 16px - Cỡ chữ tối thiểu toàn trang */
  --text-base: 1.125rem;
  /* 18px - Body text chuẩn đọc */
  --text-md: 1.25rem;
  /* 20px - Nhãn infographic, phụ đề */
  --text-lg: 1.375rem;
  /* 22px */
  --text-xl: 1.625rem;
  /* 26px */
  --text-2xl: 2.0rem;
  /* 32px */
  --text-3xl: 2.5rem;
  /* 40px */
  --text-4xl: 3.25rem;
  /* 52px */
  --text-5xl: 4.25rem;
  /* 68px */

  --line-height-body: 1.85;
  --line-height-heading: 1.25;

  --container-max-width: 1280px;
  --reading-max-width: 760px;
  --infographic-max-width: 1080px;

  --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark Mode Tokens */
[data-theme="dark"] {
  --bg-primary: #0A140F;
  --bg-surface: #101F18;
  --bg-surface-elevated: #162B21;
  --bg-surface-alt: #1D362B;
  --bg-forest-deep: #060D0A;
  --bg-forest-dark: #0A1610;

  --text-primary: #EEF4F0;
  --text-secondary: #CBD8D0;
  --text-muted: #8E9F94;
  --text-light: #FFFFFF;

  --border-subtle: rgba(238, 244, 240, 0.1);
  --border-medium: rgba(238, 244, 240, 0.22);
  --border-highlight: rgba(82, 183, 136, 0.45);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px rgba(82, 183, 136, 0.25);
}

/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  line-height: var(--line-height-body);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
  position: relative;
}

/* --------------------------------------------------------------------------
   2. TOP READING CONTROLS & PROGRESS BAR
   -------------------------------------------------------------------------- */
.top-nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(251, 251, 250, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

[data-theme="dark"] .top-nav-bar {
  background: rgba(10, 20, 15, 0.92);
  border-bottom-color: var(--border-subtle);
}

.reading-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.05);
  position: relative;
}

[data-theme="dark"] .reading-progress-track {
  background: rgba(255, 255, 255, 0.05);
}

.reading-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-emerald), var(--accent-mint), var(--accent-gold));
  transition: width 0.1s linear;
}

.nav-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  text-decoration: none;
}

.brand-badge {
  background: var(--accent-forest);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
}

[data-theme="dark"] .brand-badge {
  background: var(--accent-mint);
  color: #0A140F;
}

.brand-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.nav-sections {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-section-link {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 20px;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-section-link:hover {
  color: var(--accent-forest);
  background: rgba(45, 106, 79, 0.08);
}

[data-theme="dark"] .nav-section-link:hover {
  color: var(--accent-mint);
  background: rgba(82, 183, 136, 0.15);
}

.nav-section-link.active {
  color: #FFFFFF;
  background: var(--accent-forest);
  font-weight: 600;
}

[data-theme="dark"] .nav-section-link.active {
  background: var(--accent-mint);
  color: #0A140F;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-icon {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition-normal);
}

.btn-icon:hover {
  background: var(--accent-forest);
  color: #FFFFFF;
  border-color: var(--accent-forest);
  transform: translateY(-2px);
}

[data-theme="dark"] .btn-icon:hover {
  background: var(--accent-mint);
  color: #0A140F;
  border-color: var(--accent-mint);
}

/* --------------------------------------------------------------------------
   3. HERO COVER SECTION (CINEMATIC EMAGAZINE)
   -------------------------------------------------------------------------- */
.hero-cover {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--text-inverse);
  padding: 140px 24px 80px;
  overflow: hidden;
  background-color: var(--bg-forest-deep);
}

.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 115%;
  background-image: url('assets/images/hero-nam-tra-my.jpg');
  background-size: cover;
  background-position: center 30%;
  will-change: transform;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(10, 26, 18, 0.45) 0%,
      rgba(10, 26, 18, 0.75) 50%,
      rgba(10, 26, 18, 0.96) 95%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: var(--reading-max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 30px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-gold-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-meta-badge span.dot {
  width: 6px;
  height: 6px;
  background: var(--accent-mint);
  border-radius: 50%;
  display: inline-block;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 28px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-sapo {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.7;
  color: #E2EBE5;
  margin-bottom: 20px;
  border-left: 3px solid var(--accent-mint);
  padding-left: 20px;
}

.hero-sapo-sub {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  line-height: 1.75;
  color: #D2DFD6;
  margin-bottom: 36px;
}

.hero-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-sans);
  font-size: 16px;
  color: #CCDCD2;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-mint), var(--accent-forest));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #FFFFFF;
  font-size: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.author-name {
  font-weight: 700;
  color: #FFFFFF;
}

.article-stats {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
}

.article-stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.scroll-indicator {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-sans);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: color var(--transition-normal);
}

.scroll-indicator:hover {
  color: var(--accent-mint);
}

.scroll-indicator svg {
  animation: bounceDown 2s infinite ease-in-out;
}

@keyframes bounceDown {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(8px);
  }

  60% {
    transform: translateY(4px);
  }
}

/* --------------------------------------------------------------------------
   4. ARTICLE BODY & EDITORIAL LAYOUT
   -------------------------------------------------------------------------- */
.article-wrapper {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.article-section {
  position: relative;
  margin-bottom: 90px;
  scroll-margin-top: 100px;
}

.section-header {
  max-width: var(--reading-max-width);
  margin: 0 auto 36px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-data);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-leaf);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

[data-theme="dark"] .section-kicker {
  color: var(--accent-mint);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: var(--line-height-heading);
  color: var(--text-primary);
  letter-spacing: -0.01em;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent-gold);
  margin-top: 16px;
  border-radius: 2px;
}

/* Editorial Content Block */
.prose-content {
  max-width: var(--reading-max-width);
  margin: 0 auto;
}

.prose-content p {
  margin-bottom: 26px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  color: var(--text-primary);
}

/* Dropcap for opening paragraph of each section */
.prose-content p.has-dropcap::first-letter {
  font-family: var(--font-display);
  float: left;
  font-size: 4.8rem;
  line-height: 0.8;
  padding-top: 6px;
  padding-right: 14px;
  padding-bottom: 4px;
  color: var(--accent-forest);
  font-weight: 800;
}

[data-theme="dark"] .prose-content p.has-dropcap::first-letter {
  color: var(--accent-mint);
}

/* Editorial Blockquote / Pull Quote */
.editorial-quote {
  margin: 48px auto;
  max-width: 860px;
  padding: 40px;
  background: var(--bg-surface-elevated);
  border-left: 6px solid var(--accent-emerald);
  border-radius: 0 16px 16px 0;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.editorial-quote::before {
  content: "“";
  position: absolute;
  top: 10px;
  right: 24px;
  font-family: var(--font-serif);
  font-size: 110px;
  line-height: 1;
  color: var(--accent-forest);
  opacity: 0.12;
  pointer-events: none;
}

[data-theme="dark"] .editorial-quote::before {
  color: var(--accent-mint);
  opacity: 0.18;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-style: italic;
  line-height: 1.65;
  color: var(--text-primary);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.quote-author {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  color: var(--accent-forest);
  text-transform: uppercase;
  letter-spacing: 1px;
}

[data-theme="dark"] .quote-author {
  color: var(--accent-mint);
}

/* --------------------------------------------------------------------------
   5. FULL-WIDTH EDITORIAL PHOTO BREAKS
   -------------------------------------------------------------------------- */
.editorial-photo-card {
  max-width: var(--infographic-max-width);
  margin: 50px auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.editorial-photo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.photo-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--bg-surface-alt);
}

.photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s ease;
}

.editorial-photo-card:hover .photo-wrapper img {
  transform: scale(1.03);
}

.photo-caption {
  padding: 16px 24px;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.caption-tag {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-leaf);
  background: rgba(64, 145, 108, 0.1);
  padding: 3px 10px;
  border-radius: 4px;
}

[data-theme="dark"] .caption-tag {
  color: var(--accent-mint);
  background: rgba(82, 183, 136, 0.15);
}

/* --------------------------------------------------------------------------
   6. DATA JOURNALISM INFOGRAPHICS (CHUYÊN BIỆT 3 PHẦN)
   Mọi chữ trong infographic đều tối thiểu 18px (>= 1.125rem)
   -------------------------------------------------------------------------- */
.infographic-container {
  max-width: var(--infographic-max-width);
  margin: 56px auto;
  background: var(--bg-surface);
  border-radius: 20px;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  transition: all var(--transition-normal);
}

.infographic-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--accent-forest), var(--accent-mint), var(--accent-gold));
}

.infographic-header {
  padding: 32px 36px 20px;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.info-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-data);
  font-size: 18px;
  /* Tối thiểu 18px */
  font-weight: 700;
  color: var(--accent-leaf);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

[data-theme="dark"] .info-badge {
  color: var(--accent-mint);
}

.info-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2.0rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 8px;
}

.info-subtitle {
  font-family: var(--font-sans);
  font-size: 18px;
  /* Tối thiểu 18px */
  color: var(--text-muted);
  line-height: 1.6;
}

.infographic-body {
  padding: 36px;
}

/* Common Metric Card Style in Infographics */
.metric-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.metric-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.metric-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.metric-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.metric-card:hover {
  border-color: var(--accent-mint);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.metric-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-mint);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.metric-card:hover::after {
  opacity: 1;
}

.metric-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(45, 106, 79, 0.12);
  color: var(--accent-leaf);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

[data-theme="dark"] .metric-icon-wrap {
  background: rgba(82, 183, 136, 0.15);
  color: var(--accent-mint);
}

.metric-value {
  font-family: var(--font-data);
  font-size: clamp(2.0rem, 3.2vw, 3.0rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--accent-forest);
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

[data-theme="dark"] .metric-value {
  color: var(--accent-mint);
}

.metric-unit {
  font-size: 20px;
  /* Tối thiểu 18px */
  font-weight: 600;
  color: var(--accent-gold);
}

.metric-label {
  font-family: var(--font-sans);
  font-size: 19px;
  /* Tối thiểu 18px */
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.metric-desc {
  font-family: var(--font-sans);
  font-size: 18px;
  /* Tối thiểu 18px */
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   INFOGRAPHIC 1: TIẾN TRÌNH KHỞI NGHIỆP & CHẾ BIẾN SÂU (2009 - 2016)
   -------------------------------------------------------------------------- */
.timeline-interactive {
  position: relative;
  padding: 20px 0 10px;
}

.timeline-track-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.timeline-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.timeline-step-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px;
  position: relative;
  transition: all var(--transition-normal);
}

.timeline-step-card.active,
.timeline-step-card:hover {
  border-color: var(--accent-emerald);
  background: var(--bg-surface);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.step-year-pill {
  display: inline-block;
  font-family: var(--font-data);
  font-size: 22px;
  /* Tối thiểu 18px */
  font-weight: 800;
  color: #FFFFFF;
  background: var(--accent-forest);
  padding: 4px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
}

[data-theme="dark"] .step-year-pill {
  background: var(--accent-leaf);
}

.step-card-title {
  font-family: var(--font-sans);
  font-size: 20px;
  /* Tối thiểu 18px */
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.step-card-detail {
  font-family: var(--font-sans);
  font-size: 18px;
  /* Tối thiểu 18px */
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-card-detail ul {
  margin-top: 10px;
  padding-left: 20px;
}

.step-card-detail li {
  margin-bottom: 6px;
}

.info-comparison-bar {
  margin-top: 36px;
  padding: 24px;
  background: var(--bg-surface-elevated);
  border-radius: 14px;
  border-left: 4px solid var(--accent-gold);
}

.comparison-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-family: var(--font-sans);
  font-size: 19px;
  /* Tối thiểu 18px */
  font-weight: 700;
  color: var(--text-primary);
}

.bar-wrapper {
  height: 24px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  margin-bottom: 12px;
}

[data-theme="dark"] .bar-wrapper {
  background: rgba(255, 255, 255, 0.1);
}

.bar-segment-initial {
  width: 25%;
  background: #A0AAB2;
  transition: width 1.2s ease;
}

.bar-segment-growth {
  width: 75%;
  background: linear-gradient(90deg, var(--accent-leaf), var(--accent-mint));
  transition: width 1.5s ease;
}

.bar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--font-sans);
  font-size: 18px;
  /* Tối thiểu 18px */
  color: var(--text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   INFOGRAPHIC 2: CHUỖI GIÁ TRỊ & TÁC ĐỘNG XÃ HỘI TẠI CHỖ
   -------------------------------------------------------------------------- */
.social-impact-dashboard {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.impact-stats-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.impact-row-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px 24px;
  transition: all var(--transition-normal);
}

.impact-row-item:hover {
  transform: translateX(6px);
  border-color: var(--accent-mint);
  background: var(--bg-surface);
}

.impact-number-col {
  min-width: 170px;
  font-family: var(--font-data);
  font-size: clamp(2.2rem, 3.0vw, 2.8rem);
  font-weight: 800;
  color: var(--accent-forest);
  line-height: 1;
}

[data-theme="dark"] .impact-number-col {
  color: var(--accent-mint);
}

.impact-number-col span.unit {
  font-size: 20px;
  /* Tối thiểu 18px */
  font-weight: 600;
  color: var(--accent-gold);
  margin-left: 4px;
}

.impact-text-col {
  flex: 1;
}

.impact-title {
  font-family: var(--font-sans);
  font-size: 20px;
  /* Tối thiểu 18px */
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.impact-desc {
  font-family: var(--font-sans);
  font-size: 18px;
  /* Tối thiểu 18px */
  color: var(--text-muted);
  line-height: 1.5;
}

.svg-chart-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
}

.svg-chart-title {
  font-family: var(--font-sans);
  font-size: 20px;
  /* Tối thiểu 18px */
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.chart-svg-element {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   INFOGRAPHIC 3: MẠNG LƯỚI LIÊN KẾT & CHUỖI GIÁ TRỊ KHÉP KÍN
   -------------------------------------------------------------------------- */
.network-structure-box {
  margin-bottom: 36px;
}

.network-nodes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.node-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
}

.node-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-emerald);
  box-shadow: var(--shadow-md);
}

.node-number {
  font-family: var(--font-data);
  font-size: clamp(2.4rem, 3.5vw, 3.4rem);
  font-weight: 800;
  color: var(--accent-forest);
  line-height: 1;
  margin-bottom: 10px;
}

[data-theme="dark"] .node-number {
  color: var(--accent-mint);
}

.node-name {
  font-family: var(--font-sans);
  font-size: 20px;
  /* Tối thiểu 18px */
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.node-sub {
  font-family: var(--font-sans);
  font-size: 18px;
  /* Tối thiểu 18px */
  color: var(--text-muted);
  line-height: 1.5;
}

/* Commercial flow stats 4 columns */
.annual-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.annual-stat-card {
  background: var(--bg-surface-elevated);
  border-radius: 14px;
  padding: 22px 20px;
  border-top: 4px solid var(--accent-emerald);
  transition: all var(--transition-normal);
}

.annual-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.stat-val-highlight {
  font-family: var(--font-data);
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
  font-weight: 800;
  color: var(--accent-forest);
  margin-bottom: 6px;
}

[data-theme="dark"] .stat-val-highlight {
  color: var(--accent-mint);
}

.stat-lbl-main {
  font-family: var(--font-sans);
  font-size: 19px;
  /* Tối thiểu 18px */
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-desc-sub {
  font-family: var(--font-sans);
  font-size: 18px;
  /* Tối thiểu 18px */
  color: var(--text-muted);
  line-height: 1.45;
}

/* 5-step closed-loop value chain */
.value-chain-wrapper {
  background: var(--bg-surface-elevated);
  border-radius: 16px;
  padding: 30px;
  border: 1px solid var(--border-subtle);
}

.chain-title {
  font-family: var(--font-sans);
  font-size: 21px;
  /* Tối thiểu 18px */
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chain-steps-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  position: relative;
}

.chain-step-node {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
  position: relative;
  transition: all var(--transition-normal);
}

.chain-step-node:hover {
  border-color: var(--accent-forest);
  background: var(--accent-forest);
  color: #FFFFFF;
}

[data-theme="dark"] .chain-step-node:hover {
  background: var(--accent-mint);
  border-color: var(--accent-mint);
  color: #0A140F;
}

.chain-step-node:hover .chain-step-name,
.chain-step-node:hover .chain-step-num {
  color: inherit;
}

.chain-step-num {
  font-family: var(--font-data);
  font-size: 18px;
  /* Tối thiểu 18px */
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 6px;
}

.chain-step-name {
  font-family: var(--font-sans);
  font-size: 18px;
  /* Tối thiểu 18px */
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

/* Infographic Footer / Source Note */
.infographic-footer {
  padding: 16px 36px;
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 18px;
  /* Tối thiểu 18px */
  color: var(--text-muted);
}

.info-source-tag {
  font-weight: 600;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   7. ARTICLE FOOTER & AUTHOR SIGN-OFF
   -------------------------------------------------------------------------- */
.article-signoff {
  max-width: var(--reading-max-width);
  margin: 80px auto 40px;
  padding-top: 40px;
  border-top: 2px solid var(--border-medium);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.signoff-author {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-forest);
  letter-spacing: 0.5px;
}

[data-theme="dark"] .signoff-author {
  color: var(--accent-mint);
}

.signoff-tag {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text-muted);
}

.article-conclusion-note {
  max-width: var(--reading-max-width);
  margin: 0 auto 60px;
  padding: 24px 30px;
  background: var(--bg-surface-elevated);
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
  border-left: 4px solid var(--accent-mint);
}

/* Site Footer */
.site-footer {
  background: var(--bg-forest-deep);
  color: #E0EAE3;
  padding: 60px 24px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-sans);
}

.footer-inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.footer-brand {
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 1px;
}

.footer-desc {
  max-width: 600px;
  font-size: 16px;
  color: #A4B8AC;
  line-height: 1.6;
}

.footer-copy {
  font-size: 14px;
  color: #6C8274;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

/* --------------------------------------------------------------------------
   8. ANIMATIONS & SCROLL-TRIGGER TRANSITIONS
   -------------------------------------------------------------------------- */
.fade-in-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.fade-in-element.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* SVG Line & Path drawing */
.animate-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-path.drawn {
  stroke-dashoffset: 0;
}

/* --------------------------------------------------------------------------
   9. RESPONSIVE DESIGN (DESKTOP, TABLET, MOBILE)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {

  .metric-grid-3,
  .network-nodes-grid,
  .timeline-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .social-impact-dashboard {
    grid-template-columns: 1fr;
  }

  .chain-steps-flow {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 16px;
  }

  .nav-sections {
    display: none;
    /* Hide top section links on mobile to prevent clutter */
  }

  .hero-cover {
    padding: 120px 20px 60px;
    min-height: 90vh;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-sapo {
    font-size: 1.15rem;
    padding-left: 14px;
  }

  .hero-byline {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-wrapper {
    padding: 40px 16px 80px;
  }

  .prose-content p {
    text-align: left;
    font-size: 1.125rem;
    /* 18px */
  }

  .prose-content p.has-dropcap::first-letter {
    font-size: 3.8rem;
  }

  .editorial-quote {
    padding: 24px 20px;
    margin: 36px 0;
  }

  .quote-text {
    font-size: 1.25rem;
  }

  .infographic-container {
    margin: 40px 0;
    border-radius: 14px;
  }

  .infographic-header,
  .infographic-body {
    padding: 24px 18px;
  }

  .metric-grid-3,
  .metric-grid-2,
  .metric-grid-4,
  .network-nodes-grid,
  .timeline-steps-grid,
  .annual-stats-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .chain-steps-flow {
    grid-template-columns: 1fr;
  }

  .impact-row-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .impact-number-col {
    min-width: unset;
  }

  .infographic-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 18px;
  }
}

/* Touch devices & Mobile small */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .metric-value {
    font-size: 2.2rem;
  }
}