/* ============ The Mathologists — HSC Mock Exam Program ============ */
/* Self-contained static build. Mathologists palette: green + cream + ink. */

:root {
  --bg: #FAF8F3;
  --bg-card: #FFFFFF;
  --bg-deep: #0F0F0F;
  --ink: #1A1A1A;
  --ink-soft: #555555;
  --ink-mute: #888888;
  --line: #E5E5E5;
  --line-soft: #EEEEEE;
  --accent: #3FB54A;
  --accent-deep: #2E8B3A;
  --accent-soft: #E8F5E9;
  --accent-tint: #F1FAF1;
  --on-deep: #FAF8F3;
  --on-deep-mute: #A0A0A0;

  --sans: "DM Sans", "Söhne", system-ui, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  --maxw: 1280px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg-deep);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.5;
}

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ----------- Nav ----------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.nav-dark {
  background: var(--bg-deep);
  border-bottom: 1px solid rgba(63, 181, 74, 0.25);
  box-shadow:
    0 0 60px 0 rgba(63, 181, 74, 0.4),
    0 0 120px 0 rgba(63, 181, 74, 0.18);
}
.nav-dark.scrolled {
  border-bottom-color: rgba(63, 181, 74, 0.35);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  position: relative;
  z-index: 1;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}
.logo-img {
  height: 50px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: color .15s;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color .15s;
  white-space: nowrap;
}
.nav-phone:hover { color: var(--accent); }
.nav-phone svg { color: #fff; opacity: 0.85; }
.btn-book {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 100px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background .2s, transform .15s;
  font-family: var(--sans);
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.btn-book:hover {
  background: var(--accent-deep);
  color: #fff;
}
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-phone span { display: none; }
}

/* ----------- Hero ----------- */
.m-hero {
  background: var(--bg-deep);
  padding: clamp(28px, 4vw, 56px) clamp(20px, 4vw, 56px);
}
.m-hero-card {
  background: #F0F7F0;
  border-radius: 24px;
  padding: clamp(40px, 5vw, 64px) clamp(32px, 5vw, 64px) 0;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  grid-template-rows: auto auto;
  column-gap: clamp(32px, 4vw, 56px);
  row-gap: 24px;
  align-items: stretch;
  border-top: 5px solid var(--accent);
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
@media (max-width: 980px) {
  .m-hero-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    padding: 40px 28px 0;
  }
}
.m-hero-content {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.m-hero-right {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  min-height: 0;
}
@media (max-width: 980px) {
  .m-hero-content { grid-column: 1; grid-row: 1; }
  .m-hero-right { grid-column: 1; grid-row: 2; }
}
.m-hero-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 3px 9px;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  border-radius: 3px;
  margin-bottom: 14px;
}
.m-hero-headline {
  font-family: var(--sans);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 14px;
  text-wrap: balance;
}
.m-hero-green {
  background: linear-gradient(135deg, #38D430 0%, #087802 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.m-hero-tagline {
  font-family: var(--sans);
  margin: 0 0 22px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.4;
  max-width: 48ch;
}
.m-hero-tagline .m-sep {
  margin: 0 0.5em;
  color: var(--accent);
  font-weight: 700;
}
.m-hero-body {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 52ch;
  margin: 0 0 32px;
}
/* Desktop shows the full description; phone swaps to the short one */
.m-hero-body .hero-body-short { display: none; }
.m-hero-cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.m-hero-cta {
  background: linear-gradient(135deg, #38D430 0%, #087802 100%);
  color: #fff;
  width: 170px;
  height: 45px;
  padding: 0;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: filter .2s, transform .15s, box-shadow .2s;
  font-family: "Inter", var(--sans);
  box-shadow: 0 6px 18px -6px rgba(8, 120, 2, 0.45);
}
.m-hero-cta:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -6px rgba(8, 120, 2, 0.55);
}
.m-hero-ghost {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color .2s;
}
.m-hero-ghost:hover { color: var(--accent-deep); }
.m-hero-bg-text {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 8px;
  margin-bottom: -8px;
  display: flex;
  align-items: baseline;
  gap: 18px;
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
}
.m-bg-bold {
  font-family: var(--sans);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: rgba(63, 181, 74, 0.18);
  line-height: 1;
}
.m-bg-script {
  font-family: "Allura", "Pinyon Script", cursive;
  font-size: clamp(56px, 7vw, 92px);
  color: rgba(63, 181, 74, 0.22);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 0.7;
  transform: translateY(0);
}
.m-hero-img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  object-fit: cover;
}

/* ----------- Hero · phone (≤560px) ----------- */
@media (max-width: 560px) {
  .m-hero-card { padding: 32px 22px 0 !important; }
  /* let the text column shrink to the card instead of overflowing it */
  .m-hero-content { min-width: 0; max-width: 100%; }

  /* 1 · "Mock HSC Trial" on one line, "Exam Program" below */
  .m-hero-headline { font-size: 22px !important; }
  .m-hero-green { font-size: 27px !important; white-space: nowrap; }

  /* 2 · All three subjects on a single line (sized to fit, no forced nowrap) */
  .m-hero-tagline {
    font-size: 11.5px;
    letter-spacing: -0.015em;
  }
  .m-hero-tagline .m-sep { margin: 0 0.3em; }

  /* 3 · Shorter description on phone */
  .m-hero-body .hero-body-full { display: none; }
  .m-hero-body .hero-body-short { display: inline; }
  .m-hero-body { margin-bottom: 24px; }

  /* keep the CTA tidy on a narrow column */
  .m-hero-cta-row { gap: 14px; }
}

/* ----------- Marquee ----------- */
.m-marquee {
  background: var(--accent);
  color: #fff;
  padding: 14px 0;
  overflow: hidden;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.m-marquee-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: m-scroll 28s linear infinite;
}
.m-marquee-track span { display: inline-flex; align-items: center; gap: 16px; }
.m-marquee-track em { font-style: normal; opacity: 0.7; font-size: 20px; }
@keyframes m-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ Quick Overview — 3 feature cards ============ */
.qo-section {
  background: var(--bg);
  padding: clamp(40px, 5vw, 72px) clamp(20px, 4vw, 40px);
}
.qo-wrap {
  max-width: 1240px;
  margin: 0 auto;
}
.qo-head {
  max-width: 680px;
  margin: 0 auto clamp(28px, 3.5vw, 44px);
  text-align: center;
}
.qo-title {
  font-family: "Inter", var(--sans);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 10px;
  text-wrap: balance;
}
.qo-grad {
  background: linear-gradient(135deg, #38D430 0%, #087802 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.qo-lede {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
  text-wrap: pretty;
}
.qo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
}
@media (max-width: 980px) { .qo-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .qo-grid { grid-template-columns: 1fr; } }
.qo-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.qo-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -16px rgba(8, 120, 2, 0.18);
}
.qo-photo {
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  display: block;
}
.qo-photo.flush {
  padding: 0;
  background: var(--bg);
}
.qo-photo img {
  display: block;
  width: 100%;
  height: 100%;
}
.qo-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.qo-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 10px;
}
.qo-h3 {
  font-family: var(--sans);
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 10px;
  min-height: 2.3em;
}
.qo-p {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 16px;
  text-wrap: pretty;
}
.qo-meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ============ Course section ============ */
.m-course {
  background: var(--bg);
  padding: clamp(40px, 5vw, 72px) clamp(20px, 4vw, 40px) clamp(60px, 7vw, 96px);
}
.m-course-wrap {
  max-width: 1240px;
  margin: 0 auto;
}

/* Inline centre selector (Schedule tab) */
.m-centre-inline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 24px;
  padding: 6px 6px 6px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.m-centre-inline-label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}
.m-centre-inline-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-align-last: center;
  padding: 6px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4FD650 0%, #38D430 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--sans);
  border: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(135deg, #4FD650 0%, #38D430 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: center, right 8px center;
  background-size: 100% 100%, 12px;
  box-shadow: 0 4px 12px -4px rgba(56, 212, 48, 0.5);
  text-shadow: 0 1px 1px rgba(0,0,0,0.12);
}

/* Course title */
.m-course-title {
  font-family: var(--sans);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.m-course-sep { color: var(--ink-mute); font-weight: 300; }
.m-subject-select {
  font-family: var(--sans);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
  color: var(--accent-deep);
  background: transparent;
  border: 0;
  border-bottom: 2px dashed var(--accent);
  cursor: pointer;
  padding: 2px 4px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='%232E8B3A'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 22px;
}

/* Layout: sidebar + content */
.m-course-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 880px) {
  .m-course-layout { grid-template-columns: 1fr; }
}

/* Sidebar */
.m-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 144px;
}
@media (max-width: 880px) {
  .m-sidebar { position: static; }
}
.m-side-item {
  background: var(--bg-card);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-family: var(--sans);
}
.m-side-item:hover { border-color: var(--accent); }
.m-side-item.active {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(63, 181, 74, 0.14);
}
.m-side-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.m-side-label {
  font-size: 13px;
  color: var(--ink-soft);
}
.m-side-sub {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding-left: 10px;
  line-height: 1.2;
}
.m-side-arr {
  width: 24px;
  height: 24px;
  background: var(--accent);
  border-radius: 100%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.2s;
}
.m-side-item.active .m-side-arr { opacity: 1; }

/* Content pane */
.m-pane {
  background: var(--bg-card);
  border-radius: 16px;
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
  font-family: var(--sans);
}
.m-content[hidden] { display: none; }
.m-content-label {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 8px;
  font-family: var(--sans);
}
.m-content-title {
  font-family: var(--sans);
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  color: var(--ink);
}
.m-content p {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.65;
}
.m-content strong { font-weight: 700; }
.m-content h3 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  margin: 32px 0 16px;
  color: var(--ink);
  letter-spacing: -0.005em;
}

/* Table */
.m-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14.5px;
}
.m-table thead {
  background: var(--ink);
  color: #fff;
}
.m-table th,
.m-table td {
  padding: 14px 18px;
  text-align: left;
  border: 1px solid var(--line);
}
.m-table th { font-weight: 600; font-family: var(--sans); }
.m-table td:first-child { font-weight: 500; }
.m-table small { color: var(--ink-mute); font-size: 12px; }
.m-table.highlight-row tbody tr:first-child {
  background: var(--accent-soft);
}
.m-table.highlight-row tbody tr:first-child td:first-child {
  font-weight: 700;
}

/* Bullets */
.m-bullets {
  list-style: none;
  margin: 16px 0 24px;
  padding: 0;
}
.m-bullets li {
  padding-left: 28px;
  margin-bottom: 12px;
  position: relative;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.55;
}
.m-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
}

/* Note box */
.m-note {
  background: var(--accent-tint);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 14.5px;
  border-radius: 0 8px 8px 0;
  color: var(--ink);
}

/* CTA */
.m-cta {
  background: var(--accent);
  color: #fff;
  padding: 16px 36px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-block;
  margin-top: 16px;
  font-family: var(--sans);
  transition: background .2s, transform .15s;
}
.m-cta:hover { background: var(--accent-deep); }

/* Centre cards (Location body) */
.m-centre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0 24px;
}
@media (max-width: 720px) { .m-centre-grid { grid-template-columns: 1fr; } }
.m-centre {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  background: var(--bg);
}
.m-centre.active {
  border-color: var(--accent);
  background: var(--accent-tint);
}
.m-centre-badge {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--ink);
}
.m-centre-addr {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}
.m-centre-times {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  font-size: 13px;
}
.m-centre-times span {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}
.m-centre-times strong {
  color: var(--ink);
  font-weight: 500;
  font-size: 13px;
}

/* FAQ (inside pane) */
.m-faq {
  margin: 16px 0 24px;
  border-top: 1px solid var(--line);
}
.m-faq-item { border-bottom: 1px solid var(--line); }
.m-faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 20px 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--ink);
  transition: color .15s;
}
.m-faq-q:hover { color: var(--accent-deep); }
.m-faq-plus {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 28px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  flex-shrink: 0;
  transition: transform .25s ease, background .15s, color .15s, border-color .15s;
  line-height: 1;
}
.m-faq-item.open .m-faq-plus {
  transform: rotate(45deg);
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.m-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.m-faq-item.open .m-faq-a { max-height: 400px; }
.m-faq-a-inner {
  padding-bottom: 20px;
  max-width: 68ch;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ----------- Footer ----------- */
.m-footer {
  background: var(--bg-deep);
  color: var(--on-deep);
  padding: 64px 0 32px;
  font-family: var(--sans);
}
.m-footer-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}
.m-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 880px) { .m-footer-grid { grid-template-columns: 1fr 1fr; } }
.m-footer-brand p {
  color: var(--on-deep-mute);
  font-size: 14px;
  line-height: 1.6;
  max-width: 38ch;
  margin: 16px 0 0;
}
.m-footer-logo {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}
.m-footer h5 {
  font-family: var(--sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--on-deep);
  margin: 0 0 18px;
  font-weight: 700;
}
.m-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.m-footer li,
.m-footer a {
  color: var(--on-deep-mute);
  text-decoration: none;
  font-size: 14px;
}
.m-footer a:hover { color: var(--accent); }
.m-footer-colophon {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--on-deep-mute);
}

@media (prefers-reduced-motion: reduce) {
  .m-marquee-track { animation: none; }
  * { transition-duration: .001ms !important; }
}

/* =====================================================
   COURSE — Step filter (sidebar)
   ===================================================== */
.m-filter-block {
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  margin-bottom: 4px;
}
.m-filter-heading {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin-bottom: 16px;
}
.m-filter-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.m-filter-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
  transition: opacity .2s;
}
.m-filter-row.locked {
  opacity: 0.38;
  pointer-events: none;
}
.m-filter-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 22px;
}
/* Vertical connecting line between badge 1 and badge 2 */
.m-filter-vline {
  flex: 1;
  width: 2px;
  background: var(--line);
  border-radius: 1px;
  margin: 5px 0 0;
  min-height: 14px;
}
/* Number badge */
.m-filter-num {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
  transition: background .2s, color .2s;
}
.m-filter-num.inactive { background: var(--line); color: var(--ink-mute); }
.m-filter-num.current  { background: var(--ink);  color: #fff; }
/* Bigger checkmark inside — outer circle stays 22px */
.m-filter-num.done     { background: var(--accent); color: #fff; font-size: 15px; font-weight: 900; line-height: 1; }
.m-filter-step-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-bottom: 18px;
}
.m-filter-step-label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
/* Subject select */
.m-filter-select {
  width: 100%;
  padding: 8px 28px 8px 10px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--bg-card);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%23888'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  cursor: pointer;
  transition: border-color .15s;
}
.m-filter-select:hover   { border-color: var(--ink-soft); }
.m-filter-select:focus   { outline: none; border-color: var(--accent); }
.m-filter-select.chosen  {
  border-color: var(--accent);
  color: var(--accent-deep);
  font-weight: 600;
}
/* Campus pill buttons */
.m-filter-campus-row {
  display: flex;
  gap: 6px;
}
.m-filter-campus-btn {
  flex: 1;
  padding: 7px 6px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--bg-card);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  text-align: center;
  transition: border-color .15s, background .15s, color .15s;
  white-space: nowrap;
}
.m-filter-campus-btn:not(:disabled):hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}
.m-filter-campus-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 700;
}
.m-filter-campus-btn:disabled { cursor: default; }

/* =====================================================
   COURSE — Locked placeholder
   ===================================================== */
.ses-locked-card {
  border: 1.5px dashed var(--line);
  border-radius: 16px;
  padding: 56px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  background: var(--bg);
  margin-bottom: 18px;
}
.ses-locked-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.ses-locked-msg {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.ses-locked-hint {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  margin: 0;
}

/* =====================================================
   COURSE — Session card
   ===================================================== */
.ses-card {
  border: 1.5px solid var(--accent);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  margin-bottom: 18px;
}
.ses-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 18px;
  border-bottom: 1px solid var(--line);
}
.ses-cohort {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.ses-spots {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-deep);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 3px;
}

/* Redesigned timetable — week bands + clean rows */
.ses-timetable {
  padding: 4px 24px 12px;
}
.ses-tt-week {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 10px;
  margin-top: 6px;
  background: var(--accent-soft);
  border-radius: 6px;
}
.ses-tt-week-badge {
  font-family: 'Inter', var(--sans);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-deep);
  white-space: nowrap;
}
.ses-tt-row {
  display: grid;
  grid-template-columns: 58px 88px 1fr 110px 58px;
  gap: 0 14px;
  align-items: center;
  padding: 11px 10px;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 6px;
  transition: background .12s;
}
.ses-tt-row:last-child { border-bottom: 0; }
.ses-tt-row:hover { background: var(--bg); }
.ses-tt-row.even { background: color-mix(in oklab, var(--bg) 60%, var(--bg-card)); }
.ses-tt-row.even:hover { background: var(--bg); }
.ses-tt-date {
  font-family: 'Inter', var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.ses-tt-day {
  font-family: 'Inter', var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.ses-tt-type {
  font-family: 'Inter', var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.ses-tt-time {
  font-family: 'Inter', var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-deep);
  white-space: nowrap;
}
.ses-tt-dur {
  font-family: 'Inter', var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-mute);
  text-align: right;
  white-space: nowrap;
}
@media (max-width: 540px) {
  .ses-tt-row { grid-template-columns: 50px 1fr 90px; }
  .ses-tt-row .ses-tt-day { display: none; }
  .ses-tt-row .ses-tt-dur { display: none; }
}

/* Price + book footer */
.ses-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 24px 18px;
  border-top: 1px solid var(--line);
  background: color-mix(in oklab, var(--accent-soft) 28%, var(--bg-card));
}
.ses-price-block {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ses-price-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.ses-price-eb {
  font-family: var(--sans);
  font-size: 34px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.ses-price-was {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-mute);
  text-decoration: line-through;
}
.ses-eb-note {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #B45309;
}
.ses-bundle-line {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}
.ses-book-btn {
  background: #fff;
  color: var(--accent-deep);
  padding: 13px 26px;
  border-radius: 10px;
  border: 1.5px solid var(--accent-deep);
  font-family: 'Inter', var(--sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s, transform .15s;
  flex-shrink: 0;
}
.ses-book-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

/* Location detail card */
.ses-loc-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 22px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  margin-bottom: 24px;
}
.ses-loc-name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Inter', var(--sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-deep);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 1px;
}
.ses-loc-addr {
  font-family: 'Inter', var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* Inline enquire link below session card */
.ses-enquire-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 2px 4px;
  font-family: 'Inter', var(--sans);
  font-size: 13px;
  color: var(--ink-mute);
  flex-wrap: wrap;
}
.ses-enquire-link {
  background: transparent;
  border: 0;
  font-family: 'Inter', var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-deep);
  cursor: pointer;
  padding: 0 0 1px;
  border-bottom: 1px solid currentColor;
  transition: color .15s;
}
.ses-enquire-link:hover { color: var(--accent); }

/* =====================================================
   COURSE — Sidebar enquiry nudge
   ===================================================== */
.m-enquiry-nudge {
  background: var(--bg-card);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.m-enquiry-nudge-icon {
  width: 30px; height: 30px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-family: 'Inter', var(--sans);
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.m-enquiry-nudge-body {
  flex: 1;
  min-width: 0;
}
.m-enquiry-nudge-title {
  font-family: 'Inter', var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}
.m-enquiry-nudge-sub {
  font-family: 'Inter', var(--sans);
  font-size: 11px;
  color: var(--ink-mute);
  line-height: 1.4;
}
.m-enquiry-nudge-btn {
  background: transparent;
  border: 1.5px solid var(--accent-deep);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: 'Inter', var(--sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-deep);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s, color .15s, border-color .15s;
}
.m-enquiry-nudge-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* =====================================================
   ENQUIRY MODAL
   ===================================================== */
.enq-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  animation: enq-fade .18s ease;
}
.enq-overlay[hidden] { display: none; }
@keyframes enq-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.enq-modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 32px 80px -20px rgba(0,0,0,0.32);
  overflow: hidden;
  animation: enq-up .2s ease;
}
@keyframes enq-up {
  from { transform: translateY(14px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.enq-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 26px 20px;
  border-bottom: 1px solid var(--line);
}
.enq-title {
  font-family: 'Inter', var(--sans);
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.enq-subject-chip {
  display: inline-flex;
  align-items: center;
  font-family: 'Inter', var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.enq-subject-chip[hidden] { display: none; }
.enq-close {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink-soft);
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.enq-close:hover { background: var(--ink); color: #fff; }
.enq-form {
  padding: 22px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.enq-form[hidden] { display: none; }
.enq-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.enq-label {
  font-family: 'Inter', var(--sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.enq-optional {
  font-weight: 400;
  color: var(--ink-mute);
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
}
.enq-input,
.enq-textarea {
  font-family: 'Inter', var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  transition: border-color .15s;
  outline: none;
  resize: none;
  width: 100%;
  box-sizing: border-box;
}
.enq-input:focus,
.enq-textarea:focus { border-color: var(--accent); }
.enq-note {
  font-family: 'Inter', var(--sans);
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: -2px;
}
.enq-submit {
  background: linear-gradient(135deg, #38D430 0%, #087802 100%);
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  border: 0;
  font-family: 'Inter', var(--sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: filter .18s, transform .15s;
  letter-spacing: 0.02em;
  text-align: center;
}
.enq-submit:hover { filter: brightness(1.07); transform: translateY(-1px); }
.enq-success {
  padding: 48px 28px 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.enq-success[hidden] { display: none; }
.enq-success-icon {
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.enq-success-title {
  font-family: 'Inter', var(--sans);
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}
.enq-success-msg {
  font-family: 'Inter', var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
}
.enq-done-btn {
  margin-top: 8px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 10px 28px;
  font-family: 'Inter', var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s;
}
.enq-done-btn:hover { background: var(--line-soft); }
