/* ============================================================
   chuongtrinhhoc-extra.css — sections unique to chuong-trinh-hoc.html
   (loaded after chuongtrinhhoc-base.css which carries shared tokens,
    hero, trust, future, bottom-form, footer styles)
============================================================ */

/* ====================================================
   SECTION: FUTURE JOURNEY — headline + content + image
   (reuses .tn-future / .tn-future-title--single from base)
==================================================== */
.ct-future {
  position: relative;
  overflow: hidden;
  background: #eef1f5;
}

.ct-future-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)),
    url('/landings/en/courses/Assets/Hanhtrinh_bg.webp') center center / cover no-repeat;
  z-index: 0;
}

.ct-future .tn-future-inner,
.ct-future .ct-future-collage {
  position: relative;
  z-index: 1;
}

.ct-future-title {
  font-family: var(--display);
  font-weight: 700;
  color: #2667e0;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  text-transform: uppercase;
  font-size: clamp(28px, 4.4vw, 52px);
}

.ct-future-title em {
  font-style: italic;
  font-size: 1.12em;
  display: inline-block;
  margin-top: 6px;
}

.tn-future-text {
  font-family: var(--body);
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.75;
  color: var(--ap-on-surface-variant);
  max-width: 820px;
  margin: 26px auto 0;
}

.ct-future-collage {
  max-width: 1100px;
  margin: clamp(36px, 5vw, 64px) auto 0;
  padding: 0 40px;
}

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

@media (max-width: 768px) {
  .ct-future-collage { padding: 0 20px; }
}

/* ====================================================
   SECTION: CAM KẾT — Cam kết kết quả đầu ra theo trình độ
   4 staggered program cards + Apo Buddy + kid + sparkles
==================================================== */
.ct-camket {
  position: relative;
  padding: clamp(64px, 8vw, 100px) 0 clamp(72px, 9vw, 120px);
  background: #f4f6f9;
  overflow: hidden;
}

.ct-camket-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  z-index: 1;
}

.ct-camket-head {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 60px);
}

.ct-camket-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #2667e0;
  margin: 0;
}

.ct-camket-title small {
  display: block;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 700;
  margin-top: 4px;
}

/* Cards row — staircase */
.ct-camket-cards {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(16px, 2.4vw, 34px);
  max-width: 1040px;
  margin: 0 auto;
  padding-top: 20px;
}

.ct-camket-card {
  flex: 0 0 clamp(150px, 21vw, 224px);
  display: block;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  filter: drop-shadow(0 18px 34px rgba(15, 40, 90, 0.16));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ct-camket-card-photo {
  width: 100%;
  height: auto;
  display: block;
}

.ct-camket-card-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: clamp(14px, 1.6vw, 22px) clamp(14px, 1.8vw, 22px);
}

.ct-camket-card-label span {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(15px, 1.6vw, 20px);
  line-height: 1.2;
  color: #fff;
  text-transform: uppercase;
}

.ct-camket-card-plus {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(30px, 3.4vw, 44px);
  height: clamp(30px, 3.4vw, 44px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: clamp(14px, 1.6vw, 18px);
}

.ct-camket-card:hover {
  transform: translateY(-6px);
}

/* Staircase: Mẫu giáo lowest → IELTS highest */
.ct-camket-card:nth-child(1) { margin-top: 180px; }
.ct-camket-card:nth-child(2) { margin-top: 120px; }
.ct-camket-card:nth-child(3) { margin-top: 60px; }
.ct-camket-card:nth-child(4) { margin-top: 0; }

/* Apo Buddy mascot — inside the frame, above first card */
.ct-camket-buddy {
  position: absolute;
  top: clamp(80px, 14vw, 150px);
  left: clamp(-40px, 3vw, -2px);
  width: clamp(288px, 33vw, 450px);
  pointer-events: none;
  z-index: 3;
  animation: ct-float 4s ease-in-out infinite;
}

/* Boy cutout — direct child of section, flush to section bottom */
.ct-camket-kid {
  position: absolute;
  right: clamp(20px, 5vw, 90px);
  bottom: 0;
  width: clamp(200px, 26vw, 380px);
  pointer-events: none;
  z-index: 2;
}

@keyframes ct-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Sparkles */
.ct-spark {
  position: absolute;
  color: #cdd9ec;
  z-index: 0;
  pointer-events: none;
}
.ct-spark--1 { top: 14%; right: 8%; font-size: 34px; }
.ct-spark--2 { top: 30%; right: 14%; font-size: 20px; }
.ct-spark--3 { bottom: 16%; left: 6%; font-size: 30px; }
.ct-spark--4 { bottom: 26%; left: 13%; font-size: 18px; }

@media (max-width: 860px) {
  .ct-camket-inner { padding: 0 20px; }
  .ct-camket-cards {
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 70px;
    max-width: 480px;
  }
  .ct-camket-card {
    flex: 0 0 calc(50% - 8px);
    margin-top: 0 !important;
  }
  .ct-camket-buddy { width: 92px; left: 8px; top: clamp(70px, 16vw, 110px); }
  .ct-camket-kid {
    position: static;
    display: block;
    width: 200px;
    margin: 28px auto 0;
  }
  .ct-spark { display: none; }
}

/* ====================================================
   SECTION: BƯỚC TIẾN — Trust spacer height tuned for 3 cards
   (markup reuses .tn-trust / .tn-trust-card from base)
==================================================== */
.ct-buoctien .tn-trust-spacer { height: 320vh; }

@media (max-width: 768px) {
  .ct-buoctien .tn-trust-spacer { height: 300vh; }

  /* Mobile-specific card backgrounds (override inline desktop images) */
  .ct-buoctien .tn-trust-card[data-index="0"] { background-image: url('/landings/en/courses/Assets/card_1_mobile.webp') !important; }
  .ct-buoctien .tn-trust-card[data-index="1"] { background-image: url('/landings/en/courses/Assets/card_2_mobile.webp') !important; }
  .ct-buoctien .tn-trust-card[data-index="2"] { background-image: url('/landings/en/courses/Assets/card_3_mobile.webp') !important; }
}

/* ====================================================
   SECTION: BƯỚC NGOẶT — milestone rows (image + article)
==================================================== */
.ct-milestones {
  padding: clamp(72px, 9vw, 110px) 0;
  background: var(--ap-surface);
}

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

.ct-milestones-head {
  text-align: left;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.ct-milestones-head .tn-eyebrow {
  color: #2576b9;
}

.ct-milestones-head .tn-section-title {
  margin: 0;
  max-width: 760px;
}

.ct-ms-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.ct-ms-row + .ct-ms-row {
  margin-top: clamp(28px, 4vw, 56px);
}

.ct-ms-media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.ct-ms-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 1 / 1;
}

.ct-ms-expand {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #2576b9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 6px 16px rgba(15, 32, 64, 0.18);
  pointer-events: none;
}

.ct-ms-card {
  background: #fff;
  border: 1px solid #e6edf5;
  border-radius: 22px;
  padding: clamp(28px, 3.4vw, 48px);
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ct-ms-card-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.2;
  color: #2667e0;
  margin: 0 0 16px;
}

.ct-ms-card-title small {
  display: block;
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 600;
  color: #6b7280;
  margin-top: 4px;
}

.ct-ms-card-desc {
  font-family: var(--body);
  font-size: clamp(18px, 1.4vw, 20px);
  line-height: 1.7;
  color: var(--ap-on-surface-variant);
  margin: 0 0 28px;
}

.ct-ms-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 30px;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(135deg, #fecc00 0%, #ffd633 100%);
  color: #1a5fa6;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  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;
}

.ct-ms-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(254, 204, 0, 0.44);
  filter: brightness(1.04);
}

.ct-ms-cta i { transition: transform 0.2s ease; }
.ct-ms-cta:hover i { transform: translateX(4px); }

@media (max-width: 860px) {
  .ct-ms-row,
  .ct-ms-row--reverse {
    grid-template-columns: 1fr;
  }
  /* keep image first on mobile for every row */
  .ct-ms-row--reverse .ct-ms-media { order: -1; }
  .ct-milestones-inner { padding: 0 20px; }
}

/* ====================================================
   SECTION: FAQ — tabs + accordion
==================================================== */
.ct-faq {
  position: relative;
  padding: clamp(72px, 9vw, 110px) 0;
  background: #d4edff;
  overflow: hidden;
}

.ct-faq-inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 40px;
}

.ct-faq-title {
  text-align: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 3.8vw, 46px);
  letter-spacing: -0.01em;
  color: #2667e0;
  margin: 0 0 clamp(32px, 4vw, 48px);
}

.ct-faq-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 36px;
}

.ct-faq-tab {
  border: 1.5px solid #2667e0;
  background: transparent;
  color: #2667e0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(15px, 1.4vw, 18px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 13px 30px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ct-faq-tab:hover { background: rgba(38, 103, 224, 0.08); }

.ct-faq-tab.is-active {
  background: #fecc00;
  border-color: #fecc00;
  color: #2667e0;
  box-shadow: 0 10px 24px rgba(254, 204, 0, 0.34);
}

.ct-faq-panel { display: none; }
.ct-faq-panel.is-active { display: block; }

.ct-faq-item {
  background: #fff;
  border-radius: 16px;
  margin-bottom: 16px;
  box-shadow: 0 10px 26px rgba(15, 60, 110, 0.07);
  overflow: hidden;
}

.ct-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(20px, 2.2vw, 26px) clamp(22px, 2.4vw, 32px);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.4;
  color: #2667e0;
}

.ct-faq-q-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #2667e0;
  transition: transform 0.3s ease;
}

.ct-faq-item.is-open .ct-faq-q-icon {
  transform: rotate(180deg);
}

.ct-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.ct-faq-a-inner {
  padding: 0 clamp(20px, 2.4vw, 30px) clamp(22px, 2.4vw, 28px);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.7;
  color: #41474f;
}

.ct-faq-a-inner p { margin: 0 0 10px; }
.ct-faq-a-inner p:last-child { margin-bottom: 0; }
.ct-faq-a-inner a { color: #2667e0; text-decoration: underline; }

/* Decorative outline doodles */
.ct-faq-deco {
  position: absolute;
  color: #fff;
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
  line-height: 1;
}
.ct-faq-deco--1 { top: 14%; left: 4%; font-size: 56px; transform: rotate(-12deg); }
.ct-faq-deco--2 { top: 9%; left: 22%; font-size: 26px; }
.ct-faq-deco--3 { top: 11%; right: 5%; font-size: 60px; transform: rotate(8deg); }
.ct-faq-deco--4 { bottom: 8%; right: 6%; font-size: 58px; transform: rotate(-6deg); }
.ct-faq-deco--5 { bottom: 9%; left: 4%; font-size: 52px; transform: rotate(10deg); }
.ct-faq-deco--6 { bottom: 30%; right: 3%; font-size: 24px; }

@media (max-width: 768px) {
  .ct-faq-inner { padding: 0 20px; }
  .ct-faq-tabs { gap: 8px; }
  .ct-faq-tab { padding: 10px 18px; }
  .ct-faq-deco { display: none; }
}

/* ====================================================
   SECTION: 90 NĂM — clickable banner + video popup
==================================================== */
.ct-banner90 {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.ct-banner90-btn {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #000;
  overflow: hidden;
}

.ct-banner90-btn img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.ct-banner90-btn:hover img {
  transform: scale(1.02);
  filter: brightness(0.92);
}

.ct-banner90-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(64px, 7vw, 96px);
  height: clamp(64px, 7vw, 96px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #2576b9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(28px, 3vw, 40px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, background 0.3s ease;
}

.ct-banner90-btn:hover .ct-banner90-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: #fff;
}

/* Video modal */
.ct-video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 14, 30, 0.88);
}

.ct-video-modal.is-open { display: flex; }

.ct-video-frame {
  position: relative;
  width: min(960px, 100%);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.ct-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ct-video-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: #1f2937;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 600px) {
  .ct-video-close { top: -52px; right: 0; }
}
