/* =========================================================================
   THẾ THẢO PHARMA — Brand Stylesheet
   Tokens dựa theo Brand Guidelines 2026 (Cẩm nang thương hiệu 16.4)
   ========================================================================= */

/* ---- Brand fonts (self-hosted — bản quyền có giấy phép) ----
   Files đặt tại assets/fonts/ — naming convention: SVN-Gilroy-<Weight>[Italic].otf
   Weight map theo CSS standard: Thin 100 · Light 300 · Regular 400 · Medium 500
   · SemiBold 600 · Bold 700 · Heavy 800 · Black 900.
   font-display: swap → text hiện ngay bằng fallback, swap khi font load xong. */
@font-face { font-family: "SVN-Gilroy"; src: url("../fonts/SVN-Gilroy-Thin.otf")            format("opentype"); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: "SVN-Gilroy"; src: url("../fonts/SVN-Gilroy-ThinItalic.otf")      format("opentype"); font-weight: 100; font-style: italic; font-display: swap; }
@font-face { font-family: "SVN-Gilroy"; src: url("../fonts/SVN-Gilroy-Light.otf")           format("opentype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "SVN-Gilroy"; src: url("../fonts/SVN-Gilroy-LightItalic.otf")     format("opentype"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "SVN-Gilroy"; src: url("../fonts/SVN-Gilroy-Regular.otf")         format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "SVN-Gilroy"; src: url("../fonts/SVN-Gilroy-Italic.otf")          format("opentype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "SVN-Gilroy"; src: url("../fonts/SVN-Gilroy-Medium.otf")          format("opentype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "SVN-Gilroy"; src: url("../fonts/SVN-Gilroy-MediumItalic.otf")    format("opentype"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "SVN-Gilroy"; src: url("../fonts/SVN-Gilroy-SemiBold.otf")        format("opentype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "SVN-Gilroy"; src: url("../fonts/SVN-Gilroy-SemiBoldItalic.otf")  format("opentype"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "SVN-Gilroy"; src: url("../fonts/SVN-Gilroy-Bold.otf")            format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "SVN-Gilroy"; src: url("../fonts/SVN-Gilroy-BoldItalic.otf")      format("opentype"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "SVN-Gilroy"; src: url("../fonts/SVN-Gilroy-Heavy.otf")           format("opentype"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "SVN-Gilroy"; src: url("../fonts/SVN-Gilroy-HeavyItalic.otf")     format("opentype"); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: "SVN-Gilroy"; src: url("../fonts/SVN-Gilroy-Black.otf")           format("opentype"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "SVN-Gilroy"; src: url("../fonts/SVN-Gilroy-BlackItalic.otf")     format("opentype"); font-weight: 900; font-style: italic; font-display: swap; }
@font-face { font-family: "NVN Motherland Signature"; src: url("../fonts/NVN-Motherland-Signature.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }

/* Cross-document View Transitions (Chrome 126+, Safari 18+, Edge).
   Browser tự fade khi navigate giữa các trang same-origin.
   Browser cũ ignore rule này → reload bình thường, không lỗi. */
@view-transition { navigation: auto; }

:root {
  /* Brand colors */
  --c-green-900: #003d20;
  --c-green-800: #005b31;   /* Xanh lá đậm — chủ đạo */
  --c-green-700: #0a7a44;
  --c-green-500: #50b848;
  --c-green-400: #72bf44;   /* Xanh lá tươi — chủ đạo */
  --c-green-300: #a4d977;
  --c-green-50:  #ecf6e3;
  --c-green-25:  #f6fbef;

  --c-blue-500:  #3cb4e7;
  --c-blue-700:  #005baa;
  --c-yellow:    #fdb913;

  --c-ink-900:   #0d1f15;
  --c-ink-700:   #2a3a30;
  --c-ink-500:   #56635c;
  --c-ink-300:   #97a39d;
  --c-line:      #e6ebe7;
  --c-bg-soft:   #F1F2F2;
  --c-bg-soft-2: #f7f9f7;
  --c-white:     #ffffff;

  /* Typography (theo Brand Guideline §3.5)
     - Display (headline): SVN-Gilroy — bắt buộc cho ấn phẩm brand
     - Body: Roboto (Việt hóa)
     - Script (accent): NVN Motherland Signature — chữ viết tay
     - Fallback: Arial cho web/email khi font brand chưa load */
  --font-display: "SVN-Gilroy", "Arial", system-ui, -apple-system, sans-serif;
  --font-body:    "Roboto", "Arial", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script:  "NVN Motherland Signature", "Caveat", cursive;

  /* Layout */
  --container:   1240px;
  --container-narrow: 980px;
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 91, 49, .06);
  --shadow-md: 0 10px 30px rgba(0, 91, 49, .10);
  --shadow-lg: 0 24px 60px rgba(0, 91, 49, .14);

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);

  /* Decorative rings — dùng chung cho .hero & .page-hero (xem block "Decorative rings" trong CSS).
     Đổi 1 chỗ → áp dụng toàn site. */
  --ring-size-lg: 320px;
  --ring-size-sm: 220px;
  --ring-opacity-lg: .55;
  --ring-opacity-sm: .4;
  --ring-offset-top: -120px;
  --ring-offset-right: -120px;
  --ring-offset-bottom: -110px;
  --ring-offset-left: -80px;
}

/* ----- Base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-ink-900);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--c-green-800); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--c-green-500); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--c-green-800);
  margin: 0 0 .5em;
  line-height: 1.18;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; color: var(--c-ink-700); text-align: justify; text-justify: inter-word; }

/* Justify toàn cục cho mọi paragraph dài (body, card, modal). Một số chỗ ngắn
   1 dòng / center cố tình giữ căn trái để tránh khoảng trắng kỳ cục. */
.cta-strip p,
.footer-brand p,
.text-center p,
.text-center .lead,
.contact-info p,
.bio-card__sub { text-align: left; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.container.narrow { max-width: var(--container-narrow); }

.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section--soft { background: var(--c-bg-soft-2); }
.section--green {
  background: linear-gradient(160deg, var(--c-green-800) 0%, #07472a 100%);
  color: #e8f4ec;
}
.section--green h1, .section--green h2, .section--green h3 { color: #fff; }
.section--green p { color: #cfe2d6; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-green-500);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px; background: var(--c-green-400);
}
/* Khi eyebrow nằm trong block căn giữa (.text-center) → thêm gạch bên phải đối xứng. */
.text-center .eyebrow::after {
  content: "";
  width: 28px; height: 2px; background: var(--c-green-400);
}
.section--green .eyebrow { color: var(--c-green-300); }
.section--green .eyebrow::before,
.section--green .text-center .eyebrow::after { background: var(--c-green-400); }

.lead { font-size: 1.125rem; color: var(--c-ink-500); max-width: 62ch; }
.section--green .lead { color: #c8dccf; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-display);
  font-weight: 700; font-size: .95rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .25s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary { background: var(--c-green-800); color: #fff; }
.btn--primary:hover { background: var(--c-green-500); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--accent { background: var(--c-green-400); color: var(--c-green-900); }
.btn--accent:hover { background: var(--c-green-500); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--c-green-800); border-color: var(--c-green-800); }
.btn--ghost:hover { background: var(--c-green-800); color: #fff; }
.btn--light { background: #fff; color: var(--c-green-800); }
.btn--light:hover { background: var(--c-green-50); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--c-line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--c-green-800); text-decoration: none; flex-shrink: 0; }
.brand__icon { height: 56px; width: 56px; display: block; flex-shrink: 0; object-fit: contain; }
.brand__text { display: inline-flex; flex-direction: column; line-height: 1.05; white-space: nowrap; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.14rem;
  letter-spacing: .02em;
  color: var(--c-green-800);
}
.brand__tagline {
  font-size: .78rem;
  font-weight: 500;
  color: var(--c-green-700);
  margin-top: 3px;
  letter-spacing: .01em;
}
.site-header .nav { padding: 10px 0; }
@media (max-width: 860px) {
  .brand__tagline { display: none; }
}
@media (max-width: 540px) {
  .brand { gap: 9px; }
  .brand__icon { height: 48px; width: 48px; }
  .brand__name { font-size: 1.05rem; }
}

/* Footer variant — dark background */
.footer-brand .brand__name { color: #ffffff; }
.footer-brand .brand__tagline { color: #ffffff; display: inline-flex; }
.footer-brand .brand__icon { height: 64px; width: 64px; }

.nav-menu { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  color: var(--c-ink-900);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .92rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.nav-menu a .nav-ico { width: 16px; height: 16px; flex-shrink: 0; }
.nav-menu a:hover { background: var(--c-green-50); color: var(--c-green-800); }
.nav-menu a.active {
  background: var(--c-green-800);
  color: #fff;
  font-weight: 700;
}

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 10px 20px; font-size: .88rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px;
  background: var(--c-green-50); border: 0; border-radius: 12px;
  cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block;
  width: 22px; height: 2px; background: var(--c-green-800);
  position: relative; transition: transform .2s var(--ease);
}
.nav-toggle span::before { position: absolute; top: -7px; left: 0; }
.nav-toggle span::after  { position: absolute; top:  7px; left: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch;
    background: #fff; padding: 0 16px;
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden;
    transition: max-height .3s var(--ease), padding-block .3s var(--ease);
  }
  .nav-menu.open { max-height: 80vh; padding: 16px; }
  .nav-menu a { padding: 12px 16px; }
  /* Ẩn TẤT CẢ CTA button trong header khi vào mobile — tránh tràn header.
     Trước đây chỉ ẩn .btn--ghost (homepage / giới thiệu / tin-tức) nhưng
     /tuyen-dung & /welcome dùng .btn--primary, /tu-thuoc-cho-em dùng .btn--accent.
     Truy cập Tuyển dụng vẫn có qua dropdown menu (`.nav-menu__cta` ở mỗi page). */
  .nav-cta .btn { display: none; }
}

/* `.nav-menu__cta` — item "Tuyển dụng" thêm vào dropdown menu cho mobile.
   Trên desktop ẩn vì đã có nút CTA ở `.nav-cta` cạnh hamburger. */
.nav-menu__cta { display: none; }
@media (max-width: 980px) {
  .nav-menu__cta { display: list-item; }
  /* Style nổi bật để rõ là CTA chính (dòng tô đậm trong dropdown). */
  .nav-menu__cta a {
    background: var(--c-green-800);
    color: #fff;
    margin-top: 8px;
    justify-content: flex-start;
  }
  .nav-menu__cta a:hover { background: var(--c-green-500); color: #fff; }
  /* Active state — khi đang ở /tuyen-dung, main.js gắn .active.
     Giữ visual nhất quán với màu green-800 nền (không cần đổi). */
}

/* ----- Hero ----- */
.hero {
  position: relative;
  padding: clamp(32px, 4vw, 56px) 0 clamp(64px, 8vw, 110px);
  background:
    radial-gradient(80% 80% at 90% -10%, rgba(114,191,68,.18), transparent 60%),
    radial-gradient(60% 60% at -10% 110%, rgba(0,91,49,.10), transparent 65%),
    linear-gradient(180deg, var(--c-green-25) 0%, #fff 80%);
  overflow: hidden;
}
/* Ring decorations: see ".hero, .page-hero" block below (single source of truth) */
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: var(--radius-pill);
  background: #fff; box-shadow: var(--shadow-sm);
  color: var(--c-green-800); font-weight: 600; font-size: .85rem;
  font-family: var(--font-display);
  margin-bottom: 22px;
}
.hero__tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-green-400); box-shadow: 0 0 0 4px rgba(114,191,68,.25); }
.hero h1 { color: var(--c-green-900); }
.hero h1 .accent { color: var(--c-green-500); }
.hero h1 .script { font-family: var(--font-script); font-weight: 400; color: var(--c-green-500); }
.hero__lead { font-size: 1.15rem; color: var(--c-ink-700); max-width: 56ch; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hero__stats .stat { border-left: 3px solid var(--c-green-400); padding-left: 16px; }
.hero__stats .stat strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3.2vw, 2.2rem); color: var(--c-green-800); line-height: 1; }
.hero__stats .stat span { font-size: .85rem; color: var(--c-ink-500); }

.hero__art { position: relative; aspect-ratio: 4/3; justify-self: end; width: 100%; }
.hero__art .ring { position: absolute; inset: 0; border-radius: 50%; }
.hero__art .ring--1 { border: 2px dashed rgba(0,91,49,.18); animation: spin 60s linear infinite; }
.hero__art .ring--2 { inset: 8%; border: 18px solid rgba(114,191,68,.12); }
.hero__art .ring--3 { inset: 18%; border: 1px solid rgba(0,91,49,.18); }
.hero__art .center {
  position: absolute; inset: 22%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #ecf6e3);
  display: grid; place-items: center;
  box-shadow: 0 30px 80px rgba(0,91,49,.18);
}
.hero__art .center svg { width: 60%; height: 60%; }

/* ----- Hero slideshow (fade) ----- */
.hero-slideshow {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,91,49,.22), 0 4px 16px rgba(0,91,49,.08);
  background: var(--c-green-50);
  isolation: isolate;
}
.hero-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
  will-change: opacity;
}
.hero-slide.is-active { opacity: 1; }
.hero-slideshow::after {
  /* Gradient overlay nhẹ tạo chiều sâu + hợp tone xanh brand */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,91,49,0) 55%, rgba(0,91,49,.22) 100%);
  pointer-events: none; z-index: 1;
}
.hero-slideshow__dots {
  position: absolute; bottom: 18px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px;
  z-index: 2;
}
.hero-dot {
  width: 32px; height: 4px; border-radius: 2px;
  border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.5);
  transition: background .25s ease, width .25s ease;
}
.hero-dot:hover { background: rgba(255,255,255,.8); }
.hero-dot.is-active { background: #fff; width: 44px; }
.hero__art .pill {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-md);
  font-family: var(--font-display); font-weight: 700; font-size: .82rem;
  color: var(--c-green-800);
  white-space: nowrap;     /* fix: cấm wrap để chữ không rớt mỗi ký tự một dòng */
  width: max-content;
  max-width: 92%;
}
.hero__art .pill svg { width: 18px; height: 18px; color: var(--c-green-500); flex: none; }
.hero__art .pill--a { top: 6%;    left: -8%; }
.hero__art .pill--b { bottom: 8%; right: -6%; }
.hero__art .pill--c { top: 52%;   left: -14%; }

/* Hide pills if hero__art is too narrow to host them without overflow chaos */
@media (max-width: 1100px) {
  .hero__art .pill { font-size: .76rem; padding: 8px 12px; }
  .hero__art .pill--a { left: -2%; }
  .hero__art .pill--b { right: -2%; }
  .hero__art .pill--c { left: -4%; }
}
@media (max-width: 760px) {
  .hero__art .pill { display: none; } /* trên mobile pills che mất logo → ẩn */
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .hero__art { max-width: 480px; margin-inline: auto; justify-self: center; }
}

/* ----- Brand graphic (corner circles) ----- */
.deco-rings { position: absolute; pointer-events: none; opacity: .55; }
.deco-rings--tr { top: -60px; right: -60px; }
.deco-rings--bl { bottom: -60px; left: -60px; }

/* ----- Sections — content blocks ----- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-grid__art {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius-lg);
  overflow: hidden;
}
.about-photo {
  position: absolute; inset: 0;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-green-800), var(--c-green-500));
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-grid__ring {
  position: absolute; width: 220px; pointer-events: none;
}
.about-grid__ring--tl { top: -50px; right: -50px; opacity: .5; }
.about-grid__ring--br { bottom: -60px; left: -60px; opacity: .4; transform: rotate(180deg); }
.about-grid__art .badge {
  position: absolute; bottom: 22px; left: 22px; z-index: 2;
  background: #fff; padding: 14px 18px; border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-family: var(--font-display);
}
.about-grid__art .badge strong { font-size: 1.8rem; color: var(--c-green-800); display: block; line-height: 1; }
.about-grid__art .badge span { font-size: .82rem; color: var(--c-ink-500); }

@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ----- POD cards ----- */
.pod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.pod-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--c-line);
  transition: all .3s var(--ease);
  position: relative; overflow: hidden;
}
.pod-card::before {
  content: ""; position: absolute; inset: auto auto 0 0;
  width: 100%; height: 4px; background: var(--c-green-400);
  transform: scaleX(.3); transform-origin: left; transition: transform .35s var(--ease);
}
.pod-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.pod-card:hover::before { transform: scaleX(1); }
.pod-card .pod-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--c-green-50); color: var(--c-green-800);
  font-family: var(--font-display); font-weight: 800; margin-bottom: 18px;
}
.pod-card h3 { font-size: 1.25rem; }
.pod-card .pod-kw {
  display: inline-block;
  background: var(--c-green-800); color: #fff;
  padding: 4px 12px; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 700; font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 14px;
}
.pod-card .pod-list { list-style: none; padding: 0; margin: 16px 0 0; }
.pod-card .pod-list li {
  position: relative; padding-left: 26px; padding-bottom: 8px;
  font-size: .92rem; color: var(--c-ink-700);
}
.pod-card .pod-list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--c-green-50);
  border: 2px solid var(--c-green-400);
}
@media (max-width: 900px) { .pod-grid { grid-template-columns: 1fr; } }

/* ----- Values ----- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.value-card {
  padding: 28px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--c-line);
  transition: all .25s var(--ease);
}
.value-card:hover { background: var(--c-green-800); border-color: var(--c-green-800); transform: translateY(-4px); }
.value-card:hover h3, .value-card:hover .value-num, .value-card:hover p { color: #fff !important; }
.value-card:hover .value-num { background: var(--c-green-400); }
.value-num {
  display: inline-flex; width: 36px; height: 36px; border-radius: 10px;
  background: var(--c-green-50); color: var(--c-green-800);
  align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800;
  margin-bottom: 14px; transition: all .25s var(--ease);
}
.value-card h3 { font-size: 1.05rem; margin-bottom: 6px; transition: color .25s var(--ease); }
.value-card .value-quote {
  font-style: italic; color: var(--c-green-500); font-size: .85rem; margin-bottom: 12px;
  font-family: var(--font-display); font-weight: 500;
}
.value-card p { font-size: .92rem; transition: color .25s var(--ease); }
@media (max-width: 900px) { .values-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .values-grid { grid-template-columns: 1fr; } }

/* ----- Business areas ----- */
.areas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.area-card {
  position: relative; padding: 28px 24px;
  background: var(--c-white); border-radius: var(--radius-lg);
  border: 1px solid var(--c-line); transition: all .3s var(--ease);
  overflow: hidden;
}
.area-card .icon-wrap {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  background: var(--c-green-50); color: var(--c-green-800);
  display: grid; place-items: center; margin-bottom: 16px;
}
.area-card .icon-wrap svg { width: 28px; height: 28px; }
.area-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.area-card p { font-size: .9rem; }
.area-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.area-card:hover .icon-wrap { background: var(--c-green-800); color: #fff; }
@media (max-width: 980px) { .areas-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .areas-grid { grid-template-columns: 1fr; } }

/* ----- CSR banner ----- */
.csr-banner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  background: linear-gradient(135deg, var(--c-green-800), #08512c);
  color: #fff; border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 64px);
  position: relative; overflow: hidden;
}
.csr-banner::before {
  content: ""; position: absolute; inset: auto -10% -50% auto;
  width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(114,191,68,.25), transparent 70%);
}
.csr-banner h2 { color: #fff; }
.csr-banner p { color: #cfe2d6; }
.csr-banner .script { font-family: var(--font-script); font-size: 1.4em; color: var(--c-green-400); }
.csr-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 24px; }
.csr-stats .stat {
  background: rgba(255,255,255,.06); padding: 18px;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--c-green-400);
}
.csr-stats .stat strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; color: #fff; line-height: 1; }
.csr-stats .stat span { color: #b7cfbf; font-size: .82rem; }
.csr-banner__art {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%; max-width: 460px;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px dashed rgba(255,255,255,.18);
  overflow: hidden;
  justify-self: center;
}
.csr-banner__art img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  border-radius: 50%;
}
.csr-banner__art svg { width: 60%; opacity: .9; color: var(--c-green-400); }
@media (max-width: 900px) { .csr-banner { grid-template-columns: 1fr; } }

/* ----- News / Card grid ----- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.news-grid:first-child { margin-top: 0; }  /* khi không có heading trước (vd: trang Tin tức) */
.news-card {
  background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--c-line);
  overflow: hidden;
  transition: all .25s var(--ease);
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.news-card .cover {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--c-green-50), var(--c-green-300));
  position: relative; overflow: hidden;
}
.news-card .cover svg { position: absolute; inset: 0; margin: auto; width: 50%; opacity: .9; color: var(--c-green-800); }
.news-card .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card .body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.news-card .cat {
  display: inline-block; background: var(--c-green-50); color: var(--c-green-800);
  font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; padding: 4px 10px; border-radius: var(--radius-pill); margin-bottom: 10px;
  align-self: flex-start;
}
.news-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.news-card .meta { font-size: .82rem; color: var(--c-ink-500); margin-top: auto; padding-top: 14px; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }

/* ----- Partner grid (logo frames — phù hợp mọi tỉ lệ logo) ----- */
.partner-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px;
  margin-top: 40px;
}
.partner-card {
  aspect-ratio: 1 / 1;
  background: #fff; border-radius: var(--radius-md);
  border: 1px solid var(--c-line);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  display: grid; place-items: center;
  padding: 18px;
  transition: all .25s var(--ease);
}
.partner-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--c-green-400); }
.partner-card img,
.partner-card svg {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  display: block;
}
.partner-card .partner-logo {
  font-family: var(--font-display); font-weight: 800;
  color: var(--c-ink-500); letter-spacing: .03em;
  font-size: .85rem; text-align: center; line-height: 1.2;
}
@media (max-width: 1024px) { .partner-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px)  { .partner-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 420px)  { .partner-grid { grid-template-columns: repeat(2, 1fr); } }

/* ----- Testimonials (khách hàng phản hồi) ----- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.testi-card {
  background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--c-line);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all .25s var(--ease);
}
.testi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testi-card .photo {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--c-green-50), var(--c-green-300));
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  color: var(--c-green-800);
}
.testi-card .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.testi-card .photo svg { width: 38%; opacity: .75; }
.testi-card .body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.testi-card .name { color: var(--c-green-800); font-family: var(--font-display); font-weight: 800; font-size: 1.08rem; }
.testi-card .loc  { font-style: italic; color: var(--c-ink-500); font-size: .9rem; margin-bottom: 6px; }
.testi-card .quote { color: var(--c-ink-700); margin: 0; font-size: .94rem; line-height: 1.6; }
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }

/* ----- CTA strip ----- */
.cta-strip {
  background: linear-gradient(135deg, var(--c-green-400), var(--c-green-500));
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-strip h2 { color: var(--c-green-900); margin-bottom: 6px; }
.cta-strip p { color: #114a26; margin: 0; }
@media (max-width: 800px) { .cta-strip { grid-template-columns: 1fr; text-align: center; } }

/* ----- Footer ----- */
.site-footer {
  background: var(--c-green-900);
  color: #c8dccf;
  padding: 64px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; font-family: var(--font-display); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 5px 0; font-size: .92rem; }
.site-footer a { color: #c8dccf; }
.site-footer a:hover { color: var(--c-green-400); }
.footer-brand p { color: #a3bdaf; font-size: .92rem; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.06);
  display: grid; place-items: center;
  color: #fff;
}
.footer-social a:hover { background: var(--c-green-500); color: #fff; }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  margin-top: 48px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: #94aea0; font-size: .85rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* ----- Page hero (inner pages) — gradient match .hero homepage ----- */
.page-hero {
  background:
    radial-gradient(80% 80% at 90% -10%, rgba(114,191,68,.18), transparent 60%),
    radial-gradient(60% 60% at -10% 110%, rgba(0,91,49,.10), transparent 65%),
    linear-gradient(180deg, var(--c-green-25) 0%, #fff 80%);
  padding: clamp(36px, 4.5vw, 56px) 0 clamp(40px, 5vw, 64px);
  position: relative; overflow: hidden;
}
/* ===== Decorative rings — single source of truth =====
   Áp dụng đồng bộ cho .hero (trang chủ) và .page-hero (trang con).
   Tinh chỉnh size/opacity/offset qua biến --ring-* ở :root.
   Ring lớn xoay 180° để cung đậm SVG (12h→3h) lộ vào vùng nhìn thấy. */
.hero::before, .hero::after,
.page-hero::before, .page-hero::after {
  content: "";
  position: absolute;
  background: url("../img/deco-rings.svg") center/contain no-repeat;
  pointer-events: none;
  z-index: 0;
}
.hero::before, .page-hero::before {
  width: var(--ring-size-lg);  height: var(--ring-size-lg);
  top: var(--ring-offset-top);  right: var(--ring-offset-right);
  opacity: var(--ring-opacity-lg);
  transform: rotate(180deg);
}
.hero::after, .page-hero::after {
  width: var(--ring-size-sm);  height: var(--ring-size-sm);
  bottom: var(--ring-offset-bottom);  left: var(--ring-offset-left);
  opacity: var(--ring-opacity-sm);
}
.hero > .container,
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: 14px; color: var(--c-green-900); }
.page-hero .lead { max-width: 62ch; color: var(--c-ink-700); font-size: 1.08rem; }

/* ----- Page hero split: text trái + ảnh phải (trang Tuyển dụng) -----
   Đồng bộ grid `1fr 1fr; gap: 60px` với hero + about + timeline để toàn site
   nhất quán. Ảnh align-self: start để neo top, vẫn giữ feel "đè chéo" do text
   dài hơn ảnh ngang 4:3. */
.page-hero--split .page-hero__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.page-hero__text { min-width: 0; padding-block: 0 clamp(20px, 4vw, 40px); }
.page-hero__cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.page-hero__cta .btn svg { transition: transform .25s var(--ease); }
.page-hero__cta .btn:hover svg { transform: translateY(3px); }
.page-hero__media {
  align-self: start;
  width: 100%;
  margin-top: -8px;
}
.hero-photo {
  position: relative; margin: 0;
  border-radius: 28px; overflow: hidden;
  background: linear-gradient(135deg, var(--c-green-50), #fff);
  box-shadow: 0 30px 60px -20px rgba(0, 61, 32, .25),
              0 8px 20px -8px rgba(0, 61, 32, .15);
  aspect-ratio: 4 / 3;
  isolation: isolate;
}
.hero-photo::before {
  content: ""; position: absolute; inset: -2px;
  background: linear-gradient(135deg, var(--c-green-400), var(--c-green-800));
  z-index: -1; border-radius: 30px;
  opacity: .9;
}
.hero-photo::after {
  content: ""; position: absolute;
  width: 140px; height: 140px; border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, .35);
  top: -50px; right: -50px;
  pointer-events: none;
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.hero-photo__caption {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(0, 61, 32, .82);
  color: #fff; font-family: var(--font-display);
  font-size: .82rem; font-weight: 600;
  padding: 8px 14px; border-radius: 999px;
  backdrop-filter: blur(6px);
  letter-spacing: .02em;
}
/* `.page-hero--split .page-hero__grid` (0,2,0) thắng `.page-hero__grid` (0,1,0)
   → mobile rule cũ không apply. Bump selector trong media query để stack đúng. */
@media (max-width: 900px) {
  .page-hero--split .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero--split .page-hero__media { justify-self: center; width: 100%; max-width: 480px; margin-top: 0; }
}
.crumb { display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--font-display); font-size: .85rem; color: var(--c-ink-500); margin-bottom: 14px; }
.crumb a { color: var(--c-green-500); }
.crumb span { color: var(--c-green-800); font-weight: 700; }

/* ----- Story / mission cards ----- */
.mission-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.mission-card {
  background: #fff; padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-line);
  position: relative; transition: all .25s var(--ease);
}
.mission-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.mission-card .icon-wrap {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, var(--c-green-400), var(--c-green-500));
  color: #fff; display: grid; place-items: center; margin-bottom: 18px;
}
.mission-card .icon-wrap svg { width: 28px; height: 28px; }
.mission-card h3 { color: var(--c-green-800); }
@media (max-width: 900px) { .mission-grid { grid-template-columns: 1fr; } }

/* ----- Timeline layout (2 cột — nội dung trái, ảnh tĩnh phải)
   Đồng bộ grid `1fr 1fr; gap: 60px` với hero + about để boundary text|image
   align với các section khác trên toàn site. Xem README "Quy ước grid 2 cột". */
.timeline-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.timeline-aside {
  display: flex; flex-direction: column; gap: 40px;
  padding-top: 56px;     /* căn dòng với "Hành trình" eyebrow bên trái */
}
.timeline-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-green-50);
  box-shadow: 0 14px 40px rgba(0,91,49,.14), 0 2px 8px rgba(0,91,49,.06);
  transition: transform .3s var(--ease);
}
.timeline-photo:hover { transform: translateY(-4px); }
.timeline-photo img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
}
.timeline-photo figcaption {
  padding: 12px 18px 16px;
  font-family: var(--font-display); font-weight: 600; font-size: .88rem;
  color: var(--c-green-800);
}
@media (max-width: 960px) {
  .timeline-layout { grid-template-columns: 1fr; gap: 32px; }
  .timeline-aside { padding-top: 0; max-width: 560px; margin-inline: auto; }
}

/* ----- Timeline ----- */
.timeline { position: relative; margin-top: 40px; padding-left: 28px; }
.timeline::before {
  content: ""; position: absolute; top: 8px; bottom: 8px; left: 8px;
  width: 2px; background: var(--c-green-300);
}
.timeline-item { position: relative; padding-bottom: 32px; }
.timeline-item::before {
  content: ""; position: absolute; left: -28px; top: 6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--c-green-400); border: 4px solid #fff;
  box-shadow: 0 0 0 2px var(--c-green-400);
}
.timeline-item .year {
  font-family: var(--font-display); font-weight: 800; color: var(--c-green-500);
  font-size: 1rem; margin-bottom: 4px; display: block;
}
.timeline-item h4 { color: var(--c-green-800); margin-bottom: 6px; }

/* ----- Product showcase ----- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.product-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 28px; border: 1px solid var(--c-line);
  position: relative; overflow: hidden;
  transition: all .25s var(--ease);
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.product-card .pcat {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--c-green-50), var(--c-green-300));
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.product-card .pcat svg { width: 56px; height: 56px; color: var(--c-green-800); }
.product-card h3 { font-size: 1.15rem; }
.product-card .meta { font-family: var(--font-display); font-weight: 700; font-size: .82rem; color: var(--c-green-500); margin-bottom: 6px; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 900px) { .product-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .product-grid { grid-template-columns: 1fr; } }

/* ----- Contact ----- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; }
.contact-info .info-row {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 0; border-bottom: 1px solid var(--c-line);
}
.contact-info .info-row:last-child { border-bottom: 0; }
.contact-info .info-row .icon-wrap {
  width: 44px; height: 44px; flex: none; border-radius: 12px;
  background: var(--c-green-50); color: var(--c-green-800);
  display: grid; place-items: center;
}
.contact-info .info-row strong { display: block; font-family: var(--font-display); color: var(--c-green-800); }

.contact-form {
  background: #fff; padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .88rem; color: var(--c-ink-700); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-md);
  border: 1px solid var(--c-line); font-family: var(--font-body); font-size: .95rem;
  background: var(--c-bg-soft-2); transition: border .15s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--c-green-400); background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 900px) { .contact-grid, .field-row { grid-template-columns: 1fr; } }

/* ----- Misc ----- */
.text-center { text-align: center; }
.mt-12 { margin-top: 12px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ----- Mission grid 4 cột (dùng riêng cho trang Tuyển dụng) ----- */
.mission-grid.mission-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .mission-grid.mission-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .mission-grid.mission-grid--4 { grid-template-columns: 1fr; } }

/* ----- Job card với nút "Xem chi tiết" ở góc dưới phải ----- */
.job-card { padding-bottom: 72px !important; }
.job-card__count {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--c-green-800);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600; font-size: .8rem;
  letter-spacing: .02em;
}
.job-detail-btn {
  position: absolute; right: 20px; bottom: 18px;
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 0; cursor: pointer;
  color: var(--c-green-800); font-family: var(--font-display);
  font-weight: 600; font-size: .92rem;
  padding: 6px 4px; transition: color .2s var(--ease), transform .2s var(--ease);
}
.job-detail-btn:hover { color: var(--c-green-500); transform: translateX(2px); }
.job-detail-btn svg { transition: transform .2s var(--ease); }
.job-detail-btn:hover svg { transform: translateX(2px); }
.job-card__salary {
  margin: 10px 0 0;
  padding: 8px 12px;
  background: var(--c-green-50);
  border-left: 3px solid var(--c-green-500);
  border-radius: 6px;
  color: var(--c-ink-900);
  font-size: .95rem;
  line-height: 1.4;
}
.job-card__salary strong { color: var(--c-green-800); margin-right: 4px; }
.job-card__hot {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6a3d, #f5a623);
  color: #fff;
  box-shadow: 0 4px 14px -4px rgba(245, 90, 30, .6);
}
.job-card__hot svg { width: 18px; height: 18px; display: block; }

/* Cụm badge ở góc trên-phải card (chứa HOT + count) — đối diện với eyebrow/title (góc trên-trái). */
.job-card__badges {
  position: absolute; top: 22px; right: 22px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
}
.job-card__badges .job-card__hot,
.job-card__badges .job-card__count {
  position: static; top: auto; right: auto; margin: 0;
}

/* Bump font dept/title trong job-card lên 1 chút */
.job-card .eyebrow { font-size: .85rem; }
.job-card h3 { font-size: 1.35rem; }
.job-modal__salary {
  margin: 10px 0 0;
  padding: 10px 14px;
  background: var(--c-green-50);
  border-left: 3px solid var(--c-green-500);
  border-radius: 6px;
  color: var(--c-ink-900);
  font-size: 1.05rem;
}
.job-modal__salary strong { color: var(--c-green-800); margin-right: 4px; }
.job-modal__count {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 10px;
  font-size: .75rem; font-weight: 600;
  vertical-align: middle;
  background: var(--c-green-800);
  color: #fff;
  border-radius: 99px;
  font-family: var(--font-body);
}

/* ----- JD Modal ----- */
.job-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; }
.job-modal[hidden] { display: none; }
.job-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 30, 16, .55);
  backdrop-filter: blur(2px);
  animation: jobFade .2s var(--ease);
}
.job-modal__panel {
  position: relative; z-index: 1;
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .25);
  overflow: hidden;
  display: flex; flex-direction: column;
  animation: jobPop .25s var(--ease);
}
@keyframes jobFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes jobPop  { from { opacity: 0; transform: translateY(20px) scale(.98) } to { opacity: 1; transform: none } }
.job-modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px;
  border-radius: 50%; border: 0; cursor: pointer;
  background: var(--c-green-50); color: var(--c-green-800);
  display: grid; place-items: center;
  transition: all .2s var(--ease);
  z-index: 2;
}
.job-modal__close:hover { background: var(--c-green-800); color: #fff; }
.job-modal__body {
  padding: 40px 36px 36px;
  overflow-y: auto;
}
.job-modal__body h2 { color: var(--c-green-900); margin: 6px 0 10px; }
.job-modal__body h4 {
  margin: 22px 0 8px;
  color: var(--c-green-800);
  font-family: var(--font-display);
  font-size: 1.02rem; font-weight: 700;
}
.job-modal__body .lead { color: var(--c-ink-700); font-size: 1rem; }
.job-modal__body ul.pod-list li { margin-bottom: 4px; }
body.job-modal-open { overflow: hidden; }
@media (max-width: 600px) {
  .job-modal { padding: 0; }
  .job-modal__panel { max-height: 100vh; border-radius: 0; height: 100vh; }
  .job-modal__body { padding: 56px 22px 28px; }
}

/* ----- Apply modal — form ứng tuyển (welcome page) ----- */
.apply-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; }
.apply-modal[hidden] { display: none; }
.apply-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 30, 16, .55);
  backdrop-filter: blur(4px);
}
.apply-modal__panel {
  position: relative;
  width: 100%; max-width: 560px;
  max-height: calc(100vh - 48px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 60px -20px rgba(0, 61, 32, .35);
  overflow: auto;
}
.apply-modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-green-50); color: var(--c-green-800);
  border: 0; border-radius: 50%;
  cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease);
}
.apply-modal__close:hover { background: var(--c-green-800); color: #fff; }
.apply-modal__body { padding: 36px 36px 28px; }
.apply-modal__body h2 { color: var(--c-green-900); margin: 6px 0 8px; }
.apply-modal__lead { color: var(--c-ink-700); font-size: .95rem; margin: 0 0 20px; }
body.apply-modal-open { overflow: hidden; }

.apply-form { display: flex; flex-direction: column; gap: 14px; }
.apply-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.apply-form__field { display: flex; flex-direction: column; gap: 6px; }
.apply-form__label {
  font-family: var(--font-display); font-weight: 600;
  font-size: .88rem; color: var(--c-ink-900);
}
.apply-form__label em { color: #d64545; font-style: normal; margin-left: 2px; }
.apply-form__field input[type="text"],
.apply-form__field input[type="tel"],
.apply-form__field input[type="email"],
.apply-form__field select,
.apply-form__field textarea {
  width: 100%;
  padding: 11px 14px;
  font: inherit; font-size: .95rem;
  color: var(--c-ink-900);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.apply-form__field input:focus,
.apply-form__field select:focus,
.apply-form__field textarea:focus {
  outline: 0;
  border-color: var(--c-green-500);
  box-shadow: 0 0 0 3px rgba(80, 184, 72, .18);
}
.apply-form__field textarea { resize: vertical; min-height: 80px; }
.apply-form__field input[type="file"] {
  padding: 10px 14px;
  font-size: .9rem;
  background: var(--c-green-50);
  border: 1px dashed var(--c-green-400);
  border-radius: 10px;
  color: var(--c-ink-900);
  cursor: pointer;
}
.apply-form__hint { font-size: .82rem; color: var(--c-ink-500); }
.apply-form__actions { margin-top: 6px; display: flex; flex-direction: column; gap: 10px; }
.apply-form__submit { align-self: flex-start; }
.apply-form__submit[disabled] { opacity: .6; cursor: not-allowed; }
.apply-form__note { font-size: .9rem; margin: 0; min-height: 1.2em; }
.apply-form__note.is-error { color: #b91c1c; }
.apply-form__note.is-success { color: var(--c-green-800); font-weight: 600; }

/* Success view sau submit */
.apply-success { text-align: center; padding-top: 28px; }
.apply-success__icon {
  width: 84px; height: 84px;
  margin: 0 auto 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-green-50); color: var(--c-green-700);
  border-radius: 50%;
}
.apply-success .apply-modal__lead { max-width: 460px; margin: 0 auto 20px; text-align: justify; text-align-last: center; line-height: 1.6; hyphens: auto; }
.apply-success__meta {
  display: grid; gap: 12px;
  max-width: 380px; margin: 20px auto 16px;
  padding: 16px 20px;
  background: var(--c-green-50);
  border-radius: 12px;
  text-align: left;
}
.apply-success__meta > div { display: flex; flex-direction: column; gap: 2px; }
.apply-success__meta dt {
  font-family: var(--font-display); font-weight: 600;
  font-size: .78rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--c-green-700);
}
.apply-success__meta dd { margin: 0; color: var(--c-ink-900); font-weight: 600; word-break: break-all; }
.apply-success__ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92rem; }
.apply-success__hint { font-size: .85rem; color: var(--c-ink-500); margin: 0 auto 22px; max-width: 380px; text-align: center; text-wrap: balance; line-height: 1.55; }
.apply-success__close { padding: 12px 28px; border: 0; cursor: pointer; font-family: inherit; }

@media (max-width: 600px) {
  .apply-modal { padding: 0; }
  .apply-modal__panel { max-height: 100vh; border-radius: 0; height: 100vh; }
  .apply-modal__body { padding: 56px 20px 28px; }
  .apply-form__row { grid-template-columns: 1fr; }
}

/* ----- /tuyen-dung inline career form (reuse RPC submit_application) ----- */
.contact-form .field em { color: #b91c1c; font-style: normal; margin-left: 2px; }
.contact-form .field-hint {
  display: block; margin-top: 6px;
  font-size: .82rem; color: var(--c-ink-500);
}
.contact-form input[type="file"] {
  width: 100%; padding: 10px 12px;
  border: 1px dashed var(--c-ink-300);
  border-radius: 10px; background: #fff;
  font: inherit; cursor: pointer;
}
.contact-form input[type="file"]:focus {
  outline: none; border-color: var(--c-green-500);
  box-shadow: 0 0 0 3px rgba(0, 91, 49, .12);
}
.career-form__submit[disabled] { opacity: .6; cursor: progress; }
.career-form__status {
  margin: 14px 0 0; min-height: 1.2em;
  font-size: .9rem; font-weight: 500;
}
.career-form__status.is-error { color: #b91c1c; }
.career-form__status.is-success { color: var(--c-green-800); }

.career-success {
  text-align: center;
  padding: 20px 4px 4px;
}
.career-success .apply-success__icon { margin-bottom: 16px; }
.career-success h3 { margin: 0 0 14px; }
.career-success .apply-modal__lead {
  max-width: 460px; margin: 0 auto 20px;
  text-align: justify; text-align-last: center; line-height: 1.6;
  hyphens: auto;
  color: var(--c-ink-700); font-size: .95rem;
}
.career-success .apply-success__meta { margin-inline: auto; }

/* ----- Welcome (bio link) page — stack list card ----- */
.bio-stack { display: flex; flex-direction: column; gap: 14px; }
.bio-card {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 18px;
  color: var(--c-ink-900);
  text-decoration: none;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.bio-card__hot {
  position: absolute; top: 18px; right: 20px; z-index: 2;
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6a3d, #f5a623);
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(245, 90, 30, .55);
}
.bio-card__hot svg { width: 16px; height: 16px; display: block; }
.bio-card:hover {
  transform: translateY(-2px);
  border-color: var(--c-green-400);
  box-shadow: 0 12px 28px -12px rgba(0, 61, 32, .22);
}
.bio-card--static { cursor: default; }
.bio-card--static:hover { transform: none; border-color: var(--c-line); box-shadow: none; }
.bio-card__ico {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--c-green-50); color: var(--c-green-800);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bio-card__ico svg { width: 22px; height: 22px; }
.bio-card__body { flex: 1; min-width: 0; }
.bio-card__eyebrow {
  display: block;
  font-family: var(--font-display); font-weight: 600;
  font-size: .76rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--c-green-700);
  margin-bottom: 4px;
}
.bio-card__title {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.05rem; color: var(--c-ink-900);
  margin-bottom: 2px;
  line-height: 1.3;
  padding-right: 44px;
}
.bio-card__sub { display: block; font-size: .9rem; color: var(--c-ink-500); line-height: 1.45; }
.bio-card__sub + .bio-card__sub { margin-top: 2px; }
.bio-card__list {
  list-style: disc;
  padding-left: 18px;
  margin: 2px 0 0;
  font-size: .9rem; color: var(--c-ink-500); line-height: 1.45;
}
.bio-card__list li { margin: 2px 0; }
.bio-card__list li::marker { color: var(--c-green-500); }
.bio-card__label { color: var(--c-green-800); font-weight: 700; margin-right: 4px; }
.bio-card__arr { color: var(--c-green-700); flex-shrink: 0; transition: transform .25s var(--ease); }
.bio-card:hover .bio-card__arr { transform: translateX(4px); }
@media (max-width: 520px) {
  .bio-card { padding: 14px 16px; gap: 12px; }
  .bio-card__ico { width: 40px; height: 40px; }
  .bio-card__ico svg { width: 20px; height: 20px; }
  .bio-card__title { font-size: 1rem; }
}

/* =========================================================================
   Responsive enhancements — fix các bug mobile/tablet phát hiện qua audit.
   Đặt ở cuối file để override các rule cũ (cùng specificity, đặt sau thắng).
   ========================================================================= */

/* ---- TABLET (600px–960px) — giữ 2 cột thay vì 1 cho card grid ----
   Default rules cũ chuyển sang 1 cột ngay tại 900px → trên tablet 768
   mỗi card chiếm full ~720px, ảnh testimonial/news/about 720×540 quá to.
   Khôi phục 2 cột ở khoảng tablet để tiết kiệm không gian dọc. */
@media (min-width: 600px) and (max-width: 960px) {
  .testi-grid,
  .news-grid,
  .pod-grid,
  .areas-grid,
  .mission-grid:not(.mission-grid--4) {
    grid-template-columns: repeat(2, 1fr);
  }
  /* `.values-grid` mặc định 3 cột → trên tablet xuống 2 cột (đỡ chật) */
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  /* `.about-grid` ảnh aside không full width — neo giữa, max 560 */
  .about-grid__art { max-width: 560px; margin-inline: auto; width: 100%; }
  /* Job-grid (2 cột ở desktop) giữ 2 cột tablet cũng OK — không cần override */
}

/* ---- HERO STATS — mobile 3 cột compact ----
   Trước stack 1 cột → tốn vertical space, "loose". Giờ giữ 3 cột, scale
   nhỏ font + padding để mỗi stat fit chiều ngang 100-110px. */
@media (max-width: 600px) {
  .hero__stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .hero__stats .stat { padding-left: 10px; border-left-width: 2px; }
  .hero__stats .stat strong { font-size: 1.2rem; line-height: 1.05; }
  .hero__stats .stat span { font-size: .7rem; line-height: 1.25; display: block; margin-top: 4px; }
}

/* ---- HERO actions (CTA buttons) — mobile compact ----
   Default padding 14px 26px + font .95rem → ở 375px 2 nút wrap thành 2 dòng,
   margin-bottom 36px tạo khoảng trống lớn. Bóp lại cho gọn. */
@media (max-width: 600px) {
  .hero .hero__actions { gap: 8px; margin-bottom: 20px; }
  .hero .hero__actions .btn { padding: 12px 18px; font-size: .88rem; }
  .hero .hero__actions .btn .arr { width: 16px; height: 16px; }
}

/* ---- CSR STATS small mobile ---- */
@media (max-width: 380px) {
  .csr-stats { grid-template-columns: 1fr; }
  .csr-stats .stat { padding: 14px 16px; }
}

/* ---- Mission grid 4 cột — mobile 1 cột (theo yêu cầu user) ----
   "Bốn lý do để gắn bó lâu dài" — mỗi card 1 dòng dễ đọc trên mobile. */

/* ---- `.values-grid--4` modifier (Tuyển dụng "Bốn bước" + tu-thuoc-cho-em stats) ----
   Dùng class thay vì inline style để có thể responsive đúng cách. */
.values-grid.values-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .values-grid.values-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .values-grid.values-grid--4 { grid-template-columns: 1fr; } }

/* ---- `.jobs-grid` modifier — Tuyển dụng vị trí 2 cột ----
   Override `.areas-grid` mặc định 4 cột. Responsive: 2 → 1 cột ở mobile. */
.areas-grid.jobs-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .areas-grid.jobs-grid { grid-template-columns: 1fr; } }

/* ---- Timeline aside (gioi-thieu) — neo giữa trên tablet ---- */
@media (min-width: 600px) and (max-width: 960px) {
  .timeline-aside { max-width: 560px; margin-inline: auto; }
}

/* ---- CTA strip — padding chống tràn trên mobile ----
   Cũ: padding clamp(32px, 5vw, 56px) — ở 375px = 32 OK, nhưng h2 + lead
   có thể overflow nếu ngôn ngữ dài. Đảm bảo word-break. */
@media (max-width: 600px) {
  .cta-strip h2 { font-size: clamp(1.4rem, 5vw, 1.8rem); }
}

/* ---- Container padding tăng nhẹ ở mobile rất hẹp ----
   Default `width: min(100% - 2.5rem, var(--container))` → mobile 375px còn
   335px nội dung. OK, không cần đổi. */

/* ---- Job card mobile — nút "Xem chi tiết" không tràn ----
   `padding-bottom: 72px !important` đủ cho 1 dòng nút. Verify text wrap. */
@media (max-width: 480px) {
  .job-card { padding: 22px 20px 64px !important; }
  .job-card h3 { font-size: 1.15rem; }
  .job-card__badges { top: 16px; right: 16px; }
  .job-detail-btn { right: 16px; bottom: 14px; }
}

/* ---- Hero h1 + script font — bớt size trên mobile rất hẹp ----
   "Nhà thuốc" trong script font dài, có thể tràn ở 320-360px. */
@media (max-width: 380px) {
  .hero h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .hero h1 .script { font-size: .95em; }
}

/* ---- Footer-grid 2x2 ở tablet đảm bảo cân ----
   Đã có ở 900px = 1fr 1fr. OK. */

/* =========================================================================
   MOBILE REORDER — đưa ẢNH lên ngay sau heading thay vì để cuối block.
   Pattern: heading (eyebrow + h1/h2) → ảnh → body (lead + p + CTA + stats).
   Kỹ thuật: `display: contents` flatten wrapper `.reveal`/`.page-hero__text`
   để các con thành siblings của ảnh, rồi `order` từng phần tử.
   Trade-off: reveal animation cho wrapper bị mất (children hiện ngay) —
   chấp nhận được vì mobile thường scroll nhanh, animation ít notice.
   ========================================================================= */
@media (max-width: 900px) {
  /* ---- Hero (trang chủ): tag → h1 → slideshow → lead → CTA → stats ---- */
  .hero__inner { display: flex; flex-direction: column; gap: 0; }
  .hero__inner > .reveal:not(.hero__art) { display: contents; }
  .hero__inner .hero__tag { order: 1; }
  .hero__inner > h1, .hero__inner h1 { order: 2; }
  .hero__inner .hero__art { order: 3; margin: 6px 0 22px; }
  .hero__inner .hero__lead { order: 4; }
  .hero__inner .hero__stats { order: 5; margin: 14px 0 22px; }
  .hero__inner .hero__actions { order: 6; margin-bottom: 0; }

  /* ---- About-grid (Trang chủ + Giới thiệu): eyebrow → h2 → ảnh → body ----
     Áp dụng cho cả 2 thứ tự DOM (image-first homepage, text-first gioi-thieu). */
  .about-grid { display: flex; flex-direction: column; gap: 0; }
  .about-grid > .reveal:not(.about-grid__art) { display: contents; }
  .about-grid .eyebrow { order: 1; }
  .about-grid h2 { order: 2; }
  .about-grid__art { order: 3; margin: 14px 0 22px; width: 100%; max-width: 560px; margin-inline: auto; }
  .about-grid p { order: 4; }
  .about-grid .hero__actions,
  .about-grid .mission-grid,
  .about-grid .timeline { order: 5; }

  /* ---- CSR banner: eyebrow → h2 → ảnh tròn → body ---- */
  .csr-banner { display: flex; flex-direction: column; gap: 0; }
  .csr-banner > div:not(.csr-banner__art) { display: contents; }
  .csr-banner .eyebrow { order: 1; }
  .csr-banner h2 { order: 2; }
  .csr-banner__art { order: 3; margin: 16px auto 24px; }
  .csr-banner p { order: 4; }
  .csr-banner .csr-stats { order: 5; }
  .csr-banner .hero__actions { order: 6; }

  /* ---- Page-hero split (Tuyển dụng): eyebrow → h1 → ảnh → lead → CTA ---- */
  .page-hero--split .page-hero__grid { display: flex; flex-direction: column; gap: 0; }
  .page-hero--split .page-hero__text { display: contents; }
  .page-hero--split .page-hero__text .eyebrow { order: 1; }
  .page-hero--split .page-hero__text h1 { order: 2; }
  .page-hero--split .page-hero__media { order: 3; margin: 14px auto 18px; max-width: 480px; width: 100%; }
  .page-hero--split .page-hero__text .lead { order: 4; }
  .page-hero--split .page-hero__text .page-hero__cta { order: 5; }
}
