:root {
  --brand: #4f46e5;
  --brand-dark: #3730a3;
  --brand-soft: #eef2ff;
  --plus: #047857;
  --plus-soft: #ecfdf5;
  --ink: #0b1220;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #f8fafc;
}

html { scroll-behavior: smooth; }
body {
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}
a { text-underline-offset: .18em; }
.section-pad { padding: 4.75rem 0; }
.section-kicker {
  color: var(--brand);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.section-title { font-weight: 750; letter-spacing: -.025em; }
.section-copy { color: #475569; max-width: 48rem; }
.programme-breadcrumb {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: .88rem;
  gap: .55rem;
  margin-bottom: 2rem;
}
.programme-breadcrumb a { color: var(--brand); font-weight: 650; text-decoration: none; }
.programme-breadcrumb a:hover { text-decoration: underline; }

.navbar { padding-top: .35rem; padding-bottom: .35rem; }
.navbar .container { padding-top: .25rem; padding-bottom: .25rem; }
.navbar-brand { gap: .45rem; }
.navbar-brand .logo {
  display: block;
  height: 64px;
  margin-right: .35rem;
  max-height: 72px;
  object-fit: contain;
  width: auto;
}
.brand-text { font-size: .98rem; line-height: 1; }
.navbar .nav-link { font-weight: 500; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: #4338ca; border-color: #4338ca; color: #fff; }
.btn-brand:focus-visible { box-shadow: 0 0 0 .25rem rgba(79, 70, 229, .3); outline: 2px solid #fff; outline-offset: 2px; }
.btn-outline-brand { border-color: var(--brand); color: var(--brand); }
.btn-outline-brand:hover, .btn-outline-brand:focus { background: var(--brand); color: #fff; }
.btn-outline-brand:focus-visible, .btn-light:focus-visible, .btn-outline-light:focus-visible { box-shadow: 0 0 0 .2rem #fff, 0 0 0 .4rem #1d4ed8; outline: 0; }

.programme-hero {
  background:
    radial-gradient(900px 460px at 90% -5%, rgba(79, 70, 229, .17), transparent 62%),
    radial-gradient(760px 420px at -10% 20%, rgba(34, 197, 94, .13), transparent 60%),
    linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border-bottom: 1px solid rgba(15, 23, 42, .06);
  overflow: hidden;
  padding: 5.25rem 0 4.75rem;
}
.hero-eyebrow {
  color: var(--brand);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .13em;
}
.programme-hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .98;
}
.hero-tagline { color: #1e293b; font-size: clamp(1.3rem, 3vw, 1.75rem); font-weight: 650; }
.hero-support { color: var(--plus); font-weight: 700; }
.hero-body { color: #475569; font-size: 1.08rem; max-width: 44rem; }
.hero-actions .btn { min-height: 50px; }
.enquiry-guidance { color: var(--muted); font-size: .92rem; max-width: 41rem; }
.start-card {
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(79, 70, 229, .14);
  border-radius: 1.5rem;
  box-shadow: 0 1.5rem 3rem -2rem rgba(15, 23, 42, .3);
  padding: 1.4rem;
}
.start-card .icon-box { background: var(--brand-soft); color: var(--brand); }
.icon-box {
  align-items: center;
  border-radius: .85rem;
  display: inline-flex;
  font-size: 1.2rem;
  height: 2.75rem;
  justify-content: center;
  width: 2.75rem;
}

.programme-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  box-shadow: 0 1.25rem 2.5rem -2rem rgba(15, 23, 42, .28);
  height: 100%;
  overflow: hidden;
}
.programme-card.core { border-top: 5px solid var(--brand); }
.programme-card.plus { border-top: 5px solid var(--plus); }
.programme-card-head { padding: 1.75rem 1.75rem 1rem; }
.programme-card-body { padding: 0 1.75rem 1.75rem; }
.programme-label { font-size: .77rem; font-weight: 800; letter-spacing: .13em; }
.core .programme-label { color: var(--brand); }
.plus .programme-label { color: var(--plus); }
.subject-list { border-bottom: 1px solid var(--line); }
.subject-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: .75rem;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: .85rem 0;
}
.subject-row strong { font-size: .98rem; }
.subject-time { color: var(--muted); font-size: .87rem; white-space: nowrap; }
.subject-fee { font-weight: 750; white-space: nowrap; }
.programme-meta {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
}
.total-hours {
  background: var(--plus-soft);
  border: 1px solid #a7f3d0;
  border-radius: 1rem;
  color: #065f46;
  padding: 1rem;
  text-align: center;
}
.total-hours strong { display: block; font-size: 1.55rem; letter-spacing: -.025em; }
.fee-callout { font-size: 1.05rem; }
.stream-box { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: 1rem; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { display: flex; gap: .65rem; margin-top: .65rem; }
.check-list i { color: var(--plus); margin-top: .12rem; }

.flow-wrap {
  display: grid;
  gap: .7rem;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-top: 2rem;
}
.flow-step {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  display: flex;
  font-size: .92rem;
  font-weight: 700;
  justify-content: center;
  min-height: 96px;
  padding: .85rem;
  text-align: center;
}
.flow-step:first-child { background: var(--brand-soft); border-color: #c7d2fe; color: var(--brand-dark); }
.flow-arrow { align-items: center; color: #94a3b8; display: none; justify-content: center; }

.notice-panel {
  background: linear-gradient(135deg, #fff 0%, #fffbeb 100%);
  border: 1px solid #fde68a;
  border-left: 5px solid #f59e0b;
  border-radius: 1.25rem;
  padding: 1.75rem;
}
.eligibility-item { border-top: 1px solid rgba(180, 83, 9, .16); padding-top: 1rem; }

.journey-line { display: grid; gap: 1rem; grid-template-columns: 1fr auto 1fr auto 1fr; }
.journey-node {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 1.35rem;
  text-align: center;
}
.journey-node i { color: var(--brand); font-size: 1.5rem; }
.journey-arrow { align-items: center; color: var(--brand); display: flex; font-size: 1.25rem; }
.admission-note { background: var(--brand-soft); border: 1px solid #c7d2fe; border-radius: 1.1rem; }

.pathway-card, .benefit-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  height: 100%;
  padding: 1.25rem;
}
.pathway-card h3 { font-size: 1rem; font-weight: 750; margin-bottom: .35rem; }
.pathway-card p { color: var(--muted); font-size: .9rem; margin: 0; }
.iat-note { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 1.25rem; }
.benefit-card .icon-box { background: var(--brand-soft); color: var(--brand); }
.overview-grade-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  box-shadow: 0 1.25rem 2.5rem -2rem rgba(15, 23, 42, .28);
  height: 100%;
  padding: 1.75rem;
}
.overview-grade-card.grade-11 { border-top: 5px solid var(--brand); }
.overview-grade-card.grade-12 { border-top: 5px solid var(--plus); }
.programme-note {
  background: var(--brand-soft);
  border: 1px solid #c7d2fe;
  border-radius: 1.1rem;
  padding: 1.25rem;
}
.registration-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: 1.1rem;
  box-shadow: 0 1rem 2rem -1.75rem rgba(15, 23, 42, .32);
  padding: 1.5rem;
}
.registration-actions .btn { min-width: 11rem; }
.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}
.anchor-nav a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  padding: .55rem .9rem;
  text-decoration: none;
}
.anchor-nav a:hover, .anchor-nav a:focus { border-color: var(--brand); color: var(--brand); }
.grade-detail-section { scroll-margin-top: 8rem; }
.subject-feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  height: 100%;
  padding: 1.35rem;
}
.subject-feature .icon-box { background: var(--brand-soft); color: var(--brand); }
.level-list {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.level-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
}
.level-options { display: flex; flex-wrap: wrap; gap: .65rem; }
.level-options span { background: var(--brand-soft); border: 1px solid #c7d2fe; border-radius: 999px; color: var(--brand-dark); font-weight: 700; padding: .45rem .8rem; }
.includes-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.includes-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
}
.includes-item i { color: var(--brand); display: block; font-size: 1.25rem; margin-bottom: .45rem; }
.grade-includes-card { background: var(--surface); border: 1px solid var(--line); border-radius: 1.25rem; height: 100%; padding: 1.35rem; }
.grade-includes-card .includes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.includes-item-detail { align-items: flex-start; display: flex; gap: .7rem; grid-column: 1 / -1; }
.includes-item-detail i { flex: 0 0 auto; margin-bottom: 0; }
.includes-item-detail small { color: var(--muted); display: block; margin-top: .2rem; }
.fee-note { color: var(--muted); font-size: .9rem; }

.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  margin-bottom: .75rem;
  overflow: hidden;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  padding: 1.15rem 3rem 1.15rem 1.25rem;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  color: var(--brand);
  content: "+";
  font-size: 1.4rem;
  position: absolute;
  right: 1.25rem;
  top: .92rem;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-answer { border-top: 1px solid var(--line); color: #475569; padding: 1rem 1.25rem 1.25rem; }

.final-cta {
  background: linear-gradient(135deg, #3730a3 0%, #4f46e5 68%, #4338ca 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.final-cta::before {
  background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 66%);
  content: "";
  height: 28rem;
  position: absolute;
  right: -8rem;
  top: -12rem;
  width: 28rem;
}
.final-cta .container { position: relative; }
.final-cta .text-secondary { color: #e2e8f0 !important; }
.footer { background: #070d1a; border-top: 1px solid rgba(255, 255, 255, .1); color: #cbd5e1; }
.footer a { color: #cbd5e1; text-decoration: none; }
.footer a:hover { color: #fff; }

@media (min-width: 992px) {
  .navbar-brand .logo { height: 72px; }
  .brand-text { font-size: 1.04rem; }
}

@media (max-width: 991.98px) {
  .section-pad { padding: 4rem 0; }
  .flow-wrap { grid-template-columns: 1fr; }
  .flow-step { min-height: 72px; }
  .flow-arrow { display: flex; }
  .journey-line { grid-template-columns: 1fr; }
  .journey-arrow { justify-content: center; transform: rotate(90deg); }
  .includes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
  .row.g-5 { --bs-gutter-x: 1.5rem; }
  .navbar { padding-top: .25rem; padding-bottom: .25rem; }
  .navbar-brand { gap: .35rem; }
  .navbar-brand .logo { height: 58px; margin-right: .2rem; max-height: 62px; }
  .brand-text { font-size: .9rem; }
  .programme-hero { padding: 3.75rem 0 3.5rem; }
  .programme-hero h1 { font-size: 2.65rem; }
  .hero-actions { display: grid !important; }
  .hero-actions .btn { width: 100%; }
  .programme-card-head, .programme-card-body { padding-left: 1.15rem; padding-right: 1.15rem; }
  .subject-row { grid-template-columns: 1fr auto; }
  .subject-time { grid-column: 1 / -1; }
  .notice-panel { padding: 1.25rem; }
  .level-list, .includes-grid { grid-template-columns: 1fr; }
  .grade-includes-card .includes-grid { grid-template-columns: 1fr; }
  .registration-actions { display: grid !important; }
  .registration-actions .btn { min-width: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
