/* ============================================
   SILVERSPRING COLLEGE BEKA — MASTER STYLESHEET
   ============================================ */

/* --- 1. Brand Variables ---
   These are "CSS custom properties". Think of them as labeled
   paint cans — we mix the colors once here, then just say
   "use the --maroon can" everywhere else in this file.
   Change a hex code here and the ENTIRE site updates. */
:root {
  --maroon-dark: #4a0c12;
  --maroon: #5c0f16;
  --gold: #c9a227;
  --gold-light: #e6c869;
  --cream: #faf7ef;
  --white: #ffffff;
  --charcoal: #2b2521;
  --gray: #6b6660;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', Arial, sans-serif;
}

/* --- 2. Reset ---
   Every browser has slightly different default spacing.
   This wipes that out so we start from a clean, predictable slate. */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
}

/* --- 3. Reusable Layout Helper ---
   Almost every section needs its content "boxed in" with margins
   on big screens instead of stretching edge-to-edge. We'll reuse
   this ".container" class constantly. */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- 4. Reusable Button Style --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--gold);
  color: var(--maroon-dark);
}

.btn-primary:hover {
  background-color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--maroon);
}

/* Same outline treatment as .btn-outline, but for light backgrounds
   (that one assumes it's sitting on a dark photo/gradient). */
.btn-outline-maroon {
  background-color: transparent;
  border-color: var(--maroon);
  color: var(--maroon);
}

.btn-outline-maroon:hover {
  background-color: var(--maroon);
  color: var(--white);
}


/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 52px;
  width: auto;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--maroon);
  line-height: 1.15;
}

.logo-text small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* --- Nav links --- */
/* The direct-child combinator matters here: .dropdown-menu is also a
   <ul> nested inside .main-nav, and it needs its own display rules
   (including display:none while collapsed on mobile, below) — a plain
   descendant selector would out-specificity that. */
.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--charcoal);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.main-nav > ul > li > a:hover {
  color: var(--maroon);
}

/* --- Portal dropdown --- */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  background-color: var(--maroon);
  color: var(--white) !important;
  padding: 10px 18px;
  border-radius: 4px;
}

.dropdown-toggle:hover {
  background-color: var(--maroon-dark);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--white);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  border-radius: 6px;
  min-width: 210px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: var(--charcoal) !important;
  font-size: 0.88rem;
  font-weight: 500;
}

.dropdown-menu li a:hover {
  background-color: var(--cream);
  color: var(--maroon) !important;
}

/* --- Language switcher (EN / Français, swapped instantly client-side) --- */
.lang-select {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  background-color: var(--white);
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 4px;
  padding: 8px 10px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.lang-select:hover {
  border-color: var(--maroon);
}

/* Compact language switcher next to the hamburger button — only shown
   on mobile (see media query below). On desktop the full-size one
   inline in the nav (above) is the only one visible. */
.header-lang-mobile {
  display: none;
}

.header-lang-mobile .lang-select {
  font-size: 0.8rem;
  padding: 7px 8px;
}

/* Groups the mobile language switcher and the hamburger button together
   at the right edge of the header. Harmless on desktop — both children
   are display:none there until the media query below turns them on.
   Positioned above the slide-out nav panel (a fixed, full-height sibling
   that covers this corner of the header when open) so the language
   switcher stays reachable, not just the hamburger/close button. */
.header-mobile-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1001;
}

/* --- Hamburger menu button (hidden on desktop) --- */
.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  padding: 4px;
  transition: background-color 0.2s ease, padding 0.2s ease;
  /* The slide-out nav panel is a later sibling in the DOM and covers this
     corner of the header when open — without an explicit stacking order
     it would paint on top and swallow taps meant for this button. */
  position: relative;
  z-index: 1001;
}

/* Once open, this is the ONLY way to close the menu (besides tapping the
   backdrop) — give it a solid, unmistakable button treatment instead of
   just two thin lines, so it reads clearly against the white header. */
.menu-toggle.open {
  background-color: var(--maroon);
  padding: 8px 16px 8px 12px;
}

.menu-toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle-icon span {
  width: 26px;
  height: 3px;
  background-color: var(--maroon);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.2s ease, width 0.2s ease, height 0.2s ease;
}

/* Animate the hamburger into an X when the menu is open, so it's obvious
   the same button closes it again. Made a touch thicker and switched to
   white-on-maroon (via .menu-toggle.open above) so the X itself is easy
   to spot, not just its position. */
.menu-toggle.open .menu-toggle-icon span {
  background-color: var(--white);
  height: 3.5px;
}

.menu-toggle.open .menu-toggle-icon span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open .menu-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open .menu-toggle-icon span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* "Close" label next to the X — hidden until the menu is actually open,
   since it would be a misleading label on the hamburger icon. */
.menu-toggle-text {
  display: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
}

.menu-toggle.open .menu-toggle-text {
  display: inline;
}

/* Dimmed backdrop behind the slide-out mobile nav — tapping it closes
   the menu. Hidden entirely on desktop, where there's no slide-out nav. */
.nav-backdrop {
  display: none;
}

/* --- Mobile responsive nav ---
   Slightly wider than the site's other 860px breakpoints: the nav now
   also carries the language select, which needs a little extra room. */
@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  /* The compact switcher next to the hamburger replaces the one that
     used to live inline in this slide-out panel (see .lang-switcher
     below) — no reason to make someone open the menu just to translate. */
  .header-lang-mobile {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    /* A rich brand gradient plus a soft gold glow instead of plain white
       — makes it unmistakable that this slide-out panel is its own
       surface, distinct from the white desktop header/nav bar. */
    background:
      radial-gradient(circle at 85% 12%, rgba(201,162,39,0.3), transparent 55%),
      linear-gradient(165deg, var(--maroon-dark), var(--maroon) 60%, #3a0a0f);
    box-shadow: -4px 0 20px rgba(0,0,0,0.25);
    transition: right 0.3s ease;
    padding: 90px 24px 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav.open {
    right: 0;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 999;
  }

  .nav-backdrop.open {
    opacity: 1;
    visibility: visible;
  }

  body.nav-open {
    overflow: hidden;
  }

  .main-nav > ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .main-nav ul li {
    width: 100%;
  }

  .main-nav a {
    display: block;
    padding: 12px 0;
    width: 100%;
    color: var(--white);
  }

  .main-nav > ul > li > a:hover {
    color: var(--gold-light);
  }

  .main-nav a.active {
    color: var(--gold-light);
    border-bottom-color: var(--gold-light);
  }

  /* The Portal button loses its usual maroon-on-white contrast against
     this dark panel, so it flips to gold here instead. */
  .main-nav .dropdown-toggle {
    background-color: var(--gold);
    color: var(--maroon-dark) !important;
    text-align: center;
  }

  .main-nav .dropdown-toggle:hover {
    background-color: var(--gold-light);
  }

  /* The Portal submenu becomes a light card floating on the dark panel,
     rather than inheriting the (now unreadable) dark-on-dark styling. */
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: none;
    background-color: rgba(255,255,255,0.96);
    border-radius: 8px;
    margin-top: 8px;
    padding: 6px 0;
  }

  .dropdown-menu li a {
    padding: 10px 16px;
  }

  .dropdown.mobile-open .dropdown-menu {
    display: block;
  }

  /* Replaced by .header-lang-mobile next to the hamburger — kept out of
     the flow here rather than deleted, in case a future layout wants a
     second switcher inside the panel too. */
  .main-nav .lang-switcher {
    display: none;
  }

  .lang-select {
    width: 100%;
  }
}
/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background-image: 
    linear-gradient(135deg, rgba(74,12,18,0.88), rgba(92,15,22,0.75) 60%, rgba(74,12,18,0.9)),
    url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* A subtle gold glow effect in the background using a radial gradient */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(201,162,39,0.25), transparent 55%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero-eyebrow {
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-title {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 22px;
}

.hero-subtitle {
  color: rgba(255,255,255,0.85);
  font-size: 1.08rem;
  max-width: 560px;
  margin-bottom: 34px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   STATS STRIP
   ============================================ */
.stats-strip {
  background-color: var(--cream);
  padding: 36px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--maroon);
}

.stat-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Stack stats 2x2 on small screens instead of squishing 4 across */
@media (max-width: 700px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ============================================
   SHARED SECTION HELPERS
   ============================================ */
.section-eyebrow {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  color: var(--maroon-dark);
  margin-bottom: 20px;
}

.section-body {
  color: var(--gray);
  margin-bottom: 18px;
  max-width: 540px;
}

.center {
  text-align: center;
  max-width: none;
}

/* ============================================
   ABOUT PREVIEW
   ============================================ */
.about-preview {
  padding: 90px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.highlight-card {
  background-color: var(--cream);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  padding: 28px;
}

.highlight-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 10px;
}

.highlight-card h3 {
  color: var(--maroon);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.highlight-card p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* ============================================
   PROGRAMS PREVIEW
   ============================================ */
.programs-preview {
  background-color: var(--maroon-dark);
  padding: 90px 0;
}

.programs-preview .section-eyebrow,
.programs-preview .section-title {
  color: var(--white);
}

.programs-preview .section-eyebrow {
  color: var(--gold-light);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 50px;
}

@media (max-width: 700px) {
  .programs-grid {
    grid-template-columns: 1fr;
  }
}

.program-card {
  background-color: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 36px 28px;
  text-align: center;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.program-card:hover {
  transform: translateY(-6px);
  background-color: rgba(255,255,255,0.1);
}

.program-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.program-card h3 {
  color: var(--gold-light);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.program-card p {
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
}

.programs-cta {
  text-align: center;
  margin-top: 50px;
}

/* ============================================
   RESPONSIVE: stack on smaller screens
   ============================================ */
@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .programs-grid {
    grid-template-columns: 1fr;
  }
}
/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background-color: var(--maroon-dark);
  color: rgba(255,255,255,0.8);
  padding-top: 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-logo {
  height: 56px;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  max-width: 280px;
}

.footer-col h4 {
  color: var(--gold-light);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 18px;
}

.footer-col ul li {
  margin-bottom: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.75);
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: var(--gold-light);
}

.footer-contact li {
  color: rgba(255,255,255,0.75);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 22px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

.footer-bottom-inner a {
  color: var(--gold-light);
}

/* Responsive footer */
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
/* ============================================
   PAGE BANNER (used on every inner page)
   ============================================ */
.page-banner {
  background: linear-gradient(135deg, var(--maroon-dark), var(--maroon) 60%, var(--maroon-dark));
  padding: 70px 0 50px;
  color: var(--white);
}

.page-banner h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin: 10px 0 14px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.breadcrumb a {
  color: var(--gold-light);
}

/* Highlight the current page in the nav */
.main-nav a.active {
  color: var(--maroon);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
}

/* ============================================
   STORY SECTION (about.html)
   ============================================ */
.story-section {
  padding: 90px 0;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
}

.story-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.story-photo {
  border-radius: 10px;
  overflow: hidden;
}

.story-photo img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.story-side .highlight-card a {
  color: var(--maroon);
  font-weight: 600;
  text-decoration: underline;
}

/* ============================================
   VISION / MISSION / VALUES CARDS
   ============================================ */
.vm-section {
  background-color: var(--cream);
  padding: 90px 0;
}

.vm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.vm-card {
  background-color: var(--white);
  border-radius: 10px;
  padding: 36px 30px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
  text-align: center;
}

.vm-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 14px;
}

.vm-card h3 {
  color: var(--maroon);
  margin-bottom: 12px;
}

.vm-card p {
  color: var(--gray);
  font-size: 0.94rem;
}

/* ============================================
   ENF CONNECTION SECTION
   ============================================ */
.enf-section {
  padding: 90px 0;
}

.enf-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

/* ============================================
   RESPONSIVE (about.html sections)
   ============================================ */
@media (max-width: 860px) {
  .story-grid {
    grid-template-columns: 1fr;
  }

  .vm-grid {
    grid-template-columns: 1fr;
  }
}
/* ============================================
   ACADEMICS INTRO
   ============================================ */
.academics-intro {
  padding: 90px 0 60px;
}

.academics-intro .section-body {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   TRACK SECTIONS (repeating alternating blocks)
   ============================================ */
.track-section {
  padding: 70px 0;
}

.track-alt {
  background-color: var(--cream);
}

.track-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 50px;
  align-items: center;
}

/* Flips icon to the right side by reversing visual order */
.track-reverse {
  grid-template-columns: 1fr 220px;
}

.track-reverse .track-icon-block {
  order: 2;
}

.track-icon-block {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.track-icon-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-icon {
  font-size: 4.5rem;
}

.track-list {
  margin: 16px 0 20px;
  padding-left: 20px;
}

.track-list li {
  list-style: disc;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.track-cert {
  color: var(--maroon);
  font-size: 0.92rem;
  background-color: var(--cream);
  display: inline-block;
  padding: 10px 16px;
  border-radius: 6px;
  border-left: 3px solid var(--gold);
}

.track-alt .track-cert {
  background-color: var(--white);
}

/* ============================================
   UNIVERSITY DESTINATIONS
   ============================================ */
.destinations-section {
  padding: 90px 0;
  background-color: var(--cream);
}

.destinations-flags {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.flag-item {
  font-size: 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.flag-item span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--maroon);
}

/* ============================================
   RESPONSIVE: track sections stack on mobile
   ============================================ */
@media (max-width: 700px) {
  .track-grid,
  .track-reverse {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .track-reverse .track-icon-block {
    order: 0;
  }

  .track-icon-block {
    width: 140px;
    height: 140px;
    margin: 0 auto;
  }

  .track-icon {
    font-size: 3rem;
  }

  .track-list {
    text-align: left;
    display: inline-block;
  }
}
/* ============================================
   ADMISSIONS PROCESS STEPS
   ============================================ */
.process-section {
  padding: 90px 0 60px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 50px;
}

.process-step {
  text-align: center;
  padding: 20px;
}

.process-number {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  line-height: 52px;
  margin-bottom: 16px;
}

.process-step h3 {
  color: var(--maroon);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.process-step p {
  color: var(--gray);
  font-size: 0.9rem;
}

/* ============================================
   REQUIREMENTS SECTION
   ============================================ */
.requirements-section {
  padding: 60px 0 90px;
}

.req-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: start;
}

.req-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  color: var(--charcoal);
}

.req-note-card {
  padding: 32px;
}

/* ============================================
   INQUIRY FORM
   ============================================ */
.form-section {
  background-color: var(--cream);
  padding: 90px 0;
}

.form-container {
  max-width: 720px;
}

.inquiry-form {
  margin-top: 40px;
  background-color: var(--white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-submit {
  width: 100%;
  border: none;
  font-size: 1rem;
}

/* Honeypot spam trap — positioned off-screen rather than display:none or
   visibility:hidden, since spam bots specifically check for and skip
   those. A real visitor tabbing through the form never lands on it
   (tabindex="-1"), and screen readers skip it (aria-hidden). */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-message {
  color: #b3261e;
  font-size: 0.85rem;
  margin: -10px 0 16px;
}

.form-section-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--maroon-dark);
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.form-section-title:not(:first-child) {
  margin-top: 36px;
}

.form-section-note {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: -12px;
  margin-bottom: 20px;
}

.form-radio-row {
  display: flex;
  gap: 20px;
  padding-top: 8px;
}

.form-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--charcoal);
  font-weight: 500;
  cursor: pointer;
}

.form-radio input {
  width: 16px;
  height: 16px;
  accent-color: var(--maroon);
  cursor: pointer;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--charcoal);
  cursor: pointer;
  line-height: 1.5;
}

.form-checkbox input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--maroon);
  cursor: pointer;
}

/* ============================================
   RESPONSIVE (admissions.html)
   ============================================ */
@media (max-width: 860px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .req-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .process-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .inquiry-form {
    padding: 24px;
  }
}
/* ============================================
   GALLERY GRID
   ============================================ */
.gallery-section {
  padding: 90px 0;
}

.gallery-section .section-body {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 50px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-item {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
}

/* This targets a REAL <img> if/when you swap one in,
   so it fills the square tile nicely without distortion */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.06);
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--cream), #f0ebe0);
  border: 2px dashed rgba(92,15,22,0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--maroon);
  transition: background-color 0.25s ease;
}

.gallery-placeholder:hover {
  background: linear-gradient(135deg, #f0ebe0, var(--cream));
}

.gallery-placeholder span {
  font-size: 2.5rem;
}

.gallery-placeholder p {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ============================================
   RESPONSIVE (gallery.html)
   ============================================ */
@media (max-width: 860px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
/* ============================================
   CONTACT INFO CARDS
   ============================================ */
.contact-info-section {
  padding: 90px 0 60px;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.contact-card {
  background-color: var(--cream);
  border-radius: 10px;
  padding: 32px 24px;
  text-align: center;
}

.contact-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 14px;
}

.contact-card h3 {
  color: var(--maroon);
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.contact-card p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================================
   MAP + CONTACT FORM
   ============================================ */
.contact-main-section {
  padding: 60px 0 90px;
}

.contact-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: stretch;
}

.contact-map-wrap {
  border-radius: 10px;
  overflow: hidden;
  min-height: 420px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.contact-map {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.contact-form-wrap .inquiry-form {
  margin-top: 24px;
  padding: 32px;
}

/* ============================================
   RESPONSIVE (contact.html)
   ============================================ */
@media (max-width: 960px) {
  .contact-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-main-grid {
    grid-template-columns: 1fr;
  }

  .contact-map-wrap {
    min-height: 320px;
  }
}

@media (max-width: 480px) {
  .contact-cards-grid {
    grid-template-columns: 1fr;
  }
}
/* ============================================
   STAFF & ADMINISTRATORS
   ============================================ */
.staff-team-photo {
  max-height: 460px;
  overflow: hidden;
}

.staff-team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.staff-section {
  padding: 90px 0;
}

.staff-alt {
  background-color: var(--cream);
}

.staff-section .section-body {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 50px;
}

.staff-card {
  text-align: center;
}

.staff-photo-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 18px;
  color: rgba(255,255,255,0.5);
}

/* When you replace the placeholder with a real <img class="staff-photo">,
   this makes it fill the same circular shape automatically */
.staff-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 18px;
}

.staff-card h3 {
  color: var(--maroon-dark);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.staff-role {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.staff-phone {
  color: var(--text-muted, #666);
  font-size: 0.9rem;
  margin-top: 6px;
}

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

@media (max-width: 480px) {
  .staff-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   SCROLL-REVEAL ANIMATION UTILITIES (homepage)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Staggered entrance for grids of up to 6 items */
.reveal-group > *:nth-child(1) { transition-delay: 0s; }
.reveal-group > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-group > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-group > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-group > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-group > *:nth-child(6) { transition-delay: 0.4s; }

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero .hero-eyebrow { animation: heroFadeIn 0.8s ease both; }
.hero .hero-title { animation: heroFadeIn 0.9s ease 0.15s both; }
.hero .hero-subtitle { animation: heroFadeIn 0.9s ease 0.3s both; }
.hero .hero-buttons { animation: heroFadeIn 0.9s ease 0.45s both; }

@keyframes scrollCueBounce {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.55; }
  50% { transform: translate(-50%, 10px); opacity: 1; }
}

.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  z-index: 2;
  color: rgba(255,255,255,0.75);
  font-size: 1.5rem;
  animation: scrollCueBounce 2.2s ease-in-out infinite;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero .hero-eyebrow,
  .hero .hero-title,
  .hero .hero-subtitle,
  .hero .hero-buttons,
  .scroll-cue {
    animation: none;
  }
}

/* ============================================
   HOMEPAGE — CAMPUS GALLERY MOSAIC
   ============================================ */
.home-gallery {
  padding: 90px 0;
  background-color: var(--cream);
}

.home-gallery-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.home-gallery-header .section-title {
  margin-bottom: 8px;
}

.home-gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 130px;
  gap: 16px;
}

.mosaic-tile {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.mosaic-tile.tile-feature {
  grid-column: span 2;
  grid-row: span 2;
}

.mosaic-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.mosaic-tile:hover img {
  transform: scale(1.08);
}

.mosaic-tile-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(0,0,0,0.65), transparent);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mosaic-tile:hover .mosaic-tile-caption {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .home-gallery-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
  .mosaic-tile.tile-feature {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16/9;
    height: auto;
  }
}

/* ============================================
   HOMEPAGE — WHY CHOOSE SCB
   ============================================ */
.why-section {
  padding: 90px 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.why-card {
  text-align: center;
  padding: 32px 22px;
  border-radius: 10px;
  border: 1px solid rgba(92,15,22,0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(92,15,22,0.12);
}

.why-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.why-card h3 {
  color: var(--maroon-dark);
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.why-card p {
  color: var(--gray);
  font-size: 0.92rem;
}

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

@media (max-width: 480px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   HOMEPAGE — FULL-BLEED PHOTO BANNER
   ============================================ */
.photo-banner {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.photo-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(74,12,18,0.92), rgba(74,12,18,0.6) 55%, rgba(74,12,18,0.85));
}

.photo-banner-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.photo-banner .section-eyebrow {
  color: var(--gold-light);
}

.photo-banner h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 18px;
}

.photo-banner p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 26px;
  max-width: 520px;
}

@media (max-width: 700px) {
  .photo-banner {
    min-height: 360px;
  }
}

/* ============================================
   HOMEPAGE — PROGRAM CARD PHOTOS
   ============================================ */
.program-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 2px solid rgba(255,255,255,0.25);
}

/* ============================================
   HOMEPAGE — FINAL CTA BANNER
   ============================================ */
.home-cta {
  position: relative;
  padding: 100px 0;
  background-size: cover;
  background-position: center;
  text-align: center;
}

.home-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(74,12,18,0.92), rgba(92,15,22,0.85));
}

.home-cta-content {
  position: relative;
  z-index: 2;
}

.home-cta h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 16px;
}

.home-cta p {
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  margin: 0 auto 30px;
}

.home-cta .hero-buttons {
  justify-content: center;
}

/* ============================================
   ADMISSIONS TIMELINE / PROGRESS BAR
   ============================================ */
.admissions-timeline {
  padding: 44px 0;
}

.admissions-timeline-card {
  background-color: var(--white);
  border: 1px solid rgba(92,15,22,0.12);
  border-radius: 14px;
  padding: 30px 34px;
  box-shadow: 0 14px 34px rgba(74,12,18,0.08);
}

/* A slightly richer treatment when the card sits directly on the cream
   homepage background, so it doesn't blend in. */
.hero + .admissions-timeline .admissions-timeline-card {
  margin-top: -64px;
  position: relative;
  z-index: 3;
}

.admissions-timeline-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.admissions-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: var(--gray);
  flex-shrink: 0;
}

.admissions-status.is-ongoing .status-dot {
  background-color: #2f9e44;
  box-shadow: 0 0 0 0 rgba(47,158,68,0.5);
  animation: statusPulse 2s infinite;
}

.admissions-status.is-upcoming .status-dot {
  background-color: var(--gold);
}

.admissions-status.is-closed .status-dot {
  background-color: var(--gray);
}

@keyframes statusPulse {
  0% { box-shadow: 0 0 0 0 rgba(47,158,68,0.45); }
  70% { box-shadow: 0 0 0 9px rgba(47,158,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,158,68,0); }
}

.status-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--maroon-dark);
}

.admissions-days-left {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray);
  background-color: var(--cream);
  padding: 6px 14px;
  border-radius: 999px;
}

.admissions-bar-track {
  position: relative;
  width: 100%;
  height: 14px;
  background-color: var(--cream);
  border-radius: 999px;
  overflow: hidden;
}

.admissions-bar-fill {
  position: relative;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.admissions-bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  animation: barShimmer 2.6s ease-in-out infinite;
}

@keyframes barShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.admissions-bar-knob {
  position: absolute;
  right: -2px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translate(50%, -50%);
  background-color: var(--white);
  border: 3px solid var(--maroon);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.admissions-timeline-dates {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray);
}

@media (prefers-reduced-motion: reduce) {
  .admissions-status.is-ongoing .status-dot,
  .admissions-bar-fill::after {
    animation: none;
  }
  .admissions-bar-fill {
    transition: none;
  }
}

@media (max-width: 600px) {
  .admissions-timeline-card {
    padding: 24px 20px;
  }
  .status-label {
    font-size: 1rem;
  }
  .hero + .admissions-timeline .admissions-timeline-card {
    margin-top: -40px;
  }
}

/* ============================================
   GCE RESULTS — HOMEPAGE ANNOUNCEMENT BAR
   ============================================ */
/* A second row inside the sticky header (homepage only), so it scrolls
   and sticks together with the header automatically — no manual offset
   math needed to keep two separately-sticky elements aligned. */
.gce-announcement-bar {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  padding: 10px 0;
}

.gce-announcement-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gce-announcement-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--maroon-dark);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 9px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  animation: gceBtnPulse 2.4s ease-in-out infinite;
}

.gce-announcement-btn:hover {
  background-color: var(--maroon);
}

@keyframes gceBtnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,12,18,0.35); }
  50% { box-shadow: 0 0 0 8px rgba(74,12,18,0); }
}

@media (prefers-reduced-motion: reduce) {
  .gce-announcement-btn {
    animation: none;
  }
}

@media (max-width: 480px) {
  .gce-announcement-btn {
    font-size: 0.82rem;
    padding: 8px 16px;
    text-align: center;
  }
}

/* ============================================
   GCE RESULTS — LEVEL PICKER MODAL
   ============================================ */
.gce-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.gce-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.gce-modal {
  background-color: var(--white);
  border-radius: 14px;
  max-width: 440px;
  width: 100%;
  padding: 38px 32px 32px;
  text-align: center;
  position: relative;
  transform: translateY(16px);
  transition: transform 0.25s ease;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}

.gce-modal-overlay.open .gce-modal {
  transform: translateY(0);
}

.gce-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--gray);
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.gce-modal-close:hover {
  background-color: var(--cream);
}

.gce-modal h3 {
  color: var(--maroon-dark);
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.gce-modal p {
  color: var(--gray);
  font-size: 0.92rem;
  margin-bottom: 26px;
}

.gce-modal-options {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.gce-modal-option {
  flex: 1;
  min-width: 150px;
  border: 2px solid var(--cream);
  border-radius: 10px;
  padding: 22px 16px;
  text-align: center;
  color: var(--charcoal);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.gce-modal-option:hover {
  border-color: var(--gold);
  background-color: var(--cream);
  transform: translateY(-3px);
}

.gce-modal-option-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 10px;
}

.gce-modal-option strong {
  display: block;
  color: var(--maroon-dark);
  font-size: 1rem;
  margin-bottom: 4px;
}

.gce-modal-option span {
  font-size: 0.8rem;
  color: var(--gray);
}

@media (max-width: 480px) {
  .gce-modal-options {
    flex-direction: column;
  }
}

/* ============================================
   GCE RESULTS PAGE
   ============================================ */
.results-section {
  padding: 70px 0 90px;
}

.results-section .section-body {
  margin-left: auto;
  margin-right: auto;
}

.results-picker {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 36px 0 34px;
}

.results-tab {
  padding: 12px 30px;
  border-radius: 999px;
  border: 2px solid var(--maroon);
  color: var(--maroon);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  background-color: var(--white);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.results-tab:hover {
  transform: translateY(-2px);
}

.results-tab.active {
  background-color: var(--maroon);
  color: var(--white);
}

.results-viewer-card {
  background-color: var(--cream);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.results-viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.results-viewer-toolbar h3 {
  color: var(--maroon-dark);
  font-size: 1.15rem;
}

.results-viewer-toolbar .btn {
  padding: 10px 22px;
  font-size: 0.85rem;
}

/* Hidden (via JS) whenever the current level's PDF isn't uploaded yet,
   so there's nothing to download. */
.results-viewer-toolbar .btn.is-hidden {
  display: none;
}

.results-iframe-wrap {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 480px;
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
}

.results-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Without this, the [hidden] attribute (toggled by JS) has no effect —
   a plain class selector like the one above beats the browser's default
   [hidden]{display:none} UA rule, so it must be restated explicitly here
   with matching specificity to actually win. Same for the placeholder
   below. */
.results-iframe-wrap iframe[hidden] {
  display: none;
}

.results-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  color: var(--gray);
}

.results-placeholder[hidden] {
  display: none;
}

.results-placeholder-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.results-mobile-prompt {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 30px;
  color: var(--gray);
  background-color: var(--cream);
}

.results-mobile-prompt[hidden] {
  display: none;
}

.results-mobile-prompt-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.results-mobile-prompt p {
  max-width: 360px;
  margin-bottom: 22px;
}

@media (max-width: 700px) {
  .results-iframe-wrap {
    height: 65vh;
    min-height: 380px;
  }
}

/* ============================================
   GCE RESULTS — NAME / CENTER NUMBER SEARCH
   ============================================ */
.results-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--white);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 6px;
}

.results-search-icon {
  font-size: 1rem;
  opacity: 0.6;
  flex-shrink: 0;
}

.results-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.95rem;
  background: transparent;
  color: var(--charcoal);
}

.results-search-input::placeholder {
  color: var(--gray);
}

.results-search-input:disabled {
  cursor: not-allowed;
}

.results-search-status {
  font-size: 0.85rem;
  color: var(--gray);
  margin: 8px 2px 0;
}

.results-search-results {
  margin: 10px 0 0;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  background-color: var(--white);
}

.results-search-result {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: var(--charcoal);
  font-size: 0.88rem;
}

.results-search-result:last-child {
  border-bottom: none;
}

.results-search-result:hover,
.results-search-result:focus-visible {
  background-color: var(--cream);
}

.results-search-result strong {
  color: var(--maroon);
  font-weight: 700;
}

.results-search-result .result-page-tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 3px;
}