/* ==========================================================================
   HÀ NỘI CHUYỂN ĐỔI SỐ - DATA JOURNALISM / INTERACTIVE LONGFORM
   Thiết kế báo chí dữ liệu hiện đại, tương phản cao, tối ưu Desktop & Mobile
   ========================================================================== */

:root {
  /* Bảng màu sắc cao cấp Data Journalism */
  --bg-dark: #070b14;
  --bg-card: #0e1726;
  --bg-card-hover: #152238;
  --bg-card-elevated: #111e33;
  --border-subtle: #1e293b;
  --border-bright: #334155;
  --border-accent: #06b6d4;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  
  --accent-cyan: #06b6d4;
  --accent-teal: #10b981;
  --accent-amber: #f59e0b;
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-rose: #f43f5e;

  /* Typography: Chuẩn cỡ chữ tối thiểu 16px toàn trang, infographic >= 18px */
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-data: 'Space Grotesk', monospace, sans-serif;

  --font-size-base: 18px; /* Cỡ chữ đọc tiêu chuẩn cho Longform báo chí hiện đại */
  --line-height-body: 1.85;

  --container-max-width: 1200px;
  --article-content-width: 820px;
  --infographic-width: 1140px;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-glow-cyan: 0 0 25px rgba(6, 182, 212, 0.18);
  --shadow-glow-teal: 0 0 25px rgba(16, 185, 129, 0.18);
  --shadow-glow-amber: 0 0 25px rgba(245, 158, 11, 0.18);

  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 18px;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  line-height: var(--line-height-body);
  background: radial-gradient(circle at 50% 0%, #0d1b2e 0%, var(--bg-dark) 45%);
}

/* Thanh Tiến Trình Đọc Siêu Tinh Tế (Reading Progress) */
#reading-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 999;
}

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

/* Header Bar Độc Bản */
.publication-badge-bar {
  position: sticky;
  top: 4px;
  z-index: 990;
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
}

.pub-tag {
  font-family: var(--font-data);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-cyan);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pub-tag::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-teal);
  box-shadow: 0 0 8px var(--accent-teal);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.reading-meta-indicator {
  font-family: var(--font-data);
  font-size: 14px;
  color: var(--text-muted);
}

/* ==========================================================================
   HERO / BANNER KHỞI ĐẦU BÁO CHÍ
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 24px 60px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-background-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.45;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
}

.hero-kicker {
  font-family: var(--font-data);
  font-size: 16px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  font-weight: 700;
  margin-bottom: 24px;
  display: inline-block;
  padding: 6px 18px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 40px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(34px, 5.5vw, 62px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 32px;
  text-wrap: balance;
  background: linear-gradient(180deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sapo {
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 860px;
  margin: 0 auto 28px;
  font-weight: 400;
  text-align: justify;
  text-justify: inter-word;
}

.hero-sapo-highlight {
  font-size: clamp(20px, 2.3vw, 24px);
  font-weight: 600;
  color: var(--accent-cyan);
  border-left: 3px solid var(--accent-teal);
  padding-left: 20px;
  margin: 28px auto 36px;
  text-align: left;
  max-width: 840px;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.08), transparent);
  padding: 16px 22px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.hero-byline {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-family: var(--font-data);
  font-size: 16px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
}

.hero-byline span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   BỐ CỤC NỘI DUNG LONGFORM BÁO CHÍ
   ========================================================================== */
.article-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 40px 20px 80px;
}

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

.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 70px auto 40px;
  max-width: var(--article-content-width);
}

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

.section-divider .pill {
  font-family: var(--font-data);
  font-size: 14px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  padding: 4px 14px;
  border: 1px solid var(--border-bright);
  border-radius: 20px;
  background: var(--bg-card);
}

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

.section-num {
  font-family: var(--font-data);
  font-size: 15px;
  color: var(--accent-teal);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

/* Text Content Paragraphs */
.prose-content {
  max-width: var(--article-content-width);
  margin: 0 auto 40px;
}

.prose-p {
  font-size: var(--font-size-base); /* 18px */
  line-height: var(--line-height-body); /* 1.85 */
  color: var(--text-secondary);
  margin-bottom: 24px;
  text-align: justify;
  text-justify: inter-word;
}

.prose-p strong {
  color: #ffffff;
  font-weight: 600;
}

/* Dropcap phong cách Tạp chí cao cấp cho đoạn đầu mỗi phần */
.has-dropcap::first-letter {
  font-family: var(--font-heading);
  font-size: 4.2rem;
  line-height: 0.82;
  float: left;
  margin-right: 14px;
  margin-top: 4px;
  color: var(--accent-cyan);
  font-weight: 800;
}

/* ==========================================================================
   INFOGRAPHIC DESIGN CHUYÊN SÂU (Font >= 18px, Thuần Dữ Liệu, Biểu đồ SVG)
   ========================================================================== */
.infographic-wrapper {
  max-width: var(--infographic-width);
  margin: 48px auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-subtle);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.infographic-wrapper:hover {
  border-color: var(--border-bright);
}

.infographic-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--accent-cyan);
  font-family: var(--font-data);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 14px;
}

.infographic-heading {
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.6vw, 32px);
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 8px;
}

.infographic-subheading {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* Infographic 1: Grid 3 Cột */
.data-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.data-card {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.data-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: var(--shadow-glow-cyan);
}

.data-card-tag {
  font-family: var(--font-data);
  font-size: 14px;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.data-card-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 18px;
}

/* Dãy Số Liệu & Counter (>= 18px) */
.metric-row {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.metric-row:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.metric-big-num {
  font-family: var(--font-data);
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.metric-unit {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-cyan);
}

.metric-label {
  font-size: 18px; /* Đảm bảo tối thiểu 18px */
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.4;
}

/* Biểu đồ So sánh SVG & Bar Chart */
.chart-container-svg {
  margin-top: 14px;
  width: 100%;
}

.bar-compare-group {
  margin-bottom: 18px;
}

.bar-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px; /* Tối thiểu 18px */
  margin-bottom: 8px;
}

.bar-name {
  color: var(--text-secondary);
  font-weight: 500;
}

.bar-val {
  font-family: var(--font-data);
  font-weight: 700;
  color: #ffffff;
  font-size: 19px;
}

.progress-track {
  width: 100%;
  height: 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

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

.progress-fill.fill-cyan {
  background: linear-gradient(90deg, #0891b2, #06b6d4);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.progress-fill.fill-teal {
  background: linear-gradient(90deg, #059669, #10b981);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.progress-fill.fill-amber {
  background: linear-gradient(90deg, #d97706, #f59e0b);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

/* Infographic 2: 5 Mũi nhọn Công nghệ & Mô hình Cơ sở */
.focus-tech-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.tech-pill-card {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 14px;
  text-align: center;
  transition: var(--transition-smooth);
}

.tech-pill-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-teal);
  background: rgba(16, 185, 129, 0.08);
  box-shadow: var(--shadow-glow-teal);
}

.tech-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--accent-cyan);
}

.tech-icon-circle svg {
  width: 26px;
  height: 26px;
}

.tech-num-order {
  font-family: var(--font-data);
  font-size: 15px;
  color: var(--accent-amber);
  font-weight: 700;
  margin-bottom: 4px;
}

.tech-card-name {
  font-family: var(--font-heading);
  font-size: 18px; /* Tối thiểu 18px */
  font-weight: 600;
  color: #ffffff;
  line-height: 1.35;
}

.tech-card-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* So sánh 2 phường ở Infographic 2 */
.two-wards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ward-card {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  border-left: 4px solid var(--accent-cyan);
}

.ward-card.ward-kimlien {
  border-left-color: var(--accent-teal);
}

.ward-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.ward-name {
  font-family: var(--font-heading);
  font-size: 22px;
  color: #ffffff;
  font-weight: 700;
}

.ward-highlight-badge {
  font-family: var(--font-data);
  font-size: 15px;
  color: var(--accent-teal);
  background: rgba(16, 185, 129, 0.12);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 700;
}

.ward-features-list {
  list-style: none;
}

.ward-features-list li {
  font-size: 18px; /* Cỡ chữ tối thiểu 18px */
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.5;
}

.ward-features-list li svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--accent-cyan);
  margin-top: 3px;
}

/* Infographic 3: Khương Đình & Tam giác Giá trị */
.info3-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.khuongdinh-metrics-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.metric-tile-subtle {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.metric-tile-subtle .val {
  font-family: var(--font-data);
  font-size: 34px;
  font-weight: 800;
  color: var(--accent-cyan);
  line-height: 1;
  margin-bottom: 6px;
}

.metric-tile-subtle .desc {
  font-size: 18px; /* Tối thiểu 18px */
  color: var(--text-secondary);
  line-height: 1.35;
}

.khuongdinh-pillars-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pillar-item {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 18px; /* Tối thiểu 18px */
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.pillar-item svg {
  width: 22px;
  height: 22px;
  color: var(--accent-amber);
  flex-shrink: 0;
}

/* Mô hình Tam giác Thước đo Giá trị */
.value-triangle-card {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.05), rgba(16, 185, 129, 0.05));
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
}

.triangle-title {
  font-family: var(--font-heading);
  font-size: 22px;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 20px;
}

.triangle-axis-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.axis-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition-smooth);
}

.axis-item:hover {
  border-color: var(--accent-cyan);
  transform: translateX(4px);
}

.axis-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(6, 182, 212, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.axis-icon.amber {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-amber);
}

.axis-icon.teal {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-teal);
}

.axis-subject {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
}

.axis-criterion {
  font-size: 18px; /* Tối thiểu 18px */
  color: var(--text-secondary);
}

/* ==========================================================================
   HÌNH ẢNH MINH HỌA BÁO CHÍ (FIGURE & CAPTION)
   ========================================================================== */
.article-media-figure {
  margin: 50px auto;
  max-width: var(--infographic-width);
  position: relative;
}

.media-image-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.media-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.media-image-container:hover img {
  transform: scale(1.025);
}

.media-caption {
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 14px;
  padding: 0 10px;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 10px;
}

.media-caption::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 2px;
  background: var(--accent-cyan);
}

/* ==========================================================================
   FOOTER TỔNG KẾT & BYLINE TÁC GIẢ NGUYÊN VĂN
   ========================================================================== */
.article-footer {
  max-width: var(--article-content-width);
  margin: 60px auto 100px;
  padding-top: 40px;
  border-top: 1px solid var(--border-bright);
}

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

.author-name {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.author-badge {
  font-family: var(--font-data);
  font-size: 14px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
  color: var(--text-muted);
}

/* Footer Bản Quyền & Chuyên Mục */
.site-footer {
  background: #04060c;
  border-top: 1px solid var(--border-subtle);
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
}

.site-footer p {
  margin-bottom: 8px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Desktop, Tablet, Mobile)
   ========================================================================== */
@media (max-width: 1024px) {
  .data-grid-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .focus-tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .info3-container {
    grid-template-columns: 1fr;
  }
}

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

  .hero-section {
    min-height: 75vh;
    padding: 60px 16px 40px;
  }

  .infographic-wrapper {
    padding: 24px 18px;
    margin: 36px 0;
  }

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

  .two-wards-grid {
    grid-template-columns: 1fr;
  }

  .khuongdinh-metrics-box {
    grid-template-columns: 1fr;
  }

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

  .prose-p {
    text-align: left;
  }

  .publication-badge-bar {
    padding: 10px 16px;
  }
}

@media (max-width: 480px) {
  .focus-tech-grid {
    grid-template-columns: 1fr;
  }
}
