:root {
    --body-font-family: "Inter";
    --header-font-family: "Jost";

    --primary-color: #7c3aed;
    --primary-contrast-color: #ffffff;
    --primary-hover-color: #894eef;
    --primary-soft-color: #f5effe;

    --secondary-color: #1e1333;
    --secondary-contrast-color: #ffffff;
    --secondary-hover-color: #352b47;
    --secondary-soft-color: #e4e3e7;

    --bg-color: #f8f5ff;
    --bg-alt-color: #f1eef7;
    --surface-color: #f8f5ff;
    --surface-muted-color: #eeebf5;
    --surface-contrast-color: #000000;

    --text-color: #241b38;
    --text-muted-color: #736d80;
    --text-soft-color: #a39fab;

    --accent-color: #3b4fe0;
    --accent-contrast-color: #ffffff;
    --accent-hover-color: #3547ca;

    --border-color: #dad8e0;
    --header-footer-foreground: #ffffff;
    --header-footer-muted: #ffffff;

    --menu-badge-bg-color: #1e1333;
    --menu-badge-text-color: #ffffff;
    --menu-button-bg-color: #1e1333;
    --menu-button-text-color: #ffffff;
    --menu-button-border-color: #1e1333;

    --footer-input-bg-color: #f8f5ff;
    --footer-input-text-color: #241b38;
    --footer-input-border-color: #d5d3db;

    --cta-bg-color: #3b4fe0;
    --cta-text-color: #ffffff;
    --cta-hover-bg-color: #2e3ec2;
    --cta-hover-text-color: #ffffff;
    --cta-font-size: 16px;
    --border-radius: 6px;

    --boxed-layout-bg-color: #ffffff;
    --contrast-layout-bg-color: #000000;
    --layout-pattern-img: url('');
}


:root {
  --font-base: var(--body-font-family);
  --font-heading: var(--header-font-family);

  /* Spacing scale — dense (design.density): tighter steps than a typically
     "airy" theme, matching the reference's packed stat chips/card grids. */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.875rem;
  --space-4: 1.25rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;

  /* Radius — large and consistent everywhere (cards, buttons, inputs,
     badges), per the style-guide reference. */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Shadows — tinted with the brand blue rather than neutral slate, so
     cards read as part of the same vibrant palette. */
  --shadow-sm: 0 2px 10px rgba(59, 79, 224, 0.07);
  --shadow-md: 0 12px 28px rgba(59, 79, 224, 0.12);
  --shadow-lg: 0 24px 48px rgba(59, 79, 224, 0.18);

  /* Semantic (shared across themes) */
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;

  /* Motion — rich (design.motion): hover-lift, scroll-reveal, counter
     animation all use these; every one of them must also be disabled under
     prefers-reduced-motion (see custom/default.blade.php §12). */
  --transition-fast: 160ms ease;
  --transition-med: 300ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-lift: 260ms cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-duration: 600ms;
}

body {
  --primary: var(--primary-color);
  --secondary: var(--secondary-color);
  --bg: var(--bg-color);
  --text: var(--text-color);
  --accent: var(--accent-color);

  --primary-dark: var(--primary-hover-color);
  --primary-light: var(--primary-soft-color);
  --surface: var(--surface-color);
  --text-muted: var(--text-muted-color);
  --border: var(--border-color);

  /* Text/icon colour for content sitting directly on a --primary fill.
     Already computed to clear WCAG AA against --primary-color for every
     preset (theme.spec.json §4 contrast note). */
  --on-primary: var(--primary-contrast-color);

  /* The signature blue → violet CTA gradient (theme.spec.md §4): built from
     --primary (the saved colour preset/custom primary, never the stale,
     independently-stored cta_background_color — see common/buttons.blade.php)
     and the accent token, never a literal hex pair, so every preset
     (including Midnight) gets a correct gradient. */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent-color) 100%);
  --gradient-primary-hover: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-hover-color) 100%);

  /* Eyebrow tag (small rounded pill above section headings, ui/section). */
  --eyebrow-bg: color-mix(in srgb, var(--accent-color) 14%, var(--bg-color) 86%);
  --eyebrow-text: var(--accent-color);
}
/* ---------- BASE ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  font-family: var(--font-base);
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* Layout Style = boxed: the site sits in a centred column; shared common.css
   paints the canvas (--boxed-layout-bg-color) around it on the html element. */
html.theme-layout-boxed body { max-width: 1320px; margin: 0 auto; background: var(--bg); box-shadow: var(--shadow-lg); }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
p { color: var(--text-muted); line-height: 1.6; }
a { text-decoration: none; }

/* ---------- SECTION HEADING (ui/section) ---------- */
.section-heading { max-width: 680px; margin: 0 auto var(--space-6); text-align: center; }
.section-heading h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin: 0 0 var(--space-3); }
.section-heading p { font-size: 1.05rem; margin: 0; }

/* Eyebrow tag: small rounded pill, accent-tinted background + accent text
   (theme.spec.md §10, ui/section). Not plain coloured text like a minimal
   theme would use — this theme's eyebrows are always chips. */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--eyebrow-bg);
  color: var(--eyebrow-text);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-3);
}

section { padding: var(--space-7) 0; }

/* ---------- ACCESSIBILITY ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  top: -60px;
  left: var(--space-3);
  z-index: 2000;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-pill);
  transition: top var(--transition-fast);
}
.skip-link:focus { top: var(--space-3); }
body {
  --action-bg: var(--primary);
  --action-color: var(--on-primary);
  --action-border: none;
  --action-radius: var(--radius-pill);
  --action-shadow: none;
  --action-bg-image: var(--gradient-primary);
  --action-decoration: none;
  --action-hover-bg: var(--primary-dark);
  --action-hover-color: var(--on-primary);
  --action-hover-border: none;
  --action-hover-shadow: var(--shadow-md);
  --action-hover-bg-image: var(--gradient-primary-hover);

  /* Same button style, but legible on a dark/photo backdrop (.sa-hero) —
     filled styles are untouched (identical to the value above); only
     transparent-background styles (outline/link) swap to --hero-fg. */
  --action-bg-on-dark: var(--primary);
  --action-color-on-dark: var(--on-primary);
  --action-border-on-dark: none;
  --action-hover-color-on-dark: var(--on-primary);
  --action-hover-border-on-dark: none;

  /* The CTA band's own button colours (cta_section_button_style) — equal to
     the --action-* values above when the setting is "default". */
  --action-band-bg: var(--on-primary);
  --action-band-color: var(--primary);
  --action-band-border: none;
  --action-band-bg-image: none;
  --action-band-hover-bg: var(--primary-dark);
  --action-band-hover-color: var(--on-primary);
  --action-band-hover-border: none;
  --action-band-hover-bg-image: none;

  /* Button colours inside a dark-mode section (home-section-bg-dark) —
     guaranteed contrast against its var(--primary) background, following
     cta_type's own colour family (primary vs secondary). */
  --action-dark-section-bg: var(--on-primary);
  --action-dark-section-color: var(--primary);
  --action-dark-section-hover-bg: var(--primary-dark);
  --action-dark-section-hover-color: var(--on-primary);
}

/* ---------- BUTTONS (ui/button + every page/section that needs a CTA) ---------- */
.btn-outline-nav {
  border: 1.5px solid var(--border);
  color: var(--text);
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.15rem;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.btn-outline-nav:hover { border-color: var(--primary); color: var(--primary); }

/* .btn-course: the plain outline/secondary button — never combine it with
   .btn-course-primary on the same element. They used to be stacked together
   across 27+ call sites (class="btn-course btn-course-primary") on the
   mistaken assumption .btn-course supplied a "base" the primary variant
   built on; in fact .btn-course-primary is already fully self-contained
   (background/colour/border/radius/shadow/padding, via the action-token
   block below), so the pairing only ever added a same-specificity conflict
   that depended on source order to resolve correctly. Fixed by removing
   .btn-course from every one of those call sites, not by the ordering alone
   — .btn-course still sits before the action-token block as a defensive
   second line, but nothing should rely on that again. */
.btn-course {
  border: 1.5px solid var(--border);
  color: var(--text);
  font-weight: 700;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-pill);
  text-align: center;
  transition: all var(--transition-fast);
  display: inline-block;
}
.btn-course:hover { border-color: var(--primary); color: var(--primary); }

.btn-hero-primary,
.btn-course-primary,
.btn-filter-apply,
.sch-cta-btn {
  background: var(--action-bg);
  background-image: var(--action-bg-image);
  color: var(--action-color);
  border: var(--action-border);
  border-radius: var(--action-radius);
  text-decoration: var(--action-decoration);
  font-weight: 700;
  box-shadow: var(--action-shadow);
  transition: background var(--transition-lift), transform var(--transition-lift), box-shadow var(--transition-lift), border-color var(--transition-lift);
  display: inline-block;
}
.btn-hero-primary, .btn-course-primary { padding: 0.9rem 1.85rem; }
.btn-filter-apply { padding: 0.6rem 1.5rem; }
.sch-cta-btn { padding: 0.75rem 1.6rem; }

.btn-hero-primary:hover, .btn-course-primary:hover,
.btn-filter-apply:hover, .sch-cta-btn:hover {
  background: var(--action-hover-bg);
  background-image: var(--action-hover-bg-image);
  color: var(--action-hover-color);
  border: var(--action-hover-border);
  transform: translateY(-2px);
  box-shadow: var(--action-hover-shadow);
}
@media (prefers-reduced-motion: reduce) {
  .btn-hero-primary:hover, .btn-course-primary:hover,
  .btn-filter-apply:hover, .sch-cta-btn:hover { transform: none; }
}

/* The CTA band (pages/home/home-cta) reuses .btn-course-primary, but its
   button must follow cta_section_button_style, not always the global
   Button style — scoped so every other .btn-course-primary is untouched. */
.sa-cta-section .btn-course-primary {
  background: var(--action-band-bg);
  background-image: var(--action-band-bg-image);
  color: var(--action-band-color);
  border: var(--action-band-border);
}
.sa-cta-section .btn-course-primary:hover {
  background: var(--action-band-hover-bg);
  background-image: var(--action-band-hover-bg-image);
  color: var(--action-band-hover-color);
  border: var(--action-band-hover-border);
}

/* A section in "dark mode" (home-section-bg-dark, e.g. Get in Touch) fills
   its own background with --primary (common/components.blade.php). A
   "primary" cta_type — filled or outline alike — would then blend straight
   into that backdrop, so it's forced to the guaranteed-contrast on-primary
   pill (--action-dark-section-*); a "secondary" cta_type isn't --primary to
   begin with, so it keeps its own secondary colours instead (same variables,
   set above from cta_type, not cta_section_button_style). Excludes
   .sa-cta-section: that band has its own cta_section_button_style override
   above and never carries this class. */
.home-section-bg-dark :is(.btn-hero-primary, .btn-course-primary, .btn-filter-apply, .sch-cta-btn) {
  background: var(--action-dark-section-bg);
  background-image: none;
  color: var(--action-dark-section-color);
  border: none;
}
.home-section-bg-dark :is(.btn-hero-primary, .btn-course-primary, .btn-filter-apply, .sch-cta-btn):hover {
  background: var(--action-dark-section-hover-bg);
  background-image: none;
  color: var(--action-dark-section-hover-color);
  border: none;
}

/* Enquire Now (header) — a fixed signature look (gradient-outline pill),
   independent of cta_type: the header is the one place a lighter, "ghost"
   gradient treatment reads better than a solid filled CTA right next to the
   Login/Dashboard outline button. Classic two-layer gradient-border trick:
   an opaque padding-box fill sits over a border-box gradient, so only the
   border ring shows the gradient. */
.btn-primary-nav {
  position: relative;
  padding: 0.5rem 1.25rem;
  font-weight: 700;
  color: var(--primary);
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  background-image: linear-gradient(var(--bg), var(--bg)), var(--gradient-primary);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  transition: color var(--transition-fast), transform var(--transition-lift), background var(--transition-fast);
  display: inline-block;
}
.btn-primary-nav:hover {
  color: var(--on-primary);
  background-image: var(--gradient-primary), var(--gradient-primary);
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary-nav:hover { transform: none; }
}

.btn-hero-secondary {
  border: 1.5px solid var(--border);
  color: var(--text);
  font-weight: 700;
  padding: 0.9rem 1.85rem;
  border-radius: var(--radius-pill);
  transition: border-color var(--transition-fast), transform var(--transition-lift), background var(--transition-fast);
  display: inline-flex; align-items: center; gap: var(--space-2);
}
.btn-hero-secondary:hover { border-color: var(--primary); color: var(--primary); background: var(--surface); transform: translateY(-2px); }

.btn-article {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--primary); font-weight: 700; font-size: 0.9rem;
  margin-top: var(--space-3);
  transition: gap var(--transition-fast);
}
.btn-article:hover { color: var(--primary-dark); gap: 0.6rem; }

.btn-load-more {
  display: block;
  margin: 0 auto;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-weight: 700;
  padding: 0.7rem 2rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}
.btn-load-more:hover { border-color: var(--primary); color: var(--primary); }

.btn-filter-reset {
  border: 1.5px solid var(--border);
  color: var(--text);
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}
.btn-filter-reset:hover { border-color: var(--primary); color: var(--primary); }

.btn-outline-brochure {
  display: inline-flex; align-items: center; gap: var(--space-2);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-pill);
  width: 100%;
  justify-content: center;
  transition: all var(--transition-fast);
}
.btn-outline-brochure:hover { border-color: var(--primary); color: var(--primary); }

.btn-search {
  border: none;
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  padding: 0.8rem 1.5rem;
}
.btn-search:hover { background: var(--primary-dark); color: var(--on-primary); }
/* ==========================================================================
   HOME SECTION SHELL — required by the generic home-page section renderer
   for every home_sections entry (about/facts_figures/key_highlights/
   courses/cta/testimonials/... + any admin-added web_page_sections).
   ========================================================================== */
.rs-home-section-shell,
.t8ui-section {
  --home-section-bg: var(--bg);
  --home-section-text: var(--text);
  --home-section-muted: var(--text-muted);
  --home-section-border: var(--border);
  background: var(--home-section-bg);
  color: var(--home-section-text);
}
.rs-home-section-shell.home-section-bg-light,
.t8ui-section.home-section-bg-light { --home-section-bg: #ffffff; }
.rs-home-section-shell.home-section-bg-alt,
.t8ui-section.home-section-bg-alt { --home-section-bg: var(--primary-light); }
.rs-home-section-shell.home-section-bg-dark,
.t8ui-section.home-section-bg-dark {
  --home-section-bg: var(--primary);
  --home-section-text: var(--on-primary);
  --home-section-muted: color-mix(in srgb, var(--on-primary) 72%, transparent);
  --home-section-border: color-mix(in srgb, var(--on-primary) 20%, transparent);
}
.rs-home-section-shell .section-heading h2,
.rs-home-section-shell .section-heading p,
.t8ui-section .section-heading h2,
.t8ui-section .section-heading p { color: var(--home-section-text); }
.rs-home-section-shell.home-section-bg-dark .section-heading p,
.t8ui-section.home-section-bg-dark .section-heading p { color: var(--home-section-muted); }

/* ==========================================================================
   HERO — unified media+overlay shell for image/video/carousel, driven by the
   admin's height/text_position/vertical_position/text_color_mode/overlay
   settings (home_section.hero.schema.json). All three types share this
   structure so every setting applies regardless of which hero type is active.
   ========================================================================== */
.sa-hero {
  position: relative; overflow: hidden;
  background: var(--secondary); color: #fff;
  --hero-fg: #fff; --hero-overlay-color: var(--secondary); --hero-overlay: 0.5;
  /* Override common/typography.blade.php's generic `section { padding:
     var(--space-7) 0; }` default (meant for ordinary content sections):
     the hero is full-bleed and sizes itself entirely via min-height
     (Height setting) + .sa-hero__inner's own padding. Left in place, that
     72px top+bottom was added on top of every Height mode's min-height
     (small/medium/full all overshoot by 144px) and, for the carousel
     specifically, pushed .sa-hero__inner down inside the section's own
     content box instead of filling it. */
  padding: 0;
}
.sa-hero--dark { color: var(--text); --hero-fg: var(--text); --hero-overlay-color: #fff; }

.sa-hero__stage, .sa-hero-carousel, .sa-hero-slide { position: relative; min-height: 520px; }

.sa-hero--small .sa-hero__stage, .sa-hero--small .sa-hero-carousel, .sa-hero--small .sa-hero-slide { min-height: 380px; }
.sa-hero--medium .sa-hero__stage, .sa-hero--medium .sa-hero-carousel, .sa-hero--medium .sa-hero-slide { min-height: 520px; }
.sa-hero--full .sa-hero__stage, .sa-hero--full .sa-hero-carousel, .sa-hero--full .sa-hero-slide { min-height: calc(100vh - var(--sa-chrome, 180px)); min-height: calc(100svh - var(--sa-chrome, 180px)); }
/* The hero itself needs the same min-height as its slide/stage so the section
   doesn't collapse while only the absolutely-positioned slides carry height. */
.sa-hero.sa-hero--small { min-height: 380px; }
.sa-hero.sa-hero--medium { min-height: 520px; }
.sa-hero.sa-hero--full { min-height: calc(100vh - var(--sa-chrome, 180px)); min-height: calc(100svh - var(--sa-chrome, 180px)); }

.sa-hero__media { position: absolute; inset: 0; }
.sa-hero__media img, .sa-hero__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sa-hero__media::after { content: ""; position: absolute; inset: 0; background: var(--hero-overlay-color); opacity: var(--hero-overlay); }

.sa-hero__inner { position: relative; z-index: 1; min-height: inherit; width: 100%; display: flex; padding: var(--space-6) 0; }
.sa-hero--v-top .sa-hero__inner { align-items: flex-start; }
.sa-hero--v-center .sa-hero__inner { align-items: center; }
.sa-hero--v-bottom .sa-hero__inner { align-items: flex-end; }
.sa-hero__content { max-width: 640px; width: 100%; }
.sa-hero--h-left .sa-hero__content { margin-right: auto; text-align: left; }
.sa-hero--h-center .sa-hero__content { margin-left: auto; margin-right: auto; text-align: center; }
.sa-hero--h-right .sa-hero__content { margin-left: auto; text-align: right; }

.sa-hero-title { font-size: clamp(2.1rem, 4.5vw, 3.1rem); margin: var(--space-2) 0 var(--space-3); color: var(--hero-fg); }
.sa-hero-subtitle { font-size: 1.1rem; margin-bottom: var(--space-4); max-width: 520px; color: var(--hero-fg); opacity: 0.92; }
.sa-hero--h-center .sa-hero-subtitle { margin-left: auto; margin-right: auto; }
.sa-hero .sa-badge--new { color: var(--hero-fg); background: color-mix(in srgb, var(--hero-fg) 16%, transparent); }
.sa-hero-actions { margin-top: var(--space-2); }
.sa-hero--h-center .sa-hero-actions { justify-content: center; }
.sa-hero--h-right .sa-hero-actions { justify-content: flex-end; }
.sa-hero .btn-hero-secondary { border-color: var(--hero-fg); color: var(--hero-fg); }
.sa-hero .btn-hero-secondary:hover { border-color: var(--primary); color: var(--primary); }
/* Whichever button style the admin picked (cta_type): filled styles already
   contrast against their own fill; outline/link styles use the hero's own
   contrast colour instead of the raw brand colour, which can otherwise
   disappear against a dark photo/video overlay. See common/buttons.blade.php.
   --action-bg-on-dark stays "transparent" for outline/link styles — without
   it, this used to hard-code a solid primary fill regardless of cta_type, so
   "Primary Outline"/"Link" never matched .btn-hero-secondary's plain outline
   look the way every other section already does. */
.sa-hero .btn-hero-primary {
  color: var(--action-color-on-dark);
  border: var(--action-border-on-dark);
  /* For a filled style, a solid fallback sits under the gradient/colour image
     layer — purely defensive, so the button stays legible even if its fill
     ever renders paler than intended against a busy photo/video hero,
     instead of depending only on the fill contrast; a no-op (transparent)
     for an outline/link style. The text shadow stays either way: the text
     itself always sits directly on the photo/video backdrop. */
  background-color: var(--action-bg-on-dark);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.sa-hero .btn-hero-primary:hover { color: var(--action-hover-color-on-dark); border: var(--action-hover-border-on-dark); }

/* Carousel: absolutely-stacked slides crossfade (and slightly slide, for the
   "slide" animation setting) between each other — admin's transition_speed
   (ms) drives --hero-transition-speed; animation type toggles the transform. */
.sa-hero-carousel { overflow: hidden; }
.sa-hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; z-index: 0;
  transition: opacity var(--hero-transition-speed, 600ms) ease, transform var(--hero-transition-speed, 600ms) ease, visibility 0s;
}
.sa-hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.sa-hero-carousel[data-animation-type="slide"] .sa-hero-slide { transform: translateX(32px); }
.sa-hero-carousel[data-animation-type="slide"] .sa-hero-slide.is-active { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) {
  .sa-hero-slide { transition: opacity 0s; transform: none !important; }
}
.sa-hero-carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: #fff; box-shadow: var(--shadow-md); color: var(--primary);
  display: flex; align-items: center; justify-content: center; z-index: 5;
}
.sa-hero-carousel-prev { left: var(--space-3); }
.sa-hero-carousel-next { right: var(--space-3); }
.sa-hero-carousel-dots { position: absolute; left: 0; right: 0; bottom: var(--space-3); z-index: 5; display: flex; justify-content: center; gap: 0.5rem; }
.sa-hero-carousel-dot { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.6); padding: 0; }
.sa-hero-carousel-dot.is-active { background: #fff; width: 26px; border-radius: var(--radius-pill); }

/* Admin can hide the caption/CTA on mobile independently (hide_caption_on_mobile / hide_cta_on_mobile). */
@media (max-width: 767.98px) {
  .sa-hero__content--hide-mobile > *:not(.sa-hero-actions) { display: none; }
  .sa-hero-actions--hide-mobile { display: none; }
  .sa-hero-carousel-nav { width: 36px; height: 36px; }
  .sa-hero--medium.sa-hero__stage, .sa-hero--medium.sa-hero-carousel, .sa-hero--medium .sa-hero-slide,
  .sa-hero.sa-hero--medium { min-height: 420px; }
  /* The container's default gutter (~12px) reads as edge-to-edge once the
     title/buttons are this large — give the caption block its own margin. */
  .sa-hero__content { padding: 0 var(--space-3); }
}

/* ==========================================================================
   NOTICE TICKER (layout/notice-ticker)
   ========================================================================== */
.nt8-ticker {
  display: flex; align-items: center; gap: var(--space-3);
  background: #fff; color: var(--text);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem var(--space-4);
  font-size: 0.85rem;
  overflow: hidden;
}
.nt8-ticker__label { display: flex; align-items: center; gap: 0.4rem; font-weight: 700; flex: 0 0 auto; color: var(--primary); }
.nt8-ticker__wrap { flex: 1 1 auto; overflow: hidden; }
.nt8-ticker__track { display: inline-flex; gap: 0.75rem; white-space: nowrap; animation: nt8-scroll 22s linear infinite; }
.nt8-ticker__item { color: var(--text); }
.nt8-ticker__item:hover { color: var(--primary); }
.nt8-ticker__sep { color: var(--border); }
.nt8-ticker__close { flex: 0 0 auto; background: none; border: none; color: var(--text); opacity: 0.75; }
.nt8-ticker__close:hover { opacity: 1; }
@keyframes nt8-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .nt8-ticker__track { animation: none; } }

/* ==========================================================================
   GRADIENT BANNER — every inner page (ui/page): full-bleed blue → violet,
   title + breadcrumb, matches every "design/*.png" reference page header.
   ========================================================================== */
.sa-page-banner {
  background: var(--gradient-primary);
  color: var(--on-primary);
  padding: var(--space-7) 0 var(--space-6);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.sa-page-banner > .container { width: 100%; }
.sa-page-banner h1 {
  color: var(--on-primary);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  margin: 0 0 var(--space-2);
}
.sa-page-banner__subtitle { max-width: 640px; color: color-mix(in srgb, var(--on-primary) 85%, transparent); }
.sa-page-banner .breadcrumb {
  justify-content: center;
  background: transparent;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}
.sa-page-banner .breadcrumb-item, .sa-page-banner .breadcrumb-item a {
  color: color-mix(in srgb, var(--on-primary) 78%, transparent);
}
.sa-page-banner .breadcrumb-item.active { color: var(--on-primary); }
.sa-page-banner .breadcrumb-item + .breadcrumb-item::before { color: color-mix(in srgb, var(--on-primary) 50%, transparent); }
.sa-page-banner__chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: color-mix(in srgb, var(--on-primary) 16%, transparent);
  color: var(--on-primary);
  font-weight: 700; font-size: 0.82rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-left: var(--space-2);
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.sa-topbar { background: var(--secondary); color: color-mix(in srgb, #fff 85%, transparent); font-size: 0.85rem; padding: 0.4rem 0; }
.sa-topbar__link { color: inherit; display: inline-flex; align-items: center; gap: 0.35rem; }
.sa-topbar__link:hover { color: var(--accent); }

.sa-header { background: #fff; box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 1030; transition: box-shadow var(--transition-fast); }
.sa-header.scrolled { box-shadow: var(--shadow-md); }
.sa-header .navbar { padding: var(--space-3) 0; }
.sa-header .navbar-brand img { max-height: 42px; width: auto; }

.main-nav .nav-link { font-weight: 600; color: var(--text); padding: 0.5rem 0.9rem !important; }
.main-nav .nav-link:hover, .main-nav .nav-item.dropdown:hover .nav-link, .main-nav .nav-link.active { color: var(--primary); }
.main-nav .dropdown-toggle::after { vertical-align: 0.1em; }

/* ==========================================================================
   MEGA DROPDOWN (layout/navigation + partial-nav) — every dropdown with
   children renders this way, not just "About": a theme either always
   renders what it enables, or it doesn't enable it (lesson #3).
   ========================================================================== */
.sa-mega-panel {
  padding: var(--space-4);
  min-width: 460px;
  max-width: 760px;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.sa-mega-panel--grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-4); }
.sa-mega-col { min-width: 0; }
.sa-mega-col__heading {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--primary); margin-bottom: var(--space-2);
}
.sa-mega-col__text { font-size: 0.88rem; color: var(--text-muted); margin-bottom: var(--space-2); }
.sa-mega-col__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }
.sa-mega-col__links a {
  display: block; padding: 0.5rem 0.65rem; border-radius: var(--radius-sm);
  color: var(--text); font-weight: 600; font-size: 0.92rem;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.sa-mega-col__links a:hover { background: var(--eyebrow-bg); color: var(--primary); }
.sa-mega-col__contact { list-style: none; margin: 0 0 var(--space-2); padding: 0; display: grid; gap: 0.4rem; font-size: 0.86rem; color: var(--text-muted); }
.sa-mega-col__contact li { display: flex; align-items: center; gap: 0.5rem; }
.sa-mega-col__contact a { color: inherit; }
.sa-mega-col__button {
  display: inline-block; background: var(--gradient-primary); color: var(--on-primary);
  font-weight: 700; font-size: 0.85rem; padding: 0.5rem 1.1rem; border-radius: var(--radius-pill);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.sa-footer { background: var(--secondary); color: color-mix(in srgb, #fff 80%, transparent); padding: var(--space-7) 0 var(--space-4); }
.sa-footer__heading { color: #fff; font-size: 1.05rem; margin-bottom: var(--space-3); }
.sa-footer__heading a { color: #fff; }
.sa-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.sa-footer__links a { color: inherit; }
.sa-footer__links a:hover { color: var(--accent); }
.sa-footer p { color: inherit; }
.sa-footer__divider { border-color: color-mix(in srgb, #fff 15%, transparent); margin: var(--space-5) 0 var(--space-4); }
.sa-footer__bottom { text-align: center; font-size: 0.88rem; }
.sa-footer__bottom p { margin: 0; }
.sa-footer a:not(.sa-footer__heading a) { color: inherit; }

/* ==========================================================================
   CARDS — base card + variants reused across courses, events, faculty,
   testimonials, contact-info, FAQ, blog.
   ========================================================================== */
.sa-card {
  background: #fff;
  color: var(--text);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition-lift), box-shadow var(--transition-lift);
}
.sa-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
@media (prefers-reduced-motion: reduce) { .sa-card:hover { transform: none; } }
.sa-card__body { padding: var(--space-4); }
.sa-facility-link { display: block; color: inherit; }
.sa-group-title { margin-bottom: var(--space-3); color: var(--primary); }
.sa-partner-logo { max-height: 48px; width: auto; margin: 0 auto var(--space-3); display: block; filter: grayscale(1); opacity: 0.75; transition: opacity var(--transition-fast), filter var(--transition-fast); }
.sa-home-split-row { flex-wrap: wrap; }
.sa-home-split-row > div { min-width: 0; }
@media (max-width: 991.98px) { .sa-home-split-row > div { width: 100% !important; } }
.sa-card:hover .sa-partner-logo { filter: grayscale(0); opacity: 1; }

/* Duotone gradient photo overlay + starburst badge (courses/events). Falls
   back to a plain photo (no overlay) when there's no image — never an
   empty <img src="">. */
.sa-media-card { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); }
.sa-media-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sa-media-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 78%, transparent) 0%, color-mix(in srgb, var(--accent) 70%, transparent) 100%);
  opacity: 0; transition: opacity var(--transition-fast);
}
.sa-media-card.has-overlay .sa-media-card__overlay { opacity: 1; }
.sa-media-card__badge {
  position: absolute; top: var(--space-3); left: var(--space-3);
  background: #fff; color: var(--primary);
  font-weight: 800; font-size: 0.78rem; line-height: 1.15;
  padding: 0.45rem 0.65rem; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.sa-media-card__badge small { display: block; font-weight: 600; font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; }
/* Starburst date badge (events) — reference: all-events.png's jagged ribbon. */
.sa-media-card__badge--burst {
  background: var(--gradient-primary); color: var(--on-primary);
  padding: 0.6rem 0.5rem 0.5rem;
  clip-path: polygon(8% 0%,16% 15%,24% 0%,32% 15%,40% 0%,48% 15%,56% 0%,64% 15%,72% 0%,80% 15%,88% 0%,96% 15%,100% 100%,0% 100%,0% 15%);
}
.sa-media-card__badge--burst small { color: color-mix(in srgb, var(--on-primary) 80%, transparent); }
.sa-media-card__content { position: absolute; inset: auto 0 0 0; padding: var(--space-4); color: #fff; }
.sa-media-card.has-overlay .sa-media-card__content h3,
.sa-media-card.has-overlay .sa-media-card__content p { color: #fff; }
.sa-media-card:not(.has-overlay) { background: var(--surface); }
.sa-media-card__play {
  position: absolute; inset: 0; margin: auto; width: 3.2rem; height: 3.2rem;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--primary); border-radius: 50%; font-size: 1.1rem;
  box-shadow: var(--shadow-md); transition: transform var(--transition-fast);
}
.sa-media-card:hover .sa-media-card__play { transform: scale(1.1); }
.sa-media-card__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--gradient-primary); color: var(--on-primary); font-size: 2rem; }

/* Course/event meta row (location, time, class count…) */
.sa-meta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); font-size: 0.85rem; color: var(--text-muted); margin-bottom: var(--space-2); }
.sa-meta-row span { display: inline-flex; align-items: center; gap: 0.35rem; }
.sa-course-price { margin-bottom: var(--space-3); color: var(--text-muted); font-size: 0.9rem; }
.sa-course-price strong { color: var(--primary); font-size: 1.2rem; }

/* ==========================================================================
   BADGES / CHIPS
   ========================================================================== */
.sa-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-weight: 700; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.03em;
  padding: 0.3rem 0.75rem; border-radius: var(--radius-pill);
}
.sa-badge--current, .sa-badge--new { background: var(--eyebrow-bg); color: var(--eyebrow-text); }
.sa-badge--hot { background: var(--danger); color: #fff; }

/* ==========================================================================
   HIGHLIGHT CARD (key_highlights) — reference: "What I Do For My Client".
   ========================================================================== */
.sa-highlight-card {
  background: #fff; color: var(--text); border-radius: var(--radius-lg); padding: var(--space-4);
  height: 100%; box-shadow: var(--shadow-sm);
  transition: transform var(--transition-lift), box-shadow var(--transition-lift);
}
.sa-highlight-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.sa-highlight-card__icon {
  width: 54px; height: 54px; border-radius: var(--radius-md);
  background: var(--eyebrow-bg); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: var(--space-3);
}
.sa-highlight-card__icon img { width: 28px; height: 28px; object-fit: contain; }
.sa-highlight-card h3 { font-size: 1.1rem; margin-bottom: var(--space-2); }
.sa-highlight-card p { margin: 0; font-size: 0.92rem; }
/* Alternate every other card with the accent tint, matching the reference's mixed-colour card row. */
.row > [data-animate]:nth-child(3n+2) .sa-highlight-card__icon { background: color-mix(in srgb, var(--accent) 16%, var(--bg)); color: var(--accent); }
.row > [data-animate]:nth-child(3n+3) .sa-highlight-card { background: var(--gradient-primary); color: var(--on-primary); }
.row > [data-animate]:nth-child(3n+3) .sa-highlight-card h3, .row > [data-animate]:nth-child(3n+3) .sa-highlight-card p { color: var(--on-primary); }
.row > [data-animate]:nth-child(3n+3) .sa-highlight-card__icon { background: color-mix(in srgb, #fff 20%, transparent); color: #fff; }

.sa-about-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.sa-about-media img { width: 100%; height: auto; display: block; }
/* Portrait crop (about-us page: mission image, leadership photos) — a fixed
   tall aspect ratio cropped via object-fit so any uploaded photo (landscape
   or portrait) is framed consistently, instead of following its own ratio. */
.sa-about-media--portrait { aspect-ratio: 3 / 4; }
.sa-about-media--portrait img { width: 100%; height: 100%; object-fit: cover; }
/* About page's Mission & Values image — shorter than the default portrait crop. */
#mission .sa-about-media--portrait { aspect-ratio: 4 / 3; }
/* Fills its grid column's full height instead of following a fixed ratio —
   for a split row where the other half's content (e.g. a list) sets the
   height (notice_board). Needs a stretched, not centered, row. */
.sa-about-media--fill { height: 100%; min-height: 280px; }
.sa-about-media--fill img { width: 100%; height: 100%; object-fit: cover; }
.sa-highlight-card--sm { padding: var(--space-3); }
.sa-highlight-card--sm .sa-highlight-card__icon { width: 44px; height: 44px; font-size: 1.1rem; }

/* key_highlights showcase — bold flat-colour card per item (no icon chip,
   just a large coloured glyph sitting directly on the tint, matching the
   reference), last card in each row filled with the brand gradient as a
   stand-out "signature" card (cycle length follows the admin's columns
   setting: 3 or 4 per row). */
.sa-highlights-showcase .sa-highlight-card {
  padding: var(--space-5) var(--space-4); min-height: 260px;
  display: flex; flex-direction: column;
}
.sa-highlights-showcase .sa-highlight-card__icon {
  width: auto; height: auto; background: transparent !important;
  font-size: 2.5rem; line-height: 1; margin-bottom: var(--space-4);
  justify-content: flex-start;
}
.sa-highlights-showcase .sa-highlight-card__icon img { width: 52px; height: 52px; }
.sa-highlights-showcase .sa-highlight-card h3 { font-size: 1.2rem; }
.sa-highlights-showcase .sa-highlight-card p { flex: 1 1 auto; }

.sa-highlights-showcase--cols-4 > [data-animate]:nth-child(4n+1) .sa-highlight-card { background: color-mix(in srgb, var(--warning) 38%, var(--bg)); }
.sa-highlights-showcase--cols-4 > [data-animate]:nth-child(4n+1) .sa-highlight-card__icon { color: var(--warning); }
.sa-highlights-showcase--cols-4 > [data-animate]:nth-child(4n+2) .sa-highlight-card { background: color-mix(in srgb, var(--accent) 32%, var(--bg)); }
.sa-highlights-showcase--cols-4 > [data-animate]:nth-child(4n+2) .sa-highlight-card__icon { color: var(--accent); }
.sa-highlights-showcase--cols-4 > [data-animate]:nth-child(4n+3) .sa-highlight-card { background: color-mix(in srgb, var(--success) 30%, var(--bg)); }
.sa-highlights-showcase--cols-4 > [data-animate]:nth-child(4n+3) .sa-highlight-card__icon { color: var(--success); }
.sa-highlights-showcase--cols-3 > [data-animate]:nth-child(3n+1) .sa-highlight-card { background: color-mix(in srgb, var(--warning) 38%, var(--bg)); }
.sa-highlights-showcase--cols-3 > [data-animate]:nth-child(3n+1) .sa-highlight-card__icon { color: var(--warning); }
.sa-highlights-showcase--cols-3 > [data-animate]:nth-child(3n+2) .sa-highlight-card { background: color-mix(in srgb, var(--accent) 32%, var(--bg)); }
.sa-highlights-showcase--cols-3 > [data-animate]:nth-child(3n+2) .sa-highlight-card__icon { color: var(--accent); }

.sa-highlights-showcase--cols-4 > [data-animate]:nth-child(4n) .sa-highlight-card,
.sa-highlights-showcase--cols-3 > [data-animate]:nth-child(3n) .sa-highlight-card { background: var(--gradient-primary); color: var(--on-primary); }
.sa-highlights-showcase--cols-4 > [data-animate]:nth-child(4n) .sa-highlight-card h3, .sa-highlights-showcase--cols-4 > [data-animate]:nth-child(4n) .sa-highlight-card p,
.sa-highlights-showcase--cols-3 > [data-animate]:nth-child(3n) .sa-highlight-card h3, .sa-highlights-showcase--cols-3 > [data-animate]:nth-child(3n) .sa-highlight-card p { color: var(--on-primary); }
.sa-highlights-showcase--cols-4 > [data-animate]:nth-child(4n) .sa-highlight-card__icon,
.sa-highlights-showcase--cols-3 > [data-animate]:nth-child(3n) .sa-highlight-card__icon { color: #fff; }

/* ==========================================================================
   STAT CHIP (facts_figures) — large number + label, used inline next to an
   about photo and in a row closing the get_in_touch band.
   ========================================================================== */
.sa-stat {
  text-align: center;
  padding: var(--space-4) var(--space-3);
}
.sa-stat__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin-bottom: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--eyebrow-bg); color: var(--primary);
  font-size: 1.4rem;
}
.sa-stat__value { font-family: var(--font-heading); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; color: var(--text); line-height: 1; }
.sa-stat__label { color: var(--text-muted); font-size: 0.92rem; margin-top: var(--space-2); }
.home-section-bg-dark .sa-stat__value, .home-section-bg-dark .sa-stat__label { color: var(--on-primary); }
.home-section-bg-dark .sa-stat__icon { background: color-mix(in srgb, var(--on-primary) 16%, transparent); color: var(--on-primary); }
.sa-stats-section--photo { color: #fff; }
.sa-stats-section--photo .sa-stat__value, .sa-stats-section--photo .sa-stat__label,
.sa-stats-section--photo .section-heading h2, .sa-stats-section--photo .section-heading p { color: #fff; }
.sa-stats-section--photo .sa-stat__icon { background: color-mix(in srgb, #fff 20%, transparent); color: #fff; }

/* Facts & figures band — a dotted texture over the admin's chosen
   background_class (default: the brand gradient, same signature look as
   .sa-cta-section, since most tenants leave this on the default); big bold
   numbers, thin dividers between stats on one row. The fill/text pair is
   driven by --home-section-bg/--home-section-text so background_class
   actually changes what renders, same mechanism as every other home section. */
.sa-stats-band {
  --home-section-bg: var(--gradient-primary);
  --home-section-text: var(--on-primary);
  --home-section-dot: rgba(255, 255, 255, 0.22);
  background-image: radial-gradient(var(--home-section-dot) 1px, transparent 1px), var(--home-section-bg);
  background-size: 18px 18px, auto;
  color: var(--home-section-text);
  padding: var(--space-6) 0;
}
.sa-stats-band.home-section-bg-light {
  --home-section-bg: linear-gradient(var(--bg), var(--bg));
  --home-section-text: var(--text);
  --home-section-dot: color-mix(in srgb, var(--primary) 16%, transparent);
}
.sa-stats-band.home-section-bg-alt {
  --home-section-bg: linear-gradient(var(--primary-light), var(--primary-light));
  --home-section-text: var(--text);
  --home-section-dot: color-mix(in srgb, var(--primary) 16%, transparent);
}
.sa-stats-band__grid { display: flex; flex-wrap: wrap; justify-content: center; }
.sa-stats-band__item { flex: 1 1 200px; max-width: 280px; position: relative; padding: var(--space-3) var(--space-4); text-align: center; }
@media (min-width: 768px) {
  .sa-stats-band__item:not(:first-child)::before {
    content: ""; position: absolute; left: 0; top: 15%; bottom: 15%; width: 1px;
    background: color-mix(in srgb, var(--home-section-text) 30%, transparent);
  }
}
.sa-stats-band .sa-stat__value { font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--home-section-text); }
.sa-stats-band .sa-stat__label { color: color-mix(in srgb, var(--home-section-text) 90%, transparent); font-weight: 600; margin-top: var(--space-2); }

/* ==========================================================================
   CTA BAND (home.cta) — full-width gradient band, one headline + one button.
   ========================================================================== */
.sa-cta-section { background: var(--gradient-primary); color: var(--on-primary); padding: var(--space-7) 0; }
.sa-cta-section h2 { color: var(--on-primary); margin-bottom: var(--space-3); }
.sa-cta-section p { color: color-mix(in srgb, var(--on-primary) 85%, transparent); max-width: 560px; margin-left: auto; margin-right: auto; margin-bottom: var(--space-4); }
.sa-cta-section--boxed { border-radius: var(--radius-lg); }

/* Admission sub-nav + steps */
.sa-admission-subnav { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; justify-content: center; }
.sa-admission-subnav a { display: inline-block; padding: 0.55rem 1.1rem; border-radius: var(--radius-pill); border: 1.5px solid var(--border); color: var(--text); font-weight: 600; font-size: 0.9rem; }
.sa-admission-subnav a:hover { border-color: var(--primary); color: var(--primary); }
.sa-admission-subnav a.active { background: var(--gradient-primary); color: var(--on-primary); border-color: transparent; }
.sa-stack { display: grid; gap: var(--space-5); }
.sa-steps { counter-reset: sa-step; list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.sa-steps li { position: relative; padding-left: 2.5rem; }
.sa-steps li::before { counter-increment: sa-step; content: counter(sa-step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--gradient-primary); color: var(--on-primary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; }

/* ==========================================================================
   TESTIMONIAL CARD — avatar, name, role, quote, 5-star row.
   ========================================================================== */
.sa-testimonial { background: #fff; color: var(--text); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--space-4); position: relative; }
.sa-testimonial__quote-mark { color: var(--eyebrow-bg); font-size: 2.5rem; line-height: 1; position: absolute; top: var(--space-3); right: var(--space-4); font-family: Georgia, serif; }
.sa-testimonial__person { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.sa-testimonial__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: 0 0 48px; }
.sa-testimonial__avatar--initial {
  width: 48px; height: 48px; border-radius: 50%; flex: 0 0 48px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--eyebrow-bg); color: var(--primary); font-weight: 800;
}
.sa-testimonial__name { font-weight: 700; color: var(--text); }
.sa-testimonial__role { font-size: 0.85rem; color: var(--text-muted); }
.sa-testimonial__body { color: var(--text-muted); margin-bottom: var(--space-3); }
.sa-testimonial__stars { color: var(--warning); letter-spacing: 0.1em; }

/* Horizontal scroller (home testimonials, when there are more than fit in
   one row) — native scroll + snap, so trackpad/touch drag and the arrow
   buttons both work; no JS carousel state machine needed. */
.sa-testimonial-scroller { position: relative; }
.sa-testimonial-scroller__track {
  display: flex; gap: var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: var(--space-2) var(--space-6) var(--space-4);
  scrollbar-width: thin; scrollbar-color: var(--primary) transparent;
}
.sa-testimonial-scroller__track::-webkit-scrollbar { height: 6px; }
.sa-testimonial-scroller__track::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--radius-pill); }
.sa-testimonial-scroller__track::-webkit-scrollbar-thumb:hover { background: var(--primary); }
.sa-testimonial-scroller__item { flex: 0 0 calc(33.333% - var(--space-4) * 2 / 3); max-width: calc(33.333% - var(--space-4) * 2 / 3); scroll-snap-align: start; }
.sa-testimonial-scroller__item .sa-testimonial { height: 100%; }
.sa-testimonial-scroller__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: none; background: #fff; color: var(--primary);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); z-index: 2;
}
.sa-testimonial-scroller__nav:disabled { opacity: 0.35; }
.sa-testimonial-scroller__nav--prev { left: -8px; }
.sa-testimonial-scroller__nav--next { right: -8px; }
@media (max-width: 991.98px) {
  .sa-testimonial-scroller__item { flex-basis: calc(50% - var(--space-4) / 2); max-width: calc(50% - var(--space-4) / 2); }
}
@media (max-width: 767.98px) {
  .sa-testimonial-scroller__item { flex-basis: 86%; max-width: 86%; }
  .sa-testimonial-scroller__nav { display: none; }
}

/* ==========================================================================
   TRUST BAR — partner/recognition logo strip under testimonials. Each item
   is its own white card (same pattern as .sa-highlight-card), laid out on a
   grid so every row aligns evenly. The previous centred flex-wrap let item
   widths vary the row break points, producing the ragged, staggered look —
   especially with the accreditation item's icon reading much "heavier" than
   the plain outline icons beside it, now evened out inside identical
   circular badges (.sa-trust-bar__mark) regardless of which glyph it holds. */
.sa-trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-3);
  padding: 0; margin: 0;
}
.sa-trust-bar__item {
  display: flex; align-items: center; gap: var(--space-3);
  background: #fff; color: var(--text); border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-lift), box-shadow var(--transition-lift);
}
.sa-trust-bar__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.sa-trust-bar__link { display: flex; align-items: center; gap: var(--space-3); color: inherit; width: 100%; min-width: 0; }
.sa-trust-bar__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--radius-md);
  background: var(--eyebrow-bg); color: var(--primary);
  font-size: 1.3rem; flex: 0 0 auto; overflow: hidden;
}
/* An uploaded partner logo now sits on its own white card, not bare on the
   section background, so it reads fine at full colour from the start —
   no more grayscale-until-hover needed to keep the row looking "quiet". */
.sa-trust-bar__mark img { max-height: 34px; max-width: 80%; width: auto; object-fit: contain; }
.sa-trust-bar__text { display: flex; flex-direction: column; font-size: 0.85rem; color: var(--text-muted); line-height: 1.3; min-width: 0; }
.sa-trust-bar__text strong { color: var(--text); font-size: 1rem; }
.sa-trust-bar__text small { color: var(--text-muted); font-size: 0.76rem; }
@media (prefers-reduced-motion: reduce) { .sa-trust-bar__item:hover { transform: none; } }

/* ==========================================================================
   FACULTY / PERSON GRID
   ========================================================================== */
.sa-person-card { background: #fff; color: var(--text); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; text-align: center; transition: transform var(--transition-lift), box-shadow var(--transition-lift); }
.sa-person-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.sa-person-card__photo { aspect-ratio: 1; width: 100%; object-fit: cover; background: var(--surface); }
.sa-person-card__body { padding: var(--space-4); }
.sa-person-card__name { font-weight: 700; margin-bottom: 0.2rem; }
.sa-person-card__role { color: var(--primary); font-size: 0.88rem; margin-bottom: 0.2rem; }
.sa-person-card__meta { color: var(--text-muted); font-size: 0.82rem; }
.sa-person-link { display: block; color: inherit; }
.sa-person-link:hover .sa-person-card { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.sa-person-card__initials {
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 800; color: var(--primary); background: var(--eyebrow-bg);
}
/* ==========================================================================
   THANK YOU PAGE
   ========================================================================== */
.sa-thankyou-card { max-width: 560px; margin: 0 auto; text-align: center; }
.sa-thankyou-card__body { padding: var(--space-6) var(--space-5); }
.sa-thankyou-card__icon {
  display: flex; align-items: center; justify-content: center;
  width: 84px; height: 84px; font-size: 34px; margin: 0 auto var(--space-4);
  border-radius: 50%; background: var(--gradient-primary); color: var(--on-primary);
}

/* ==========================================================================
   TIMELINE (about-us journey)
   ========================================================================== */
.sa-timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 2.5rem; }
.sa-timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.sa-timeline__item { position: relative; margin-bottom: var(--space-4); }
.sa-timeline__dot { position: absolute; left: -2.5rem; top: 0.4rem; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--eyebrow-bg); }
.sa-timeline__card { background: #fff; color: var(--text); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: var(--space-3) var(--space-4); }
.sa-timeline__year { display: inline-block; color: var(--primary); font-weight: 800; margin-bottom: 0.3rem; }

/* ==========================================================================
   LEADER BLOCKS (about-us leadership)
   ========================================================================== */
.sa-leader-block { margin-bottom: var(--space-6); }
.sa-leader-block:last-child { margin-bottom: 0; }
.sa-leader-block--reverse .row { flex-direction: row-reverse; }
.sa-leader-caption { margin-top: var(--space-3); }
.sa-leader-caption h3 { margin-bottom: 0.2rem; }
/* Keep leadership portraits compact and frame faces near the top of the image. */
#leadership .sa-about-media--portrait { width: min(100%, 320px); aspect-ratio: 4 / 5; }
#leadership .sa-about-media--portrait img { object-position: center top; }
#leadership .sa-leader-block .row { align-items: center !important; }
#leadership .sa-leader-block .row > div:first-child { display: flex; flex-direction: column; }
#leadership .sa-leader-block:not(.sa-leader-block--reverse) .row > div:first-child { align-items: flex-end; }
#leadership .sa-leader-block--reverse .row > div:first-child { align-items: flex-start; }
#leadership .sa-leader-caption { width: min(100%, 320px); }
/* /leaders route — crop leader photos to a shorter ratio instead of the natural (often tall) upload. */
#leadership-insights .sa-about-media { aspect-ratio: 4 / 3; }
#leadership-insights .sa-about-media img { height: 100%; object-fit: cover; }

/* Theme 8 styling for the shared campaign lead form. */
#sxSplash {
  --sx-radius: var(--radius-md);
  --sx-surface: var(--bg);
  --sx-soft: var(--bg-alt-color);
  --sx-border: var(--border);
  --sx-text: var(--text);
  --sx-muted: var(--text-muted);
  --sx-primary: var(--primary);
  --sx-on-primary: var(--on-primary);
  --sx-primary-soft: var(--primary-light);
  --text-color: var(--text);
  --surface-color: var(--bg);
  --border-radius: var(--radius-lg);
  width: min(560px, calc(100% - 32px));
  box-shadow: var(--shadow-lg);
}
#sxSplash .sx-dialog__body { padding: var(--space-5); gap: var(--space-3); }
#sxSplash .sx-title { color: var(--text); font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.2; margin: 0; }
#sxSplash .sx-form { gap: var(--space-3); }
#sxSplash .sx-field label { color: var(--text); font-weight: 600; }
#sxSplash .sx-field input,
#sxSplash .sx-field select,
#sxSplash .sx-field textarea {
  border-color: var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
  padding: 0.75rem 0.9rem;
}
#sxSplash .sx-field input:focus,
#sxSplash .sx-field select:focus,
#sxSplash .sx-field textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
#sxSplash .sx-btn { width: 100%; border-radius: var(--radius-pill); background: var(--primary); color: var(--on-primary); }
#sxSplash .sx-btn:hover { filter: brightness(0.94); }
#sxSplash .sx-dialog__close { border-radius: 50%; }

/* ==========================================================================
   BLOG DETAIL — share row, comments
   ========================================================================== */
.sa-share-row { display: flex; align-items: center; gap: var(--space-3); margin: var(--space-4) 0; flex-wrap: wrap; }
.sa-share-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--eyebrow-bg); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; border: none; }
.sa-share-btn:hover { background: var(--primary); color: #fff; }
.sa-comment { display: flex; gap: var(--space-3); }
.sa-featured-article img { min-height: 220px; }

/* ==========================================================================
   EVENT DETAIL
   ========================================================================== */
.sa-event-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-5); align-items: center; }
.sa-event-hero .sa-about-media, .sa-event-hero .sa-empty { height: 100%; }
@media (max-width: 991.98px) { .sa-event-hero { grid-template-columns: 1fr; } }

.sa-event-gallery { position: relative; }
.sa-event-gallery__viewport { overflow: hidden; border-radius: var(--radius-lg); }
.sa-event-gallery__track { display: flex; transition: transform var(--transition-med); }
.sa-event-gallery__slide { flex: 0 0 100%; position: relative; }
.sa-event-gallery__slide img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.sa-event-gallery__slide figcaption { position: absolute; inset: auto 0 0 0; padding: var(--space-3); background: linear-gradient(0deg, color-mix(in srgb, var(--secondary) 75%, transparent), transparent); color: #fff; }
@media (prefers-reduced-motion: reduce) { .sa-event-gallery__track { transition: none; } }

.sa-related-event { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2); border-radius: var(--radius-md); color: inherit; transition: background var(--transition-fast); }
.sa-related-event:hover { background: var(--eyebrow-bg); }

/* ==========================================================================
   FACULTY DETAIL
   ========================================================================== */
.sa-facd-hero { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-5); }
.sa-facd-photo { width: 96px; height: 96px; border-radius: var(--radius-lg); flex: 0 0 96px; font-size: 2rem; }
.sa-facd-name { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.3rem; }

/* ==========================================================================
   COURSE / EVENT DETAIL
   ========================================================================== */
.sa-course-detail__title { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin: var(--space-3) 0 var(--space-2); }
.sa-course-detail__tagline { font-size: 1.1rem; color: var(--text-muted); margin-bottom: var(--space-4); }
.sa-course-detail__image { width: 100%; border-radius: var(--radius-lg); margin-bottom: var(--space-4); box-shadow: var(--shadow-md); }
.sa-course-detail__body { color: var(--text); }
.sa-course-detail__sidebar { background: #fff; color: var(--text); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--space-4); position: sticky; top: calc(var(--space-6) + 70px); display: grid; gap: var(--space-3); }
.sa-fact-list { display: grid; gap: 0.6rem; margin-bottom: var(--space-2); }
.sa-fact { display: flex; justify-content: space-between; gap: var(--space-2); padding-bottom: 0.5rem; border-bottom: 1px dashed var(--border); font-size: 0.9rem; }
.sa-fact:last-child { border-bottom: none; }
.sa-fact__label { color: var(--text-muted); display: flex; align-items: center; gap: 0.4rem; }
.sa-fact__value { font-weight: 700; }
.sa-brochure-card { display: flex; gap: var(--space-3); background: var(--eyebrow-bg); border-radius: var(--radius-md); padding: var(--space-3); }
.sa-brochure-card__icon { color: var(--primary); font-size: 1.4rem; flex: 0 0 auto; }
.sa-brochure-card__body strong { display: block; margin-bottom: 0.2rem; }
.sa-brochure-card__body p { font-size: 0.85rem; margin-bottom: 0.6rem; }
.sa-info-banner { display: flex; gap: var(--space-3); background: var(--surface); color: var(--text); border-radius: var(--radius-md); padding: var(--space-3); font-size: 0.88rem; }
.sa-info-banner > i { color: var(--primary); font-size: 1.2rem; }
.sa-info-banner strong { display: block; margin-bottom: 0.2rem; }
.sa-info-banner p { margin: 0; }
@media (max-width: 991.98px) { .sa-course-detail__sidebar { position: static; } }

/* ==========================================================================
   CONTACT INFO CARD
   ========================================================================== */
.sa-contact-card { background: #fff; color: var(--text); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--space-4); text-align: left; }
.sa-contact-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--eyebrow-bg); color: var(--primary); font-size: 1.2rem; margin-bottom: var(--space-3); }
.sa-contact-card h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.sa-contact-card p { margin: 0; }

/* ==========================================================================
   FORMS — inputs, textareas, selects (contact, enquiry, newsletter forms).
   ========================================================================== */
.sa-form .form-control, .sa-form .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  background: #fff;
  color: var(--text);
}
.sa-form .form-control:focus, .sa-form .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
  outline: none;
}
.sa-form label { font-weight: 600; margin-bottom: 0.4rem; display: inline-block; color: inherit; }
.sa-form .required { color: var(--danger); }
.sa-form-inline { display: flex; gap: var(--space-2); }
.sa-form-inline .form-control { border-radius: var(--radius-pill) 0 0 var(--radius-pill); }

/* ==========================================================================
   PAGINATION (partials/pagination-nav)
   ========================================================================== */
.sa-pagination { display: flex; justify-content: center; gap: 0.4rem; list-style: none; padding: 0; margin: var(--space-6) 0 0; }
.sa-pagination .page-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 0.6rem;
  border-radius: var(--radius-md);
  background: #fff; color: var(--text);
  border: 1.5px solid var(--border);
  font-weight: 700;
  transition: all var(--transition-fast);
}
.sa-pagination .page-item.active .page-link { background: var(--gradient-primary); color: var(--on-primary); border-color: transparent; }
.sa-pagination .page-item:not(.disabled):not(.active) .page-link:hover { border-color: var(--primary); color: var(--primary); }
.sa-pagination .page-item.disabled .page-link { opacity: 0.45; cursor: default; }

/* ==========================================================================
   TABLES (fee_table, etc.)
   ========================================================================== */
.sa-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; color: var(--text); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.sa-table th { background: var(--eyebrow-bg); color: var(--primary); text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.04em; padding: 0.9rem 1.1rem; text-align: left; }
.sa-table td { padding: 0.9rem 1.1rem; border-top: 1px solid var(--border); color: var(--text); }
.sa-fee-table-wrap { overflow-x: auto; }
.sa-fee-total-row { font-weight: 800; background: var(--eyebrow-bg); }
.sa-fee-summary-card { background: #fff; color: var(--text); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: var(--space-3); height: 100%; }
.sa-fee-summary-card__course { display: block; font-weight: 700; margin-bottom: var(--space-2); color: var(--primary); }
.sa-fee-summary-card__row { display: flex; justify-content: space-between; font-size: 0.9rem; padding: 0.3rem 0; border-bottom: 1px dashed var(--border); }
.sa-fee-summary-card__row:last-child { border-bottom: none; }

/* ==========================================================================
   ACCORDION (ui/accordion, FAQ) — +/- toggle, rounded container, tinted
   active item.
   ========================================================================== */
.sa-accordion .accordion-item { border: 1px solid var(--border); border-radius: var(--radius-md) !important; margin-bottom: var(--space-3); overflow: hidden; }
.sa-accordion .accordion-button {
  font-weight: 700; color: var(--text); background: #fff; padding: 1rem 1.25rem;
  box-shadow: none !important;
}
.sa-accordion .accordion-button:not(.collapsed) { background: var(--eyebrow-bg); color: var(--primary); }
.sa-accordion .accordion-button::after {
  background-image: none;
  font-family: "bootstrap-icons", sans-serif;
  content: "\f64d"; /* bi-plus-lg */
  font-size: 0.95rem;
  transition: none;
}
.sa-accordion .accordion-button:not(.collapsed)::after { content: "\f2ea"; /* bi-dash-lg */ }
.sa-accordion .accordion-body { color: var(--text-muted); padding: 0 1.25rem 1.25rem; }

/* ==========================================================================
   FILTER / SEARCH BAR
   ========================================================================== */
.sa-filter-bar { background: #fff; color: var(--text); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--space-3) var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.sa-filter-bar .form-control { border-radius: var(--radius-pill); }
.sa-filter-tab { border: 1.5px solid var(--border); background: #fff; color: var(--text); font-weight: 600; padding: 0.5rem 1.2rem; border-radius: var(--radius-pill); transition: all var(--transition-fast); }
.sa-filter-tab:hover { border-color: var(--primary); color: var(--primary); }
.sa-filter-tab.active { background: var(--gradient-primary); color: var(--on-primary); border-color: transparent; }
.sa-person-card__social { display: flex; justify-content: center; gap: 0.6rem; margin-top: var(--space-2); }
.sa-person-card__social a { width: 32px; height: 32px; border-radius: 50%; background: var(--eyebrow-bg); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.sa-person-card__social a:hover { background: var(--primary); color: #fff; }

/* ==========================================================================
   EMPTY STATE (ui/empty)
   ========================================================================== */
.sa-empty { text-align: center; padding: var(--space-6) var(--space-4); border-radius: var(--radius-lg); color: var(--text-muted); }
.sa-empty__icon { font-size: 2.5rem; color: var(--primary); display: block; margin-bottom: var(--space-3); }
.sa-empty h4 { color: var(--text); margin-bottom: var(--space-2); }

/* ==========================================================================
   TOPPERS
   ========================================================================== */
/* "Spotlight" card — a certificate/award-card treatment: eyebrow + name, a
   large ringed photo, a divider, a second eyebrow + big rank headline, a
   ribbon badge, then the stat line. Shared by the home toppers section
   (pages/home/home-toppers) and the standalone /toppers listing page
   (pages/toppers), so both read as the same design. */
.sa-topper-spotlight {
  background-image: radial-gradient(color-mix(in srgb, var(--primary) 10%, transparent) 1px, transparent 1px), linear-gradient(135deg, var(--bg) 0%, var(--eyebrow-bg) 100%);
  background-size: 16px 16px, auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  height: 100%;
  transition: transform var(--transition-lift), box-shadow var(--transition-lift);
}
.sa-topper-spotlight:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
@media (prefers-reduced-motion: reduce) { .sa-topper-spotlight:hover { transform: none; } }
.sa-topper-spotlight__eyebrow {
  display: inline-block; color: var(--accent); font-weight: 800; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.4rem;
}
.sa-topper-spotlight__name { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 800; color: var(--secondary); margin: 0 0 var(--space-4); line-height: 1.15; }
.sa-topper-spotlight__photo { width: 140px; height: 140px; margin: 0 auto var(--space-3); border-radius: 50%; overflow: hidden; border: 6px solid #fff; box-shadow: var(--shadow-md); }
.sa-topper-spotlight__photo img { width: 100%; height: 100%; object-fit: cover; }
.sa-topper-spotlight__initials { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--eyebrow-bg); color: var(--primary); font-weight: 800; font-size: 2.2rem; }
.sa-topper-spotlight__divider { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin: 0 0 var(--space-4); color: var(--accent); font-size: 0.9rem; }
.sa-topper-spotlight__divider::before, .sa-topper-spotlight__divider::after { content: ""; height: 1px; width: 40px; background: color-mix(in srgb, var(--accent) 40%, transparent); }
.sa-topper-spotlight__rank { font-family: var(--font-heading); font-size: clamp(1.9rem, 4.5vw, 2.5rem); font-weight: 800; color: var(--secondary); line-height: 1; margin-bottom: var(--space-3); }
.sa-topper-spotlight__badge {
  display: inline-block; max-width: 100%; background: var(--accent); color: var(--on-primary);
  font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.02em;
  padding: 0.6rem 1.75rem; margin-bottom: var(--space-3);
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 14px 100%, 0 50%);
}
.sa-topper-spotlight__stat { color: var(--text-muted); font-weight: 600; font-size: 0.92rem; }
.sa-topper-spotlight__stat strong { color: var(--text); font-weight: 800; }

/* ==========================================================================
   NOTICE LIST (home.notice_board)
   ========================================================================== */
.sa-notices { list-style: none; margin: 0; padding: 0; max-width: 760px; margin-left: auto; margin-right: auto; background: #fff; color: var(--text); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.sa-notice { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); }
.sa-notice:last-child { border-bottom: none; }
.sa-notice.is-pinned { background: var(--eyebrow-bg); }
.sa-notice__date { flex: 0 0 48px; text-align: center; font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); }
.sa-notice__date strong { display: block; font-size: 1.2rem; color: var(--primary); }
.sa-notice__main { flex: 1 1 auto; font-weight: 600; }
.sa-notice__main a { color: var(--text); }
.sa-notice__main a:hover { color: var(--primary); }
.sa-notice > i { color: var(--text-muted); }

/* ==========================================================================
   GALLERY GRID (home.gallery, pages/gallery)
   ========================================================================== */
.sa-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.sa-gallery-grid__tile { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden; }
.sa-gallery-grid__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-lift); }
.sa-gallery-grid__tile:hover img { transform: scale(1.06); }
.sa-gallery-grid__label {
  position: absolute; inset: auto 0 0 0; padding: 0.5rem 0.75rem;
  background: linear-gradient(0deg, color-mix(in srgb, var(--secondary) 75%, transparent), transparent);
  color: #fff; font-size: 0.82rem; font-weight: 600;
  opacity: 0; transition: opacity var(--transition-fast);
}
.sa-gallery-grid__tile:hover .sa-gallery-grid__label { opacity: 1; }
@media (max-width: 767.98px) { .sa-gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { .sa-gallery-grid__tile:hover img { transform: none; } }

/* Dense, edge-to-edge photo wall (home gallery section) — no gaps, no
   rounded corners, no label overlay: a tight mosaic of plain photo tiles. */
/* Flex, not grid: grid's last row stays left-packed when it doesn't fill all
   tracks; flex-wrap + justify-content:center centers a short final row
   instead of leaving it flush left with empty space trailing it. */
.sa-gallery-grid--dense { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; }
.sa-gallery-grid--dense .sa-gallery-grid__tile { flex: 0 0 calc(100% / 6); max-width: calc(100% / 6); border-radius: 0; }
@media (max-width: 991.98px) { .sa-gallery-grid--dense .sa-gallery-grid__tile { flex-basis: 25%; max-width: 25%; } }
@media (max-width: 575.98px) { .sa-gallery-grid--dense .sa-gallery-grid__tile { flex-basis: 33.3333%; max-width: 33.3333%; } }

/* ==========================================================================
   LIGHTBOX (gallery page, theme.js)
   ========================================================================== */
.sa-lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: color-mix(in srgb, var(--secondary) 85%, transparent);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity var(--transition-fast), visibility var(--transition-fast);
}
.sa-lightbox.is-open { opacity: 1; visibility: visible; }
.sa-lightbox__img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.sa-lightbox__close {
  position: absolute; top: var(--space-4); right: var(--space-4);
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: #fff; color: var(--text); display: flex; align-items: center; justify-content: center;
}
.sa-lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: color-mix(in srgb, #fff 18%, transparent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.sa-lightbox__nav:hover { background: #fff; color: var(--text); }
.sa-lightbox__nav--prev { left: var(--space-4); }
.sa-lightbox__nav--next { right: var(--space-4); }
.sa-lightbox__counter {
  position: absolute; left: 0; right: 0; bottom: var(--space-4);
  text-align: center; color: #fff; font-size: 0.85rem; font-weight: 600;
}
@media (max-width: 575.98px) {
  .sa-lightbox__nav { width: 38px; height: 38px; }
  .sa-lightbox__nav--prev { left: var(--space-2); }
  .sa-lightbox__nav--next { right: var(--space-2); }
}

/* Video lightbox (image lightbox is swap-src only; video needs its own
   iframe-bearing overlay — page-level script on image-galleries/video-galleries). */
.sa-video-lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: color-mix(in srgb, var(--secondary) 85%, transparent);
  display: flex; align-items: center; justify-content: center;
}
.sa-video-lightbox__content { position: relative; width: min(900px, 92vw); aspect-ratio: 16 / 9; }
.sa-video-lightbox__content iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.sa-video-lightbox__close {
  position: absolute; top: calc(-1 * var(--space-6)); right: 0;
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: #fff; color: var(--text); display: flex; align-items: center; justify-content: center;
}

/* ==========================================================================
   DOCUMENT LIST + GENERIC PREVIEW MODAL (documents, institute-mous)
   ========================================================================== */
.sa-count-badge { display: inline-flex; align-items: center; gap: 0.35rem; background: var(--eyebrow-bg); color: var(--eyebrow-text); font-weight: 700; font-size: 0.85rem; padding: 0.4rem 0.9rem; border-radius: var(--radius-pill); }
.sa-count-badge strong { font-size: 1rem; }
.sa-doc-row { display: flex; gap: var(--space-4); align-items: flex-start; background: #fff; color: var(--text); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--space-4); margin-bottom: var(--space-3); flex-wrap: wrap; }
.sa-doc-row__icon { flex: 0 0 52px; width: 52px; height: 52px; border-radius: var(--radius-md); background: var(--eyebrow-bg); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; overflow: hidden; }
.sa-doc-row__icon img { width: 100%; height: 100%; object-fit: cover; }
.sa-doc-row__content { flex: 1 1 260px; min-width: 0; }
.sa-doc-row__type { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: var(--primary); margin-bottom: 0.25rem; }
.sa-doc-row__title { margin: 0 0 0.35rem; font-size: 1.05rem; }
.sa-doc-row__meta { display: flex; flex-wrap: wrap; gap: var(--space-3); font-size: 0.82rem; color: var(--text-muted); margin-top: 0.4rem; }
.sa-doc-row__meta span { display: inline-flex; align-items: center; gap: 0.3rem; }
.sa-doc-row__actions { flex: 0 0 auto; display: flex; gap: 0.5rem; align-items: center; margin-left: auto; }

.sa-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: var(--space-4); }
.sa-modal__backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--secondary) 85%, transparent); }
.sa-modal__dialog { position: relative; width: min(900px, 94vw); max-height: 90vh; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; }
.sa-modal__header { display: flex; align-items: center; justify-content: space-between; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); }
.sa-modal__header h3 { margin: 0; font-size: 1.05rem; }
.sa-modal__close { width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--bg); color: var(--text); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.sa-modal__body { flex: 1 1 auto; overflow: auto; padding: var(--space-4); }
.sa-modal__body iframe { width: 100%; height: 70vh; border: 0; }
.sa-modal__body img { max-width: 100%; display: block; margin: 0 auto; }

/* ==========================================================================
   JOB CARD (careers listing)
   ========================================================================== */
.sa-job-card { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); background: #fff; color: var(--text); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--space-4); }
.sa-job-card.is-expired { opacity: 0.7; }
.sa-job-card__main { flex: 1 1 320px; min-width: 0; }
.sa-job-card__tags { display: flex; gap: 0.5rem; margin-bottom: var(--space-2); }
.sa-job-card__title { margin: 0 0 var(--space-2); font-size: 1.15rem; }
.sa-job-card__title a { color: inherit; }
.sa-job-card__meta { display: flex; flex-wrap: wrap; gap: var(--space-3); font-size: 0.85rem; color: var(--text-muted); margin: 0 0 var(--space-2); list-style: none; padding: 0; }
.sa-job-card__meta li { display: inline-flex; align-items: center; gap: 0.35rem; }
.sa-job-card__actions { flex: 0 0 auto; display: flex; flex-direction: column; gap: 0.5rem; align-self: center; }

/* ==========================================================================
   FEEDBACK / SURVEY QUESTIONS (feedback-form)
   ========================================================================== */
.sa-fieldset { margin: 0 0 var(--space-5); padding: 0; border: 0; }
.sa-fieldset legend { float: none; width: auto; padding: 0; font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: var(--space-3); }
.sa-fieldset legend small { font-weight: 400; color: var(--text-muted); font-size: 0.8rem; }
.sa-question { margin-bottom: var(--space-4); padding-bottom: var(--space-4); border-bottom: 1px solid var(--border); }
.sa-question__label { margin: 0 0 var(--space-2); color: var(--text); font-weight: 600; }
.sa-question__num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-right: 0.4rem; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-size: 0.8rem; }
.sa-question__hint { font-size: 0.85rem; margin: 0 0 var(--space-2); color: var(--text-muted); }
.sa-question-error { color: var(--danger); font-size: 0.85rem; margin-top: var(--space-2); }
.sa-choices { display: grid; gap: var(--space-2); }
.sa-choices--row { display: flex; flex-wrap: wrap; }
.sa-choice { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.5rem 0.9rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; color: var(--text); cursor: pointer; }
.sa-choice:has(input:checked) { border-color: var(--primary); background: var(--eyebrow-bg); }
.sa-choice input { accent-color: var(--primary); }
.sa-rating__stars { display: inline-flex; flex-direction: row-reverse; gap: 0.2rem; }
.sa-rating__stars label { font-size: 1.7rem; color: var(--border); cursor: pointer; line-height: 1; }
.sa-rating__stars input:checked ~ label, .sa-rating__stars label:hover, .sa-rating__stars label:hover ~ label { color: var(--accent); }
.sa-rating__stars input:focus-visible + label { outline: 2px solid var(--primary); outline-offset: 2px; }
.sa-rating__labels { display: flex; justify-content: space-between; max-width: 240px; font-size: 0.8rem; color: var(--text-muted); }

/* ==========================================================================
   RESPONSIVE: card/list grids collapse per theme.spec.md §11
   ========================================================================== */
@media (max-width: 767.98px) {
  .sa-page-banner { padding: var(--space-6) 0 var(--space-5); min-height: 220px; }
}
/* ---------- SCROLL-TO-TOP BUTTON ---------- */
#scrollUp {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 1500;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
}
#scrollUp.show { opacity: 1; visibility: visible; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { #scrollUp { transition: opacity var(--transition-fast); } }
@media (max-width: 575.98px) {
  #scrollUp { right: var(--space-3); bottom: var(--space-3); width: 42px; height: 42px; }
}

/* WhatsApp float (themes/shared/whatsapp-button, base.css): stacked above #scrollUp */
:root { --sx-wa-right: calc(var(--space-4) - 3px); --sx-wa-bottom: calc(var(--space-4) + 58px); }
@media (max-width: 575.98px) {
  :root { --sx-wa-right: calc(var(--space-3) - 5px); --sx-wa-bottom: calc(var(--space-3) + 54px); }
}

/* ---------- SCROLL-REVEAL + COUNTER (design.motion: rich) ----------
   theme.js adds .in-view via IntersectionObserver and drives the
   facts_figures / stat-chip count-up — both guarded by this same
   reduced-motion rule so neither ever fights the user's OS setting. */
[data-animate] { opacity: 0; will-change: transform, opacity; }
[data-animate="fade-in"] { transition: opacity var(--reveal-duration) ease; }
[data-animate="fade-in"].in-view { opacity: 1; }
[data-animate="slide-up"] { transform: translateY(28px); transition: opacity var(--reveal-duration) ease, transform var(--reveal-duration) cubic-bezier(0.22, 1, 0.36, 1); }
[data-animate="slide-up"].in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- RESPONSIVE ----------
   The header expands at xl, not lg (theme.spec.md §11 / lesson #12): the
   starter menu is 6 top-level items plus About's 3-item dropdown, which
   crowds the default lg breakpoint at 1024–1199px (layout/navigation:
   navbar-expand-xl). */
@media (max-width: 1199.98px) {
  .sa-nav-cta { flex-wrap: wrap; margin-top: var(--space-3); }
}

@media (max-width: 1199.98px) {
  /* Mega dropdown collapses to a plain in-place stacked list inside the
     off-canvas menu: static (not a floating overlay), full width, one
     column (theme.spec.md §11). The content itself stays — hiding the
     whole panel here would silently remove those links from mobile nav. */
  .sa-mega-panel { position: static; box-shadow: none; border-radius: 0; background: transparent; padding: 0 0 0 var(--space-4); min-width: 0; max-width: none; }
  .sa-mega-panel--grid { display: block; }
  .sa-mega-col { margin-bottom: var(--space-3); }
  .sa-mega-col__links a { color: inherit; }
}

@media (max-width: 575.98px) {
  section { padding: var(--space-6) 0; }
  .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; text-align: center; }
  .sa-form-inline { flex-direction: column; }
  .sa-form-inline .form-control, .sa-form-inline button { width: 100%; border-radius: var(--radius-pill); }
}
/* ═══ UI kit (themes/theme8/ui/*) — plugin & platform pages in the Spectrum Academy look.
   .t8ui-section's background-mode variables are set in common/components.blade.php
   (shared with .rs-home-section-shell) — only padding is added here. ═══ */
.t8ui-page { background: var(--bg); padding: var(--space-6) 0 var(--space-7); }
.t8ui-section { padding: var(--space-6) 0; }
