@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display&display=swap');

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

:root {
  /* Dark navy + gold (matches main site theme) */
  --page-bg:    #0B1228;
  --hero-bg:    #142244;                   /* hero / panel surface */
  --hero-text:  #F1F5FB;                   /* primary heading colour */
  --hero-mid:   #FBBF24;                   /* gold (eyebrow, t-phase) */
  --pill:       #1E3A8A;                   /* pill / tag bg */
  --stat-n:     #FBBF24;                   /* gold stat numbers */
  --card-bg:    #142244;
  --card-bdr:   rgba(255, 255, 255, 0.10);
  --card-bdr-2: rgba(255, 255, 255, 0.16);
  --cta-bg:     #0F1B3D;
  --cta-btn:    #FBBF24;                   /* gold button */
  --cta-light:  #FCD34D;                   /* CTA sub-text gold */
  --body:       #CBD5E1;                   /* body paragraph */
  --sub:        #94A3B8;                   /* secondary text */
  --label:      #FBBF24;                   /* gold section labels */
  --dark:       #F8FAFC;                   /* "emphasis" light text */
  --amber:      #FBBF24;
  --on-accent:  #0F172A;                   /* dark text on gold */
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--page-bg);
  color: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page { max-width: 780px; margin: 0 auto; padding: 0 24px 80px; }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 27, 61, 0.85);
  border-bottom: 1px solid var(--card-bdr);
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 100%;
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
}
/* Left-side logo link → home */
.site-header .site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  padding: 4px 6px;
  border-radius: 8px;
  transition: opacity .15s, background .15s;
}
.site-header .site-logo:hover {
  background: rgba(255, 255, 255, 0.06);
  opacity: 0.95;
}
.site-header .site-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
}
.site-header .site-logo-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #fcd34d, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Right-side "← Back to Programs" link */
.site-header .back-to-programs {
  font-size: 14px; font-weight: 600;
  color: var(--body);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 6px;
  min-height: 40px;
  transition: background .15s, color .15s;
}
.site-header .back-to-programs:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--cta-light);
}
@media (max-width: 420px) {
  .site-header .site-logo-name { display: none; }
}
.enrol-btn {
  background: var(--cta-btn); color: var(--on-accent);
  border: none; border-radius: 8px;
  padding: 10px 22px; font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: background .15s, transform .1s, box-shadow .15s;
  font-family: 'DM Sans', sans-serif;
}
.enrol-btn:hover {
  background: var(--cta-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.35);
}

/* ── HERO ── */
.hero {
  background: linear-gradient(160deg, var(--hero-bg) 0%, #1A2A4D 100%);
  border: 1px solid var(--card-bdr);
  border-radius: 16px;
  padding: 40px 40px 36px;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}
.hero-left { min-width: 0; }
.hero-eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: var(--hero-mid);
  margin-bottom: 12px;
}
.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 36px; font-weight: 400;
  color: var(--hero-text);
  line-height: 1.15; margin-bottom: 16px;
}
.hero-intro {
  font-size: 16px; color: var(--body);
  line-height: 1.65; margin-bottom: 22px; max-width: 480px;
}
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  font-size: 13px; font-weight: 600;
  padding: 6px 14px; border-radius: 20px;
  background: var(--pill); color: var(--cta-light);
  border: 1px solid rgba(251, 191, 36, 0.25);
  white-space: nowrap;
}
.hero-enrol { flex-shrink: 0; padding-top: 4px; }

/* ── STATS ── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px; margin: 16px 0 0;
}
.stat {
  background: var(--card-bg);
  border: 1px solid var(--card-bdr);
  border-radius: 12px; padding: 20px 16px;
}
.stat-n {
  font-family: 'DM Serif Display', serif;
  font-size: 32px; color: var(--stat-n);
  line-height: 1; margin-bottom: 8px;
}
.stat-l { font-size: 13px; color: var(--sub); line-height: 1.4; }

/* ── PROGRAM PHOTO ── */
.program-photo {
  margin: 24px 0 0;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  border: 1px solid var(--card-bdr);
}
.program-photo img { width: 100%; display: block; }

/* ── INTRO CARD ── */
.intro-card {
  background: var(--card-bg); border: 1px solid var(--card-bdr);
  border-radius: 14px; padding: 32px 36px;
  margin: 20px 0 0;
}
.intro-card h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 26px; font-weight: 400;
  color: var(--hero-text);
  margin-bottom: 14px; line-height: 1.25;
}
.intro-card p { font-size: 15px; color: var(--body); line-height: 1.75; margin-bottom: 12px; }
.intro-card p:last-of-type { margin-bottom: 0; }
.benefits-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.benefit {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.20);
  border-radius: 10px; padding: 20px 18px;
}
.benefit-icon { font-size: 26px; margin-bottom: 10px; }
.benefit-text { font-size: 14px; color: var(--body); line-height: 1.55; }

/* ── SECTION LABEL ── */
.sec-label {
  font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--label);
  margin: 36px 0 14px;
}

/* ── SESSION TIMELINE ── */
.timeline {
  border: 1px solid var(--card-bdr); border-radius: 12px;
  overflow: hidden; background: var(--card-bg);
}
.t-row { display: flex; align-items: stretch; }
.t-row + .t-row { border-top: 1px solid var(--card-bdr); }
.t-phase {
  width: 110px; min-width: 110px;
  background: rgba(251, 191, 36, 0.10);
  border-right: 1px solid var(--card-bdr);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--hero-mid);
  padding: 18px 10px; text-align: center; line-height: 1.35;
}
.t-body { padding: 20px 22px; flex: 1; }
.t-title { font-size: 16px; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.t-desc { font-size: 14px; color: var(--sub); line-height: 1.6; }
.t-tag {
  display: inline-block; margin-top: 10px;
  font-size: 12px; font-weight: 600; padding: 4px 12px;
  border-radius: 20px;
  background: var(--pill); color: var(--cta-light);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

/* ── SUBJECT GRID ── */
.subj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.subj {
  background: var(--card-bg); border: 1px solid var(--card-bdr);
  border-radius: 12px; padding: 18px 18px;
}
.subj-t { font-size: 16px; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.subj-d { font-size: 14px; color: var(--sub); line-height: 1.55; }

/* ── FIT LIST ── */
.fit-list {
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid var(--card-bdr); border-radius: 12px;
  overflow: hidden; background: var(--card-bg);
}
.fit-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 20px; border-bottom: 1px solid var(--card-bdr);
}
.fit-row:last-child { border-bottom: none; }
.fit-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--amber); flex-shrink: 0; margin-top: 7px;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.18);
}
.fit-text { font-size: 15px; color: var(--body); line-height: 1.55; }

/* ── CASEL LIST ── */
.casel-list {
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid var(--card-bdr); border-radius: 12px;
  overflow: hidden; background: var(--card-bg);
}
.casel-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 20px; border-bottom: 1px solid var(--card-bdr);
}
.casel-row:last-child { border-bottom: none; }
.casel-num {
  font-size: 14px; font-weight: 700;
  color: var(--amber); width: 24px;
  flex-shrink: 0; padding-top: 1px;
}
.casel-text { font-size: 15px; color: var(--body); line-height: 1.55; }
.casel-text strong { color: var(--dark); }

/* ── CALLOUT BOX ── */
.callout {
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid var(--card-bdr);
  border-left: 4px solid var(--amber);
  border-radius: 10px;
  padding: 16px 20px; margin: 0;
}
.callout-label {
  font-size: 13px; font-weight: 700; color: var(--amber);
  margin-bottom: 4px; text-transform: uppercase; letter-spacing: .05em;
}
.callout-text { font-size: 14px; color: var(--body); line-height: 1.6; }

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--cta-bg) 0%, #1E3A8A 100%);
  border: 1px solid var(--card-bdr-2);
  border-radius: 16px;
  padding: 32px 36px; margin-top: 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cta-h {
  font-family: 'DM Serif Display', serif;
  font-size: 24px; font-weight: 400;
  color: var(--cta-light);
  margin-bottom: 6px;
}
.cta-sub { font-size: 14px; color: var(--body); }
.cta-banner .enrol-btn { font-size: 16px; padding: 14px 30px; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .hero { grid-template-columns: 1fr; gap: 16px; padding: 28px 24px; }
  .hero-enrol { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .subj-grid { grid-template-columns: 1fr; }
  .benefits-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .intro-card { padding: 24px 20px; }
}

/* ── FADE-IN ANIMATION ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero          { animation: fadeUp .5s ease both; }
.stats         { animation: fadeUp .5s .1s ease both; }
.program-photo { animation: fadeUp .5s .18s ease both; }
.intro-card    { animation: fadeUp .5s .25s ease both; }
