/* ============================================================
   maugiao.css — Styles for tieng-anh-mau-giao.html
   Cloned from thieunhi.css with roadmap section adapted for
   4 steps + image-based step numbers + pink Apollo footnote box.
============================================================ */

/* ── Local fonts ── */
@font-face {
  font-family: 'Brauer NeueVN';
  src: url('/landings/tieng-anh-mau-giao/fonts/BrauerNeueVN-Bold.woff2') format('woff2'),
    url('/landings/tieng-anh-mau-giao/fonts/BrauerNeueVN-Bold.woff') format('woff'),
    url('/landings/tieng-anh-mau-giao/fonts/BrauerNeueVN-Bold.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Brauer NeueVN';
  src: url('/landings/tieng-anh-mau-giao/fonts/BrauerNeueVN-Bold.woff2') format('woff2'),
    url('/landings/tieng-anh-mau-giao/fonts/BrauerNeueVN-Bold.woff') format('woff'),
    url('/landings/tieng-anh-mau-giao/fonts/BrauerNeueVN-Bold.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Brauer NeueVN';
  src: url('/landings/tieng-anh-mau-giao/fonts/BrauerNeueVN-Bold.woff2') format('woff2'),
    url('/landings/tieng-anh-mau-giao/fonts/BrauerNeueVN-Bold.woff') format('woff'),
    url('/landings/tieng-anh-mau-giao/fonts/BrauerNeueVN-Bold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Brauer NeueVN';
  src: url('/landings/tieng-anh-mau-giao/fonts/BrauerNeueVN-Bold.woff2') format('woff2'),
    url('/landings/tieng-anh-mau-giao/fonts/BrauerNeueVN-Bold.woff') format('woff'),
    url('/landings/tieng-anh-mau-giao/fonts/BrauerNeueVN-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Brauer NeueVN';
  src: url('/landings/tieng-anh-mau-giao/fonts/BrauerNeueVN-Bold.woff2') format('woff2'),
    url('/landings/tieng-anh-mau-giao/fonts/BrauerNeueVN-Bold.woff') format('woff'),
    url('/landings/tieng-anh-mau-giao/fonts/BrauerNeueVN-Bold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('/landings/tieng-anh-mau-giao/fonts/Nunito-Regular.woff2') format('woff2'),
    url('/landings/tieng-anh-mau-giao/fonts/Nunito-Regular.woff') format('woff'),
    url('/landings/tieng-anh-mau-giao/fonts/Nunito-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('/landings/tieng-anh-mau-giao/fonts/Nunito-SemiBold.woff2') format('woff2'),
    url('/landings/tieng-anh-mau-giao/fonts/Nunito-SemiBold.woff') format('woff'),
    url('/landings/tieng-anh-mau-giao/fonts/Nunito-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('/landings/tieng-anh-mau-giao/fonts/Nunito-Bold.woff2') format('woff2'),
    url('/landings/tieng-anh-mau-giao/fonts/Nunito-Bold.woff') format('woff'),
    url('/landings/tieng-anh-mau-giao/fonts/Nunito-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Baskerville';
  src: url('/landings/tieng-anh-mau-giao/fonts/Baskerville.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Baskerville';
  src: url('/landings/tieng-anh-mau-giao/fonts/Baskerville-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ap-primary: #1a5fa6;
  --ap-primary-container: #2576b9;
  --ap-on-primary-container: #e8f4ff;
  --ap-primary-fixed: #a8d8f0;
  --ap-primary-fixed-dim: #79c0e4;
  --ap-secondary: #fecc00;
  --ap-secondary-soft: #ffe380;
  --ap-tertiary: #f5443c;
  --ap-tertiary-soft: #ffb3d5;
  --ap-surface: #f8fafb;
  --ap-surface-container-low: #f2f4f5;
  --ap-surface-container: #eceeef;
  --ap-on-surface: #191c1d;
  --ap-on-surface-variant: #414751;
  --ap-outline-variant: #cccccc;
  --ap-outline: #b0b0b0;
  --ap-success: #16a34a;
  --display: 'Brauer NeueVN', sans-serif;
  --body: 'Nunito', sans-serif;
  --shadow-sm: 0 6px 18px rgba(37, 118, 185, 0.07);
  --shadow-md: 0 14px 36px rgba(37, 118, 185, 0.09);
  --shadow-lg: 0 28px 60px rgba(37, 118, 185, 0.11);
}

/* ── RESET Apollo global CSS overrides ── */
html {
  overflow-x: hidden;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body,
body.new-landing-page,
body.cat-page,
body.new-landing-page.cat-page {
  background: #fff !important;
  background-image: none !important;
  background-color: #fff !important;
  overflow-x: hidden;
  overflow-x: clip;
}

#main-content,
main#main-content {
  background: #fff !important;
  background-image: none !important;
  background-color: #fff !important;
}

.new-landing-page section,
.cat-page section {
  background-image: none;
}

body {
  font-family: var(--body);
  color: var(--ap-on-surface);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

.dropdown-menu-apollo2025,
.dropdown-menu-apollo2025-mobile {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
}

.form-error {
  display: block;
  color: #ef4444;
  font-size: 18px;
  font-family: var(--body);
  margin-top: 4px;
}

/* ── Header actions (khung theo home-version-3): Đăng nhập + Hotline ── */
.header-actions-new2025 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hv3-btn-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1.5px solid #2576b9;
  border-radius: 999px;
  background: transparent;
  color: #2576b9;
  font-family: var(--body);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.2s ease;
}

.hv3-btn-login:hover {
  background: rgba(37, 118, 185, 0.08);
  color: #2576b9;
  text-decoration: none;
}

.hv3-btn-login img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.hv3-btn-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  background: #ffd95c;
  color: #252525;
  font-family: var(--body);
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.hv3-btn-book:hover {
  background: #f5cb42;
  color: #252525;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Header desktop: lưới 3 cột logo | menu | nút để menu nằm chính giữa
   thanh header (mặc định logo flex:1 đẩy cả menu dồn sang phải).
   `display: contents` cho phép menu và cụm nút thành 2 cột riêng. */
@media (min-width: 769px) {
  .header-fixed-navRevamap-New2025.desktop .navRevamap-New2025 {
    max-width: 1620px;
    padding-left: 50px;
    padding-right: 50px;
    display: grid;
    grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
    align-items: center;
  }

  .header-fixed-navRevamap-New2025.desktop .menu-and-actions-new2025-container {
    display: contents;
  }

  .header-fixed-navRevamap-New2025.desktop .main-menu-new2025 {
    justify-self: center;
    padding: 0;
  }

  .header-fixed-navRevamap-New2025.desktop .header-actions-new2025 {
    justify-self: end;
  }
}

/* Màn hẹp (tablet ngang / laptop nhỏ): không đủ chỗ cho cả 2 nút nên ẩn nút
   Đăng nhập, giữ Hotline — tránh header tràn ra ngoài mép phải. */
@media (min-width: 769px) and (max-width: 1180px) {
  .header-fixed-navRevamap-New2025.desktop .hv3-btn-login {
    display: none;
  }
}

/* Thu gọn header desktop theo nấc (như home-version-3) để menu + 2 nút
   + EN không bị ép đè lên nhau trên laptop / cửa sổ hẹp. */
@media (min-width: 769px) and (max-width: 1600px) {
  .header-fixed-navRevamap-New2025.desktop .navRevamap-New2025 {
    padding-left: 28px;
    padding-right: 28px;
    gap: 16px;
  }

  .header-fixed-navRevamap-New2025.desktop .main-menu-new2025,
  .header-fixed-navRevamap-New2025.desktop .menu-and-actions-new2025-container {
    gap: 16px;
  }

  .header-fixed-navRevamap-New2025.desktop .menu-top-link-new2025 {
    font-size: 15px;
    white-space: nowrap;
  }

  .header-fixed-navRevamap-New2025.desktop .dropdown-menu-apollo2025 {
    width: 14px;
    height: auto;
  }
}

@media (min-width: 769px) and (max-width: 1440px) {
  .header-fixed-navRevamap-New2025.desktop .navRevamap-New2025 {
    padding-left: 20px;
    padding-right: 20px;
    gap: 12px;
  }

  .header-fixed-navRevamap-New2025.desktop .main-menu-new2025,
  .header-fixed-navRevamap-New2025.desktop .menu-and-actions-new2025-container,
  .header-actions-new2025 {
    gap: 12px;
  }

  .header-fixed-navRevamap-New2025.desktop .menu-top-link-new2025 {
    font-size: 13px;
  }

  .header-fixed-navRevamap-New2025.desktop .logo-apollo-new2025 img {
    min-width: 200px;
    max-width: 200px;
    height: 28px;
  }

  .header-fixed-navRevamap-New2025.desktop .hv3-btn-login,
  .header-fixed-navRevamap-New2025.desktop .hv3-btn-book {
    font-size: 12.5px;
    padding: 8px 14px;
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
  .header-fixed-navRevamap-New2025.desktop .logo-apollo-new2025 img {
    min-width: 170px;
    max-width: 170px;
    height: 24px;
  }

  .header-fixed-navRevamap-New2025.desktop .menu-top-link-new2025 {
    font-size: 12.5px;
  }

  .header-fixed-navRevamap-New2025.desktop .hv3-btn-login,
  .header-fixed-navRevamap-New2025.desktop .hv3-btn-book {
    font-size: 12px;
    padding: 7px 11px;
  }
}

/* Tablet dọc: thu nhỏ thêm logo/menu, bỏ nút EN để vừa 1 hàng. */
@media (min-width: 769px) and (max-width: 960px) {
  .header-fixed-navRevamap-New2025.desktop .navRevamap-New2025 {
    padding-left: 16px;
    padding-right: 16px;
    gap: 10px;
  }

  .header-fixed-navRevamap-New2025.desktop .main-menu-new2025 {
    gap: 8px;
  }

  .header-fixed-navRevamap-New2025.desktop .logo-apollo-new2025 img {
    min-width: 130px;
    max-width: 130px;
    height: auto;
  }

  .header-fixed-navRevamap-New2025.desktop .menu-top-link-new2025 {
    font-size: 11.5px;
  }

  .header-fixed-navRevamap-New2025.desktop .dropdown-menu-apollo2025 {
    width: 10px;
  }

  .header-fixed-navRevamap-New2025.desktop .header-action_lang-2025 {
    display: none;
  }

  .header-fixed-navRevamap-New2025.desktop .hv3-btn-book {
    font-size: 11.5px;
    padding: 6px 10px;
  }
}


/* Shared tokens */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #2667e0;
}

.tn-eyebrow {
  display: block;
  font-family: var(--body);
  font-size: 18px;
  font-weight: 700;
  color: #000;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.tn-eyebrow--light {
  color: #fff;
}

.tn-section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 3.8vw, 44px);
  color: #2667e0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.tn-section-title--white {
  color: #fff;
}

.tn-section-sub {
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ap-on-surface-variant);
  max-width: 640px;
}

.tn-section-sub--white {
  color: rgba(255, 255, 255, 0.72);
}

.tn-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.tn-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tn-reveal-d1 {
  transition-delay: 0.15s;
}

.tn-reveal-d2 {
  transition-delay: 0.3s;
}

.tn-reveal-d3 {
  transition-delay: 0.45s;
}

/* ====================================================
   HERO — full-bleed video, header overlay (transparent at top)
==================================================== */
.tn-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.tn-hero-video {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* ── Header overlay state: transparent + hide menu when at top of page ── */
.header-fixed-navRevamap-New2025 {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-fixed-navRevamap-New2025 .menu-and-actions-new2025-container,
.header-fixed-navRevamap-New2025 .hamburger-menu-mobile,
.header-fixed-navRevamap-New2025 .navRevamap-New2025-mobile .logo-apollo-new2025-container-mobile {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.is-at-top .header-fixed-navRevamap-New2025 {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border-bottom: 0 !important;
}

/* Swap logo to white variant when overlaying video at top */
body.is-at-top .logo-apollo-new2025 img,
body.is-at-top .logo-apollo-new2025-mobile img {
  content: url('/landings/tieng-anh-mau-giao/Assets/kindy_new-logo-white.svg');
}

/* Khi ở đầu trang (đè video hero), giữ menu hiển thị nhưng đổi sang màu
   trắng tương phản, loại bỏ background/border của các nút để hoà vào hero. */
body.is-at-top .header-fixed-navRevamap-New2025.desktop .menu-top-link-new2025,
body.is-at-top .header-fixed-navRevamap-New2025.desktop .header-action_lang-2025 a,
body.is-at-top .header-fixed-navRevamap-New2025.desktop .login-btn-apollo2025 {
  color: #fff !important;
}

body.is-at-top .header-fixed-navRevamap-New2025.desktop .hv3-btn-login {
  color: #fff !important;
  border-color: #fff !important;
}

body.is-at-top .header-fixed-navRevamap-New2025.desktop .btn-login-apollo2025 {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.is-at-top .header-fixed-navRevamap-New2025.desktop .dropdown-menu-apollo2025 {
  filter: brightness(0) invert(1);
}

/* Mobile hamburger: invert sang trắng để rõ trên video tối */
body.is-at-top .header-fixed-navRevamap-New2025.mobile .hamburger-menu-mobile {
  filter: brightness(0) invert(1);
}

/* ── Hero overlapping form bar ── */
.tn-hero-form-bar {
  position: absolute;
  bottom: 36px;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 0 24px;
}

.tn-form-bar-inner {
  max-width: 820px;
  margin: 0 auto;
  background: transparent;
  border: 0;
  border-radius: 20px;
  padding: 26px 28px 22px;
  box-shadow: 0 24px 60px rgba(15, 32, 64, 0.28), 0 4px 12px rgba(15, 32, 64, 0.10);
}

.tn-form-bar-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  max-width: 1260px;
  margin: 0 auto 18px;
}

.tn-form-bar-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 48px);
  color: #fecc00;
  letter-spacing: -0.01em;
  text-align: center;
  width: 100%;
}

.tn-form-bar-fields {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.tn-form-bar-group {
  flex: 1;
  min-width: 0;
}

.tn-form-bar-group input,
.tn-form-bar-group select {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.30);
  background: rgba(255, 255, 255, 0.10);
  font-family: var(--body);
  font-size: 20px;
  color: #fff;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.tn-form-bar-group input::placeholder {
  color: rgba(255, 255, 255, 0.70);
}

.tn-form-bar-group input:focus,
.tn-form-bar-group select:focus {
  border-color: #fecc00;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 4px rgba(254, 204, 0, 0.18);
}

.tn-form-bar-btn {
  flex: 0 0 auto;
  height: 56px;
  padding: 0 28px;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(135deg, #fecc00 0%, #ffd633 100%);
  color: #1a5fa6;
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 26px rgba(254, 204, 0, 0.34);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}

.tn-form-bar-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(254, 204, 0, 0.44);
  filter: brightness(1.04);
}

@media (max-width: 900px) {
  .tn-hero-form-bar {
    bottom: 20px;
    padding: 0 16px;
  }

  .tn-form-bar-inner {
    padding: 20px 20px 18px;
  }

  .tn-form-bar-fields {
    flex-wrap: wrap;
  }

  .tn-form-bar-group {
    flex: 1 1 calc(50% - 6px);
    min-width: calc(50% - 6px);
  }

  .tn-form-bar-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .tn-form-bar-group {
    flex: 1 1 100%;
    min-width: 100%;
  }
}

/* ====================================================
   SECTION 1: PHILOSOPHY
==================================================== */
.tn-philosophy {
  position: relative;
  background: #fff;
}

/* ── Section 1: 3-frame scroll-driven sequence ── */
.tn-sequence-spacer {
  position: relative;
  height: 300vh;
}

.tn-sequence-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* top padding clears Apollo's fixed header (~80px) */
  padding: 110px 0 24px;
}

.tn-sequence {
  width: 100%;
  margin: 0 auto;
}

.tn-sequence-stage {
  position: relative;
  width: 100%;
  height: clamp(420px, calc(100vh - 158px), 760px);
  overflow: hidden;
  background: #fff;
}

.tn-sequence-slide {
  position: absolute;
  inset: 0;
  opacity: 1;
  transform: translate3d(100%, 0, 0);
  pointer-events: none;
  will-change: transform;
  background-image: url('/landings/tieng-anh-mau-giao/Assets/bg_slides.webp');
  background-repeat: no-repeat;
  background-size: 300% auto;
  background-position: 0% bottom;
  padding-left: calc(max(0px, (100% - 1260px) / 2));
  padding-right: calc(max(0px, (100% - 1260px) / 2));
}

.tn-sequence-slide[data-idx="0"] {
  transform: translate3d(0, 0, 0);
  background-position: 0% bottom;
}

.tn-sequence-slide[data-idx="1"] {
  background-position: 50% bottom;
}

.tn-sequence-slide[data-idx="2"] {
  background-position: 100% bottom;
}

.tn-sequence-slide.is-active {
  pointer-events: auto;
}

/* Layer 2: overlay bg phủ đáy 3 slide — tạo lớp foreground (mây/đất) */
.tn-sequence-slide::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100px;
  background: url('/landings/tieng-anh-mau-giao/Assets/kindy_bg_trust_bottom.webp') right top / cover no-repeat;
  pointer-events: none;
  z-index: 3;
}

/* Frame: text trái + ảnh phải, nền trắng. .tn-sequence-frame được
   gắn cùng thẻ với .tn-sequence-slide nên KHÔNG đặt max-width/margin ở đây
   — sẽ co slide lại khiến transform translate(100%) không đẩy đủ xa. */
.tn-sequence-frame {
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.tn-frame-text {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 5vw, 96px);
  position: relative;
  z-index: 2;
}

.tn-frame-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(24px, 3.6vw, 48px);
  color: #2667e0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.tn-frame-desc {
  font-family: var(--body);
  font-size: clamp(18px, 1.5vw, 20px);
  color: var(--ap-on-surface-variant);
  line-height: 1.7;
  margin: 0;
  max-width: 520px;
}

/* Slide 2/3 — quote-style text */
.tn-frame-quote {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 32px);
  color: var(--ap-primary);
  line-height: 1.4;
  margin: 0;
  max-width: 560px;
}

.tn-frame-quote strong {
  color: var(--ap-primary-container);
  font-weight: 800;
}

.tn-frame-visual {
  flex: 1 1 50%;
  position: relative;
  z-index: 2;
}

.tn-frame-bg {
  position: absolute;
  width: 92%;
  bottom: 0;
  right: calc(-4% + 100px);
  z-index: 1;
  pointer-events: none;
}

.tn-frame-kids {
  position: absolute;
  width: 78%;
  bottom: 0;
  right: calc(6% + 100px);
  z-index: 2;
  pointer-events: none;
}

/* Slide 1 — layout đặc biệt: title ở giữa (trên), background full-width, kid ở giữa (dưới) */
.tn-sequence-slide[data-idx="0"] .tn-sequence-frame,
.tn-sequence-slide[data-idx="0"].tn-sequence-frame {
  flex-direction: column;
}

.tn-sequence-slide[data-idx="0"] .tn-frame-text {
  flex: 0 0 auto;
  width: 100%;
  text-align: center;
  align-items: center;
  padding: 40px 24px 0;
  transform: none;
}

.tn-sequence-slide[data-idx="0"] .tn-frame-title {
  margin-left: auto;
  margin-right: auto;
  max-width: 1100px;
  font-size: clamp(22px, 4.5vw, 36px);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.tn-sequence-slide[data-idx="0"] .tn-frame-title em {
  display: inline-block;
  font-size: clamp(28px, 6vw, 48px);
  font-style: italic;
  font-weight: 800;
  margin-top: 4px;
}

.tn-sequence-slide[data-idx="0"] .tn-frame-visual {
  flex: 1 1 auto;
  width: 100%;
}

/* Slide 1: bg trải full-width, kid căn giữa ngang */
.tn-sequence-slide[data-idx="0"] .tn-frame-bg {
  width: 100%;
  left: 0;
  right: 0;
  bottom: -100px;
  transform: scale(1);
  transform-origin: center bottom;
}

.tn-sequence-slide[data-idx="0"] .tn-frame-kids {
  width: 78%;
  left: 50%;
  right: auto;
  bottom: 0;
  transform: translateX(-50%);
  transform-origin: center bottom;
}

/* Slide 3 — layout giống slide 2: text trên (căn giữa), bg full-width, kid full-height căn giữa */
.tn-sequence-slide[data-idx="2"] .tn-sequence-frame,
.tn-sequence-slide[data-idx="2"].tn-sequence-frame {
  flex-direction: column;
}

.tn-sequence-slide[data-idx="2"] .tn-frame-text {
  flex: 0 0 auto;
  width: 100%;
  text-align: left;
  align-items: flex-start;
  padding: 40px clamp(24px, 5vw, 96px) 0;
}

.tn-sequence-slide[data-idx="2"] .tn-frame-desc {
  margin-left: 0;
  margin-right: auto;
  max-width: 630px;
}

.tn-sequence-slide[data-idx="2"] .tn-frame-visual {
  flex: 1 1 auto;
  width: 100%;
}

/* Slide 3 — 2 background phụ (left + right) trải full chiều cao visual area */
.tn-sequence-slide[data-idx="2"] .tn-frame-bg-side {
  position: absolute;
  top: 0;
  bottom: 0;
  height: 100%;
  width: auto;
  max-width: 60%;
  object-fit: contain;
  object-position: bottom;
  z-index: 1;
  pointer-events: none;
}

.tn-sequence-slide[data-idx="2"] .tn-frame-bg-side--left {
  left: 0;
  object-position: left bottom;
}

.tn-sequence-slide[data-idx="2"] .tn-frame-bg-side--right {
  right: 0;
  object-position: right bottom;
}

.tn-sequence-slide[data-idx="2"] .tn-frame-kids {
  height: 100%;
  width: auto;
  max-width: 100%;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, calc(-50% + 30px));
  transform-origin: center center;
  object-fit: contain;
}

/* Slide 2 — layout giống slide 1: text trên (căn giữa), bg full-width, kid căn giữa lớn */
.tn-sequence-slide[data-idx="1"] .tn-sequence-frame,
.tn-sequence-slide[data-idx="1"].tn-sequence-frame {
  flex-direction: column;
}

.tn-sequence-slide[data-idx="1"] .tn-frame-text {
  flex: 0 0 auto;
  width: 100%;
  text-align: left;
  align-items: flex-start;
  padding: 40px clamp(24px, 5vw, 96px) 0;
}

.tn-sequence-slide[data-idx="1"] .tn-frame-desc {
  margin-left: 0;
  margin-right: auto;
  max-width: 630px;
}

.tn-sequence-slide[data-idx="1"] .tn-frame-visual {
  flex: 1 1 auto;
  width: 100%;
}

.tn-sequence-slide[data-idx="1"] .tn-frame-bg {
  width: 100%;
  left: 0;
  right: 0;
  bottom: -100px;
  transform: scale(1);
  transform-origin: center bottom;
}

.tn-sequence-slide[data-idx="1"] .tn-frame-kids {
  height: 100%;
  width: auto;
  max-width: 100%;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  object-fit: contain;
}

@media (max-width: 768px) {
  /* S1 mobile: xếp dọc — text trên, visual dưới */
  .tn-sequence-frame {
    flex-direction: column;
  }

  .tn-frame-text {
    flex: 0 0 auto;
    width: 100%;
    padding: 28px 20px 12px;
  }

  .tn-frame-visual {
    flex: 1 1 auto;
    width: 100%;
    min-height: 260px;
    position: relative;
  }

  /* Slide backdrop (bg_slides.png) is sized as `300% auto` on desktop —
     auto height follows the bg's aspect ratio. On a narrow mobile viewport
     that produces a thin grass band at the bottom with a tall white gap
     above. Scale the backdrop up so the grass+sky band fills most of the
     slide and the hero looks grounded. */
  .tn-sequence-slide {
    background-size: 500% auto;
  }

  .tn-frame-bg {
    width: 96%;
    right: 2%;
    bottom: 0;
  }

  .tn-frame-kids {
    width: 68%;
    right: 16%;
    bottom: 0;
  }

  /* Lift the slide-0 kids photo 100px so it sits above the cloud-wave
     overlay (.tn-sequence-slide::after, 100px, z-index 3) that was
     cropping their lower half, and let it span full width. */
  .tn-sequence-slide[data-idx="0"] .tn-frame-kids {
    width: 100%;
    right: 0;
    bottom: 100px;
  }

  .tn-sequence-stage {
    border-radius: 14px;
  }
}

/* ============================================================
   SECTION 1.5: LỘ TRÌNH MAY ĐO
============================================================ */
.tn-roadmap-bespoke {
  position: relative;
  color: #0b1428;
}

.tn-rb-spacer {
  position: relative;
  height: 260vh;
}

.tn-rb-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.tn-rb-bg {
  position: absolute;
  inset: 0;
  background:
    url('/landings/tieng-anh-mau-giao/Assets/kindy_apo_1.webp') top left / auto auto no-repeat,
    url('/landings/tieng-anh-mau-giao/Assets/kindy_apo_2.webp') bottom right / auto auto no-repeat,
    #ffffff;
  z-index: 0;
}

.tn-rb-overlay {
  display: none;
}

.tn-rb-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 64px 32px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 1fr;
  row-gap: 24px;
}

.tn-rb-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 46px);
  color: #2667e0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 80px 0 0 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.tn-rb-title.is-visible {
  opacity: 1;
  transform: none;
}

.tn-rb-title-accent {
  color: var(--ap-secondary);
}

.tn-rb-stairs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 32px;
  align-items: end;
  align-self: end;
  padding-bottom: 80px;
}

.tn-rb-card {
  padding: 0 0 0 20px;
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
  position: relative;
}

.tn-rb-card[data-step="1"] {
  transform: translateY(200px);
}

.tn-rb-card[data-step="2"] {
  transform: translateY(120px);
}

.tn-rb-card[data-step="3"] {
  transform: translateY(40px);
}

.tn-rb-card[data-step="4"] {
  transform: translateY(-40px);
}

.tn-rb-card.is-visible {
  opacity: 1;
}

.tn-rb-card[data-step="1"].is-visible {
  transform: translateY(120px);
}

.tn-rb-card[data-step="2"].is-visible {
  transform: translateY(40px);
}

.tn-rb-card[data-step="3"].is-visible {
  transform: translateY(-40px);
}

.tn-rb-card[data-step="4"].is-visible {
  transform: translateY(-120px);
}

.tn-rb-num {
  position: relative;
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.tn-rb-num img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.tn-rb-num::before {
  content: '';
  position: absolute;
  left: -20px;
  width: 1px;
  height: 480px;
  background: linear-gradient(to top, rgba(11, 20, 40, 0.3) 0%, rgba(11, 20, 40, 0) 100%);
}

.tn-rb-card[data-step="1"] .tn-rb-num::before {
  bottom: -180px;
}

.tn-rb-card[data-step="2"] .tn-rb-num::before {
  bottom: -240px;
}

.tn-rb-card[data-step="3"] .tn-rb-num::before {
  bottom: -320px;
}

.tn-rb-card[data-step="4"] .tn-rb-num::before {
  bottom: -380px;
}

.tn-rb-card-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  color: #0b1428;
  margin: 0 0 10px;
  line-height: 1.25;
}

.tn-rb-card-desc {
  font-family: var(--body);
  font-size: 18px;
  color: rgba(11, 20, 40, 0.85);
  line-height: 1.55;
  margin: 0;
  max-width: 95%;
}

.tn-rb-footnote {
  align-self: flex-end;
  justify-self: end;
  margin-right: 150px;
  text-align: center;
  background: #EFA1D5;
  color: #fff;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  padding: 18px 28px;
  border-radius: 15px;
  max-width: 360px;
  box-shadow: 0 10px 30px rgba(239, 161, 213, 0.35);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.tn-rb-footnote.is-visible {
  opacity: 1;
  transform: none;
}

.tn-rb-footnote p {
  margin: 4px 0;
}

.tn-rb-footnote p.tn-rb-footnote-em {
  font-weight: 700;
  font-size: 1.05em;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .tn-rb-spacer {
    height: auto;
  }

  .tn-rb-sticky {
    position: static;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  /* Push content xuống dưới Apo top-left và lên trên Apo bottom-right
     để hai mascot không bị đè bởi title / card / footnote.
     Apo 1 natural 373×714 (aspect 1:1.91) — ở 80px wide → 153px tall.
     Apo 2 natural 171×364 (aspect 1:2.13) — ở 80px wide → 170px tall. */
  .tn-rb-inner {
    height: auto;
    padding: 200px 20px 220px;
  }

  .tn-rb-title {
    margin-top: 20px;
    text-align: right;
  }

  .tn-rb-stairs {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: stretch;
    padding-bottom: 40px;
  }

  /* Decorative bg images use natural size on desktop; on narrow mobile
     viewports those PNGs (kindy_apo_1 / kindy_apo_2) overflow và che text.
     Shrink xuống 80px và pin sát góc — chỉ là decoration ở 2 góc. */
  .tn-rb-bg {
    background-size: 80px auto, 80px auto;
    background-position: top 12px left 10px, bottom 12px right 10px;
  }

  .tn-rb-title,
  .tn-rb-card,
  .tn-rb-card[data-step="1"],
  .tn-rb-card[data-step="2"],
  .tn-rb-card[data-step="3"],
  .tn-rb-card[data-step="4"],
  .tn-rb-footnote {
    opacity: 1 !important;
    transform: none !important;
  }

  .tn-rb-overlay {
    transform: translateY(0) !important;
  }

  .tn-rb-footnote {
    text-align: right;
    align-self: flex-end;
    margin-top: 16px;
  }
}

/* ====================================================
   SECTION 4: TRUST & PROOF (Sticky Sequence)
==================================================== */
.tn-trust {
  position: relative;
}

.tn-trust-spacer {
  height: 480vh;
  position: relative;
}

.tn-trust-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  /* top padding clears Apollo's fixed header (~80px) so eyebrow not hidden behind it */
  padding: 110px 0 30px;
  background: var(--ap-surface) url('/landings/tieng-anh-mau-giao/Assets/kindy_bg_trust.webp') top center / cover no-repeat;
  overflow: hidden;
}

.tn-trust-sticky::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  background: url('/landings/tieng-anh-mau-giao/Assets/kindy_bg_trust_bottom.webp') right top / cover no-repeat;
  pointer-events: none;
  z-index: 3;
}

.tn-trust-inner {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 40px;
}

.tn-trust-head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 24px;
}

.tn-trust-head-left .tn-section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  color: #2576b9;
  margin: 0;
  text-transform: none;
}

.tn-trust-head-right {
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ap-on-surface-variant);
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .tn-trust-head {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 30px;
  }

  /* Hạ subtitle xuống thấp hơn so với title trên di động */
  .tn-trust-head-right {
    margin-top: 40px;
  }
}

.tn-trust-gallery {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1260px;
  aspect-ratio: 22 / 9;
  max-height: calc(100vh - 320px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 90px auto 0;
}

.tn-trust-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 16px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.tn-trust-card.is-active {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(0deg);
}

.tn-trust-card.is-passed {
  opacity: 1;
  transform: translateY(calc(var(--stack-depth, 1) * -30px)) scale(calc(1 - var(--stack-depth, 1) * 0.05)) rotate(var(--stack-rot, 2deg));
}

.tn-trust-card-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(20px, 3vw, 40px) clamp(28px, 5vw, 72px);
  box-sizing: border-box;
}

.tn-trust-card-num {
  font-family: 'Baskerville', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(56px, 6.5vw, 100px);
  line-height: 1;
  color: #1f2937;
  letter-spacing: 0.02em;
  margin: 0 0 clamp(20px, 3vw, 44px);
}

.tn-trust-card-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 34px);
  line-height: 1.25;
  color: #111827;
  margin: 0 0 clamp(10px, 1.4vw, 18px);
}

.tn-trust-card-desc {
  font-family: var(--body);
  font-size: clamp(18px, 1.4vw, 20px);
  line-height: 1.55;
  color: #1f2937;
  margin: 0;
}

@media (max-width: 768px) {
  /* Mobile flow:
       1. User enters the Trust section and sees the head (eyebrow +
          headline + subtitle) above card 1 — both in normal scroll.
       2. As they keep scrolling, the head slides up out of view and
          card 1 sticks at the viewport top with a full 100vh portrait.
       3. Continued scroll cycles through cards 2→6, each sliding in
          from the right while the previous one exits to the left.
       4. After card 6 is reached, the sticky releases and the page
          continues to the next section.
     To achieve step 1 the head must scroll naturally — which it
     cannot do while it lives inside .tn-trust-sticky. A small JS in
     each page moves `.tn-trust-head` to be a sibling BEFORE
     `.tn-trust-spacer` on mobile (and back inside on desktop), so the
     CSS below assumes head sits outside the sticky region. The mobile
     *_mobile.png bg image is designed portrait with an empty top band
     for the card's own number/title/desc text. */
  .tn-trust {
    /* Move the section backdrop to .tn-trust so it covers both the
       (now-extracted) head and the sticky gallery seamlessly. */
    background: var(--ap-surface) url('/landings/tieng-anh-mau-giao/Assets/kindy_bg_trust.webp') top center / cover no-repeat;
  }

  .tn-trust-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 100px 20px 24px;
    margin: 0;
    transform: none;
  }

  .tn-trust-head-left .tn-section-title {
    font-size: clamp(26px, 7vw, 34px);
  }

  .tn-trust-head-right {
    font-size: 16px;
    margin: 0;
  }

  .tn-trust-spacer {
    height: 480vh;
  }

  .tn-trust-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 0;
    background: transparent;
    overflow: hidden;
  }

  /* Bottom wave overlay was designed for the desktop sticky card stack
     — on the new mobile slide layout it just covers the card image. */
  .tn-trust-sticky::after {
    display: none;
  }

  .tn-trust-inner {
    height: 100%;
    display: block;
    padding: 0;
  }

  .tn-trust-gallery {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
    margin: 0;
    overflow: hidden;
  }

  /* Each card fills the gallery slot, stacked absolutely. Default
     position is off-screen to the right (upcoming). The mobile bg
     image (*_mobile.png, swapped by JS) is designed portrait with an
     empty top band intended to hold the number/title/desc text — so
     content sits directly on the image with no opaque panel. */
  .tn-trust-card,
  .tn-trust-card.is-active,
  .tn-trust-card.is-passed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    aspect-ratio: auto;
    background-position: bottom center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 0;
    opacity: 1 !important;
    transform: translateX(100%) !important;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1 !important;
  }

  .tn-trust-card.is-active {
    transform: translateX(0) !important;
    z-index: 2 !important;
  }

  /* Cards earlier in the sequence than the active one — caught by
     .is-passed (set on activeIdx-1 by the existing JS) plus the
     :has() sibling selector for any card 2+ steps behind active. */
  .tn-trust-card.is-passed,
  .tn-trust-card:has(~ .tn-trust-card.is-active) {
    transform: translateX(-100%) !important;
    z-index: 1 !important;
  }

  /* Content sits at the top of the card directly on the image
     (transparent — no white panel). Generous top padding clears
     Apollo's fixed mobile header (~80px) plus breathing space; side
     padding gives the title room to wrap; bottom is 0 because the
     subjects in the bg image take over the lower half. */
  .tn-trust-card-content {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    padding: 110px 28px 0;
    background: transparent;
    flex: 0 0 auto;
    justify-content: flex-start;
  }

  /* Large italic Baskerville number — back in document flow at the
     top of the content block (not absolutely pinned like desktop). */
  .tn-trust-card-num {
    position: relative;
    top: auto;
    left: auto;
    font-size: clamp(56px, 17vw, 88px);
    line-height: 1;
    margin: 0 0 28px;
  }

  .tn-trust-card-title {
    width: 100%;
    max-width: 100%;
    font-size: 22px;
    line-height: 1.3;
    margin: 0 0 12px;
    cursor: auto;
    display: block;
  }

  /* No accordion arrow / toggle in the new layout — desc is always visible. */
  .tn-trust-card-title::after {
    content: none;
  }

  .tn-trust-card-desc {
    font-size: 16px;
    line-height: 1.5;
    max-height: none;
    margin: 0;
    opacity: 1;
    overflow: visible;
    transition: none;
  }
}

/* ====================================================
   SECTION 3.5: NIỀM TỰ HÀO (Testimonials)
   Sticky-scroll: title cố định, mỗi card fade lần lượt
==================================================== */
.tn-tuhao {
  position: relative;
}

.tn-tuhao-spacer {
  position: relative;
  height: 100vh;
  background: url('/landings/tieng-anh-mau-giao/Assets/kindy_bg_testimonial.webp') center calc(100% + 150px) / cover no-repeat;
}

.tn-tuhao-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
}

/* Overlay cũ (bg_form_top.png) bị tắt — chân trang đám mây dưới đây
   (.tn-tuhao-cloud-footer) thay thế nhiệm vụ chuyển cảnh. */
.tn-tuhao-sticky::after {
  content: none;
}

/* Chân trang đám mây — phủ ảnh mây ở đáy section để chuyển cảnh tự nhiên
   sang section "Mặt trời bé con" phía dưới. */
.tn-tuhao-cloud-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  line-height: 0;
  pointer-events: none;
  z-index: 3;
}
.tn-tuhao-cloud-footer img {
  display: block;
  width: 100%;
  height: auto;
}

.tn-tuhao-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 40px 0;
  display: flex;
  flex-direction: column;
}

.tn-tuhao-head {
  flex: 0 0 auto;
  margin-bottom: 0;
  text-align: center;
}

.tn-tuhao-title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(24px, 4.6vw, 42px);
  color: #2667e0;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 8px 0 0;
}

.tn-tuhao-subtitle {
  font-family: var(--body);
  font-weight: 600;
  font-size: 18px;
  color: #4b5563;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.4;
}

.tn-tuhao-stage {
  position: relative;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: stretch;
  max-width: 100%;
}

.tn-tuhao-quote-mark {
  display: block;
  width: 64px;
  height: auto;
  margin: 0 0 24px;
  pointer-events: none;
  user-select: none;
}

.tn-tuhao-list {
  position: relative;
  align-self: center;
  padding: 0 56px;
  transform: translateY(-100px);
}

.tn-tuhao-cards {
  position: relative;
  display: grid;
  max-width: 560px;
}

.tn-tuhao-card {
  grid-area: 1 / 1;
  max-width: 560px;
  padding: 0;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}

.tn-tuhao-card.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.45s ease, visibility 0s linear 0s;
}

.tn-tuhao-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(38, 103, 224, 0.25);
  background: #ffffff;
  color: #2667e0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 6px 18px rgba(38, 103, 224, 0.12);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  z-index: 4;
}

.tn-tuhao-nav svg {
  width: 22px;
  height: 22px;
  display: block;
}

.tn-tuhao-nav:hover,
.tn-tuhao-nav:focus-visible {
  background: #2667e0;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(38, 103, 224, 0.28);
  outline: none;
  transform: translateY(-50%) scale(1.05);
}

.tn-tuhao-nav--prev {
  left: 0;
}

.tn-tuhao-nav--next {
  right: 0;
}

.tn-tuhao-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  align-self: stretch;
  z-index: 2;
  min-height: 0;
}

.tn-tuhao-visual img {
  display: block;
  height: 70vh;
  max-height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.tn-tuhao-quote {
  font-family: var(--body);
  font-style: italic;
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.7;
  color: #1f2937;
  margin: 0 0 28px;
}

.tn-tuhao-author-row {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.tn-tuhao-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: #d1d5db;
  flex-shrink: 0;
}

.tn-tuhao-author-info {
  display: flex;
  flex-direction: column;
}

.tn-tuhao-author {
  font-family: var(--body);
  font-weight: 700;
  font-size: 18px;
  color: #1f2937;
  margin: 0 0 2px;
}

.tn-tuhao-role {
  font-family: var(--body);
  font-size: 18px;
  color: #6b7280;
  margin: 0;
}

.tn-tuhao-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 24px auto 0;
}

.tn-tuhao-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.tn-tuhao-dot:hover {
  background: #93b6f2;
}

.tn-tuhao-dot.is-active {
  background: #2667e0;
  transform: scale(1.3);
}

.tn-tuhao-dot:focus-visible {
  outline: 2px solid #2667e0;
  outline-offset: 2px;
}

@media (max-width: 900px) {
  /* Mobile: tách section thành 2 màn hình stack dọc.
     Screen 1: testimonial (title + card)
     Screen 2: ảnh gia đình + background (trees/buildings) */
  .tn-tuhao-spacer {
    height: auto;
    background: none;
  }

  .tn-tuhao-sticky {
    position: relative;
    top: auto;
    height: auto;
    display: block;
    overflow: visible;
    padding: 0;
  }

  .tn-tuhao-inner {
    height: auto;
    max-width: 100%;
    padding: 0;
  }

  /* Screen 1 */
  .tn-tuhao-head {
    padding: 60px 12px 0;
    margin-bottom: 0;
  }

  /* Giảm font title trên mobile để wrap đúng 2 dòng (theo cấu trúc <br /> trong HTML)
     thay vì 3 dòng do font desktop quá lớn. Áp dụng cho cả VN và EN. */
  .tn-tuhao-title {
    font-size: clamp(15px, 4vw, 19px);
    line-height: 1.4;
  }

  .tn-tuhao-subtitle {
    font-size: clamp(13px, 3.4vw, 16px);
  }

  .tn-tuhao-stage {
    display: block;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .tn-tuhao-list {
    padding: 24px 44px 60px;
    transform: none;
    min-height: calc(100vh - 220px);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .tn-tuhao-cards {
    max-width: 100%;
  }

  .tn-tuhao-card {
    padding: 0 4px;
    max-width: 100%;
  }

  .tn-tuhao-quote-mark {
    width: 48px;
  }

  .tn-tuhao-nav {
    width: 38px;
    height: 38px;
  }

  .tn-tuhao-nav svg {
    width: 18px;
    height: 18px;
  }

  /* Screen 2: ảnh gia đình + background */
  .tn-tuhao-visual {
    order: unset;
    min-height: 100vh;
    background: url('/landings/tieng-anh-mau-giao/Assets/kindy_bg_testimonial.webp') center bottom / cover no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
  }

  .tn-tuhao-visual img {
    height: auto;
    max-height: 85vh;
    width: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center bottom;
  }
}

/* ====================================================
   SECTION 6.5: Image copyright notice
==================================================== */
.tn-image-credit {
  background: #ffffff;
  padding: 20px 24px;
}

.tn-image-credit p {
  max-width: 1080px;
  margin: 0 auto;
  font-family: var(--body);
  font-style: italic;
  font-size: clamp(13px, 1.05vw, 14px);
  line-height: 1.6;
  color: #475569;
  text-align: center;
}

@media (max-width: 900px) {
  .tn-image-credit {
    padding: 16px 20px;
  }

  .tn-image-credit p {
    font-size: 13px;
    line-height: 1.55;
  }
}

/* ====================================================
   SECTION 6: FUTURE JOURNEY
==================================================== */
.tn-future {
  padding: 100px 0;
  background: var(--ap-surface);
  text-align: center;
}

.tn-future-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 40px;
}

.tn-future-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.2;
  color: #2576b9;
  margin-bottom: 60px;
}

.tn-future-title--single {
  margin-bottom: 0;
  color: #2667e0;
  font-size: clamp(22px, 3.4vw, 44px);
  text-transform: none;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .tn-future-title--single {
    font-size: clamp(22px, 5.4vw, 32px);
    line-height: 1.3;
  }
}

.tn-future-img {
  width: 100%;
}

.tn-future-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* ====================================================
   SECTION 7: BOTTOM LEAD FORM
==================================================== */
.tn-bottom-form {
  position: relative;
  padding: 80px 0 0;
  background-color: #ffffff;
  overflow: hidden;
  min-height: 760px;
}

.tn-bottom-form::before {
  content: '';
  position: absolute;
  top: 90px;
  left: 0;
  right: 0;
  height: 70%;
  background: url('/landings/tieng-anh-mau-giao/Assets/kindy_bg_form_top.webp') center top / 100% auto no-repeat;
  pointer-events: none;
  z-index: 1;
}

.tn-bottom-form::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 75%;
  background: url('/landings/tieng-anh-mau-giao/Assets/kindy_bg_form_bottom.webp') center top / 100% auto no-repeat;
  pointer-events: none;
  z-index: 2;
}

.tn-bf-balloon {
  position: absolute;
  top: 0;
  left: 55%;
  width: 12.96%;
  max-width: 178px;
  min-width: 113px;
  z-index: 3;
  pointer-events: none;
  animation: tnBfBalloonFloat 6s ease-in-out infinite alternate;
}

.tn-bf-balloon img {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes tnBfBalloonFloat {
  from { transform: translateY(0); }
  to   { transform: translateY(-22px); }
}

.tn-bf-teacher {
  position: absolute;
  right: 150px;
  bottom: 0;
  width: 45.24%;
  max-width: 702px;
  z-index: 3;
  pointer-events: none;
}

.tn-bf-teacher img {
  width: 100%;
  height: auto;
  display: block;
}

.tn-bf-inner {
  position: relative;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: 680px;
  z-index: 3;
}

.tn-bf-left {
  max-width: 540px;
}

.tn-bf-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 2.6vw, 36px);
  color: #2667e0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
}

.tn-bf-form {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: none;
}

.tn-bf-group {
  flex: 1;
  min-width: 0;
}

.tn-bf-group input {
  width: 100%;
  height: 56px;
  padding: 0 22px;
  border-radius: 14px;
  border: 0;
  background: #fff;
  color: #1f2937;
  font-family: var(--body);
  font-size: 18px;
  outline: none;
  box-sizing: border-box;
  transition: box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(15, 35, 80, 0.06);
}

.tn-bf-group input::placeholder {
  color: #9ca3af;
}

.tn-bf-group input:focus {
  box-shadow: 0 0 0 3px rgba(254, 204, 0, 0.45);
}

.tn-bf-btn {
  margin-top: 6px;
  height: 56px;
  border: 0;
  border-radius: 14px;
  background: #ffd95b;
  color: #1a3a6e;
  font-family: var(--body);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 14px rgba(254, 204, 0, 0.32);
}

.tn-bf-btn:hover {
  background: #fecc00;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(254, 204, 0, 0.4);
}

.tn-bf-privacy {
  margin-top: 16px;
  font-family: var(--body);
  font-size: 14px;
  color: #4b5563;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tn-bf-privacy a {
  color: #2667e0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tn-bf-privacy a:hover {
  opacity: 0.8;
}

@media (max-width: 1024px) {
  .tn-bottom-form {
    padding: 60px 0 40px;
    min-height: auto;
  }

  .tn-bf-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: auto;
    padding-bottom: 40px;
  }

  /* Mobile: ẩn hình thầy giáo + các bé vì khó canh vị trí khi
     viewport hẹp; khinh khí cầu nhỏ lại và lùi sang phải. */
  .tn-bf-teacher {
    display: none;
  }

  .tn-bf-balloon {
    top: 24px;
    left: auto;
    right: 8%;
    width: 17.82%;
    min-width: 89px;
    max-width: 138px;
  }
}

@media (max-width: 640px) {
  /* Mobile: chỉ hiển thị ảnh top (::before, kindy_bg_form_top.png 2881×1925),
     ẩn ảnh bottom (::after) để form area chỉ dùng color trắng — tránh ảnh
     bottom đè/lặp visual với top image. */
  .tn-bottom-form {
    padding: calc(100vw * 1925 / 2881) 0 40px !important;
    min-height: auto;
  }

  .tn-bottom-form::before {
    top: 0 !important;
    height: calc(100vw * 1925 / 2881) !important;
  }

  .tn-bottom-form::after {
    display: none !important;
  }

  .tn-bf-inner {
    padding: 0 20px 40px;
  }

  .tn-bf-title {
    font-size: 26.4px; /* +20% so với 22px */
    margin-top: 20px;
  }

  .tn-bf-btn {
    font-size: 14px;
    letter-spacing: 0;
    gap: 8px;
    white-space: nowrap;
  }

  .tn-bf-balloon {
    display: none;
  }
}

/* ====================================================
   SHORT-VIEWPORT COMPACT (e.g. 1024×600 tablet landscape)
   Apollo sticky header consumes top 80–110px; compact
   Sections 1.5 (Roadmap) and 4 (Trust) so content fits.
==================================================== */
@media (max-height: 700px) and (min-width: 901px) {
  /* Section 1.5 — Roadmap */
  .tn-rb-title {
    white-space: normal;
    font-size: clamp(24px, 3vw, 32px);
    margin-top: 40px;
  }
  .tn-rb-inner {
    padding: 32px 32px;
    row-gap: 16px;
  }
  .tn-rb-stairs {
    padding-bottom: 24px;
    column-gap: 20px;
  }
  .tn-rb-card-title {
    font-size: 20px;
  }
  .tn-rb-footnote {
    padding: 12px 20px;
    border-radius: 12px;
  }

  /* Section 4 — Trust */
  .tn-trust-sticky {
    padding: 80px 0 20px;
  }
  .tn-trust-head {
    margin-bottom: 16px;
    gap: 32px;
  }
  .tn-trust-head-left .tn-section-title {
    font-size: clamp(24px, 3vw, 32px);
  }
}

/* ====================================================
   DESKTOP TUNING
==================================================== */
@media (min-width: 1440px) {

  .tn-sequence,
  .tn-rb-inner,
  .tn-trust-inner,
  .tn-trust-gallery,
  .tn-future-inner,
  .tn-bf-inner {
    max-width: 1320px;
  }

  .tn-rb-stairs {
    column-gap: 56px;
  }

  .tn-trust-head {
    gap: 72px;
  }

  .tn-form-bar-inner {
    max-width: 880px;
  }
}

@media (max-width: 1200px) {

  .tn-rb-inner,
  .tn-trust-inner,
  .tn-future-inner,
  .tn-bf-inner {
    padding-left: 32px;
    padding-right: 32px;
  }

  .tn-trust-head {
    gap: 40px;
    margin-bottom: 40px;
  }

  .tn-rb-stairs {
    column-gap: 32px;
  }

  .tn-rb-card-title {
    font-size: 24px;
  }

  .tn-form-bar-inner {
    padding: 22px 24px 20px;
  }
}

@media (max-width: 960px) {

  .tn-rb-inner,
  .tn-trust-inner,
  .tn-future-inner,
  .tn-bf-inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .tn-rb-inner {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .tn-rb-title {
    margin-top: 40px;
  }

  .tn-rb-stairs {
    column-gap: 20px;
    padding-bottom: 56px;
  }

  .tn-rb-card {
    padding-left: 16px;
  }

  .tn-rb-card-title {
    font-size: 22px;
  }

  .tn-rb-card-desc {
    font-size: 18px;
  }

  .tn-rb-num::before {
    left: -16px;
  }

  .tn-trust-head {
    gap: 32px;
    margin-bottom: 32px;
  }

  .tn-form-bar-heading {
    padding: 0 16px;
  }

  .tn-form-bar-inner {
    padding: 20px 20px 16px;
  }
}

/* ── Footer isolation from Apollo global styles ── */
footer a {
  color: #2576b9 !important;
  text-decoration: none !important;
}

footer a.tn-footer-social {
  color: #fff !important;
}

footer p,
footer div {
  color: inherit;
}

/* ── Footer mobile layout ── */
@media (max-width: 768px) {
  .tn-footer {
    padding: 0 0 24px !important;
  }

  .tn-footer-wrap {
    position: relative;
    padding: 0 20px !important;
  }

  .tn-footer-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
  }

  .tn-footer-logo {
    position: absolute;
    right: 20px;
    bottom: 56px;
    align-self: auto;
    margin: 0;
  }

  .tn-footer-logo img {
    height: 56px !important;
  }

  .tn-footer-content {
    align-items: stretch !important;
    width: 100%;
    min-width: 0 !important;
    order: 2;
  }

  .tn-footer-links {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    margin-bottom: 16px !important;
  }

  .tn-footer-links a {
    display: block;
    width: 100%;
    padding: 18px 0 !important;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
  }

  .tn-footer-bottom {
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 16px !important;
  }

  .tn-footer-follow {
    align-items: flex-start !important;
    width: 100%;
  }

  .tn-footer-follow-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    width: 100%;
    gap: 16px !important;
  }

  .tn-footer-socials {
    order: -1;
  }

  .tn-footer-copyright {
    text-align: left;
  }
}

/* ============================================================
   SECTION 3.6: APOLLO EMBED — 90% MAX SCORE / TEACHERS / FACILITIES
   (Imported from https://apollo.edu.vn/tieng-anh-mau-giao)
============================================================ */

/* Apollo's global stylesheet hides `.desktop` on ≤767px viewports.
   Force the embedded sections to remain visible so our mobile CSS can style them. */
.tn-apollo-embed .desktop { display: block !important; }

/* Scrollable, no-JS overrides for the embedded Apollo carousels */
.tn-apollo-embed .ninetypercent-guarantee-maxscore-apllo2025 {
  background: url('/landings/tieng-anh-mau-giao/Assets/kindy_bg-student.webp') center/cover no-repeat;
  width: 100%;
}
.tn-apollo-embed .maincontent-ninetypercent-guarantee-maxscore {
  background-image: none;
}
.tn-apollo-embed .slides-wrapper-children-img-cards {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tn-apollo-embed .slides-wrapper-children-img-cards::-webkit-scrollbar { display: none; }
.tn-apollo-embed .all-children-img-cards {
  min-width: max-content;
}
.tn-apollo-embed .children-img-card-item {
  width: 280px;
  scroll-snap-align: start;
}
.tn-apollo-embed .slides-wrapper-teacher-img-cards {
  width: 100%;
  max-width: 1200px;
  height: auto;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 5px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tn-apollo-embed .slides-wrapper-teacher-img-cards::-webkit-scrollbar { display: none; }
.tn-apollo-embed .all-teacher-img-cards {
  display: flex;
  gap: 20px;
  min-width: max-content;
}
.tn-apollo-embed .teacher-img-card-item {
  scroll-snap-align: start;
}
.tn-apollo-embed .teacher-img-card-item img {
  background-image: url('/landings/tieng-anh-mau-giao/Assets/kindy_backgroun-brown.webp');
}
.tn-apollo-embed .facilities-section.desktop .facilities_carousel {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tn-apollo-embed .facilities-section.desktop .facilities_carousel::-webkit-scrollbar { display: none; }
.tn-apollo-embed .facilities-section.desktop .facilities_carousel-slide {
  scroll-snap-align: start;
}
.tn-apollo-embed .facilities_container {
  padding-bottom: 96px;
}

/* ---------- Tablet (≤ 1199px) ---------- */
@media (max-width: 1199px) {
  .tn-apollo-embed .maincontent-ninetypercent-guarantee-maxscore { padding: 72px 40px; gap: 40px; }
  .tn-apollo-embed .group-teacher-quality-container { padding: 72px 40px; gap: 40px; }
  .tn-apollo-embed .slides-wrapper-teacher-img-cards { max-width: 100%; }
  .tn-apollo-embed .facilities_container-title { padding: 72px 40px 40px; }
  .tn-apollo-embed .facilities-section.desktop .facilities_carousel { width: calc(100vw - 80px); max-width: 1200px; }
  .tn-apollo-embed .facilities-section.desktop .facilities_carousel,
  .tn-apollo-embed .facilities-section.desktop .facilities_carousel-slide { height: auto; }
  .tn-apollo-embed .facilities-section.desktop .facilities_carousel-slide { width: 80vw; max-width: 948px; padding-right: 24px; }
  .tn-apollo-embed .facilities-section.desktop .facilities_carousel-slide img { height: auto; aspect-ratio: 948/496; }
}

/* ---------- Mobile (≤ 767px) ---------- */
@media (max-width: 767px) {
  /* 90% guarantee */
  .tn-apollo-embed .maincontent-ninetypercent-guarantee-maxscore {
    padding: 48px 16px;
    gap: 28px;
    height: auto;
  }
  .tn-apollo-embed .main-title-ninetypercent-guarantee-maxscore {
    flex-direction: column;
    gap: 20px;
  }
  .tn-apollo-embed .main-text-title-ninetypercent-guarantee-maxscore h2 {
    font-size: 26px;
    line-height: 1.2;
  }
  .tn-apollo-embed .main-text-title-ninetypercent-guarantee-maxscore span {
    font-size: 18px;
  }
  .tn-apollo-embed .arrow-wrapper-ninetypercent-guarantee-maxscore { display: none; }
  .tn-apollo-embed .slides-wrapper-children-img-cards {
    width: 100%;
    margin: 0 -16px;
    padding: 0 16px;
    box-sizing: content-box;
  }
  .tn-apollo-embed .all-children-img-cards { gap: 16px; }
  .tn-apollo-embed .children-img-card-item {
    width: calc(100vw - 64px);
    max-width: 320px;
  }
  .tn-apollo-embed .children-img-card-item img {
    height: auto;
    aspect-ratio: 302/400;
  }
  .tn-apollo-embed .student-badge-desktop {
    font-size: 18px;
    height: 36px;
    width: auto;
    padding: 8px 16px;
    left: 16px;
  }
  .tn-apollo-embed .title-img-content-ninetypercent-guarantee-maxscore h3 { font-size: 20px; }
  .tn-apollo-embed .title-img-content-ninetypercent-guarantee-maxscore span { font-size: 18px; }
  /* Show overlay description by default on mobile (no hover) */
  .tn-apollo-embed .overlay-description { opacity: 1; }
  .tn-apollo-embed .image-wrapper::before { opacity: 1; }
  .tn-apollo-embed .description-text { font-size: 18px; }

  /* Teacher quality */
  .tn-apollo-embed .group-teacher-quality-container {
    padding: 48px 16px;
    gap: 24px;
  }
  .tn-apollo-embed .header-title-group-teacher-quality {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .tn-apollo-embed .header-title-group-teacher-quality h2 {
    font-size: 26px;
    width: auto !important;
    height: auto !important;
    line-height: 1.2;
  }
  .tn-apollo-embed .subtitle-and-logoih {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    align-items: flex-start;
  }
  .tn-apollo-embed .subtitle-and-logoih .logo-ih-teacher-quality { order: -1; width: 56px; height: 56px; }
  .tn-apollo-embed .subtitle-and-logoih img { width: 56px; height: 56px; }
  .tn-apollo-embed .subtitle-and-logoih span { font-size: 18px; width: 100%; line-height: 1.5; }
  .tn-apollo-embed .slides-wrapper-teacher-img-cards {
    width: 100%;
    max-width: 100%;
    margin: 0 -16px;
    padding: 0 16px;
    box-sizing: content-box;
  }
  .tn-apollo-embed .all-teacher-img-cards { gap: 16px; }
  .tn-apollo-embed .teacher-img-card-item {
    width: calc(100vw - 64px);
    max-width: 320px;
    gap: 16px;
  }
  .tn-apollo-embed .teacher-img-card-item img { aspect-ratio: 302/400; height: auto; }
  .tn-apollo-embed .title-img-content-teacher-quality h3 { font-size: 20px; }
  .tn-apollo-embed .title-img-content-teacher-quality span { font-size: 18px; }

  /* Facilities */
  .tn-apollo-embed .facilities_container { padding-bottom: 48px; }
  .tn-apollo-embed .facilities_container-title {
    padding: 48px 16px 24px;
    flex-direction: column;
    gap: 16px;
  }
  .tn-apollo-embed .facilities_container-title h3 { font-size: 26px; line-height: 1.2; }
  .tn-apollo-embed .arrow-new-apollo2025-facilities_container { display: none; }
  .tn-apollo-embed .facilities-section.desktop .facilities_carousel {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0 16px;
    box-sizing: border-box;
  }
  .tn-apollo-embed .facilities-section.desktop .facilities_carousel-slides {
    gap: 12px;
  }
  .tn-apollo-embed .facilities-section.desktop .facilities_carousel-slide {
    width: calc(100vw - 32px);
    max-width: 100%;
    height: auto;
    padding-right: 0;
  }
  .tn-apollo-embed .facilities-section.desktop .facilities_carousel-slide img {
    height: auto;
    aspect-ratio: 16/10;
    border-radius: 16px;
  }
}

/* ======================================================
   TOOLTIPS (.tn-tip triggers + floating .tn-tip-pop bubble)
====================================================== */
.tn-tip {
  position: relative;
  cursor: help;
  font-weight: 700;
  color: inherit;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: currentColor;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.tn-tip::after {
  content: "i";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05em;
  height: 1.05em;
  margin-left: 0.28em;
  vertical-align: 0.08em;
  font-family: var(--body);
  font-size: 0.72em;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  color: #fff;
  background: var(--ap-primary);
  border-radius: 50%;
  transition: background 0.18s ease, transform 0.18s ease;
}

.tn-tip:hover,
.tn-tip:focus-visible,
.tn-tip.is-open {
  color: var(--ap-primary);
  text-decoration-color: var(--ap-primary);
  outline: none;
}

.tn-tip:hover::after,
.tn-tip:focus-visible::after,
.tn-tip.is-open::after {
  background: var(--ap-primary-container);
  transform: scale(1.08);
}

/* Floating bubble appended to <body> so it is never clipped
   by card overflow/transform contexts. */
.tn-tip-pop {
  position: fixed;
  z-index: 2147483600;
  top: 0;
  left: 0;
  max-width: min(340px, calc(100vw - 24px));
  max-height: min(60vh, 460px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 16px 18px;
  background: #fff;
  color: var(--ap-on-surface);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  border: 1px solid var(--ap-outline-variant);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  pointer-events: none;
}

.tn-tip-pop.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.tn-tip-pop__title {
  display: block;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ap-primary);
  margin-bottom: 6px;
}

.tn-tip-pop__lead {
  display: block;
  font-style: italic;
  color: var(--ap-on-surface-variant);
  margin-bottom: 8px;
}

.tn-tip-pop p {
  margin: 0 0 8px;
}

.tn-tip-pop p:last-child {
  margin-bottom: 0;
}

.tn-tip-pop__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tn-tip-pop__list li {
  margin: 0 0 5px;
  padding: 0;
}

.tn-tip-pop__list li:last-child {
  margin-bottom: 0;
}

/* Close button (shown on touch / click-to-open) */
.tn-tip-pop__close {
  position: sticky;
  top: -16px;
  float: right;
  margin: -8px -8px 0 8px;
  width: 28px;
  height: 28px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  color: var(--ap-on-surface-variant);
  background: var(--ap-surface-container);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.tn-tip-pop.is-pinned .tn-tip-pop__close {
  display: inline-flex;
}

/* ====== Mobile sticky CTA ====== */
.tn-mcta {
  display: none;
}

@media (max-width: 768px) {
  .tn-mcta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9990;
    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);
  }
}

@media (max-width: 360px) {
  .tn-mcta-btn {
    font-size: 13px;
  }
}

/* ── Mobile: ẩn toàn bộ footer (giống trang promotion) ── */
@media (max-width: 768px) {
  .tn-footer {
    display: none !important;
  }
}
