/* =========================================================
   NUS Postgraduate Fair 2026 — Stylesheet
   Brand: NUS Blue #003D7C (PMS 294) · NUS Orange #EF7C00 (PMS 152)
   ========================================================= */

:root {
  --navy: #003d7c;      /* NUS Blue — PMS 294 */
  --navy-deep: #002c5a;
  --navy-brand: #003d7c;
  --orange: #ef7c00;  /* NUS Orange — PMS 152 */
  --orange-dark: #d96f00;
  --teal: #24636B;
  --ink: #000000;
  --paper: #ffffff;
  --paper-tint: #f2f5fa;
  --line: #d7dfeb;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(3, 48, 107, 0.10);
  /* NUS corporate web typeface: Roboto (per identity guidelines);
     Helvetica/Arial are the approved fallbacks */
  --font: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  /* base font scale: 18px instead of the browser default 16px —
     every rem-based size on the page scales up proportionally (125% = 20px) */
  font-size: 125%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

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

.container {
  width: 100%;
  max-width: 1480px;
  margin-inline: auto;
  /* fluid side padding: 1rem on phones, up to 2rem on large screens */
  padding-inline: clamp(1rem, 2.5vw, 2rem);
}

.icon { width: 1.4em; height: 1.4em; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .03em;
  padding: .8em 1.6em;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, color .15s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }

.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); }

.btn-outline { background: #fff; color: var(--navy-brand); border-color: var(--navy-brand); }
.btn-outline:hover { background: var(--navy-brand); color: #fff; }

.btn-navy { background: var(--navy-brand); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }

.btn-sm { font-size: .85rem; padding: .6em 1.4em; }

/* ---------- Navigation ---------- */
.main-nav { background: transparent; }

.nav-inner { position: relative; }

.nav-links {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1.6rem;
  padding: .5rem 0;
}
.nav-links a {
  position: relative;
  display: inline-block;
  padding-bottom: .55em;
  color: var(--navy-brand);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  transition: color .15s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--orange); }
.nav-links .nav-cta a.btn { color: #fff; }
.nav-links .nav-cta a.btn:hover { color: #fff; }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-logo img { height: 54px; width: auto; }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav-inner .nav-links { flex: 1; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: .8rem 0;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy-brand);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- Nav collapses to a hamburger on tablet & mobile (<=960px) ---------- */
@media (max-width: 960px) {
  .main-nav,
  .page-header { position: relative; }
  .nav-inner,
  .page-header-inner { position: static; }
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    box-shadow: 0 14px 24px rgba(3, 48, 107, .12);
    padding: 0 clamp(1rem, 2.5vw, 2rem) 1rem;
    z-index: 60;
  }
  .nav-links.open { display: flex; }
  /* override desktop page-header nav (centered, gapped) for the dropdown */
  .page-header .nav-links { align-items: stretch; gap: 0; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links li:first-child { border-top: 0; }
  .nav-links a { display: block; padding: .85rem 0; text-align: left; }
  .nav-links a::after { display: none; }
  .nav-links .nav-cta { padding: .7rem 0; }
  .nav-links .nav-cta a.btn { display: inline-flex; }
}

/* ---------- First screen (hero + countdown = full viewport) ---------- */
.fold {
  display: flex;
  flex-direction: column;
  min-height: 100vh;  /* fallback */
  min-height: 100svh; /* stable viewport height on mobile */
}
.fold .hero { flex: 1 0 auto; }
.fold .countdown-band {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: .5rem 0 0;
  background: #f4f0ed; /* cream, matches the skyline artwork */
  overflow: hidden;
}

/* skyline artwork anchored bottom-right, behind the copy */
.hero-skyline {
  z-index: 0; /* behind the hero copy */
  position: absolute;
  right: 0;
  bottom: 40px; /* keeps the reflection above the wave */
  width: min(78%, 1180px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2rem;
  padding-top: 2.3rem; 
  padding-bottom: 5.5rem;
}
.hero-copy { position: relative; max-width: 640px; }

.hero-plane {
  position: absolute;
  top: 2.2rem;
  left: min(46%, 620px);
  width: clamp(220px, 28vw, 420px);
  pointer-events: none;
}

.hero-title {
  font-size: clamp(2.9rem, 5.4vw, 4.4rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -.01em;
}
.hero-title span { display: block; }
.line-navy { color: var(--navy-brand); }
.line-orange { color: var(--orange); }

.hero-tagline {
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}
.hero-tagline .tag-navy { color: var(--navy-brand); }
.hero-tagline .tag-orange { color: var(--orange); }
.tag-swoosh {
  display: block;
  width: 210px;
  height: 14px;
  margin-top: .15rem;
}

.event-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
  margin-top: 1.4rem;
  color: var(--navy-brand);
}
.event-meta li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: 1rem;
}

.event-meta .icon { color: var(--navy-brand); margin-top: .15em; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.4rem;
}

.hero-wave {
  z-index: 2;
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 100px; }

/* ---------- Countdown band ---------- */
.countdown-band {
  background: linear-gradient(180deg, #0a4c94 0%, #003d7c 45%, #002a56 100%);
  color: #fff;
  padding: 0.9rem 0 1rem;
}

.countdown-inner {
  display: grid;
  grid-template-columns: auto auto auto auto;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.countdown-heading {
  font-size: .85rem;
  letter-spacing: .12em;
  font-weight: 700;
  margin-bottom: .7rem;
  text-align: center;
}

.countdown {
  display: flex;
  gap: .8rem;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: var(--radius);
  padding: .8rem 1.3rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
}
.count-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 92px;
}
.count-num {
  font-size: 3.4rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.count-label {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .85;
}

.mascot-block {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  text-align: center;
}
.mascot {
  position: relative;
  z-index: 2; /* above the hero wave it overlaps */
  line-height: 0;
}
.mascot-img {
  height: 300px;
  width: auto;
  margin-top: -185px; /* pops out of the navy band into the hero */
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .35));
}
.mascot-emoji { display: none; }
/* fallback white circle + emoji until images/leo.png exists */
.mascot.img-missing {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 18px rgba(0,0,0,.25);
  line-height: 1;
}
.mascot.img-missing .mascot-emoji { display: block; font-size: 3rem; }

.mascot-text {
  position: relative;
  font-size: 1rem;
  line-height: 1.35;
}
.mascot-text strong { font-size: 1.1rem; }
.mascot-text .sparkle {
  position: absolute;
  top: -1.2em;
  right: -.6em;
  color: var(--orange);
  font-size: 1.05rem;
  letter-spacing: .3em;
}

.highlight-card {
  background: #fff;
  color: var(--navy-brand);
  border-radius: var(--radius);
  padding: .8rem 1.2rem;
  text-align: center;
  font-weight: 700;
  font-size: .9rem;
  box-shadow: var(--shadow);
  min-width: 210px;
}
.gift-icon { display: block; margin: .1rem auto .4rem; color: var(--orange); }
.gift-icon svg { width: 2.2rem; height: 2.2rem; margin: 0 auto; }
.gift-highlight { color: var(--orange); font-size: 1.05rem; letter-spacing: .04em; }

/* ---------- Feature cards ---------- */
.features { padding: 3rem 0; background: var(--paper-tint); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 68px;
  height: 68px;
  flex-shrink: 0;      /* keep the circle round next to long headings */
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
}
.feature-icon svg { width: 40px; height: 40px; }
.feature-icon.navy { background: var(--navy-brand); }
.feature-icon.orange { background: var(--orange); }
.feature-icon.teal { background: var(--teal); }

.feature-card h3 {
  color: var(--navy-brand);
  font-size: .95rem;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.feature-card h3.orange-text { color: var(--orange); }
.feature-card h3.teal-text { color: var(--teal); }

.feature-card p {
  font-size: 1rem;
  color: var(--navy-brand);
  flex-grow: 1;
}

.feature-card .btn { align-self: flex-start; }

/* ---------- About ---------- */
.about { padding: 1rem 0 3rem; background: var(--paper-tint); }

.about-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  box-shadow: var(--shadow);
}
.about-box h2 {
  color: var(--navy-brand);
  font-size: 1.25rem;
  margin-bottom: .8rem;
}
.about-box p { font-size: 1rem; }

/* ---------- Footer strip ---------- */
.footer-strip {
  background: var(--navy);
  color: #fff;
  padding: 1.6rem 0 0;
}

/* ---------- At the Fair (perks + media partners, above the footer) ---------- */
.event-perks {
  background: var(--paper-tint);
  padding: 1rem 0 2.8rem;
}
.perks-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}
.perk-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* one row */
  gap: 1rem;
  width: min(1160px, 100%);
}
.perk-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  text-align: center;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy-brand);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1rem;
  box-shadow: var(--shadow);
}

.media-partners {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .8rem 1.2rem;
  color: var(--navy-brand);
  text-align: center;
  box-shadow: var(--shadow);
}
.mp-label {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: .35rem;
}
.mp-logos { display: flex; gap: 1rem; align-items: center; }
.mp-logo {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #222;
}
.mp-logo.mp-red { color: #c8102e; }

.footer-org {
  padding: 3.5rem 0 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  text-align: left;
}
.footer-org-name {
  font-size: 1.05rem;
  font-weight: 700;
}
.footer-org-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.footer-org-details li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-size: .88rem;
  color: rgba(255,255,255,.85);
}
.footer-org-details .icon { width: 18px; height: 18px; margin-top: .1em; }
.footer-org-details a {
  color: inherit;
  text-decoration: none;
}
.footer-org-details a:hover { color: #fff; text-decoration: underline; }

.footer-copy {
  border-top: 1px solid rgba(255,255,255,.2);
  text-align: center;
  font-size: .75rem;
  padding: 1.4rem 0;
  opacity: .8;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1000px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }

  .countdown-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  /* band stacks vertically — drop the overlap and add space above Leo */
  .mascot-img { height: 290px; margin-top: -1rem; }
}

/* Phones: stacked hero (skyline below the text); tablets keep it at the side */
@media (max-width: 760px) {
  .hero-inner { padding-top: .6rem; padding-bottom: 0; }
  .hero-plane { display: none; }
  .hero-skyline {
    position: static;
    display: block;
    width: 100%;
    max-width: none;
    margin: -1.5rem 0 0;   /* pull the skyline up, closer to the button */
  }
  .nav-logo img { height: 40px; }

  /* stack date/venue details */
  .event-meta { flex-direction: column; gap: 1rem; }
  .event-meta li + li { border-left: 0; padding-left: 0; }

  /* stack CTA buttons full-width */
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }

  .about-box { padding: 1.5rem 1.2rem; }

  /* title scales down smoothly for tablet & phone */
  .hero-title { font-size: clamp(1.9rem, 7vw, 3.2rem); }

  .mascot-block {
    gap: .4rem;
  }
}

/* Phones only: enlarge the skyline so it fills the width */
@media (max-width: 560px) {
  .hero-skyline {
    width: 150%;              /* hero overflow clips the sides */
    margin: -1.5rem -25% 0;   /* centre the oversized image, pulled up */
  }
}

@media (max-width: 860px) {
  .perk-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .features-grid { grid-template-columns: 1fr; }
  .count-cell { min-width: 58px; }
  .count-num { font-size: 2.4rem; }
  .countdown { gap: .5rem; padding: .7rem .8rem; }
  .mp-logos { flex-wrap: wrap; justify-content: center; }
}

/* =========================================================
   Inner pages (Masterclasses, etc.)
   ========================================================= */

/* ---------- Page header ---------- */
.page-header {
  background: #fff;
  box-shadow: 0 2px 14px rgba(3, 48, 107, .08);
  position: sticky;
  top: 0;
  z-index: 50;
}
.page-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 54px;      /* match the homepage crest-logo header height */
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.fair-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .01em;
  text-decoration: none;
}
.fair-logo .fl-navy { color: var(--navy-brand); }
.fair-logo .fl-orange { color: var(--orange); }
.page-header .nav-links {
  padding: 0;
  align-items: center;
  gap: 1.3rem;
}
.page-header .nav-links a { padding-bottom: .35em; }
.page-header .nav-cta a.btn { padding-bottom: .6em; }
.page-header .nav-cta a.btn::after { display: none; }
.page-header .nav-cta a.btn:hover { color: #fff; }

/* ---------- Page hero banner ---------- */
.page-hero {
  position: relative;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(63, 114, 190, .45), transparent 55%),
    linear-gradient(135deg, #003367 0%, #003d7c 55%, #002548 100%);
  color: #fff;
  overflow: hidden;
}

/* Banner-image hero: HTML title text over a photo background.
   A navy scrim on the left keeps the text legible and covers the
   image's own baked-in text, while the right-side graphics show through.
   Set the image per page via inline style: style="background-image:url('...')" */
.page-hero--img {
  background-color: #002d52;
  background-repeat: no-repeat;
  background-position: center right;
  background-size: cover;
}
.page-hero--img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(0, 40, 82, .96) 0%,
    rgba(0, 40, 82, .88) 32%,
    rgba(0, 40, 82, .45) 58%,
    rgba(0, 40, 82, .05) 80%,
    transparent 100%);
  z-index: 1;
}
.page-hero--img .page-hero-inner { position: relative; z-index: 2; }
/* FAQ banner: show the speech-bubble artwork smaller (contained) so it stays
   in the right corner and doesn't crowd the title. Cover on phones. */
.page-hero--faq { background-size: contain; background-position: center right; }
@media (max-width: 760px) {
  .page-hero--faq { background-size: cover; }
}
/* image supplies the right-side graphics, so the emoji tiles aren't needed */
.page-hero--img .page-hero-tiles { display: none; }
.page-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 420px;          /* uniform banner height across all pages */
}
.page-hero h1 {
  display: flex;
  align-items: center;
  gap: .4em;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 800;
}
.accent-bar {
  display: inline-block;
  width: .18em;
  height: 1.05em;
  background: var(--orange);
  border-radius: 3px;
}
.page-hero p {
  margin-top: .8rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #dbe6f5;
}
.page-hero-tiles {
  position: relative;
  width: 300px;
  height: 190px;
  flex-shrink: 0;
}
.tile {
  position: absolute;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  font-size: 1.7rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.tile.t1 { top: 0; left: 20px; }
.tile.t2 { top: 8px; left: 118px; background: rgba(239, 123, 0, .8); }
.tile.t3 { top: 0; right: 10px; }
.tile.t4 { bottom: 18px; left: 0; }
.tile.t5 { bottom: 6px; left: 112px; }
.tile.t6 { bottom: 22px; right: 18px; background: rgba(255, 255, 255, .16); }

/* ---------- Intro / notes ---------- */
.page-main { padding: 2.4rem 0 3rem; }
.page-intro {
  color: var(--navy-brand);
  font-size: 1rem;
}
.tracks-note {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  margin: 1.8rem 0;
  padding-bottom: 1.2rem;
  border-bottom: 1px dashed var(--line);
}

/* ---------- Keynote card ---------- */
.keynote-card {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 1.8rem;
  background: var(--paper-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  margin-top: 1.8rem;
  box-shadow: var(--shadow);
}
.keynote-label {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .9rem;
}
.keynote-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-brand);
  color: #fff;
}
.keynote-icon svg { width: 22px; height: 22px; }
.keynote-tag {
  color: var(--orange);
  font-weight: 800;
  letter-spacing: .08em;
  font-size: .85rem;
}
.keynote-time { color: var(--navy-brand); font-weight: 700; font-size: .85rem; }
.keynote-time::before { content: "|"; margin-right: .45em; }

/* stack the label and time beside the icon on mobile */
@media (max-width: 560px) {
  .keynote-label {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: .7rem;
    row-gap: .1rem;
    align-items: center;
  }
  .keynote-icon { grid-row: 1 / span 2; }
  .keynote-tag { grid-column: 2; align-self: end; }
  .keynote-time { grid-column: 2; align-self: start; }
  .keynote-time::before { display: none; }
}
.keynote-card h2 {
  color: var(--navy-brand);
  font-size: 1.25rem;
  line-height: 1.35;
  margin-bottom: .8rem;
}
.keynote-speaker { color: var(--navy-brand); font-size: 1rem; margin-bottom: .8rem; }
.keynote-desc { color: var(--ink); font-size: 1rem; }
.keynote-photo { align-self: center; }
.keynote-photo img,
.speaker-placeholder {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 10px;
}
.speaker-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #dfe7f2, #b9c8de);
  color: var(--navy-brand);
  font-size: 3rem;
  font-weight: 800;
}

/* ---------- Schedule ---------- */
.schedule-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  color: var(--navy-brand);
  font-size: 1.15rem;
  letter-spacing: .04em;
  margin: 1.4rem 0;
  text-align: center;
}
.track-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}
.track-title {
  background: var(--navy-brand);
  color: #fff;
  text-align: center;
  font-size: .95rem;
  letter-spacing: .06em;
  padding: .8rem 1rem;
}
.table-scroll { overflow-x: auto; }
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  min-width: 760px;
}
.schedule-table th {
  background: #eef2f8;
  color: var(--orange);
  text-align: left;
  padding: .7rem 1rem;
  font-size: .78rem;
  letter-spacing: .04em;
}
.schedule-table td {
  padding: .95rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  vertical-align: middle;
}
.schedule-table .time-cell {
  white-space: nowrap;   /* keep the time range on one line */
  width: 1%;             /* shrink to its content */
  color: var(--navy-brand);
}
.schedule-table .topic-cell {
  font-weight: 700;      /* topic bold, same size as the rest */
  width: 26%;            /* narrower topic column */
  max-width: none;
}
/* Speaker column — room for the photo beside the name */
.schedule-table td:nth-child(3) { width: 30%; }
/* College / School / Faculty */
.schedule-table td:nth-child(4) { width: 16%; }
/* More Details — keep it compact */
.schedule-table td:nth-child(5) { width: 1%; }
.chip {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: .6rem;
  font-size: 1.15rem;
  vertical-align: middle;
  flex-shrink: 0;
}
.chip-1 { background: #e8eefc; }
.chip-2 { background: #e7f6ec; }
.chip-3 { background: #f3eafc; }
.chip-4 { background: #fdeee0; }
.chip-5 { background: #e6f4f6; }
.schedule-table .more-details {
  white-space: nowrap;
  font-size: .72rem;
  padding: .5em 1em;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  color: #fff;
  padding: 1.6rem 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  text-align: center;
}
.cta-inner p { font-size: 1.05rem; font-weight: 700; }

/* ---------- More Details modal ---------- */
.mc-modal { position: fixed; inset: 0; z-index: 100; }
.mc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 24, 54, .65);
  backdrop-filter: blur(2px);
}
.mc-dialog {
  position: relative;
  width: min(680px, 92%);
  max-height: 86vh;
  overflow-y: auto;
  margin: 6vh auto 0;
  background: #fff;
  border-radius: 16px;
  padding: 2rem 2.2rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
}
.mc-close {
  position: absolute;
  top: .8rem;
  right: 1rem;
  background: none;
  border: 0;
  font-size: 2rem;
  line-height: 1;
  color: var(--navy-brand);
  cursor: pointer;
}
.mc-header {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: 1.4rem;
}
.mc-photo img,
.mc-photo .speaker-placeholder {
  width: 120px;
  max-width: 120px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  font-size: 2rem;
}
.mc-who h3 { color: var(--navy-brand); font-size: 1.2rem; }
.mc-who p { color: var(--ink); font-size: 1rem; margin: .2rem 0 .6rem; }
.mc-school {
  display: inline-block;
  background: var(--paper-tint);
  border: 1px solid var(--line);
  color: var(--navy-brand);
  font-size: .78rem;
  font-weight: 700;
  padding: .3em .9em;
  border-radius: 999px;
}
.mc-title {
  color: var(--orange);
  font-size: 1.05rem;
  line-height: 1.4;
  margin-bottom: .8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.mc-synopsis {
  font-size: 1rem;
  color: var(--ink);
  white-space: pre-line; /* keep paragraph breaks in multi-paragraph synopses */
}

/* ---------- Inner pages responsive ---------- */
@media (max-width: 900px) {
  .page-hero-tiles { display: none; }
  .keynote-card { grid-template-columns: 1fr; }
  .keynote-photo { justify-self: center; width: 200px; }
}
@media (max-width: 760px) {
  .mc-header { flex-direction: column; text-align: center; }
  .mc-dialog { padding: 1.6rem 1.3rem; }
}

/* =========================================================
   Programmes & Booths
   ========================================================= */
.booth-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 cards per row */
  gap: 1.2rem;
  margin-top: 1.8rem;
}
.booth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.booth-logo {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.booth-logo img {
  max-height: 64px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}
.booth-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

/* =========================================================
   Scholarships & Opportunities
   ========================================================= */
.opp-card {
  scroll-margin-top: 90px; /* clear the sticky header when jumped to via #anchor */
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.8rem;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-top: 1.6rem;
  box-shadow: var(--shadow);
}
.opp-photo {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  border-radius: 10px;
}
.opp-placeholder {
  display: grid;
  place-items: center;
  font-size: 4rem;
  background: linear-gradient(160deg, #dfe7f2, #b9c8de);
}
.opp-body { padding: .6rem .8rem .6rem 0; }
.opp-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.opp-heading h2 {
  color: var(--navy-brand);
  font-size: 1.5rem;
  line-height: 1.2;
}
.opp-body p {
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 1rem;
}
.opp-body .opp-note {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  background: var(--navy-brand);
  color: #fff;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-top: 1.2rem;
  margin-bottom: 0;
  font-size: .95rem;
}
.opp-body .opp-note .icon { flex-shrink: 0; width: 26px; height: 26px; margin-top: .1em; color: #fff; }

@media (max-width: 860px) {
  .opp-card { grid-template-columns: 1fr; }
  .opp-photo { min-height: 220px; }
  .opp-body { padding: 0; }
}

/* =========================================================
   Testimonials
   ========================================================= */
.tt-tabs {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  margin: 1.8rem 0 2rem;
}
.tt-tab {
  position: relative;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: #7a8aa0;
  padding: .8rem .2rem 1rem;
  transition: color .15s ease;
}
.tt-tab:hover { color: var(--navy-brand); }
.tt-tab.active { color: var(--orange); }
.tt-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 2px;
  background: var(--orange);
}

.tt-group-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--navy-brand);
  font-size: 1.2rem;
  margin-bottom: 1.4rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 per row */
  gap: 1.2rem;
}

.testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.2rem 1.3rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-family: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(3, 48, 107, .16);
}
.tc-quote-mark {
  position: absolute;
  top: .4rem;
  left: .8rem;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--orange);
  font-family: Georgia, serif;
}
.tc-avatar {
  width: 64px;
  height: 64px;
  margin-bottom: .3rem;
}
.tc-avatar img,
.tc-avatar .speaker-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  font-size: 1.3rem;
  aspect-ratio: auto;
  max-width: none;
}
.tc-name { color: var(--navy-brand); font-size: 1rem; }
.tc-prog { color: var(--ink); font-size: .85rem; font-weight: 600; }
.tc-year { color: var(--orange); font-size: .8rem; font-weight: 700; }
.tc-quote { color: #5a6b80; font-size: .84rem; line-height: 1.45; margin-top: .4rem; }

@media (max-width: 1000px) {
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .testimonial-grid { grid-template-columns: 1fr; }
  .tt-tabs { gap: 1.5rem; }
}

/* =========================================================
   Plan Your Visit
   ========================================================= */
.fact-label {
  display: block;
  color: var(--orange);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.visit-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.8rem;
}
.fact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  box-shadow: var(--shadow);
}
.fact-value {
  color: var(--navy-brand);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
}
.fact-sub { font-size: .8rem; color: #5a6b80; margin-top: .3rem; }

.venue-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 1rem;
  margin-top: 1rem;
}
.venue-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.venue-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.venue-details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow);
}
.venue-details h2 {
  color: var(--navy-brand);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
.venue-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.venue-list li {
  display: flex;
  gap: .6rem;
  font-size: 1rem;
  color: var(--ink);
}
.venue-list .icon { color: var(--orange); width: 20px; height: 20px; margin-top: .1em; }
.venue-list a { color: inherit; text-decoration: none; }
.venue-list a:hover { text-decoration: underline; }
.venue-hall {
  display: flex;
  gap: .6rem;
  padding-top: 1rem;
  font-size: 0.88rem;
}
.venue-hall .icon { color: var(--navy-brand); width: 22px; height: 22px; flex-shrink: 0; margin-top: .1em; }

.getting-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 1rem;
  margin-top: 1rem;
}
.getting-here,
.find-us {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow);
}
.distance-list { list-style: none; }
.distance-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  color: var(--navy-brand);
  font-weight: 600;
}
.distance-list li:last-child { border-bottom: 0; }
.distance-list .dist {
  color: var(--ink);
  font-weight: 700;
  text-align: right;
  font-size: .9rem;
}
.distance-list .dist small { font-weight: 500; color: #5a6b80; }
.map-embed {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1rem;
}

/* =========================================================
   FAQs accordion
   ========================================================= */
.faq-container { max-width: 900px; }
.text-link { color: var(--orange); font-weight: 700; }
.accordion {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  margin-top: 1.8rem;
}
.accordion-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 1rem 1.3rem;
  font-family: inherit;
  text-align: left;
}
.faq-q {
  color: var(--navy-brand);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}
.faq-num { color: var(--navy-brand); margin-right: .2em; }
.chevron {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--navy-brand);
  border-bottom: 2.5px solid var(--navy-brand);
  transform: rotate(45deg);
  transition: transform .2s ease;
  margin-top: -4px;
}
.accordion-item.open .chevron { transform: rotate(225deg); margin-top: 4px; }
.accordion-panel {
  display: none;
  padding: 0 1.3rem 1.2rem;
  background: var(--paper-tint);
  border-top: 1px solid var(--line);
}
.accordion-item.open .accordion-panel { display: block; }
.accordion-panel p {
  font-size: 1rem;
  color: var(--ink);
  padding-top: 1rem;
}
.accordion-panel ul {
  list-style: none;
  padding-top: 1rem;
}
.accordion-panel p + ul { padding-top: .6rem; }
.accordion-panel li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: .5rem;
}
.accordion-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
.accordion-panel ul.two-col {
  columns: 2;
  column-gap: 1.25rem;
  max-width: 34rem;   /* keep the two columns close together */
}
.accordion-panel ul.two-col li { break-inside: avoid; }

/* ---------- New pages responsive ---------- */
@media (max-width: 1000px) {
  .booth-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .booth-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .visit-facts { grid-template-columns: 1fr; }
  .venue-grid,
  .getting-grid { grid-template-columns: 1fr; }
  .venue-photo img { max-height: 280px; }
  .accordion-panel ul.two-col { columns: 1; }
}

/* =========================================================
   Registration modal (Ticket Tailor)
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(3, 24, 54, .65);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 6vh 1rem;
}
.modal-overlay[hidden] { display: none; }
.modal-content {
  position: relative;
  width: min(720px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 2.4rem 1.6rem 1.6rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
}
.modal-content p {
  font-size: .88rem;
}
.modal-close {
  position: absolute;
  top: .6rem;
  right: .9rem;
  background: none;
  border: 0;
  font-size: 2rem;
  line-height: 1;
  color: var(--navy-brand);
  cursor: pointer;
}

@media (max-width: 900px) {
  .modal-content p {
    font-size: 0.8rem;
  }
}


/* =========================================================
   Uniform body text — same size (1rem) and black
   ========================================================= */
.page-intro,
.feature-card p,
.about-box p,
.keynote-speaker,
.keynote-desc,
.opp-body p,
.accordion-panel p,
.accordion-panel li,
.venue-list li,
.distance-list li,
.mc-synopsis,
.mc-who p,
.tc-quote,
.schedule-table td,
.schedule-table .time-cell,
.schedule-table .topic-cell {
  font-size: .88rem;
  color: #000;
}

/* =========================================================
   Schedule tables stack into cards on tablet & mobile
   ========================================================= */
@media (max-width: 900px) {
  .table-scroll { overflow: visible; }
  .schedule-table { min-width: 0; }
  .schedule-table thead { display: none; }
  .schedule-table,
  .schedule-table tbody,
  .schedule-table tr,
  .schedule-table td { display: block; width: 100%; }
  .schedule-table tr {
    padding: 1rem 1.1rem;
    border-top: 1px solid var(--line);
  }
  .schedule-table tbody tr:first-child { border-top: 0; }
  .schedule-table td {
    border-top: 0;
    padding: .35rem 0;
  }
  .schedule-table td::before {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--orange);
    margin-bottom: .1rem;
  }
  .schedule-table td:nth-child(1)::before { content: "Time"; }
  .schedule-table td:nth-child(2)::before { content: "Topic"; }
  .schedule-table td:nth-child(3)::before { content: "Speaker"; }
  .schedule-table td:nth-child(4)::before { content: "College / School / Faculty"; }
  /* override the desktop column widths so stacked cells fill the row */
  .schedule-table .time-cell,
  .schedule-table .topic-cell,
  .schedule-table td:nth-child(3),
  .schedule-table td:nth-child(4),
  .schedule-table td:nth-child(5) {
    width: 100%;
    max-width: none;
    white-space: normal;
    font-size: .88rem;
  }
  .schedule-table td::before { white-space: normal; }
  .schedule-table .more-details {
    width: auto;
    margin-top: .4rem;
    white-space: normal;
    font-size: .8rem;
    padding: .6em 1.4em;
  }
}

/* =========================================================
   Sub-page mobile dropdown — force left-aligned like the homepage
   (placed last so it beats the earlier .page-header .nav-links rule)
   ========================================================= */
@media (max-width: 960px) {
  .page-header .nav-links {
    align-items: stretch;
    gap: 0;
    padding: 0 clamp(1rem, 2.5vw, 2rem) 1rem;
  }
  .page-header .nav-links a { text-align: left; }
  /* REGISTER button: left-aligned with comfortable side padding */
  .page-header .nav-links .nav-cta a.btn {
    align-self: flex-start;
    padding: .7em 2em;
  }
}

/* =========================================================
   Masterclasses — speaker photo above name + smaller table text
   ========================================================= */
/* speaker photo sits beside the name, in a fixed column so long names
   never drop below the photo — keeps every row consistent */
.spk-photo {
  display: inline-block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;   /* centre the photo against the name */
  margin: 0 10px 0 0;
}
.spk-cell .spk-name {
  display: inline-block;
  vertical-align: middle;
  width: calc(100% - 60px);
}
/* slightly smaller table text */
.schedule-table td,
.schedule-table .time-cell,
.schedule-table .topic-cell { font-size: .8rem; }

/* card titles matching their icon colour */
.opp-heading h2.opp-title-orange { color: var(--orange); }
.opp-heading h2.opp-title-teal { color: var(--teal); }

.tnc-note {
  margin-top: 1.5rem;
  font-size: .8rem;
  font-style: italic;
  color: #555;
  text-align: right;
}

/* Phone/tablet stacked cards: photo above the name with a small gap
   (placed after the base spk rules so it wins on small screens) */
@media (max-width: 900px) {
  .schedule-table .spk-photo { display: block; margin: 0 0 .4rem 0; }
  .schedule-table .spk-cell .spk-name { display: block; font-size: 0.8rem; width: 100%;  }
  .schedule-table td.csf-cell { font-size: 0.8rem; }
  /* smaller track header band on mobile */
  .track-title { font-size: .80rem; letter-spacing: .04em; padding: .65rem .8rem; }
}

/* Tablet: side-by-side — text on the left, large skyline lifted up on the
   right so it sits beside the text (not sunk onto the wave). Date/venue stay
   on one row; the copy is capped so they stay clear of the buildings. */
@media (min-width: 761px) and (max-width: 1024px) {
  .hero-inner { padding-top: .8rem; padding-bottom: 5.5rem; } /* tighten under the logo, lift the button clear of the wave */
  .hero-copy { max-width: 62%; }
  .hero-skyline { width: 62%; bottom: 55px; }
  .hero-plane { left: min(38%, 320px); width: clamp(180px, 22vw, 300px); }
  /* keep date & venue on one row */
  .event-meta { flex-wrap: nowrap; gap: 0 1.4rem; }
  .event-meta li { font-size: .95rem; }
  .event-meta li + li { padding-left: 1.4rem; }

  /* rebalance the countdown band: countdown on top, then Leo (with its
     caption beneath) bottom-left and the gift card bottom-right */
  .countdown-inner {
    grid-template-columns: auto auto;
    grid-template-areas:
      "count count"
      "mascot vr"
      "mascot gift";
    justify-content: center;
    justify-items: center;
    align-items: center;
    gap: 2.4rem 3rem;
  }
  .countdown-block { grid-area: count; }
  .mascot-block {
    grid-area: mascot;
    flex-direction: column;
    text-align: center;
    gap: .5rem;
  }
  .highlight-card.vr-card { grid-area: vr; }
  .highlight-card.gift-card { grid-area: gift; }
  .mascot-img { height: 230px; margin-top: 0; }
}

/* default: wrapper is invisible to layout - children act as direct
   grid items, so the mobile-stack and tablet grid rules are untouched */
.highlight-row { display: contents; }

/* Between tablet and full desktop, the base 4-column grid has no room
   to shrink and overlaps — regroup into two centered rows (count+mascot,
   then the two highlight cards) until the desktop grid takes over at 1300px. */
@media (min-width: 1025px) and (max-width: 1300px) {
  .countdown-inner {
    display: flex;
    flex-direction: column;
  }
  .highlight-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
  }
}

/* =========================================================
   Sub-page banner: keep a uniform height on every page,
   across desktop / tablet / phone (content stays centered)
   ========================================================= */
@media (max-width: 1024px) {
  .page-hero-inner { height: 340px; }
}
@media (max-width: 760px) {
  .page-hero-inner { height: 280px; }
  .page-hero h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); }
  .page-hero p { font-size: .95rem; margin-top: .5rem; }
}

