/* ==========================================================================
   LONGFORM SCROLLYTELLING DESIGN SYSTEM
   Phong cách kết hợp VnExpress Longform, Nikkei Asia & Bloomberg Graphics
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Outfit:wght@400;600;700;800&display=swap');

:root {
  /* Color Palette */
  --primary-green: #2E7D32;
  --primary-green-dark: #1B5E20;
  --primary-green-deep: #0D3512;
  --primary-green-light: #E8F5E9;
  
  --gold-accent: #F9A825;
  --gold-accent-hover: #FBC02D;
  --gold-light: #FFFDE7;
  
  --bg-white: #FFFFFF;
  --bg-light-gray: #F5F7F8;
  --bg-section-alt: #EDF2F4;
  --bg-dark-summary: #0A290E;

  --text-dark: #1F2937;
  --text-body: #2C3E50;
  --text-muted: #64748B;
  --text-light: #F8FAFC;
  
  --border-light: #E2E8F0;
  --border-green: #A5D6A7;
  
  /* Fonts */
  --font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Be Vietnam Pro', 'Outfit', sans-serif;

  /* Spacing */
  --container-max-width: 860px;
  --container-wide-width: 1140px;
  --container-full-width: 1400px;
  
  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 25px -5px rgba(46, 125, 50, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.12), 0 10px 15px -5px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 20px rgba(249, 168, 37, 0.4);

  /* Radius */
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

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

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-white);
  color: var(--text-body);
  font-size: 20px; /* Font nội dung tối thiểu 20px theo yêu cầu */
  line-height: 1.85;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: var(--primary-green);
  border-radius: 4px;
}

/* Selection Highlight */
::selection {
  background-color: var(--primary-green);
  color: #ffffff;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin-bottom: 1.75rem;
  font-size: 1.25rem; /* 20px */
  color: #2D3748;
}

p.lead {
  font-size: 1.375rem; /* 22px */
  font-weight: 400;
  line-height: 1.8;
  color: #1A202C;
}

strong {
  color: #111827;
  font-weight: 700;
}

/* Section Containers & Backgrounds */
.section-wrapper {
  position: relative;
  width: 100%;
  padding: 100px 0;
  transition: background-color 0.4s ease;
}

.bg-white {
  background-color: var(--bg-white);
}

.bg-light-gray {
  background-color: var(--bg-light-gray);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.bg-dark-green {
  background-color: var(--primary-green-deep);
  color: var(--text-light);
}

.bg-dark-green p {
  color: #E2E8F0;
}

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

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

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

/* --------------------------------------------------------------------------
   HERO HEADER SECTION (Full Screen)
   -------------------------------------------------------------------------- */
.hero-header {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: var(--primary-green-deep);
}

.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  animation: heroZoom 25s ease-out infinite alternate;
}

@keyframes heroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg, 
    rgba(13, 53, 18, 0.45) 0%, 
    rgba(13, 53, 18, 0.35) 50%,
    rgba(13, 53, 18, 0.85) 100%
  );
  z-index: 1;
}

/* Floating Ecosystem Badges in Hero */
.hero-badges-cloud {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.badge-item {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 50px;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  animation: floatBadge 6s ease-in-out infinite alternate;
}

.badge-item svg {
  width: 20px;
  height: 20px;
  fill: var(--gold-accent);
}

.badge-item:nth-child(1) { top: 18%; left: 8%; animation-delay: 0s; }
.badge-item:nth-child(2) { top: 25%; right: 10%; animation-delay: 1s; }
.badge-item:nth-child(3) { top: 40%; left: 5%; animation-delay: 2s; }
.badge-item:nth-child(4) { top: 45%; right: 7%; animation-delay: 1.5s; }
.badge-item:nth-child(5) { bottom: 25%; left: 9%; animation-delay: 0.5s; }
.badge-item:nth-child(6) { bottom: 22%; right: 12%; animation-delay: 2.5s; }

@keyframes floatBadge {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-12px); }
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 1100px;
  padding: 0 24px;
}

.hero-kicker {
  display: inline-block;
  background: var(--gold-accent);
  color: #000;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 20px;
  border-radius: 4px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-glow);
}

.hero-title {
  color: #FFFFFF;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 24px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-title .highlight-gold {
  color: var(--gold-accent);
  display: block;
  font-size: clamp(3rem, 7.5vw, 5.8rem);
  letter-spacing: -0.01em;
}

.hero-subtitle {
  color: #E2E8F0;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-top: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-subtitle span {
  display: inline-flex;
  align-items: center;
}

.hero-subtitle span:not(:last-child)::after {
  content: "•";
  margin-left: 12px;
  color: var(--gold-accent);
}

.scroll-down-btn {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.scroll-down-btn:hover {
  opacity: 1;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  margin-top: 8px;
  animation: bounceArrow 2s infinite;
}

@keyframes bounceArrow {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(8px); }
  60% { transform: translateY(4px); }
}

/* --------------------------------------------------------------------------
   MỞ BÀI (MAGAZINE SAPO BLOCK)
   -------------------------------------------------------------------------- */
.sapo-magazine-section {
  padding: 120px 0 80px 0;
  background-color: var(--bg-white);
}

.sapo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.sapo-content {
  position: relative;
}

.sapo-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary-green);
}

.sapo-text {
  font-size: 1.35rem; /* ~22px */
  line-height: 1.8;
  color: #1E293B;
  font-weight: 500;
  padding-top: 24px;
}

.sapo-text p:first-child::first-letter {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  float: left;
  line-height: 0.85;
  padding-right: 12px;
  padding-top: 4px;
  color: var(--primary-green);
  font-weight: 800;
}

.sapo-svg-card {
  background: var(--bg-light-gray);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.sapo-svg-card h4 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-green);
  margin-bottom: 20px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   SECTION HEADERS & STYLES
   -------------------------------------------------------------------------- */
.section-header-badge {
  display: inline-block;
  color: var(--primary-green);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-main-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 16px;
}

.section-main-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green), var(--gold-accent));
  border-radius: 2px;
}

/* Image styling */
.img-editorial {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin: 40px 0;
  display: block;
  object-fit: cover;
}

.img-caption {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: -24px;
  margin-bottom: 40px;
  font-style: italic;
}

/* Sticky Image Scrolly Layout */
.sticky-scrolly-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin: 60px 0;
  align-items: start;
}

.sticky-media-box {
  position: sticky;
  top: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.sticky-media-box img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

/* --------------------------------------------------------------------------
   INFOGRAPHIC COMMON CONTAINERS
   -------------------------------------------------------------------------- */
.infographic-wrapper {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 40px;
  margin: 60px 0;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  position: relative;
}

.infographic-title {
  font-size: 1.5rem; /* ~24px */
  color: var(--primary-green-dark);
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.infographic-title svg {
  width: 28px;
  height: 28px;
  fill: var(--gold-accent);
}

/* Minimum font in infographics is 18px */
.infographic-wrapper text {
  font-family: var(--font-family);
  font-size: 18px !important;
  fill: var(--text-dark);
  font-weight: 500;
}

.infographic-wrapper text.title-text {
  font-size: 20px !important;
  font-weight: 700;
  fill: var(--primary-green-dark);
}

.infographic-wrapper text.highlight-num {
  font-size: 28px !important;
  font-weight: 800;
  fill: var(--primary-green);
}

/* --------------------------------------------------------------------------
   INFOGRAPHIC 2: DASHBOARD STATS (Cần Thơ hỗ trợ HTX)
   -------------------------------------------------------------------------- */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.stat-card {
  background: var(--bg-light-gray);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-green);
}

.stat-card.gold::before {
  background: var(--gold-accent);
}

.stat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #E8F5E9;
  border-radius: 50%;
  color: var(--primary-green);
}

.stat-card.gold .stat-icon {
  background: var(--gold-light);
  color: var(--gold-accent-hover);
}

.stat-number-wrap {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary-green-dark);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card.gold .stat-number-wrap {
  color: #D97706;
}

.stat-unit {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-accent);
  margin-left: 4px;
}

.stat-label {
  font-size: 1.125rem; /* 18px min */
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   PARALLAX SCROLL & QUOTE SECTION
   -------------------------------------------------------------------------- */
.parallax-section {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 53, 18, 0.75);
}

.parallax-quote-box {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px;
  text-align: center;
  color: #FFFFFF;
}

.parallax-quote-box blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.4;
  color: #FFFFFF;
  position: relative;
}

.parallax-quote-box blockquote::before {
  content: "“";
  font-size: 5rem;
  color: var(--gold-accent);
  position: absolute;
  top: -40px;
  left: -20px;
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   INFOGRAPHIC STACK / PYRAMID (Giá trị nông sản)
   -------------------------------------------------------------------------- */
.pyramid-stack-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.pyramid-level {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-radius: var(--radius-md);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.125rem; /* 18px */
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.pyramid-level:hover {
  transform: scale(1.02);
}

.pyramid-level .level-name {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.15rem;
}

.pyramid-level .level-name svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.pyramid-level .level-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.95rem;
}

/* Color levels */
.level-7 { width: 100%; background: #1B5E20; }
.level-6 { width: 92%;  background: #2E7D32; }
.level-5 { width: 84%;  background: #388E3C; }
.level-4 { width: 76%;  background: #43A047; }
.level-3 { width: 68%;  background: #66BB6A; color: #0F172A; }
.level-2 { width: 60%;  background: #FBC02D; color: #0F172A; }
.level-1 { width: 52%;  background: #F9A825; color: #0F172A; font-size: 1.3rem; }

/* --------------------------------------------------------------------------
   INTERACTIVE VALUE CHAIN NODES (5 Mắt Xích)
   -------------------------------------------------------------------------- */
.value-chain-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 50px 0;
  position: relative;
  flex-wrap: nowrap;
}

.value-chain-container::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 5%;
  width: 90%;
  height: 4px;
  background: var(--border-green);
  z-index: 1;
  transform: translateY(-50%);
}

.chain-node {
  position: relative;
  z-index: 2;
  background: #FFFFFF;
  border: 3px solid var(--primary-green);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  width: 18%;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.chain-node.active-glow {
  border-color: var(--gold-accent);
  box-shadow: 0 0 25px rgba(249, 168, 37, 0.6);
  transform: translateY(-8px);
}

.chain-node-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px auto;
  background: var(--primary-green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green-dark);
}

.chain-node-title {
  font-size: 1.125rem; /* 18px */
  font-weight: 700;
  color: var(--text-dark);
}

/* --------------------------------------------------------------------------
   FULLSCREEN QUOTE BLOCK
   -------------------------------------------------------------------------- */
.fullscreen-quote-block {
  background: var(--primary-green-deep);
  color: #FFFFFF;
  padding: 120px 24px;
  text-align: center;
  position: relative;
}

.fullscreen-quote-block blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.4;
  max-width: 1000px;
  margin: 0 auto;
  color: #FFFFFF;
}

.fullscreen-quote-block span.highlight {
  color: var(--gold-accent);
}

/* --------------------------------------------------------------------------
   PROFILE & TIMELINE INFOGRAPHICS (PHẦN 3)
   -------------------------------------------------------------------------- */
.profile-card-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  background: var(--bg-light-gray);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-light);
}

.profile-card-header {
  background: var(--primary-green);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.profile-card-header h3 {
  color: #FFFFFF;
  font-size: 1.6rem;
  margin-top: 12px;
}

.profile-stats-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.profile-stat-item {
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  padding: 18px;
  border-left: 4px solid var(--primary-green);
  box-shadow: var(--shadow-sm);
}

.profile-stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profile-stat-value {
  font-size: 1.25rem; /* 20px */
  font-weight: 700;
  color: var(--primary-green-dark);
  margin-top: 4px;
}

/* Horizontal Timeline Infographic */
.timeline-infographic {
  position: relative;
  margin: 40px 0;
}

.timeline-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}

.timeline-step {
  background: #FFFFFF;
  border: 2px solid var(--border-green);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.timeline-step-num {
  width: 36px;
  height: 36px;
  background: var(--primary-green);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 12px;
}

.timeline-step-title {
  font-size: 1.125rem; /* 18px */
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.timeline-step-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Closed loop flow */
.closed-loop-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary-green-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 24px;
  gap: 8px;
}

.flow-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.125rem; /* 18px */
  color: var(--primary-green-dark);
}

.flow-arrow {
  color: var(--gold-accent);
  font-size: 1.4rem;
  font-weight: 900;
}

/* --------------------------------------------------------------------------
   KHỐI TỔNG KẾT (FULL-WIDTH ECOSYSTEM & GEAR ROTATION)
   -------------------------------------------------------------------------- */
.summary-ecosystem-section {
  background: var(--primary-green-deep);
  color: #FFFFFF;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.summary-ecosystem-section p {
  color: #CBD5E1;
}

.summary-title {
  color: #FFFFFF;
  text-align: center;
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 16px;
}

.summary-subtitle {
  color: var(--gold-accent);
  text-align: center;
  font-size: 1.25rem;
  margin-bottom: 60px;
}

/* Interactive Gear Mechanism */
.gear-infographic-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gear-svg-container {
  width: 100%;
  height: auto;
}

.gear-center {
  transform-origin: 400px 300px;
  animation: rotateGearClockwise 40s linear infinite;
}

.gear-satellite {
  transform-origin: center;
  animation: rotateGearCounter 25s linear infinite;
}

@keyframes rotateGearClockwise {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes rotateGearCounter {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

/* --------------------------------------------------------------------------
   KẾT THÚC (FINAL OVERLAY & OUTRO)
   -------------------------------------------------------------------------- */
.outro-section {
  position: relative;
  width: 100vw;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000000;
  overflow: hidden;
}

.outro-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: contrast(1.05);
}

.outro-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}

.outro-content {
  position: relative;
  z-index: 2;
  max-width: 950px;
  padding: 0 24px;
  text-align: center;
  color: #FFFFFF;
}

.outro-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.5;
  color: #FFFFFF;
  margin-bottom: 40px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
}

.outro-author {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-block;
  border-bottom: 2px solid var(--gold-accent);
  padding-bottom: 6px;
}

.outro-footer-note {
  margin-top: 80px;
  font-size: 0.95rem;
  color: #94A3B8;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN (MOBILE & TABLET OPTIMIZATIONS)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  body {
    font-size: 19px; /* Mobile readability minimum */
  }

  p {
    font-size: 1.1875rem; /* 19px */
  }

  .sapo-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sticky-scrolly-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sticky-media-box {
    position: relative;
    top: 0;
  }

  .sticky-media-box img {
    height: 320px;
  }

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

  .value-chain-container {
    flex-direction: column;
    gap: 20px;
  }

  .value-chain-container::before {
    display: none;
  }

  .chain-node {
    width: 100%;
  }

  .profile-card-grid {
    grid-template-columns: 1fr;
  }

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

  .closed-loop-flow {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-badges-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    margin-top: 24px;
    padding: 0 16px;
  }

  .badge-item {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    animation: none !important;
    font-size: 13px;
    padding: 6px 12px;
  }
}

@media (max-width: 640px) {
  .section-wrapper {
    padding: 55px 0;
  }

  .container-narrow,
  .container-wide,
  .container-full {
    padding: 0 16px;
  }

  .hero-header {
    min-height: 100vh;
    height: auto;
    padding: 80px 16px 60px 16px;
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.25;
  }

  .hero-title .highlight-gold {
    font-size: 2.3rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    gap: 6px;
  }

  .section-main-title {
    font-size: 1.65rem;
    margin-bottom: 28px;
  }

  p {
    font-size: 1.125rem; /* 18px */
    line-height: 1.75;
    margin-bottom: 1.4rem;
  }

  p.lead {
    font-size: 1.2rem;
    line-height: 1.7;
  }

  .sapo-text p:first-child::first-letter {
    font-size: 3.2rem;
  }

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

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

  .timeline-track {
    grid-template-columns: 1fr;
  }

  .pyramid-level {
    width: 100% !important;
    font-size: 0.95rem;
    padding: 12px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .pyramid-level .level-badge {
    align-self: flex-start;
    font-size: 0.85rem;
  }

  .infographic-wrapper {
    padding: 24px 14px;
    margin: 36px 0;
    overflow-x: auto; /* Enable horizontal scroll for wide SVG infographics on small screens */
    -webkit-overflow-scrolling: touch;
  }

  .infographic-wrapper svg {
    min-width: 550px; /* Ensure readability of SVG diagrams on small screens without shrinking text */
    height: auto;
  }

  .sapo-svg-card {
    padding: 20px 12px;
  }

  .sapo-svg-card svg {
    min-width: 480px;
  }

  .sapo-svg-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .parallax-section {
    height: 50vh;
    min-height: 320px;
  }

  .parallax-quote-box blockquote {
    font-size: 1.25rem;
  }

  .fullscreen-quote-block {
    padding: 70px 16px;
  }

  .fullscreen-quote-block blockquote {
    font-size: 1.4rem;
  }

  .outro-section {
    min-height: 80vh;
  }

  .outro-quote {
    font-size: 1.35rem;
  }

  .outro-author {
    font-size: 1.2rem;
  }

  .scroll-down-btn {
    bottom: 15px;
  }
}

