/* ==========================================================================
   EMAGAZINE: HÀNH TRÌNH VƯƠN XA CỦA NÔNG SẢN HTX
   Phong cách: Báo chí dữ liệu hiện đại, thẩm mỹ tinh tế, thị giác cao cấp
   ========================================================================== */

/* ---------------- CSS Variables ---------------- */
:root {
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-body: 'Noto Serif', Georgia, 'Times New Roman', serif;
  --font-sans: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;

  /* Bảng màu thiên nhiên núi rừng & đất đai Cao Bằng */
  --c-bg: #faf7f2;
  --c-bg-card: #ffffff;
  --c-bg-dark: #12181b;
  --c-text-primary: #191e21;
  --c-text-body: #2c3338;
  --c-text-muted: #667279;
  
  --c-accent: #c4833f;
  --c-accent-dark: #8c531d;
  --c-accent-light: #f6ecdf;
  --c-gold: #d4a373;
  
  --c-green: #1f5f3e;
  --c-green-dark: #143e29;
  --c-green-light: #eaf4ee;
  
  --c-border: #e8e3d8;
  --c-border-strong: #d0c8b8;
  
  --shadow-sm: 0 2px 8px rgba(18, 24, 27, 0.05);
  --shadow-md: 0 10px 30px -5px rgba(18, 24, 27, 0.08);
  --shadow-lg: 0 20px 45px -10px rgba(18, 24, 27, 0.12);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

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

html {
  font-size: 18px;
  scroll-behavior: smooth;
  background-color: var(--c-bg);
  color: var(--c-text-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  line-height: 1.85;
  overflow-x: hidden;
  background-color: var(--c-bg);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------------- Grid & Containers ---------------- */
.col {
  width: 100%;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.body {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.body p {
  font-size: 1.15rem; /* ~20.7px - thỏa mãn >= 16px */
  line-height: 1.95;
  margin-bottom: 2rem;
  color: var(--c-text-body);
  letter-spacing: -0.005em;
  font-weight: 400;
}

/* Dropcap đoạn mở đầu */
.dropcap::first-letter {
  float: left;
  font-family: var(--font-serif);
  font-size: 4.8rem;
  line-height: 0.85;
  padding-top: 6px;
  padding-right: 14px;
  padding-bottom: 2px;
  color: var(--c-accent-dark);
  font-weight: 700;
}

/* Trích dẫn báo chí (Quote) */
.quote {
  position: relative;
  margin: 3.5rem 0;
  padding: 2.2rem 2.5rem;
  background: linear-gradient(135deg, rgba(234, 244, 238, 0.6) 0%, rgba(246, 236, 223, 0.4) 100%);
  border-left: 4px solid var(--c-green);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem; /* ~24.3px */
  line-height: 1.7;
  color: var(--c-green-dark);
  margin-bottom: 0;
  font-weight: 500;
}

.quote::before {
  content: "“";
  position: absolute;
  top: -15px;
  left: 18px;
  font-family: var(--font-serif);
  font-size: 5rem;
  color: rgba(31, 95, 62, 0.15);
  line-height: 1;
  pointer-events: none;
}

mark {
  background: linear-gradient(120deg, rgba(212, 163, 115, 0.25) 0%, rgba(212, 163, 115, 0.5) 100%);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  color: inherit;
}

.closing {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem !important;
  color: var(--c-green-dark) !important;
  line-height: 1.85 !important;
  padding-top: 1rem;
}

.byline {
  font-family: var(--font-sans);
  font-size: 1.05rem; /* ~19px */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-accent-dark);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.byline__rule {
  width: 48px;
  height: 2px;
  background-color: var(--c-accent);
  display: inline-block;
}

/* ---------------- HERO SECTION ---------------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--c-bg-dark);
  padding: 5rem 1.5rem 5rem;
}

.hero__media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 115%;
  z-index: 1;
  will-change: transform;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.88) contrast(1.05);
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(
    circle at center,
    rgba(18, 24, 27, 0.45) 0%,
    rgba(18, 24, 27, 0.85) 75%,
    rgba(18, 24, 27, 0.98) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 980px;
  text-align: center;
  color: #ffffff;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.hero__ornament {
  margin: 0 auto 1.5rem;
  width: 140px;
  height: 26px;
  opacity: 0.85;
}

.hero__ornament svg path {
  fill: none;
  stroke: var(--c-gold);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: drawLine 2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.3s;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero__title .line {
  display: block;
  overflow: hidden;
}

.hero__title .line span {
  display: inline-block;
  transform: translateY(105%);
  animation: titleReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__title .line:nth-child(1) span { animation-delay: 0.2s; }
.hero__title .line:nth-child(2) span { animation-delay: 0.35s; }
.hero__title .line:nth-child(3) span { animation-delay: 0.5s; }

@keyframes titleReveal {
  to {
    transform: translateY(0);
  }
}

.hero__title .accent span {
  color: #f7d08a;
  font-style: italic;
  font-weight: 900;
}

.hero__sapo {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.8;
  max-width: 840px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.8s;
}

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

.hero__cue {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.hero__cue:hover {
  color: #ffffff;
}

.hero__cue .ic {
  width: 28px;
  height: 28px;
  animation: bounceCue 2s infinite ease-in-out;
}

@keyframes bounceCue {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ---------------- INTRO SECTION ---------------- */
.intro {
  position: relative;
  padding: 5rem 0 3.5rem;
  background-color: var(--c-bg);
}

.intro__deco {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  overflow: hidden;
  opacity: 0.35;
  pointer-events: none;
}

.intro__deco svg {
  width: 100%;
  height: 100%;
}

.contour {
  fill: none;
  stroke: var(--c-accent);
  stroke-width: 1.5;
  stroke-dasharray: 6 6;
}

.contour.c2 {
  stroke: var(--c-green);
  opacity: 0.6;
}

.lead {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.8vw, 1.65rem);
  line-height: 1.75;
  color: var(--c-green-dark);
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 1.5rem 0;
  border-top: 2px solid var(--c-border);
  border-bottom: 2px solid var(--c-border);
}

/* ---------------- CHAPTER HEADERS ---------------- */
.chapter {
  position: relative;
  padding-bottom: 4rem;
}

.chapter__hero {
  position: relative;
  width: 100%;
  height: 65vh;
  min-height: 440px;
  max-height: 680px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--c-bg-dark);
  margin-bottom: 3rem;
}

.chapter__media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  z-index: 1;
  will-change: transform;
}

.chapter__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.85);
}

.chapter__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(18, 24, 27, 0.1) 0%,
    rgba(18, 24, 27, 0.4) 40%,
    rgba(18, 24, 27, 0.92) 100%
  );
}

.chapter__title-wrap {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 3.5rem;
}

.chapter__num {
  font-family: var(--font-sans);
  font-size: 1.35rem; /* >= 18px */
  font-weight: 800;
  letter-spacing: 0.25em;
  color: var(--c-gold);
  display: block;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.chapter__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.22;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.6);
}

/* ---------------- PHOTO COMPONENT ---------------- */
.photo {
  max-width: 1040px;
  margin: 3.5rem auto;
  padding: 0 24px;
}

.photo__frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
  background-color: #1a2024;
}

.photo__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo:hover .photo__frame img {
  transform: scale(1.03);
}

/* ==========================================================================
   INFOGRAPHICS: THUẦN DỮ LIỆU, ĐỒ HỌA SVG, TRỰC QUAN
   Cỡ chữ toàn bộ infographic MIN 18px theo yêu cầu
   ========================================================================== */

.info {
  position: relative;
  max-width: 1040px;
  margin: 4.5rem auto;
  padding: 0 24px;
  font-family: var(--font-sans);
}

.info__bg {
  position: absolute;
  inset: 0 24px;
  background: #ffffff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  z-index: 1;
}

.info__inner {
  position: relative;
  z-index: 2;
  padding: 3.5rem 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Thẻ đánh dấu infographic */
.info__tag {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: -1rem;
}

.info__tag span {
  font-family: var(--font-sans);
  font-size: 1.15rem; /* ~20.7px >= 18px */
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--c-accent-dark);
}

.info__tag i {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--c-border-strong), transparent);
}

/* ================= ICON & SVG ================= */
.ic {
  display: inline-block;
  width: 28px;
  height: 28px;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

/* ================= STATS BLOCKS (Số liệu lớn) ================= */
.stats {
  display: grid;
  gap: 24px;
  width: 100%;
}

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

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

.stat {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: var(--c-accent);
}

.stat__icon {
  width: 38px;
  height: 38px;
  color: var(--c-green);
  margin-bottom: 1rem;
}

.stat__num {
  font-family: var(--font-sans);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--c-text-primary);
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 0.6rem;
  letter-spacing: -0.03em;
}

.stat__num small {
  font-size: 1.8rem;
  color: var(--c-accent-dark);
  font-weight: 700;
}

.stat__num em {
  font-style: normal;
  font-size: 1.25rem; /* ~22.5px >= 18px */
  font-weight: 600;
  color: var(--c-text-muted);
}

.stat__num.sm {
  font-size: 2.4rem;
}

.stat__num.sm em {
  font-size: 1.15rem; /* ~20.7px >= 18px */
}

.stat__label {
  font-size: 1.15rem; /* ~20.7px >= 18px */
  font-weight: 600;
  color: var(--c-text-muted);
  line-height: 1.4;
}

/* ================= CHUỖI LIÊN KẾT 3 BÊN (Chain) ================= */
.chain {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(234, 244, 238, 0.4) 0%, rgba(246, 236, 223, 0.3) 100%);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 2.2rem 2.5rem;
  gap: 16px;
}

.chain__node {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.chain__circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--c-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-green);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.chain__node:hover .chain__circle {
  transform: scale(1.08);
  border-color: var(--c-green);
}

.chain__circle .ic {
  width: 36px;
  height: 36px;
}

.chain__node b {
  font-size: 1.25rem; /* ~22.5px >= 18px */
  font-weight: 700;
  color: var(--c-text-primary);
  margin-bottom: 0.3rem;
}

.chain__node span {
  font-size: 1.05rem; /* ~19px >= 18px */
  color: var(--c-text-muted);
  font-weight: 500;
}

.chain__node--hub .chain__circle {
  width: 86px;
  height: 86px;
  background: var(--c-green);
  color: #ffffff;
  border-color: var(--c-green-dark);
  box-shadow: 0 8px 24px rgba(31, 95, 62, 0.25);
}

.chain__node--hub .chain__circle .ic {
  width: 44px;
  height: 44px;
}

.chain__node--hub b {
  color: var(--c-green-dark);
}

.chain__link {
  flex: 0 0 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.chain__link i {
  width: 100%;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--c-accent) 0, var(--c-accent) 8px, transparent 8px, transparent 14px);
  position: relative;
}

.chain__link i::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-top: 3px solid var(--c-accent);
  border-right: 3px solid var(--c-accent);
  transform: rotate(45deg);
}

/* ================= 5 BƯỚC CHẤT LƯỢNG (Steps) ================= */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 30px;
  right: 30px;
  height: 3px;
  background: var(--c-border);
  z-index: 1;
}

.steps li {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.steps__dot {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--c-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-accent-dark);
  margin-bottom: 0.8rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.steps li:hover .steps__dot {
  transform: translateY(-4px);
  border-color: var(--c-accent);
  background: var(--c-accent-light);
}

.steps__dot .ic {
  width: 30px;
  height: 30px;
}

.steps b {
  font-size: 1.12rem; /* ~20px >= 18px */
  font-weight: 700;
  color: var(--c-text-primary);
}

/* ================= CHỨNG NHẬN (Badges) ================= */
.badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 1.6rem 2rem;
  background: #ffffff;
  border: 2px solid var(--c-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.badge__stars {
  display: flex;
  gap: 4px;
  color: #e59819;
}

.badge__stars .ic {
  width: 28px;
  height: 28px;
  fill: #e59819;
  stroke: none;
}

.badge__shield {
  width: 44px;
  height: 44px;
  color: var(--c-green);
}

.badge__txt {
  display: flex;
  flex-direction: column;
}

.badge__txt b {
  font-size: 1.35rem; /* ~24.3px >= 18px */
  font-weight: 800;
  color: var(--c-text-primary);
  line-height: 1.2;
}

.badge__txt span {
  font-size: 1.05rem; /* ~19px >= 18px */
  color: var(--c-text-muted);
  font-weight: 600;
}

/* ================= INFOGRAPHIC 2: BAO BÌ & QR ================= */
.duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pack {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.pack__icon {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 2px solid var(--c-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-accent-dark);
}

.pack__icon .ic {
  width: 36px;
  height: 36px;
}

.chips {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chips li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 1rem 1.4rem;
  background: #ffffff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-size: 1.05rem; /* ~19px >= 18px */
  font-weight: 600;
  color: var(--c-text-primary);
}

.chips li .ic {
  width: 24px;
  height: 24px;
  color: var(--c-accent);
}

.chips li .x, .chips li .ok {
  margin-left: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.chips li .x {
  background: #fde8e8;
}

.chips li .x::after {
  content: "✕";
  color: #c81e1e;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.chips li .ok {
  background: #def7ec;
}

.chips li .ok::after {
  content: "✓";
  color: #0e9f6e;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* Card QR Code */
.qr {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
}

.qr__code {
  position: relative;
  width: 140px;
  height: 140px;
  background: #ffffff;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--c-border-strong);
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.qr__svg {
  width: 100%;
  height: 100%;
  display: block;
}

.qr__scan {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, #e76f51, transparent);
  box-shadow: 0 0 10px #e76f51;
  animation: qrScanning 2.4s ease-in-out infinite alternate;
}

@keyframes qrScanning {
  0% { top: 6px; }
  100% { top: calc(100% - 10px); }
}

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

.qr__rows li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.05rem; /* ~19px >= 18px */
  font-weight: 600;
  color: var(--c-text-primary);
}

.qr__rows li .ic {
  width: 26px;
  height: 26px;
  color: var(--c-green);
  flex-shrink: 0;
}

/* Sản lượng ngày nắng ráo */
.yield {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(246, 236, 223, 0.6) 0%, rgba(255, 255, 255, 0.9) 100%);
  border: 1px solid var(--c-accent-light);
  border-left: 6px solid var(--c-accent);
  border-radius: var(--radius-md);
  padding: 2.2rem 2.5rem;
  gap: 24px;
}

.yield__sun {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fdf3d8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d97706;
}

.yield__sun .ic {
  width: 38px;
  height: 38px;
  animation: sunRotate 20s linear infinite;
}

@keyframes sunRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.yield__num {
  flex: 1;
}

.yield__sacks {
  display: flex;
  gap: 8px;
  align-items: center;
}

.yield__sacks .sack {
  width: 32px;
  height: 32px;
  color: var(--c-accent-dark);
  transition: transform 0.2s ease;
}

.yield__sacks .sack:hover {
  transform: translateY(-4px) scale(1.15);
}

.yield__sacks .sack--maybe {
  opacity: 0.45;
  stroke-dasharray: 4 2;
}

/* Kênh phân phối */
.channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.channel {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
}

.channel__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--c-border);
}

.channel__head .ic {
  width: 28px;
  height: 28px;
  color: var(--c-green);
  flex-shrink: 0;
}

.channel__head b {
  font-size: 1.15rem; /* ~20.7px >= 18px */
  font-weight: 700;
  color: var(--c-text-primary);
  line-height: 1.3;
}

.channel ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.channel li {
  font-size: 1.05rem; /* ~19px >= 18px */
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.channel li.pro {
  color: var(--c-green-dark);
  font-weight: 600;
}

.channel li.pro .ic {
  width: 22px;
  height: 22px;
  color: var(--c-green);
  flex-shrink: 0;
}

.channel li.con {
  color: #991b1b;
}

.channel li.con .ic {
  width: 22px;
  height: 22px;
  color: #dc2626;
  flex-shrink: 0;
}

.verdict {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 1.4rem 2rem;
  background: #ffffff;
  border: 2px dashed var(--c-accent);
  border-radius: var(--radius-md);
}

.verdict .ic {
  width: 32px;
  height: 32px;
  color: var(--c-accent-dark);
}

.verdict span {
  font-size: 1.25rem; /* ~22.5px >= 18px */
  font-weight: 700;
  color: var(--c-accent-dark);
  letter-spacing: 0.02em;
}

/* ================= INFOGRAPHIC 3: SẢN LƯỢNG & 4 TRỤ CỘT ================= */
.bars {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bar__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.bar__label {
  font-size: 1.15rem; /* ~20.7px >= 18px */
  font-weight: 700;
  color: var(--c-text-primary);
}

.bar__track {
  width: 100%;
  height: 18px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  overflow: hidden;
  padding: 2px;
}

.bar__fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--c-accent) 0%, var(--c-green) 100%);
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bar.animated .bar__fill {
  width: var(--w);
}

/* 10 Người lao động thời vụ */
.people {
  display: flex;
  gap: 4px;
  margin-bottom: 0.8rem;
}

.people .person {
  width: 24px;
  height: 24px;
  color: var(--c-border-strong);
  transition: color 0.4s ease, transform 0.3s ease;
}

.stat.revealed .people .person {
  color: var(--c-green);
  animation: personPop 0.5s ease backwards;
  animation-delay: calc(var(--i) * 0.08s);
}

@keyframes personPop {
  0% { transform: scale(0.4); opacity: 0; }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

/* Chế biến sâu vs Củ tươi */
.value {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 2.2rem 2rem;
  background: linear-gradient(135deg, rgba(234, 244, 238, 0.5) 0%, rgba(246, 236, 223, 0.4) 100%);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
}

.value__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.value__circle {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.value__circle.sm {
  width: 68px;
  height: 68px;
  background: #ffffff;
  border: 2px solid var(--c-border-strong);
  color: var(--c-accent-dark);
}

.value__circle.lg {
  width: 90px;
  height: 90px;
  background: var(--c-green);
  border: 3px solid var(--c-green-dark);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(31, 95, 62, 0.3);
}

.value__circle.sm .ic { width: 34px; height: 34px; }
.value__circle.lg .ic { width: 46px; height: 46px; }

.value__item b {
  font-size: 1.25rem; /* ~22.5px >= 18px */
  font-weight: 700;
  color: var(--c-text-primary);
}

.value__arrow {
  flex: 0 1 200px;
  height: 60px;
}

.value__arrow svg {
  width: 100%;
  height: 100%;
}

.value__path {
  fill: none;
  stroke: var(--c-accent);
  stroke-width: 3.5;
  stroke-dasharray: 6 6;
  animation: flowDash 3s linear infinite;
}

.value__head {
  fill: none;
  stroke: var(--c-accent);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes flowDash {
  to { stroke-dashoffset: -48; }
}

/* 4 Trụ Cột (Pillars) */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pillar {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.pillar:hover {
  transform: translateY(-6px);
  border-color: var(--c-green);
  box-shadow: var(--shadow-sm);
}

.pillar__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-green);
  margin-bottom: 1rem;
}

.pillar__icon .ic {
  width: 30px;
  height: 30px;
}

.pillar b {
  font-size: 1.2rem; /* ~21.6px >= 18px */
  font-weight: 700;
  color: var(--c-text-primary);
  margin-bottom: 0.3rem;
}

.pillar span {
  font-size: 1.05rem; /* ~19px >= 18px */
  color: var(--c-text-muted);
  font-weight: 500;
}

/* 4 Bên Liên Kết Vòng Tròn (Circle) */
.circle {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
  margin: 1.5rem auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circle__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: var(--c-border);
  stroke-width: 3;
  stroke-dasharray: 6 6;
}

.ring-fg {
  fill: none;
  stroke: var(--c-green);
  stroke-width: 3.5;
  stroke-dasharray: 942;
  stroke-dashoffset: 942;
  transition: stroke-dashoffset 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.circle.revealed .ring-fg {
  stroke-dashoffset: 0;
}

.circle__core {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(196, 131, 63, 0.35);
  z-index: 2;
}

.circle__core .ic {
  width: 38px;
  height: 38px;
}

.circle__node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 3;
}

.circle__node span {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--c-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-green-dark);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.circle__node:hover span {
  transform: scale(1.12);
  border-color: var(--c-green);
}

.circle__node span .ic {
  width: 30px;
  height: 30px;
}

.circle__node b {
  font-size: 1.15rem; /* ~20.7px >= 18px */
  font-weight: 700;
  color: var(--c-text-primary);
  white-space: nowrap;
}

/* Tọa độ 4 nút quanh vòng tròn */
.circle__node.n1 { top: 0; left: 50%; transform: translateX(-50%); }
.circle__node.n2 { top: 50%; right: 0; transform: translateY(-50%); }
.circle__node.n3 { bottom: 0; left: 50%; transform: translateX(-50%); }
.circle__node.n4 { top: 50%; left: 0; transform: translateY(-50%); }

/* ---------------- FOOTER ORNAMENT ---------------- */
.end {
  text-align: center;
  padding: 4rem 1.5rem 6rem;
  background-color: var(--c-bg);
}

.end__mark {
  width: 140px;
  height: 26px;
  opacity: 0.6;
}

.end__mark path {
  fill: none;
  stroke: var(--c-accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   SCROLL-TRIGGER ANIMATION & REVEAL EFFECTS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}

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

/* ==========================================================================
   RESPONSIVE DESIGN CHO TABLET & MOBILE
   ========================================================================== */
@media (max-width: 1024px) {
  .info__inner {
    padding: 3rem 2.5rem;
    gap: 2.5rem;
  }
  
  .stats--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats--3 .stat:nth-child(3) {
    grid-column: span 2;
  }
  
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 16.5px; /* Thỏa mãn >= 16px */
  }

  .col {
    padding-left: 20px;
    padding-right: 20px;
  }

  .body {
    padding-top: 1.8rem;
    padding-bottom: 1.8rem;
  }

  .body p {
    font-size: 1.15rem; /* ~19px */
    line-height: 1.85;
    margin-bottom: 1.6rem;
  }

  .quote {
    padding: 1.8rem 1.6rem;
    margin: 2.5rem 0;
  }

  .quote p {
    font-size: 1.25rem;
  }

  .hero {
    min-height: 90vh;
    padding: 4rem 1.2rem 3.5rem;
  }

  .hero__title {
    font-size: clamp(2rem, 7.5vw, 3rem);
  }

  .chapter__hero {
    height: 52vh;
    min-height: 380px;
    margin-bottom: 2rem;
  }

  .chapter__title-wrap {
    padding: 0 20px 2.2rem;
  }

  .chapter__title {
    font-size: clamp(1.8rem, 6.2vw, 2.5rem);
  }

  .info {
    margin: 3rem auto;
    padding: 0 16px;
  }

  .info__bg {
    inset: 0 16px;
  }

  .info__inner {
    padding: 2.2rem 1.6rem;
    gap: 2.2rem;
  }

  /* Đảm bảo toàn bộ chữ trong Infographic >= 18px trên mobile */
  .stat__label,
  .chain__node b,
  .chain__node span,
  .steps b,
  .badge__txt b,
  .badge__txt span,
  .chips li,
  .qr__rows li,
  .channel__head b,
  .channel li,
  .verdict span,
  .bar__label,
  .pillar b,
  .pillar span,
  .circle__node b {
    font-size: 18px !important;
  }

  .stats--3,
  .stats--2 {
    grid-template-columns: 1fr;
  }

  .stats--3 .stat:nth-child(3) {
    grid-column: span 1;
  }

  .stat__num {
    font-size: 2.8rem;
  }

  .chain {
    flex-direction: column;
    padding: 1.8rem 1.4rem;
    gap: 16px;
  }

  .chain__link {
    transform: rotate(90deg);
    flex: 0 0 40px;
  }

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

  .steps::before {
    display: none;
  }

  .steps li {
    flex-direction: row;
    gap: 16px;
    text-align: left;
    background: var(--c-bg);
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--c-border);
  }

  .steps__dot {
    margin-bottom: 0;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
  }

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

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

  .qr {
    flex-direction: column;
    text-align: center;
  }

  .qr__rows {
    align-items: flex-start;
    width: 100%;
  }

  .yield {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.8rem 1.4rem;
  }

  .yield__sacks {
    flex-wrap: wrap;
  }

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

  .value {
    flex-direction: column;
    gap: 20px;
    padding: 2rem 1.4rem;
  }

  .value__arrow {
    transform: rotate(90deg);
    height: 80px;
    flex: 0 0 80px;
  }

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

  .circle {
    max-width: 320px;
  }

  .circle__node span {
    width: 48px;
    height: 48px;
  }

  .circle__node span .ic {
    width: 24px;
    height: 24px;
  }

  .circle__core {
    width: 64px;
    height: 64px;
  }

  .circle__core .ic {
    width: 30px;
    height: 30px;
  }
}
