/* ============================================================
   KHẢ VĂN LANGUAGE CENTER — HOME REDESIGN DESIGN SYSTEM
   File DUY NHẤT điều phối giao diện trang chủ (v2026.06).
   Nạp SAU các CSS cũ để ghi đè, gom mọi section về 1 ngôn ngữ.
   ============================================================ */

/* ============ 1. TOKENS ============ */
:root {
  /* Palette brief */
  --green-dark:    #059669;
  --green-primary: #10B981;
  --green-light:   #F0FDF4;
  --yellow:        #FBBF24;
  --yellow-soft:   #FEF3C7;
  --text-dark:     #102A24;
  --text-muted:    #64748B;
  --border:        #DDEEE7;
  --white:         #FFFFFF;

  /* Radius */
  --radius-card:   20px;
  --radius-button: 12px;
  --radius-pill:   999px;
  --radius-sm:     12px;

  /* Shadow */
  --shadow-soft:   0 10px 30px -12px rgba(0, 66, 37, 0.18);
  --shadow-card:   0 4px 18px -6px rgba(16, 42, 36, 0.10);
  --shadow-hover:  0 20px 44px -16px rgba(0, 66, 37, 0.28);
  --shadow-yellow: 0 12px 26px -10px rgba(251, 191, 36, 0.55);

  /* Spacing scale (8pt) */
  --space-section: clamp(3.5rem, 6vw, 5.5rem);
  --space-header:  56px;
  --gap:           1.5rem;
  --container:     1200px;

  /* Type */
  --font-sans: "Be Vietnam Pro", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* ====== Map sang biến --kv-* cũ ====== */
  --kv-green:       #10B981 !important;
  --kv-green-dark:  #059669 !important;
  --kv-green-soft:  #E7F5EE !important;
  --kv-yellow:      #FBBF24 !important;
  --kv-yellow-soft: #FEF3C7 !important;
  --kv-text:        var(--text-dark);
  --kv-muted:       var(--text-muted);
  --kv-border:      var(--border);
  --kv-radius:      var(--radius-card);
  --kv-shadow:      var(--shadow-soft);
  --kv-font:        var(--font-sans);
}

/* ============ 2. BASE ============ */
body.kv-redesign {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Tắt hiệu ứng "quá đà" của bản cũ gây cảm giác rối/rời rạc */
body.kv-redesign .kv-english-3d,
body.kv-redesign .kv-fx-dots,
body.kv-redesign .kv-fx-spotlight,
body.kv-redesign .kv-fx-spotlight-cursor,
body.kv-redesign .kv-scroll-progress { display: none !important; }

body.kv-redesign h1,
body.kv-redesign h2,
body.kv-redesign h3,
body.kv-redesign h4 {
  color: var(--text-dark);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}
body.kv-redesign p { margin: 0; }
body.kv-redesign a { text-decoration: none; color: inherit; }
body.kv-redesign img { max-width: 100%; display: block; }

/* Override màu chữ trên nền tối / button — đặt sau base để thắng specificity */
body.kv-redesign .kvx-hero__title,
body.kv-redesign .kvx-section--dark .kvx-title,
body.kv-redesign .kvx-section--dark h2,
body.kv-redesign .kvx-section--dark h3,
body.kv-redesign .kvx-commit h3,
body.kv-redesign .kvx-contact__card h3,
body.kv-redesign .kvx-hero__content h1 { color: #fff; }
body.kv-redesign .kvx-btn--primary,
body.kv-redesign .kvx-btn--light:hover,
body.kv-redesign a.kvx-btn--primary { color: #fff; }
body.kv-redesign .kvx-btn--accent,
body.kv-redesign a.kvx-btn--accent { color: var(--green-dark); }
body.kv-redesign .kvx-btn--light,
body.kv-redesign a.kvx-btn--light,
body.kv-redesign .kvx-btn--ghost,
body.kv-redesign a.kvx-btn--ghost { color: var(--green-dark); }
body.kv-redesign a.kvx-btn--ghost { color: var(--green-primary); }
body.kv-redesign *,
body.kv-redesign *::before,
body.kv-redesign *::after { box-sizing: border-box; }

/* ============ 3. LAYOUT ============ */
.kvx-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
.kvx-section { padding-block: var(--space-section); }
.kvx-section--tight { padding-block: clamp(3rem, 5vw, 4.5rem); }
.kvx-section--soft { background: #fafaf9; }
.kvx-section,
.kvx-stats {
  position: relative;
}
.kvx-pad--tight { padding-block: clamp(2.25rem, 4vw, 3.25rem) !important; }
.kvx-pad--normal { padding-block: var(--space-section) !important; }
.kvx-pad--large { padding-block: clamp(5.5rem, 9vw, 8rem) !important; }
.kvx-design--light { background: #fff !important; }
.kvx-design--soft { background: var(--green-light) !important; }
.kvx-design--brand {
  background: linear-gradient(135deg, var(--green), var(--green-dark)) !important;
  color: #fff !important;
}
.kvx-has-bg-image {
  background-image: var(--kvx-bg-image) !important;
  background-size: cover !important;
  background-position: var(--kvx-bg-position, center center) !important;
  background-repeat: no-repeat !important;
  overflow: hidden;
}
.kvx-has-bg-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.kvx-has-bg-image > * {
  position: relative;
  z-index: 1;
}
.kvx-overlay--light::before { background: rgba(255, 255, 255, .76); }
.kvx-overlay--dark::before { background: rgba(2, 44, 34, .62); }
.kvx-overlay--brand::before { background: linear-gradient(135deg, rgba(0, 122, 61, .82), rgba(0, 65, 37, .68)); }
.kvx-design--brand .kvx-title,
.kvx-design--brand .kvx-lead,
.kvx-design--brand h2,
.kvx-design--brand h3,
.kvx-overlay--dark .kvx-title,
.kvx-overlay--dark .kvx-lead,
.kvx-overlay--dark h2,
.kvx-overlay--dark h3,
.kvx-overlay--brand .kvx-title,
.kvx-overlay--brand .kvx-lead,
.kvx-overlay--brand h2,
.kvx-overlay--brand h3 {
  color: #fff !important;
}
.kvx-overlay--dark .kvx-kicker,
.kvx-overlay--brand .kvx-kicker,
.kvx-design--brand .kvx-kicker {
  color: #fff;
  background: rgba(255, 194, 33, .18);
  border-color: rgba(255, 194, 33, .42);
}
.kvx-section--dark {
  background: var(--green-dark) !important;
  color: #fff;
}

/* Section heading thống nhất toàn trang */
.kvx-head { max-width: 720px; margin: 0 auto clamp(2.25rem, 4vw, 3.25rem); text-align: center; }
.kvx-head--left { margin-inline: 0; text-align: left; }
.kvx-kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-primary);
  background: var(--yellow-soft);
  border: 1px solid rgba(251, 191, 36, .4);
  padding: .45rem 1rem; border-radius: var(--radius-pill);
}
.kvx-section--dark .kvx-kicker { color: #fff; background: rgba(251,191,36,.18); border-color: rgba(251,191,36,.4); }
.kvx-title {
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  margin-top: 1rem;
  font-weight: 900;
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
}
.kvx-section--dark .kvx-title { color: #fff; }
.kvx-lead {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: center;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}
.kvx-section--dark .kvx-lead { color: rgba(255,255,255,.82); }

/* Grid helpers */
.kvx-grid { display: grid; gap: var(--gap); }
.kvx-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kvx-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kvx-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ============ 4. COMPONENTS ============ */

/* --- Button --- */
.kvx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: inherit; font-weight: 700; font-size: 1rem; line-height: 1;
  padding: .95rem 1.6rem; border-radius: var(--radius-button);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.kvx-btn i { font-size: 1.15em; }
.kvx-btn--primary { background: var(--green-primary); color: #fff; box-shadow: var(--shadow-soft); }
.kvx-btn--primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.kvx-btn--accent { background: var(--yellow); color: var(--green-dark); box-shadow: var(--shadow-yellow); }
.kvx-btn--accent:hover { transform: translateY(-2px); filter: brightness(1.04); }
.kvx-btn--ghost { background: transparent; color: var(--green-primary); border-color: var(--border); }
.kvx-btn--ghost:hover { border-color: var(--green-primary); background: var(--green-light); }
.kvx-btn--light { background: #fff; color: var(--green-dark); }
.kvx-btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.kvx-btn--block { width: 100%; }

/* --- Card (nền của mọi card toàn trang) --- */
.kvx-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-card); box-shadow: var(--shadow-card);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  height: 100%;
}
.kvx-card--hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: rgba(0,107,63,.35); }

/* --- Icon chip thống nhất --- */
.kvx-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 16px; flex: none;
  font-size: 1.5rem; background: var(--green-light); color: var(--green-primary);
}
.kvx-ic--round { border-radius: var(--radius-pill); }
.kvx-ic--accent { background: var(--yellow-soft); color: #b45309; }
.kvx-ic--solid  { background: var(--green-primary); color: #fff; }
.kvx-ic--yellow { background: var(--yellow); color: var(--green-dark); }
.kvx-ic--sm { width: 44px; height: 44px; font-size: 1.25rem; border-radius: 13px; }

/* --- Tag / pill --- */
.kvx-tag {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .02em;
  padding: .3rem .7rem; border-radius: var(--radius-pill);
  background: var(--green-light); color: var(--green-primary);
}

/* --- Checklist thống nhất --- */
.kvx-check { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.kvx-check li { display: flex; gap: .75rem; align-items: flex-start; color: var(--text-dark); font-weight: 500; }
.kvx-check li > i { color: var(--green-primary); font-size: 1.25rem; margin-top: .1rem; flex: none; }
.kvx-section--dark .kvx-check li { color: rgba(255,255,255,.92); }
.kvx-section--dark .kvx-check li > i { color: var(--yellow); }

/* --- Stars --- */
.kvx-stars i { color: var(--yellow); font-size: .95rem; }

/* --- Form controls thống nhất --- */
.kvx-field {
  width: 100%; font-family: inherit; font-size: .98rem;
  padding: .85rem 1rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-button); background: #fff; color: var(--text-dark);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.kvx-field::placeholder { color: #94a3b8; }
.kvx-field:focus { outline: none; border-color: var(--green-primary); box-shadow: 0 0 0 4px rgba(0,107,63,.12); }
textarea.kvx-field { resize: vertical; min-height: 96px; }

/* ============ 5. SECTIONS ============ */

/* --- 1. HEADER override (đồng bộ glass, đè _nav.html cũ) --- */
body.kv-redesign .kv-site-header {
  background: rgba(255,255,255,.85) !important;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px -8px rgba(16,42,36,.18) !important;
  color: var(--text-dark) !important;
}
body.kv-redesign .kv-site-header .kv-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
@media (min-width: 1024px) {
  body.kv-redesign .kv-site-header .kv-header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 1.25rem;
    justify-content: initial;
  }
  body.kv-redesign .kv-header-logo {
    flex-shrink: 0;
    max-width: 10.5rem;
  }
  body.kv-redesign .kv-header-logo__text {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 10.5rem;
  }
  body.kv-redesign .kv-desktop-nav {
    justify-content: center;
    min-width: 0;
    flex-wrap: nowrap;
  }
}
body.kv-redesign .kv-desktop-nav {
  gap: clamp(.55rem, 1.1vw, .9rem) !important;
}
body.kv-redesign .kv-desktop-nav a {
  position: relative; color: var(--text-dark) !important;
  font-weight: 600; font-size: .92rem; padding: .45rem .7rem !important;
  border-radius: 10px; white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}
body.kv-redesign .kv-desktop-nav a:hover { color: var(--green-primary) !important; background: var(--green-light); }
body.kv-redesign .kv-desktop-nav a.text-kv-yellow { color: var(--green-dark) !important; }
/* Active menu: underline vàng tinh tế */
body.kv-redesign .kv-desktop-nav a.text-kv-yellow::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem;
  height: 3px; border-radius: 3px; background: var(--yellow);
}
body.kv-redesign .kv-desktop-cta {
  background: var(--green-primary) !important; color: #fff !important;
  padding: .7rem 1.4rem !important; font-weight: 700 !important;
  border-radius: 999px !important;
  box-shadow: var(--shadow-soft); transition: transform .16s ease, background .16s ease;
}
body.kv-redesign .kv-desktop-cta:hover { background: var(--green-dark) !important; transform: translateY(-2px); opacity: 1 !important; }

/* --- 2. HERO --- */
.kvx-hero {
  position: relative; overflow: hidden;
  /* Deep green đặc + quầng sáng emerald rất nhẹ góc trên-phải (bám ảnh mẫu) */
  background:
    radial-gradient(90% 80% at 85% 0%, rgba(16,150,105,.28) 0%, transparent 55%),
    var(--green-dark);
  color: #fff;
}
.kvx-hero__grid {
  /* Full-width banner: cột text canh theo container, cột ảnh tràn sát mép phải (ảnh mẫu).
     1fr trái = nửa màn; padding-left đẩy text về đúng lề container 1200px. */
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center; position: relative; z-index: 1;
  padding-block: clamp(3rem, 6vw, 5.5rem);
  padding-left: max(clamp(1rem, 4vw, 2rem), calc((100% - var(--container)) / 2));
}
.kvx-hero__content { max-width: 600px; }
.kvx-hero__media { align-self: stretch; }
.kvx-hero__eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  padding: .45rem 1rem; border-radius: var(--radius-pill);
  font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: #fff;
}
.kvx-hero__title { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.5rem); margin-top: 1.3rem; }
body.kv-redesign .kvx-hero__title .kvx-hl { color: var(--yellow); }
.kvx-hero__sub { margin-top: 1.2rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: rgba(255,255,255,.9); max-width: 33ch; }
.kvx-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.kvx-hero__chips { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.25rem; }
.kvx-hero__chip {
  display: inline-flex; align-items: center; gap: .55rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  padding: .6rem 1rem; border-radius: var(--radius-pill);
  font-size: .9rem; font-weight: 600; color: #fff;
}
.kvx-hero__chip i { color: var(--yellow); font-size: 1.1rem; }
.kvx-hero__media { position: relative; height: 100%; }
.kvx-hero__media > img,
.kvx-hero__media > video {
  /* Ảnh tràn sát mép phải + lấp đầy chiều cao hero, hòa vào nền xanh (ảnh mẫu) */
  width: 100%; height: 100%; min-height: 420px;
  object-fit: cover; object-position: center right;
  border: 0; border-radius: 0; box-shadow: none;
}
/* Badge nổi trên ảnh hero — ẩn theo ảnh mẫu (ảnh học viên để mộc) */
.kvx-hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
  background: #f8fafc;
  --hero-slide-ease: ease-in-out;
}
.kvx-hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  pointer-events: none;
  color: #fff;
  text-decoration: none;
  will-change: opacity;
}
.kvx-hero-slide.is-active {
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
}
.kvx-hero-slide.is-leaving {
  z-index: 3;
  opacity: 1;
  pointer-events: none;
  animation: kvx-hero-fade-out var(--hero-slide-transition, 2600ms) var(--hero-slide-ease, ease-in-out) forwards;
}
@keyframes kvx-hero-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}
.kvx-hero-slider .kvx-hero-slide:first-child {
  opacity: 1;
}
.kvx-hero-slider .kvx-hero-slide:first-child:not(.is-active) {
  opacity: 0;
}
.kvx-hero-slide img,
.kvx-hero-slide video {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center right;
  display: block;
  border: 0;
  border-radius: 0;
}
.kvx-hero-slide__caption {
  position: absolute;
  left: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  max-width: min(360px, calc(100% - 2rem));
  display: grid;
  gap: .25rem;
  padding: .75rem 1rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, .58);
  color: #fff;
  backdrop-filter: blur(10px);
}
.kvx-hero-slide__caption strong { font-size: 1rem; line-height: 1.25; }
.kvx-hero-slide__caption small { color: rgba(255,255,255,.82); line-height: 1.35; }
.kvx-hero-slider__dots {
  position: absolute;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 3;
  display: flex;
  gap: .45rem;
}
.kvx-hero-slider__dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  box-shadow: 0 0 0 1px rgba(15,23,42,.12);
  cursor: pointer;
  transition: width .18s ease, background .18s ease;
}
.kvx-hero-slider__dots button.is-active {
  width: 24px;
  background: var(--yellow);
}
.kvx-hero__badge { display: none; }

/* --- 3. STATS — cầu nối đè lên banner + phụ huynh --- */
.kvx-stats { margin-top: clamp(1.5rem, 3vw, 2.5rem); position: relative; z-index: 5; }
.kvx-stats__grid {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft); display: grid; grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
.kvx-stat { display: flex; gap: 1rem; align-items: center; padding: 1.75rem 1.5rem; }
.kvx-stat + .kvx-stat { border-left: 1px solid var(--border); }
.kvx-stat__val { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; color: var(--green-dark); line-height: 1; }
.kvx-stat__val.is-counting { font-variant-numeric: tabular-nums; filter: saturate(1.08); }
.kvx-stat__val.is-done { animation: kvx-stat-count-pop .45s cubic-bezier(.34,1.56,.64,1); }
.kvx-stat__label { font-size: .9rem; color: var(--text-muted); margin-top: .25rem; }
@keyframes kvx-stat-count-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Bridge: nửa trên đè banner, nửa dưới đè phụ huynh */
body.kv-redesign .kvx-stats--bridge {
  margin-top: clamp(-3.75rem, -5.5vw, -2.85rem) !important;
  margin-bottom: clamp(-2.85rem, -4.5vw, -2rem);
  padding-block: 0 !important;
  position: relative;
  z-index: 12;
  pointer-events: none;
}
body.kv-redesign .kvx-stats--bridge .kvx-container,
body.kv-redesign .kvx-stats--bridge .kvx-block-editor-tag {
  pointer-events: auto;
}
body.kv-redesign .kvx-stats--bridge .kvx-stats__grid {
  border: 1px solid rgba(6, 107, 63, .1);
  box-shadow:
    0 4px 6px rgba(6, 73, 45, .04),
    0 18px 42px rgba(6, 73, 45, .14);
}
body.kv-redesign .kvx-stats--bridge + .kvx-parent-guide,
body.kv-redesign .kvx-stats--bridge + #parent-guide {
  padding-top: clamp(4.25rem, 7vw, 5.75rem) !important;
  position: relative;
  z-index: 1;
}
body.kv-redesign .kvx-hero--banner-only {
  position: relative;
  z-index: 1;
}

/* --- 4. COURSES --- */
.kvx-course { display: flex; flex-direction: column; overflow: hidden; }
.kvx-course__media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.kvx-course__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.kvx-course--hover:hover .kvx-course__media img { transform: scale(1.06); }
.kvx-course__tag {
  position: absolute; top: .85rem; left: .85rem;
  background: rgba(255,255,255,.92); backdrop-filter: blur(4px);
  color: var(--green-primary); font-weight: 700; font-size: .72rem;
  padding: .35rem .7rem; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; gap: .35rem;
}
.kvx-course__body { padding: 1.65rem 1.75rem 1.85rem; display: flex; flex-direction: column; flex: 1; gap: .35rem; }
.kvx-course__body h3 { font-size: 1.2rem; }
.kvx-course__body p { color: var(--text-muted); font-size: .95rem; margin-top: .6rem; flex: 1; }
.kvx-course__link {
  margin-top: 1.1rem; display: inline-flex; align-items: center; gap: .35rem;
  color: var(--green-primary); font-weight: 700; font-size: .92rem;
}
.kvx-course__link i { transition: transform .18s ease; }
.kvx-course:hover .kvx-course__link i { transform: translateX(4px); }

.kvx-course-slider {
  position: relative;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 0 clamp(2.75rem, 4.5vw, 3.25rem);
  --course-slider-transition: 800ms;
  --course-slider-ease: cubic-bezier(0.33, 0, 0.18, 1);
}
.kvx-course-slider__viewport {
  overflow: hidden;
  border-radius: var(--radius-card, 18px);
}
.kvx-course-slider__track {
  display: flex;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  transition: transform var(--course-slider-transition) var(--course-slider-ease);
  will-change: transform;
}
.kvx-course-slider__slide {
  flex: 0 0 calc((100% - 2 * clamp(1.25rem, 2.5vw, 1.75rem)) / 3);
  min-width: 0;
}
.kvx-course-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  color: var(--green-primary);
  box-shadow: var(--shadow-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  cursor: pointer;
  transition: transform .2s var(--course-slider-ease), box-shadow .2s ease, color .2s ease;
}
.kvx-course-slider__nav:hover {
  transform: translateY(-50%) scale(1.05);
  color: var(--green-dark, #064e3b);
  box-shadow: 0 10px 28px rgba(6, 78, 59, .16);
}
.kvx-course-slider__nav--prev { left: 0; }
.kvx-course-slider__nav--next { right: 0; }
.kvx-course-slider__nav[hidden] { display: none; }
.kvx-course-slider__dots {
  display: flex;
  justify-content: center;
  gap: .45rem;
  margin-top: 1.25rem;
  min-height: .5rem;
}
.kvx-course-slider__dots button {
  width: .55rem;
  height: .55rem;
  border: none;
  border-radius: 50%;
  padding: 0;
  background: rgba(6, 107, 61, .22);
  cursor: pointer;
  transition: transform .25s var(--course-slider-ease), background .25s ease, width .25s ease;
}
.kvx-course-slider__dots button.is-active {
  width: 1.35rem;
  border-radius: 999px;
  background: var(--green-primary);
}
.kvx-course-slider__cta {
  margin-top: clamp(2rem, 3.5vw, 2.75rem);
  text-align: center;
}
.kvx-course-slider__cta-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--green-primary);
  font-weight: 700;
}
.kvx-course-slider__cta-link i { transition: transform .18s ease; }
.kvx-course-slider__cta-link:hover i { transform: translateX(4px); }
.kvx-course-slider .kvx-course__tag { color: var(--course-tag-color, var(--green-primary)); }
@media (max-width: 1199px) {
  .kvx-course-slider__slide { flex-basis: calc((100% - clamp(1rem, 2vw, 1.35rem)) / 2); }
}
@media (max-width: 767px) {
  .kvx-course-slider { padding: 0 2.15rem; }
  .kvx-course-slider__slide { flex-basis: 100%; }
  .kvx-course-slider__nav { width: 2.15rem; height: 2.15rem; font-size: 1.15rem; }
}

/* --- 5. ENVIRONMENT --- */
.kvx-env { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.kvx-env__gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.kvx-env__fig { position: relative; margin: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-card); }
.kvx-env__fig img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
/* Caption = dải overlay xanh đè đáy ảnh, chữ trắng (theo ảnh mẫu) */
.kvx-env__fig figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .85rem .9rem .7rem; font-size: .85rem; font-weight: 600; color: #fff;
  background: linear-gradient(to top, rgba(6,78,59,.92) 0%, rgba(6,78,59,.55) 60%, transparent 100%);
}

/* --- 6. LEARNING PATH --- */
.kvx-path { padding: 1.6rem; text-align: center; display: flex; flex-direction: column; align-items: center; }
.kvx-path .kvx-ic { width: 64px; height: 64px; font-size: 1.8rem; margin-bottom: 1rem; }
.kvx-path h3 { font-size: 1.1rem; }
.kvx-path p { color: var(--text-muted); font-size: .9rem; margin-top: .5rem; }

/* --- 7. COMMITMENTS — manifesto (điểm nhấn rõ, không lưới card đồng đều) --- */
.kvx-commit-section {
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 45% at 8% 20%, rgba(251, 191, 36, .16), transparent 55%),
    radial-gradient(ellipse 40% 50% at 92% 80%, rgba(16, 185, 129, .22), transparent 50%),
    linear-gradient(165deg, #043f28 0%, #065f3a 42%, #047857 100%) !important;
}
.kvx-commit-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .35;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}
.kvx-commit-section::after {
  content: "";
  position: absolute;
  width: min(52vw, 520px);
  height: min(52vw, 520px);
  right: -12%;
  top: -18%;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  border: 1px solid rgba(251, 191, 36, .18);
  box-shadow: inset 0 0 0 40px rgba(251, 191, 36, .04);
}
.kvx-commit-section > .kvx-container,
.kvx-commit-section > .kvx-block-editor-tag {
  position: relative;
  z-index: 1;
}

.kvx-commit__layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.kvx-commit__manifesto {
  position: sticky;
  top: 5.5rem;
  padding-block: .25rem;
  padding-left: 1.15rem;
  border-left: 3px solid rgba(251, 191, 36, .55);
}

.kvx-commit__count,
.kvx-commit__count-num {
  display: none !important;
}

.kvx-commit__stat {
  display: inline-flex;
  align-items: baseline;
  gap: .55rem;
  margin: 0 0 1.35rem;
  padding: .65rem .95rem;
  border-radius: 14px;
  background: rgba(251, 191, 36, .14);
  border: 1px solid rgba(251, 191, 36, .35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}
.kvx-commit__stat-num {
  font-size: clamp(2rem, 3.5vw, 2.65rem);
  font-weight: 900;
  line-height: 1;
  color: #FBBF24;
  letter-spacing: -.02em;
}
.kvx-commit__stat-label {
  font-size: .82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .88);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.kvx-commit__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .85rem;
  color: #FBBF24;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.kvx-commit__eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  background: #FBBF24;
}

.kvx-commit__title {
  color: #fff !important;
  font-size: clamp(1.85rem, 3.4vw, 2.65rem) !important;
  line-height: 1.15 !important;
  max-width: 14ch;
  text-wrap: balance;
  margin: 0 0 .85rem;
}

.kvx-commit__lead {
  color: rgba(255, 255, 255, .78) !important;
  max-width: 34ch;
  margin: 0 0 1.5rem !important;
  font-size: 1.02rem !important;
  line-height: 1.6 !important;
}

.kvx-commit__cta {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.15rem;
  border-radius: 999px;
  background: #FBBF24;
  color: #064E3B;
  font-weight: 800;
  font-size: .92rem;
  text-decoration: none;
  transition: transform .22s ease, background .22s ease, gap .22s ease;
}
.kvx-commit__cta:hover {
  background: #fcd34d;
  transform: translateY(-2px);
  gap: .75rem;
  color: #064E3B;
}
.kvx-commit__cta i:last-child {
  transition: transform .22s ease;
}
.kvx-commit__cta:hover i:last-child {
  transform: translateX(3px);
}

.kvx-commit__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
  border-top: none;
}

.kvx-commit {
  position: relative;
  display: block;
  margin: 0;
  padding: 1.2rem 1.1rem 1.15rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, .03) 100%);
  min-height: 0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.kvx-commit::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #FBBF24, rgba(251, 191, 36, .25));
  opacity: .85;
  transition: opacity .25s ease;
}
.kvx-commit:nth-child(odd) {
  padding-right: 1.1rem;
  border-right: 1px solid rgba(255, 255, 255, .14);
}
.kvx-commit:nth-child(even) {
  padding-left: 1.15rem;
}
.kvx-commit::after {
  display: none;
}

.kvx-commit__idx {
  position: absolute;
  top: .55rem;
  right: .7rem;
  font-size: 2.15rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(251, 191, 36, .22);
  letter-spacing: -.04em;
  pointer-events: none;
  user-select: none;
}

.kvx-commit__body {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  min-width: 0;
}

.kvx-commit__ic {
  flex: 0 0 auto;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  background: linear-gradient(145deg, rgba(251, 191, 36, .28), rgba(251, 191, 36, .08));
  border: 1px solid rgba(251, 191, 36, .5);
  color: #FBBF24;
  box-shadow: 0 6px 18px rgba(251, 191, 36, .18);
  transition: transform .25s ease, box-shadow .25s ease;
}
.kvx-commit__ic i { font-size: 1.2rem; }

.kvx-commit__copy { min-width: 0; }
.kvx-commit h3 {
  margin: 0;
  color: #fff !important;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
}
.kvx-commit p {
  margin: .4rem 0 0;
  color: rgba(255, 255, 255, .72) !important;
  font-size: .92rem;
  line-height: 1.55;
}

.kvx-commit:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, .06) 100%);
  transform: translateY(-3px);
  border-color: rgba(251, 191, 36, .42);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .22);
}
.kvx-commit:hover::before {
  opacity: 1;
}
.kvx-commit:hover .kvx-commit__ic {
  transform: scale(1.06);
  box-shadow: 0 8px 22px rgba(251, 191, 36, .28);
}

@media (min-width: 961px) {
  .kvx-commit__list {
    padding: 1rem;
    border-radius: 22px;
    background: rgba(0, 0, 0, .14);
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  }
  .kvx-commit:nth-child(odd),
  .kvx-commit:nth-child(even) {
    border-right: 1px solid rgba(255, 255, 255, .14);
    padding-left: 1.15rem;
    padding-right: 1.1rem;
  }
}

@media (max-width: 960px) {
  .kvx-commit__layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .kvx-commit__manifesto {
    position: static;
    padding-left: 0;
    border-left: 0;
  }
  .kvx-commit__title {
    max-width: none;
  }
  .kvx-commit__stat {
    margin-bottom: 1rem;
  }
  .kvx-commit__list {
    grid-template-columns: 1fr;
    gap: .65rem;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .kvx-commit:nth-child(odd),
  .kvx-commit:nth-child(even) {
    padding: 1.05rem 1rem;
    border-right: 1px solid rgba(255, 255, 255, .14);
  }
}

@media (prefers-reduced-motion: reduce) {
  .kvx-commit__cta,
  .kvx-commit,
  .kvx-commit__idx {
    transition: none !important;
  }
}

/* Stagger enter — nhẹ, tôn trọng reduced-motion */
@supports (animation-timeline: view()) {
  .kvx-commit {
    animation: kvx-commit-in .55s cubic-bezier(.22, 1, .36, 1) both;
    animation-delay: calc(var(--kvx-commit-i, 0) * 55ms);
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }
  @keyframes kvx-commit-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    .kvx-commit { animation: none; }
  }
}

/* --- 8. PROCESS timeline --- */
.kvx-proc { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.kvx-proc::before {
  content: ""; position: absolute; top: 38px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.kvx-step { position: relative; z-index: 1; text-align: center; padding: 0 .5rem; }
.kvx-step__num {
  width: 64px; height: 64px; margin: 0 auto 1.1rem; border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800; color: #fff; background: var(--green-primary);
  box-shadow: 0 0 0 6px var(--green-light); position: relative;
}
.kvx-step__ic { position: absolute; top: -6px; right: -6px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--yellow); color: var(--green-dark); display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.kvx-step h3 { font-size: 1.05rem; }
.kvx-step p { color: var(--text-muted); font-size: .9rem; margin-top: .5rem; }

/* --- 9. WHY CHOOSE --- */
/* --- WHY CHOOSE — lưới đầy, không cột trống --- */
.kvx-why { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,4vw,3.5rem); align-items: center; }
.kvx-why__card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card); padding: clamp(1.75rem, 3vw, 2.5rem); box-shadow: var(--shadow-card); }
.kvx-why__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.kvx-why__list li { display: flex; gap: 1rem; align-items: flex-start; }
.kvx-why__list .kvx-ic { width: 40px; height: 40px; font-size: 1.15rem; border-radius: 12px; }
.kvx-why__list b { display: block; font-size: 1.02rem; }
.kvx-why__list span small { color: var(--text-muted); font-size: .9rem; }

body.kv-redesign .kvx-why-section {
  background:
    radial-gradient(ellipse 70% 55% at 12% 0%, rgba(16, 185, 129, .1), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 100%, rgba(251, 191, 36, .08), transparent 50%),
    linear-gradient(180deg, #f3faf6 0%, #fff 48%, #f8fbf9 100%) !important;
  overflow: hidden;
}
body.kv-redesign .kvx-why__head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto clamp(1.75rem, 3.5vw, 2.5rem);
}
body.kv-redesign .kvx-why__head .kvx-lead {
  margin-inline: auto;
  margin-top: .75rem;
}
body.kv-redesign .kvx-why__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}
body.kv-redesign .kvx-why__item {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: clamp(1.25rem, 2.2vw, 1.65rem);
  background: #fff;
  border: 1px solid rgba(6, 107, 63, .1);
  border-radius: var(--radius-card, 18px);
  position: relative;
  min-height: 11.5rem;
  transition: border-color .22s ease, transform .22s ease, background .22s ease;
}
body.kv-redesign .kvx-why__item:nth-child(4),
body.kv-redesign .kvx-why__item:nth-child(5) {
  grid-column: span 3;
}
body.kv-redesign .kvx-why__item:hover {
  border-color: rgba(16, 185, 129, .35);
  background: #f0fdf4;
  transform: translateY(-3px);
}
body.kv-redesign .kvx-why__num {
  position: absolute;
  top: .95rem;
  right: 1.05rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: rgba(16, 185, 129, .28);
  line-height: 1;
}
body.kv-redesign .kvx-why__ic {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, .12);
  color: #059669;
  font-size: 1.35rem;
}
body.kv-redesign .kvx-why__copy h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-dark, #1a2e28);
  text-wrap: balance;
}
body.kv-redesign .kvx-why__copy p {
  margin: .4rem 0 0;
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.5;
}
body.kv-redesign .kvx-why__cta-wrap {
  margin: 1.75rem 0 0;
  text-align: center;
}
body.kv-redesign .kvx-why__cta {
  display: inline-flex;
}

@media (max-width: 900px) {
  body.kv-redesign .kvx-why__grid {
    grid-template-columns: 1fr;
  }
  body.kv-redesign .kvx-why__item,
  body.kv-redesign .kvx-why__item:nth-child(4),
  body.kv-redesign .kvx-why__item:nth-child(5) {
    grid-column: span 1;
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.kv-redesign .kvx-why__item {
    transition: none;
  }
}

/* --- 10. TEACHERS — xem kv-teacher-swing.css --- */

/* --- 11. TESTIMONIALS --- */
.kvx-tm {
  padding: clamp(1.45rem, 2vw, 1.9rem);
  display: flex;
  flex-direction: column;
  border-color: rgba(0, 122, 73, .12);
  box-shadow: 0 18px 48px rgba(0, 89, 55, .08);
  min-height: 360px;
}
.kvx-tm__quote { font-size: 2.9rem; line-height: 1; color: rgba(0, 122, 73, .18); font-weight: 900; }
.kvx-tm p { color: var(--text-dark); font-size: clamp(.94rem, 1.1vw, 1.02rem); line-height: 1.78; margin-top: .35rem; flex: 1; }
.kvx-tm__top { display: flex; align-items: center; gap: .9rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.kvx-tm__top img {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 20px;
  object-fit: cover;
  object-position: center;
  background: linear-gradient(135deg, #effaf4, #d7f3e5);
  box-shadow: 0 0 0 4px var(--green-light), 0 12px 28px rgba(0, 94, 57, .14);
}
.kvx-tm__top strong { display: block; }
.kvx-tm__top small { display: block; margin-top: .15rem; color: var(--green-primary); font-weight: 800; font-size: .78rem; }

/* --- Testimonials slider (carousel) --- */
.kvx-tm-slider {
  position: relative;
  padding-inline: 3.4rem;
  max-width: 1200px;
  margin-inline: auto;
}
.kvx-tm-viewport {
  overflow: hidden;
  padding: .25rem;
  margin: -.25rem;
}
.kvx-tm-track {
  display: flex;
  gap: var(--gap, 1.35rem);
  transition: transform .82s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}
.kvx-tm-slide {
  flex: 0 0 calc((100% - 2 * var(--gap, 1.35rem)) / 3);
  min-width: 0;
}
.kvx-tm-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: var(--green-primary);
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: background .2s, color .2s, transform .2s;
}
.kvx-tm-nav:hover { background: var(--green-primary); color: #fff; transform: translateY(-50%) scale(1.04); }
.kvx-tm-nav--prev { left: 0; }
.kvx-tm-nav--next { right: 0; }
.kvx-tm-nav[disabled] { opacity: .4; cursor: default; }
.kvx-tm-nav[disabled]:hover { background: #fff; color: var(--green-primary); transform: translateY(-50%); }
.kvx-tm-dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.75rem;
}
.kvx-tm-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 122, 73, .25);
  cursor: pointer;
  transition: width .25s, background .25s;
}
.kvx-tm-dots button.is-active { width: 22px; background: var(--green-primary); }
.kvx-section-cta {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}
.kvx-empty-note {
  padding: 1.25rem;
  text-align: center;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .kvx-tm-slide { flex-basis: calc((100% - var(--gap, 1.35rem)) / 2); }
}
@media (max-width: 767px) {
  .kvx-tm-slider { padding-inline: 0; }
  .kvx-tm { min-height: 330px; }
  .kvx-tm-slide { flex-basis: 100%; }
  .kvx-tm-nav { display: none; }
}

/* --- 12. CONTACT --- */
.kvx-contact { position: relative; color: #fff; overflow: hidden; }
.kvx-contact::before {
  content: "";
  position: absolute;
  inset: 8% 4% auto auto;
  width: min(520px, 42vw);
  height: min(520px, 42vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 198, 23, .15), transparent 68%);
  pointer-events: none;
}
.kvx-contact__grid {
  display: grid;
  grid-template-columns: minmax(320px, .92fr) minmax(420px, 1.08fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  max-width: 1160px;
  margin-inline: auto;
}
.kvx-contact__side {
  display: grid;
  gap: 1rem;
  align-content: center;
}
.kvx-contact__media {
  min-height: 260px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 40, 24, .22);
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .08);
}
.kvx-contact__media img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; display: block; }
.kvx-contact__media--empty {
  min-height: 190px;
  display: grid;
  place-items: center;
  padding: 1.4rem;
  text-align: center;
  color: rgba(255,255,255,.78);
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.12), transparent 38%),
    rgba(255,255,255,.07);
}
.kvx-contact__media--empty span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-inline: auto;
  border-radius: 16px;
  background: rgba(255,255,255,.1);
  color: var(--yellow);
  font-size: 1.55rem;
}
.kvx-contact__media--empty p {
  max-width: 280px;
  margin: .8rem auto 0;
  line-height: 1.55;
  font-weight: 700;
}
.kvx-contact__card {
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.17);
  border-radius: 26px; padding: clamp(1.25rem, 2vw, 1.7rem); backdrop-filter: blur(6px);
  box-shadow: 0 18px 52px rgba(0, 44, 27, .16);
}
.kvx-contact__card h3 { color: #fff; font-size: 1.18rem; }
.kvx-contact__list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .9rem; }
.kvx-contact__list li { display: flex; gap: .8rem; align-items: flex-start; color: rgba(255,255,255,.9); font-size: 1rem; line-height: 1.45; }
.kvx-contact__list i { color: var(--yellow); font-size: 1.2rem; margin-top: .1rem; }
.kvx-contact__empty { padding: 1rem; text-align: center; color: rgba(255,255,255,.72); }
.kvx-form {
  background: #fff; color: var(--text-dark); border-radius: var(--radius-card);
  padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: 0 30px 80px rgba(0, 40, 24, .22);
  align-self: center;
}
.kvx-form h3 { font-size: 1.35rem; }
.kvx-form__sub { color: var(--text-muted); font-size: .96rem; margin-top: .45rem; line-height: 1.55; }
.kvx-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-top: 1.25rem; }
.kvx-form__full { grid-column: 1 / -1; }

/* --- 13. FOOTER — lưới gọn; style chi tiết ở webpublic-footer.css --- */
body.kv-redesign .kv-footer {
  color: rgba(255, 255, 255, .82);
  padding-block: 0;
  margin-top: clamp(2rem, 4vw, 3rem);
}
body.kv-redesign .kv-footer__bottom {
  background: var(--ft-bg-deep, #033822);
  border-top: 1px solid rgba(255, 255, 255, .1);
}
body.kv-redesign .kv-footer__copy {
  margin: 0;
  padding: 0;
  border-top: 0;
}

/* Reveal nhẹ nhàng (thay cho gamer-scroll).
   Progressive enhancement: chỉ ẩn khi JS đã bật (body.kv-reveal-on).
   Nếu JS lỗi/không chạy, nội dung vẫn hiển thị đầy đủ — không bao giờ trắng trang. */
body.kv-reveal-on .kvx-reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
body.kv-reveal-on .kvx-reveal.is-in { opacity: 1; transform: none; }
.kvx-reveal.is-in { opacity: 1; transform: none; }
body.kv-redesign .kvx-section--dark .kvx-reveal {
  color: #fff;
}
body.kv-redesign .kvx-section--dark .kvx-reveal.is-in,
body.kv-redesign .kvx-section--dark .kvx-reveal:not(.is-in) {
  opacity: 1;
}
body.kv-redesign .kvx-section--dark .kvx-title,
body.kv-redesign .kvx-section--dark .kvx-commit h3 {
  color: #fff !important;
}
body.kv-redesign .kvx-section--dark .kvx-commit p {
  color: rgba(255,255,255,.82) !important;
}
body.kv-redesign .kvx-contact.kvx-section--dark {
  background: var(--green-dark) !important;
  color: #fff !important;
}
body.kv-redesign .kvx-contact.kvx-section--dark .kvx-contact__grid,
body.kv-redesign .kvx-contact.kvx-section--dark .kvx-head {
  opacity: 1 !important;
  transform: none !important;
}
body.kv-redesign .kvx-contact.kvx-section--dark .kvx-contact__list li {
  color: rgba(255,255,255,.92) !important;
}
body.kv-redesign .kvx-contact.kvx-section--dark .kvx-form,
body.kv-redesign .kvx-contact.kvx-section--dark .kvx-card {
  color: var(--text-dark);
}

/* ============ 6. RESPONSIVE ============ */
@media (max-width: 1024px) {
  .kvx-hero__grid {
    grid-template-columns: 1fr;
    padding-inline: clamp(1rem, 4vw, 2rem);
  }
  .kvx-hero__content { max-width: none; }
  .kvx-hero__media { order: -1; }
  .kvx-hero__media > img,
  .kvx-hero__media > video,
  .kvx-hero-slider,
  .kvx-hero-slide img,
  .kvx-hero-slide video { min-height: 280px; border-radius: 20px; }
  .kvx-contact__grid { grid-template-columns: 1fr 1fr; }
  .kvx-contact__media { grid-column: 1 / -1; }
}
@media (max-width: 880px) {
  .kvx-stats__grid { grid-template-columns: repeat(2, 1fr); }
  .kvx-stat:nth-child(3) { border-left: 0; }
  .kvx-stat:nth-child(n+3) { border-top: 1px solid var(--border); }
  .kvx-grid--4, .kvx-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kvx-commit__grid { grid-template-columns: repeat(2, 1fr); }
  .kvx-env, .kvx-why { grid-template-columns: 1fr; }
  /* Process → vertical timeline */
  .kvx-proc { grid-template-columns: 1fr; gap: 0; }
  .kvx-proc::before { top: 0; bottom: 0; left: 31px; right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--border) 0 8px, transparent 8px 16px); }
  .kvx-step { display: grid; grid-template-columns: auto 1fr; gap: 1rem; text-align: left; padding: 0 0 2rem; }
  .kvx-step__num { margin: 0; }
}
@media (max-width: 560px) {
  .kvx-stats { margin-top: 0; }
  .kvx-stats__grid { grid-template-columns: 1fr; }
  .kvx-stat { border-left: 0 !important; }
  .kvx-stat + .kvx-stat { border-top: 1px solid var(--border); }
  .kvx-grid--4, .kvx-grid--3, .kvx-grid--2,
  .kvx-commit__grid, .kvx-contact__grid { grid-template-columns: minmax(0, 1fr); }
  .kvx-form__row { grid-template-columns: 1fr; }
  body.kv-redesign .kvx-hero__actions .kvx-btn { width: 100%; }
}

/* Nhịp trang chủ gọn hơn: tránh khoảng trắng lớn giữa các block liên tiếp */
body.kv-redesign .kvx-stats + .kvx-section {
  padding-top: clamp(2.25rem, 4vw, 3.5rem);
}
body.kv-redesign .kvx-section:has(.kvx-course) {
  padding-bottom: clamp(3rem, 5vw, 4.25rem);
}
body.kv-redesign .kvx-section:has(.kvx-course) + .kvx-section {
  padding-top: clamp(2.25rem, 4vw, 3.75rem);
}

/* Nút sửa block trực quan */
.kvx-block-editable {
  position: relative !important;
}
.kvx-block-editable:hover {
  outline: 2px dashed var(--green-primary, #006B3F) !important;
  outline-offset: -2px;
}
.kvx-block-editor-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 9999;
  background: #006B3F !important;
  color: #fff !important;
  font-family: var(--font-sans), sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: background 0.2s, transform 0.2s;
  pointer-events: auto !important;
}
.kvx-block-editor-tag:hover {
  background: #064e3b !important;
  transform: scale(1.05);
}
.kvx-block-editor-tag.tag-left {
  right: auto;
  left: 10px;
}

/* Tôn trọng người dùng giảm chuyển động */
@media (prefers-reduced-motion: reduce) {
  body.kv-redesign * { animation: none !important; transition: none !important; }
  .kvx-reveal { opacity: 1; transform: none; }
}

/* ============ 7. MOBILE (≤ 767px) — trang chủ kv-redesign ============ */
@media (max-width: 767px) {
  html:has(body.kv-redesign),
  body.kv-redesign {
    max-width: 100%;
    overflow-x: clip;
  }

  /* Header trắng / kính như desktop — không nền xanh trên mobile */
  body.kv-redesign .kv-site-header {
    background: rgba(255, 255, 255, .92) !important;
    color: var(--text-dark, #102A24) !important;
    backdrop-filter: saturate(180%) blur(14px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(14px) !important;
    border-bottom: 1px solid var(--border, #DDEEE7) !important;
    box-shadow: 0 2px 16px -8px rgba(16, 42, 36, .18) !important;
    padding-top: env(safe-area-inset-top, 0);
  }
  body.kv-redesign .kv-site-header .kv-header-inner {
    min-height: 58px;
    padding: .45rem 3.75rem .45rem clamp(.85rem, 4vw, 1.25rem) !important;
    align-items: center;
  }
  body.kv-redesign .kv-header-logo img {
    max-height: 46px;
    width: auto;
    object-fit: contain;
  }

  /* Banner full-width, cover — không lộ nền xanh */
  body.kv-redesign .kvx-hero.kvx-hero--media { background: #fff; }
  body.kv-redesign .kvx-hero--media .kvx-hero-banner,
  body.kv-redesign .kvx-hero--media .kvx-hero-slider { width: 100%; }
  body.kv-redesign .kvx-hero--media:not(.kvx-hero--banner-only) .kvx-hero-slider { background: transparent !important; min-height: clamp(220px, 56vw, 340px); }
  body.kv-redesign .kvx-hero--media:not(.kvx-hero--banner-only) .kvx-hero-slide img,
  body.kv-redesign .kvx-hero--media:not(.kvx-hero--banner-only) .kvx-hero-slide video,
  body.kv-redesign .kvx-hero--media:not(.kvx-hero--banner-only) .kvx-hero-banner__media {
    width: 100%;
    max-width: 100%;
    min-height: clamp(220px, 56vw, 340px);
    max-height: min(74vw, 440px);
    border-radius: 0 !important;
    object-fit: cover;
    object-position: center top;
  }

  body.kv-redesign .kvx-hero--banner-only .kvx-hero-slider,
  body.kv-redesign .kvx-hero--banner-only .kvx-hero-slide,
  body.kv-redesign .kvx-hero--banner-only .kvx-hero-slide__media,
  body.kv-redesign .kvx-hero--banner-only .kvx-hero-banner__media {
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    object-fit: contain !important;
  }

  /* Stats mobile: KHÔNG đè banner — xếp dưới, lưới 2×2 gọn */
  body.kv-redesign .kvx-stats,
  body.kv-redesign .kvx-stats--bridge,
  body.kv-redesign .kvx-hero--banner-only ~ .kvx-stats--bridge {
    margin-top: .85rem !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    z-index: 5;
    pointer-events: auto;
  }
  body.kv-redesign .kvx-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    border-radius: 16px;
    margin-inline: 0;
    width: 100%;
  }
  body.kv-redesign .kvx-stats--bridge + .kvx-parent-guide,
  body.kv-redesign .kvx-stats--bridge + #parent-guide,
  body.kv-redesign .kvx-stats--bridge + .kvx-parent-guide--compact {
    padding-top: 1.75rem !important;
  }
  body.kv-redesign .kvx-stat {
    padding: .85rem .9rem;
    border-left: 0 !important;
    gap: .65rem;
    align-items: flex-start;
  }
  body.kv-redesign .kvx-stat + .kvx-stat { border-left: 0 !important; }
  body.kv-redesign .kvx-stat:nth-child(2n) { border-left: 1px solid var(--border) !important; }
  body.kv-redesign .kvx-stat:nth-child(n+3) { border-top: 1px solid var(--border); }
  body.kv-redesign .kvx-stat__val { font-size: 1.28rem; }
  body.kv-redesign .kvx-stat__label { font-size: .78rem; margin-top: .2rem; }
  body.kv-redesign .kvx-stat .kvx-ic { width: 38px; height: 38px; font-size: 1.05rem; flex-shrink: 0; }

  /* Section head: căn trái, khoảng cách gọn */
  body.kv-redesign .kvx-head {
    text-align: left;
    margin-inline: 0;
    margin-bottom: 1.25rem;
    max-width: none;
  }
  body.kv-redesign .kvx-kicker {
    font-size: .68rem;
    padding: .35rem .75rem;
    letter-spacing: .12em;
  }
  body.kv-redesign .kvx-title {
    text-align: left;
    font-size: clamp(1.42rem, 6vw, 1.82rem);
    line-height: 1.35;
    margin-top: .5rem;
  }
  body.kv-redesign .kvx-lead {
    text-align: left;
    margin-top: .5rem;
    margin-left: 0;
    margin-right: 0;
    font-size: .92rem;
    line-height: 1.6;
  }

  /* Layout chung */
  body.kv-redesign .kvx-container,
  body.kv-redesign .kvx-grid,
  body.kv-redesign .kvx-card,
  body.kv-redesign .kvx-course,
  body.kv-redesign .kvx-head,
  body.kv-redesign .kvx-course__body {
    min-width: 0;
    max-width: 100%;
  }
  body.kv-redesign .kvx-container { overflow: visible; padding-inline: clamp(.85rem, 4vw, 1.25rem); }
  body.kv-redesign .kvx-grid { width: 100%; grid-template-columns: minmax(0, 1fr) !important; }
  body.kv-redesign .kvx-section { padding-block: 2.25rem; }
  body.kv-redesign .kvx-stats + .kvx-section,
  body.kv-redesign .kvx-section:has(.kvx-course) + .kvx-section { padding-top: 1.75rem; }
  body.kv-redesign .kvx-card--hover:hover { transform: none; box-shadow: var(--shadow-card); }

  /* Khóa học: card ngang, vuốt + dots */
  body.kv-redesign .kvx-course-slider {
    padding: 0;
    margin-top: .85rem;
  }
  body.kv-redesign .kvx-course-slider__nav { display: none; }
  body.kv-redesign .kvx-course-slider__viewport { border-radius: 16px; touch-action: pan-y; }
  body.kv-redesign .kvx-course-slider__slide {
    flex-basis: 100%;
    display: flex;
    flex-direction: row-reverse;
    align-items: stretch;
    min-height: 6.85rem;
    height: auto;
    border-radius: 16px;
    overflow: visible;
  }
  body.kv-redesign .kvx-course-slider__slide:nth-child(3n+1) { background: #eaf6ee; }
  body.kv-redesign .kvx-course-slider__slide:nth-child(3n+2) { background: #fff6e0; }
  body.kv-redesign .kvx-course-slider__slide:nth-child(3n) { background: #f0ecfb; }
  body.kv-redesign .kvx-course__media {
    flex: 0 0 6.5rem;
    width: 6.5rem;
    max-width: 42%;
    aspect-ratio: 4 / 5;
    min-height: 0;
    align-self: center;
    margin: .4rem .45rem .4rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(6, 78, 59, .14);
  }
  body.kv-redesign .kvx-course__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    min-height: 0;
  }
  body.kv-redesign .kvx-course__tag { display: none; }
  body.kv-redesign .kvx-course__body {
    padding: .85rem .95rem;
    justify-content: center;
  }
  body.kv-redesign .kvx-course__body h3 {
    font-size: .98rem;
    line-height: 1.32;
    overflow-wrap: anywhere;
  }
  body.kv-redesign .kvx-course__body p { display: none; }
  body.kv-redesign .kvx-course__link {
    margin-top: .45rem;
    width: 2.15rem;
    height: 2.15rem;
    min-height: 2.15rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 14px rgba(6, 73, 45, .12);
    font-size: 0;
    justify-content: center;
    padding: 0;
    gap: 0;
  }
  body.kv-redesign .kvx-course__link i { font-size: 1.08rem; margin: 0; }

  /* Cam kết / quy trình / giảng viên */
  body.kv-redesign .kvx-commit__grid,
  body.kv-redesign .kvx-contact__grid { grid-template-columns: minmax(0, 1fr) !important; }
  body.kv-redesign .kvx-contact__media { max-height: 220px; overflow: hidden; border-radius: 14px; }
  body.kv-redesign .kvx-env,
  body.kv-redesign .kvx-why { grid-template-columns: 1fr !important; }
  body.kv-redesign .kvx-proc::before { left: 27px; }
  body.kv-redesign .kvx-step { padding-bottom: 1.5rem; }

  /* Giảng viên mobile — xem kv-teacher-swing.css */

  /* Testimonials */
  body.kv-redesign .kvx-tm { padding: 1.15rem; }
  body.kv-redesign .kvx-tm-viewport { touch-action: pan-y; }

  /* Form & CTA */
  body.kv-redesign .kvx-form__row { grid-template-columns: 1fr; }
  body.kv-redesign .kvx-btn { min-height: 44px; }
  body.kv-redesign .kvx-btn--block { width: 100%; }
  body.kv-redesign.kvx-has-sticky-cta { padding-bottom: 0; }

  /* Nút edit admin — không che nội dung */
  body.kv-redesign .kvx-block-editor-tag {
    top: 6px;
    right: 6px;
    font-size: 10px;
    padding: 4px 8px;
    max-width: calc(100% - 12px);
  }
  body.kv-redesign .kvx-block-editor-tag span { display: none; }

  /* Hero chips (nếu bật lại layout text) */
  body.kv-redesign .kvx-hero__chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: .55rem;
    margin-top: 1.25rem;
    padding-bottom: .35rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  body.kv-redesign .kvx-hero__chips::-webkit-scrollbar { display: none; }
  body.kv-redesign .kvx-hero__chip { flex: 0 0 auto; padding: .5rem .85rem; font-size: .82rem; }
}

/* ============ FORM FIELD GROUP (label + input) ============ */
body.kv-redesign .kvx-field-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
body.kv-redesign .kvx-field-group label {
  font-size: .82rem;
  font-weight: 600;
  color: #fff;
}
body.kv-redesign .kvx-contact:not(.kvx-section--dark) .kvx-field-group label {
  color: var(--text-dark);
}
body.kv-redesign .kvx-req { color: var(--yellow); }

/* ============ HERO FALLBACK (khi chưa có banner) ============ */
body.kv-redesign .kvx-hero--fallback {
  background:
    radial-gradient(90% 80% at 85% 0%, rgba(16,150,105,.28) 0%, transparent 55%),
    linear-gradient(135deg, #04351f 0%, #006B3F 100%);
  color: #fff;
  min-height: min(70vh, 560px);
  display: flex;
  align-items: center;
}
body.kv-redesign .kvx-hero-fallback__inner {
  max-width: 760px;
  text-align: center;
  padding-block: clamp(3rem, 8vw, 5.5rem);
  margin-inline: auto;
}
body.kv-redesign .kvx-hero-fallback__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.5px;
  margin: 0 0 1rem;
  color: #fff;
}
body.kv-redesign .kvx-hero-fallback__sub {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.6;
  color: rgba(255,255,255,.85);
  max-width: 60ch;
  margin: 0 auto 2rem;
}
body.kv-redesign .kvx-hero-fallback__cta {
  display: flex;
  gap: .85rem;
  justify-content: center;
  flex-wrap: wrap;
}
body.kv-redesign .kvx-hero--fallback .kvx-btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
}
body.kv-redesign .kvx-hero--fallback .kvx-btn--ghost:hover {
  background: rgba(255,255,255,.12);
}
@media (max-width: 640px) {
  body.kv-redesign .kvx-hero-fallback__cta { flex-direction: column; }
  body.kv-redesign .kvx-hero-fallback__cta .kvx-btn { width: 100%; justify-content: center; }
}

/* ============ PARENT UX — hero intro, age guide, sticky CTA ============ */
body.kv-redesign .kvx-hl {
  color: var(--kv-yellow, #f5c518);
  font-weight: inherit;
}

body.kv-redesign .kvx-hero--parent {
  background: #fff;
  position: relative;
}

body.kv-redesign .kvx-hero-intro {
  position: relative;
  z-index: 3;
  margin-top: -2.25rem;
  padding-bottom: .5rem;
}

body.kv-redesign .kvx-hero-intro__panel {
  position: relative;
  overflow: visible;
  background: #fff;
  border-radius: 24px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow:
    0 2px 8px rgba(6, 73, 45, .08),
    0 28px 70px -18px rgba(6, 73, 45, .22);
  border: 1px solid rgba(6, 107, 63, .1);
  max-width: 680px;
}

/* Viền nhấn vàng-xanh trên đỉnh panel */
body.kv-redesign .kvx-hero-intro__panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--kv-green, #006B3F) 0%, #0e9f6e 45%, var(--kv-yellow, #f5c518) 100%);
}

/* Quầng sáng trang trí góc phải */
body.kv-redesign .kvx-hero-intro__panel::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 197, 24, .12) 0%, transparent 68%);
  pointer-events: none;
}

body.kv-redesign .kvx-hero-intro__slider {
  position: relative;
}

body.kv-redesign .kvx-hero-intro__track {
  display: grid;
  min-height: 0;
}

body.kv-redesign .kvx-hero-intro__slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease, visibility .5s;
  pointer-events: none;
}

body.kv-redesign .kvx-hero-intro__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

body.kv-redesign .kvx-hero-intro__dots {
  display: flex;
  gap: .45rem;
  justify-content: flex-start;
  margin-top: .9rem;
  padding-top: 0;
}

body.kv-redesign .kvx-hero-intro__dots button {
  width: .55rem;
  height: .55rem;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(0, 107, 63, .22);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, width .2s ease;
}

body.kv-redesign .kvx-hero-intro__dots button.is-active {
  width: 1.35rem;
  background: var(--kv-green, #006B3F);
}

body.kv-redesign .kvx-hero-intro__dots button:hover {
  transform: scale(1.08);
  background: rgba(0, 107, 63, .45);
}

body.kv-redesign .kvx-hero-intro__kicker {
  margin-bottom: .65rem;
}

body.kv-redesign .kvx-hero-intro__title {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.6px;
  color: var(--kv-green-dark, #064E3B);
  margin: 0 0 .85rem;
  text-wrap: balance;
}

/* Highlight kiểu bút dạ: chữ đậm + vệt vàng phía dưới */
body.kv-redesign .kvx-hero-intro__title .kvx-hl {
  position: relative;
  z-index: 0;
  color: inherit;
  white-space: nowrap;
}

body.kv-redesign .kvx-hero-intro__title .kvx-hl::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -.1em;
  right: -.1em;
  bottom: .04em;
  height: .38em;
  border-radius: .19em;
  background: linear-gradient(90deg, rgba(245, 197, 24, .85) 0%, rgba(245, 197, 24, .5) 100%);
  transform: skewX(-8deg);
}

body.kv-redesign .kvx-hero-intro__sub {
  font-size: clamp(.94rem, 2vw, 1.06rem);
  line-height: 1.7;
  color: #4b5d55;
  margin: 0 0 1.4rem;
  max-width: 52ch;
}

body.kv-redesign .kvx-hero-intro__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem;
  margin-bottom: .35rem;
}

body.kv-redesign .kvx-hero-intro__cta .kvx-btn {
  border-radius: 999px;
  font-weight: 800;
  font-size: .95rem;
  padding: .78rem 1.3rem;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

body.kv-redesign .kvx-hero-intro__cta .kvx-btn--accent {
  box-shadow: 0 10px 26px -8px rgba(245, 197, 24, .55);
}

body.kv-redesign .kvx-hero-intro__cta .kvx-btn--accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -8px rgba(245, 197, 24, .65);
}

body.kv-redesign .kvx-hero-intro__cta .kvx-btn--ghost {
  background: #fff;
  color: var(--kv-green, #006B3F);
  border: 1.5px solid rgba(0, 107, 63, .22);
}

body.kv-redesign .kvx-hero-intro__cta .kvx-btn--ghost:hover {
  background: rgba(0, 107, 63, .05);
  border-color: var(--kv-green, #006B3F);
  transform: translateY(-2px);
}

body.kv-redesign .kvx-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  font-size: .82rem;
  font-weight: 600;
  color: var(--kv-green-dark, #064E3B);
}

body.kv-redesign .kvx-hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

body.kv-redesign .kvx-hero-trust--light {
  justify-content: center;
  color: rgba(255, 255, 255, .92);
  margin-top: 1.5rem;
}

/* --- Eyebrow: nhãn thương hiệu tinh gọn trên tiêu đề --- */
body.kv-redesign .kvx-hero-intro__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .42rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 107, 63, .09) 0%, rgba(0, 107, 63, .04) 100%);
  border: 1px solid rgba(0, 107, 63, .15);
  color: var(--kv-green-dark, #064E3B);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1.15rem;
}

body.kv-redesign .kvx-hero-intro__eyebrow i {
  color: var(--kv-yellow, #f5c518);
  font-size: .95rem;
  line-height: 1;
}

/* --- Feature strip: 4 điểm mạnh gọn dưới CTA, không đóng khung --- */
body.kv-redesign .kvx-hero-intro__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem .75rem;
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(6, 107, 63, .1);
}

body.kv-redesign .kvx-hero-feature {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-width: 0;
}

body.kv-redesign .kvx-hero-feature__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: linear-gradient(150deg, rgba(0, 107, 63, .12) 0%, rgba(0, 107, 63, .05) 100%);
  color: var(--kv-green, #006B3F);
  font-size: 1.08rem;
}

body.kv-redesign .kvx-hero-feature__text {
  display: flex;
  flex-direction: column;
  gap: .12rem;
  min-width: 0;
  line-height: 1.12;
}

body.kv-redesign .kvx-hero-feature__strong {
  font-size: .93rem;
  font-weight: 800;
  color: var(--kv-green-dark, #064E3B);
}

body.kv-redesign .kvx-hero-feature__label {
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-muted, #64748b);
  line-height: 1.25;
}

/* ============ HERO BOOK — sách mở 2 trang, lật trang 3D ============ */
body.kv-redesign .kvx-hero-book {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 8px minmax(0, .85fr);
  padding: 0;
  max-width: 760px;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 2px 8px rgba(6, 73, 45, .08),
    0 28px 70px -18px rgba(6, 73, 45, .22);
  border: 1px solid rgba(6, 107, 63, .1);
}

body.kv-redesign .kvx-hero-book::before {
  display: none;
}

body.kv-redesign .kvx-hero-book::after {
  display: none;
}

body.kv-redesign .kvx-hero-book__page {
  position: relative;
  min-width: 0;
  padding: clamp(1.35rem, 3vw, 2rem);
}

/* Panel khi là sách: bỏ padding/bóng trùng */
body.kv-redesign .kvx-hero-intro__panel.kvx-hero-book {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  max-width: 760px;
}

body.kv-redesign .kvx-hero-book__page--left {
  background: #fff;
  border-radius: 0;
  z-index: 2;
  perspective: 1400px;
  transform-style: preserve-3d;
}

body.kv-redesign .kvx-hero-book__page--right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .85rem;
  background: linear-gradient(180deg, #f6faf7 0%, #eef6f1 100%);
  border-left: 1px solid rgba(6, 107, 63, .08);
}

body.kv-redesign .kvx-hero-book__spine {
  background: linear-gradient(
    90deg,
    rgba(6, 73, 45, .04) 0%,
    rgba(6, 73, 45, .18) 50%,
    rgba(6, 73, 45, .04) 100%
  );
  box-shadow: inset 0 0 12px rgba(6, 73, 45, .12);
}

body.kv-redesign .kvx-hero-book__page-title {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--kv-green, #006B3F);
  margin-bottom: .25rem;
}

body.kv-redesign .kvx-hero-book__page--right .kvx-hero-intro__features {
  grid-template-columns: 1fr;
  gap: .85rem;
  margin: 0;
  padding: 0;
  border: 0;
}

body.kv-redesign .kvx-hero-book__corner {
  display: none;
}

/* Stage lật trang — cố định chiều cao, không cắt 3D */
body.kv-redesign .kvx-hero-book .kvx-hero-intro__slider {
  overflow: visible;
}

body.kv-redesign .kvx-hero-book .kvx-hero-intro__track {
  position: relative;
  perspective: 1400px;
  transform-style: preserve-3d;
  min-height: clamp(280px, 32vw, 340px);
}

body.kv-redesign .kvx-hero-book .kvx-hero-intro__slide {
  grid-area: 1 / 1;
  transform-origin: 100% 50%;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: rotateY(88deg);
  z-index: 1;
}

body.kv-redesign .kvx-hero-book .kvx-hero-intro__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 3;
  transform: rotateY(0deg);
}

body.kv-redesign .kvx-hero-book .kvx-hero-intro__slide.is-entering {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  z-index: 2;
  animation: kvx-page-flip-in .64s cubic-bezier(.25, .85, .35, 1) both;
}

body.kv-redesign .kvx-hero-book .kvx-hero-intro__slide.is-leaving {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  z-index: 5;
  animation: kvx-page-flip-out .56s cubic-bezier(.55, .08, .68, .42) both;
}

@keyframes kvx-page-flip-out {
  0% {
    transform: rotateY(0deg);
    opacity: 1;
    box-shadow: -8px 0 24px rgba(6, 73, 45, .12);
  }
  100% {
    transform: rotateY(-82deg);
    opacity: 0;
    box-shadow: -24px 0 36px rgba(6, 73, 45, .18);
  }
}

@keyframes kvx-page-flip-in {
  0% {
    transform: rotateY(82deg);
    opacity: 0;
    box-shadow: 8px 0 24px rgba(6, 73, 45, .1);
  }
  100% {
    transform: rotateY(0deg);
    opacity: 1;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.kv-redesign .kvx-hero-book .kvx-hero-intro__slide.is-entering,
  body.kv-redesign .kvx-hero-book .kvx-hero-intro__slide.is-leaving {
    animation: none;
    transform: none;
  }
}

@media (max-width: 767px) {
  body.kv-redesign .kvx-hero-book {
    grid-template-columns: 1fr;
    border-radius: 20px 20px 0 0;
  }
  body.kv-redesign .kvx-hero-book__spine {
    display: none;
  }
  body.kv-redesign .kvx-hero-book__page--left {
    padding-bottom: 1rem;
  }
  body.kv-redesign .kvx-hero-book__page--right {
    border-left: 0;
    border-top: 1px solid rgba(6, 107, 63, .1);
    padding-top: 1rem;
  }
  body.kv-redesign .kvx-hero-book__page--right .kvx-hero-intro__features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.kv-redesign .kvx-hero-book .kvx-hero-intro__track {
    min-height: 300px;
  }
}

@media (min-width: 992px) {
  body.kv-redesign .kvx-hero--parent.kvx-hero--media:not(.kvx-hero--banner-only) {
    position: relative;
    min-height: clamp(500px, 46vw, 640px);
    overflow: hidden;
  }

  body.kv-redesign .kvx-hero--parent:not(.kvx-hero--banner-only) .kvx-hero-banner {
    position: absolute;
    inset: 0;
    z-index: 0;
    height: 100%;
  }

  body.kv-redesign .kvx-hero--parent:not(.kvx-hero--banner-only) .kvx-hero-slider {
    min-height: 100%;
    height: 100%;
  }

  body.kv-redesign .kvx-hero--parent:not(.kvx-hero--banner-only) .kvx-hero-slide {
    min-height: 100%;
  }

  body.kv-redesign .kvx-hero--banner-only.kvx-hero--parent.kvx-hero--media {
    position: relative;
    min-height: 0;
    overflow: visible;
  }

  body.kv-redesign .kvx-hero--banner-only .kvx-hero-banner {
    position: relative;
    inset: auto;
    z-index: 1;
    height: auto;
  }

  body.kv-redesign .kvx-hero--banner-only .kvx-hero-slider,
  body.kv-redesign .kvx-hero--banner-only .kvx-hero-slide {
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
  }

  body.kv-redesign .kvx-hero-intro {
    position: relative;
    z-index: 3;
    margin-top: 0;
    padding: clamp(2.5rem, 5vw, 3.75rem) 0;
    min-height: clamp(500px, 46vw, 640px);
    display: flex;
    align-items: center;
    background: linear-gradient(
      90deg,
      rgba(4, 53, 31, .72) 0%,
      rgba(4, 53, 31, .38) 40%,
      transparent 65%
    );
    pointer-events: none;
  }

  body.kv-redesign .kvx-hero-intro .kvx-container {
    width: 100%;
  }

  body.kv-redesign .kvx-hero-intro__panel {
    pointer-events: auto;
    max-width: min(780px, 58vw);
    backdrop-filter: blur(8px);
  }

  body.kv-redesign .kvx-hero-intro__panel.kvx-reveal {
    opacity: 1;
    transform: none;
  }

  body.kv-redesign .kvx-hero--parent .kvx-hero-slider__dots {
    z-index: 4;
    bottom: clamp(1rem, 2.5vw, 1.75rem);
    right: clamp(1rem, 2.5vw, 1.75rem);
  }
}

body.kv-redesign .kvx-section--warm {
  background: linear-gradient(180deg, #fafdf8 0%, #fff 100%) !important;
}

body.kv-redesign .kvx-parent-guide {
  position: relative;
  isolation: isolate;
  padding-block: clamp(2.75rem, 6vw, 4.5rem) !important;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 8% 0%, rgba(16, 185, 129, .14), transparent 55%),
    radial-gradient(ellipse 55% 50% at 96% 100%, rgba(251, 191, 36, .14), transparent 50%),
    linear-gradient(180deg, #f3faf6 0%, #ffffff 48%, #f8fbf9 100%) !important;
}

body.kv-redesign .kvx-parent-guide__bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .4;
  background-image: radial-gradient(rgba(0, 107, 63, .07) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(180deg, #000 10%, transparent 92%);
}

body.kv-redesign .kvx-parent-guide > .kvx-container {
  position: relative;
  z-index: 1;
}

body.kv-redesign .kvx-parent-guide__head {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

body.kv-redesign .kvx-parent-guide__head .kvx-lead {
  margin-top: .65rem;
  margin-inline: auto;
  max-width: 36rem;
}

@media (min-width: 768px) {
  body.kv-redesign .kvx-stats--bridge + .kvx-parent-guide {
    padding-top: clamp(4.25rem, 7vw, 5.75rem) !important;
  }
}

body.kv-redesign .kvx-parent-guide__hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .4rem .55rem;
  margin: 1.65rem 0 0;
  padding: .85rem 1.15rem;
  text-align: center;
  font-size: .92rem;
  font-weight: 600;
  color: #3d5c4c;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(0, 107, 63, .12);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

body.kv-redesign .kvx-parent-guide__hint a {
  color: var(--kv-green, #006B3F);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.kv-redesign .kvx-parent-guide__hint-ic {
  display: inline-flex;
  color: var(--kv-green, #006B3F);
  font-size: 1.1rem;
}

body.kv-redesign .kvx-parent-age-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
  align-items: stretch;
}

body.kv-redesign .kvx-parent-age-card {
  --pg-accent: #059669;
  --pg-soft: #ecfdf5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: .35rem;
  padding: 1.25rem 1.15rem 1.2rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(6, 107, 63, .12);
  border-radius: 20px;
  background: linear-gradient(165deg, #fff 0%, var(--pg-soft) 100%);
  position: relative;
  overflow: hidden;
  min-height: 100%;
  box-shadow: 0 10px 28px rgba(6, 73, 45, .06);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease, border-color .25s ease;
  animation: kvx-pg-rise .7s ease both;
  animation-delay: calc(var(--pg-i, 0) * 80ms);
}

@keyframes kvx-pg-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

body.kv-redesign .kvx-parent-age-card:hover,
body.kv-redesign .kvx-parent-age-card:focus-visible {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--pg-accent) 45%, transparent);
  box-shadow: 0 18px 40px rgba(6, 73, 45, .14);
  outline: none;
}

body.kv-redesign .kvx-parent-age-card--mam { --pg-accent: #10B981; --pg-soft: #ecfdf5; }
body.kv-redesign .kvx-parent-age-card--kids { --pg-accent: #F59E0B; --pg-soft: #fffbeb; }
body.kv-redesign .kvx-parent-age-card--teen { --pg-accent: #059669; --pg-soft: #f0fdf4; }
body.kv-redesign .kvx-parent-age-card--ielts { --pg-accent: #047857; --pg-soft: #ecfdf5; }

body.kv-redesign .kvx-parent-age-card--featured {
  border-color: rgba(245, 158, 11, .45);
  box-shadow: 0 16px 40px rgba(180, 120, 20, .14);
  transform: translateY(-4px);
}

body.kv-redesign .kvx-parent-age-card--featured:hover,
body.kv-redesign .kvx-parent-age-card--featured:focus-visible {
  transform: translateY(-10px);
}

body.kv-redesign .kvx-parent-age-card__badge {
  position: absolute;
  top: .7rem;
  right: .7rem;
  z-index: 2;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .28rem .55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #FBBF24, #F59E0B);
  color: #422006;
  box-shadow: 0 4px 12px rgba(245, 158, 11, .35);
}

body.kv-redesign .kvx-parent-age-card__visual {
  position: relative;
  width: 3.35rem;
  height: 3.35rem;
  margin-bottom: .45rem;
  display: grid;
  place-items: center;
}

body.kv-redesign .kvx-parent-age-card__orb {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--pg-accent) 18%, #fff);
  border: 1px solid color-mix(in srgb, var(--pg-accent) 28%, transparent);
  transition: transform .35s ease;
}

body.kv-redesign .kvx-parent-age-card:hover .kvx-parent-age-card__orb {
  transform: scale(1.08);
}

body.kv-redesign .kvx-parent-age-card__icon {
  position: relative;
  z-index: 1;
  font-size: 1.55rem;
  color: var(--pg-accent);
  line-height: 1;
  margin-top: 0;
}

body.kv-redesign .kvx-parent-age-card__range {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pg-accent);
}

body.kv-redesign .kvx-parent-age-card h3 {
  font-size: 1.12rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-dark, #0f2920);
  letter-spacing: -.01em;
}

body.kv-redesign .kvx-parent-age-card__desc {
  display: block !important;
  margin: .15rem 0 .55rem;
  font-size: .84rem;
  line-height: 1.45;
  font-weight: 500;
  color: #4b6357;
}

body.kv-redesign .kvx-parent-age-card__go {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .82rem;
  font-weight: 800;
  color: var(--kv-green, #006B3F);
}

body.kv-redesign .kvx-parent-age-card__go i {
  transition: transform .25s ease;
}

body.kv-redesign .kvx-parent-age-card:hover .kvx-parent-age-card__go i {
  transform: translateX(4px);
}

body.kv-redesign .kvx-parent-age-card__meta,
body.kv-redesign .kvx-parent-age-card__link {
  display: none;
}

body.kv-redesign .kvx-parent-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .65rem 1.25rem;
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: rgba(0, 107, 63, .05);
  font-size: .86rem;
  font-weight: 600;
  color: var(--kv-green-dark, #064E3B);
}

body.kv-redesign .kvx-parent-trust li {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

body.kv-redesign .kvx-course__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .75rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: .35rem;
}

body.kv-redesign .kvx-course__meta span {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

body.kv-redesign .kvx-course__ribbon {
  position: absolute;
  top: .65rem;
  right: -.35rem;
  background: var(--kv-yellow, #f5c518);
  color: #1a1a1a;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .28rem .65rem .28rem .85rem;
  border-radius: 4px 0 0 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

body.kv-redesign .kvx-course__tag--age {
  background: rgba(255, 255, 255, .95);
  color: var(--kv-green-dark, #064E3B);
  font-weight: 700;
}

@media (max-width: 991px) {
  body.kv-redesign .kvx-parent-age-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body.kv-redesign .kvx-hero-intro {
    margin-top: -1.75rem;
    padding-inline: 0;
  }
  body.kv-redesign .kvx-hero-intro__panel {
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 32px rgba(6, 73, 45, .08);
  }
  body.kv-redesign .kvx-hero-intro__cta {
    flex-direction: column;
  }
  body.kv-redesign .kvx-hero-intro__cta .kvx-btn {
    width: 100%;
    justify-content: center;
  }
  body.kv-redesign .kvx-parent-age-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
  }
  body.kv-redesign .kvx-parent-age-card {
    padding: 1.05rem .95rem 1rem;
  }
  body.kv-redesign .kvx-parent-age-card--featured {
    transform: none;
  }
  body.kv-redesign .kvx-parent-guide__hint {
    border-radius: 16px;
    font-size: .85rem;
  }
  body.kv-redesign .kvx-parent-trust {
    flex-direction: column;
    align-items: flex-start;
  }
  body.kv-redesign .kvx-course__tag--age,
  body.kv-redesign .kvx-course__tag--loai {
    display: inline-flex !important;
    font-size: .68rem;
    padding: .25rem .5rem;
  }
  body.kv-redesign .kvx-course__meta {
    display: none;
  }
}

/* ============ BANNER ONLY — hiện đủ ảnh, không crop ============ */
body.kv-redesign .kvx-hero--banner-only {
  background: #fff;
  min-height: 0 !important;
  overflow: visible !important;
}

body.kv-redesign .kvx-hero--banner-only .kvx-hero-banner {
  position: relative;
  width: 100%;
  height: auto !important;
  overflow: visible !important;
  background: #fff !important;
  background-image: none !important;
  line-height: 0;
}

body.kv-redesign .kvx-hero--banner-only .kvx-hero-slider,
body.kv-redesign .kvx-hero--banner-only .kvx-hero-slide {
  display: grid !important;
  width: 100%;
  min-height: 0 !important;
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
  background: transparent !important;
  background-image: none !important;
}

body.kv-redesign .kvx-hero--banner-only .kvx-hero-slide {
  grid-area: 1 / 1;
  position: relative !important;
  inset: auto !important;
}

body.kv-redesign .kvx-hero--banner-only .kvx-hero-slide::before {
  content: none !important;
  display: none !important;
}

body.kv-redesign .kvx-hero--banner-only .kvx-hero-slide__media,
body.kv-redesign .kvx-hero--banner-only .kvx-hero-banner__media,
body.kv-redesign .kvx-hero--banner-only .kvx-hero-slide img,
body.kv-redesign .kvx-hero--banner-only .kvx-hero-slide video {
  position: static !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  border: 0;
  border-radius: 0 !important;
  clip: auto !important;
  clip-path: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent;
}

/* Slide không active vẫn chiếm chỗ 0 về mặt hiển thị nhưng giữ layout theo ảnh active */
body.kv-redesign .kvx-hero--banner-only .kvx-hero-slide:not(.is-active) .kvx-hero-slide__media {
  visibility: hidden;
}

@media (min-width: 992px) {
  body.kv-redesign .kvx-hero--banner-only.kvx-hero--media,
  body.kv-redesign .kvx-hero--banner-only.kvx-hero--parent {
    min-height: 0 !important;
    overflow: visible !important;
  }

  body.kv-redesign .kvx-hero--banner-only .kvx-hero-slider,
  body.kv-redesign .kvx-hero--banner-only .kvx-hero-slide {
    min-height: 0 !important;
    height: auto !important;
  }

  body.kv-redesign .kvx-hero--banner-only .kvx-hero-slider__dots {
    position: absolute;
    z-index: 2;
    bottom: 1rem;
    right: 1rem;
  }
}

/* Stats bridge desktop: đè banner — mobile đã tắt overlap ở media ≤767 */
@media (min-width: 768px) {
  body.kv-redesign .kvx-hero--banner-only ~ .kvx-stats--bridge {
    margin-top: clamp(-3.75rem, -5.5vw, -2.85rem) !important;
  }
}

/* ============ Khóa học nổi bật trang chủ (3 thẻ) ============ */
body.kv-redesign .kvx-courses-section .kvx-head,
body.kv-redesign .kvx-courses-section .kvx-course-slider,
body.kv-redesign .kvx-courses-section .kvx-course-slider__cta {
  opacity: 1;
  transform: none;
}

body.kv-redesign .kvx-featured-courses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

body.kv-redesign .kvx-featured-course {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  background: var(--surface, #fff);
  border-radius: var(--radius-card, 18px);
  overflow: hidden;
  box-shadow: var(--shadow-card, 0 8px 28px rgba(6, 73, 45, .08));
  border: 1px solid var(--border, #e2ebe6);
}

body.kv-redesign .kvx-featured-course__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--green-light, #ecfdf5);
}

body.kv-redesign .kvx-featured-course__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}

body.kv-redesign .kvx-featured-course:hover .kvx-featured-course__media img {
  transform: scale(1.04);
}

body.kv-redesign .kvx-featured-course__body {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .35rem;
}

body.kv-redesign .kvx-featured-course__tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .72rem;
  font-weight: 700;
  color: var(--green-primary, #059669);
  text-transform: uppercase;
  letter-spacing: .04em;
}

body.kv-redesign .kvx-featured-course__body h3 {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  color: var(--text-dark, #1a2e28);
}

body.kv-redesign .kvx-featured-course__body p {
  margin: 0;
  color: var(--text-muted, #5a6b63);
  font-size: .92rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

body.kv-redesign .kvx-featured-course__link {
  margin-top: .5rem;
  font-weight: 700;
  font-size: .9rem;
  color: var(--green-primary, #059669);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

body.kv-redesign .kvx-featured-courses__more {
  margin-top: 1.75rem;
  text-align: center;
}

body.kv-redesign .kvx-featured-courses__more a {
  font-weight: 700;
  color: var(--green-primary, #059669);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

@media (max-width: 900px) {
  body.kv-redesign .kvx-featured-courses {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }
}
