/* ==========================================================================
   Thượng Thực Bát Nhã – Dinh Dưỡng Việt Nam
   Mobile-first. Breakpoints: 481 / 769 / 1025.
   Chỉ animate transform + opacity.
   ========================================================================== */

:root {
  --green-950: #0d3a18;
  --green-900: #11471d;
  --green-800: #14501f;
  --green-700: #1d6b2c;
  --green-600: #2e8b3a;
  --green-500: #4aa04a;
  --green-100: #e8f3dc;
  --green-50: #f4f8ee;
  --gold-300: #ffd96e;
  --gold-500: #f4b223;
  --gold-700: #c98a0b;
  --brown: #4a2f00;
  --text: #25352b;
  --muted: #5d6e62;
  --line: #dbe8cc;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(20, 80, 31, .12);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-script: "Dancing Script", "Brush Script MT", cursive;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 16px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: 8px; z-index: 200; padding: .5rem 1rem;
  background: var(--green-800); color: #fff; border-radius: 8px;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- Buttons & pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.4rem; border-radius: 999px; border: 0;
  font-weight: 700; font-size: .95rem; line-height: 1.2; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn svg { flex: none; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500));
  color: var(--brown); box-shadow: 0 4px 14px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.btn-green { background: var(--green-700); color: #fff; padding: .55rem 1.1rem; font-size: .85rem; box-shadow: 0 4px 12px rgba(20, 80, 31, .3); }
.btn-outline { background: #fff; color: var(--green-700); border: 1.5px solid var(--green-600); padding: .5rem 1.1rem; font-size: .85rem; }
.btn-outline:hover { background: var(--green-700); color: #fff; }

.pill {
  display: inline-block; padding: .2rem .9rem; border-radius: 999px;
  background: #f6e7a6; color: #6a4b00; font-size: .8rem; font-weight: 700;
  border: 1px solid #e8d27a;
}
.pill--gold { background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); color: var(--brown); border: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}
.header-inner {
  display: flex; align-items: center; gap: 8px;
  min-height: var(--header-h); padding: 4px 16px;
  max-width: 1440px; margin-inline: auto;
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; min-width: 0; }
.brand img { width: 48px; height: 48px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font-size: .95rem; font-weight: 800; color: var(--green-800); }
.brand-text small { font-size: .78rem; font-weight: 700; color: var(--green-700); }

.nav-toggle {
  display: grid; place-content: center; gap: 5px;
  width: 44px; height: 44px; background: none; border: 0; border-radius: 10px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2.5px; border-radius: 2px; background: var(--green-800);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.header-actions { display: flex; align-items: center; gap: 8px; order: 2; }
.search-toggle {
  display: grid; place-items: center; width: 40px; height: 40px;
  background: none; border: 0; border-radius: 50%; color: var(--green-800);
  transition: background .2s;
}
.search-toggle:hover { background: var(--green-100); }

.hotline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .45rem 1rem; border-radius: 12px; color: #fff;
  background: linear-gradient(180deg, var(--green-700), var(--green-900));
  box-shadow: 0 3px 10px rgba(20, 80, 31, .3);
  transition: transform .25s var(--ease);
}
.hotline:hover { transform: translateY(-2px); }
.hotline span { display: flex; flex-direction: column; line-height: 1.15; }
.hotline small { font-size: .65rem; font-weight: 500; opacity: .9; }
.hotline strong { font-size: .85rem; font-weight: 700; letter-spacing: .02em; }
.hotline--desktop { display: none; }

/* Mobile nav panel */
.primary-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; padding: 8px 16px 20px;
  box-shadow: 0 12px 20px rgba(0, 0, 0, .12);
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
}
.primary-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.primary-nav > ul > li { border-bottom: 1px solid var(--line); }
.primary-nav a { display: block; padding: .8rem .25rem; font-weight: 500; font-size: .95rem; }
.primary-nav a.is-active, .primary-nav a:hover { color: var(--green-700); font-weight: 700; }
.has-sub { display: flex; flex-wrap: wrap; align-items: center; }
.has-sub > a { flex: 1; }
.sub-toggle {
  display: grid; place-items: center; width: 40px; height: 40px;
  background: none; border: 0; color: var(--green-800);
}
.sub-toggle svg { transition: transform .25s var(--ease); }
.has-sub.is-open .sub-toggle svg { transform: rotate(180deg); }
.sub-menu { display: none; width: 100%; padding: 0 0 8px 16px; }
.has-sub.is-open .sub-menu { display: block; }
.sub-menu a { padding: .5rem .25rem; font-size: .9rem; }
.hotline--mobile { margin-top: 14px; justify-content: center; }
.primary-nav a.hotline { display: flex; color: #fff; font-weight: 400; padding: .45rem 1rem; }

/* Search panel */
.search-panel {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  max-width: 1440px; margin-inline: auto; padding: 8px 16px 14px;
}
.search-panel[hidden] { display: none; }
.search-panel input {
  flex: 1 1 200px; min-width: 0; padding: .65rem 1rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--green-50);
}
.search-panel button {
  padding: .65rem 1.3rem; border: 0; border-radius: 999px;
  background: var(--green-700); color: #fff; font-weight: 700;
}
.search-msg { flex-basis: 100%; font-size: .85rem; color: var(--muted); }
.search-msg:empty { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background:
    radial-gradient(ellipse 60% 70% at 12% 15%, rgba(176, 230, 110, .5), transparent 70%),
    radial-gradient(ellipse 50% 60% at 95% 95%, rgba(10, 50, 20, .85), transparent 70%),
    linear-gradient(115deg, #3b8d34 0%, #1f6a2a 45%, #0f4a1e 100%);
}
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 260px; height: 160px; opacity: .8;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 120'%3E%3Cpath d='M5 60C40 10 120 0 195 20 170 90 90 125 5 60Z' fill='%2394d36a' fill-opacity='.45'/%3E%3Cpath d='M5 60C60 55 120 40 195 20' stroke='%23e5f7c8' stroke-opacity='.5' fill='none'/%3E%3C/svg%3E") no-repeat center / contain;
}
.hero::before { left: -70px; top: 10px; transform: rotate(-35deg); }
.hero::after { right: -60px; bottom: 30px; transform: rotate(150deg); opacity: .5; }

.hero-track { display: grid; }
.slide {
  grid-area: 1 / 1; opacity: 0; visibility: hidden;
  transition: opacity .7s var(--ease), visibility 0s .7s;
}
.slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.slide-grid { display: grid; gap: 20px; align-items: center; padding-block: 28px 56px; }
.slide-copy { text-align: center; }
.slide.is-active .slide-copy > * { animation: rise .7s var(--ease) both; }
.slide.is-active .slide-copy > *:nth-child(2) { animation-delay: .08s; }
.slide.is-active .slide-copy > *:nth-child(3) { animation-delay: .16s; }
.slide.is-active .slide-copy > *:nth-child(4) { animation-delay: .24s; }
.slide.is-active .slide-copy > *:nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero-kicker { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: clamp(.95rem, 2.4vw, 1.2rem); text-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.hero-title {
  font-size: clamp(1.7rem, 6.2vw, 2.75rem); font-weight: 800; line-height: 1.1;
  text-transform: uppercase; text-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}
.hero-title span {
  display: block; margin-top: .3rem; font-size: .55em; font-weight: 600; letter-spacing: .02em;
}
.hero-slogan {
  margin-block: 10px 14px; font-family: var(--font-script); font-weight: 700;
  font-size: clamp(2.2rem, 8vw, 3.6rem); line-height: 1.05;
  background: linear-gradient(180deg, #fff3b8, #f2c14e 60%, #d89a1b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35));
}
.hero-points { display: flex; justify-content: center; gap: 10px; margin-bottom: 18px; }
.hero-points li { flex: 1 1 0; max-width: 130px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .75rem; font-weight: 500; line-height: 1.25; text-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.ring { display: grid; place-items: center; width: 44px; height: 44px; }
.ring svg { width: 40px; height: 40px; }

.slide-media { position: relative; }
.slide-media img { margin-inline: auto; }
.slide-media:not(.slide-media--poster):not(.slide-media--wide) img {
  -webkit-mask-image: radial-gradient(ellipse 62% 62% at 50% 52%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 62% 62% at 50% 52%, #000 55%, transparent 100%);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-6px); } }
.slide-media--poster img { max-height: 340px; width: auto; border-radius: 18px; box-shadow: 0 14px 34px rgba(0, 0, 0, .4); }
.slide-media--wide img { border-radius: 18px; box-shadow: 0 14px 34px rgba(0, 0, 0, .4); }

.hero-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.hero-dots button {
  position: relative; width: 12px; height: 12px; padding: 0; border-radius: 50%;
  border: 2px solid #fff; background: transparent;
  transition: transform .25s var(--ease), background .25s;
}
.hero-dots button[aria-pressed="true"] { background: #fff; transform: scale(1.15); }
.hero-dots button::after { content: ""; position: absolute; inset: -10px; }

/* ---------- Strengths ---------- */
.strengths { background: var(--green-50); border-bottom: 1px solid var(--line); }
.strengths-list { display: grid; grid-template-columns: 1fr; gap: 0; padding-block: 8px; }
.strengths-list li { display: flex; align-items: center; gap: 12px; padding: 12px 8px; }
.strengths-list h2 { font-size: .9rem; font-weight: 700; color: var(--green-900); line-height: 1.25; }
.strengths-list p { font-size: .8rem; color: var(--muted); }
.icon-circle {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px;
  border-radius: 50%; background: #eef3c9; color: var(--green-700);
  box-shadow: inset 0 0 0 2px rgba(201, 138, 11, .25);
}
.icon-circle svg { width: 26px; height: 26px; }
.icon-circle--soft { background: #dcecc9; box-shadow: none; width: 52px; height: 52px; }
.icon-circle--soft svg { width: 30px; height: 30px; color: var(--green-800); }

/* ---------- About ---------- */
.about { background: linear-gradient(180deg, #fff 0%, var(--green-50) 100%); padding-block: 28px; }
.about-grid { display: grid; gap: 22px; max-width: 1440px; margin-inline: auto; }
.about-media { padding-inline: 16px; }
.about-media img { width: 100%; height: 100%; max-height: 300px; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); }
.about-copy { padding-inline: 16px; }
.about-copy h2 { margin: 10px 0; font-size: clamp(1.25rem, 4.6vw, 1.75rem); font-weight: 800; line-height: 1.2; color: var(--green-700); }
.about-kicker { font-size: .81em; }
.about-copy p { margin-bottom: 14px; font-size: .9rem; color: var(--text); }
.about-values {
  margin-inline: 16px; padding: 6px 16px; background: rgba(255, 255, 255, .85);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
}
.about-values li { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.about-values li + li { border-top: 1px solid var(--line); }
.about-values h3 { font-size: .95rem; font-weight: 700; color: var(--green-800); }
.about-values p { font-size: .8rem; color: var(--muted); line-height: 1.4; }

/* ---------- Section headings ---------- */
.section-head { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; margin-bottom: 22px; }
.section-head h2 {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: clamp(1.45rem, 5vw, 2.1rem); font-weight: 800; color: var(--green-700);
}
.section-head p { font-size: .92rem; color: var(--text); }
.deco {
  flex: none; position: relative; width: clamp(28px, 9vw, 90px); height: 2px;
  background: linear-gradient(90deg, transparent, var(--green-500));
}
.deco::after {
  content: ""; position: absolute; right: -2px; top: -5px; width: 14px; height: 10px;
  border-radius: 100% 0; background: var(--green-500); transform: rotate(-20deg);
}
.deco--r { background: linear-gradient(270deg, transparent, var(--green-500)); }
.deco--r::after { right: auto; left: -2px; transform: scaleX(-1) rotate(-20deg); }

/* ---------- Products ---------- */
.products { padding-block: 30px 36px; background: #fbfdf7; }
.product-grid { display: grid; gap: 18px; }
.product-card {
  display: grid; gap: 14px; padding: 14px; border-radius: 22px;
  background: linear-gradient(135deg, #fff 0%, #eaf4de 100%);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), opacity .6s var(--ease);
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(20, 80, 31, .2); }
/* Ảnh hộp hiện trọn, không cắt mép: chỉ giới hạn khung, giữ tỉ lệ gốc. */
.product-card img { justify-self: center; width: auto; height: auto; max-width: 100%; max-height: 240px; border-radius: 16px; }
.product-body h3 { margin-bottom: 8px; font-size: 1.35rem; font-weight: 800; color: var(--green-900); text-transform: uppercase; }
.product-body h3:has(+ .product-sub) { margin-bottom: 2px; }
.product-sub { margin-bottom: 8px; font-size: .82rem; font-weight: 700; letter-spacing: .02em; color: var(--green-600); }
.checks { display: grid; gap: 7px; margin-bottom: 14px; }
.checks li { position: relative; padding-left: 26px; font-size: .88rem; line-height: 1.4; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .1em; width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%232e8b3a'/%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.checks--light li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3.5 10.5l4.5 4.5 8.5-9.5' stroke='white' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- Events ---------- */
.events { padding-block: 30px 36px; background: linear-gradient(180deg, #f6faef 0%, #fff 100%); }
.carousel { position: relative; display: flex; align-items: center; gap: 4px; }
.carousel-track {
  flex: 1; min-width: 0; display: flex; gap: 16px; padding: 8px 4px 28px; margin-bottom: -14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.carousel-track::-webkit-scrollbar { display: none; }
.event-card {
  flex: 0 0 78%; scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px;
  padding: 8px 8px 14px; text-align: center; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow);
  transition: transform .3s var(--ease);
}
.event-card:hover { transform: translateY(-4px); }
.event-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.event-card h3 { font-size: .92rem; font-weight: 700; line-height: 1.3; color: var(--text); }
.event-date { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .9rem; font-weight: 500; color: var(--text); }
.event-date svg { color: var(--green-700); }
.carousel-btn {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: #fff; color: var(--green-700); box-shadow: var(--shadow);
  transition: transform .25s var(--ease), background .25s, color .25s;
}
.carousel-btn:hover { background: var(--green-700); color: #fff; }
.carousel-btn--prev { position: absolute; left: -4px; z-index: 2; }
.carousel-btn--next { position: absolute; right: -4px; z-index: 2; }
/* Ít thẻ hơn số chỗ hiển thị: căn giữa, không cần nút điều hướng */
.carousel--static .carousel-btn { display: none; }
.carousel--static .carousel-track { justify-content: center; }

/* ---------- Lightbox (xem ảnh lớn) ---------- */
html.lightbox-open { overflow: hidden; }
.lightbox {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0;
  background: transparent; color: #fff; overflow: hidden;
}
.lightbox[open] { display: grid; place-items: center; animation: lightbox-in .25s var(--ease); }
.lightbox::backdrop { background: rgba(8, 24, 12, .86); }
.lightbox-figure { margin: 0; padding: 56px 16px 20px; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lightbox-img { display: block; max-width: 100%; max-height: calc(100vh - 130px); max-height: calc(100dvh - 130px); width: auto; height: auto; object-fit: contain; border-radius: 10px; background: #fff; box-shadow: 0 16px 48px rgba(0, 0, 0, .5); }
.lightbox-caption { max-width: 720px; text-align: center; font-size: .9rem; line-height: 1.4; }
.lightbox-close {
  position: absolute; top: 12px; right: 12px; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer;
  transition: background .25s, transform .25s var(--ease);
}
.lightbox-close:hover, .lightbox-close:focus-visible { background: rgba(255, 255, 255, .32); transform: scale(1.06); }
@keyframes lightbox-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lightbox[open] { animation: none; } }

/* ---------- Signup ---------- */
.signup {
  position: relative; overflow: hidden; color: #fff; text-align: center; isolation: isolate;
  padding-block: 28px 32px;
  background: radial-gradient(ellipse 50% 90% at 0% 0%, rgba(120, 190, 80, .4), transparent 70%), linear-gradient(100deg, #1d6b2c, #165a24 60%, #11471d);
}
.signup::before, .signup::after {
  content: ""; position: absolute; z-index: -1; width: 220px; height: 140px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 120'%3E%3Cpath d='M5 60C40 10 120 0 195 20 170 90 90 125 5 60Z' fill='%2394d36a' fill-opacity='.4'/%3E%3C/svg%3E") no-repeat center / contain;
}
.signup::before { left: -80px; top: -20px; transform: rotate(-30deg); }
.signup::after { right: -80px; bottom: -30px; transform: rotate(150deg); }
.signup h2 { font-size: clamp(1.3rem, 5vw, 1.8rem); font-weight: 800; }
.signup p { margin-top: 4px; font-size: .95rem; opacity: .95; }
.signup-form { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin: 18px auto 0; }
.field { position: relative; flex: 1; }
.field svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.field input {
  width: 100%; padding: .85rem 1rem .85rem 44px; border: 2px solid transparent; border-radius: 10px;
  background: #fff; color: var(--text);
}
.field input::placeholder { color: #8a988e; }
.field input[aria-invalid="true"] { border-color: #e5484d; }
.signup-form .btn { padding-block: .85rem; font-size: 1rem; }
.form-msg { min-height: 1.2em; font-size: .9rem; font-weight: 600; }
.form-msg.is-error { color: #ffd0d0; }
.form-msg.is-ok { color: var(--gold-300); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #fff; font-size: .85rem; }
.footer-inner { display: grid; gap: 22px; max-width: 1240px; margin-inline: auto; padding: 28px 16px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 64px; height: 64px; flex: none; }
.footer-brand p { font-weight: 700; line-height: 1.35; letter-spacing: .01em; }
.footer-contact { display: grid; gap: 8px; }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.footer-contact svg { flex: none; color: var(--gold-300); }
.footer-contact a:hover { text-decoration: underline; }
.socials { display: flex; gap: 12px; }
.soc {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: #fff; font-weight: 800; font-size: .72rem;
  transition: transform .25s var(--ease);
}
.soc:hover { transform: translateY(-3px) scale(1.06); }
.soc--fb { background: #0866ff; }
.soc--yt { background: #f00; }
.soc--tt { background: #000; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .5); }
.soc--zalo { background: #0068ff; }
.copyright { padding: 12px 16px; text-align: center; font-size: .75rem; color: rgba(255, 255, 255, .7); border-top: 1px solid rgba(255, 255, 255, .12); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.strengths-list li:nth-child(2).reveal { transition-delay: .08s; }
.strengths-list li:nth-child(3).reveal { transition-delay: .16s; }
.strengths-list li:nth-child(4).reveal { transition-delay: .24s; }
.product-card:nth-child(2).reveal { transition-delay: .12s; }

/* ==========================================================================
   ≥ 481px
   ========================================================================== */
@media (min-width: 481px) {
  .strengths-list { grid-template-columns: repeat(2, 1fr); }
  .event-card { flex-basis: 56%; }
  .signup-form { flex-direction: row; flex-wrap: wrap; }
  .signup-form .field { flex: 1 1 200px; }
  .form-msg { flex-basis: 100%; }
}

/* ==========================================================================
   ≥ 769px (tablet)
   ========================================================================== */
@media (min-width: 769px) {
  :root { --header-h: 72px; }
  .brand img { width: 56px; height: 56px; }
  .brand-text strong { font-size: 1.05rem; }
  .hotline--desktop { display: inline-flex; }
  .primary-nav a.hotline--mobile { display: none; }

  .slide-grid { grid-template-columns: 1.05fr 1fr; gap: 24px; padding-block: 36px 64px; }
  .slide-copy { text-align: left; }
  .hero-points { justify-content: flex-start; }
  .hero-points li { max-width: 120px; }
  .slide-media--poster img { max-height: 380px; }

  .about-grid { grid-template-columns: 1fr 1fr; align-items: center; }
  .about-media { padding-left: 0; }
  .about-media img { border-radius: 0 48px 48px 0; max-height: none; min-height: 240px; }
  .about-values { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); padding: 14px 18px; }
  .about-values li + li { border-top: 0; border-left: 1px solid var(--line); padding-left: 16px; }

  .product-card { grid-template-columns: 42% 1fr; align-items: center; }


  .event-card { flex-basis: calc((100% - 32px) / 3); }
  .carousel { gap: 10px; }
  .carousel-btn { position: static; box-shadow: none; background: transparent; width: 44px; height: 44px; }
  .carousel-btn:hover { background: var(--green-700); }

  .signup-form { position: relative; flex-wrap: nowrap; margin-bottom: 22px; }
  .signup-form .field { flex: 1 1 0; }
  .signup-form .form-msg { position: absolute; left: 0; right: 0; bottom: -28px; }

  .footer-inner { grid-template-columns: 1.1fr 1.4fr auto; align-items: center; }
}

/* ==========================================================================
   ≥ 992px (desktop) – full navigation
   ========================================================================== */
@media (min-width: 992px) {
  .nav-toggle { display: none; }
  .header-inner { gap: 14px; padding-inline: 24px; }
  .brand { margin-right: 6px; }
  .brand-text strong { font-size: 1.1rem; }
  .brand-text small { font-size: .85rem; }
  .header-actions { order: 0; gap: 12px; }

  .primary-nav {
    position: static; flex: 1; display: flex; justify-content: flex-start; margin-left: 8px;
    padding: 0; max-height: none; overflow: visible; box-shadow: none; background: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .primary-nav > ul { display: flex; align-items: center; gap: 2px; }
  .primary-nav > ul > li { border-bottom: 0; position: relative; }
  .primary-nav a { padding: .5rem .8rem; border-radius: 999px; font-size: .82rem; white-space: nowrap; transition: background .2s, color .2s; }
  .primary-nav a.is-active { background: var(--green-700); color: #fff; font-weight: 600; }
  .primary-nav a:not(.is-active):hover { background: var(--green-100); }
  .has-sub { flex-wrap: nowrap; }
  .has-sub > a { flex: none; padding-right: .2rem; }
  .sub-toggle { width: 22px; height: 30px; margin-left: -4px; }
  .sub-menu {
    display: block; position: absolute; left: 0; top: 100%; width: 190px; padding: 8px;
    background: #fff; border-radius: 14px; box-shadow: 0 10px 28px rgba(0, 0, 0, .15);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
  }
  .has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu, .has-sub.is-open .sub-menu {
    opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
  }
  .has-sub:hover .sub-toggle svg { transform: rotate(180deg); }

  .search-panel { padding-inline: 24px; }

  .strengths-list { grid-template-columns: repeat(4, 1fr); padding-block: 14px; }
  .strengths-list li { padding: 8px 16px; }
  .strengths-list li + li { border-left: 1px solid var(--line); }

  .hero .slide-grid { min-height: 420px; }
  .about { padding-block: 36px; }
  .about-grid { grid-template-columns: 1.05fr 1fr 1fr; gap: 28px; }
  .about-values { grid-column: auto; display: block; padding: 6px 18px; }
  .about-values li + li { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .about-copy { padding-inline: 0; }
  .about-media img { min-height: 270px; }

  .product-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .product-card { grid-template-columns: 40% 1fr; padding: 18px; }

  .event-card { flex-basis: calc((100% - 48px) / 4); }

  /* Mật độ gần thiết kế mục tiêu (trang cao ~2160px ở 1440px) */
  .hero .slide-grid { min-height: 380px; padding-block: 24px 48px; }
  .strengths-list { padding-block: 6px; }
  .about { padding-block: 18px; }
  .about-media img { min-height: 230px; }
  .products { padding-block: 18px 24px; }
  .section-head { margin-bottom: 16px; }
  .product-card img { max-height: 200px; }
  .events { padding-block: 18px 26px; }
  .event-card img { aspect-ratio: 2 / 1; }
  .signup { padding-block: 18px 22px; }
  .signup-form { margin-top: 12px; }
  .footer-inner { padding-block: 18px; }
}

/* ==========================================================================
   Cỡ chữ theo thiết kế mục tiêu (đo từ example/target-ui.jpg, quy về 1440px).
   Chỉ áp từ 1200px trở lên để không làm tràn bố cục trên màn hình nhỏ hơn.
   ========================================================================== */
@media (min-width: 1200px) {
  /* Hero */
  .hero-kicker { font-size: 1.5rem; }
  .hero-title { font-size: 2.4rem; }
  .hero-title span { font-size: .7em; }
  .hero-slogan { font-size: 4.2rem; }
  .hero-points { gap: 28px; }
  .hero-points li { max-width: 170px; font-size: 1.05rem; }
  .slide .btn-gold { font-size: 1.06rem; }

  /* Giới thiệu */
  .about .pill { font-size: .94rem; }
  .about-copy h2 { font-size: 2rem; }
  .about-copy p { font-size: .97rem; }
  .about-values h3 { font-size: 1.03rem; }
  .btn-green, .btn-outline { font-size: .94rem; }

  /* Sản phẩm */
  .section-head h2 { font-size: 2.15rem; }
  .section-head p { font-size: 1.06rem; }
  .product-body h3 { font-size: 1.54rem; }
  .checks li { font-size: .91rem; }


  /* Sự kiện */
  .events .section-head h2 { font-size: 1.84rem; }
  .event-card h3 { font-size: 1.02rem; }
  .event-date { font-size: .94rem; }

  /* Đăng ký + footer */
  .signup h2 { font-size: 1.69rem; }
  .signup p { font-size: 1.06rem; }
  .site-footer { font-size: .91rem; }
  .footer-brand p { font-size: 1rem; }
}

/* Header cần nhiều chỗ hơn (logo + tên + 7 mục menu + hotline) nên chỉ tăng ở ≥1360px */
@media (min-width: 1360px) {
  .brand-text strong { font-size: 1.25rem; }
  .brand-text small { font-size: 1.06rem; }
  .primary-nav a { font-size: .9rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Hành động bổ sung ---------- */
.event-photo { display: block; border-radius: 8px; overflow: hidden; }
.event-photo img { transition: transform .4s var(--ease); }
.event-photo:hover img { transform: scale(1.04); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* Logo mạng xã hội chính chủ (SVG từ Simple Icons, tô trắng bằng mask trên nền màu thương hiệu) */
.soc::before {
  content: ""; width: 22px; height: 22px; background: #fff;
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
}
.soc--fb { --logo: url("../assets/icons/facebook.svg"); }
.soc--yt { --logo: url("../assets/icons/youtube.svg"); }
.soc--tt { --logo: url("../assets/icons/tiktok.svg"); }
.soc--zalo { --logo: url("../assets/icons/zalo.svg"); }
.soc--zalo::before { width: 28px; height: 28px; }
.soc[aria-disabled="true"] { cursor: default; }

/* ==========================================================================
   Trang con: Chi tiết công ty, Bài viết
   ========================================================================== */
.footer-slogan { margin-top: 6px; font-weight: 500; color: var(--gold-300); }
.footer-links { margin-top: 6px; font-weight: 500; }
.footer-links a { text-decoration: underline; text-underline-offset: 3px; }

.page-hero {
  padding-block: 28px 32px; color: #fff; text-align: center;
  background: radial-gradient(ellipse 60% 120% at 10% 0%, rgba(176, 230, 110, .4), transparent 70%), linear-gradient(115deg, #2f7d2f, #1b5e20 55%, #0f4a1e);
}
.page-hero h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 800; text-wrap: balance; text-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.page-hero p { margin-top: 6px; opacity: .95; }
.page-hero .btn { margin-top: 14px; }

.block { padding-block: 28px; }
.block h2, .roadmap h2, .related h2 { margin-bottom: 14px; font-size: clamp(1.25rem, 4vw, 1.7rem); font-weight: 800; color: var(--green-700); }
.fine { margin-top: 12px; font-size: .82rem; color: var(--muted); }

.info-list { display: grid; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.info-list > div { display: grid; gap: 2px; padding: 12px 16px; }
.info-list > div + div { border-top: 1px solid var(--line); }
.info-list dt { font-size: .8rem; font-weight: 600; color: var(--muted); }
.info-list dd { margin: 0; font-weight: 500; }
.doc-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.cards-2, .cards-3 { display: grid; gap: 16px; }
.info-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(135deg, #fff, #eef6e3); box-shadow: var(--shadow); }
.info-card h3 { margin-bottom: 6px; font-size: 1.1rem; font-weight: 800; color: var(--green-800); }
.info-card .checks { margin-bottom: 0; }
.cards-2 > .info-card { display: flex; flex-direction: column; }
.info-card .card-doc { margin: auto 0 0; padding-top: 14px; }
.info-card .card-doc .btn { max-width: 100%; white-space: normal; text-align: center; }

.roadmap { padding-block: 32px; text-align: center; color: #fff; background: linear-gradient(100deg, #1d6b2c, #11471d); }
.roadmap h2 { color: #fff; }
.roadmap .stat { margin-bottom: 8px; font-size: 1.2rem; }
.roadmap .stat strong { display: block; font-size: clamp(2.2rem, 9vw, 3.6rem); line-height: 1.1; color: var(--gold-300); }
.roadmap p:last-child { max-width: 680px; margin-inline: auto; }

.leader-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.leader { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); text-align: center; padding-bottom: 14px; }
.leader img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.leader h3 { margin-top: 10px; font-weight: 800; color: var(--green-800); }
.leader p { font-size: .9rem; color: var(--muted); }
.leader-contact { margin-top: 6px; padding-inline: 10px; }
.leader-contact a { color: var(--green-700); font-weight: 600; }

.culture { display: grid; gap: 18px; align-items: center; }
.culture-text p { margin-bottom: 10px; }
.culture img { width: 100%; height: auto; border-radius: 18px; box-shadow: var(--shadow); }

.contact-list { display: grid; gap: 8px; margin-bottom: 16px; }
.contact-list a { color: var(--green-700); font-weight: 600; }

/* Bài viết */
.articles { padding-block: 24px 36px; }
.article-search { display: flex; gap: 8px; margin-bottom: 14px; }
.article-search input { flex: 1; min-width: 0; padding: .65rem 1rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--green-50); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip { padding: .35rem .9rem; border: 1.5px solid var(--line); border-radius: 999px; font-size: .85rem; font-weight: 500; background: #fff; transition: background .2s, color .2s; }
.chip:hover { background: var(--green-100); }
.chip.is-active { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.article-count { margin-bottom: 14px; font-size: .88rem; color: var(--muted); }
.empty { padding: 30px 0; text-align: center; color: var(--muted); }
.article-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.article-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); transition: transform .3s var(--ease); }
.article-card:hover { transform: translateY(-4px); }
.article-card__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-card__body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 18px; }
.article-card h3 { font-size: 1.02rem; font-weight: 700; line-height: 1.35; }
.article-card h3 a:hover { color: var(--green-700); }
.article-card p:last-child { font-size: .88rem; color: var(--muted); }
.article-meta { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); }

.article { max-width: 820px; padding-block: 20px 28px; }
.article-head h1 { margin-block: 10px; font-size: clamp(1.5rem, 5vw, 2.2rem); font-weight: 800; line-height: 1.25; color: var(--green-900); }
.article-head .lead { font-size: 1.05rem; color: var(--muted); }
.article-cover { margin-block: 18px; }
.article-cover img { display: block; width: auto; height: auto; max-width: 100%; max-height: 520px; margin-inline: auto; border-radius: 18px; box-shadow: var(--shadow); }
.prose { font-size: 1.02rem; line-height: 1.75; }
.prose h2 { margin: 26px 0 8px; font-size: 1.35rem; font-weight: 800; color: var(--green-700); }
.prose p, .prose ul, .prose ol, .prose figure { margin-bottom: 14px; }
.prose ul { list-style: disc; padding-left: 1.4rem; }
.prose ol { list-style: decimal; padding-left: 1.4rem; }
.prose li { margin-bottom: 4px; }
.prose img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
/* Thanh quản trị: chỉ hiện khi trình duyệt đang đăng nhập trang quản trị */
.admin-bar { display: flex; gap: .4rem; align-items: center; justify-content: flex-end; padding: 4px 16px; background: #0d3a18; color: #cfe3c8; font-size: .8rem; line-height: 1.6; }
.admin-bar a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.note { padding: 12px 16px; border-left: 4px solid var(--gold-500); border-radius: 8px; background: #fff8e1; font-size: .92rem; }
.prose h3 { margin: 20px 0 6px; font-size: 1.15rem; font-weight: 700; color: var(--green-900); }
.prose a:not(.btn) { color: var(--green-700); text-decoration: underline; text-underline-offset: 2px; }
.prose a:not(.btn):hover { color: var(--green-900); }
.prose figcaption { margin-top: 6px; font-size: .86rem; color: var(--muted); text-align: center; }
.prose blockquote { margin: 0 0 14px; padding: 6px 0 6px 18px; border-left: 4px solid var(--green-700); font-size: 1.08rem; font-style: italic; color: var(--green-900); }
.prose blockquote p { margin-bottom: 4px; }
.prose blockquote cite { display: block; font-size: .88rem; font-style: normal; color: var(--muted); }
.prose blockquote cite::before { content: "— "; }
.prose hr { margin: 24px auto; width: 120px; border: 0; border-top: 2px solid var(--line); }
.prose .article-btn { margin-block: 18px; text-align: center; }
.gallery ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; list-style: none; padding: 0; margin: 0; }
.gallery--one ul { grid-template-columns: 1fr; }
.prose .gallery li { margin: 0; }
.prose .gallery img { aspect-ratio: 4 / 3; object-fit: cover; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.prose th, .prose td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: #f3f8f1; font-weight: 700; color: var(--green-900); }
.prose tr:last-child td { border-bottom: 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (min-width: 769px) { .gallery ul { grid-template-columns: repeat(3, 1fr); } .gallery--one ul { grid-template-columns: 1fr; } }
.back { margin-top: 24px; }
.related h2 { margin-bottom: 14px; }

@media (min-width: 481px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .leader-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 769px) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .leader-grid { grid-template-columns: repeat(3, 1fr); }
  .culture { grid-template-columns: 1fr 1fr; }
  .info-list > div { grid-template-columns: 220px 1fr; gap: 16px; }
  .page-hero { padding-block: 40px 44px; }
}
@media (min-width: 992px) {
  .article-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Header gọn hơn ở màn hình 1025–1279px để không bị xuống dòng */
.hotline, .hotline strong, .brand-text strong, .brand-text small { white-space: nowrap; }
.hotline, .header-actions, .brand { flex: none; }
@media (min-width: 992px) and (max-width: 1279px) {
  .header-inner { gap: 8px; padding-inline: 14px; }
  .brand-text strong { font-size: .95rem; }
  .brand-text small { font-size: .75rem; }
  .primary-nav a { padding: .45rem .55rem; font-size: .78rem; }
  .hotline { padding: .4rem .7rem; }
  .hotline strong { font-size: .8rem; }
}
@media (min-width: 992px) and (max-width: 1179px) {
  .primary-nav { min-width: 0; }
  .primary-nav a { padding: .45rem .35rem; font-size: .75rem; }
  .brand img { width: 46px; height: 46px; }
  .brand-text strong { font-size: .88rem; }
  .brand-text small { font-size: .7rem; }
  .hotline small { display: none; }
  .hotline { gap: 6px; padding: .5rem .7rem; }
}

/* Bóng thẻ sự kiện nhỏ hơn để không bị cắt ở mép carousel */
.event-card { box-shadow: 0 3px 10px rgba(20, 80, 31, .12); }

/* Đơn vị co giãn theo bề rộng nhưng dừng ở 1440px để màn hình lớn không bị phóng to quá mức */
:root { --u: min(1vw, 14.4px); }

/* ==========================================================================
   Tỉ lệ desktop theo thiết kế mục tiêu (1024px): kích thước dùng đơn vị vw
   nên co giãn đúng tỉ lệ từ 992px trở lên; clamp() chặn ở màn hình rất lớn.
   ========================================================================== */
@media (min-width: 992px) {
  :root { --header-h: 62px; }
  .brand img { width: 48px; height: 48px; }

  /* Hero (mục tiêu cao ~336px ở 1024) */
  .hero .slide-grid { min-height: 0; padding-block: calc(2 * var(--u)) calc(4.4 * var(--u)); gap: calc(2 * var(--u)); grid-template-columns: 1.1fr 1fr; }
  .hero-kicker { font-size: clamp(.85rem, calc(1.65 * var(--u)), 1.5rem); }
  .hero-title { font-size: clamp(1.5rem, calc(2.75 * var(--u)), 3.2rem); }
  .hero-title span { margin-top: .15rem; font-size: .62em; }
  .hero-slogan { margin-block: calc(.3 * var(--u)) calc(1 * var(--u)); font-size: clamp(2rem, calc(4 * var(--u)), 4.2rem); }
  .hero-points { gap: calc(1.4 * var(--u)); margin-bottom: calc(1.4 * var(--u)); }
  .hero-points li { max-width: calc(12 * var(--u)); font-size: clamp(.66rem, calc(1.1 * var(--u)), 1rem); gap: calc(.3 * var(--u)); }
  .ring { width: clamp(32px, calc(4 * var(--u)), 52px); height: clamp(32px, calc(4 * var(--u)), 52px); }
  .ring svg { width: 100%; height: 100%; }
  .hero .btn-gold { padding: .5rem 1.2rem; font-size: clamp(.78rem, calc(1.2 * var(--u)), 1.05rem); }
  .slide-media img { max-width: calc(40 * var(--u)); max-height: calc(27 * var(--u)); width: auto; margin-inline: auto; }
  .slide-media--poster img { max-height: calc(27 * var(--u)); }
  .hero-dots { bottom: calc(1 * var(--u)); }

  /* Điểm mạnh (~75px) */
  .strengths-list { padding-block: calc(.6 * var(--u)); }
  .strengths-list li { padding: calc(1 * var(--u)) calc(1.2 * var(--u)); gap: calc(1 * var(--u)); }
  .icon-circle { width: clamp(36px, calc(4.2 * var(--u)), 56px); height: clamp(36px, calc(4.2 * var(--u)), 56px); }
  .icon-circle svg { width: 55%; height: 55%; }
  .strengths-list h2 { font-size: clamp(.7rem, calc(1.15 * var(--u)), 1.05rem); }
  .strengths-list p { font-size: clamp(.64rem, calc(1 * var(--u)), .92rem); line-height: 1.35; }

  /* Về chúng tôi (~238px) */
  .about { padding-block: 0; }
  .about-grid { grid-template-columns: 38.3% 1fr 23.6%; gap: calc(2.4 * var(--u)); align-items: center; padding-right: calc(1.2 * var(--u)); }
  .about-media { padding: 0; }
  .about-media img { width: 100%; height: calc(22.9 * var(--u)); min-height: 0; max-height: none; border-radius: 0 calc(4.4 * var(--u)) calc(4.4 * var(--u)) 0; box-shadow: none; }
  .about-copy h2 { margin: calc(.5 * var(--u)) 0; font-size: clamp(1.05rem, calc(2.1 * var(--u)), 2.1rem); line-height: 1.15; }
  .about-copy p { margin-bottom: calc(.9 * var(--u)); font-size: clamp(.7rem, calc(1.1 * var(--u)), 1rem); line-height: 1.5; }
  .about-copy .pill { font-size: clamp(.65rem, calc(.95 * var(--u)), .9rem); }
  .about-values { padding: calc(.3 * var(--u)) calc(1.3 * var(--u)); }
  .about-values li { gap: calc(1 * var(--u)); padding: calc(.8 * var(--u)) 0; }
  .icon-circle--soft { width: clamp(34px, calc(4 * var(--u)), 54px); height: clamp(34px, calc(4 * var(--u)), 54px); }
  .about-values h3 { font-size: clamp(.72rem, calc(1.1 * var(--u)), 1rem); }
  .about-values p { font-size: clamp(.62rem, calc(.95 * var(--u)), .88rem); }

  /* Sản phẩm nổi bật (~245px) */
  .products { padding-block: calc(.8 * var(--u)) calc(1.4 * var(--u)); }
  .products .section-head { margin-bottom: calc(1.2 * var(--u)); gap: calc(.2 * var(--u)); }
  .section-head h2 { font-size: clamp(1.3rem, calc(2.6 * var(--u)), 2.6rem); }
  .section-head p { font-size: clamp(.72rem, calc(1.15 * var(--u)), 1.05rem); }
  .product-card { gap: calc(1.4 * var(--u)); padding: calc(1 * var(--u)); border-radius: calc(2 * var(--u)); grid-template-columns: 42% 1fr; }
  .product-card img { max-height: calc(14 * var(--u)); border-radius: calc(1.2 * var(--u)); }
  .product-body h3 { margin-bottom: calc(.5 * var(--u)); font-size: clamp(1rem, calc(1.75 * var(--u)), 1.7rem); }
  .product-body h3:has(+ .product-sub) { margin-bottom: calc(.15 * var(--u)); }
  .product-sub { margin-bottom: calc(.6 * var(--u)); font-size: clamp(.64rem, calc(1.05 * var(--u)), .95rem); }
  .checks { gap: calc(.4 * var(--u)); margin-bottom: calc(.8 * var(--u)); }
  .checks li { padding-left: calc(1.9 * var(--u)); font-size: clamp(.66rem, calc(1.1 * var(--u)), 1rem); }
  .checks li::before { width: calc(1.4 * var(--u)); height: calc(1.4 * var(--u)); min-width: 14px; min-height: 14px; }
  .btn-outline { padding: .3rem .9rem; font-size: clamp(.66rem, calc(1.1 * var(--u)), .95rem); }


  /* Đào tạo – Sự kiện (~215px) */
  .events { padding-block: calc(1.2 * var(--u)) calc(1.6 * var(--u)); }
  .events .section-head { margin-bottom: calc(1 * var(--u)); }
  .event-card { padding: calc(.5 * var(--u)) calc(.5 * var(--u)) calc(.9 * var(--u)); gap: calc(.5 * var(--u)); }
  .event-card img { aspect-ratio: 2.8 / 1; }
  .event-card h3 { font-size: clamp(.66rem, calc(1.1 * var(--u)), 1rem); }
  .event-date { font-size: clamp(.66rem, calc(1.05 * var(--u)), .95rem); }
  .event-date svg { width: calc(1.6 * var(--u)); height: calc(1.6 * var(--u)); min-width: 14px; min-height: 14px; }

  /* Đăng ký tư vấn (~102px) */
  .signup { padding-block: calc(1.5 * var(--u)) calc(1.8 * var(--u)); }
  .signup h2 { font-size: clamp(1.1rem, calc(1.9 * var(--u)), 2rem); }
  .signup p { margin-top: 0; font-size: clamp(.7rem, calc(1.1 * var(--u)), 1rem); }
  .signup-form { flex-wrap: wrap; gap: calc(1 * var(--u)); margin: calc(1 * var(--u)) auto 0; max-width: calc(66 * var(--u)); }
  .signup-form .form-msg { position: static; flex-basis: 100%; }
  .signup-form .form-msg:empty { display: none; }
  .field input { padding: calc(.6 * var(--u)) calc(1 * var(--u)) calc(.6 * var(--u)) calc(3.6 * var(--u)); font-size: clamp(.72rem, calc(1.05 * var(--u)), .95rem); }
  .field svg { width: calc(1.8 * var(--u)); height: calc(1.8 * var(--u)); min-width: 16px; min-height: 16px; left: calc(1 * var(--u)); }
  .signup-form .btn { padding: calc(.6 * var(--u)) calc(2 * var(--u)); font-size: clamp(.78rem, calc(1.2 * var(--u)), 1.05rem); }

  /* Footer (~79px) */
  .footer-inner { grid-template-columns: 1.15fr 1.5fr auto; gap: calc(2 * var(--u)); padding: calc(1 * var(--u)) calc(4 * var(--u)); }
  .footer-brand img { width: clamp(48px, calc(5.4 * var(--u)), 72px); height: clamp(48px, calc(5.4 * var(--u)), 72px); }
  .footer-brand p { font-size: clamp(.66rem, calc(1.05 * var(--u)), 1rem); line-height: 1.3; }
  .footer-contact { gap: calc(.3 * var(--u)); font-size: clamp(.62rem, calc(.95 * var(--u)), .9rem); }
  .soc { width: clamp(32px, calc(2.9 * var(--u)), 42px); height: clamp(32px, calc(2.9 * var(--u)), 42px); }
  .soc::before { width: 55%; height: 55%; }
  .soc--zalo::before { width: 75%; height: 75%; }
}
.copyright { padding: 6px 16px; font-size: .68rem; }

/* Tinh chỉnh lần 2: khớp chiều cao các section với thiết kế ở 1024px */
@media (min-width: 992px) {
  .hero .slide-grid { padding-block: calc(1.5 * var(--u)) calc(3.4 * var(--u)); }
  .hero-slogan { font-size: clamp(2rem, calc(3.8 * var(--u)), 4.2rem); margin-block: calc(.2 * var(--u)) calc(.8 * var(--u)); }
  .hero-points { margin-bottom: calc(1 * var(--u)); }
  .ring { width: clamp(30px, calc(3.6 * var(--u)), 50px); height: clamp(30px, calc(3.6 * var(--u)), 50px); }
  .hero .btn-gold { padding: .4rem 1.1rem; }

  .products { padding-block: calc(.5 * var(--u)) calc(1 * var(--u)); }
  .products .section-head { margin-bottom: calc(.9 * var(--u)); }
  .section-head h2 { font-size: clamp(1.3rem, calc(2.45 * var(--u)), 2.5rem); }
  .product-card img { max-height: calc(13 * var(--u)); }


  .events { padding-block: calc(.8 * var(--u)) calc(1.2 * var(--u)); }
  .events .section-head { margin-bottom: calc(.6 * var(--u)); }
  .carousel-track { padding-bottom: 20px; }
  .event-card { padding-bottom: calc(.6 * var(--u)); }
  .event-card img { aspect-ratio: 3.2 / 1; }

  .signup { padding-block: calc(1.2 * var(--u)) calc(1.3 * var(--u)); }
  .signup-form { margin-top: calc(.7 * var(--u)); }
  .field input { padding-block: calc(.4 * var(--u)); }
  .signup-form .btn { padding-block: calc(.4 * var(--u)); }
  .form-msg { min-height: 0; }

  .footer-inner { grid-template-columns: minmax(0, .9fr) minmax(0, 1.9fr) auto; padding: calc(.8 * var(--u)) calc(4 * var(--u)); }
  .copyright { padding: 3px 16px; font-size: .62rem; }
}

@media (min-width: 992px) {
  /* Mục "Sản phẩm" đang chọn: viền pill bao cả mũi tên */
  .has-sub:has(> a.is-active) { background: var(--green-700); border-radius: 999px; }
  .has-sub > a.is-active { background: transparent; }
  .has-sub:has(> a.is-active) .sub-toggle { color: #fff; }
  .has-sub:not(:has(> a.is-active)):hover { background: var(--green-100); border-radius: 999px; }
  .primary-nav .has-sub > a:not(.is-active):hover { background: transparent; }

  /* Tinh chỉnh lần 3 */
  .products { padding-block: 0 calc(.8 * var(--u)); }
  .product-card img { max-height: calc(12.6 * var(--u)); }
  .events { padding-block: calc(.6 * var(--u)) calc(.9 * var(--u)); }
  .carousel-track { padding-bottom: 16px; }
  .signup { padding-block: calc(1 * var(--u)) calc(1 * var(--u)); }
  .signup h2 { font-size: clamp(1.05rem, calc(1.8 * var(--u)), 1.9rem); }
  .field input { padding-block: calc(.3 * var(--u)); }
  .signup-form .btn { padding-block: calc(.3 * var(--u)); }
}
.copyright .footer-slogan { margin: 0 .5em 0 0; color: var(--gold-300); font-weight: 700; }

/* Mobile: tiêu đề section gọn hơn, nút carousel ở ngang ảnh, thông báo form rỗng không chiếm chỗ */
.form-msg:empty { display: none; }
@media (max-width: 480px) {
  .section-head h2 { font-size: clamp(1.15rem, calc(5.2 * var(--u)), 1.5rem); gap: 8px; }
  .deco { width: 22px; }
  .carousel-btn--prev, .carousel-btn--next { top: 28%; }
}
@media (min-width: 769px) and (max-width: 991px) {
  .footer-inner { grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; }
  .footer-brand p { white-space: nowrap; }
}
@media (min-width: 600px) and (max-width: 768px) {
  .slide-grid { grid-template-columns: 1.05fr 1fr; gap: 20px; padding-block: 28px 56px; }
  .slide-copy { text-align: left; }
  .hero-points { justify-content: flex-start; }
  .slide-media--poster img { max-height: 340px; }
}

/* Màn hình lớn: hai khối ảnh tràn lề, chân trang không xuống dòng */
@media (min-width: 1440px) {
  .about-grid { max-width: none; }
}
@media (min-width: 769px) {
  .footer-brand p { white-space: nowrap; }
  .footer-inner { grid-template-columns: auto minmax(0, 1fr) auto; gap: 3vw; }
}
@media (min-width: 600px) and (max-width: 991px) {
  .hero-kicker { font-size: clamp(.85rem, 2.2vw, 1.1rem); }
  .hero-title { font-size: clamp(1.4rem, 3.9vw, 2.2rem); }
  .hero-slogan { font-size: clamp(1.8rem, 4.8vw, 3rem); }
  .hero-points li { font-size: .72rem; }
}

/* 992–1099px: thanh menu gọn hơn để biểu tượng tìm kiếm và hotline không đè lên menu (đã tính cả thanh cuộn 15px) */
@media (min-width: 992px) and (max-width: 1099px) {
  .header-inner { gap: 6px; padding-inline: 12px; }
  .brand { gap: 7px; }
  .brand img { width: 42px; height: 42px; }
  .brand-text strong { font-size: .82rem; }
  .brand-text small { font-size: .66rem; }
  .primary-nav > ul { gap: 0; }
  .primary-nav a { padding: .4rem .3rem; font-size: .72rem; }
  .search-toggle { width: 34px; height: 34px; }
  .header-actions { gap: 4px; }
  .hotline { padding: .45rem .6rem; gap: 5px; }
  .hotline small { display: none; }
  .hotline svg { width: 16px; height: 16px; }
  .hotline strong { font-size: .76rem; }
}

/* ---------- Dòng pháp lý ở footer ---------- */
/* Mỗi ý một dòng ngắn, chữ nhỏ màu nhạt, căn giữa (kiểu thường gặp ở các site thương mại Việt Nam). */
.footer-legal {
  display: grid; gap: 2px; max-width: 1240px; margin-inline: auto; padding: 0 16px 10px;
  text-align: center; font-size: .72rem; line-height: 1.5; color: rgba(255, 255, 255, .62);
}
.footer-legal p { text-wrap: balance; }
.footer-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-legal a:hover { color: var(--gold-300); }
@media (min-width: 992px) { .footer-legal { font-size: .66rem; padding-bottom: 4px; } }

/* Thẻ bài viết (trang bài viết) và dòng lọc theo thẻ (trang danh sách) */
.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 2rem 0 0; }
.article-tags > span { font-weight: 600; color: var(--green-800, #14501f); }
.article-tag-filter { margin: -.25rem 0 1rem; font-size: .95rem; }

/* ---------- Giá sản phẩm và khối combo (mục Sản phẩm nổi bật) ---------- */
.product-price { margin-bottom: 10px; font-size: .9rem; color: var(--text); }
.product-price strong { font-size: 1.15rem; font-weight: 800; color: var(--gold-700); white-space: nowrap; }
.combo {
  display: grid; gap: 12px; margin-top: 18px; padding: 18px; border-radius: 22px; text-align: center; color: #fff;
  background: radial-gradient(ellipse 60% 120% at 0% 0%, rgba(176, 230, 110, .35), transparent 70%), linear-gradient(110deg, #1d6b2c, #14501f 60%, #0f4a1e);
  box-shadow: var(--shadow);
}
.combo h3 { margin-block: 2px 4px; font-size: 1.25rem; font-weight: 800; }
.combo-text p:last-child { font-size: .9rem; opacity: .92; }
.combo-price { display: grid; gap: 2px; }
.combo-price span { font-size: .8rem; opacity: .85; }
.combo-price strong { font-size: 1.7rem; font-weight: 800; line-height: 1.1; color: var(--gold-300); white-space: nowrap; }
.combo-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; }
.combo-link { font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; }
.combo-link:hover { color: var(--gold-300); }
@media (min-width: 769px) {
  .combo { grid-template-columns: 1fr auto auto; align-items: center; gap: 24px; padding: 18px 28px; text-align: left; }
  .combo-price { text-align: right; }
  .combo-actions { flex-direction: column; align-items: stretch; }
  .combo-link { text-align: center; }
}
@media (min-width: 1200px) {
  .product-price { margin-bottom: calc(.6 * var(--u)); font-size: clamp(.7rem, calc(1.05 * var(--u)), .95rem); }
  .product-price strong { font-size: clamp(.9rem, calc(1.5 * var(--u)), 1.35rem); }
  .combo { margin-top: calc(1.4 * var(--u)); padding: calc(1.2 * var(--u)) calc(2.4 * var(--u)); border-radius: calc(2 * var(--u)); }
  .combo h3 { font-size: clamp(1rem, calc(1.6 * var(--u)), 1.5rem); }
  .combo-price strong { font-size: clamp(1.3rem, calc(2.4 * var(--u)), 2.2rem); }
}

/* Câu đồng ý dưới form đăng ký tư vấn */
.signup .form-consent { margin-top: 8px; font-size: .78rem; opacity: .85; }
.signup .form-consent a { text-decoration: underline; text-underline-offset: 2px; }
.signup .form-consent a:hover { color: var(--gold-300); }
@media (min-width: 1200px) { .signup .form-consent { margin-top: calc(.5 * var(--u)); font-size: clamp(.62rem, calc(.9 * var(--u)), .82rem); } }

/* ---------- Liên kết chính sách ở footer ---------- */
.footer-policies {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 14px;
  max-width: 1240px; margin-inline: auto; padding: 10px 16px; border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .78rem;
}
.footer-policies-title { font-weight: 700; color: var(--gold-300); }
.footer-policies ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
.footer-policies a { color: rgba(255, 255, 255, .85); }
.footer-policies a:hover { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.footer-policies-title a { color: inherit; }
@media (min-width: 992px) { .footer-policies { padding-block: 6px; font-size: .72rem; } }

/* ---------- Trang chính sách ---------- */
.policy .article-meta { margin-bottom: 8px; }
.policy-nav { margin-top: 28px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--green-50); }
.policy-nav h2 { margin-bottom: 8px; font-size: 1.05rem; font-weight: 800; color: var(--green-800); }
.policy-nav ul { display: grid; gap: 6px; }
.policy-nav a { color: var(--green-700); text-decoration: underline; text-underline-offset: 2px; }
.policy-nav a:hover { color: var(--green-900); }
@media (min-width: 769px) { .policy-nav ul { grid-template-columns: 1fr 1fr; gap: 6px 24px; } }
.policy-list { max-width: 900px; padding-block: 24px 32px; }
.policy-list ul { display: grid; gap: 12px; }
.policy-list a {
  display: grid; gap: 4px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.policy-list a:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20, 80, 31, .18); }
.policy-list strong { font-size: 1.05rem; font-weight: 800; color: var(--green-800); }
.policy-list span { font-size: .9rem; color: var(--muted); }
@media (min-width: 769px) { .policy-list ul { grid-template-columns: 1fr 1fr; } }

.policy .table-block { margin-inline: 0; }
