/* ==========================================================================
   INTERACTIVE LONGFORM / EMAGAZINE BÁO CHÍ DỮ LIỆU
   Đề tài: Kinh tế số mở cánh cửa mới cho doanh nghiệp nhỏ và HTX tại Hà Nội
   Quy chuẩn: 
   - Font chữ: ENCODE SANS toàn diện, đậm màu, tương phản cao, đẹp mắt
   - Infographic 1: 2 modal CƠ CẤU & ĐỢT CAO ĐIỂM xếp trên - dưới tối ưu không gian
   - Cỡ chữ toàn trang >= 16px, Cỡ chữ Infographic >= 18px
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Bảng màu sáng: Đậm màu, sắc nét, chiều sâu sang trọng */
  --bg-primary: #F8F9FA;           /* Nền giấy in sáng dịu mắt */
  --bg-secondary: #FFFFFF;         /* Nền card trắng tinh tế */
  --bg-tertiary: #EEF2F6;          /* Nền phân cách xám nhạt */
  
  /* Màu chữ ĐẬM ĐÀ, tương phản cao chuẩn WCAG AAA */
  --text-main: #0B132B;            /* Obsidian Deep Navy cực kỳ đậm nét, sắc sảo */
  --text-lead: #1C2541;            /* Chữ dẫn nhập sâu thẳm */
  --text-muted: #334155;           /* Chú thích đậm rõ ràng, không bị mờ nhạt */
  --text-subtle: #475569;
  
  /* Điểm nhấn công nghệ & dữ liệu rực rỡ */
  --brand-primary: #0A192F;        /* Deep Tech Navy */
  --brand-accent: #1D4ED8;         /* Xanh công nghệ chuyển đổi số */
  --blue-highlight: #1D4ED8;
  --emerald-highlight: #047857;    /* Xanh ngọc phát triển bền vững */
  --amber-highlight: #B45309;      /* Vàng hổ phách mục tiêu */
  --indigo-highlight: #4338CA;
  --cyan-highlight: #0E7490;
  --purple-highlight: #6D28D9;

  /* Card, Border & Shadow */
  --border-color: rgba(15, 23, 42, 0.15);
  --border-focus: rgba(29, 78, 216, 0.45);
  --card-bg: #FFFFFF;
  --card-shadow: 0 12px 30px -8px rgba(11, 19, 43, 0.08), 0 6px 14px -4px rgba(11, 19, 43, 0.04);
  --card-shadow-hover: 0 20px 35px -10px rgba(11, 19, 43, 0.14), 0 10px 20px -5px rgba(11, 19, 43, 0.06);

  /* Chart tracks */
  --chart-track: #E2E8F0;
  --chart-grid: #CBD5E1;

  /* Font Families: ENCODE SANS XUYÊN SUỐT */
  --font-sans: 'Encode Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Encode Sans', sans-serif;
  --font-mono: 'Space Grotesk', monospace, sans-serif;

  /* Spacing */
  --max-width-article: 780px;      /* Cột đọc bài báo chuẩn mực */
  --max-width-viz: 1180px;         /* Không gian mở rộng cho Data Viz & Ảnh */
  --header-height: 64px;
  
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Bảng màu tối (Dark Theme - Midnight Obsidian) --- */
[data-theme="dark"] {
  --bg-primary: #070B14;           /* Đêm thẳm vũ trụ */
  --bg-secondary: #0F172A;         /* Slate than chì */
  --bg-tertiary: #1E293B;
  
  --text-main: #F8FAFC;            /* Trắng sáng đậm nét */
  --text-lead: #F1F5F9;
  --text-muted: #CBD5E1;           /* Xám bạc tương phản cao */
  --text-subtle: #94A3B8;

  --brand-primary: #38BDF8;
  --brand-accent: #60A5FA;
  --blue-highlight: #60A5FA;
  --emerald-highlight: #34D399;
  --amber-highlight: #FBBF24;
  --indigo-highlight: #818CF8;
  --cyan-highlight: #22D3EE;
  --purple-highlight: #A78BFA;

  --border-color: rgba(255, 255, 255, 0.15);
  --border-focus: rgba(96, 165, 250, 0.5);
  --card-bg: #0F172A;
  --card-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.6);
  --card-shadow-hover: 0 20px 35px -10px rgba(0, 0, 0, 0.8);

  --chart-track: #1E293B;
  --chart-grid: #334155;
}

/* Reset cơ bản */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px; /* Cỡ chữ tối thiểu toàn trang là 16px */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans); /* Áp dụng Encode Sans */
  font-weight: 500;              /* Đậm đà, đẹp mắt, không bị mảnh */
  line-height: 1.85;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* ==========================================================================
   THANH TIẾN TRÌNH ĐỌC (READING PROGRESS BAR)
   ========================================================================== */
#reading-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.08);
  z-index: 1001;
}

#reading-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #1D4ED8, #047857, #B45309);
  transition: width 0.1s linear;
}

/* ==========================================================================
   HEADER TOP TINH GỌN (TẬP TRUNG TRẢI NGHIỆM ĐỌC)
   ========================================================================== */
.top-nav {
  position: fixed;
  top: 4px;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(248, 249, 250, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition-smooth);
}

[data-theme="dark"] .top-nav {
  background: rgba(7, 11, 20, 0.94);
}

.nav-container {
  max-width: var(--max-width-viz);
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-badge {
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--brand-accent);
}

.brand-divider {
  color: var(--text-subtle);
  font-weight: 300;
}

.brand-topic {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.reading-indicator {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 700;
}

.indicator-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-accent);
  box-shadow: 0 0 10px var(--brand-accent);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.theme-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.theme-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-focus);
}

[data-theme="light"] .moon-icon { display: block; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: block; }

/* ==========================================================================
   CONTAINERS & BỐ CỤC
   ========================================================================== */
.article-text-container {
  width: 100%;
  max-width: var(--max-width-article);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.article-viz-container {
  width: 100%;
  max-width: var(--max-width-viz);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   HERO / COVER SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 3.5rem);
  padding-bottom: 5.5rem;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.2;
}

.glow-1 {
  top: 8%;
  right: -5%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #2563EB 0%, rgba(37, 99, 235, 0) 70%);
}

.glow-2 {
  bottom: 5%;
  left: -8%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #059669 0%, rgba(5, 150, 105, 0) 70%);
}

.grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.7;
}

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

.hero-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.1);
  border: 1px solid rgba(29, 78, 216, 0.25);
  color: var(--brand-accent);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 2.2rem;
}

.pulse-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-accent);
}

.hero-title {
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin-bottom: 2.5rem;
}

.hero-lead-box {
  background: var(--card-bg);
  padding: 2.4rem 2.6rem;
  border-radius: 18px;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  margin-bottom: 3rem;
  position: relative;
}

.hero-lead-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--brand-accent), #047857);
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
}

.hero-lead-para {
  font-size: 1.28rem;
  font-weight: 500;
  line-height: 1.88;
  color: var(--text-lead);
}

.hero-lead-para + .hero-lead-para {
  margin-top: 1.4rem;
}

/* 4 Thẻ tóm lược đầu bài */
.hero-highlight-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.strip-item {
  background: var(--card-bg);
  padding: 1.4rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
}

.strip-item:hover {
  transform: translateY(-3px);
  border-color: var(--border-focus);
}

.strip-val {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-accent);
  line-height: 1.2;
}

.strip-lbl {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-weight: 700;
  line-height: 1.35;
}

.scroll-prompt {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
}

.mouse-icon {
  width: 22px;
  height: 34px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}

.wheel {
  width: 4px;
  height: 7px;
  background: var(--brand-accent);
  border-radius: 2px;
  animation: mouseWheel 1.5s infinite;
}

@keyframes mouseWheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

/* ==========================================================================
   EDITORIAL ARTICLE CONTENT (100% NGUYÊN VĂN BÀI BÁO)
   ========================================================================== */
.article-section {
  position: relative;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  border-bottom: 1px solid var(--border-color);
}

.section-header-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-accent);
}

.section-line {
  width: 36px;
  height: 2px;
  background: var(--brand-accent);
}

.section-tag {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.section-heading {
  font-size: clamp(2.1rem, 3.3vw, 2.9rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 2.2rem;
}

.editorial-body {
  max-width: var(--max-width-article);
  margin: 0 auto;
}

.editorial-p {
  font-size: 1.22rem; /* ~19.5px */
  font-weight: 500;  /* Nét chữ đậm đà, sắc nét */
  line-height: 1.88;
  color: var(--text-main);
  margin-bottom: 1.85rem;
  text-align: justify;
}

/* Drop Cap đầu phần */
.drop-cap-p::first-letter {
  font-size: 4.6rem;
  line-height: 0.82;
  float: left;
  margin-right: 0.8rem;
  margin-top: 0.2rem;
  font-weight: 900;
  color: var(--brand-accent);
}

/* Callout trích dẫn */
.editorial-callout {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--brand-accent);
  border-radius: 14px;
  padding: 2.2rem 2.5rem;
  margin: 2.8rem 0;
  box-shadow: var(--card-shadow);
  display: flex;
  gap: 1.5rem;
}

.callout-icon {
  font-size: 3.5rem;
  line-height: 1;
  color: var(--brand-accent);
  opacity: 0.4;
  user-select: none;
}

.callout-content {
  flex: 1;
}

.callout-text {
  font-size: 1.26rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.78;
  color: var(--text-main);
  margin-bottom: 0.8rem;
}

.callout-author {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-accent);
}

/* Parallax Quote Strips */
.quote-break-strip {
  background: linear-gradient(135deg, rgba(11, 19, 43, 0.05) 0%, rgba(29, 78, 216, 0.05) 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 5rem 0;
  position: relative;
}

[data-theme="dark"] .quote-break-strip {
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.1) 0%, rgba(4, 120, 87, 0.08) 100%);
}

.quote-container {
  text-align: center;
}

.accent-quote {
  font-size: clamp(1.4rem, 2.3vw, 1.95rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.68;
  color: var(--text-main);
}

/* ==========================================================================
   ẢNH MINH HỌA (EDITORIAL PHOTO BOX - CHỈ CÓ ẢNH, TUYỆT ĐỐI KHÔNG CÓ TEXT)
   ========================================================================== */
.editorial-photo-box {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  margin: 3.2rem 0;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  background: var(--card-bg);
}

.editorial-img {
  width: 100%;
  height: auto;
  max-height: 640px;
  display: block;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.editorial-photo-box:hover .editorial-img {
  transform: scale(1.02);
}

/* ==========================================================================
   INFOGRAPHIC TRỰC QUAN HÓA DỮ LIỆU (DATA JOURNALISM VIZ)
   QUY CHUẨN: THUẦN DỮ LIỆU, ICON, SỐ LIỆU; CỠ CHỮ TOÀN BỘ >= 18PX!
   ========================================================================== */
.infographic-box {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 2.8rem;
  margin: 3.8rem 0;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
}

.infographic-box:hover {
  border-color: var(--border-focus);
}

.info-top-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.6rem;
  margin-bottom: 2.2rem;
}

.info-tag-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--brand-accent);
  margin-bottom: 0.6rem;
}

.info-title-badge {
  font-size: 1.15rem; /* 18.4px >= 18px */
  font-weight: 800;
  letter-spacing: 0.08em;
}

.info-main-title {
  font-size: clamp(1.6rem, 2.4vw, 2.25rem);
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.28;
}

.info-sub-title {
  font-size: 1.18rem; /* ~19px >= 18px */
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ==========================================================================
   INFOGRAPHIC 1: BỐ CỤC XẾP TRÊN - DƯỚI (INFO-STACK-VERTICAL)
   Tối ưu hóa không gian hiển thị: CƠ CẤU (TRÊN) & ĐỢT CAO ĐIỂM (DƯỚI)
   ========================================================================== */
.info-stack-vertical {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.info-card-wide {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 2.4rem;
  display: flex;
  flex-direction: column;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.card-kicker {
  font-size: 1.2rem; /* 19.2px >= 18px */
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: 0.03em;
}

.card-total-badge {
  font-family: var(--font-mono);
  font-size: 1.18rem; /* ~19px >= 18px */
  font-weight: 800;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.12);
  color: var(--blue-highlight);
}

.card-highlight-badge {
  font-size: 1.18rem; /* >= 18px */
  font-weight: 800;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(4, 120, 87, 0.12);
  color: var(--emerald-highlight);
}

/* 2 Panel bên trong khối CƠ CẤU (trên dưới) */
.structure-two-panels {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.chart-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.breakdown-item {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.breakdown-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
}

.breakdown-title {
  font-size: 1.22rem; /* 19.5px >= 18px */
  font-weight: 800;
  color: var(--text-main);
}

.breakdown-val {
  font-family: var(--font-mono);
  font-size: 1.28rem; /* 20.5px >= 18px */
  font-weight: 800;
}

.progress-bar-shell {
  width: 100%;
  height: 26px;
  background: var(--chart-track);
  border-radius: 13px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  border-radius: 13px;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fill-blue {
  background: linear-gradient(90deg, #1D4ED8, #3B82F6);
}

.fill-emerald {
  background: linear-gradient(90deg, #047857, #10B981);
}

.fill-amber {
  background: linear-gradient(90deg, #B45309, #F59E0B);
}

.fill-cyan {
  background: linear-gradient(90deg, #0E7490, #06B6D4);
}

.breakdown-sub {
  font-size: 1.15rem; /* 18.4px >= 18px */
  color: var(--text-muted);
  font-weight: 700;
}

.target-box {
  padding-top: 0.8rem;
  border-top: 1.5px dashed var(--border-color);
}

/* Panel tóm tắt GRDP bên phải của khối CƠ CẤU */
.structure-summary-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
}

.grdp-highlight-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.6rem;
  display: flex;
  gap: 1.2rem;
  box-shadow: var(--card-shadow);
}

.grdp-icon-wrap {
  color: var(--brand-accent);
  flex-shrink: 0;
  margin-top: 4px;
}

.grdp-rate-title {
  font-size: 1.15rem; /* >= 18px */
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--brand-accent);
}

.grdp-rate-num {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--blue-highlight);
  line-height: 1.15;
  margin: 0.3rem 0;
}

.rate-unit {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-muted);
}

.grdp-rate-desc {
  font-size: 1.15rem; /* >= 18px */
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.5;
}

.grdp-pill-badge {
  background: rgba(4, 120, 87, 0.1);
  border: 1px solid rgba(4, 120, 87, 0.25);
  border-radius: 12px;
  padding: 1.2rem;
  font-size: 1.15rem; /* >= 18px */
  font-weight: 600;
  color: var(--emerald-highlight);
  line-height: 1.5;
}

/* 4 Thẻ KPI trải rộng 4 cột ngang */
.kpi-grid-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.8rem;
}

.kpi-box {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem 1.2rem;
  text-align: center;
  box-shadow: var(--card-shadow);
}

.kpi-num {
  font-family: var(--font-mono);
  font-size: 2.2rem; /* > 35px */
  font-weight: 900;
  line-height: 1.15;
}

.kpi-num.color-blue { color: var(--blue-highlight); }
.kpi-num.color-emerald { color: var(--emerald-highlight); }
.kpi-num.color-amber { color: var(--amber-highlight); }
.kpi-num.color-purple { color: var(--purple-highlight); }

.kpi-desc {
  font-size: 1.15rem; /* 18.4px >= 18px */
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0.6rem;
  line-height: 1.35;
}

/* Micro Stats Grid 2 cột */
.micro-stats-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.micro-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.1rem 1.35rem;
  font-size: 1.15rem; /* 18.4px >= 18px */
  gap: 0.8rem;
}

.micro-item.highlight-item {
  border-left: 5px solid var(--emerald-highlight);
}

.micro-item.full-width-micro {
  grid-column: 1 / -1;
}

.micro-loc {
  font-weight: 900;
  color: var(--brand-accent);
  min-width: 140px;
}

.micro-stat {
  flex: 1;
  color: var(--text-main);
  font-weight: 600;
}

.micro-badge {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--emerald-highlight);
  background: rgba(4, 120, 87, 0.12);
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
}

/* ==========================================================================
   INFOGRAPHIC 2: LIVESTREAM & SIÊU HẠ TẦNG SỐ
   ========================================================================== */
.info-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.info-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
}

.livestream-data-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.6rem;
}

.live-event-card {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.4rem;
  transition: var(--transition-smooth);
}

.live-event-card:hover {
  border-color: var(--border-focus);
}

.live-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(29, 78, 216, 0.12);
  border: 1px solid rgba(29, 78, 216, 0.25);
  border-radius: 14px;
  min-width: 84px;
  height: 84px;
}

.live-date-badge.accent-purple {
  background: rgba(109, 40, 217, 0.12);
  border-color: rgba(109, 40, 217, 0.25);
}

.live-day {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--blue-highlight);
  line-height: 1;
}

.live-date-badge.accent-purple .live-day {
  color: var(--purple-highlight);
}

.live-month {
  font-size: 1.15rem; /* 18.4px >= 18px */
  font-weight: 800;
  color: var(--text-muted);
}

.live-detail {
  flex: 1;
}

.live-subject {
  font-size: 1.25rem; /* 20px >= 18px */
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

.live-metrics {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.live-metric-tag {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.metric-num {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--blue-highlight);
}

.boost-tag .metric-num {
  color: var(--emerald-highlight);
}

.metric-lbl {
  font-size: 1.15rem; /* 18.4px >= 18px */
  color: var(--text-muted);
  font-weight: 700;
}

.policy-badge-box {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  background: rgba(180, 83, 9, 0.1);
  border: 1px solid rgba(180, 83, 9, 0.3);
  border-radius: 14px;
  padding: 1.4rem;
  font-size: 1.15rem; /* 18.4px >= 18px */
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.55;
}

.policy-icon {
  color: var(--amber-highlight);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Hạ tầng & Doanh nghiệp công nghệ số */
.infra-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.infra-item {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.infra-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
}

.infra-name {
  font-size: 1.22rem; /* 19.5px >= 18px */
  font-weight: 900;
  color: var(--text-main);
}

.infra-val {
  font-family: var(--font-mono);
  font-size: 1.22rem; /* 19.5px >= 18px */
  font-weight: 800;
}

.infra-sub {
  font-size: 1.15rem; /* 18.4px >= 18px */
  font-weight: 600;
  color: var(--text-muted);
}

.ecosystem-summary-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem 1.8rem;
  margin-top: 0.5rem;
  box-shadow: var(--card-shadow);
}

.eco-circle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eco-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(29, 78, 216, 0.12);
  border: 3px solid var(--blue-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--blue-highlight);
}

.eco-circle-lbl {
  font-size: 1.15rem; /* 18.4px >= 18px */
  font-weight: 800;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.eco-content {
  flex: 1;
}

.eco-main-stat {
  font-size: 1.28rem; /* 20.5px >= 18px */
  font-weight: 900;
  color: var(--text-main);
}

.eco-sub-stat {
  font-size: 1.18rem; /* 18.8px >= 18px */
  font-weight: 700;
  color: var(--emerald-highlight);
  margin-top: 0.35rem;
}

/* ==========================================================================
   INFOGRAPHIC 3: BA TUYẾN GIẢI PHÁP & CHU TRÌNH CHUYỂN DỊCH
   ========================================================================== */
.strategy-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-bottom: 2.5rem;
}

.pillar-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-focus);
}

.pillar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.pillar-index {
  font-family: var(--font-mono);
  font-size: 1.15rem; /* 18.4px >= 18px */
  font-weight: 900;
  color: var(--brand-accent);
}

.pillar-action {
  font-size: 1.12rem; /* 18px >= 18px */
  font-weight: 800;
  color: var(--text-muted);
}

.pillar-title {
  font-size: 1.55rem; /* 24.8px >= 18px */
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 1.35rem;
}

.pillar-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pillar-stat-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.1rem;
}

.stat-highlight {
  font-family: var(--font-mono);
  font-size: 1.35rem; /* 21.6px >= 18px */
  font-weight: 800;
  color: var(--blue-highlight);
}

.stat-detail {
  font-size: 1.15rem; /* 18.4px >= 18px */
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.45;
}

/* Sơ đồ luồng thẩm thấu chuyển dịch */
.flow-interactive-wrapper {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 2.4rem;
}

.flow-header {
  margin-bottom: 1.8rem;
}

.flow-kicker {
  font-size: 1.22rem; /* 19.5px >= 18px */
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: 0.04em;
}

.flow-nodes-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.flow-card {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.flow-card.node-core { border-color: var(--blue-highlight); }
.flow-card.node-sector { border-color: var(--emerald-highlight); }
.flow-card.node-local { border-color: var(--amber-highlight); }

.node-stage-badge {
  font-family: var(--font-mono);
  font-size: 1.12rem; /* 18px >= 18px */
  font-weight: 900;
  color: var(--blue-highlight);
  margin-bottom: 0.6rem;
}

.node-stage-badge.color-emerald { color: var(--emerald-highlight); }
.node-stage-badge.color-amber { color: var(--amber-highlight); }

.node-title {
  font-size: 1.32rem; /* 21px >= 18px */
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.node-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.node-list li {
  font-size: 1.15rem; /* 18.4px >= 18px */
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  padding-left: 1.2rem;
}

.node-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--brand-accent);
  font-weight: 900;
}

.flow-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-accent);
  animation: bounceRight 1.5s infinite;
}

@keyframes bounceRight {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

.flow-outcome-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.3rem 1.6rem;
  font-size: 1.15rem; /* 18.4px >= 18px */
}

.outcome-label {
  font-weight: 900;
  color: var(--brand-accent);
}

.outcome-tag {
  font-weight: 700;
  color: var(--text-main);
}

.outcome-bullet {
  color: var(--text-muted);
}

.info-footer {
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.info-source {
  font-size: 1.15rem; /* 18.4px >= 18px */
  color: var(--text-muted);
  font-style: italic;
  font-weight: 600;
}

/* ==========================================================================
   ARTICLE FOOTER & AUTHOR (100% NGUYÊN VĂN BÀI BÁO)
   ========================================================================== */
.article-footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 6rem 0;
  margin-top: 4rem;
}

.footer-container {
  text-align: center;
}

.author-block {
  margin-bottom: 2.5rem;
}

.author-badge {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--brand-accent);
  padding: 0.35rem 1.1rem;
  background: rgba(29, 78, 216, 0.1);
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.author-name {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.author-sub {
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.footer-divider {
  width: 80px;
  height: 2px;
  background: var(--border-color);
  margin: 2rem auto;
}

.editorial-statement {
  max-width: 680px;
  margin: 0 auto;
}

.statement-p {
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
}

.back-to-top-btn:hover {
  background: var(--brand-accent);
  color: #FFFFFF;
  transform: translateY(-2px);
  border-color: var(--brand-accent);
}

/* ==========================================================================
   SCROLL REVEALS & ANIMATIONS
   ========================================================================== */
.animate-title {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-fade-in-delay {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1024px) {
  .structure-two-panels {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

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

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

  .info-grid-2col {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .strategy-pillars-grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .flow-nodes-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .flow-connector {
    transform: rotate(90deg);
    padding: 0.5rem 0;
  }

  @keyframes bounceRight {
    0%, 100% { transform: rotate(90deg) translateX(0); }
    50% { transform: rotate(90deg) translateX(6px); }
  }

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

@media (max-width: 768px) {
  :root {
    --header-height: 58px;
  }

  body {
    font-size: 16px;
  }

  .article-text-container,
  .article-viz-container {
    padding: 0 1.15rem;
  }

  .hero-title {
    font-size: 2.15rem;
    margin-bottom: 1.8rem;
  }

  .hero-lead-box {
    padding: 1.6rem 1.4rem;
  }

  .hero-lead-para {
    font-size: 1.18rem;
  }

  .hero-highlight-strip {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .infographic-box {
    padding: 1.5rem 1.2rem;
    margin: 2.5rem 0;
    border-radius: 16px;
  }

  .info-card-wide,
  .info-card {
    padding: 1.4rem 1.2rem;
  }

  .kpi-grid-4col {
    grid-template-columns: 1fr;
  }

  .micro-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .live-event-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .live-metrics {
    flex-direction: column;
    gap: 0.4rem;
  }

  .editorial-callout {
    flex-direction: column;
    padding: 1.5rem;
  }

  .quote-break-strip {
    padding: 3.5rem 0;
  }

  .brand-topic,
  .brand-divider {
    display: none;
  }
}
