/* ==========================================================
   Kindy new — style riêng cho trang tieng-anh-mau-giao-new.
   Tiền tố .kn- để không đụng class của Home (hv3-) hay trang
   Mẫu giáo hiện tại (tn-).
   ========================================================== */

:root {
  --kn-cream: #faf5ee;
  --kn-blue: #2576b9;
  --kn-ink: #11284e;
}

/* Hiệu ứng hiện dần khi cuộn tới */
.kn-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}

.kn-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .kn-reveal { transition: none; }
}

/* ── HERO: dùng ảnh thay video của Home ── */
.kn-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* ===================== SECTION 1 — kn-need ===================== */
.kn-need {
  padding: 92px 0 100px;
  background: var(--kn-cream);
}

.kn-need-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

.kn-need-title {
  margin: 0 0 56px;
  font-family: 'Brauer NeueVN', sans-serif;
  font-weight: 700;
  font-size: 44px;
  line-height: 1.35;
  color: #2576B9;
  text-align: center;
}

.kn-need-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 32px;
  align-items: center;
}

/* 4 vòng tròn so le như bản thiết kế */
.kn-need-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: start;
}

.kn-need-item {
  margin: 0;
  text-align: center;
}

.kn-need-item img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto 14px;
}

.kn-need-item p {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: #333;
}

/* So le: item 2 và 4 đẩy xuống cho giống đường cong trong thiết kế */
.kn-need-item:nth-child(2) { transform: translateY(58px); }
.kn-need-item:nth-child(4) { transform: translateY(44px); }

/* Chuyên gia + bóng trích dẫn: xếp cạnh nhau, không chồng lên mặt */
.kn-need-expert {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  align-items: center;
  gap: 4px;
  align-self: end;
}

.kn-need-expert-photo {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  margin: 0;
}

.kn-need-expert-quote {
  width: 100%;
  height: auto;
}

/* ===================== SECTION 2 — kn-skills ===================== */
.kn-skills {
  padding: 92px 0 110px;
  background: var(--kn-cream);
}

.kn-skills-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.kn-skills-title {
  margin: 0 0 64px;
  font-family: 'Brauer NeueVN', sans-serif;
  font-weight: 700;
  font-size: 44px;
  line-height: 1.35;
  color: #2576B9;
  text-align: center;
}

.kn-skills-stage {
  position: relative;
  min-height: 760px;
}

.kn-skill {
  position: absolute;
  /* +20% so với 230px theo yêu cầu */
  width: 276px;
  margin: 0;
  z-index: 2;
}

.kn-skill img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.kn-skill figcaption {
  margin-top: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .02em;
  color: var(--kn-ink);
}

/* Toạ độ lấy từ bản thiết kế thamchieu_2: vòng cung đi lên từ trái sang phải.
   Dùng % của .kn-skills-stage nên tự co theo chiều cao màn hình. */
/* 4 thẻ canh theo TÂM: left:50% rồi translateX(-50% + offset) nên toạ độ
   tính từ giữa sân khấu, đổi chiều rộng thẻ không làm lệch bố cục. */
.kn-skill--thegioi   { left: 50%; top: 38.3%; }
.kn-skill--tiengnoi    { left: 50%; top: calc(18.6% - 100px); }
.kn-skill--bansac { left: 50%; top: calc(18.6% - 100px); }
.kn-skill--benbi   { left: 50%; top: 38.3%; }

/* ---- Khối giữa section 2: vòng cung + ảnh bé + 2 nhãn (element riêng) ----
   Container là grid 1 cột chiếm trọn chiều ngang, để .kn-arc có mốc 100%
   mà tính bán kính; cả 4 element nằm chồng trong cùng 1 ô (grid-area 1/1). */
.kn-skills-center {
  /* Vị trí: vẫn absolute canh giữa sân khấu như trước khi tách element. */
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  max-width: 1240px;
  transform: translateX(-50%);
  z-index: 1;
  /* Bố cục bên trong: 4 element chồng trong cùng 1 ô grid. */
  display: grid;
  grid-template-columns: 100%;
  justify-items: center;
}

/* Vòng cung nền: NỬA HÌNH TRÒN thật.
   Khung tỉ lệ 2:1 + bán kính ngang 50% (nửa chiều rộng) và dọc 100%
   (trọn chiều cao) -> cung tròn đều. Dùng 100% cho cả hai sẽ ra ellipse. */
.kn-arc {
  grid-area: 1 / 1;
  align-self: end;
  width: 100%;
  aspect-ratio: 2 / 1;
  border: 1px solid #e4ded3;
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: linear-gradient(180deg, rgba(255, 252, 245, .9), rgba(250, 245, 238, 0) 70%);
}

/* Ảnh bé nằm trên vòng cung, canh giữa và sát đáy */
.kn-center-kid {
  grid-area: 1 / 1;
  align-self: end;
  width: 40%;
  height: auto;
  /* Sát mép trên level. Tổng: cefr 80px + 18px tách + level 32px + 8px */
  margin-bottom: 138px;
  position: relative;
  z-index: 1;
}

/* 2 nhãn xếp dọc ở đáy, đè lên ảnh như bản thiết kế */
.kn-badge {
  grid-area: 1 / 1;
  align-self: end;
  z-index: 2;
  display: block;
  width: max-content;
  max-width: 86%;
  padding: 6px 26px;
  border-radius: 8px;
  font-family: 'Brauer NeueVN', 'Nunito', sans-serif;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: center;
  white-space: nowrap;
}

.kn-badge--level {
  /* cefr 2 hàng cao ~80px + 18px khoảng tách = 98px */
  margin-bottom: 102px;
  background: #e2a8c4;
  color: #fff;
  /* +20% theo yêu cầu (14/1.9svh/20) */
  font-size: clamp(16.8px, 2.28svh, 24px);
}

/* Nhãn CEFR: 3 dòng xếp dọc, không còn là pill 1 dòng nên bỏ white-space */
/* Khung cam kết: 2 hàng, rộng hơn hẳn khung "TIẾNG ANH MẪU GIÁO".
   max-width nới rộng để dòng 1 nằm trọn 1 hàng, không bị ngắt. */
.kn-badge--cefr {
  /* Tách rời khỏi khung "TIẾNG ANH MẪU GIÁO": chừa khoảng trống rõ ràng
     giữa 2 khung thay vì dán sát nhau. */
  margin-bottom: 4px;
  padding: 14px 30px;
  background: #dbe7f6;
  color: #2576b9;
  white-space: normal;
  max-width: min(640px, 100%);
  line-height: 1.4;
  border-radius: 12px;
}

/* Cả 3 dòng DÙNG CHUNG format: cùng weight 700, cùng màu xanh Apollo.
   Khác duy nhất ở cỡ chữ của dòng cuối (19px theo yêu cầu). */
.kn-cefr-main,
.kn-cefr-sub,
.kn-cefr-tag {
  display: block;
  font-weight: 700;
  color: #2576b9;
  letter-spacing: normal;
  text-transform: none;
}

.kn-cefr-main {
  font-size: clamp(15px, 2svh, 20px);
  text-wrap: balance;
}

.kn-cefr-tag {
  margin-top: 3px;
  font-size: 19px;
}

/* ===================== SECTION — kn-support ===================== */
.kn-support {
  padding: 92px 0 110px;
  background: var(--kn-cream);
}

.kn-support-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.kn-support-title {
  margin: 0 0 56px;
  font-family: 'Brauer NeueVN', sans-serif;
  font-weight: 700;
  font-size: 44px;
  line-height: 1.35;
  color: #2576B9;
  text-align: center;
}

.kn-support-stage {
  position: relative;
  min-height: 760px;
}

.kn-support-center {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 74%;
  max-width: 912px;
  transform: translateX(-50%);
  z-index: 1;
}

.kn-support-center img {
  display: block;
  width: 100%;
  height: auto;
}

/* Pill = icon tròn + nhãn nền màu, bấm mở popup */
.kn-pill {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  z-index: 2;
}

.kn-pill-ico {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #fff;
}

.kn-pill-ico img {
  width: 62%;
  height: auto;
}

.kn-pill-label {
  position: relative;
  padding: 14px 40px 14px 18px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--kn-ink);
}

.kn-pill-arrow {
  position: absolute;
  top: 12px;
  right: 14px;
  font-style: normal;
  font-size: 15px;
  color: var(--kn-blue);
}

.kn-pill:hover .kn-pill-label,
.kn-pill:focus-visible .kn-pill-label {
  filter: brightness(.96);
}

/* Pill mở tại chỗ: phần mô tả bung ra ngay dưới nhãn, không phải hộp thoại.
   Pill nằm absolute nên khi mở cần nâng z-index để đè lên pill khác. */
.kn-pill {
  flex-direction: row;
  align-items: flex-start;
}

.kn-pill-label {
  display: block;
  transition: background-color .2s ease;
}

.kn-pill-detail {
  display: block;
  width: 300px;
  margin-top: 10px;
}

.kn-pill-detail[hidden] { display: none; }

.kn-pill-detail-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(17, 40, 78, .14);
}

.kn-pill.is-open { z-index: 6; }

.kn-pill-arrow { transition: transform .2s ease; }
.kn-pill.is-open .kn-pill-arrow { transform: rotate(135deg); }

/* Nhãn bên phải ảnh (giaovien, giaotrinh) -> mô tả canh phải cho cân */
.kn-pill--giaovien .kn-pill-detail,
.kn-pill--giaotrinh .kn-pill-detail { margin-left: auto; }

/* Màu nền từng nhãn + vị trí quanh vòng cung */
.kn-pill--danhgia   { left: 50%; top: -2%; transform: translateX(-50%); }
.kn-pill--danhgia   .kn-pill-label { background: #e3d9fb; }
.kn-pill--danhgia   .kn-pill-ico { background: #cdbcf7; }

/* Ảnh chính có 2 vòng cung trong suốt hai bên, nên mép ảnh rộng hơn phần
   nhìn thấy. Kéo 2 pill này vào trong cho cân với bé ở giữa. */
.kn-pill--giaovien  { left: 9%;   top: 30%; }
.kn-pill--giaovien  .kn-pill-label { background: #cfe6fb; }
.kn-pill--giaovien  .kn-pill-ico { background: #b4dbfa; }

.kn-pill--ungdung   { right: 9%;  top: 30%; }
.kn-pill--ungdung   .kn-pill-label { background: #d8f0ba; }
.kn-pill--ungdung   .kn-pill-ico { background: #c3e79a; }

.kn-pill--giaotrinh { left: 0;    bottom: 14%; }
.kn-pill--giaotrinh .kn-pill-label { background: #fde3b0; }
.kn-pill--giaotrinh .kn-pill-ico { background: #fbd089; }

.kn-pill--dongluc   { right: 0;   bottom: 14%; }
.kn-pill--dongluc   .kn-pill-label { background: #fbd0dc; }
.kn-pill--dongluc   .kn-pill-ico { background: #f8b6c9; }

/* ===================== SECTION — kn-grown ===================== */
.kn-grown {
  padding: 88px 0 96px;
  background: #fff;
}

.kn-grown-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.kn-grown-title {
  margin: 0 0 28px;
  font-family: 'Brauer NeueVN', sans-serif;
  font-weight: 700;
  font-size: 44px;
  line-height: 1.35;
  color: #2576B9;
  text-align: center;
}

.kn-grown-text p {
  margin: 0 0 18px;
  font-size: 19px;
  font-style: italic;
  line-height: 1.6;
  color: #333;
}

.kn-grown-photo img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===================== POPUP ===================== */
.kn-pop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(11, 20, 40, .65);
  backdrop-filter: blur(6px);
}

.kn-pop[hidden] { display: none; }

.kn-pop-box {
  position: relative;
  width: min(680px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  padding: 34px 32px 30px;
  border-radius: 20px;
  background: #fff;
  text-align: center;
}

.kn-pop-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 40, 78, .55);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.kn-pop-title {
  margin: 0 0 12px;
  font-family: 'Brauer NeueVN', 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.3;
  color: var(--kn-blue);
}

.kn-pop-desc {
  margin: 0 0 22px;
  font-size: 17px;
  line-height: 1.6;
  color: #333;
}

.kn-pop-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* ===================== TABLET ===================== */
@media (max-width: 1023px) {
  .kn-need-title,
  .kn-skills-title,
  .kn-support-title,
  .kn-grown-title { font-size: 32px; }

  .kn-need-stage { grid-template-columns: 1fr; }

  .kn-need-expert { max-width: 480px; margin: 24px auto 0; }
}

/* ===================== MOBILE ===================== */
@media (max-width: 767px) {
  .kn-need,
  .kn-skills,
  .kn-support { padding: 56px 0 64px; }

  .kn-need-inner,
  .kn-skills-inner,
  .kn-support-inner,
  .kn-grown-inner { padding: 0 20px; }

  .kn-need-title,
  .kn-skills-title,
  .kn-support-title,
  .kn-grown-title { font-size: 24px; margin-bottom: 32px; }

  /* Bỏ so le, xếp 2 cột cho dễ đọc */
  .kn-need-list { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
  .kn-need-item:nth-child(2),
  .kn-need-item:nth-child(4) { transform: none; }
  .kn-need-item img { max-width: 150px; }
  .kn-need-item p { font-size: 14px; }

  .kn-need-expert { max-width: 340px; grid-template-columns: minmax(0, 1fr) 130px; }

  /* Vòng cung không còn chỗ trên màn hẹp -> xếp lưới */
  .kn-skills-stage { min-height: 0; }

  .kn-skill {
    /* relative để .kn-skill-pop định vị theo thẻ, NHƯNG phải xoá hết
       left/top của bản desktop — nếu không grid item bị dịch đi và
       chồng lên nhau (đo được x=84/266, y=-67). */
    position: relative;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: auto;
    /* Di động xếp lưới nên KHÔNG dùng offset vòng cung của desktop.
       --kn-dx phải về 0, nếu không thẻ bị đẩy ra ngoài sân khấu
       (đo được x = -435 / +449 trên khổ 390px). */
    --kn-dx: 0px;
    transform: none;
  }

  /* Hiệu ứng vào trên di động: chỉ trôi lên, không dịch ngang */
  .kn-skill.kn-st--left,
  .kn-skill.kn-st--right {
    transform: translateY(24px);
  }

  .kn-skill.kn-st--left.is-in,
  .kn-skill.kn-st--right.is-in {
    transform: none;
  }

  .kn-skills-stage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 14px;
  }

  .kn-skills-center {
    position: static;
    grid-column: 1 / -1;
    width: min(300px, 80%);
    margin: 6px auto 0;
    transform: none;
  }

  .kn-skill figcaption { font-size: 14px; }

  /* Pill: xếp dọc, icon luôn bên trái */
  .kn-support-stage {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
  }

  .kn-pill {
    position: static;
    transform: none;
    width: 100%;
  }

  .kn-pill-ico { width: 64px; height: 64px; }

  .kn-pill-label {
    flex: 1;
    padding: 12px 34px 12px 14px;
    font-size: 14px;
  }

  /* Di động: pill xếp dọc nên mô tả chiếm trọn chiều ngang */
  .kn-pill { flex-wrap: wrap; }
  .kn-pill-detail { width: 100%; margin-left: 0; }

  /* Ảnh bé xuống cuối, sau các pill */
  .kn-support-center {
    position: static;
    order: 9;
    width: min(260px, 70%);
    margin: 8px auto 0;
    transform: none;
  }

  .kn-grown { padding: 56px 0 64px; }
  .kn-grown-inner { grid-template-columns: 1fr; gap: 28px; }
  .kn-grown-text p { font-size: 16px; }

  .kn-pop-box { padding: 28px 18px 24px; }
  .kn-pop-title { font-size: 20px; }
  .kn-pop-desc { font-size: 15px; }
}

/* ===================== CTA — nút mở popup form ===================== */
.kn-chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.kn-chat-lead {
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  background: #ffce1f;
  color: #11284e;
  font-family: 'Brauer NeueVN', 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.kn-chat-lead:hover,
.kn-chat-lead:focus-visible { filter: brightness(.96); }

/* ===================== Popup form đăng ký ===================== */
.kn-pop-box--form { text-align: left; }

.kn-pop-box--form .kn-pop-title,
.kn-pop-box--form .kn-pop-desc { text-align: center; }

.kn-pop-box--form .tn-bf-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.kn-pop-box--form .tn-bf-group input {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid #d9e1ec;
  border-radius: 999px;
  background: #fff;
  color: #11284e;
  font-size: 16px;
}

.kn-pop-box--form .tn-bf-group input::placeholder { color: #8b97a8; }

.kn-pop-box--form .tn-bf-group input:focus {
  outline: 2px solid #2576b9;
  outline-offset: 1px;
}

.kn-pop-box--form .tn-bf-btn {
  padding: 16px 26px;
  border: 0;
  border-radius: 999px;
  background: #ffce1f;
  color: #11284e;
  font-family: 'Brauer NeueVN', 'Nunito', sans-serif;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.kn-pop-box--form .tn-bf-btn:hover { filter: brightness(.96); }

.kn-cta-privacy {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #6b7a90;
  text-align: center;
}

.kn-cta-privacy a { color: #2576b9; }

@media (max-width: 767px) {
  .kn-chat-actions { width: 100%; }
  .kn-chat-lead { flex: 1; }
}

/* ==========================================================
   VỪA MỘT MÀN HÌNH
   Mục tiêu: mỗi section gọn trong 1 viewport trên MacBook 15"
   (~647px khả dụng) và Windows 15.6" có toolbar (~497px).
   Dùng clamp() theo chiều cao màn hình để co giãn mượt thay vì
   đặt cứng từng breakpoint.
   ========================================================== */
@media (min-width: 1024px) {
  .kn-need,
  .kn-skills,
  .kn-support,
  .kn-grown {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100svh;
    padding-block: clamp(28px, 6svh, 72px);
  }

  /* Pill "Hệ thống đánh giá" hạ xuống 100px cho thoáng với tiêu đề.
     Chỉ áp dụng desktop; di động pill xếp dọc nên không cần. */
  /* Hạ 100px rồi nâng lại 50px => tịnh tiến +50px so với gốc. */
  .kn-pill--danhgia { top: calc(-2% + 50px); }

  /* Khung trong của flex-column mặc định co lại theo nội dung — phải ép
     chiếm trọn chiều ngang, nếu không sân khấu bị bóp hẹp và các thẻ lệch. */
  .kn-need-inner,
  .kn-skills-inner,
  .kn-support-inner,
  .kn-grown-inner { width: 100%; }

  /* Tiêu đề: theo format .hv3-journey-title của Home (58px desktop,
     44px <1440px, 36px tablet) nhưng co thêm theo chiều cao màn để
     mỗi section vẫn gói gọn trong 1 viewport. */
  .kn-need-title,
  .kn-skills-title,
  .kn-support-title,
  .kn-grown-title {
    font-family: 'Brauer NeueVN', sans-serif;
    font-weight: bold;
    font-size: clamp(32px, 5.2svh, 58px);
    line-height: 1.35;
    color: #2576B9;
    text-align: center;
    margin-bottom: clamp(16px, 3.4svh, 48px);
  }

  /* Sân khấu 2 section vòng cung co theo màn hình */
  .kn-skills-stage { min-height: clamp(360px, 58svh, 700px); }
  .kn-support-stage { min-height: clamp(380px, 60svh, 720px); }

  /* +20%: 140->168, 16svh->19.2svh, 230->276 */
  .kn-skill { width: clamp(168px, 19.2svh, 276px); }

  /* Hạ cả 4 thẻ xuống 50px (chỉ desktop; di động xếp lưới nên không cần). */
  .kn-skill--thegioi,
  .kn-skill--benbi { top: calc(38.3% + 50px); }

  .kn-skill--tiengnoi,
  .kn-skill--bansac { top: calc(18.6% - 100px + 50px); }
  /* Nới rộng khung => cung cao hơn (tỉ lệ 2:1), đủ chỗ cho ảnh bé và
     2 khung chữ nằm GỌN BÊN TRONG nửa hình tròn. */
  .kn-skills-center { width: clamp(700px, 94svh, 1240px); }
  /* +20% so với trước (420/78svh/760) theo yêu cầu */
  .kn-support-center { width: clamp(504px, 94svh, 912px); }

  .kn-pill-ico { width: clamp(56px, 8svh, 92px); height: clamp(56px, 8svh, 92px); }
  .kn-pill-label { font-size: clamp(13px, 1.7svh, 16px); padding: clamp(9px, 1.5svh, 14px) 38px clamp(9px, 1.5svh, 14px) 16px; }
  .kn-pill-detail { width: clamp(220px, 26svh, 300px); }

  .kn-need-item img { max-width: clamp(130px, 20svh, 230px); }
  .kn-need-item p { font-size: clamp(13px, 1.8svh, 17px); }
  .kn-need-expert { max-width: clamp(280px, 46svh, 460px); }

  .kn-grown-text p { font-size: clamp(14px, 2svh, 19px); margin-bottom: clamp(8px, 1.6svh, 18px); }
  .kn-grown-photo img { max-height: 62svh; width: auto; margin: 0 auto; }
}

/* Màn hình thấp (Windows 15.6" có toolbar): siết thêm một nấc */
@media (min-width: 1024px) and (max-height: 700px) {
  .kn-need-list { gap: 6px; }
  .kn-need-item:nth-child(2) { transform: translateY(32px); }
  .kn-need-item:nth-child(4) { transform: translateY(24px); }
  .kn-pill-detail-img { display: none; }
}

/* Cambridge video + CTA (lấy từ Home) cũng gói trong 1 màn hình */
@media (min-width: 1024px) {
  .hv3-cambridge-video,
  .hv3-cta-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100svh;
    padding-block: clamp(24px, 5svh, 64px);
  }

  /* Khung video giữ tỉ lệ 16:9, chỉ giới hạn chiều cao của khung ngoài */
  .hv3-cambridge-khung {
    max-width: min(100%, calc(72svh * 16 / 9));
    margin-inline: auto;
  }

  .hv3-cta-title { font-size: clamp(22px, 3.2svh, 38px); margin-bottom: clamp(14px, 3svh, 36px); }
  .hv3-chat-photo img { max-height: 46svh; width: auto; }
  .hv3-chat-bubble { font-size: clamp(14px, 2svh, 19px); }
}

/* Màn thấp: siết thêm cho section hỗ trợ và chat */
@media (min-width: 1024px) and (max-height: 700px) {
  .kn-support-stage { min-height: clamp(340px, 54svh, 560px); }
  .kn-pill-ico { width: 52px; height: 52px; }
  .hv3-chat-photo img { max-height: 38svh; }
}

/* ==========================================================
   HIỆU ỨNG KỂ CHUYỆN
   Mỗi section mở ra theo một nhịp riêng thay vì cùng fade một
   kiểu: tiêu đề lên trước, nội dung theo sau, các phần tử trong
   nhóm nối tiếp nhau (stagger). Tất cả đều tắt khi người dùng
   bật "giảm chuyển động".
   ========================================================== */

/* --- Lớp nền dùng chung --- */
.kn-st {
  opacity: 0;
  transition:
    opacity .7s cubic-bezier(.22, .61, .36, 1),
    transform .7s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--kn-d, 0ms);
  will-change: opacity, transform;
}

.kn-st.is-in {
  opacity: 1;
  transform: none;
}

/* --- Các kiểu vào --- */
.kn-st--up    { transform: translateY(34px); }
.kn-st--left  { transform: translateX(-38px); }
.kn-st--right { transform: translateX(38px); }
.kn-st--zoom  { transform: scale(.9); }

/* Vòng tròn/thẻ bật lên nhẹ như "pop" */
.kn-st--pop {
  transform: translateY(26px) scale(.94);
  transition-duration: .62s;
  transition-timing-function: cubic-bezier(.34, 1.56, .64, 1);
}

/* Tiêu đề: chữ trôi lên kèm hé mở */
.kn-st--title {
  transform: translateY(26px);
  /* Chỉ hé từ ĐÁY (inset bottom), KHÔNG cắt phía trên — nếu cắt trên thì
     dấu ngã/hỏi của tiếng Việt bị mất trong lúc animate. */
  clip-path: inset(-20% 0 14% 0);
  transition-property: opacity, transform, clip-path;
}

.kn-st--title.is-in { clip-path: inset(-20% 0 0 0); }

/* 4 thẻ section 2 canh theo TÂM bằng translateX(calc(-50% + N)). Hiệu ứng
   phải giữ nguyên phần dịch đó, nếu không thẻ nhảy về mép trái khi animate.
   Dùng biến --kn-dx cho từng thẻ rồi tái sử dụng trong transform. */
/* CHỈ desktop: di động xếp lưới, không có vòng cung nên không dùng offset. */
@media (min-width: 768px) {
  /* Cung rộng ra nên 2 thẻ giữa phải dạt thêm: bé rộng ~297px (nửa 149)
     + thẻ 276px (nửa 138) + 16px thở = cần |dx| >= 303px. */
  .kn-skill--thegioi   { --kn-dx: -470px; }
  .kn-skill--tiengnoi    { --kn-dx: -310px; }
  .kn-skill--bansac { --kn-dx:  310px; }
  .kn-skill--benbi   { --kn-dx:  470px; }

  .kn-skill.kn-st--left,
  .kn-skill.kn-st--right {
    transform: translateX(calc(-50% + var(--kn-dx))) translateY(28px);
  }

  .kn-skill.kn-st--left.is-in,
  .kn-skill.kn-st--right.is-in {
    transform: translateX(calc(-50% + var(--kn-dx)));
  }
}

/* Di động: chỉ trôi lên, không dịch ngang */
@media (max-width: 767px) {
  .kn-skill.kn-st--left,
  .kn-skill.kn-st--right { transform: translateY(24px); }

  .kn-skill.kn-st--left.is-in,
  .kn-skill.kn-st--right.is-in { transform: none; }

  /* Di động: ảnh bé to hơn và nâng cao để không bị nhãn che thân. */
  .kn-center-kid {
    width: 62%;
    /* Sát nhãn level. Tổng: cefr ~88px + 16px tách + level 36px + 8px */
    margin-bottom: 148px;
  }

  .kn-badge--level { margin-bottom: 106px; font-size: 18px; padding: 8px 22px; }
  .kn-badge--cefr { margin-bottom: 6px; padding: 11px 18px; max-width: 98%; }
  .kn-cefr-main,
  .kn-cefr-sub { font-size: 14px; }
  /* Giữ 19px theo yêu cầu, nhưng khổ 390px chỉ đủ ~16px nên dùng min() */
  .kn-cefr-tag { font-size: min(19px, 4.4vw); }

  /* Ảnh giữa trên di động là static trong lưới (không còn canh bằng
     translateX(-50%)), nên hiệu ứng cũng không được thêm -50% —
     nếu thêm thì ảnh lệch hẳn ra ngoài mép trái (đo được x = -105). */
  .kn-skills-center.kn-st--hero-img,
  .kn-support-center.kn-st--hero-img { transform: translateY(16px) scale(.96); }

  .kn-skills-center.kn-st--hero-img.is-in,
  .kn-support-center.kn-st--hero-img.is-in { transform: none; }
}

/* Biến thể cho phần tử ĐÃ canh giữa bằng translateX(-50%):
   phải cộng dồn -50% vào transform của hiệu ứng, nếu không sẽ lệch phải. */
.kn-st--up-c { transform: translateX(-50%) translateY(34px); }
.kn-st--up-c.is-in { transform: translateX(-50%); }

/* Ảnh chính của 2 section vòng cung: lớn dần từ tâm.
   LƯU Ý: 2 ảnh này canh giữa bằng translateX(-50%), nên mọi transform
   của hiệu ứng phải GIỮ LẠI phần -50% đó, nếu không ảnh sẽ lệch phải. */
.kn-st--hero-img {
  transform: translateX(-50%) translateY(20px) scale(.93);
  transition-duration: .9s;
}

.kn-st--hero-img.is-in {
  transform: translateX(-50%);
}

/* Bé ở giữa "ngồi xuống" sau khi vòng cung hiện */
.kn-support-center.kn-st { transition-duration: .85s; }

@media (prefers-reduced-motion: reduce) {
  .kn-st,
  .kn-st.is-in {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }

  /* Giữ canh giữa cho 2 ảnh chính */
  .kn-st--hero-img,
  .kn-st--hero-img.is-in { transform: translateX(-50%) !important; }
}

/* ===================== Hành trình: ảnh bước 01 =====================
   home-v3.css đặt .hv3-step-photo { width: 60% } cho mọi bước.
   Yêu cầu giảm 20% riêng ảnh step-01 -> 60% * 0.8 = 48%.
   Giữ nguyên tâm ảnh bằng cách bù lại 6% vào left (32% + 6%). */
.hv3-step[data-step="1"] .hv3-step-photo {
  width: 48%;
  left: 38%;
  /* Dịch xuống 100px cho thoáng, tránh dính tiêu đề.
     KHÔNG dùng transform: home-v3.js gán el.style.transform mỗi khung hình
     khi cuộn nên sẽ ghi đè. Dùng top (21% gốc + 100px) thì JS không đụng. */
  top: calc(21% + 100px);
}

/* ===================== Section 1: hover các vòng tròn =====================
   Rê chuột vào một vòng: vòng đó thu nhỏ lại (zoom out) và các vòng còn lại
   mờ đi, để mắt tập trung vào đúng cái đang xem.
   Chỉ bật trên thiết bị có chuột thật (hover: hover) — tránh kẹt trạng thái
   hover trên màn cảm ứng. */
@media (hover: hover) and (pointer: fine) {
  .kn-need-item {
    transition: opacity .35s ease;
  }

  .kn-need-item img {
    transition: transform .4s cubic-bezier(.22, .61, .36, 1);
  }

  .kn-need-item p {
    transition: color .35s ease;
  }

  /* Vòng đang rê: thu nhỏ */
  .kn-need-item:hover img {
    transform: scale(.88);
  }

  .kn-need-item:hover p {
    color: var(--kn-blue);
    font-weight: 600;
  }

  /* Các vòng còn lại mờ đi */
  .kn-need-list:hover .kn-need-item:not(:hover) {
    opacity: .45;
  }
}

/* Người dùng tắt hiệu ứng chuyển động thì bỏ phần biến đổi */
@media (prefers-reduced-motion: reduce) {
  .kn-need-item img,
  .kn-need-item,
  .kn-need-item p { transition: none !important; }
  .kn-need-item:hover img { transform: none !important; }
}

/* ===================== Section 2: hover 4 thẻ =====================
   Rê chuột vào thẻ -> hiện bảng nội dung ngay cạnh thẻ. Thẻ nằm absolute
   nên bảng dùng position:absolute theo thẻ, không ảnh hưởng vòng cung. */
.kn-skill-pop {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  width: min(260px, 20vw);
  transform: translateX(-50%) translateY(6px);
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(17, 40, 78, .16);
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease, transform .28s ease, visibility .28s;
  z-index: 5;
}

.kn-skill-pop-title {
  display: block;
  margin-bottom: 6px;
  font-family: 'Brauer NeueVN', 'Nunito', sans-serif;
  font-weight: 700;
  /* +20% (16 -> 19.2) cho dễ đọc trên MacBook 15" */
  font-size: 19.2px;
  line-height: 1.3;
  color: var(--kn-blue);
}

.kn-skill-pop-desc {
  display: block;
  /* +20% (13.5 -> 16.2) */
  font-size: 16.2px;
  font-weight: 500;
  line-height: 1.55;
  color: #33415c;
}

.kn-skill-pop-desc strong { color: var(--kn-ink); }

/* Chỉ bật trên thiết bị có chuột thật */
@media (hover: hover) and (pointer: fine) {
  .kn-skill:hover .kn-skill-pop,
  .kn-skill:focus-within .kn-skill-pop {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%);
  }

  /* Thẻ đang rê nổi lên trên các thẻ khác */
  .kn-skill:hover { z-index: 6; }

  .kn-skill img { transition: transform .35s cubic-bezier(.22, .61, .36, 1); }
  .kn-skill:hover img { transform: scale(1.04); }
}

/* Bảng phải mở RA NGOÀI, tránh đè lên bé ở giữa:
   2 thẻ bên trái mở sang trái, 2 thẻ bên phải mở sang phải. */
@media (hover: hover) and (pointer: fine) and (min-width: 768px) {
  /* Bên trái: neo mép phải của bảng vào mép trái thẻ */
  .kn-skill--thegioi .kn-skill-pop,
  .kn-skill--tiengnoi .kn-skill-pop {
    left: auto;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(-6px);
  }

  .kn-skill--thegioi:hover .kn-skill-pop,
  .kn-skill--thegioi:focus-within .kn-skill-pop,
  .kn-skill--tiengnoi:hover .kn-skill-pop,
  .kn-skill--tiengnoi:focus-within .kn-skill-pop {
    transform: translateY(-50%);
  }

  /* Bên phải: neo mép trái của bảng vào mép phải thẻ */
  .kn-skill--bansac .kn-skill-pop,
  .kn-skill--benbi .kn-skill-pop {
    left: calc(100% + 12px);
    right: auto;
    top: 50%;
    transform: translateY(-50%) translateX(6px);
  }

  .kn-skill--bansac:hover .kn-skill-pop,
  .kn-skill--bansac:focus-within .kn-skill-pop,
  .kn-skill--benbi:hover .kn-skill-pop,
  .kn-skill--benbi:focus-within .kn-skill-pop {
    transform: translateY(-50%);
  }
}

/* Nút chạm: chỉ dùng trên di động, phủ kín ảnh để bắt thao tác chạm.
   Desktop ẩn đi vì đã có hover. */
.kn-skill-tap {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 4;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

/* Di động: chạm vào thẻ -> nội dung PHỦ LÊN ảnh, chạm lại thì đóng. */
@media (max-width: 767px) {
  .kn-skill-tap { display: block; }

  .kn-skill-pop {
    /* Phủ đúng vùng ẢNH (không trùm xuống nhãn TỰ TIN/TÒ MÒ…).
       Dùng !important vì các rule desktop .kn-skill--thegioi/.kn-skill--tiengnoi…
       đặt top/left/right riêng và có độ ưu tiên cao hơn selector này. */
    position: absolute;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: auto !important;
    width: auto;
    height: var(--kn-img-h, auto);
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 !important;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 8px 22px rgba(17, 40, 78, .14);
    transform: none;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    transition: opacity .25s ease, visibility .25s;
    /* Rule gốc có translateY(6px) cho hiệu ứng hover desktop — phải xoá,
       nếu không bảng lệch xuống 6px so với ảnh. */
    transform: none !important;
  }

  /* Mở khi thẻ có class is-open (JS gắn khi chạm) */
  .kn-skill.is-open .kn-skill-pop {
    opacity: 1;
    visibility: visible;
  }

  .kn-skill-pop-title { font-size: 16.8px; margin-bottom: 4px; }
  .kn-skill-pop-desc { font-size: 13.8px; line-height: 1.5; }

  /* Dấu hiệu có thể chạm: dấu + nhỏ ở góc ảnh */
  .kn-skill-tap::after {
    content: '+';
    position: absolute;
    right: 8px;
    top: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: var(--kn-blue);
    font-size: 17px;
    font-weight: 700;
    line-height: 21px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(17, 40, 78, .18);
  }

  .kn-skill.is-open .kn-skill-tap::after { content: '\00d7'; }
}

@media (prefers-reduced-motion: reduce) {
  .kn-skill-pop { transition: none !important; }
  .kn-skill:hover img { transform: none !important; }
}

/* ==========================================================
   SECTION 2 — BỐ CỤC 2 HÀNG, CHỈ DI ĐỘNG (yêu cầu 03/10)
   Hàng trên: ảnh bé + nửa hình tròn + 2 nhãn
   Hàng dưới: 4 thẻ tự tin / tò mò / thuộc về / bền bỉ
   Desktop GIỮ NGUYÊN bố cục vòng cung như cũ — toàn bộ khối này
   nằm trong @media (max-width: 767px).
   ========================================================== */
@media (max-width: 767px) {
  .kn-skills-stage {
    position: relative;
    min-height: 0 !important;
    display: block !important;
  }

  /* --- Hàng trên: canh giữa bằng margin auto, KHÔNG dùng transform --- */
  .kn-skills-center,
  .kn-skills-center.kn-st--hero-img,
  .kn-skills-center.kn-st--hero-img.is-in {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: clamp(380px, 52svh, 620px) !important;
    margin: 0 auto !important;
  }

  /* Hiệu ứng vào cho hàng trên: chỉ trôi lên, không dịch ngang */
  .kn-skills-center.kn-st--hero-img { opacity: 0; }
  .kn-skills-center.kn-st--hero-img.is-in { opacity: 1; }

  /* --- Hàng dưới: 4 thẻ ngang, cách đều --- */
  .kn-skills-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(10px, 1.6svh, 20px);
    /* stretch để 4 thẻ cao bằng nhau, nhãn nằm thẳng hàng */
    align-items: stretch;
    width: 100%;
    max-width: clamp(560px, 78svh, 1000px);
    margin: clamp(10px, 2svh, 26px) auto 0;
  }

  /* Thẻ: bỏ hết toạ độ absolute + offset --kn-dx của bản vòng cung */
  .kn-skills-cards .kn-skill {
    display: flex;
    flex-direction: column;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 100% !important;
    --kn-dx: 0px;
  }

  .kn-skills-cards .kn-skill.kn-st--left,
  .kn-skills-cards .kn-skill.kn-st--right {
    transform: translateY(24px);
  }

  .kn-skills-cards .kn-skill.kn-st--left.is-in,
  .kn-skills-cards .kn-skill.kn-st--right.is-in {
    transform: none;
  }

    .kn-skills-cards {
      grid-template-columns: repeat(2, 1fr);
      gap: 18px 14px;
      margin-top: 20px;
    }

    .kn-skills-center,
    .kn-skills-center.kn-st--hero-img,
    .kn-skills-center.kn-st--hero-img.is-in {
      max-width: min(320px, 86%) !important;
    }
}

/* Tiêu đề section 2: xuống dòng thủ công CHỈ trên desktop.
   Di động khổ hẹp đã tự wrap, giữ <br> sẽ thành 4 dòng. */
@media (max-width: 767px) {
  .kn-br-desktop { display: none; }
}

/* Nhãn cấp độ trên di động: nới rộng + cho xuống dòng để không cắt chữ.
   Trang promotion có text dài hơn ("… (2.5 - 6 TUỔI)") nên nowrap + 86%
   làm chữ bị cắt mất phần đuôi. */
@media (max-width: 767px) {
  .kn-badge--level {
    max-width: 100%;
    white-space: normal;
    padding: 8px 16px;
    text-align: center;
    line-height: 1.25;
  }
}

/* ==========================================================
   SECTION kn-support — LÀM LẠI (yêu cầu 03/10)
   · Pill CỐ ĐỊNH, không nhảy chỗ khi bấm
   · Popup = nội dung CHỮ (lấy từ trang Mẫu giáo cũ), nổi đè lên
   · 5 pill xếp trên NỬA HÌNH TRÒN quanh bé ở giữa, như section 2
   Đặt cuối file để thắng toàn bộ rule cũ.
   ========================================================== */
@media (min-width: 768px) {
  .kn-support-stage {
    position: relative;
    min-height: clamp(380px, 62svh, 620px);
  }

  /* --- Pill: toạ độ cố định trên cung, canh theo TÂM pill --- */
  .kn-pill {
    position: absolute !important;
    width: clamp(150px, 17svh, 210px);
    transform: translate(-50%, -50%) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }

  /* DOM mỗi pill đặt icon/label khác thứ tự -> ép icon luôn LÊN TRÊN */
  .kn-pill .kn-pill-ico { order: 1; }
  .kn-pill .kn-pill-label { order: 2; }
  .kn-pill .kn-pill-detail { order: 3; }

  .kn-pill-ico {
    width: clamp(56px, 7.5svh, 76px);
    height: clamp(56px, 7.5svh, 76px);
  }

  .kn-pill--giaotrinh { left: 15.4% !important; top: 51.0% !important; right: auto !important; bottom: auto !important; }
  .kn-pill--giaovien  { left: 30.0% !important; top: 25.4% !important; right: auto !important; bottom: auto !important; }
  .kn-pill--danhgia   { left: 50.0% !important; top: 16.0% !important; right: auto !important; bottom: auto !important; }
  .kn-pill--ungdung   { left: 70.0% !important; top: 25.4% !important; right: auto !important; bottom: auto !important; }
  .kn-pill--dongluc   { left: 84.6% !important; top: 51.0% !important; right: auto !important; bottom: auto !important; }

  .kn-pill-label {
    width: 100%;
    padding: 10px 14px;
    font-size: clamp(12px, 1.6svh, 15px);
    line-height: 1.35;
    text-align: center;
  }

  .kn-pill-arrow { position: static; margin-left: 6px; }

  /* --- Popup: nổi ĐÈ LÊN, pill bên dưới không bị đẩy --- */
  .kn-pill-detail {
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);
    width: clamp(240px, 30svh, 320px);
    transform: translateX(-50%);
    margin: 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(17, 40, 78, .18);
    text-align: left;
    z-index: 20;
  }

  /* 2 pill hàng dưới: popup mở LÊN TRÊN cho khỏi tràn đáy section */
  .kn-pill--giaotrinh .kn-pill-detail,
  .kn-pill--dongluc .kn-pill-detail {
    top: auto;
    bottom: calc(100% + 10px);
  }

  .kn-pill.is-open { z-index: 21; }
}

/* Tiêu đề + nội dung trong popup (dùng chung desktop & mobile) */
.kn-pill-detail-title {
  display: block;
  margin-bottom: 6px;
  font-family: 'Brauer NeueVN', 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.3;
  color: var(--kn-blue);
}

.kn-pill-detail-text {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.55;
  color: #33415c;
}

@media (max-width: 767px) {
  .kn-pill-detail-title { font-size: 14px; }
  .kn-pill-detail-text { font-size: 12.5px; }
}

/* Di động: popup cũng NỔI ĐÈ, không đẩy các pill bên dưới. */
@media (max-width: 767px) {
  .kn-pill { position: relative; }

  .kn-pill-detail {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    width: auto;
    margin: 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(17, 40, 78, .18);
    z-index: 20;
  }

  .kn-pill.is-open { z-index: 21; }

  /* 2 pill cuối: mở LÊN TRÊN để không bị cắt ở đáy section */
  .kn-pill--giaotrinh .kn-pill-detail,
  .kn-pill--dongluc .kn-pill-detail {
    top: auto;
    bottom: calc(100% + 6px);
  }
}

/* ==========================================================
   kn-support — LAYOUT THEO THAM CHIẾU _src/thamchieu_3.png (03/10)
   · Icon tròn nằm TRÊN cung nửa hình tròn
   · Nhãn chữ đổ RA NGOÀI: bên trái = chữ trước, bên phải = chữ sau
   · Popup: lớp riêng (.kn-pop-layer), khung LỚN, hiện đủ nội dung
   ========================================================== */
@media (min-width: 768px) {
  .kn-support-stage { position: relative; }

  /* --- Pill: icon trên cung, nhãn đổ ra ngoài --- */
  .kn-pill {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px;
    width: auto !important;
    background: none;
    border: 0;
  }

  /* Icon giữ kích cỡ tròn đều, không co */
  .kn-pill .kn-pill-ico {
    flex: 0 0 auto;
    width: clamp(68px, 8.6svh, 92px);
    height: clamp(68px, 8.6svh, 92px);
    border-radius: 50%;
  }

  /* Nhãn: 1 khối bo góc, không bó cứng chiều rộng */
  .kn-pill .kn-pill-label {
    flex: 0 0 auto;
    width: max-content;
    max-width: clamp(190px, 23svh, 260px);
    padding: 13px 17px;
    border-radius: 12px;
    font-size: clamp(12.5px, 1.65svh, 15.5px);
    line-height: 1.4;
  }

  /* BÊN TRÁI: chữ trước — icon sau, chữ canh phải */
  /* row-reverse: icon (DOM sau) ra mép TRÁI-trục, nhãn đổ ra ngoài bên trái */
  .kn-pill--giaovien  .kn-pill-label,
  .kn-pill--giaotrinh .kn-pill-label { order: 1; text-align: right; }
  .kn-pill--giaovien  .kn-pill-ico,
  .kn-pill--giaotrinh .kn-pill-ico { order: 2; }

  /* BÊN PHẢI + ĐỈNH: icon trước — chữ sau, chữ canh trái */
  .kn-pill--danhgia .kn-pill-ico,
  .kn-pill--ungdung .kn-pill-ico,
  .kn-pill--dongluc .kn-pill-ico { order: 1; }
  .kn-pill--danhgia .kn-pill-label,
  .kn-pill--ungdung .kn-pill-label,
  .kn-pill--dongluc .kn-pill-label { order: 2; text-align: left; }

  /* --- Toạ độ ICON trên cung (đo từ tham chiếu 2222x1712) ---
     Neo theo chính icon: dùng translate để tâm icon trùng điểm cung. */
  .kn-pill {
    position: absolute !important;
    transform: none !important;
  }

  /* đỉnh cung — icon canh ĐÚNG trục giữa (50%), nhãn đổ sang phải.
     Khối bắt đầu tại 50% rồi lùi lại 1/2 bề ngang icon. */
  .kn-pill--danhgia {
    left: 50% !important; top: 6% !important;
    transform: none !important;
    margin-left: calc(clamp(68px, 8.6svh, 92px) / -2);
  }
  /* hàng giữa: tâm icon ~27.5% / 72.5% */
  .kn-pill--giaovien {
    right: auto !important; top: 34% !important;
    left: 27.5% !important;
    transform: translateX(-100%) !important;
    margin-left: calc(clamp(68px, 8.6svh, 92px) / 2);
  }
  .kn-pill--ungdung {
    left: 72.5% !important; top: 34% !important;
    margin-left: calc(clamp(68px, 8.6svh, 92px) / -2);
  }
  /* hàng dưới: tâm icon ~21% / 79% */
  .kn-pill--giaotrinh {
    right: auto !important; top: 68% !important;
    left: 21% !important;
    transform: translateX(-100%) !important;
    margin-left: calc(clamp(68px, 8.6svh, 92px) / 2);
  }
  .kn-pill--dongluc {
    left: 79% !important; top: 68% !important;
    margin-left: calc(clamp(68px, 8.6svh, 92px) / -2);
  }

  .kn-pill-arrow { position: static; margin-left: 8px; }
}

/* ==========================================================
   POPUP MỚI — độc lập, khung lớn, hiện đủ nội dung
   ========================================================== */
.kn-support-stage > .kn-pill-detail[hidden] { display: none; }

.kn-support-stage > .kn-pill-detail {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  /* KHUNG TỶ LỆ 3:4 (rộng:cao) — cân đối nội dung với ảnh nền */
  width: clamp(340px, 42svh, 430px);
  height: auto;
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  box-sizing: border-box;
  margin: 0;
  padding: 22px 24px;
  border: 0;
  border-radius: 18px;
  background-color: #fff;
  background-repeat: no-repeat;
  /* Ảnh nền vẽ qua ::after để khống chế đúng 1/2 dưới (xem khối bên dưới) */
  background-image: none;
  box-shadow: 0 18px 44px rgba(17, 40, 78, .16);
  text-align: left;
  pointer-events: auto;
}

.kn-support-stage > .kn-pill-detail .kn-pill-detail-title {
  display: block;
  margin: 0 0 12px;
  font-family: 'Brauer NeueVN', 'Nunito', sans-serif;
  font-weight: 700;
  font-size: clamp(16.5px, 2.1svh, 20px);
  line-height: 1.25;
  color: var(--kn-blue);
}

.kn-support-stage > .kn-pill-detail .kn-pill-detail-text {
  display: block;
  padding-right: 0;
  font-size: clamp(13px, 1.7svh, 15px);
  font-weight: 500;
  line-height: 1.5;
  color: #33415c;
}

/* Ảnh nền lấy từ card di động trang Mẫu giáo cũ */
/* Ảnh nền chỉ vẽ qua ::after (dải dưới), KHÔNG đặt lên chính popup
   -> tránh ảnh full khổ hiện phía sau nội dung. */
.kn-support-stage > .kn-pill-detail { background-image: none !important; }

/* Không dùng lớp phủ xám: click ra ngoài -> JS đóng (xem kindy-new.js) */

/* ---------- DI ĐỘNG: COLLAPSE (accordion), KHÔNG POPUP ----------
   Bấm vào box -> nội dung bung ra ngay bên dưới box đó.
   Mỗi lần chỉ mở 1 mục (JS đã đóng các mục khác). */
@media (max-width: 767px) {
  /* lớp popup không còn phủ: các panel về đúng luồng, ngay sau pill của nó */
  .kn-support-stage > .kn-pill-detail {
    position: static !important;
    left: auto !important; top: auto !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;   /* bỏ tỷ lệ 4/5 của desktop */
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
    /* thụt vào bằng đúng mép trái của nhãn (icon 58px + gap 12px) */
    margin: -8px 0 2px 70px;
    width: calc(100% - 70px) !important;
    padding: 12px 14px 14px;
    border: 0;
    border-radius: 0 0 12px 12px;
    background-color: #fff;
    background-image: none;          /* ảnh vẽ qua ::after bên dưới */
    box-shadow: none !important;
    position: relative !important;   /* mốc cho dải ảnh ::after */
    padding-bottom: calc((100% - 28px) / 1.293 + 8px); /* chỗ cho dải ảnh theo tỷ lệ */
  }

  /* Dải ảnh nền ở ĐÁY panel, fit cả width + height như desktop */
  .kn-support-stage > .kn-pill-detail::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    aspect-ratio: 905 / 700;         /* đúng tỷ lệ ảnh đã crop -> KHÔNG méo */
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% auto;      /* phủ hết ngang, cao theo tỷ lệ thật */
    border-radius: 0 0 12px 12px;
    pointer-events: none;
    z-index: 0;
  }

  #kn-d-giaotrinh::after { background-image: url('/landings/tieng-anh-thieu-nien/assets/img/pop-bg-giaotrinh.webp'); }
  #kn-d-giaovien::after  { background-image: url('/landings/tieng-anh-thieu-nien/assets/img/pop-bg-giaovien.webp'); }
  #kn-d-danhgia::after   { background-image: url('/landings/tieng-anh-thieu-nien/assets/img/pop-bg-danhgia.webp'); }
  #kn-d-ungdung::after   { background-image: url('/landings/tieng-anh-thieu-nien/assets/img/pop-bg-ungdung.webp'); }
  #kn-d-dongluc::after   { background-image: url('/landings/tieng-anh-thieu-nien/assets/img/pop-bg-dongluc.webp'); }

  /* chữ nổi trên dải ảnh */
  .kn-support-stage > .kn-pill-detail .kn-pill-detail-title,
  .kn-support-stage > .kn-pill-detail .kn-pill-detail-text {
    position: relative;
    z-index: 1;
  }

  /* trạng thái đóng vẫn do [hidden] quản lý -> giữ cơ chế collapse */
  .kn-support-stage > .kn-pill-detail[hidden] { display: none !important; }

  .kn-support-stage > .kn-pill-detail .kn-pill-detail-title {
    font-size: 15px;
    margin-bottom: 5px;
  }

  .kn-support-stage > .kn-pill-detail .kn-pill-detail-text {
    font-size: 14px;
    padding-right: 0;
    line-height: 1.6;
  }

  /* mũi tên thành chỉ báo đóng/mở */
  .kn-pill-arrow {
    display: inline-block !important;
    transition: transform .2s ease;
  }
  .kn-pill.is-open .kn-pill-arrow { transform: rotate(135deg); }

  /* box đang mở: bỏ bo góc dưới để liền mạch với panel */
  .kn-pill.is-open .kn-pill-label { border-radius: 12px 12px 0 0; }
}

/* --- Di động: trả pill về khối dọc gọn trong khung, không tràn lề --- */
@media (max-width: 767px) {
  .kn-support-stage { display: flex; flex-direction: column; gap: 14px; }

  .kn-pill {
    position: relative !important;
    left: auto !important; right: auto !important; top: auto !important;
    transform: none !important;
    margin-left: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px;
  }

  /* Icon luôn bên trái, nhãn chiếm phần còn lại */
  .kn-pill .kn-pill-ico { order: 1; flex: 0 0 auto; width: 58px; height: 58px; }
  .kn-pill .kn-pill-label {
    order: 2;
    flex: 1 1 auto;
    width: auto !important;
    max-width: none !important;
    text-align: left !important;
    padding: 12px 14px;
  }

  /* Bé ở giữa: đưa lên đầu khối cho đúng mạch kể */
  .kn-support-center { order: -1; margin: 0 auto 6px; }
}

/* --- kn-support: bỏ viền/outline khi bấm vào box (03/10) --- */
.kn-pill,
.kn-pill:hover,
.kn-pill:focus,
.kn-pill:focus-visible,
.kn-pill:active {
  outline: none !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}

/* nhãn bên trong cũng không nhận viền khi focus */
.kn-pill:focus .kn-pill-label,
.kn-pill:focus-visible .kn-pill-label,
.kn-pill:active .kn-pill-label {
  outline: none !important;
  border: 0 !important;
}

/* Giữ dấu hiệu bàn phím bằng nền đậm nhẹ thay cho outline */
.kn-pill:focus-visible .kn-pill-label { filter: brightness(.94); }

/* --- kn-support desktop: panel nội dung nổi TRÊN mọi button --- */
@media (min-width: 768px) {
  .kn-support-stage > .kn-pill-detail { z-index: 40 !important; }
  .kn-pill,
  .kn-pill.is-open { z-index: 5 !important; }

  /* chừa nửa dưới cho ảnh nền: chữ chỉ dùng nửa trên */
  .kn-support-stage > .kn-pill-detail .kn-pill-detail-text { max-height: 42%; overflow: hidden; }
}

/* --- Vùng ảnh nền = ĐÚNG nửa dưới popup, phủ hết bề ngang --- */
@media (min-width: 768px) {
  .kn-support-stage > .kn-pill-detail { position: absolute; }

  .kn-support-stage > .kn-pill-detail::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 58%;                       /* vùng ảnh, tỷ lệ gần khít ảnh đã crop */
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% 100%;        /* FIT cả WIDTH và HEIGHT */
    border-radius: 0 0 18px 18px;
    pointer-events: none;
    z-index: 0;
  }

  #kn-d-giaotrinh::after { background-image: url('/landings/tieng-anh-thieu-nien/assets/img/pop-bg-giaotrinh.webp'); }
  #kn-d-giaovien::after  { background-image: url('/landings/tieng-anh-thieu-nien/assets/img/pop-bg-giaovien.webp'); }
  #kn-d-danhgia::after   { background-image: url('/landings/tieng-anh-thieu-nien/assets/img/pop-bg-danhgia.webp'); }
  #kn-d-ungdung::after   { background-image: url('/landings/tieng-anh-thieu-nien/assets/img/pop-bg-ungdung.webp'); }
  #kn-d-dongluc::after   { background-image: url('/landings/tieng-anh-thieu-nien/assets/img/pop-bg-dongluc.webp'); }

  /* chữ nằm trên ảnh nền và chỉ dùng nửa trên */
  .kn-support-stage > .kn-pill-detail .kn-pill-detail-title,
  .kn-support-stage > .kn-pill-detail .kn-pill-detail-text {
    position: relative;
    z-index: 1;
  }
  .kn-support-stage > .kn-pill-detail .kn-pill-detail-text {
    max-height: none;
    overflow: visible;
  }
}

/* Mục có nội dung dài nhất: giảm nhẹ cỡ chữ để không lấn xuống nửa ảnh nền */
@media (min-width: 768px) {
  #kn-d-danhgia .kn-pill-detail-text { font-size: clamp(12.5px, 1.6svh, 14px); line-height: 1.46; }
}

/* Hover desktop: nới vùng bắt chuột quanh panel để chuột băng từ button sang
   popup không bị rơi ra ngoài (khoảng trống ~88px). */
@media (hover: hover) and (pointer: fine) and (min-width: 768px) {
  .kn-support-stage > .kn-pill-detail::before {
    content: '';
    position: absolute;
    inset: -14px -100px;      /* đệm hai bên, hướng về phía các button */
    z-index: -1;
  }
  .kn-pill { cursor: default; }
}

/* ==========================================================
   kn-support — CTA "Đặt lịch kiểm tra trình độ miễn phí" (03/10)
   Dùng lại .kn-chat-lead[data-pop="form"] nên mở đúng popup form sẵn có.
   ========================================================== */
.kn-support-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(18px, 3.2svh, 40px);
}

.kn-support-cta-btn {
  padding: 16px 34px;
  font-size: clamp(15px, 1.9svh, 18px);
  line-height: 1.3;
  box-shadow: 0 10px 26px rgba(255, 206, 31, .38);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .kn-support-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(255, 206, 31, .46);
  }
}

@media (max-width: 767px) {
  .kn-support-cta { margin-top: 20px; }
  .kn-support-cta-btn {
    width: 100%;
    max-width: 340px;
    padding: 15px 20px;
    font-size: 15px;
  }
}

/* ==========================================================
   kn-support — POPUP ĐỔ RA HAI BÊN (03/10)
   Popup canh giữa sẽ che bé ở trung tâm -> đẩy về phía ngoài:
   · 2 pill BÊN TRÁI  -> popup mở sang TRÁI
   · 2 pill BÊN PHẢI  -> popup mở sang PHẢI
   · pill ĐỈNH cung   -> popup lệch sang phải (nhãn của nó cũng ở phải)
   ========================================================== */
@media (min-width: 768px) {
  .kn-support-stage > #kn-d-giaotrinh,
  .kn-support-stage > #kn-d-giaovien {
    left: 0 !important;
    right: auto !important;
  }

  .kn-support-stage > #kn-d-ungdung,
  .kn-support-stage > #kn-d-dongluc {
    left: auto !important;
    right: 0 !important;
  }

  /* Pill đỉnh: lệch phải để không trùm lên đầu bé */
  .kn-support-stage > #kn-d-danhgia {
    left: auto !important;
    right: 0 !important;
    top: 0 !important;
    transform: none !important;
  }
}

/* ==========================================================
   STICKY CTA DI ĐỘNG (.tn-mcta) — đồng bộ từ trang Promotion
   ========================================================== */
.tn-mcta {
  display: none;
}

@media (max-width: 1024px) {
  .tn-mcta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2147483000;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -6px 20px rgba(37, 118, 185, 0.14);
    transform: translateY(110%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
  }

  .tn-mcta.is-visible {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.3s ease, visibility 0s;
  }

  body.has-mcta {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .tn-mcta-btn {
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-family: var(--body);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
  }

  .tn-mcta-btn--zalo {
    background: var(--ap-primary-container);
    color: #fff;
    box-shadow: 0 6px 14px rgba(37, 118, 185, 0.28);
  }

  .tn-mcta-btn--form {
    background: #ffd95b;
    color: #1a3a6e;
    box-shadow: 0 6px 14px rgba(254, 204, 0, 0.32);
  }

  .tn-mcta-btn:active {
    transform: scale(0.97);
  }
}

/* ==========================================================
   OMICALL LIVETALK — chỉ hiện trên DESKTOP (03/10)
   Trong vùng có sticky CTA (<=1024px) thì ẩn widget chat để
   không hiển thị đồng thời 2 thành phần ở đáy màn hình.
   ========================================================== */
@media (max-width: 1024px) {
  #omi_dtl,
  #omi_u38,
  [id^="omi_"],
  [class*="omi-lt-"] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* ==========================================================
   DI ĐỘNG: CHỮ NỘI DUNG ĐỌC = 18px (03/10)
   Chỉ áp cho phần văn bản người dùng ĐỌC. Giữ nguyên nhãn nút,
   badge, footer, menu, dòng bảo mật để không vỡ bố cục.
   ========================================================== */
@media (max-width: 767px) {
  .kn-pill-detail-text,
  .kn-skill-pop-desc,
  .kn-need-item p,
  .kn-grown-text p,
  .hv3-chat-bubble,
  .ct-faq-a,
  .ct-faq-a p {
    font-size: 18px !important;
    line-height: 1.6 !important;
  }

  /* Tiêu đề trong popup/thẻ: lớn hơn nội dung một bậc cho rõ thứ bậc */
  .kn-pill-detail-title,
  .kn-skill-pop-title {
    font-size: 19px !important;
    line-height: 1.35 !important;
  }
}

/* Khung nội dung 4 box section 2: chữ 18px cao hơn ảnh -> cho phép giãn
   xuống (min-height = ảnh) thay vì khoá cứng làm cắt chữ. */
@media (max-width: 767px) {
  /* Popup ĐƯỢC PHÉP VƯỢT KHUNG ảnh (yêu cầu 06/10): trước đây khoá cao bằng
     ảnh nên chữ 18px không vừa, phải thu xuống 15px + cuộn. Nay cho giãn tự do
     theo nội dung và đè lên các box xung quanh -> đọc trọn, không cuộn.
     .kn-skill phải có z-index cao hơn anh em khi mở, xem .kn-skill.is-open. */
  .kn-skill-pop {
    height: auto !important;
    min-height: var(--kn-img-h, 0) !important;   /* ít nhất che kín ảnh */
    max-height: none !important;
    overflow: visible !important;
    justify-content: center !important;
    padding: 14px 15px !important;
    /* Nới rộng sang hai bên để chữ có chỗ thở, vẫn nằm trong màn hình */
    left: -6px !important;
    right: -6px !important;
    width: auto !important;
    border-radius: 14px !important;
    box-shadow: 0 14px 34px rgba(17, 40, 78, .22) !important;
    background: #fff !important;   /* đục hẳn: popup tràn ra ngoài ảnh, nền .96
                                      để lộ chữ của section phía dưới xuyên qua */
  }

  /* Thẻ đang mở phải nổi lên trên, nếu không popup bị box kế tiếp che mất */
  .kn-skill { position: relative; }
  .kn-skill.is-open { z-index: 30 !important; }

  .kn-skill-pop-title { font-size: 18px !important; line-height: 1.3 !important; margin-bottom: 7px !important; }
  .kn-skill-pop-desc  { font-size: 18px !important; line-height: 1.5 !important; }
}

/* ==========================================================
   SECTION 2 — BỐ TRÍ 3 THẺ (thiếu nhi, 07/10)
   Bản mẫu giáo có 4 thẻ đối xứng. Thiếu nhi chỉ 3: Tự chủ (trái dưới),
   Chủ động (trên, lệch phải), Thấu cảm (phải, giữa) — theo ảnh 1.png.
   ========================================================== */
@media (min-width: 768px) {
  .kn-skill--thegioi { left: 50% !important; top: 20% !important; --kn-dx: -430px !important; }
  .kn-skill--tiengnoi { left: 50% !important; top: -2% !important; --kn-dx:  250px !important; }
  .kn-skill--bansac  { left: 50% !important; top: 22% !important; --kn-dx:  470px !important; }

  /* Ảnh bé giữa: ảnh thiếu nhi đã kèm badge nên cần lớn hơn bản mẫu giáo
     để chữ trong ảnh đọc được (theo ảnh tham chiếu 1.png). */
  /* Asset 57 là ảnh DỌC (625x900) kèm badge in sẵn -> giới hạn theo chiều
     cao để không chiếm hết bề ngang cung tròn. */
  .kn-center-kid {
    max-width: none !important;
    width: auto !important;
    max-height: 380px !important;
    height: auto !important;
  }
}

/* ==========================================================
   SECTION 2 — DI ĐỘNG: 3 THẺ (thiếu nhi, 07/10)
   Bản mẫu giáo xếp 4 thẻ thành lưới 2x2. Thiếu nhi chỉ 3 thẻ nên
   lưới 2 cột để lẻ 1 thẻ mồ côi + lệch hàng. Dùng 1 cột cho đều.
   ========================================================== */
@media (max-width: 767px) {
  .kn-skills-cards {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;  /* 2 cột: 2 thẻ trên, 1 thẻ dưới */
    gap: 14px !important;
    max-width: 340px;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .kn-skills-cards .kn-skill {
    position: relative !important;
    left: auto !important; top: auto !important;
    transform: none !important;
    --kn-dx: 0px !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .kn-skills-cards .kn-skill img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  /* Thẻ thứ 3 lẻ hàng -> cho chiếm trọn chiều ngang cho cân */
  .kn-skills-cards .kn-skill:last-child { grid-column: 1 / -1; max-width: 163px; margin: 0 auto !important; }

  /* Ảnh bé giữa + badge in sẵn: cần đủ lớn để đọc chữ trong ảnh */
  .kn-center-kid {
    max-width: none !important;
    width: auto !important;
    max-height: 290px !important;
    height: auto !important;
  }
}

/* ===================== Hành trình: ảnh bước 02 (07/10) =====================
   Ảnh bước 02 (Asset 61) là ảnh DỌC, rộng 60% mặc định nên tràn sang cột chữ
   bên phải và che "02 / DẪN DẮT CON". Thu hẹp + hạ xuống 80% (21% → 37.8%).
   Dùng top/width (không dùng transform) vì home-v3.js ghi đè transform mỗi
   khung hình khi cuộn — cùng lý do đã ghi ở rule bước 01. */
.hv3-step[data-step="2"] .hv3-step-photo {
  top: 37.8%;
  width: 42%;
  left: 14%;
}

/* ===================== kn-grown: tiêu đề gọn 2 dòng (07/10) =====================
   Tiêu đề thiếu nhi dài hơn bản mẫu giáo ("...con không chỉ giỏi thêm một
   chút.") nên vỡ thành 3 dòng. Giảm cỡ chữ để về đúng 2 dòng. */
.kn-grown-title {
  font-size: clamp(28px, 3.4svh, 40px) !important;
  line-height: 1.3 !important;
}


/* ==========================================================
   SỬA NÚT ZALO Ở THANH CTA DÍNH ĐÁY (07/10)
   .tn-mcta-btn--zalo dùng background: var(--ap-primary-container) nhưng biến
   này KHÔNG được khai báo ở bất kỳ file CSS nào -> nền trả về trong suốt,
   chữ trắng trên nền trắng = nút vô hình. Đặt thẳng màu xanh Zalo.
   ========================================================== */
.tn-mcta-btn--zalo {
  background: #0068ff !important;
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(0, 104, 255, .28) !important;
}

/* ==========================================================
   kn-grown: TIÊU ĐỀ CANH TRÁI TRÊN DESKTOP (07/10)
   Rule dùng chung (kn-need/kn-skills/kn-support/kn-grown) đặt
   text-align: center. Riêng kn-grown là khối 2 cột chữ-trái/ảnh-phải,
   các <p> bên dưới canh trái nên tiêu đề canh giữa bị lệch so với nội dung.
   Chỉ đổi kn-grown, 3 tiêu đề kia giữ canh giữa như cũ.
   ========================================================== */
@media (min-width: 768px) {
  .kn-grown-title {
    text-align: left !important;
  }
}

/* ==========================================================
   kn-support: ẢNH BÉ GIỮA LÀ ẢNH DỌC (thiếu niên, 07/10)
   Bản mẫu giáo/thiếu nhi dùng ảnh NGANG (1400x701) nên .kn-support-center
   giới hạn theo chiều rộng. Asset 96 là ảnh DỌC (938x1200) -> cùng width
   sẽ cao gấp đôi, trùm lên tiêu đề section. Giới hạn theo CHIỀU CAO.
   ========================================================== */
@media (min-width: 768px) {
  .kn-support-center {
    max-width: none !important;
    width: auto !important;
  }
  .kn-support-center img {
    width: auto !important;
    max-height: 430px !important;
    height: auto !important;
  }
}

@media (max-width: 767px) {
  .kn-support-center img {
    width: auto !important;
    max-height: 300px !important;
    height: auto !important;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ==========================================================
   SECTION 2: BỎ NỬA HÌNH TRÒN VẼ BẰNG CSS (thiếu niên, 07/10)
   Ảnh s2-kid.webp (Asset 90) đã có nửa hình tròn in sẵn trong ảnh, nên
   .kn-arc của CSS tạo ra vòng cung thứ hai bị trùng/lệch. Ẩn đi.
   ========================================================== */
.kn-skills-stage .kn-arc { display: none !important; }

/* ==========================================================
   kn-grown: ẢNH GIA ĐÌNH LÀ ẢNH DỌC (thiếu niên, 07/10)
   Asset 102 gốc 3485x1782 nhưng nội dung chỉ 1335x1513 ở góc phải, phần còn
   lại là nền trắng -> đã crop sát về 794x900 (dọc). Bản mẫu giáo/thiếu nhi
   dùng ảnh ngang nên canh theo width; ở đây canh theo CHIỀU CAO cho vừa khung.
   ========================================================== */
@media (min-width: 768px) {
  .kn-grown-photo img,
  .kn-grown-inner img {
    width: auto !important;
    max-width: 100% !important;
    max-height: 460px !important;
    height: auto !important;
    object-fit: contain !important;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
}

@media (max-width: 767px) {
  .kn-grown-photo img,
  .kn-grown-inner img {
    width: auto !important;
    max-height: 340px !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 auto;
    display: block;
  }
}


/* ===================== MOBILE — CỠ CHỮ & CANH CHỈNH (24/11) =====================
   Cùng thang chữ với trang About us, co theo bề ngang máy:
     320px -> thân 16 | 393px (iPhone 15 Pro) -> 17.3 | từ 410px -> 18
   Tiền tố #main-content để thắng các rule cũ mà không phải sửa từng chỗ. */
@media (max-width: 767px) {
  #main-content, .tn-mcta {
    --m-h1: clamp(28px, 7.9vw, 40px);
    --m-h2: clamp(27px, 7.6vw, 40px);
    --m-h3: clamp(18px, 5.1vw, 22px);
    --m-body: clamp(16px, 4.4vw, 18px);
    --m-small: clamp(15px, 4.1vw, 17px);
    --m-gutter: clamp(18px, 5.4vw, 32px);
  }
  #main-content { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

  /* hero */
  #main-content .hv3-hero-eyebrow,
  #main-content .hv3-hero-sub { font-size: var(--m-body); line-height: 1.45; }
  #main-content .hv3-hero-title { font-size: var(--m-h1); line-height: 1.15; }

  /* tiêu đề section */
  #main-content .kn-need-title,
  #main-content .kn-skills-title,
  #main-content .kn-support-title,
  #main-content .kn-grown-title,
  #main-content .hv3-journey-title,
  #main-content .hv3-cta-title {
    font-size: var(--m-h2) !important;
    line-height: 1.22 !important;
    text-wrap: balance;
  }
  #main-content .kn-need-inner,
  #main-content .kn-skills-inner,
  #main-content .kn-support-inner,
  #main-content .kn-grown-inner { padding-inline: var(--m-gutter); }
  /* <br> đặt cho desktop làm vỡ dòng trên khổ hẹp */
  #main-content .kn-need-title br,
  #main-content .kn-need-item p br,
  #main-content .hv3-journey-title br,
  #main-content .kn-pill-label br { display: none; }

  /* section 1 */
  #main-content .kn-need-list { align-items: start; gap: 28px 14px; }
  #main-content .kn-need-item p {
    font-size: var(--m-body) !important; line-height: 1.4 !important; text-wrap: balance;
  }
  #main-content .kn-need-item:last-child:nth-child(odd) {
    grid-column: 1 / -1; width: calc(50% - 7px); margin-inline: auto;
  }
  #main-content .kn-need-expert { grid-template-columns: minmax(0, 1fr) minmax(130px, 42%); }

  /* section 2 */
  #main-content .kn-badge--level { font-size: var(--m-h3); }
  #main-content .kn-cefr-main,
  #main-content .kn-cefr-sub { font-size: var(--m-small); line-height: 1.4; }
  #main-content .kn-cefr-tag { font-size: var(--m-body); }
  #main-content .kn-skill-pop-title { font-size: var(--m-h3) !important; }
  #main-content .kn-skill-pop-desc { font-size: var(--m-small) !important; line-height: 1.45 !important; }
  .kn-skill-tap::after { width: 28px; height: 28px; line-height: 27px; font-size: 20px; }

  /* Hành trình: BỎ GHIM, xếp dọc 3 bước. Khi ghim, khung chỉ còn ~510px
     (trừ header + thanh CTA đáy) nên cuối đoạn văn bị cắt/che.
     !important để thắng opacity/transform home-v3.js ghi theo vị trí cuộn. */
  #main-content .hv3-journey { height: auto; padding: 56px 0 24px; }
  #main-content .hv3-journey-sticky {
    position: static; height: auto; min-height: 0; overflow: visible;
  }
  #main-content .hv3-journey-title {
    position: static; transform: none; margin: 0 0 36px; padding: 0 var(--m-gutter);
  }
  #main-content .hv3-journey-stage {
    position: static; transform: none; max-width: none;
    display: flex; flex-direction: column; gap: 48px; padding: 0 var(--m-gutter);
  }
  #main-content .hv3-step {
    position: static; display: flex; flex-direction: column;
    opacity: 1 !important; visibility: visible !important;
  }
  #main-content .hv3-step .hv3-step-photo,
  #main-content .hv3-step .hv3-step-text {
    position: static; inset: auto; width: 100%; height: auto;
    opacity: 1 !important; transform: none !important;
  }
  #main-content .hv3-step .hv3-step-photo { order: -1; margin-bottom: 20px; }
  #main-content .hv3-step .hv3-step-photo img {
    width: 100%; height: auto; max-height: 320px; object-fit: contain;
    object-position: center bottom; transform: none;
  }
  #main-content .hv3-step-num,
  #main-content .hv3-step-name,
  #main-content .hv3-step-lead,
  #main-content .hv3-step-body { opacity: 1 !important; transform: none !important; }
  #main-content .hv3-step-num { font-size: clamp(64px, 18vw, 88px); line-height: .9; margin: 0 0 8px; }
  #main-content .hv3-step-name { font-size: clamp(20px, 5.6vw, 26px); line-height: 1.3; letter-spacing: 1.5px; }
  #main-content .hv3-step-body { font-size: var(--m-body); line-height: 1.6; margin-top: 10px; }
  #main-content .hv3-journey-dots { display: none; }

  /* hệ thống hỗ trợ */
  #main-content .kn-pill { font-family: 'Nunito', sans-serif; }  /* button không kế thừa font -> rơi về Arial */
  #main-content .kn-pill .kn-pill-label {
    font-size: var(--m-body); line-height: 1.35; padding: 14px 38px 14px 14px;
  }
  #main-content .kn-pill { flex-wrap: nowrap !important; }
  #main-content .kn-pill .kn-pill-label { min-width: 0; }
  #main-content .kn-pill-detail .kn-pill-detail-title { font-size: var(--m-h3) !important; }
  #main-content .kn-pill-detail .kn-pill-detail-text { font-size: var(--m-body) !important; line-height: 1.55 !important; }
  #main-content .kn-support-cta-btn { max-width: none; min-height: 54px; font-size: var(--m-body); }

  /* câu chuyện lớn lên, CTA, popup form */
  #main-content .kn-grown-text p,
  #main-content .hv3-chat-bubble { font-size: var(--m-body) !important; line-height: 1.6 !important; }
  #main-content .hv3-chat-zalo,
  #main-content .kn-chat-actions .kn-chat-lead { font-size: var(--m-body); min-height: 52px; }
  #main-content .hv3-cam-sound-chu { font-size: 15px; }
  #main-content .kn-pop-title { font-size: clamp(21px, 6vw, 25px); }
  #main-content .kn-pop-desc { font-size: var(--m-body); }
  #main-content .kn-cta-privacy { font-size: 15px; }
  .tn-mcta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tn-mcta .tn-mcta-btn { font-size: clamp(15px, 4.1vw, 17px); white-space: normal; min-width: 0; padding-inline: 8px; }
}

/* Thẻ kỹ năng: tên thẻ in sẵn ở ĐÁY ảnh, khung vuông + cover cắt mất tên.
   Giữ tỉ lệ gốc, canh đáy để các tên thẳng hàng. */
@media (max-width: 767px) {
  #main-content .kn-skills-cards { max-width: 100%; align-items: end; }
  #main-content .kn-skills-cards .kn-skill img { aspect-ratio: auto; object-fit: contain; }
  #main-content .kn-skills-cards .kn-skill:last-child { max-width: calc(50% - 7px); }
  /* ảnh đầu rất ngang + tên dài: cho trọn hàng để đọc được */
  #main-content .kn-skills-cards .kn-skill:first-child { grid-column: 1 / -1; max-width: 300px; margin-inline: auto !important; }
  #main-content .kn-skills-cards .kn-skill:last-child { grid-column: auto; max-width: none; margin: 0 !important; }
  /* không còn box cam kết dưới ảnh -> bỏ khoảng chừa 148px */
  #main-content .kn-center-kid { margin-bottom: 12px; }
}
