/* ==========================================================================
   SAIGON CO.OP - PREMIUM ECONOMIC E-MAGAZINE STYLESHEET
   Design Language: Modern Economic Magazine / Editorial Scrollytelling
   ========================================================================== */

:root {
  /* Color Palette - Premium Editorial & Vietnamese Retail Accent */
  --bg-main: #FAFBFC;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F1F5F9;
  --bg-card: #FFFFFF;
  --bg-dark-accent: #0F172A;
  
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  
  --brand-blue: #0B4F9C;
  --brand-blue-deep: #073872;
  --brand-blue-light: #EBF3FC;
  --brand-red: #C5221F;
  --brand-red-light: #FDF2F2;
  
  --border-color: #E2E8F0;
  --border-subtle: #EDF2F7;
  --border-focus: #93C5FD;
  
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 20px 40px -8px rgba(11, 79, 156, 0.12);

  /* Typography Scale */
  --font-serif: "Newsreader", "Merriweather", Georgia, serif;
  --font-sans: "Be Vietnam Pro", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Manrope", "Be Vietnam Pro", sans-serif;

  /* Layout Spacing */
  --container-reading: 780px;
  --container-wide: 1160px;
  --container-full: 1320px;
  --section-gap: clamp(64px, 8vw, 110px);
}

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

html {
  font-size: 18px; /* Strict minimum 18px base font */
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-main);
  color: var(--text-primary);
}

body {
  font-family: var(--font-sans);
  font-size: 1.05rem; /* ~19px for comfortable long-form reading */
  line-height: 1.78;
  color: var(--text-secondary);
  background-color: var(--bg-main);
  overflow-x: hidden;
}

/* Scroll Progress Bar */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 9999;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-red) 100%);
  transition: width 0.1s ease-out;
}

/* Header & Meta Bar */
.editorial-meta-header {
  padding: 24px 0 12px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(250, 251, 252, 0.95);
  backdrop-filter: blur(8px);
}

.meta-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--text-muted);
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-blue);
  background: var(--brand-blue-light);
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.meta-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--brand-red);
  animation: pulse-dot 2s infinite ease-in-out;
}

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

.meta-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Layout Containers */
.reading-container {
  max-width: var(--container-reading);
  margin: 0 auto;
  padding: 0 24px;
}

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

.full-container {
  max-width: var(--container-full);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   OPENING - TITLE & SAPO
   ========================================================================== */
.article-opening {
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(40px, 5vw, 64px);
  position: relative;
}

.network-svg-bg {
  position: absolute;
  top: 0;
  right: 5%;
  width: 360px;
  height: 360px;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.opening-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand-red);
  margin-bottom: 20px;
  position: relative;
}

.main-title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.2vw, 3.5rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 36px;
  position: relative;
}

.title-line-accent {
  width: 72px;
  height: 4px;
  background: var(--brand-blue);
  margin-top: 24px;
  margin-bottom: 32px;
  border-radius: 2px;
}

.sapo-box {
  background: #FFFFFF;
  border-left: 4px solid var(--brand-blue);
  padding: 28px 32px;
  border-radius: 0 12px 12px 0;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  position: relative;
}

.sapo-text {
  font-size: 1.22rem; /* Emphasized sapo */
  line-height: 1.7;
  font-weight: 500;
  color: var(--text-primary);
}

/* Minimalist Network Graphic Divider */
.network-graphic-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
  opacity: 0.8;
}

.network-graphic-divider svg {
  width: 100%;
  max-width: 720px;
  height: 36px;
}

/* ==========================================================================
   EDITORIAL BODY CONTENT & SECTIONS
   ========================================================================== */
.editorial-section {
  padding: clamp(36px, 4.5vw, 60px) 0;
}

.section-label-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-blue);
  margin-bottom: 18px;
}

.section-number {
  background: var(--brand-blue);
  color: #FFFFFF;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 800;
}

.section-heading-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.8vw, 2.3rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
}

.sub-heading-editorial {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 700;
  color: var(--brand-blue-deep);
  line-height: 1.35;
  margin: 42px 0 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.sub-heading-editorial::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--brand-red);
  flex-shrink: 0;
}

.editorial-paragraph {
  font-size: 1.05rem; /* ~19px */
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 26px;
  text-align: justify;
  text-justify: inter-word;
}

.editorial-paragraph strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ==========================================================================
   INFOGRAPHIC 1: TỪ 1989 ĐẾN GẦN 800 ĐIỂM BÁN
   ========================================================================== */
.infographic-wrapper {
  margin: clamp(48px, 6vw, 76px) 0;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: clamp(28px, 4vw, 48px);
  position: relative;
  overflow: hidden;
}

.infographic-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-red) 100%);
}

.infographic-header {
  margin-bottom: 36px;
}

.infographic-tag {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-blue);
  margin-bottom: 8px;
  display: block;
}

.infographic-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* Timeline Horizontal Grid */
.timeline-track-container {
  margin-bottom: 40px;
  position: relative;
}

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

.milestone-card {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px 20px;
  position: relative;
  transition: all 0.3s ease;
}

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

.milestone-year-badge {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand-blue);
  line-height: 1;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.milestone-year-badge svg {
  width: 24px;
  height: 24px;
  color: var(--brand-red);
}

.milestone-desc {
  font-size: 1.05rem; /* >=18px */
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
}

.milestone-desc .highlight-val {
  color: var(--brand-red);
  font-weight: 700;
}

/* Big Metrics Stats Grid */
.stats-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.metric-box {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.metric-box:hover {
  border-color: var(--border-focus);
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.metric-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-icon-wrap svg {
  width: 22px;
  height: 22px;
}

.metric-value-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.metric-number {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.metric-unit {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-blue-deep);
}

.metric-label {
  font-size: 1.05rem; /* Strict >=18px */
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.45;
}

.metric-box.highlight-international {
  background: linear-gradient(145deg, #0B4F9C 0%, #073872 100%);
  border-color: #073872;
  color: #FFFFFF;
}

.metric-box.highlight-international .metric-icon-wrap {
  background: rgba(255, 255, 255, 0.15);
  color: #F8FAFC;
}

.metric-box.highlight-international .metric-number {
  color: #FFFFFF;
}

.metric-box.highlight-international .metric-unit {
  color: #93C5FD;
}

.metric-box.highlight-international .metric-label {
  color: #E2E8F0;
}

/* ==========================================================================
   PHOTOJOURNALISTIC IMAGE CONTAINERS
   ========================================================================== */
.editorial-figure {
  margin: clamp(48px, 6vw, 76px) 0;
  position: relative;
}

.editorial-image-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  background: #E2E8F0;
}

.editorial-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.editorial-image-frame:hover .editorial-img {
  transform: scale(1.02);
}

/* ==========================================================================
   INFOGRAPHIC 2: HAI NHIỆM VỤ, MỘT CHIẾN LƯỢC PHÁT TRIỂN
   ========================================================================== */
.ecosystem-container {
  margin: 32px 0 44px;
}

/* Central Hub Header */
.hub-center-badge {
  text-align: center;
  margin-bottom: 32px;
}

.hub-core {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-deep) 100%);
  color: #FFFFFF;
  padding: 14px 36px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: 0 8px 24px rgba(11, 79, 156, 0.28);
}

.hub-core svg {
  width: 24px;
  height: 24px;
  color: #FCD34D;
}

/* 4 Strategic Branches Grid */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.branch-card {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 26px 24px;
  position: relative;
  transition: all 0.3s ease;
}

.branch-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-md);
  background: #FFFFFF;
}

.branch-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.branch-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.branch-icon.icon-blue { background: var(--brand-blue); }
.branch-icon.icon-emerald { background: #059669; }
.branch-icon.icon-amber { background: #D97706; }
.branch-icon.icon-red { background: var(--brand-red); }

.branch-icon svg {
  width: 20px;
  height: 20px;
}

.branch-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.branch-items-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.branch-item {
  font-size: 1.05rem; /* Strict >=18px */
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.branch-item strong {
  font-weight: 700;
  color: var(--text-primary);
}

.branch-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-blue);
  flex-shrink: 0;
}

.branch-card.target-2030 {
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
  border: 1.5px solid #93C5FD;
}

.branch-card.target-2030 .branch-bullet {
  background: var(--brand-red);
}

/* 5 Strategic Directions Section */
.directions-section-wrap {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px dashed var(--border-color);
}

.directions-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.direction-card {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: all 0.25s ease;
}

.direction-card:hover {
  transform: translateY(-4px);
  background: #FFFFFF;
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
}

.direction-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.direction-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.direction-icon-wrap svg {
  width: 24px;
  height: 24px;
}

.direction-text {
  font-size: 1.02rem; /* Strict >=18px */
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

/* ==========================================================================
   CLOSING STATEMENT - IMPACTFUL EDITORIAL CLIMAX
   ========================================================================== */
.closing-statement-wrapper {
  margin: clamp(60px, 7vw, 96px) 0 40px;
  background: #FFFFFF;
  border-left: 6px solid var(--brand-red);
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  border-radius: 0 16px 16px 0;
  padding: clamp(36px, 5vw, 56px);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.closing-tag {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brand-red);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.closing-quote-icon {
  width: 32px;
  height: 32px;
  color: var(--brand-red);
  opacity: 0.25;
  margin-bottom: 16px;
}

.closing-text-lead {
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 1.8vw, 1.45rem); /* Distinctively larger typography */
  line-height: 1.75;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.closing-text-punch {
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 1.8vw, 1.45rem);
  line-height: 1.75;
  font-weight: 600;
  color: var(--brand-blue-deep);
}

.closing-footer-decor {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.journey-milestone-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chip-step {
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--bg-subtle);
  color: var(--text-primary);
  padding: 4px 10px;
  border-radius: 4px;
}

.chip-arrow {
  color: var(--brand-red);
  font-weight: 800;
}

/* ==========================================================================
   EDITORIAL FOOTER
   ========================================================================== */
.editorial-footer {
  border-top: 1px solid var(--border-color);
  background: #FFFFFF;
  padding: 48px 0;
  margin-top: 64px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

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

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.footer-brand span {
  color: var(--brand-red);
}

/* ==========================================================================
   ANIMATIONS & SCROLL OBSERVER CLASSES
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Delay modifiers for sequential appearances */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE-FIRST REFINEMENTS)
   ========================================================================== */
@media (max-width: 1024px) {
  .directions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 18px; /* Strict minimum 18px */
  }

  body {
    font-size: 1.05rem; /* ~19px */
    line-height: 1.75;
  }

  .editorial-paragraph {
    text-align: left;
  }

  .timeline-milestones-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stats-metrics-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ecosystem-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .directions-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .direction-card {
    flex-direction: row;
    text-align: left;
    padding: 16px;
  }

  .sapo-box {
    padding: 22px 20px;
  }

  .closing-statement-wrapper {
    padding: 28px 20px;
  }

  .meta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
