/* ==========================================================================
   CODAVI Agritech — Demo 01 "Từ thực địa đến dữ liệu"
   Một stylesheet duy nhất. Mọi token nằm trong :root.
   ========================================================================== */

:root {
  /* Màu thương hiệu */
  --forest: #0E3B2E;
  --forest-900: #0A2C22;
  --forest-700: #14503F;
  --green: #1B7F3B;
  --green-700: #166A31;
  --lime: #8CC63F;
  --lime-300: #A6D766;
  --mint: #E8F4EC;
  --grey: #F4F7F5;
  --paper: #F7F4EE;           /* màu trung tính ấm bổ sung */
  --coffee: #6F4E37;
  --red: #C0392B;
  --ink: #14231C;
  --muted: #5E6B64;
  --line: #E2E8E4;
  --white: #FFFFFF;

  /* Chữ */
  --font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --fs-h1: clamp(2rem, 1.3rem + 3vw, 3.5rem);
  --fs-h2: clamp(1.5625rem, 1.05rem + 2.1vw, 2.625rem);
  --fs-h3: clamp(1.25rem, 1.12rem + .5vw, 1.4375rem);
  --fs-body: clamp(.9375rem, .9rem + .15vw, 1rem);
  --fs-lead: clamp(1.0625rem, .98rem + .35vw, 1.125rem);
  --fs-small: .875rem;
  --fs-xs: .8125rem;

  /* Hình khối */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 28px;
  --sh-1: 0 1px 2px rgba(14, 59, 46, .05), 0 2px 10px rgba(14, 59, 46, .05);
  --sh-2: 0 2px 4px rgba(14, 59, 46, .04), 0 18px 36px -14px rgba(14, 59, 46, .22);
  --sh-3: 0 32px 64px -24px rgba(10, 44, 34, .42);

  /* Bố cục */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(72px, 3.5rem + 5vw, 128px);
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --focus: var(--green);
}

@media (max-width: 991.98px) {
  :root { --header-h: 64px; }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html.is-locked { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  color: var(--forest);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 1.12; letter-spacing: -.5px; }
h2 { font-size: var(--fs-h2); line-height: 1.18; letter-spacing: -.4px; }
h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -.2px; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--green); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--green-700); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
strong { font-weight: 600; }

:focus-visible {
  outline: 2.5px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
.site-header, .drawer-panel, .hero, .page-hero, .cta-band, .site-footer { --focus: var(--lime); }
.site-header.is-scrolled { --focus: var(--green); }

::selection { background: var(--lime); color: var(--forest); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  left: 16px; top: -120px;
  z-index: 1000;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--forest);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--sh-3);
  transition: top .2s;
}
.skip-link:focus { top: 16px; color: var(--forest); }

/* Không có JS → AOS không được khởi tạo, nội dung vẫn hiển thị */
html.no-js [data-aos], html.no-aos [data-aos] { opacity: 1 !important; transform: none !important; }

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; padding-block: var(--section); }
.section--grey { background: var(--grey); }
.section--paper { background: var(--paper); }
.section--tight { padding-block: clamp(56px, 3rem + 3vw, 88px); }

/* Lưới dữ liệu mờ cho nền sáng */
.has-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(14, 59, 46, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 59, 46, .055) 1px, transparent 1px);
  background-size: 88px 88px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}
.has-grid > * { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(140, 198, 63, .22);
}
.eyebrow--light { color: var(--lime); }
.eyebrow--light::before { box-shadow: 0 0 0 4px rgba(140, 198, 63, .25); }

.mono {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--muted); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 2rem + 2vw, 64px); }
.section-head > p:not(.eyebrow) { margin-top: 18px; font-size: var(--fs-lead); color: var(--muted); max-width: 620px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center > p:not(.eyebrow) { margin-inline: auto; }
.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  max-width: none;
  flex-wrap: wrap;
}
.section-head--split > div { max-width: 680px; }
.section-head--split > div > p:not(.eyebrow) { margin-top: 18px; font-size: var(--fs-lead); color: var(--muted); }

.placeholder-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: var(--fs-small);
  color: var(--muted);
}
.placeholder-note svg { width: 18px; height: 18px; flex: none; color: var(--coffee); }

/* --------------------------------------------------------------------------
   Icons
   -------------------------------------------------------------------------- */
.i {
  width: 20px; height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.i--sm { width: 16px; height: 16px; }

.icon-chip {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--mint);
  color: var(--green);
  flex: none;
}
.icon-chip .i { width: 24px; height: 24px; }
.icon-chip--dark { background: rgba(10, 44, 34, .55); color: var(--lime); border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.icon-chip--round { border-radius: 50%; }

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--green);
  --btn-fg: #fff;
  --btn-bd: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .25s, transform .25s var(--ease);
}
.btn .i { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn:hover .i-arrow { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn--primary:hover { --btn-bg: var(--green-700); box-shadow: 0 12px 24px -12px rgba(27, 127, 59, .7); }
.btn--lime { --btn-bg: var(--lime); --btn-fg: var(--forest); }
.btn--lime:hover { --btn-bg: var(--lime-300); box-shadow: 0 14px 28px -14px rgba(140, 198, 63, .9); }
.btn--ghost { --btn-bg: #fff; --btn-fg: var(--forest); --btn-bd: var(--line); }
.btn--ghost:hover { --btn-bd: var(--forest); }
.btn--ghost-light { --btn-bg: rgba(255, 255, 255, .06); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn--ghost-light:hover { --btn-bg: rgba(255, 255, 255, .14); --btn-bd: #fff; }
.btn--sm { min-height: 42px; padding: 9px 18px; font-size: 14px; }
.btn--block { width: 100%; }

.btn[disabled], .btn[aria-disabled="true"] {
  --btn-bg: var(--grey);
  --btn-fg: var(--muted);
  --btn-bd: #CFD8D3;
  border-style: dashed;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
}
.link-arrow .i { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--green-700); text-decoration: underline; }
.link-arrow:hover .i { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Badges & placeholders
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge--sample { background: var(--paper); color: var(--coffee); border: 1px dashed rgba(111, 78, 55, .5); }
.badge--mint { background: var(--mint); color: var(--forest); }
.badge--red { background: var(--red); color: #fff; }
.badge--red::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.badge--photo {
  background: rgba(10, 44, 34, .72);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .2);
}
.badge--lime { background: rgba(140, 198, 63, .16); color: var(--lime); border: 1px solid rgba(140, 198, 63, .35); }
.badge--illus { background: transparent; color: rgba(255, 255, 255, .88); border: 1px dashed rgba(255, 255, 255, .55); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  color: #fff;
  transition: background-color .3s, box-shadow .3s, color .3s, transform .4s var(--ease);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -32px 0;
  background: linear-gradient(180deg, rgba(10, 44, 34, .55), rgba(10, 44, 34, 0));
  pointer-events: none;
  transition: opacity .3s;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -16px rgba(14, 59, 46, .25);
}
.site-header.is-scrolled::before { opacity: 0; }
.site-header.is-hidden { transform: translateY(-100%); }

.header-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand { display: inline-flex; align-items: center; flex: none; border-radius: 8px; }
.brand img {
  height: 46px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter .3s;
}
.site-header.is-scrolled .brand img { filter: none; }

.main-nav { margin-inline: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.nav-link:hover { color: inherit; background: rgba(255, 255, 255, .12); }
.site-header.is-scrolled .nav-link:hover { background: var(--grey); }
.nav-link[aria-current="page"], .nav-link.is-active { font-weight: 600; }
.nav-link[aria-current="page"]::after, .nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 1px;
  width: 5px; height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--lime);
}
.nav-toggle.is-active::after { margin-left: -10px; }
.site-header.is-scrolled .nav-link[aria-current="page"],
.site-header.is-scrolled .nav-link.is-active { color: var(--green); }
.nav-toggle .i { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.has-dropdown.is-open .nav-toggle .i { transform: rotate(180deg); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  width: 320px;
  padding: 8px;
  border-radius: var(--r-md);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--sh-3), 0 0 0 1px rgba(14, 59, 46, .06);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity .2s, transform .25s var(--ease), visibility .2s;
  --focus: var(--green);
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.has-dropdown.is-open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 992px) {
  .has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .has-dropdown:hover .nav-toggle .i { transform: rotate(180deg); }
}
.dropdown a {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  transition: background-color .2s;
}
.dropdown a:hover { background: var(--grey); color: var(--ink); }
.dropdown a[aria-current="page"], .dropdown a.is-active { background: var(--mint); }
.dropdown .dd-icon {
  grid-row: span 2;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--mint);
  color: var(--green);
}
.dropdown a[aria-current="page"] .dd-icon, .dropdown a.is-active .dd-icon { background: #fff; }
.dropdown .dd-title { font-weight: 600; font-size: 15px; line-height: 1.3; color: var(--forest); }
.dropdown .dd-desc { font-size: 13px; line-height: 1.4; color: var(--muted); }

.header-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.main-nav + .header-actions { margin-left: 0; }

.lang-switch { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; }
.lang-switch button {
  padding: 6px 6px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: inherit;
  letter-spacing: .04em;
  opacity: .62;
  transition: opacity .2s;
}
.lang-switch button:hover { opacity: 1; }
.lang-switch button[aria-pressed="true"] { opacity: 1; }
.lang-switch .sep { opacity: .4; }
/* CODAVI-LARAVEL: the other language is a link to the same page in that language (the demo only has buttons). */
.lang-switch a {
  padding: 6px 6px;
  border-radius: 6px;
  color: inherit;
  letter-spacing: .04em;
  text-decoration: none;
  opacity: .62;
  transition: opacity .2s;
}
.lang-switch a:hover { opacity: 1; }

.site-header .header-cta { --btn-bg: var(--lime); --btn-fg: var(--forest); }
.site-header .header-cta:hover { --btn-bg: var(--lime-300); }
.site-header.is-scrolled .header-cta { --btn-bg: var(--green); --btn-fg: #fff; }
.site-header.is-scrolled .header-cta:hover { --btn-bg: var(--green-700); }

.menu-btn {
  display: none;
  position: relative;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .06);
  color: inherit;
}
.site-header.is-scrolled .menu-btn { border-color: var(--line); background: #fff; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  position: absolute;
  left: 50%;
  width: 18px; height: 1.5px;
  margin-left: -9px;
  border-radius: 2px;
  background: currentColor;
}
.menu-btn span { top: 50%; margin-top: -.75px; }
.menu-btn span::before, .menu-btn span::after { content: ""; left: 0; margin-left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; width: 12px; }

@media (max-width: 1199.98px) {
  .nav-link { padding: 10px 10px; font-size: 14.5px; }
  .header-actions { gap: 10px; }
}
@media (max-width: 991.98px) {
  .main-nav, .header-actions .lang-switch { display: none; }
  .header-actions, .main-nav + .header-actions { margin-left: auto; }
  .menu-btn { display: inline-block; }
  .brand img { height: 40px; }
}
@media (max-width: 599.98px) {
  .header-actions .header-cta { display: none; }
}

/* --------------------------------------------------------------------------
   Drawer (mobile)
   -------------------------------------------------------------------------- */
.drawer { position: fixed; inset: 0; z-index: 200; }
.drawer[hidden] { display: none; }
.drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 44, 34, .55);
  opacity: 0;
  transition: opacity .35s;
}
.drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(460px, 100%);
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter) 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--forest);
  color: #fff;
  transform: translateX(100%);
  transition: transform .45s var(--ease);
}
.drawer-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 40%, #000 70%, transparent);
}
.drawer-panel > * { position: relative; }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  flex: none;
}
.drawer-head img { height: 40px; width: auto; filter: brightness(0) invert(1); }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .06);
  color: #fff;
}
.icon-btn:hover { background: rgba(255, 255, 255, .14); }

.drawer-nav { margin-top: 20px; }
.drawer-list { list-style: none; border-top: 1px solid rgba(255, 255, 255, .12); }
.drawer-list > li { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.drawer-link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.3px;
  text-decoration: none;
}
.drawer-link .mono { color: rgba(255, 255, 255, .5); font-size: 11px; min-width: 20px; }
.drawer-link:hover { color: var(--lime); }
.drawer-link[aria-current="page"], .drawer-link.is-active { color: var(--lime); }
.drawer-sub { list-style: none; display: grid; gap: 2px; padding: 0 0 16px 36px; margin-top: -6px; }
.drawer-sub a {
  display: block;
  padding: 8px 0;
  color: rgba(255, 255, 255, .78);
  font-size: 17px;
  text-decoration: none;
}
.drawer-sub a:hover, .drawer-sub a[aria-current="page"], .drawer-sub a.is-active { color: var(--lime); }
.drawer-foot { margin-top: auto; padding-top: 32px; display: grid; gap: 20px; }
.drawer-contact { display: grid; gap: 6px; font-size: 15px; }
.drawer-contact a { color: rgba(255, 255, 255, .82); text-decoration: none; display: inline-flex; gap: 10px; align-items: center; }
.drawer-contact a:hover { color: #fff; }
.drawer .lang-switch { color: #fff; font-size: 14px; }

/* --------------------------------------------------------------------------
   Hero (trang chủ) & Page hero (trang con)
   -------------------------------------------------------------------------- */
.hero, .page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--forest);
  color: #fff;
}
.hero-media { position: absolute; inset: 0; z-index: -3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(10, 44, 34, .94) 0%, rgba(10, 44, 34, .78) 34%, rgba(10, 44, 34, .32) 66%, rgba(10, 44, 34, .42) 100%),
    linear-gradient(0deg, rgba(10, 44, 34, .78) 0%, rgba(10, 44, 34, 0) 42%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .075) 1px, transparent 1px);
  background-size: 96px 96px;
  background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 62% 45%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 75% at 62% 45%, #000 25%, transparent 78%);
}

.hero {
  min-height: clamp(680px, 100svh, 900px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 56px) 0 120px;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 56px;
  align-items: center;
}
.hero-copy { max-width: 680px; }
.hero-title { color: #fff; }
.hero-title .line { display: block; }
.formula-op { color: var(--lime); font-weight: 600; }
.formula-arrow {
  display: inline-block;
  width: .82em;
  height: .5em;
  margin-right: .28em;
  vertical-align: .1em;
  color: var(--lime);
  overflow: visible;
}
.formula-arrow--green { color: var(--green); margin: 0 .22em; width: .78em; }
.prose blockquote .line { display: block; }
.hero .lead, .page-hero .lead { color: rgba(255, 255, 255, .86); max-width: 540px; margin-top: 24px; }
.hero .btn-row { margin-top: 40px; }

.hero-meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.hero-meta .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  color: rgba(255, 255, 255, .78);
}
.coord {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
}
.coord::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(140, 198, 63, .25);
}
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, .78); text-decoration: none; }
.scroll-cue:hover { color: #fff; }
.scroll-cue .line-v { position: relative; width: 1px; height: 28px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.scroll-cue .line-v::after {
  content: ""; position: absolute; left: 0; top: -40%;
  width: 1px; height: 40%;
  background: var(--lime);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { to { top: 100%; } }

/* Thẻ dữ liệu thực địa (chữ ký thiết kế) */
.hero-visual { position: relative; justify-self: end; width: 100%; max-width: 380px; }
.field-card {
  position: relative;
  margin: 0;
  padding: 22px 22px 18px;
  border-radius: var(--r-lg);
  background: linear-gradient(155deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .07) 60%);
  border: 1px solid rgba(255, 255, 255, .24);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .28);
  color: #fff;
}
.fc-top { display: flex; align-items: flex-start; gap: 14px; }
.fc-thumb {
  width: 60px; height: 60px;
  flex: none;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .3);
}
.fc-id-wrap { flex: 1; min-width: 0; }
.fc-id {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .85);
}
.fc-variety { margin-top: 4px; font-size: 24px; font-weight: 700; line-height: 1.2; color: #fff; }
.fc-coord { margin-top: 2px; font-family: var(--mono); font-size: 11.5px; color: rgba(255, 255, 255, .68); letter-spacing: .04em; }
.fc-rows { list-style: none; margin-top: 18px; border-top: 1px solid rgba(255, 255, 255, .16); }
.fc-rows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  font-size: 14px;
}
.fc-rows .k { color: rgba(255, 255, 255, .72); }
.fc-rows .v { font-weight: 600; }
.fc-ok {
  display: inline-grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--forest);
}
.fc-ok .i { width: 14px; height: 14px; stroke-width: 2.2; }
.fc-track { margin-top: 16px; }
.fc-track-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.fc-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; list-style: none; }
.fc-steps li { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; color: rgba(255, 255, 255, .78); }
.fc-steps li::before {
  content: "";
  display: block;
  height: 4px;
  margin-bottom: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .2);
}
.fc-steps li.on::before { background: var(--lime); }

.fc-connector {
  position: absolute;
  left: -150px; bottom: -70px;
  width: 190px; height: 130px;
  color: var(--lime);
  pointer-events: none;
  overflow: visible;
}
.fc-connector path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 3 6; opacity: .9; }
.fc-pin { fill: var(--lime); }
.fc-pin-ring { fill: none; stroke: var(--lime); stroke-width: 1.5; opacity: .6; transform-origin: 14px 116px; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
.fc-chip {
  position: absolute;
  right: -18px; top: -18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--forest);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: var(--sh-3);
}
.fc-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(27, 127, 59, .18); }

@media (max-width: 991.98px) {
  .hero { min-height: 0; padding: calc(var(--header-h) + 48px) 0 104px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { justify-self: start; max-width: 400px; }
  .fc-connector { display: none; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(10, 44, 34, .86) 0%, rgba(10, 44, 34, .7) 50%, rgba(10, 44, 34, .55) 100%);
  }
}
@media (max-width: 599.98px) {
  .hero .btn-row .btn { width: 100%; }
  .fc-chip { right: 12px; }
  .hero-meta .scroll-cue { display: none; }
}

/* Page hero */
.page-hero { padding: calc(var(--header-h) + clamp(56px, 2rem + 5vw, 112px)) 0 clamp(64px, 3rem + 4vw, 112px); }
.page-hero .hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 44, 34, .95) 0%, rgba(10, 44, 34, .8) 40%, rgba(10, 44, 34, .4) 100%),
    linear-gradient(0deg, rgba(10, 44, 34, .6), rgba(10, 44, 34, 0) 50%);
}
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero .btn-row { margin-top: 36px; }
.page-hero-coord { position: absolute; right: max(var(--gutter), calc((100% - var(--container)) / 2)); bottom: 28px; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}
.breadcrumb li { display: inline-flex; gap: 10px; align-items: center; }
.breadcrumb li + li::before { content: "/"; color: rgba(255, 255, 255, .4); }
.breadcrumb a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--lime); }
@media (max-width: 767.98px) {
  .page-hero .hero-shade { background: linear-gradient(180deg, rgba(10, 44, 34, .88), rgba(10, 44, 34, .7)); }
  .page-hero-coord { position: static; margin-top: 40px; }
}

/* --------------------------------------------------------------------------
   Intro "CODAVI là gì"
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 2rem + 4vw, 96px);
  align-items: center;
}
@media (max-width: 899.98px) { .split { grid-template-columns: 1fr; } }

.decode { display: flex; align-items: stretch; gap: 10px; margin: 32px 0 28px; flex-wrap: wrap; }
.decode-item {
  flex: 1 1 0;
  min-width: 96px;
  padding: 16px 16px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: #fff;
}
.decode-key { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.5px; color: var(--forest); }
.decode-key b { color: var(--green); font-weight: 800; }
.decode-en { margin-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.decode-vi { font-size: 15px; font-weight: 600; color: var(--ink); }
.decode-plus { align-self: center; color: var(--green); font-size: 22px; font-weight: 500; }
@media (max-width: 479.98px) { .decode-plus { display: none; } .decode-item { min-width: 0; padding: 14px 12px; } .decode-key { font-size: 28px; } }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 32px; border-top: 1px solid var(--line); }
.fact { padding: 20px 20px 4px 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact-num { font-size: clamp(28px, 1.4rem + 1vw, 36px); font-weight: 700; line-height: 1.1; color: var(--forest); letter-spacing: -.5px; }
.fact-label { margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.facts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 599.98px) {
  .facts--3 { grid-template-columns: 1fr; }
  .facts--3 .fact { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .facts--3 .fact + .fact { padding-left: 0; border-left: 0; }
  .facts--3 .fact-num { flex: none; min-width: 84px; font-size: 26px; }
  .facts--3 .fact-label { margin-top: 0; }
}

.photo-stack { position: relative; padding: 0 0 56px 56px; }
.photo-stack .ps-main {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4 / 4.4;
  box-shadow: var(--sh-2);
}
.photo-stack .ps-main img { width: 100%; height: 100%; object-fit: cover; }
.photo-stack .ps-sub {
  position: absolute;
  left: 0; bottom: 0;
  width: 46%;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: var(--sh-3);
  aspect-ratio: 4 / 3;
}
.photo-stack .ps-sub img { width: 100%; height: 100%; object-fit: cover; }
.photo-stack .ps-label {
  position: absolute;
  top: 20px; right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(10, 44, 34, .74);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.photo-stack .ps-label .arr { color: var(--lime); }
.photo-stack .ps-dots {
  position: absolute;
  right: -16px; bottom: 16px;
  width: 120px; height: 120px;
  background-image: radial-gradient(rgba(27, 127, 59, .35) 1.5px, transparent 1.6px);
  background-size: 14px 14px;
  z-index: -1;
}
@media (max-width: 599.98px) { .photo-stack { padding: 0 0 40px 24px; } .photo-stack .ps-sub { width: 52%; border-width: 4px; } }

/* --------------------------------------------------------------------------
   Audience cards
   -------------------------------------------------------------------------- */
.audience-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; list-style: none; }
.audience-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 540px;
  height: 100%;
  padding: clamp(24px, 1rem + 1.6vw, 40px);
  border-radius: var(--r-xl);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  box-shadow: var(--sh-1);
  transition: transform .4s var(--ease), box-shadow .4s;
  --focus: var(--lime);
}
.audience-card:hover { color: #fff; transform: translateY(-4px); box-shadow: var(--sh-3); }
.audience-card .ac-media { position: absolute; inset: 0; z-index: -2; }
.audience-card .ac-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.audience-card:hover .ac-media img { transform: scale(1.05); }
.audience-card::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(10, 44, 34, .96) 0%, rgba(10, 44, 34, .78) 38%, rgba(10, 44, 34, .1) 72%, rgba(10, 44, 34, .2) 100%);
}
.ac-tag {
  position: absolute;
  top: clamp(20px, 1rem + 1vw, 32px);
  left: clamp(20px, 1rem + 1.6vw, 40px);
}
.ac-icon { position: absolute; top: clamp(16px, .8rem + 1vw, 28px); right: clamp(16px, .8rem + 1.6vw, 36px); }
.audience-card h3 { color: #fff; font-size: clamp(24px, 1.2rem + 1vw, 30px); }
.audience-card p { margin-top: 12px; color: rgba(255, 255, 255, .86); max-width: 460px; }
.audience-card .link-arrow { margin-top: 24px; color: var(--lime); }
.audience-card:hover .link-arrow .i { transform: translateX(4px); }
@media (max-width: 767.98px) {
  .audience-grid { grid-template-columns: 1fr; }
  .audience-card { min-height: 460px; }
}

/* --------------------------------------------------------------------------
   Journey stepper (Learn → Map → Ready → Scale)
   -------------------------------------------------------------------------- */
.journey { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; counter-reset: step; }
.journey > li { position: relative; }
.journey-node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--forest);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 0 0 6px #fff;
  transition: border-color .3s, background-color .3s, color .3s;
}
.section--grey .journey-node { box-shadow: 0 0 0 6px var(--grey); }
.journey-node::after {
  content: "";
  position: absolute;
  right: -4px; top: -2px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--lime);
  border: 2px solid #fff;
}
.journey > li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 24px;
  left: calc(50% + 34px);
  width: calc(100% + 24px - 68px);
  border-top: 1.5px dashed rgba(27, 127, 59, .5);
}
.journey > li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 19.5px;
  left: calc(150% - 21px);
  width: 9px; height: 9px;
  border-top: 1.5px solid rgba(27, 127, 59, .7);
  border-right: 1.5px solid rgba(27, 127, 59, .7);
  transform: rotate(45deg);
}
.journey > li:hover .journey-node { background: var(--forest); border-color: var(--forest); color: #fff; }

.step-card {
  display: flex;
  flex-direction: column;
  height: calc(100% - 76px);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.step-card:hover { color: inherit; transform: translateY(-4px); box-shadow: var(--sh-2); border-color: transparent; }
.step-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.step-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.step-card:hover .step-media img { transform: scale(1.06); }
.step-body .icon-chip {
  position: absolute;
  left: 18px; top: -23px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--sh-1);
  border: 1px solid var(--line);
}
.step-media .duration {
  position: absolute;
  top: 12px; right: 12px;
}
.step-body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 34px 22px 24px; }
.step-body h3 { font-size: 20px; }
.step-body p { margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.step-body .why { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--ink); }
.step-body .link-arrow { margin-top: auto; padding-top: 18px; font-size: 14.5px; }

.chip-duration {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--forest);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .02em;
  box-shadow: var(--sh-1);
}
.chip-duration .i { width: 14px; height: 14px; }

.journey-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-top: 48px;
  padding: 20px 24px;
  border-radius: var(--r-md);
  background: var(--grey);
  font-size: 15px;
}
.section--grey .journey-foot { background: #fff; border: 1px solid var(--line); }
.journey-foot .fit { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.journey-foot .fit strong { color: var(--forest); }

@media (max-width: 899.98px) {
  .journey { grid-template-columns: 1fr; gap: 20px; }
  .journey > li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start; }
  .journey-node { margin: 0; }
  .journey > li:not(:last-child)::after {
    top: 56px; left: 23px;
    width: 0; height: calc(100% - 40px);
    border-top: 0;
    border-left: 1.5px dashed rgba(27, 127, 59, .5);
  }
  .journey > li:not(:last-child)::before { display: none; }
  .step-card { height: auto; display: grid; grid-template-columns: 132px minmax(0, 1fr); }
  .step-media { aspect-ratio: auto; height: 100%; min-height: 150px; }
  .step-body .icon-chip { display: none; }
  .step-media .duration { top: auto; bottom: 10px; left: 10px; right: auto; }
  .step-body { padding: 18px 18px 18px; }
  .step-body .link-arrow { padding-top: 12px; }
}
@media (max-width: 479.98px) {
  .step-card { grid-template-columns: 1fr; }
  .step-media { aspect-ratio: 16 / 9; min-height: 0; }
  .step-media .duration { top: 10px; right: 10px; left: auto; bottom: auto; }
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; }
.quote-card {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 32px 30px 28px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid rgba(14, 59, 46, .08);
  box-shadow: var(--sh-1);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.quote-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.quote-card::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 160px; height: 160px;
  background-image: radial-gradient(rgba(14, 59, 46, .12) 1.4px, transparent 1.5px);
  background-size: 12px 12px;
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000 20%, transparent 70%);
  mask-image: radial-gradient(circle at 70% 30%, #000 20%, transparent 70%);
}
.quote-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.quote-mark { font-size: 76px; line-height: .6; height: 34px; font-weight: 800; color: var(--lime); margin-top: 24px; }
.quote-text { margin: 10px 0 0; font-size: 19px; line-height: 1.55; font-weight: 500; color: var(--forest); }
.quote-person { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 28px; }
.quote-card .quote-person { border-top: 1px solid var(--line); margin-top: 28px; }
.avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  flex: none;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .5px;
}
.avatar::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px dashed rgba(14, 59, 46, .35); }
.avatar--coffee { background: var(--coffee); }
.avatar--green { background: var(--green); }
.quote-name { font-weight: 700; color: var(--forest); line-height: 1.3; }
.quote-role { font-size: 14px; margin-top: 3px; }
@media (max-width: 991.98px) { .quote-grid { grid-template-columns: 1fr; max-width: 640px; } }

/* --------------------------------------------------------------------------
   Featured guide (EUDR)
   -------------------------------------------------------------------------- */
.guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
}
.guide-cover {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 460px;
  padding: 48px 32px;
  background: var(--forest);
  overflow: hidden;
}
.guide-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.guide:hover .guide-cover > img { transform: scale(1.04); }
.guide-cover::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(160deg, rgba(10, 44, 34, .55), rgba(10, 44, 34, .88)),
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 48px 48px;
}
.doc {
  position: relative;
  width: min(270px, 78%);
  aspect-ratio: 3 / 4;
  padding: 24px 22px;
  border-radius: 6px 14px 14px 6px;
  background: var(--paper);
  color: var(--forest);
  box-shadow: 0 40px 70px -24px rgba(0, 0, 0, .6), inset 6px 0 0 rgba(14, 59, 46, .1);
  transform: rotate(-4deg);
  display: flex;
  flex-direction: column;
  transition: transform .6s var(--ease);
}
.guide:hover .doc { transform: rotate(-2deg) translateY(-6px); }
.doc::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background-image:
    linear-gradient(rgba(14, 59, 46, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 59, 46, .06) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(180deg, transparent 45%, #000);
  mask-image: linear-gradient(180deg, transparent 45%, #000);
  pointer-events: none;
}
.doc-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.doc-top img { height: 22px; width: auto; }
.doc-title { margin-top: auto; font-size: clamp(52px, 2.5rem + 2vw, 72px); font-weight: 800; line-height: .9; letter-spacing: -2px; color: var(--forest); }
.doc-sub { margin-top: 10px; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.doc-tag { margin-top: 16px; align-self: flex-start; }
.doc-foot { margin-top: 18px; padding-top: 12px; border-top: 1px solid rgba(14, 59, 46, .15); display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--muted); }
.guide-body { display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 1.5rem + 3vw, 64px); }
.guide-body h2 { font-size: clamp(26px, 1.2rem + 1.6vw, 38px); }
.guide-body > p:not(.eyebrow) { margin-top: 16px; font-size: var(--fs-lead); }
.guide-list { list-style: none; display: grid; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.guide-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink); }
.guide-list .i { color: var(--green); }
.guide-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.guide-hint { margin-top: 18px; font-size: 14px; color: var(--muted); }
@media (max-width: 479.98px) { .guide-actions .btn { width: 100%; flex-wrap: wrap; row-gap: 6px; } }
.guide-hint a { font-weight: 600; }
@media (max-width: 899.98px) {
  .guide { grid-template-columns: 1fr; }
  .guide-cover { min-height: 380px; }
}

/* --------------------------------------------------------------------------
   CTA band (statement)
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(88px, 4rem + 6vw, 160px);
  background: var(--forest);
  color: #fff;
}
.cta-band .cta-media { position: absolute; top: 0; right: 0; bottom: 0; width: 52%; z-index: -2; }
.cta-band .cta-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, var(--forest) 0%, var(--forest) 46%, rgba(14, 59, 46, .55) 70%, rgba(14, 59, 46, .25) 100%);
}
.cta-band::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 60%);
  mask-image: linear-gradient(90deg, #000, transparent 60%);
}
.cta-band .statement .line { display: block; }
@media (max-width: 599.98px) { .cta-band .statement .line { display: inline; } }
.cta-band .statement {
  max-width: 780px;
  font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -.8px;
  color: #fff;
}
.cta-band .statement em { font-style: normal; color: var(--lime); }
.cta-band .cta-text { margin-top: 20px; max-width: 520px; color: rgba(255, 255, 255, .82); font-size: var(--fs-lead); }
.cta-band .btn-row { margin-top: 40px; }
.cta-band .coord { margin-bottom: 28px; }
@media (max-width: 767.98px) {
  .cta-band .cta-media { width: 100%; opacity: .5; }
  .cta-band::before { background: linear-gradient(180deg, rgba(14, 59, 46, .9), rgba(14, 59, 46, .82)); }
  .cta-band .btn-row .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Newsletter
   -------------------------------------------------------------------------- */
.newsletter { background: var(--paper); padding-block: clamp(48px, 2.5rem + 2.5vw, 80px); border-top: 1px solid rgba(111, 78, 55, .1); }
.newsletter-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 24px 64px;
  align-items: center;
}
.newsletter-copy { display: flex; gap: 20px; align-items: flex-start; }
.newsletter-copy .icon-chip { background: var(--forest); color: var(--lime); border-radius: 50%; width: 56px; height: 56px; }
.newsletter h2 { font-size: clamp(24px, 1.2rem + 1vw, 32px); }
.newsletter-copy p { margin-top: 6px; color: var(--muted); }
.nl-form { display: grid; gap: 8px; }
.nl-row {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid rgba(14, 59, 46, .12);
  transition: border-color .2s, box-shadow .2s;
}
.nl-row:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(27, 127, 59, .14); }
.nl-row:has(input[aria-invalid="true"]) { border-color: var(--red); }
.nl-row input {
  flex: 1;
  min-width: 0;
  padding: 0 16px;
  border: 0;
  background: none;
  font-size: 16px;
  outline: none;
}
.nl-row input::placeholder { color: #6B7770; } /* CODAVI-LARAVEL: demo #7D8983 chỉ đạt 3.6:1, chưa đạt WCAG AA */
.nl-row .btn { flex: none; }
.nl-form .field-error { padding-left: 20px; }
@media (max-width: 899.98px) { .newsletter-inner { grid-template-columns: 1fr; } }
@media (max-width: 479.98px) {
  .nl-row { flex-direction: column; border-radius: var(--r-md); }
  .nl-row input { min-height: 46px; }
  .nl-row .btn { width: 100%; }
  .newsletter-copy .icon-chip { display: none; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { position: relative; background: var(--forest); color: rgba(255, 255, 255, .78); padding-top: clamp(56px, 3rem + 3vw, 96px); overflow: hidden; }
.site-footer::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
  mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.site-footer > * { position: relative; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, .8fr)) minmax(0, 1.2fr);
  gap: 40px 48px;
  padding-bottom: 56px;
}
.footer-brand img { height: 58px; width: auto; filter: brightness(0) invert(1); }
.footer-slogan { margin-top: 22px; font-size: 20px; font-weight: 700; color: #fff; letter-spacing: -.2px; }
.footer-slogan span { color: var(--lime); }
.footer-desc { margin-top: 8px; max-width: 340px; font-size: 15px; }
.social { display: flex; gap: 10px; margin-top: 24px; list-style: none; }
.social a {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  transition: background-color .2s, border-color .2s, color .2s;
}
.social a:hover { background: var(--lime); border-color: var(--lime); color: var(--forest); }
.footer-title { margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #fff; }
.footer-toggle { display: none; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a { color: rgba(255, 255, 255, .78); text-decoration: none; font-size: 15px; transition: color .2s; }
.footer-links a:hover { color: var(--lime); text-decoration: underline; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .i { color: var(--lime); margin-top: 2px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-block: 22px 28px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 13.5px;
  color: rgba(255, 255, 255, .66);
}
/* CODAVI-LARAVEL: link "Chính sách bảo mật" ở footer-bottom (demo chưa có), cùng kiểu với .footer-links a */
.footer-bottom a { color: inherit; text-decoration: none; transition: color .2s; }
.footer-bottom a:hover { color: var(--lime); text-decoration: underline; }

@media (max-width: 991.98px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 599.98px) {
  .footer-grid { grid-template-columns: 1fr; gap: 0; padding-bottom: 32px; }
  .footer-brand { padding-bottom: 32px; }
  .footer-col { border-top: 1px solid rgba(255, 255, 255, .12); }
  .footer-col:last-child { border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .footer-title { margin: 0; }
  .footer-title-text { display: none; }
  .footer-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    border: 0;
    background: none;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
  }
  .footer-toggle .i { transition: transform .25s var(--ease); }
  .footer-toggle[aria-expanded="true"] .i { transform: rotate(180deg); }
  .footer-col .footer-links { display: none; padding-bottom: 20px; }
  .footer-col.is-open .footer-links { display: grid; }
}

/* --------------------------------------------------------------------------
   Back to top & toast
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .15);
  background: var(--forest);
  color: var(--lime);
  box-shadow: var(--sh-3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s var(--ease), visibility .3s, background-color .2s;
  --focus: var(--green);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--forest-700); }

.toast-region {
  position: fixed;
  left: 50%; bottom: 24px;
  z-index: 400;
  width: min(480px, calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--forest-900);
  color: #fff;
  font-size: 14.5px;
  line-height: 1.5;
  box-shadow: var(--sh-3), 0 0 0 1px rgba(255, 255, 255, .08);
  pointer-events: auto;
  animation: toast-in .35s var(--ease);
}
.toast .i { color: var(--lime); margin-top: 1px; }
.toast.is-leaving { animation: toast-out .3s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* --------------------------------------------------------------------------
   Modal (đặt lịch)
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 44, 34, .62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .3s;
}
.modal-dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  width: min(940px, 100%);
  max-height: calc(100dvh - 32px);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--sh-3);
  opacity: 0;
  transform: translateY(18px) scale(.985);
  transition: opacity .3s, transform .4s var(--ease);
}
.modal.is-open .modal-backdrop { opacity: 1; }
.modal.is-open .modal-dialog { opacity: 1; transform: none; }
/* CODAVI-LARAVEL: the row of the grid must stay within the max-height of the dialog, otherwise .modal-main
   grows with the form instead of scrolling and the send button is cut off (the form has more fields than the demo). */
.modal-dialog { grid-template-rows: minmax(0, 1fr); }
.modal-aside {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: #fff;
  background: var(--forest);
}
.modal-aside > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.modal-aside::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 44, 34, .96) 20%, rgba(10, 44, 34, .45)); }
.modal-aside h3 { color: #fff; font-size: 18px; }
.modal-steps { list-style: none; display: grid; gap: 14px; margin-top: 18px; counter-reset: ms; }
.modal-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .86); counter-increment: ms; }
.modal-steps li::before {
  content: "0" counter(ms);
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(140, 198, 63, .6);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 11px;
}
.modal-aside .coord { margin-top: 22px; font-size: 11px; }
.modal-main { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 28px 32px 0; }
.modal-head h2 { font-size: clamp(22px, 1.2rem + .8vw, 28px); }
.modal-head p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.modal-close {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--forest);
  transition: background-color .2s;
}
.modal-close:hover { background: var(--grey); }
.modal-body { padding: 24px 32px 32px; }
.modal-success { padding: 40px 32px; text-align: center; }
.modal-success .icon-chip { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px; }
.modal-success .icon-chip .i { width: 30px; height: 30px; }
.modal-success p { margin: 10px auto 0; max-width: 420px; color: var(--muted); }
.modal-success .btn-row { justify-content: center; margin-top: 28px; }
@media (max-width: 819.98px) {
  .modal-dialog { grid-template-columns: 1fr; }
  .modal-aside { display: none; }
}
@media (max-width: 599.98px) {
  .modal { padding: 0; place-items: end center; }
  .modal-dialog { border-radius: var(--r-xl) var(--r-xl) 0 0; max-height: 94dvh; }
  .modal-head { padding: 24px 20px 0; }
  .modal-body { padding: 20px 20px 28px; }
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 599.98px) { .form-grid { grid-template-columns: 1fr; } .form-grid .span-2 { grid-column: auto; } }
.field { display: grid; gap: 8px; align-content: start; }
/* CODAVI-LARAVEL: the preferred date of the booking modal is hidden when it registers for an event. */
.field[hidden] { display: none; }
.field > label, .field > .label { font-size: 14px; font-weight: 600; color: var(--forest); }
.field .req { color: var(--red); margin-left: 2px; }
.field .opt { color: var(--muted); font-weight: 400; }
.input {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1.5px solid #D5DED9;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: #6B7770; } /* CODAVI-LARAVEL: demo #7D8983 chỉ đạt 3.6:1, chưa đạt WCAG AA */
.input:hover { border-color: #B7C4BD; }
.input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(27, 127, 59, .16); }
textarea.input { min-height: 120px; resize: vertical; }
.input[aria-invalid="true"] { border-color: var(--red); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(192, 57, 43, .14); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select::after {
  content: "";
  position: absolute;
  right: 18px; top: 50%;
  width: 8px; height: 8px;
  margin-top: -6px;
  border-right: 1.5px solid var(--forest);
  border-bottom: 1.5px solid var(--forest);
  transform: rotate(45deg);
  pointer-events: none;
}
.field-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 10px; }
.field-error { display: none; font-size: 13px; color: var(--red); font-weight: 500; }
.field-error.is-visible { display: block; }
/* CODAVI-LARAVEL: consent checkbox required on every website form (not in the demo). */
.field > label.consent, .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--ink); cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); cursor: pointer; }
.consent input[aria-invalid="true"] { outline: 2px solid var(--red); outline-offset: 2px; }
.consent a { color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.nl-consent { margin-top: 4px; padding-left: 20px; }
.nl-consent > label.consent { font-size: 13.5px; color: var(--muted); }
/* CODAVI-LARAVEL: honeypot field of the forms, out of sight (see components/honeypot.blade.php). */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 24px; }
.form-note { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.form-note .i { color: var(--green); width: 18px; height: 18px; margin-top: 1px; }
.form-note--block { margin-top: 14px; }
.btn[aria-busy="true"] { cursor: progress; }
.form-alert { flex-basis: 100%; margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #FBEDEB; color: #8E2A20; font-size: 14px; line-height: 1.5; }
.form-alert a { color: inherit; font-weight: 600; }
.form-success { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: var(--mint); color: var(--forest); }
.form-success[hidden] { display: none; }
.form-success .icon-chip { flex: none; width: 40px; height: 40px; border-radius: 50%; }
.form-success p { margin: 0; font-size: 14.5px; line-height: 1.5; }
.form-success .form-success-title { font-weight: 700; font-size: 16px; margin-bottom: 2px; }

/* --------------------------------------------------------------------------
   Accordion
   -------------------------------------------------------------------------- */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item > h3, .acc-item > h4 { margin: 0; font: inherit; letter-spacing: normal; }
.acc-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border: 0;
  background: none;
  color: var(--forest);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
}
.acc-trigger:hover { color: var(--green); }
.acc-trigger .acc-label { display: inline-flex; align-items: center; gap: 12px; }
.acc-trigger .acc-label .i { color: var(--green); }
.acc-icon {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--forest);
  background: #fff;
  transition: transform .3s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.acc-icon .i { width: 16px; height: 16px; }
.acc-trigger[aria-expanded="true"] .acc-icon { transform: rotate(180deg); background: var(--forest); border-color: var(--forest); color: #fff; }
.acc-panel { overflow: hidden; transition: height .35s var(--ease); }
.acc-panel[hidden] { display: none; }
.acc-inner { padding: 0 0 22px; color: var(--ink); }
.acc-inner p + p { margin-top: 10px; }
.acc-inner p { color: var(--muted); }
.acc-inner .caption { margin-top: 16px; }
.acc--boxed .acc-item { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; margin-bottom: 10px; padding: 0 22px; transition: box-shadow .25s, border-color .25s; }
.acc--boxed { border-top: 0; }
.acc--boxed .acc-item:has(.acc-trigger[aria-expanded="true"]) { box-shadow: var(--sh-1); border-color: rgba(27, 127, 59, .35); }

.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; line-height: 1.55; }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--mint);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 8px; top: 6px;
  width: 5px; height: 10px;
  border-right: 1.8px solid var(--green);
  border-bottom: 1.8px solid var(--green);
  transform: rotate(45deg);
}
.dot-list { list-style: none; display: grid; gap: 12px; }
.dot-list li { position: relative; padding-left: 26px; line-height: 1.55; }
.dot-list li::before {
  content: "";
  position: absolute; left: 4px; top: .62em;
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--green);
}

.caption {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: var(--paper);
  border-left: 3px solid var(--coffee);
  font-size: 13.5px;
  line-height: 1.55;
  color: #4E4036;
}
.caption .i { color: var(--coffee); width: 18px; height: 18px; margin-top: 1px; }

/* --------------------------------------------------------------------------
   Services (dich-vu.html)
   -------------------------------------------------------------------------- */
.service {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1fr);
  gap: clamp(40px, 2rem + 4vw, 96px);
  align-items: start;
}
.service--flip .service-media { order: 2; }
.service-media { position: sticky; top: calc(var(--header-h) + 24px); }
.service-photo { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 4.4; box-shadow: var(--sh-2); }
.service-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.service-photo:hover img { transform: scale(1.04); }
.service-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 44, 34, .7), rgba(10, 44, 34, 0) 45%); }
.service-photo .sp-top { position: absolute; top: 18px; left: 18px; right: 18px; z-index: 1; display: flex; justify-content: space-between; gap: 8px; }
.service-photo .sp-bottom { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; color: #fff; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.sp-step { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: rgba(255, 255, 255, .86); }
.sp-name { font-size: 26px; font-weight: 700; line-height: 1.1; color: #fff; }
.service-index { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.service-index .num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--forest); color: var(--lime); font-family: var(--mono); font-size: 13px; }
.service-index .mono { color: var(--muted); }
.service h2 { font-size: clamp(30px, 1.4rem + 2vw, 44px); }
.service .subtitle { margin-top: 10px; font-size: clamp(18px, 1rem + .5vw, 21px); font-weight: 600; color: var(--green); line-height: 1.4; }
.why-box { margin-top: 28px; padding: 22px 24px; border-radius: var(--r-md); background: var(--mint); }
.section--grey .why-box { background: #fff; border: 1px solid var(--line); }
.why-box .label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--forest); }
.why-box p { margin-top: 8px; font-size: 17px; line-height: 1.55; color: var(--forest); font-weight: 500; }
.meta-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 24px 0 8px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.meta-grid > div { padding: 16px 18px; }
.meta-grid > div + div { border-left: 1px solid var(--line); }
.meta-grid dt { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); }
.meta-grid dt .i { width: 16px; height: 16px; color: var(--green); }
.meta-grid dd { margin: 6px 0 0; font-weight: 600; color: var(--forest); font-size: 15px; line-height: 1.4; }
.service .acc { margin-top: 24px; }
.service .btn-row { margin-top: 32px; }
@media (max-width: 899.98px) {
  .service { grid-template-columns: 1fr; }
  .service--flip .service-media { order: 0; }
  .service-media { position: relative; top: 0; }
  .service-photo { aspect-ratio: 16 / 10; }
}
@media (max-width: 599.98px) {
  .meta-grid { grid-template-columns: 1fr 1fr; }
  .meta-grid > div:first-child { grid-column: 1 / -1; }
  .meta-grid > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .meta-grid > div:last-child { border-left: 1px solid var(--line); }
  .service .btn-row .btn { width: 100%; }
}

/* Mini step flow (đặt lịch, case study, trụ cột) */
.flow { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 24px; list-style: none; }
.flow > li { position: relative; }
.flow-card { position: relative; height: 100%; padding: 28px 26px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.flow-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.section--grey .flow-card { border-color: transparent; box-shadow: var(--sh-1); }
.flow-num { position: absolute; top: 26px; right: 24px; font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.flow-card h3 { margin-top: 22px; font-size: 19px; }
.flow-card p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.flow > li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 52px; right: -24px;
  width: 24px;
  border-top: 1.5px dashed rgba(27, 127, 59, .55);
  z-index: 1;
}
.flow > li:not(:last-child) .flow-card::after {
  content: "";
  position: absolute;
  top: 48px; right: -17px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--lime);
  z-index: 2;
}
@media (max-width: 899.98px) {
  .flow { grid-template-columns: 1fr; gap: 16px; }
  .flow > li:not(:last-child)::after { top: auto; bottom: -16px; right: auto; left: 50px; width: 0; height: 16px; border-top: 0; border-left: 1.5px dashed rgba(27, 127, 59, .55); }
  .flow > li:not(:last-child) .flow-card::after { display: none; }
}

.booking-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 48px;
  align-items: center;
  margin-top: 40px;
  padding: 28px 32px;
  border-radius: var(--r-lg);
  background: var(--forest);
  color: #fff;
  --focus: var(--lime);
}
.booking-band h3 { color: #fff; font-size: 21px; }
.booking-band p { margin-top: 6px; color: rgba(255, 255, 255, .8); font-size: 15px; }
.booking-band a:not(.btn) { color: var(--lime); }
@media (max-width: 767.98px) { .booking-band { grid-template-columns: 1fr; padding: 24px; } .booking-band .btn { width: 100%; } }

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.story-media { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; align-items: end; }
.story-media figure { margin: 0; position: relative; border-radius: var(--r-lg); overflow: hidden; }
.story-media figure img { width: 100%; height: 100%; object-fit: cover; }
.story-media .sm-a { aspect-ratio: 3 / 4; }
.story-media .sm-b { aspect-ratio: 3 / 3.6; margin-bottom: 48px; }
.story-media .sm-cap { position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px); white-space: normal; }
.story-quote { margin-top: 28px; padding-left: 22px; border-left: 3px solid var(--lime); font-size: 19px; line-height: 1.5; font-weight: 600; color: var(--forest); }
.story-body p + p { margin-top: 16px; }
.story-body .lead { color: var(--ink); }

.mv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.mv-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 460px;
  padding: clamp(28px, 1.2rem + 2vw, 48px);
  border-radius: var(--r-xl);
  overflow: hidden;
  color: #fff;
}
.mv-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.mv-card:hover > img { transform: scale(1.04); }
.mv-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 44, 34, .72) 0%, rgba(10, 44, 34, .5) 30%, rgba(10, 44, 34, .94) 66%); }
.mv-card .mono { color: var(--lime); }
.mv-card h2 { margin-top: auto; color: #fff; font-size: clamp(28px, 1.3rem + 1.4vw, 36px); }
.mv-card p { margin-top: 16px; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .9); }
@media (max-width: 899.98px) { .mv-grid { grid-template-columns: 1fr; } .mv-card { min-height: 420px; } }

.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto minmax(0, 1.15fr); gap: 0; align-items: stretch; list-style: none; border: 1px solid var(--line); border-radius: var(--r-xl); background: #fff; overflow: hidden; }
.pillar { position: relative; padding: 28px 24px; }
.pillar + .pillar { border-left: 1px solid var(--line); }
.pillar .icon-chip { width: 52px; height: 52px; }
.pillar h3 { margin-top: 18px; font-size: 17px; line-height: 1.35; }
.pillar .mono { display: block; margin-top: 20px; color: var(--muted); font-size: 11px; }
.pillar-plus { position: absolute; top: 50%; right: -13px; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--green); font-weight: 600; font-size: 15px; line-height: 1; }
.pillar-arrow { display: grid; place-items: center; padding: 0 8px; background: var(--grey); border-left: 1px solid var(--line); color: var(--green); }
.pillar-arrow svg { width: 28px; height: 28px; }
.pillar-result { padding: 28px; background: var(--forest); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.pillar-result .mono { color: var(--lime); }
.pillar-result p { margin-top: 10px; font-size: 18px; font-weight: 600; line-height: 1.4; }
@media (max-width: 1099.98px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar:nth-child(3) { border-left: 0; }
  .pillar:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pillar-plus { display: none; }
  .pillar-arrow { grid-column: 1 / -1; padding: 10px; border-left: 0; border-top: 1px solid var(--line); }
  .pillar-arrow svg { transform: rotate(90deg); }
  .pillar-result { grid-column: 1 / -1; }
}
@media (max-width: 479.98px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar + .pillar { border-left: 0; border-top: 1px solid var(--line); }
}

.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; }
.team-card { height: 100%; border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.team-photo { position: relative; aspect-ratio: 4 / 4.4; overflow: hidden; background: var(--mint); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform 1s var(--ease); }
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-photo .badge { position: absolute; top: 14px; left: 14px; }
.team-ph {
  position: absolute; inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  background:
    radial-gradient(rgba(14, 59, 46, .14) 1.3px, transparent 1.4px) 0 0 / 14px 14px,
    linear-gradient(160deg, var(--mint), #D7EADD);
  color: var(--forest);
}
.team-ph .initials { display: grid; place-items: center; width: 108px; height: 108px; border-radius: 50%; background: var(--forest); color: #fff; font-size: 34px; font-weight: 700; letter-spacing: 1px; box-shadow: 0 0 0 10px rgba(255, 255, 255, .6); }
.team-ph .mono { color: var(--forest); }
.team-body { padding: 22px 24px 26px; }
.team-body h3 { font-size: 20px; }
.team-role { margin-top: 4px; font-size: 15px; font-weight: 500; color: var(--green); }
.team-bio { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 14.5px; }
@media (max-width: 899.98px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599.98px) { .team-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Projects (case study templates)
   -------------------------------------------------------------------------- */
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; }
.case-card { display: flex; flex-direction: column; height: 100%; border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.case-media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.case-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: transform 1s var(--ease); }
.case-card:hover .case-media img { transform: scale(1.05); }
.case-media .badge { position: absolute; top: 14px; left: 14px; }
.case-media .coord { position: absolute; left: 16px; bottom: 14px; font-size: 11px; color: #fff; }
.case-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 44, 34, .6), transparent 50%); }
.case-media .badge, .case-media .coord { z-index: 1; }
.case-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.case-body h3 { font-size: 21px; }
.case-loc { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.case-loc .i { width: 16px; height: 16px; color: var(--green); }
.case-rows { margin: 20px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.case-rows > div { display: grid; grid-template-columns: 118px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.case-rows dt { color: var(--muted); }
.case-rows dd { margin: 0; color: var(--ink); }
.case-kpi { margin-top: 20px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--grey); display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.case-kpi .mono { color: var(--forest); font-size: 11px; white-space: nowrap; }
@media (max-width: 991.98px) { .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 649.98px) { .case-grid { grid-template-columns: 1fr; } }

.honest {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  padding: 26px 28px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px dashed rgba(111, 78, 55, .45);
}
.honest h2 { font-size: 21px; }
.honest p { margin-top: 6px; color: var(--muted); }
.honest .icon-chip { background: var(--paper); color: var(--coffee); }

/* --------------------------------------------------------------------------
   Knowledge hub, news, article
   -------------------------------------------------------------------------- */
.entry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; }
.entry-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 360px;
  height: 100%;
  padding: 28px;
  border-radius: var(--r-xl);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  transition: transform .4s var(--ease), box-shadow .4s;
  --focus: var(--lime);
}
.entry-card:hover { color: #fff; transform: translateY(-4px); box-shadow: var(--sh-3); }
.entry-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.entry-card:hover > img { transform: scale(1.06); }
.entry-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 44, 34, .95) 10%, rgba(10, 44, 34, .25) 70%); }
.entry-card .icon-chip { position: absolute; top: 24px; left: 24px; }
.entry-card .mono { position: absolute; top: 36px; right: 28px; color: rgba(255, 255, 255, .75); }
.entry-card h3 { color: #fff; font-size: 26px; }
.entry-card p { margin-top: 8px; color: rgba(255, 255, 255, .84); font-size: 15px; }
.entry-card .link-arrow { margin-top: 18px; color: var(--lime); }
.entry-card:hover .link-arrow .i { transform: translateX(4px); }
@media (max-width: 899.98px) { .entry-grid { grid-template-columns: 1fr; } .entry-card { min-height: 280px; } }

.filter-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-bottom: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--forest); }
.chip[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: #fff; }
.chip .count { font-family: var(--mono); font-size: 11.5px; opacity: .72; }
.filter-status { font-size: 14px; color: var(--muted); }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; list-style: none; }
.post-grid > li[hidden] { display: none; }
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: transparent; }
.post-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-card:hover .post-media img { transform: scale(1.06); }
.post-media .badge { position: absolute; top: 14px; left: 14px; }
.post-body { display: flex; flex-direction: column; flex: 1; gap: 12px; padding: 22px 24px 24px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; color: var(--muted); }
.post-meta time { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; }
.post-title { font-size: 19px; line-height: 1.38; letter-spacing: -.2px; }
.post-title a { color: var(--forest); text-decoration: none; }
.post-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post-title a:focus-visible { outline: none; }
.post-card:has(.post-title a:focus-visible) { outline: 2.5px solid var(--focus); outline-offset: 3px; }
.post-excerpt { font-size: 15px; color: var(--muted); line-height: 1.55; }
.post-more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--green); }
.post-more .i { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.post-card:hover .post-more .i { transform: translateX(4px); }
@media (max-width: 991.98px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599.98px) { .post-grid { grid-template-columns: 1fr; } }

.empty-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 56px 24px;
  border-radius: var(--r-lg);
  border: 1.5px dashed #CAD5CF;
  text-align: center;
  color: var(--muted);
}
.empty-state[hidden] { display: none; }
.empty-state .icon-chip { margin-bottom: 6px; }
.empty-state strong { color: var(--forest); font-size: 18px; }

/* Article */
.article-hero { padding-bottom: clamp(140px, 8rem + 6vw, 220px); }
.article-hero h1 { max-width: 24ch; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 28px; font-size: 14px; color: rgba(255, 255, 255, .82); }
.article-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .4); }
.article-meta time { font-family: var(--mono); font-size: 12.5px; }
.article-cover { position: relative; margin: calc(-1 * clamp(100px, 6rem + 4vw, 170px)) auto 0; max-width: 1080px; }
.article-cover figure { margin: 0; }
.article-cover img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--sh-3); }
.article-cover figcaption { margin-top: 12px; font-size: 13.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 68ch) minmax(0, 1fr); gap: 48px; margin-top: clamp(48px, 3rem + 2vw, 80px); }
/* CODAVI-LARAVEL: article pages without the "read next" section (event, privacy policy) keep the section spacing before the footer. */
.container--end { padding-bottom: var(--section); }
.article-aside { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.share { display: grid; gap: 10px; justify-items: end; }
.share .mono { color: var(--muted); font-size: 11px; }
.share-list { display: flex; flex-direction: column; gap: 8px; list-style: none; }
.share-list a, .share-list button {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--forest);
  transition: background-color .2s, color .2s, border-color .2s;
}
.share-list a:hover, .share-list button:hover { background: var(--forest); color: #fff; border-color: var(--forest); }
.toc { padding-left: 20px; border-left: 1px solid var(--line); }
.toc .mono { color: var(--muted); font-size: 11px; }
.toc ol { list-style: none; display: grid; gap: 10px; margin-top: 14px; counter-reset: toc; }
.toc li { counter-increment: toc; display: grid; grid-template-columns: 26px 1fr; font-size: 14px; line-height: 1.45; }
.toc li::before { content: "0" counter(toc); font-family: var(--mono); font-size: 11px; color: var(--green); padding-top: 2px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--green); text-decoration: underline; }

.prose { font-size: clamp(16px, .95rem + .25vw, 18px); line-height: 1.75; color: var(--ink); }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { margin-top: 2em; font-size: clamp(24px, 1.2rem + .9vw, 30px); scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h3 { margin-top: 1.6em; font-size: 20px; }
.prose ul { padding-left: 0; }
.prose ul li { margin-top: .5em; }
.prose blockquote {
  position: relative;
  margin: 2em 0;
  padding: 28px 32px;
  border-radius: var(--r-lg);
  background: var(--forest);
  color: #fff;
  font-size: clamp(20px, 1.1rem + .7vw, 26px);
  font-weight: 600;
  line-height: 1.4;
}
.prose blockquote p { color: #fff; }
.prose blockquote .formula-arrow { color: var(--lime); }
.prose blockquote .formula-op { color: var(--lime); }
.prose blockquote cite { display: block; margin-top: 14px; font-family: var(--mono); font-size: 12px; font-style: normal; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.prose figure { margin: 2.2em 0; }
.prose figure img { width: 100%; border-radius: var(--r-lg); }
.prose figcaption { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.sample-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px dashed rgba(111, 78, 55, .5);
  font-size: 15px;
  line-height: 1.55;
  color: #4E4036;
}
.sample-note .i { color: var(--coffee); margin-top: 2px; }
.article-end { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; }
.tags a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--grey); color: var(--forest); font-size: 13.5px; text-decoration: none; }
.tags a:hover { background: var(--mint); }
.share-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share-inline .mono { color: var(--muted); margin-right: 4px; }
.share-inline a, .share-inline button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--forest); font-size: 14px; font-weight: 500; text-decoration: none; }
.share-inline a:hover, .share-inline button:hover { border-color: var(--forest); }
.share-inline .i { width: 16px; height: 16px; }
@media (max-width: 1099.98px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); max-width: 72ch; margin-inline: auto; }
  .article-aside { display: none; }
}

/* --------------------------------------------------------------------------
   Events
   -------------------------------------------------------------------------- */
.event-group + .event-group { margin-top: 64px; }
.event-group[hidden] { display: none; }
.event-group-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.event-group-head h2 { font-size: clamp(22px, 1.1rem + 1vw, 28px); }
.event-group-head .line { flex: 1; height: 1px; background: var(--line); }
.event-list { list-style: none; display: grid; gap: 20px; }
.event-list > li[hidden] { display: none; }
.event-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
  transition: box-shadow .35s;
}
.event-feature:hover { box-shadow: var(--sh-2); }
.event-feature .ev-body { padding: clamp(24px, 1rem + 2vw, 44px); display: flex; flex-direction: column; }
.event-feature .ev-media { position: relative; min-height: 340px; overflow: hidden; }
.event-feature .ev-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.event-feature:hover .ev-media img { transform: scale(1.04); }
.event-feature .ev-media .badge { position: absolute; top: 16px; right: 16px; }
.ev-top { display: flex; align-items: center; gap: 20px; }
.date-block {
  display: grid;
  justify-items: center;
  align-content: center;
  width: 104px; min-height: 112px;
  flex: none;
  padding: 12px 8px;
  border-radius: var(--r-md);
  background: var(--forest);
  color: #fff;
  text-align: center;
}
.date-day { font-family: var(--mono); font-size: 50px; font-weight: 500; line-height: 1; letter-spacing: -1px; }
.date-month { margin-top: 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); }
.date-year { margin-top: 2px; font-size: 11px; letter-spacing: .08em; color: rgba(255, 255, 255, .7); }
.date-block--past .date-year { color: var(--muted); }
.date-block--past { background: var(--grey); color: var(--forest); border: 1px solid var(--line); }
.date-block--past .date-month { color: var(--muted); }
.ev-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--green); }
.ev-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(140, 198, 63, .25); }
.ev-status--past { color: var(--muted); }
.ev-status--past::before { background: #B4C0BA; box-shadow: none; }
.ev-title { margin-top: 24px; font-size: clamp(22px, 1.1rem + 1vw, 30px); }
.ev-facts { list-style: none; display: grid; gap: 10px; margin-top: 20px; }
.ev-facts li { display: flex; gap: 12px; align-items: center; font-size: 15px; color: var(--ink); }
.ev-facts .i { color: var(--green); }
.ev-actions { margin-top: auto; padding-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.event-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 20px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.event-row:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.event-row .date-block { width: 88px; min-height: 92px; }
.event-row .date-day { font-size: 38px; }
.event-row h3 { font-size: 19px; margin-top: 6px; }
/* CODAVI-LARAVEL: tiêu đề sự kiện là link tới trang chi tiết (demo chưa có trang này), giữ màu chữ như demo */
.ev-title a, .event-row h3 a { color: inherit; text-decoration: none; }
.ev-title a:hover, .event-row h3 a:hover { color: var(--green); text-decoration: underline; }
.event-row .ev-facts { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.event-row .ev-facts li { font-size: 14px; color: var(--muted); }
@media (max-width: 899.98px) {
  .event-feature { grid-template-columns: 1fr; }
  .event-feature .ev-media { order: -1; min-height: 240px; }
}
@media (max-width: 649.98px) {
  .event-row { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .event-row > .badge, .event-row > .ev-end { grid-column: 1 / -1; justify-self: start; }
  .ev-top { flex-wrap: wrap; gap: 14px; }
  .ev-actions .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Glossary
   -------------------------------------------------------------------------- */
.glossary { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(32px, 2rem + 3vw, 88px); align-items: start; }
.glossary-side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 22px; padding: 24px; border-radius: var(--r-lg); background: var(--grey); }
.search-field { position: relative; }
.search-field .i { position: absolute; left: 16px; top: 50%; margin-top: -10px; color: var(--muted); pointer-events: none; }
.search-field input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px 12px 46px;
  border: 1.5px solid #D5DED9;
  border-radius: 999px;
  background: #fff;
  font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.search-field input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(27, 127, 59, .16); }
.search-field input::-webkit-search-cancel-button { cursor: pointer; }
.az-label { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.az { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 10px; list-style: none; }
.az a, .az span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
.az a { background: #fff; color: var(--forest); border: 1px solid var(--line); transition: background-color .2s, color .2s; }
.az a:hover, .az a.is-current { background: var(--forest); color: #fff; border-color: var(--forest); }
.az span { color: #647269; } /* CODAVI-LARAVEL: demo #A3AFA9 chỉ đạt 2.1:1, chưa đạt WCAG AA */
.glossary-count { font-size: 14px; color: var(--muted); }
.term-group { scroll-margin-top: calc(var(--header-h) + 24px); }
.term-group[hidden] { display: none; }
.term-group + .term-group { margin-top: 40px; }
.term-letter { display: flex; align-items: center; gap: 16px; margin-bottom: 4px; font-family: var(--mono); font-size: 28px; font-weight: 500; color: var(--green); }
.term-letter::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.term { position: relative; padding: 26px 0 28px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.term[hidden] { display: none; }
.term h2 { scroll-margin-top: calc(var(--header-h) + 24px); }
.term:has(h2:target) { animation: term-flash 2.4s var(--ease); }
@keyframes term-flash { 0%, 30% { background: var(--mint); box-shadow: -16px 0 0 var(--mint), 16px 0 0 var(--mint); } 100% { background: transparent; box-shadow: none; } }
.term-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.term h2 { font-size: clamp(22px, 1.1rem + .8vw, 28px); }
.term-en { margin-top: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.term-def { margin-top: 14px; font-size: 16.5px; }
.term-rel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.term-rel a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--mint); color: var(--forest); text-decoration: none; font-weight: 500; }
.term-rel a:hover { background: var(--forest); color: #fff; }
.term-copy {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  transition: color .2s, border-color .2s;
}
.term-copy:hover { color: var(--forest); border-color: var(--forest); }
.term-copy .i { width: 16px; height: 16px; }
@media (max-width: 899.98px) {
  .glossary { grid-template-columns: 1fr; }
  .glossary-side { position: relative; top: 0; }
  .az { grid-template-columns: repeat(9, minmax(0, 1fr)); }
}
@media (max-width: 479.98px) { .az { grid-template-columns: repeat(7, minmax(0, 1fr)); } }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 2rem + 3vw, 72px); align-items: start; }
.contact-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list .label { font-size: 13px; color: var(--muted); }
.contact-list .value { font-size: 17px; font-weight: 600; color: var(--forest); line-height: 1.4; }
.contact-list a.value { text-decoration: none; }
.contact-list a.value:hover { color: var(--green); text-decoration: underline; }
.contact-social { margin-top: 28px; }
.contact-social .social { margin-top: 12px; }
.contact-social .social a { border-color: var(--line); color: var(--forest); }
.contact-social .social a:hover { background: var(--forest); border-color: var(--forest); color: #fff; }
.form-card { padding: clamp(24px, 1rem + 2vw, 44px); border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-2); }
.form-card h2 { font-size: clamp(24px, 1.2rem + 1vw, 32px); }
.form-card > p { margin-top: 8px; color: var(--muted); margin-bottom: 28px; }
@media (max-width: 899.98px) { .contact-grid { grid-template-columns: 1fr; } }

.map-card { position: relative; isolation: isolate; margin-top: 32px; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16 / 11; background: var(--forest); color: #fff; --focus: var(--lime); }
.map-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(.8); }
.map-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(160deg, rgba(14, 59, 46, .5), rgba(10, 44, 34, .88));
}
.map-pin { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 22px; height: 22px; }
.map-pin::before, .map-pin::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.map-pin::before { background: var(--lime); box-shadow: 0 0 0 6px rgba(140, 198, 63, .3); }
.map-pin::after { border: 1.5px solid var(--lime); animation: ping 2.4s var(--ease) infinite; }
.map-label { position: absolute; left: 50%; top: 42%; transform: translate(16px, -130%); padding: 8px 12px; border-radius: 10px; background: #fff; color: var(--forest); font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: var(--sh-3); }
.map-info { position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.map-info .coord { font-size: 11.5px; }
.map-info p { margin-top: 6px; font-weight: 600; }
@media (max-width: 479.98px) { .map-card { aspect-ratio: 4 / 4.2; } .map-label { transform: translate(-50%, -170%); } }

.faq { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 2rem + 3vw, 88px); align-items: start; }
.faq-nav { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-nav ul { list-style: none; display: grid; gap: 4px; margin-top: 18px; }
.faq-nav a { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; transition: background-color .2s; }
.faq-nav a:hover { background: #fff; color: var(--forest); }
.faq-nav .count { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.faq-group + .faq-group { margin-top: 44px; }
.faq-group h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 20px; scroll-margin-top: calc(var(--header-h) + 24px); }
.faq-group h3 .mono { color: var(--green); font-size: 12px; }
@media (max-width: 899.98px) {
  .faq { grid-template-columns: 1fr; }
  .faq-nav { position: relative; top: 0; }
  .faq-nav ul { display: flex; flex-wrap: wrap; gap: 8px; }
  .faq-nav a { border: 1.5px solid var(--line); border-radius: 999px; background: #fff; padding: 8px 14px; gap: 8px; }
}

/* --------------------------------------------------------------------------
   Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .scroll-cue .line-v::after, .fc-pin-ring, .map-pin::after { animation: none; }
  /* AOS chỉ còn hiệu ứng mờ dần (xem main.js) */
  body [data-aos] { transition-property: opacity !important; transition-duration: .5s !important; transform: none !important; }
}

/* CODAVI-LARAVEL: the first screen (hero) is shown at once instead of fading in once the scripts at the end of
   the page have run (AOS hides [data-aos] until then): its title and image are what the browser measures for
   the first paint (FCP/LCP). Sections lower on the page keep the demo animation. */
.hero [data-aos], .page-hero [data-aos] { opacity: 1 !important; transform: none !important; }
