/* ============================================================
   thieunhi.css — Styles for tieng-anh-thieu-nhi.html
   Extracted from inline <style> blocks.
============================================================ */

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

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

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

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

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

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

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

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

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

@font-face {
  font-family: 'Baskerville';
  src: url('/landings/en/tieng-anh-thieu-nhi/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;
}

@media (max-width: 768px) {
  .navRevamap-New2025-mobile {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hamburger-menu-mobile {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
  }

  .logo-apollo-new2025-container-mobile {
    margin: 0 auto;
  }
}

/* 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/en/tieng-anh-thieu-nhi/Assets/primary_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 .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;
  padding: 24px 0;
}

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

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

.tn-sequence-slide {
  position: absolute;
  inset: 0;
  opacity: 1;
  transform: translate3d(100%, 0, 0);
  pointer-events: none;
  will-change: transform;
}

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

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

/* Frame: text trái + ảnh phải, nền trắng */
.tn-sequence-frame {
  display: flex;
  align-items: stretch;
  background: #fff;
  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 text block (title + desc): dịch lên 100px so với vị trí mặc định */
.tn-sequence-slide[data-idx="0"] .tn-frame-text {
  transform: translateY(-100px);
}

/* Per-slide image scaling:
   - Slide 1 (idx=0): +40% larger
   - Slide 2 & 3 (idx=1,2): 80% of base (= 20% smaller)
   transform-origin keeps the visual anchored to the bottom-right of the frame. */
.tn-sequence-slide[data-idx="0"] .tn-frame-bg,
.tn-sequence-slide[data-idx="0"] .tn-frame-kids {
  transform: scale(1.4);
  transform-origin: right bottom;
}

.tn-sequence-slide[data-idx="1"] .tn-frame-kids,
.tn-sequence-slide[data-idx="2"] .tn-frame-kids {
  transform: scale(0.8);
  transform-origin: right bottom;
}

/* Slide 2 & 3 background: scale 0.8 × 1.3 = 1.04 (tăng thêm 30% so với .tn-frame-kids) */
.tn-sequence-slide[data-idx="1"] .tn-frame-bg,
.tn-sequence-slide[data-idx="2"] .tn-frame-bg {
  transform: scale(1.04);
  transform-origin: right bottom;
}

@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;
  }

  /* Slide 1 desktop applies `transform: translateY(-100px)` to the
     text block to lift the title above the photo. On mobile the layout
     is already stacked (text on top, visual below) — keeping that lift
     would push the title + desc above the .tn-sequence-stage's clip
     rect and only a few characters of the desc tail would peek through.
     Reset the transform so the heading is fully visible. */
  .tn-sequence-slide[data-idx="0"] .tn-frame-text {
    transform: none;
  }

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

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

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

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

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

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

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

.tn-rb-bg {
  position: absolute;
  inset: 0;
  background: #0b1428 url('/landings/en/tieng-anh-thieu-nhi/Assets/primary_bg_section3.png') center center / cover no-repeat;
  z-index: 0;
}

.tn-rb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 20, 40, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1;
  pointer-events: none;
  transform: translateY(100%);
  will-change: transform;
}

.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: #fff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 80px 0 0 0;
  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(3, 1fr);
  column-gap: 48px;
  align-items: end;
  align-self: end;
  padding-bottom: 80px;
}

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

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

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

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

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

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

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

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

.tn-rb-num {
  position: relative;
  width: 44px;
  height: 44px;
  background: #3475cf;
  color: #fff;
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

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

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

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

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

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

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

.tn-rb-footnote {
  align-self: flex-end;
  text-align: right;
  font-family: var(--display);
  color: var(--ap-secondary);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  line-height: 1.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;
}

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

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

  .tn-rb-inner {
    height: auto;
    padding: 60px 20px;
  }

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

  .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-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);
  overflow: hidden;
}

.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;
  background: var(--ap-surface);
}

.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;
  }
}

.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: 60px 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 the sticky releases and the page continues.
     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. */
  .tn-trust {
    background: var(--ap-surface);
  }

  .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;
  }

  .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;
  }

  .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;
  }

  .tn-trust-card.is-passed,
  .tn-trust-card:has(~ .tn-trust-card.is-active) {
    transform: translateX(-100%) !important;
    z-index: 1 !important;
  }

  .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;
  }

  .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;
  }

  .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 = N testimonials * 100vh — set inline by JS if số card thay đổi */
  height: 200vh;
}

.tn-tuhao-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f1ea url('/landings/en/tieng-anh-thieu-nhi/Assets/primary_bg_tuhao.png') top left / auto repeat;
  overflow: hidden;
}

.tn-tuhao-inner {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.tn-tuhao-head {
  margin-bottom: 60px;
}

.tn-tuhao-title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(48px, 7vw, 96px);
  color: #2667e0;
  line-height: 1;
  letter-spacing: 0.01em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.tn-tuhao-subtitle {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 30px);
  color: #2667e0;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.25;
}

.tn-tuhao-stage {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  min-height: 320px;
}

.tn-tuhao-quote-mark {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: clamp(80px, 10vw, 150px);
  color: #f3b7c6;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.tn-tuhao-quote-mark--open {
  left: -120px;
}

.tn-tuhao-quote-mark--close {
  right: -120px;
}

.tn-tuhao-list {
  position: relative;
  min-height: 280px;
}

.tn-tuhao-card {
  position: absolute;
  inset: 0;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  will-change: opacity, transform;
}

.tn-tuhao-card.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.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 {
  position: absolute;
  left: 50%;
  bottom: -56px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.tn-tuhao-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: background 0.3s ease, transform 0.3s ease;
}

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

@media (max-width: 900px) {
  .tn-tuhao-sticky {
    padding: 60px 0;
  }

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

  /* Stack cards bằng grid để chúng đóng góp height cho list/stage —
     desktop dùng position:absolute (overlap cứng) nên stage không grow
     theo quote dài, khiến dots (bottom:-56px) rơi vào giữa text. */
  .tn-tuhao-stage {
    min-height: 0;
  }

  .tn-tuhao-list {
    display: grid;
    min-height: 0;
  }

  .tn-tuhao-card {
    position: relative;
    inset: auto;
    grid-area: 1 / 1;
    padding: 0 16px;
  }

  .tn-tuhao-dots {
    bottom: -36px;
  }

  .tn-tuhao-quote-mark {
    display: none;
  }
}

/* ====================================================
   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: 100px 0;
  background: url('/landings/en/tieng-anh-thieu-nhi/Assets/primary_bg_form.png') center/cover no-repeat !important;
  overflow: hidden;
}

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

.tn-bf-form {
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 28px 64px rgba(8, 24, 56, 0.28);
}

.tn-bf-row {
  display: flex;
  gap: 14px;
}

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

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

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

.tn-bf-group select {
  color: rgba(255, 255, 255, 0.70);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none'><path d='M1 1l6 6 6-6' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}

.tn-bf-group select option {
  color: #1a5fa6;
  background: #fff;
}

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

.tn-bf-btn {
  margin-top: 10px;
  height: 60px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #fecc00 0%, #ffd633 50%, #fecc00 100%);
  color: #1a5fa6;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  box-shadow: 0 16px 36px rgba(254, 204, 0, 0.34);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  text-transform: uppercase;
}

.tn-bf-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(254, 204, 0, 0.42);
  filter: brightness(1.04);
}

.tn-bf-btn i {
  font-size: 18px;
  transition: transform 0.25s ease;
}

.tn-bf-btn:hover i {
  transform: translateX(4px);
}

.tn-bf-privacy {
  margin-top: 12px;
  font-family: var(--body);
  font-size: 18px;
  color: #fff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

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

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

@media (max-width: 1024px) {
  .tn-bottom-form {
    padding: 80px 0;
  }

  .tn-bf-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 640px) {
  /* Mobile: ảnh primary_bg_form.png (2880×1445, aspect ~2:1) chỉ hiển thị
     ở top phía trên form. Phía dưới form chỉ là solid color #3966D9
     (không lặp ảnh — tránh form-glass blur làm mờ ảnh).
     Padding-top = 50vw khớp đúng chiều cao ảnh (full width, height 50% width). */
  .tn-bottom-form {
    background:
      url('/landings/en/tieng-anh-thieu-nhi/Assets/primary_bg_form.png') top right / 100% auto no-repeat,
      #3966D9 !important;
    padding: 50vw 0 60px !important;
  }

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

  .tn-bf-form {
    padding: 24px 20px;
  }

  .tn-bf-row {
    flex-direction: column;
  }

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

/* ====================================================
   SHORT-VIEWPORT COMPACT (e.g. 1024×600 tablet landscape)
==================================================== */
@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 {
    font-size: 18px;
  }

  /* 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-thieu-nhi)
============================================================ */

/* 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/en/tieng-anh-thieu-nhi/Assets/primary_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/en/tieng-anh-thieu-nhi/Assets/primary_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;
  }
}
