/* ==========================================================================
   Waad Academy — Advanced Academic Programs
   Design system: "Ray Pathway"
   The mark is built from the school's own crest — a burst of teal, magenta
   and amber rays. Here that burst becomes the structural idea of the site:
   a pathway of rays that lengthens as a student advances, Grade 9 through
   university. The same tick-mark motif reappears as the hero graphic, the
   section dividers and the literal grade-progress indicator on every page.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root{
  /* ---- palette -------------------------------------------------------- */
  --ink:        #0b1830;   /* primary text / deep panels */
  --navy:       #16265c;   /* wordmark navy */
  --teal:       #0ea8a6;   /* Pre-AP ray */
  --magenta:    #e01f7d;   /* Capstone ray */
  --amber:      #f2930f;   /* AP / testing ray */
  --indigo:     #3b4fd9;   /* AP program accent */
  --terracotta: #c1502e;   /* from the campus façade — used sparingly */
  --paper:      #f4f6f9;   /* cool, quiet page background */
  --paper-raised: #ffffff;
  --line:       #e2e6ee;
  --muted:      #5b6478;
  --muted-2:    #8a91a3;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 9px;

  --shadow-sm: 0 1px 2px rgba(11,24,48,.04), 0 1px 1px rgba(11,24,48,.03);
  --shadow-md: 0 12px 28px -10px rgba(11,24,48,.16);
  --shadow-lg: 0 30px 60px -20px rgba(11,24,48,.28);

  --ease: cubic-bezier(.16,.8,.24,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

h1,h2,h3,h4{
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
p{ margin: 0; }
a{ color: inherit; }
img{ max-width: 100%; display: block; }

:focus-visible{
  outline: 3px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap{ max-width: 1180px; margin: 0 auto; padding: 0 28px; }

.eyebrow{
  font-family: 'IBM Plex Mono', monospace;
  font-size: .76em;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before{
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  display: inline-block;
}

/* ---------------------------------------------------------------------- */
/*  Skip link                                                             */
/* ---------------------------------------------------------------------- */
.skip-link{
  position: absolute; left: -999px; top: auto;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0;
  z-index: 999; font-weight: 600;
}
.skip-link:focus{ left: 0; top: 0; }
.visually-hidden{
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important;
}

/* ---------------------------------------------------------------------- */
/*  Top announcement strip                                                */
/* ---------------------------------------------------------------------- */
.topbar{
  background: var(--ink);
  color: rgba(255,255,255,.82);
  font-size: .82em;
}
.topbar .wrap{
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 9px; padding-bottom: 9px; gap: 16px; flex-wrap: wrap;
}
.topbar a{ color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover{ text-decoration: underline; }
.topbar-tags{ display: flex; gap: 18px; flex-wrap: wrap; }
.topbar-tags span{ display:inline-flex; align-items:center; gap:6px; }
.topbar-tags span::before{
  content:""; width:6px; height:6px; border-radius: 50%; background: var(--teal); display:inline-block;
}

/* ---------------------------------------------------------------------- */
/*  Nav                                                                    */
/* ---------------------------------------------------------------------- */
.site-nav{
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,246,249,.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap{
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px; gap: 24px;
}
.brand{ display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img{ height: 42px; width: 42px; object-fit: contain; }
.brand-word{ display: flex; flex-direction: column; line-height: 1.15; }
.brand-word strong{ font-family: 'Space Grotesk', sans-serif; font-size: 1.05em; font-weight: 700; color: var(--ink); }
.brand-word span{ font-size: .68em; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.nav-links{ display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a{
  display: inline-block; padding: 9px 15px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: .93em; color: var(--muted);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover{ color: var(--ink); background: rgba(11,24,48,.05); }
.nav-links a.is-active{ color: var(--ink); background: #fff; box-shadow: var(--shadow-sm); }

.nav-cta{
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff !important; text-decoration: none;
  font-weight: 700; font-size: .88em; padding: 10px 20px; border-radius: 999px;
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.nav-cta:hover{ transform: translateY(-2px); box-shadow: var(--shadow-md); }
.nav-cta.is-active{ box-shadow: 0 0 0 3px rgba(224,31,125,.22); }

.nav-toggle{ display: none; }

/* ---------------------------------------------------------------------- */
/*  Ray divider                                                            */
/* ---------------------------------------------------------------------- */
.ray-divider{
  display: flex; align-items: flex-end; gap: 4px; height: 30px; margin: 0 auto;
  width: 100%; max-width: 220px; justify-content: center;
}
.ray-divider i{
  display: block; width: 3px; border-radius: 2px; background: var(--line);
}
.ray-divider.on-dark i{ background: rgba(255,255,255,.22); }

/* ---------------------------------------------------------------------- */
/*  Pathway bar — literal grade-progress component reused site-wide       */
/* ---------------------------------------------------------------------- */
.pathway{
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 32px 26px;
  box-shadow: var(--shadow-sm);
}
.pathway-head{ display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.pathway-head h3{ font-size: 1.05em; }
.pathway-head .eyebrow{ color: var(--muted-2); }

.pathway-track{ position: relative; }
.pathway-line{
  position: absolute; left: 0; right: 0; top: 20px; height: 2px; background: var(--line); z-index: 0;
}
.pathway-stops{ position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.pathway-stop{ display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.pathway-dot{
  width: 40px; height: 40px; border-radius: 50%; background: #fff;
  border: 2px solid var(--line); display: flex; align-items: center; justify-content: center;
  font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: .68em; letter-spacing: -.04em; color: var(--muted-2);
  transition: all .25s var(--ease);
}
.pathway-stop.active .pathway-dot{ border-color: var(--stop-color, var(--indigo)); color: var(--stop-color, var(--indigo)); background: color-mix(in srgb, var(--stop-color, var(--indigo)) 12%, white); }
.pathway-label{ font-weight: 700; font-size: .92em; }
.pathway-sub{ font-size: .82em; color: var(--muted); }
.pathway-stop.active .pathway-label{ color: var(--stop-color, var(--ink)); }

@media (max-width: 720px){
  .pathway-stops{ grid-template-columns: repeat(2,1fr); row-gap: 24px; }
  .pathway-line{ display: none; }
}

/* ---------------------------------------------------------------------- */
/*  Hero                                                                   */
/* ---------------------------------------------------------------------- */
.hero{
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  padding: 96px 0 84px;
}
.hero.hero-compact{ padding: 68px 0 60px; }
.hero-brand{
  isolation: isolate;
  background:
    radial-gradient(circle at 82% 12%, rgba(14,168,166,.16), transparent 28%),
    radial-gradient(circle at 68% 86%, rgba(224,31,125,.13), transparent 30%),
    linear-gradient(118deg, #09162d 0%, #111f43 58%, #17265a 100%);
}
.hero-decoration{
  position: absolute;
  pointer-events: none;
  z-index: 0;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  will-change: transform;
}
.hero-logo{
  width: clamp(390px, 39vw, 610px);
  aspect-ratio: 2 / 3;
  right: -7vw;
  top: 50%;
  background-image: url('../assets/hero-logo-rays.png');
  opacity: .5;
  filter: saturate(1.05) contrast(1.02);
}
.hero-emoji{
  width: 118px;
  aspect-ratio: 181 / 110;
  background-image: url('../assets/registration-mark.png');
  opacity: .84;
  filter: saturate(1.08);
  animation: brand-mark-float 6s var(--ease) infinite alternate;
}
.hero-home .hero-logo{ transform: translateY(-49%) rotate(-4deg) scale(1.08); opacity: .44; }
.hero-home .hero-emoji-one{ right: 31vw; top: 28px; bottom: auto; transform: rotate(-11deg) scale(.78); }
.hero-home .hero-emoji-two{ left: 2vw; bottom: 24px; transform: rotate(17deg) scale(.76); animation-delay: -2.5s; }
.hero-preap .hero-logo{ transform: translateY(-47%) rotate(7deg) scale(.94); opacity: .52; }
.hero-preap .hero-emoji-one{ right: 31vw; top: 28px; bottom: auto; transform: rotate(12deg) scale(.78); }
.hero-preap .hero-emoji-two{ left: 3vw; bottom: 22px; transform: rotate(-18deg) scale(.72); animation-delay: -3s; }
.hero-ap .hero-logo{ transform: translateY(-52%) rotate(-9deg) scale(.96); opacity: .46; }
.hero-ap .hero-emoji-one{ right: 31vw; top: 28px; bottom: auto; transform: rotate(15deg) scale(.78); }
.hero-ap .hero-emoji-two{ left: 2vw; top: 24px; transform: rotate(-8deg) scale(.73); animation-delay: -1.8s; }
.hero-capstone{
  background:
    radial-gradient(circle at 16% 18%, rgba(224,31,125,.2), transparent 28%),
    radial-gradient(circle at 82% 82%, rgba(242,147,15,.12), transparent 30%),
    linear-gradient(150deg, #1a1030 0%, #0b1830 58%, #111f43 100%);
}
.hero-capstone .hero-logo{ transform: translateY(-50%) rotate(10deg) scale(.96); opacity: .48; }
.hero-capstone .hero-emoji-one{ right: 31vw; top: 28px; bottom: auto; transform: rotate(-14deg) scale(.78); }
.hero-capstone .hero-emoji-two{ left: 3vw; top: 24px; transform: rotate(19deg) scale(.7); animation-delay: -2.2s; }
.hero-testing .hero-logo{ transform: translateY(-48%) rotate(-7deg) scale(1.02); opacity: .5; }
.hero-testing .hero-emoji-one{ right: 31vw; top: 28px; bottom: auto; transform: rotate(8deg) scale(.78); }
.hero-testing .hero-emoji-two{ left: 2vw; bottom: 20px; transform: rotate(-16deg) scale(.72); animation-delay: -3.4s; }
.hero-register{
  background:
    radial-gradient(circle at 76% 36%, rgba(14,168,166,.2), transparent 24%),
    radial-gradient(circle at 92% 74%, rgba(224,31,125,.2), transparent 26%),
    linear-gradient(112deg, #09162d 0%, #101f42 60%, #17265a 100%);
}
.hero-register .hero-logo{ right: -4vw; transform: translateY(-49%) rotate(4deg) scale(1.06); opacity: .66; }
.hero-register .hero-emoji-one{ right: 31vw; top: 28px; bottom: auto; transform: rotate(-10deg) scale(.78); }
.hero-register .hero-emoji-two{ left: 3vw; top: 26px; transform: rotate(16deg) scale(.72); animation-delay: -2.8s; }
.hero-register .hero-grid.single{ max-width: 720px; margin-left: max(0px, calc((100% - 1180px) / 2)); }
@keyframes brand-mark-float{
  from{ translate: 0 0; }
  to{ translate: 0 -8px; }
}
.hero-grid{
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
}
.hero-grid.single{ grid-template-columns: 1fr; max-width: 760px; }
.hero .eyebrow{ color: rgba(255,255,255,.65); margin-bottom: 18px; }
.hero h1{ color: #fff; font-size: clamp(2.2em, 4.4vw, 3.35em); line-height: 1.06; }
.hero .lede{ margin-top: 20px; font-size: 1.16em; color: rgba(255,255,255,.78); max-width: 54ch; line-height: 1.6; }
.hero-meta{ margin-top: 28px; display: flex; gap: 22px; flex-wrap: wrap; }
.hero-meta div{ font-family: 'IBM Plex Mono', monospace; font-size: .82em; color: rgba(255,255,255,.55); letter-spacing: .04em; }
.hero-meta strong{ display:block; color:#fff; font-family:'Space Grotesk',sans-serif; font-size: 1.25em; font-weight: 700; letter-spacing: 0; }
.hero-actions{ margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-art{ position: relative; z-index: 2; }
.hero-photo{
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.12);
  position: relative;
}
.hero-photo img{ width: 100%; height: 340px; object-fit: cover; display: block; }
.hero-photo-cap{
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(11,24,48,.86), transparent);
  color: #fff; padding: 42px 20px 16px; font-size: .84em; font-weight: 600;
}

/* ---------------------------------------------------------------------- */
/*  Buttons                                                                */
/* ---------------------------------------------------------------------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: .95em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.btn-primary{ background: #fff; color: var(--ink); }
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(0,0,0,.35); }
.btn-ghost{ border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover{ background: rgba(255,255,255,.1); }
.btn-dark{ background: var(--ink); color: #fff; }
.btn-dark:hover{ transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline{ border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover{ border-color: var(--ink); }
.btn-block{ width: 100%; }

/* ---------------------------------------------------------------------- */
/*  Sections & cards                                                       */
/* ---------------------------------------------------------------------- */
.section{ padding: 74px 0; }
.section-tight{ padding: 44px 0; }
.section-head{ max-width: 680px; margin-bottom: 40px; }
.section-head .eyebrow{ color: var(--muted-2); margin-bottom: 14px; }
.section-head h2{ font-size: clamp(1.6em, 2.6vw, 2.15em); }
.section-head p{ margin-top: 14px; color: var(--muted); font-size: 1.05em; line-height: 1.65; }
.section-head.center{ margin-left: auto; margin-right: auto; text-align: center; }

.band{ background: var(--paper-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-ink{ background: var(--ink); color: #fff; }
.band-ink .muted{ color: rgba(255,255,255,.68); }

.intro-panel{
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-left: 5px solid var(--stripe, var(--indigo));
  border-radius: var(--radius-lg);
  padding: 40px 42px;
  box-shadow: var(--shadow-sm);
}
.intro-panel h2{ font-size: 1.55em; margin-bottom: 14px; }
.intro-panel p{ color: var(--text-main, #334155); font-size: 1.04em; margin-bottom: 12px; }
.intro-panel p:last-child{ margin-bottom: 0; }
.intro-panel strong{ color: var(--ink); }
.capstone-overview{ display: block; }
.capstone-overview-copy{ min-width: 0; }
.capstone-award-grid{ display: grid; grid-template-columns: .92fr 1.08fr; gap: 38px; align-items: stretch; margin-top: 28px; }
.capstone-certificate-note{ margin: 0; padding: 20px 22px; border-radius: 14px; background: #faf5ff; border: 1px solid #ead7fb; }
.capstone-certificate-note > strong{ color: #6b21a8; font-family: 'Space Grotesk', sans-serif; }
.capstone-certificate-note p{ margin-top: 9px; margin-bottom: 0; font-size: .9em; line-height: 1.58; }
.capstone-awards-figure{ display: flex; flex-direction: column; justify-content: center; margin: 0; overflow: hidden; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.capstone-awards-figure img{ width: 100%; height: auto; display: block; }
.capstone-awards-figure figcaption{ padding: 12px 16px; color: var(--muted); background: #fff; border-top: 1px solid var(--line); font-size: .78em; text-align: center; }

.grid{ display: grid; gap: 24px; }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px){ .grid-3{ grid-template-columns: repeat(2,1fr); } .grid-4{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px){ .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; } }

.card{
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-top{ border-top: 4px solid var(--accent, var(--indigo)); border-radius: var(--radius-md) var(--radius-md) 0 0; margin: -30px -30px 22px; padding: 0; height: 0; }
.card .icon{
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent, var(--indigo)) 14%, white); color: var(--accent, var(--indigo));
  margin-bottom: 18px;
}
.card h3{ font-size: 1.18em; margin-bottom: 10px; }
.card p{ color: var(--muted); font-size: .96em; line-height: 1.6; }
.chip{
  display: inline-flex; align-items: center; gap: 6px; margin-top: 18px;
  padding: 6px 13px; border-radius: 999px; font-size: .78em; font-weight: 700;
  font-family: 'IBM Plex Mono', monospace; letter-spacing: .02em;
  background: color-mix(in srgb, var(--accent, var(--indigo)) 13%, white); color: var(--accent, var(--indigo));
}

/* skill / benefit list cards */
.mini-card{ text-align: left; padding: 24px; }
.mini-card .num{ font-family: 'IBM Plex Mono', monospace; font-size: .78em; color: var(--muted-2); font-weight: 600; }
.mini-card h4{ font-size: 1.02em; margin: 8px 0 6px; }
.mini-card p{ color: var(--muted); font-size: .9em; }

/* ---------------------------------------------------------------------- */
/*  Stat strip                                                             */
/* ---------------------------------------------------------------------- */
.stat-strip{ display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.stat{ background: var(--paper-raised); padding: 26px 22px; }
.stat strong{ display: block; font-family: 'Space Grotesk', sans-serif; font-size: 1.9em; color: var(--ink); }
.stat span{ font-size: .82em; color: var(--muted); }
@media (max-width: 720px){ .stat-strip{ grid-template-columns: repeat(2,1fr); } }

/* ---------------------------------------------------------------------- */
/*  Tables                                                                 */
/* ---------------------------------------------------------------------- */
.table-wrap{ overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: #fff; }
table.data{ width: 100%; border-collapse: collapse; min-width: 760px; }
table.data thead th{
  background: var(--ink); color: #fff; text-align: left; padding: 15px 20px;
  font-size: .78em; text-transform: uppercase; letter-spacing: .08em; font-family: 'IBM Plex Mono', monospace; font-weight: 600;
}
table.data thead th:first-child{ border-radius: 0; }
table.data td{ padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: .94em; vertical-align: top; color: var(--text-main,#334155); }
table.data tbody tr:nth-child(even){ background: #fafbfd; }
table.data tbody tr:last-child td{ border-bottom: none; }
table.data td strong{ color: var(--ink); }
.tag{
  display: inline-flex; padding: 4px 11px; border-radius: 999px; font-size: .78em; font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
}
.tag-teal{ background: color-mix(in srgb, var(--teal) 15%, white); color: #0a7a78; }
.tag-indigo{ background: color-mix(in srgb, var(--indigo) 15%, white); color: #2c3bb0; }

/* ---------------------------------------------------------------------- */
/*  Steps (registration)                                                   */
/* ---------------------------------------------------------------------- */
.steps{ display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; counter-reset: step; }
.step{ position: relative; padding-top: 6px; }
.step-num{
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.7em; color: var(--line);
  -webkit-text-stroke: 1.5px var(--ink); color: transparent;
  margin-bottom: 10px; display: block;
}
.step h4{ font-size: 1.03em; margin-bottom: 8px; }
.step p{ color: var(--muted); font-size: .9em; }
@media (max-width: 860px){ .steps{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px){ .steps{ grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------- */
/*  FAQ                                                                     */
/* ---------------------------------------------------------------------- */
.faq{ display: grid; gap: 14px; max-width: 900px; margin: 0 auto; }
.faq details{
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px 24px; box-shadow: var(--shadow-sm);
}
.faq summary{ font-weight: 700; font-size: 1.05em; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker{ display: none; }
.faq summary::after{
  content: "+"; font-family: 'Space Grotesk', sans-serif; font-size: 1.3em; color: var(--muted-2); flex: none;
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after{ content: "–"; }
.faq p{ margin-top: 12px; color: var(--muted); line-height: 1.65; }

/* ---------------------------------------------------------------------- */
/*  Parent registration form                                               */
/* ---------------------------------------------------------------------- */
.registration-form-section{
  background:
    linear-gradient(135deg, rgba(14,168,166,.07), transparent 38%),
    linear-gradient(315deg, rgba(224,31,125,.06), transparent 34%),
    #eef2f7;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 110px;
}
.registration-layout{ display: grid; grid-template-columns: .72fr 1.28fr; gap: 44px; align-items: start; }
.registration-intro{ position: sticky; top: 110px; padding: 12px 4px; }
.registration-intro .eyebrow{ color: var(--teal); margin-bottom: 16px; }
.registration-intro h2{ font-size: clamp(1.8em, 3vw, 2.5em); line-height: 1.08; }
.registration-intro > p{ color: var(--muted); margin-top: 18px; line-height: 1.72; }
.registration-facts{ display: grid; gap: 2px; margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.registration-facts div{ display: grid; gap: 3px; padding: 18px 20px; background: rgba(255,255,255,.78); }
.registration-facts div + div{ border-top: 1px solid var(--line); }
.registration-facts strong{ font-family: 'Space Grotesk', sans-serif; font-size: .92em; }
.registration-facts span{ color: var(--muted); font-size: .86em; line-height: 1.55; }
.registration-intro .privacy-note{ font-size: .82em; color: var(--muted-2); }
.registration-form{ background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.form-honeypot{ position: absolute; left: -9999px; }
.form-section-block{ margin: 0; padding: 34px 36px; border: 0; border-bottom: 1px solid var(--line); }
.form-section-title{ display: flex; align-items: flex-start; gap: 15px; width: 100%; margin: 0 0 25px; padding: 0; }
.form-section-title > span{ display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--ink); color: #fff; font: 600 .76em/1 'IBM Plex Mono', monospace; }
.form-section-title h3{ font-size: 1.16em; margin-top: 1px; }
.form-section-title p{ color: var(--muted); font-size: .88em; margin-top: 3px; }
.form-grid{ display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.form-field{ display: grid; gap: 8px; }
.form-field-wide{ grid-column: 1 / -1; }
.form-field > span{ font-weight: 700; font-size: .88em; }
.form-field input,
.form-field select,
.form-field textarea{
  width: 100%; border: 1px solid #cfd5df; border-radius: 10px; background: #fbfcfe; color: var(--ink);
  padding: 13px 14px; font: inherit; font-size: .94em; transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-field textarea{ resize: vertical; min-height: 126px; }
.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover{ border-color: #aab3c1; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus{ outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(59,79,217,.13); background: #fff; }
.course-options{ display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.course-options label{ display: flex; align-items: flex-start; gap: 10px; min-height: 48px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfe; cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.course-options label:hover{ border-color: #aeb7c7; background: #fff; transform: translateY(-1px); }
.course-options input,
.confirmation-check input{ width: 18px; height: 18px; flex: none; margin: 2px 0 0; accent-color: var(--indigo); }
.course-options label:has(input:checked){ border-color: var(--indigo); background: rgba(59,79,217,.06); }
.course-options span{ font-size: .89em; line-height: 1.35; }
.form-error{ min-height: 24px; margin-top: 10px; color: #a72626; font-weight: 700; font-size: .84em; }
.fee-estimate{ display: flex; justify-content: space-between; gap: 18px; margin-top: 12px; padding: 16px 18px; border-radius: 10px; background: #fff8ec; border: 1px solid #f4dfae; }
.fee-estimate strong{ color: #805412; font-size: .88em; white-space: nowrap; }
.fee-estimate span{ color: #6b4a17; font-size: .85em; text-align: right; }
.confirmation-check{ display: flex; align-items: flex-start; gap: 12px; margin-top: 22px; padding: 18px; border-radius: 10px; background: var(--paper); cursor: pointer; }
.confirmation-check span{ color: var(--muted); font-size: .89em; line-height: 1.55; }
.form-submit-row{ display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 36px; }
.form-submit-row p{ color: var(--muted); max-width: 42ch; font-size: .84em; }
.registration-form button:disabled{ opacity: .58; cursor: wait; transform: none; }
.form-status{ display: none; margin: 0 36px 30px; padding: 15px 18px; border-radius: 10px; font-weight: 700; font-size: .9em; }
.form-status.is-success{ display: block; color: #17643c; background: #e9f7ef; border: 1px solid #b9e3ca; }
.form-status.is-error{ display: block; color: #8b2626; background: #fff0f0; border: 1px solid #efc2c2; }

/* ---------------------------------------------------------------------- */
/*  Callout / CTA banner                                                   */
/* ---------------------------------------------------------------------- */
.cta-banner{
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 44px;
  text-align: center;
}
.cta-banner h2{ color: #fff; font-size: clamp(1.5em,3vw,2.1em); }
.cta-banner p{ color: rgba(255,255,255,.72); max-width: 60ch; margin: 14px auto 30px; font-size: 1.05em; line-height: 1.6; }

.note-card{
  background: #fff8ec; border: 1px solid #f4dfae; border-radius: var(--radius-md); padding: 28px 30px;
}
.note-card h3{ color: #8a5a12; font-size: 1.1em; margin-bottom: 10px; }
.note-card ul{ margin: 0; padding-left: 20px; color: #6b4a17; line-height: 1.8; }

/* ---------------------------------------------------------------------- */
/*  Poster / testing centers                                               */
/* ---------------------------------------------------------------------- */
.poster-frame{
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); background: #fff; max-width: 480px; margin: 0 auto;
}
.poster-frame img{ width: 100%; display: block; }
.test-center-title{ display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.test-center-code{ display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--muted); font: 600 .58em/1 'IBM Plex Mono', monospace; letter-spacing: .03em; white-space: nowrap; }

/* ---------------------------------------------------------------------- */
/*  Footer                                                                  */
/* ---------------------------------------------------------------------- */
.site-footer{ background: var(--ink); color: rgba(255,255,255,.72); margin-top: 90px; }
.footer-top{ padding: 56px 0 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; }
.footer-brand{ display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img{ height: 40px; }
.footer-brand strong{ color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 1.05em; }
.footer-desc{ font-size: .92em; line-height: 1.7; max-width: 32ch; }
.footer-col h5{ color: #fff; font-size: .8em; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; font-family: 'IBM Plex Mono', monospace; }
.footer-col ul{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a{ text-decoration: none; color: rgba(255,255,255,.72); font-size: .93em; transition: color .2s; }
.footer-col a:hover{ color: #fff; }
.footer-accred{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.footer-accred span{
  font-size: .72em; font-weight: 700; letter-spacing: .03em; padding: 6px 11px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.75);
}
.footer-bottom{ padding: 22px 0; }
.footer-bottom .wrap{ display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .84em; }

@media (max-width: 980px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-art{ order: -1; }
  .hero-logo{ right: -16vw; opacity: .3 !important; }
  .hero-emoji-one{ right: 33vw !important; left: auto; top: 24px !important; bottom: auto !important; }
  .hero-emoji-two{ left: 2vw !important; right: auto !important; top: auto !important; bottom: 20px !important; }
  .registration-layout{ grid-template-columns: 1fr; }
  .registration-intro{ position: static; max-width: 760px; }
  .capstone-award-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 720px){
  .footer-grid{ grid-template-columns: 1fr; }
  .nav-links{ display: none; }
  .nav-toggle{ display: inline-flex; }
  .hero-logo{ width: 330px; right: -145px; top: 50%; transform: translateY(-50%) rotate(-5deg) !important; opacity: .2 !important; }
  .hero-emoji{ width: 82px; opacity: .52; }
  .hero-emoji-one{ right: 42vw !important; top: 18px !important; }
  .hero-emoji-two{ left: 12px !important; right: auto !important; bottom: 12px !important; }
  .hero-brand .hero-grid{ z-index: 1; }
  .form-section-block{ padding: 28px 22px; }
  .form-grid,
  .course-options{ grid-template-columns: 1fr; }
  .fee-estimate,
  .form-submit-row{ align-items: flex-start; flex-direction: column; }
  .fee-estimate span{ text-align: left; }
  .form-submit-row{ padding: 24px 22px; }
  .form-submit-row .btn{ width: 100%; }
  .form-status{ margin: 0 22px 24px; }
}
