/* ==========================================================================
   St. Aurelius International Academy - Global Stylesheet
   ========================================================================== */

:root {
  --primary: #001129;
  --primary-container: #0b2647;
  --on-primary: #ffffff;
  --on-primary-container: #778eb4;
  --primary-fixed: #d5e3ff;
  --primary-fixed-dim: #b0c8f1;
  --on-primary-fixed: #001b3b;
  --on-primary-fixed-variant: #30476a;

  --secondary: #795902;
  --secondary-container: #fdd275;
  --on-secondary: #ffffff;
  --on-secondary-container: #775800;
  --secondary-fixed: #ffdf9e;
  --secondary-fixed-dim: #ebc166;
  --on-secondary-fixed: #261a00;
  --on-secondary-fixed-variant: #5b4300;

  --gold: #C9A24B;
  --gold-hover: #B38C37;
  --gold-light: #F9F4E8;

  --tertiary: #061121;
  --tertiary-container: #1b2637;
  --on-tertiary: #ffffff;
  --on-tertiary-container: #828da1;
  --tertiary-fixed: #d8e3f9;
  --tertiary-fixed-dim: #bcc7dd;
  --on-tertiary-fixed: #111c2c;
  --on-tertiary-fixed-variant: #3c4759;

  --surface: #faf9f6;
  --surface-dim: #dbdad7;
  --surface-bright: #faf9f6;
  --surface-pure: #ffffff;
  --surface-cream: #F3EFEA;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f4f3f0;
  --surface-container: #efeeeb;
  --surface-container-high: #e9e8e5;
  --surface-container-highest: #e3e2df;
  --surface-variant: #e3e2df;
  --on-surface: #1a1c1a;
  --on-surface-variant: #44474e;
  --inverse-surface: #2f312f;
  --inverse-on-surface: #f2f1ee;
  --surface-tint: #485f83;

  --background: #faf9f6;
  --on-background: #1a1c1a;
  --text-charcoal: #121926;

  --outline: #74777f;
  --outline-variant: #c4c6cf;
  --border-warm: #E5E2DA;

  --error: #ba1a1a;
  --on-error: #ffffff;
  --error-container: #ffdad6;
  --on-error-container: #93000a;

  --font-serif: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-subtle: 0 2px 8px rgba(11, 38, 71, 0.04);
  --shadow-card: 0 4px 14px rgba(11, 38, 71, 0.06);
  --shadow-hover: 0 14px 30px rgba(11, 38, 71, 0.12);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  max-width: 100vw;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--surface);
  color: var(--on-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  max-width: 100vw;
}

/* Smooth anchor target highlight pulse */
.highlight-target {
  outline: 3px solid #C9A24B !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 30px rgba(201, 162, 75, 0.5) !important;
  transition: all 0.4s ease !important;
  animation: target-pulse 1.2s ease-in-out infinite alternate !important;
}

@keyframes target-pulse {
  0% {
    box-shadow: 0 0 10px rgba(201, 162, 75, 0.3);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 0 35px rgba(201, 162, 75, 0.7);
    transform: scale(1.015);
  }
}

h1, h2, h3, h4, h5, h6,
.font-headline-lg,
.font-headline-md,
.font-headline-sm,
.font-display-hero,
.font-heading {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

main > :first-child {
  margin-top: 0 !important;
}

main > :last-child {
  margin-bottom: 0 !important;
}

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

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

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--surface-container);
}
::-webkit-scrollbar-thumb {
  background: var(--outline-variant);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* Typography Helpers & Hierarchy Scale (Headings: Poppins, Body: Inter) */
.font-headline-lg {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

/* Universal Consistent Hero H1 Headings (Compact on mobile, 2rem desktop) */
h1,
.site-hero h1,
section.hero h1,
.hero-heading {
  font-size: 1.15rem !important;
  line-height: 1.25 !important;
  letter-spacing: -0.015em !important;
  font-weight: 700 !important;
}

@media (min-width: 380px) {
  h1,
  .site-hero h1,
  section.hero h1,
  .hero-heading {
    font-size: 1.25rem !important;
  }
}

@media (min-width: 640px) {
  h1,
  .site-hero h1,
  section.hero h1,
  .hero-heading {
    font-size: 1.65rem !important;
    line-height: 1.25 !important;
  }
}

@media (min-width: 768px) {
  h1,
  .site-hero h1,
  section.hero h1,
  .hero-heading {
    font-size: 2rem !important; /* Exactly 2rem as requested */
    line-height: 1.2 !important;
  }
}

/* Universal Consistent Section H2 Headings (1.2rem desktop, responsive mobile) */
h2,
h2.font-headline-lg,
h2.font-headline-md,
.text-headline-lg,
.text-headline-lg-mobile {
  font-size: 1.1rem !important;
  line-height: 1.35 !important;
  letter-spacing: -0.01em !important;
  font-weight: 700 !important;
}

@media (min-width: 640px) {
  h2,
  h2.font-headline-lg,
  h2.font-headline-md,
  .text-headline-lg,
  .text-headline-lg-mobile {
    font-size: 1.2rem !important; /* Exactly 1.2rem as requested */
  }
}

/* Universal Subsections (H3) */
h3,
h3.font-headline-md,
h3.font-headline-sm,
.text-headline-md {
  font-size: 1.05rem !important;
  line-height: 1.35 !important;
  letter-spacing: -0.01em !important;
  font-weight: 600 !important;
}

@media (min-width: 640px) {
  h3,
  h3.font-headline-md,
  h3.font-headline-sm,
  .text-headline-md {
    font-size: 1.15rem !important;
  }
}

.font-headline-md {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}
.font-headline-sm {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}
.font-display-hero {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.font-body {
  font-family: 'Inter', sans-serif;
}
.font-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.15em;
  font-weight: 700;
}
.text-eyebrow {
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.15em;
  font-weight: 700;
  text-transform: uppercase;
}

/* Responsive Headline & Display Utilities */
.text-display-hero {
  font-size: 2.75rem;
  line-height: 1.15;
}
@media (min-width: 640px) {
  .text-display-hero {
    font-size: 3.25rem;
    line-height: 1.15;
  }
}
@media (min-width: 1024px) {
  .text-display-hero {
    font-size: 4rem;
    line-height: 1.12;
  }
}
@media (min-width: 1280px) {
  .text-display-hero {
    font-size: 4.5rem;
    line-height: 1.1;
  }
}

.text-display-hero-mobile {
  font-size: 2.35rem;
  line-height: 1.2;
}

.text-headline-lg {
  font-size: 1.5rem;
  line-height: 1.3;
}

.text-headline-md {
  font-size: 1.5rem;
  line-height: 1.35;
}

.text-headline-sm {
  font-size: 1.5rem;
  line-height: 1.35;
}

.text-body-lg {
  font-size: 1.125rem;
  line-height: 1.75;
}
@media (min-width: 768px) {
  .text-body-lg {
    font-size: 1.25rem;
    line-height: 1.7;
  }
}

.text-body-md {
  font-size: 1.05rem;
  line-height: 1.65;
}

.text-body-sm {
  font-size: 0.925rem;
  line-height: 1.55;
}

/* Button Components */
.btn-gold {
  background-color: var(--gold);
  color: var(--primary);
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(201, 162, 75, 0.25);
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-gold:hover {
  background-color: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(201, 162, 75, 0.35);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary:hover {
  background-color: var(--primary-container);
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
}
.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
}

/* Compact & Responsive Button Size Modifier */
.btn-sm {
  padding: 0.5rem 1.25rem !important;
  font-size: 0.875rem !important;
  line-height: 1.25rem !important;
  gap: 0.375rem !important;
  border-radius: 0.5rem !important;
}

@media (max-width: 639px) {
  .btn-sm {
    padding: 0.425rem 1rem !important;
    font-size: 0.8125rem !important;
    line-height: 1.15rem !important;
    gap: 0.35rem !important;
  }
}

/* Card Transitions */
.card-hover-effect {
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.card-hover-effect:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Material Symbols alignment */
.material-symbols-outlined {
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Live Event Tracker (Homepage Spotlight Component)
   Clean White Theme (#FFFFFF) with Navy (#001129) & Gold (#C9A24B) Accents
   Continuous Bottom-to-Top Infinite Scroll with Pause on Hover
   ========================================================================== */

.live-tracker-card {
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid #E5E2DA;
  box-shadow: 0 10px 30px -5px rgba(0, 17, 41, 0.08), 0 0 0 1px rgba(0, 17, 41, 0.02);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Tracker Header */
.live-tracker-header {
  padding: 0.75rem 1.5rem;
  background-color: #000e21;
  border-bottom: 1px solid rgba(201, 162, 75, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  position: relative;
  z-index: 2;
}

.live-tracker-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #C9A24B;
  background: rgba(201, 162, 75, 0.16);
  border: 1px solid rgba(201, 162, 75, 0.4);
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
}

.live-tracker-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
  animation: liveTrackerPulse 1.6s ease-in-out infinite;
}

@keyframes liveTrackerPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.65;
  }
}

.live-tracker-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.live-tracker-title .title-gold {
  color: #C9A24B;
}

.live-tracker-title .title-white {
  color: #ffffff;
}

/* Scroll Window & Mask */
.live-tracker-window {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  position: relative;
  padding: 0.5rem 1.25rem;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 1) 12%, rgba(0, 0, 0, 1) 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 1) 12%, rgba(0, 0, 0, 1) 88%, transparent 100%);
}

/* Scrolling Track (Bottom to Top Infinite Scroll) */
.live-tracker-track {
  display: flex;
  flex-direction: column;
  animation: liveTrackerScrollUp 22s linear infinite;
  will-change: transform;
}

/* Pause on hover so users can easily read & click */
.live-tracker-window:hover .live-tracker-track,
.live-tracker-window:focus-within .live-tracker-track {
  animation-play-state: paused;
}

@keyframes liveTrackerScrollUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

.live-tracker-group {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.5rem 0;
}

/* Individual Event Item */
.live-tracker-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: #FAF9F6;
  border: 1px solid #E5E2DA;
  color: #001129;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.live-tracker-item:hover {
  background: #FAF5EB;
  border-color: #C9A24B;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(201, 162, 75, 0.14);
}

/* Bullet Point (Matching ▪ from reference image) */
.live-tracker-bullet {
  color: #C9A24B;
  font-size: 1.15rem;
  line-height: 1.2;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.live-tracker-item-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.live-tracker-item-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.925rem;
  font-weight: 600;
  line-height: 1.35;
  color: #001129;
  display: inline;
}

.live-tracker-item:hover .live-tracker-item-title {
  color: #C9A24B;
}

/* Red "NEW" Badge matching user's uploaded reference */
.badge-new-pulse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ef4444;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 0.25rem;
  margin-left: 0.45rem;
  vertical-align: middle;
  line-height: 1;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.45);
  animation: badgeNewPulse 1.8s ease-in-out infinite;
}

@keyframes badgeNewPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.35);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.65);
  }
}

/* Tracker Bottom Action Bar */
.live-tracker-footer {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid #E5E2DA;
  background: #FAF9F6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  z-index: 2;
}

.live-tracker-footer-link {
  color: #001129;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: color 0.18s ease;
}

.live-tracker-footer-link:hover {
  color: #C9A24B;
}

/* ==========================================================================
   Hero 4-Direction Dynamic Box Mosaic Slider
   (Full rules are in the Universal Hero Section block below)
   ========================================================================== */

.hero-grid-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden !important;
  clip-path: inset(0) !important;
  -webkit-clip-path: inset(0) !important;
  contain: paint strict !important;
  pointer-events: none;
  z-index: 2;
}

.hero-mosaic-tile {
  position: absolute;
  overflow: hidden !important;
  background-repeat: no-repeat;
  will-change: transform, opacity;
  box-sizing: border-box;
  opacity: 0;
  transform-origin: center center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hero-mosaic-tile.tile-animating {
  transition-property: transform, opacity, box-shadow;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Slide Indicator Dots */
.hero-slider-indicators {
  position: absolute;
  bottom: 1.5rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 25;
  background: rgba(0, 17, 41, 0.55);
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 162, 75, 0.4);
  pointer-events: auto;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

@media (max-width: 640px) {
  .hero-slider-indicators {
    bottom: 1rem;
    right: 50%;
    transform: translateX(50%);
    padding: 0.35rem 0.75rem;
  }
}

.hero-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.45);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
  padding: 0;
  outline: none;
}

.hero-slider-dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.hero-slider-dot.active {
  width: 24px;
  background-color: #C9A24B;
  box-shadow: 0 0 10px rgba(201, 162, 75, 0.85);
}

/* ==========================================================================
   Universal Hero Section — Auto-height from image aspect ratio
   NO fixed vh heights. NO min/max-height. Image drives container height.
   ========================================================================== */
.hero-section {
  position: relative !important;
  width: 100% !important;
  /* height auto — driven by image or padding-top on slider */
  height: auto !important;
  min-height: unset !important;
  max-height: unset !important;
  display: block !important;       /* block so img inside flows naturally */
  overflow: hidden !important;
  isolation: isolate !important;
  z-index: 1 !important;
  box-sizing: border-box !important;
  background-color: #00122e !important; /* dark navy — no side gaps show */
}

/* ----- Static-banner hero (about-us etc.) ----- */
/* The <img class="hero-full-img"> inside drives height automatically */
.hero-full-img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  object-fit: contain !important; /* natural proportions — no stretching, no cropping */
  vertical-align: top !important;
  pointer-events: none !important;
  z-index: 0 !important;
  position: relative !important;
}

/* ----- Overlay container that sits on top of the image ----- */
.hero-overlay-wrap {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10 !important;
  padding: 1.25rem 1rem !important;
}

@media (min-width: 640px) {
  .hero-overlay-wrap {
    padding: 2rem 1.5rem !important;
  }
}

@media (min-width: 1024px) {
  .hero-overlay-wrap {
    padding: 3rem 3rem !important;
  }
}

/* ----- Homepage slider hero — natural height driven by hero-full-img ----- */
/* NO hardcoded padding-top! Height matches image's true proportions natively. */
.hero-section:has(#hero-box-slider) {
  height: auto !important;
  min-height: unset !important;
  max-height: unset !important;
  padding-top: 0 !important;
  display: block !important;
}

/* ----- Slider fills its container — container height = image natural height ----- */
.hero-box-slider {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  clip-path: inset(0) !important;
  -webkit-clip-path: inset(0) !important;
  contain: paint strict !important;
  isolation: isolate;
  z-index: 1;
  background-color: transparent !important;
  pointer-events: none;
}

/* Slider gradient & content overlays */
.hero-section:has(#hero-box-slider) .hero-overlay-wrap {
  position: absolute !important;
  inset: 0 !important;
  z-index: 20 !important;
}

/* ----- All slide backgrounds: fill container matching Image 1's height ----- */
.hero-slide-base,
.hero-bg-banner,
img.hero-bg-banner {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-color: transparent !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  object-fit: cover !important;
  pointer-events: none !important;
  transform: translateZ(0) !important;
  z-index: 0 !important;
}


.hero-content {
  position: relative !important;
  z-index: 10 !important;
  max-height: 100% !important;
  gap: 0.75rem !important;
}

@media (min-width: 480px) {
  .hero-content {
    gap: 0.95rem !important;
  }
}

@media (min-width: 640px) {
  .hero-content {
    gap: 1.25rem !important;
  }
}

@media (min-width: 1024px) {
  .hero-content {
    gap: 1.75rem !important;
  }
}

/* Hero Badge Pill */
.hero-badge {
  font-size: 9.5px !important;
  padding: 0.2rem 0.65rem !important;
  gap: 0.35rem !important;
  letter-spacing: 0.04em !important;
  line-height: 1.3 !important;
  border-radius: 9999px !important;
}

.hero-badge .material-symbols-outlined {
  font-size: 13px !important;
}

@media (min-width: 380px) {
  .hero-badge {
    font-size: 10.5px !important;
    padding: 0.22rem 0.75rem !important;
    gap: 0.4rem !important;
  }

  .hero-badge .material-symbols-outlined {
    font-size: 14px !important;
  }
}

@media (min-width: 640px) {
  .hero-badge {
    font-size: 11.5px !important;
    padding: 0.35rem 1rem !important;
    gap: 0.45rem !important;
  }

  .hero-badge .material-symbols-outlined {
    font-size: 16px !important;
  }
}

@media (min-width: 1024px) {
  .hero-badge {
    font-size: 12.5px !important;
    padding: 0.45rem 1.25rem !important;
    gap: 0.5rem !important;
  }

  .hero-badge .material-symbols-outlined {
    font-size: 18px !important;
  }
}

/* Hero Subtitle */
.hero-subtitle {
  font-size: 0.775rem !important;
  line-height: 1.42 !important;
  max-width: 32rem !important;
}

@media (min-width: 380px) {
  .hero-subtitle {
    font-size: 0.8125rem !important;
    line-height: 1.48 !important;
    max-width: 36rem !important;
  }
}

@media (min-width: 640px) {
  .hero-subtitle {
    font-size: 0.9375rem !important;
    line-height: 1.55 !important;
    max-width: 44rem !important;
  }
}

@media (min-width: 1024px) {
  .hero-subtitle {
    font-size: 1.05rem !important;
    line-height: 1.65 !important;
    max-width: 48rem !important;
  }
}

/* Hero CTA Buttons Group */
.hero-cta-group {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  width: 100% !important;
  flex-wrap: wrap !important;
}

@media (min-width: 640px) {
  .hero-cta-group {
    gap: 0.85rem !important;
  }
}

/* Hero CTA Buttons */
.hero-cta-btn {
  font-size: 0.75rem !important;
  padding: 0.38rem 0.85rem !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.35rem !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

.hero-cta-btn .material-symbols-outlined {
  font-size: 14px !important;
}

@media (min-width: 380px) {
  .hero-cta-btn {
    font-size: 0.8rem !important;
    padding: 0.42rem 1rem !important;
  }
}

@media (min-width: 640px) {
  .hero-cta-btn {
    font-size: 0.875rem !important;
    padding: 0.65rem 1.35rem !important;
    border-radius: 8px !important;
    gap: 0.45rem !important;
  }

  .hero-cta-btn .material-symbols-outlined {
    font-size: 16px !important;
  }
}

@media (min-width: 1024px) {
  .hero-cta-btn {
    font-size: 0.95rem !important;
    padding: 0.75rem 1.65rem !important;
    gap: 0.5rem !important;
  }

  .hero-cta-btn .material-symbols-outlined {
    font-size: 18px !important;
  }
}

/* ==========================================================================
   Continuous Right-to-Left Ticker Strip (Just below Hero Section)
   ========================================================================== */
.school-ticker-strip {
  position: relative;
  width: 100%;
  background: #001129;
  border-top: 1px solid rgba(201, 162, 75, 0.45);
  border-bottom: 2px solid rgba(201, 162, 75, 0.7);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 17, 41, 0.25);
  z-index: 20;
}

.ticker-marquee-track-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
}

.ticker-marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: tickerScrollLeft 38s linear infinite;
}

.school-ticker-strip:hover .ticker-marquee-track {
  animation-play-state: paused;
}

@keyframes tickerScrollLeft {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ==========================================================================
   Dual-Row Gallery Infinite Marquee (Life at Sun Rise Sr. Sec. School)
   ========================================================================== */
.gallery-marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: 0.5rem 0;
}

.gallery-marquee-track {
  display: flex;
  gap: 1.15rem;
  width: max-content;
  will-change: transform;
}

.gallery-marquee-left {
  animation: galleryScrollLeft 42s linear infinite;
}

.gallery-marquee-right {
  animation: galleryScrollRight 42s linear infinite;
}

.gallery-marquee-container:hover .gallery-marquee-track,
.gallery-marquee-container:focus-within .gallery-marquee-track {
  animation-play-state: paused;
}

@keyframes galleryScrollLeft {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes galleryScrollRight {
  0% {
    transform: translate3d(-50%, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

.gallery-card-item {
  width: 210px;
  height: 135px;
  flex-shrink: 0;
  border-radius: 0.85rem;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 17, 41, 0.08);
  border: 1px solid rgba(0, 17, 41, 0.06);
  background-color: #f1f5f9;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 640px) {
  .gallery-card-item {
    width: 250px;
    height: 160px;
    border-radius: 1rem;
  }
}

@media (min-width: 1024px) {
  .gallery-card-item {
    width: 275px;
    height: 175px;
  }
}

.gallery-card-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 17, 41, 0.16);
  border-color: rgba(201, 162, 75, 0.5);
}

/* ==========================================================================
   Affiliation Badges Strip Responsive (Single Line Protection on Mobile)
   ========================================================================== */
.affiliation-badge {
  white-space: nowrap !important;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 639px) {
  .affiliation-badge {
    font-size: 0.85rem !important; /* ~13.6px - perfectly readable without breaking */
    letter-spacing: 0.02em !important;
  }
  .affiliation-badge .material-symbols-outlined {
    font-size: 1.15rem !important;
  }
}

@media (max-width: 359px) {
  .affiliation-badge {
    font-size: 0.75rem !important; /* ~12px for small 320px screens */
    letter-spacing: normal !important;
  }
  .affiliation-badge .material-symbols-outlined {
    font-size: 1rem !important;
  }
}



