/* ==========================================================================
   eMagazine Báo chí Dữ liệu - Từ Công ước Hà Nội đến an ninh dữ liệu
   CSS Design System & Stylesheet
   Chuẩn mực Typography, Trực quan hóa dữ liệu, Responsive & Micro-interactions
   ========================================================================== */

/* 1. CSS VARIABLES & TOKENS */
:root {
  /* Dark Theme Palette (Mặc định - Phong cách An ninh mạng & Dữ liệu) */
  --bg-primary: #031c5b;
  --bg-secondary: #021f63;
  --bg-surface: #011c56;
  --bg-surface-elevated: #021a53;
  --bg-glass: rgba(19, 31, 56, 0.75);
  --border-subtle: rgba(148, 163, 184, 0.15);
  --border-strong: rgba(56, 189, 248, 0.3);

  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-highlight: #38bdf8;

  /* Accent Colors */
  --accent-cyan: #38bdf8;
  --accent-blue: #2563eb;
  --accent-teal: #14b8a6;
  --accent-gold: #f59e0b;
  --accent-gold-light: #fbbf24;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;

  /* Typography */
  --font-body: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Be Vietnam Pro', sans-serif;
  --font-editorial: 'Lora', Georgia, serif;
  --font-numbers: 'Space Grotesk', 'Be Vietnam Pro', monospace;

  /* Sizing tokens: Cỡ chữ toàn trang tối thiểu 16px! Infographic tối thiểu 18px! */
  --font-size-base: 18px;
  --font-size-body: 19px;
  --font-size-lead: 23px;
  --font-size-info: 18px;
  --font-size-info-title: 24px;

  /* Layout & Spacing */
  --container-reading-width: 820px;
  --container-max-width: 860px;
  --container-wide-width: 1260px;
  --header-height: 64px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows & Glow */
  --glow-cyan: 0 0 25px rgba(56, 189, 248, 0.25);
  --glow-gold: 0 0 25px rgba(245, 158, 11, 0.25);
  --glow-emerald: 0 0 25px rgba(16, 185, 129, 0.25);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Support */
body.theme-light {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #e2e8f0;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --border-subtle: rgba(148, 163, 184, 0.3);
  --border-strong: rgba(37, 99, 235, 0.35);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-highlight: #0284c7;

  --shadow-card: 0 10px 30px -10px rgba(15, 23, 42, 0.1);
  --glow-cyan: 0 0 20px rgba(2, 132, 199, 0.15);
}

/* 2. BASE RESETS */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.85;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* 3. READING PROGRESS & HEADER */
.reading-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 1000;
}

.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-gold), var(--accent-emerald));
  box-shadow: 0 0 10px var(--accent-cyan);
  transition: width 0.1s linear;
}

.emag-header {
  position: fixed;
  top: 4px;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 990;
  display: flex;
  align-items: center;
  transition: transform var(--transition-smooth), background-color var(--transition-smooth);
}

.header-inner {
  width: 100%;
  max-width: var(--container-wide-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-family: var(--font-numbers);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulseDot 2s infinite;
}

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

  50% {
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 0 0 12px var(--accent-cyan);
  }

  100% {
    transform: scale(0.9);
    opacity: 0.6;
  }
}

.header-title-short {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Indicators 3 phần */
.parts-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.part-step {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.part-step .step-num {
  font-family: var(--font-numbers);
  font-weight: 700;
  font-size: 12px;
  opacity: 0.8;
}

.part-step:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.part-step.active {
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.15);
  font-weight: 600;
}

.step-divider {
  width: 4px;
  height: 4px;
  background: var(--border-subtle);
  border-radius: 50%;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

.read-estimate {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

.theme-toggle-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  transform: rotate(15deg);
}

body.theme-dark .icon-sun {
  display: block;
}

body.theme-dark .icon-moon {
  display: none;
}

body.theme-light .icon-sun {
  display: none;
}

body.theme-light .icon-moon {
  display: block;
}

/* 4. HERO SECTION */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 60px) 24px 80px;
  overflow: hidden;
}

.hero-bg-parallax {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 120%;
  top: -10%;
  z-index: 1;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45) contrast(1.15);
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(8, 12, 22, 0.4) 0%, rgba(21, 37, 79, 0.95) 85%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max-width);
  margin: 0 auto;
  text-align: center;
}

.editorial-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}

.category-tag {
  font-family: var(--font-numbers);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
}

.meta-dot {
  width: 4px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 50%;
}

.format-tag {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.text-gradient {
  background: linear-gradient(135deg, #38bdf8 0%, #60a5fa 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-left: 4px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-bottom: 40px;
  text-align: left;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.hero-lead-text {
  font-family: var(--font-editorial);
  font-size: var(--font-size-lead);
  font-weight: 400;
  line-height: 1.7;
  color: #e2e8f0;
  margin-bottom: 16px;
}

.hero-lead-text.emphasis {
  margin-bottom: 0;
  color: #f8fafc;
  font-weight: 500;
}

.hero-meta-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
}

.author-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.author-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}

.author-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-cyan);
  cursor: pointer;
  opacity: 0.85;
  transition: opacity var(--transition-fast);
}

.scroll-cue:hover {
  opacity: 1;
}

.cue-text {
  font-family: var(--font-numbers);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.mouse-scroll-icon {
  width: 22px;
  height: 34px;
  border: 2px solid var(--accent-cyan);
  border-radius: 12px;
  position: relative;
  display: flex;
  justify-content: center;
}

.mouse-scroll-icon .wheel {
  width: 4px;
  height: 7px;
  background-color: var(--accent-cyan);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  animation: mouseWheel 1.6s infinite;
}

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

  100% {
    transform: translateY(12px);
    opacity: 0;
  }
}

/* 5. ARTICLE STRUCTURE & TYPOGRAPHY */
.emagazine-container {
  width: 100%;
}

.article-section {
  max-width: var(--container-wide-width);
  margin: 0 auto;
  padding: 90px 28px 70px;
  position: relative;
}

.section-chapter-tag,
.section-header,
.story-content,
.author-signature-block {
  max-width: var(--container-reading-width);
  margin-left: auto;
  margin-right: auto;
}

.section-chapter-tag {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.chapter-number {
  font-family: var(--font-numbers);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.chapter-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.3), transparent);
}

.chapter-status {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.section-header {
  margin-bottom: 40px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  position: relative;
  padding-bottom: 16px;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 4px;
  background: var(--accent-cyan);
  border-radius: var(--radius-full);
}

.story-content {
  font-size: var(--font-size-body);
  line-height: 1.9;
  color: var(--text-secondary);
}

.body-para {
  margin-bottom: 28px;
  font-weight: 400;
}

/* Dropcap cổ điển sang trọng cho đầu mỗi phần */
.dropcap::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 4.8rem;
  line-height: 0.8;
  padding-top: 4px;
  padding-right: 14px;
  padding-bottom: 4px;
  color: var(--accent-cyan);
  font-weight: 800;
  text-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
}

.key-callout {
  font-family: var(--font-editorial);
  font-size: 21px;
  font-weight: 500;
  font-style: italic;
  color: var(--text-primary);
  background: rgba(56, 189, 248, 0.08);
  border-left: 4px solid var(--accent-cyan);
  padding: 20px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 36px 0;
}

/* Editorial Pullquote */
.editorial-quote {
  position: relative;
  margin: 48px 0;
  padding: 36px 36px 32px 48px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  border-left: 5px solid var(--accent-gold);
  box-shadow: var(--shadow-card);
}

.quote-icon {
  position: absolute;
  top: 24px;
  left: 18px;
  color: var(--accent-gold);
  opacity: 0.25;
}

.quote-text {
  font-family: var(--font-editorial);
  font-size: 22px;
  font-style: italic;
  line-height: 1.75;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.quote-author {
  display: block;
  font-style: normal;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.author-title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-gold-light);
}

.author-role {
  display: block;
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* 6. HÌNH ẢNH MINH HỌA BÁO CHÍ (EDITORIAL IMAGE) */
.editorial-image-frame {
  margin: 60px auto;
  width: 100%;
  max-width: 1140px;
}

.img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
  background: #000;
}

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

.img-wrapper:hover .report-image {
  transform: scale(1.02);
}

.image-caption {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-muted);
  padding: 16px 20px 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.caption-tag {
  background: var(--bg-surface-elevated);
  color: var(--accent-cyan);
  font-family: var(--font-numbers);
  font-size: 12.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* 7. DẢI PHÂN TÁCH SECTIONS */
.section-divider-graphic {
  max-width: var(--container-wide-width);
  margin: 40px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 24px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.divider-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
}

/* ==========================================================================
   8. CÁC KHỐI INFOGRAPHIC ĐỒ HỌA DỮ LIỆU CHUYÊN SÂU
   Yêu cầu nghiêm ngặt:
   - Mở rộng sang 2 bên tối đa hóa không gian hiển thị
   - Cỡ chữ tối thiểu 18px
   - Thuần SVG, icon, biểu đồ, con số
   - Độ tương phản cao, ít chữ, xen kẽ đẹp mắt
   ========================================================================== */
.infographic-container {
  margin: 65px auto;
  width: 100%;
  max-width: 100%;
  background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(15, 23, 42, 0.97) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  box-shadow: var(--shadow-card), var(--glow-cyan);
  position: relative;
  overflow: hidden;
}

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

.info-card-header {
  margin-bottom: 40px;
  text-align: center;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.info-badge {
  display: inline-block;
  font-family: var(--font-numbers);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.info-heading {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 30px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 10px;
}

.info-subtext {
  font-size: 18.5px;
  /* Tối thiểu 18px theo yêu cầu */
  color: var(--text-muted);
}

/* INFOGRAPHIC 1: Grid Stats 4 Thẻ mở rộng thành 4 Cột ngang */
.info-grid-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.stat-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  position: relative;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: 0 12px 24px -8px rgba(56, 189, 248, 0.3);
}

.stat-card.accent-gold:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 12px 24px -8px rgba(245, 158, 11, 0.3);
}

.stat-card-badge {
  display: inline-block;
  font-family: var(--font-numbers);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.stat-metric-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.stat-prefix {
  font-family: var(--font-numbers);
  font-size: 18px;
  /* >= 18px */
  font-weight: 700;
  color: var(--text-muted);
}

.stat-number {
  font-family: var(--font-numbers);
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 800;
  line-height: 1;
  color: var(--accent-cyan);
}

.stat-card.accent-gold .stat-number {
  color: var(--accent-gold);
}

.stat-unit {
  font-family: var(--font-numbers);
  font-size: 18px;
  /* >= 18px */
  font-weight: 700;
  color: var(--accent-cyan);
}

.stat-label {
  font-size: 18.5px;
  /* >= 18px */
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
  margin-bottom: 8px;
}

.stat-meta-date {
  font-size: 16px;
  color: var(--text-muted);
}

/* Timeline SVG trong Infographic 1 */
.interactive-timeline-box {
  background: rgba(8, 12, 22, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

.timeline-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.timeline-title {
  font-family: var(--font-numbers);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
}

.timeline-hint {
  font-size: 14px;
  color: var(--text-muted);
}

.timeline-steps-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.timeline-progress-track {
  position: absolute;
  top: 24px;
  left: 20px;
  right: 20px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.timeline-progress-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-gold));
  transition: width 1.2s ease-in-out;
}

.timeline-node-item {
  position: relative;
  z-index: 2;
  padding-top: 44px;
}

.timeline-dot {
  position: absolute;
  top: 15px;
  left: 0;
  width: 20px;
  height: 20px;
  background: var(--bg-surface);
  border: 3px solid var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-cyan);
}

.timeline-dot.highlight {
  border-color: var(--accent-gold);
  box-shadow: 0 0 12px var(--accent-gold);
}

.timeline-time {
  font-family: var(--font-numbers);
  font-size: 20px;
  /* >= 18px */
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.timeline-time.highlight-text {
  color: var(--accent-gold);
}

.timeline-content-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}

.timeline-content-card.highlight-card {
  border-color: rgba(245, 158, 11, 0.4);
}

.timeline-event-name {
  font-size: 19px;
  /* >= 18px */
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.timeline-event-desc {
  font-size: 18px;
  /* >= 18px */
  line-height: 1.55;
  color: var(--text-secondary);
}

/* INFOGRAPHIC 2: Thách thức & Ứng trực 24/7 */
.threat-stats-dashboard {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.threat-big-counter {
  background: radial-gradient(circle at top left, rgba(244, 63, 94, 0.15), var(--bg-surface-elevated) 70%);
  border: 1px solid rgba(244, 63, 94, 0.35);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.big-counter-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.threat-alert-icon {
  font-size: 20px;
}

.threat-scope {
  font-family: var(--font-numbers);
  font-size: 13.5px;
  font-weight: 700;
  color: #fca5a5;
  letter-spacing: 0.06em;
}

.big-counter-number-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.big-counter-num {
  font-family: var(--font-numbers);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(244, 63, 94, 0.4);
}

.big-counter-suffix {
  font-size: 24px;
  /* >= 18px */
  font-weight: 700;
  color: #fca5a5;
}

.big-counter-desc {
  font-size: 20px;
  /* >= 18px */
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.victim-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  /* >= 18px */
  font-weight: 600;
  color: #fed7aa;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
}

.case-study-metric-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case-pill {
  font-family: var(--font-numbers);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-rose);
  letter-spacing: 0.08em;
}

.case-meta {
  font-size: 16px;
  color: var(--text-muted);
}

.case-subjects {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.subject-label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
}

.subject-name {
  display: block;
  font-size: 18.5px;
  /* >= 18px */
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 4px;
  margin-bottom: 12px;
}

.subject-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  border-top: 1px dashed var(--border-subtle);
  padding-top: 10px;
}

.stat-sub-num {
  font-family: var(--font-numbers);
  font-size: 32px;
  /* >= 18px */
  font-weight: 800;
  color: var(--accent-rose);
}

.stat-sub-label {
  font-size: 18px;
  /* >= 18px */
  font-weight: 600;
  color: var(--text-secondary);
}

.standby-247-box {
  background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.2), var(--bg-surface-elevated) 70%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md);
  padding: 20px;
}

.standby-pulse-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-numbers);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-emerald);
  margin-bottom: 8px;
}

.pulse-green {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseDot 1.5s infinite;
}

.standby-digits {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.standby-24,
.standby-7 {
  font-family: var(--font-numbers);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
}

.standby-slash {
  font-family: var(--font-numbers);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-emerald);
}

.standby-detail {
  font-size: 18px;
  /* >= 18px */
  line-height: 1.5;
  color: var(--text-secondary);
}

/* 3 Lớp phòng thủ trong Infographic 2 */
.defense-layers-wrapper {
  background: rgba(8, 12, 22, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px 24px;
}

.layers-title {
  font-family: var(--font-numbers);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  margin-bottom: 20px;
  text-align: center;
}

.layers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.layer-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.layer-item:hover {
  transform: translateY(-3px);
  border-color: var(--accent-cyan);
}

.layer-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

.layer-title {
  font-size: 19px;
  /* >= 18px */
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 8px;
}

.layer-text {
  font-size: 18px;
  /* >= 18px */
  line-height: 1.55;
  color: var(--text-secondary);
}

/* INFOGRAPHIC 3: 5 Trụ cột & Nguyên tắc tự vệ */
.five-pillars-showcase {
  margin-bottom: 36px;
}

.pillars-diagram-center {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.center-core-shield {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, var(--bg-surface-elevated) 70%);
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px 36px;
  color: var(--accent-cyan);
}

.center-core-shield svg {
  margin-bottom: 10px;
}

.core-text {
  font-family: var(--font-numbers);
  font-size: 20px;
  /* >= 18px */
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.core-sub {
  font-size: 18px;
  /* >= 18px */
  color: var(--accent-cyan);
  margin-top: 4px;
}

.pillars-list-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.pillar-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  position: relative;
  transition: all var(--transition-fast);
  cursor: default;
}

.pillar-card:hover,
.pillar-card:focus {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 20px -5px rgba(56, 189, 248, 0.2);
}

.pillar-card.highlight-pillar {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(180deg, var(--bg-surface-elevated) 0%, rgba(245, 158, 11, 0.1) 100%);
}

.pillar-card.highlight-pillar:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 10px 20px -5px rgba(245, 158, 11, 0.3);
}

.pillar-index {
  font-family: var(--font-numbers);
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 10px;
}

.pillar-card.highlight-pillar .pillar-index {
  color: var(--accent-gold);
}

.pillar-title {
  font-size: 20px;
  /* >= 18px */
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 8px;
}

.pillar-desc {
  font-size: 18px;
  /* >= 18px */
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Action Matrix: 3 Không & 3 Có */
.action-matrix-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.matrix-column {
  border-radius: var(--radius-md);
  padding: 26px 24px;
  border: 1px solid var(--border-subtle);
}

.matrix-column.warning-col {
  background: rgba(244, 63, 94, 0.08);
  border-color: rgba(244, 63, 94, 0.3);
}

.matrix-column.success-col {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
}

.matrix-header {
  margin-bottom: 18px;
}

.matrix-badge {
  font-family: var(--font-numbers);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.warning-col .matrix-badge {
  background: rgba(244, 63, 94, 0.2);
  color: #fca5a5;
}

.success-col .matrix-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.matrix-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.matrix-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 18px;
  /* >= 18px */
  line-height: 1.6;
}

.cross-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 63, 94, 0.2);
  color: #f43f5e;
  border-radius: 50%;
  font-weight: 800;
  font-size: 14px;
}

.check-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border-radius: 50%;
  font-weight: 800;
  font-size: 15px;
}

.rule-txt {
  color: var(--text-primary);
}

.rule-txt strong {
  color: #ffffff;
}

/* 9. KẾT LUẬN & TÁC GIẢ */
.conclusion-box {
  margin: 50px 0 40px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid var(--border-strong);
  border-left: 6px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  padding: 36px 32px;
}

.conclusion-para {
  font-size: 21px;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-weight: 400;
}

.conclusion-para.highlight-last {
  margin-bottom: 0;
  font-weight: 600;
  color: #ffffff;
}

.author-signature-block {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.signature-line {
  width: 80px;
  height: 2px;
  background: var(--accent-gold);
}

.signature-content {
  text-align: right;
}

.signature-by {
  display: block;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 700;
}

.signature-name {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-gold);
  margin-top: 2px;
}

/* 10. FOOTER */
.emag-footer {
  margin-top: 100px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 24px 40px;
}

.footer-container {
  max-width: var(--container-wide-width);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 36px;
  margin-bottom: 30px;
}

.footer-logo {
  font-family: var(--font-numbers);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  display: block;
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 480px;
}

.footer-source-note {
  max-width: 420px;
  text-align: right;
}

.source-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.source-detail {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.copyright {
  font-size: 15px;
  color: var(--text-muted);
}

.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

/* 11. SCROLL-TRIGGER ANIMATION CLASSES */
.reveal-node {
  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);
  will-change: opacity, transform;
}

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

/* 12. RESPONSIVE DESIGN (DESKTOP, TABLET, MOBILE) */
@media (max-width: 1200px) {
  .pillars-list-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 1024px) {
  :root {
    --font-size-base: 17px;
    --font-size-body: 18.5px;
    --font-size-lead: 21px;
  }

  .infographic-container {
    padding: 36px 28px;
  }

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

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

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

@media (max-width: 768px) {
  :root {
    --font-size-base: 16px;
    --font-size-body: 18px;
    --font-size-lead: 20px;
    --header-height: 58px;
  }

  .header-brand .header-title-short {
    display: none;
  }

  .parts-indicator {
    padding: 2px 6px;
  }

  .part-step .step-name {
    display: none;
  }

  .part-step {
    padding: 4px 8px;
  }

  .read-estimate {
    display: none;
  }

  .hero-section {
    padding-top: calc(var(--header-height) + 40px);
    min-height: auto;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-lead-box {
    padding: 20px;
  }

  .hero-meta-author {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .scroll-cue {
    align-self: center;
  }

  .article-section {
    padding: 50px 18px 40px;
  }

  .section-title {
    font-size: 26px;
  }

  .infographic-container {
    padding: 26px 18px;
    margin: 40px 0;
  }

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

  .timeline-steps-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .timeline-progress-track {
    display: none;
  }

  .timeline-node-item {
    padding-top: 0;
    padding-left: 36px;
  }

  .timeline-dot {
    top: 4px;
    left: 0;
  }

  .pillars-list-grid {
    grid-template-columns: 1fr;
  }

  .action-matrix-box {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    text-align: left;
  }

  .footer-source-note {
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile Small (360px - 480px) */
@media (max-width: 480px) {
  .body-para {
    line-height: 1.8;
  }

  .dropcap::first-letter {
    font-size: 4rem;
    padding-right: 10px;
  }

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

  .quote-text {
    font-size: 19px;
  }

  .big-counter-num {
    font-size: 42px;
  }

  .stat-number {
    font-size: 38px;
  }
}