/* ==========================================================================
   Sandy Lake Academy - Brand Design System & Stylesheet
   ========================================================================== */

:root {
  /* Colors */
  --navy-900: #051329;
  --navy-800: #0A1D37;
  --navy-700: #0F2A4E;
  --navy-600: #1B3B6F;
  --navy-500: #284B85;
  --navy-100: #E8EFF9;
  --navy-50:  #F0F4FA;

  --gold-700: #9E7817;
  --gold-600: #B58D22;
  --gold-500: #D4AF37;
  --gold-400: #E2C25D;
  --gold-300: #F1DE99;
  --gold-100: #FCF8E8;
  --gold-50:  #FEFCF5;
  --gold-text: #7A5C0E; /* gold for text on light backgrounds: >=4.5:1 on white, cream and --bg-alt */

  --bg-body:  #FAF9F6;
  --bg-card:  #FFFFFF;
  --bg-alt:   #F3EFE6;

  --text-main:   #1E293B;
  --text-muted:  #475569;
  --text-light:  #94A3B8;
  --text-white:  #FFFFFF;

  --border-light: rgba(10, 29, 55, 0.08);
  --border-gold:  rgba(212, 175, 55, 0.35);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 4px 12px rgba(5, 19, 41, 0.05);
  --shadow-md: 0 10px 25px rgba(5, 19, 41, 0.08);
  --shadow-lg: 0 20px 45px rgba(5, 19, 41, 0.12);
  --shadow-xl: 0 30px 60px rgba(5, 19, 41, 0.16);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container-max: 1240px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Apple & WebKit Safe Area Variables */
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-left: env(safe-area-inset-left, 0px);
  --safe-area-right: env(safe-area-inset-right, 0px);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
}

body.drawer-open {
  overflow: hidden;
  touch-action: none;
}

main {
  flex: 1;
}

/* Anchor offset for sticky header in Safari & modern browsers */
[id] {
  scroll-margin-top: calc(85px + var(--safe-area-top));
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
  touch-action: manipulation;
}

button, input, textarea, select {
  font: inherit;
  font-size: 1rem; /* 16px minimum prevents iOS Safari auto-zoom on input focus */
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--navy-800);
  line-height: 1.25;
  font-weight: 600;
}

p {
  color: var(--text-muted);
}

/* Container */
.container {
  width: min(var(--container-max), 92%);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--safe-area-left);
  padding-right: var(--safe-area-right);
}

/* Top Notification Banner */
.top-banner {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.825rem;
  padding-top: max(8px, var(--safe-area-top));
  padding-bottom: 8px;
  padding-left: max(0px, var(--safe-area-left));
  padding-right: max(0px, var(--safe-area-right));
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.top-banner-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-banner-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-banner-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-banner-item .contact-link,
.footer-contact-item .contact-link {
  color: inherit;
}

.top-banner-item .contact-link:hover,
.footer-contact-item .contact-link:hover {
  text-decoration: underline;
}

.top-banner-item svg {
  width: 14px;
  height: 14px;
  fill: var(--gold-400);
  flex-shrink: 0;
}

.top-banner-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-banner-right a {
  color: var(--gold-300);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  min-height: 24px;
}

.top-banner-right a:hover {
  color: var(--text-white);
  text-decoration: underline;
}

/* Header & Navigation */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 249, 246, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-smooth);
  padding-left: var(--safe-area-left);
  padding-right: var(--safe-area-right);
}

header.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  transition: padding var(--transition-fast);
}

header.site-header.scrolled .navbar {
  padding: 10px 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-crest {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-600) 100%);
  border: 2px solid var(--gold-500);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.4rem;
  box-shadow: 0 2px 8px rgba(10, 29, 55, 0.15);
}

.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
  display: block;
}

.brand-link:hover .brand-logo-img {
  transform: scale(1.05);
}

.footer-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-tagline {
  font-size: 0.725rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-text);
  font-weight: 600;
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 22px;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy-800);
  padding: 12px 2px; /* ~44px tall tap target */
  position: relative;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold-500);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-text);
}

.nav-link[aria-current="page"] {
  border-bottom: 2px solid var(--gold-500);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
}

.btn:active {
  transform: scale(0.98);
  opacity: 0.92;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-600) 100%);
  color: var(--navy-900);
  box-shadow: 0 3px 10px rgba(181, 141, 34, 0.25);
}

.btn-navy {
  background: var(--navy-800);
  color: var(--text-white);
}

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

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

.btn-white {
  background: var(--bg-card);
  color: var(--navy-800);
  box-shadow: var(--shadow-sm);
}

.btn-sm {
  padding: 9px 14px; /* >= 36px tall */
  font-size: 0.775rem;
}

.btn-lg {
  padding: 14px 30px;
  font-size: 0.95rem;
}

/* Desktop Hover Styles */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-500) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(181, 141, 34, 0.35);
  }
  .btn-navy:hover {
    background: var(--navy-700);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(10, 29, 55, 0.25);
  }
  .btn-outline:hover {
    background: var(--navy-800);
    color: var(--text-white);
    transform: translateY(-2px);
  }
  .btn-outline-gold:hover {
    background: var(--gold-500);
    color: var(--navy-900);
    transform: translateY(-2px);
  }
  .btn-white:hover {
    background: var(--navy-50);
    transform: translateY(-2px);
  }
}

/* Mobile Hamburger */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  color: var(--navy-800);
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
  border-radius: var(--radius-sm);
}

.mobile-toggle:active {
  background: rgba(10, 29, 55, 0.08);
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
  display: block;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(340px, 85vw);
  height: 100vh;
  height: 100dvh;
  background: var(--bg-card);
  z-index: 2000;
  box-shadow: var(--shadow-xl);
  padding-top: max(24px, calc(20px + var(--safe-area-top)));
  padding-bottom: max(24px, calc(20px + var(--safe-area-bottom)));
  padding-left: max(24px, calc(20px + var(--safe-area-left)));
  padding-right: max(24px, calc(20px + var(--safe-area-right)));
  display: flex;
  flex-direction: column;
  visibility: hidden;
  transition: right var(--transition-smooth), visibility 0s linear 0.4s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

.mobile-drawer.open {
  right: 0;
  visibility: visible;
  transition-delay: 0s;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.mobile-nav-link {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--navy-800);
  padding: 10px 0;
  border-bottom: 1px solid rgba(10, 29, 55, 0.04);
  display: block;
  touch-action: manipulation;
}

.mobile-nav-link:active {
  color: var(--gold-text);
  opacity: 0.8;
}

.mobile-nav-link[aria-current="page"] {
  border-left: 3px solid var(--gold-500);
  padding-left: 10px;
}

.mobile-nav-link.active {
  color: var(--gold-text);
  font-weight: 600;
}

.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 19, 41, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  touch-action: none;
}

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

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(145deg, var(--navy-900) 0%, var(--navy-800) 60%, #082245 100%);
  color: var(--text-white);
  padding: 95px 0 110px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 15% 25%, rgba(212, 175, 55, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(40, 75, 133, 0.25) 0%, transparent 50%),
    url('data:image/svg+xml;utf8,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><g fill="%23d4af37" fill-opacity="0.04" fill-rule="evenodd"><circle cx="2" cy="2" r="1.5"/><circle cx="22" cy="22" r="1.5"/></g></svg>');
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--gold-400);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.badge-tag::before {
  content: '★';
  font-size: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  color: var(--text-white);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.015em;
}

.hero h1 span.highlight {
  color: var(--gold-400);
  font-style: italic;
  font-weight: 400;
}

.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.8;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Page Hero (for subpages) */
.page-hero {
  background: linear-gradient(145deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--text-white);
  padding: 65px 0 75px;
  text-align: center;
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(212, 175, 55, 0.12) 0%, transparent 60%);
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}

.page-hero h1 {
  color: var(--text-white);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-bottom: 16px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
}

.breadcrumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.825rem;
  color: var(--gold-300);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.65);
}

.breadcrumbs a:hover {
  color: var(--text-white);
}

/* Stats Counter Banner */
.stats-bar-wrapper {
  margin-top: -50px;
  position: relative;
  z-index: 20;
  margin-bottom: 60px;
}

.stats-bar {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 36px 24px;
  border: 1px solid var(--border-light);
}

.stat-box {
  text-align: center;
  position: relative;
  padding: 0 16px;
}

.stat-box:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: var(--border-light);
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-value span.gold {
  color: var(--gold-text);
}

.stat-title {
  font-size: 0.825rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text-muted);
}

/* Content Sections */
.section {
  padding: 85px 0;
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-white {
  background-color: var(--bg-card);
}

.section-navy {
  background-color: var(--navy-900);
  color: var(--text-white);
}

.section-navy h2, .section-navy h3, .section-navy h4 {
  color: var(--text-white);
}

.section-navy p {
  color: rgba(255, 255, 255, 0.78);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-text);
  margin-bottom: 12px;
}

.section-navy .section-subtitle {
  color: var(--gold-400);
}

.section-title {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  margin-bottom: 18px;
  line-height: 1.2;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Welcome Box */
.welcome-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.welcome-box {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.welcome-box h2, .welcome-box h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--navy-800);
}

.welcome-box p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.quote-highlight {
  border-left: 3px solid var(--gold-500);
  padding-left: 20px;
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--navy-800);
  margin: 24px 0;
}

/* Pillars Cards Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.pillar-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pillar-card:active {
  transform: scale(0.99);
}

.pillar-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-600));
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-smooth);
}

@media (hover: hover) and (pointer: fine) {
  .pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-gold);
  }

  .pillar-card:hover::after {
    transform: scaleX(1);
  }
}

.pillar-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--navy-50);
  border: 1px solid var(--navy-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--gold-600);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.pillar-icon-badge svg {
  width: 26px;
  height: 26px;
}

.pillar-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.pillar-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  flex: 1;
}

/* Academic Pathways Cards */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}

.program-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.program-card:active {
  transform: scale(0.99);
}

@media (hover: hover) and (pointer: fine) {
  .program-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
  }
}

.program-header {
  background: var(--navy-800);
  color: var(--text-white);
  padding: 24px;
  position: relative;
}

.program-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-400);
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.program-header h3 {
  color: var(--text-white);
  font-size: 1.45rem;
}

.program-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.program-body p {
  font-size: 0.925rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.program-features {
  list-style: none;
  margin-bottom: 24px;
}

.program-features li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px dashed var(--border-light);
}

.program-features li::before {
  content: '✓';
  color: var(--gold-600);
  font-weight: bold;
}

/* Quote Section */
.quote-banner {
  background: linear-gradient(135deg, var(--navy-900) 0%, #061A38 100%);
  color: var(--text-white);
  padding: 85px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quote-banner::before {
  content: '“';
  font-family: var(--font-serif);
  font-size: 14rem;
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(212, 175, 55, 0.08);
  pointer-events: none;
  line-height: 1;
}

.quote-content {
  position: relative;
  z-index: 2;
  max-width: 840px;
  margin: 0 auto;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  font-style: italic;
  line-height: 1.45;
  margin-bottom: 24px;
  color: var(--text-white);
}

.quote-author {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-400);
  font-weight: 600;
}

/* Call to Action Box */
.cta-box {
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 100%);
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  text-align: center;
  color: var(--text-white);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-xl);
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.15) 0%, transparent 50%);
}

.cta-box-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}

.cta-box h2 {
  color: var(--text-white);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin-bottom: 16px;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

/* Filter Toolbar */
.filter-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  background: var(--bg-card);
  padding: 18px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}

.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--navy-50);
  color: var(--navy-800);
  border: 1px solid var(--border-light);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
}

.filter-btn:active {
  transform: scale(0.96);
}

@media (hover: hover) and (pointer: fine) {
  .filter-btn:hover {
    background: var(--navy-100);
  }
}

.filter-btn.active {
  background: var(--navy-800);
  color: var(--text-white);
  border-color: var(--navy-800);
}

.search-input-wrapper {
  position: relative;
  min-width: 260px;
}

.search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  font-size: 1rem; /* 16px prevents iOS Safari auto-zoom */
  background: var(--bg-body);
  color: var(--text-main);
  transition: border-color var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

.search-input:focus {
  border-color: var(--gold-500);
  background: var(--bg-card);
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  fill: var(--text-light);
  pointer-events: none;
}

/* Staff Directory Grid & Cards */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.staff-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.staff-card:active {
  transform: scale(0.99);
}

@media (hover: hover) and (pointer: fine) {
  .staff-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-gold);
  }
}

.staff-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.staff-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-600) 100%);
  color: var(--gold-400);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--gold-500);
}

.staff-identity {
  flex: 1;
  min-width: 0;
}

.staff-name {
  font-size: 1.25rem;
  color: var(--navy-800);
  margin-bottom: 4px;
}

.staff-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-text);
  line-height: 1.35;
}

.staff-badge {
  display: inline-block;
  font-size: 0.725rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--navy-50);
  color: var(--navy-700);
  margin-top: 4px;
}

.staff-details {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.staff-detail-row strong {
  color: var(--navy-800);
  font-weight: 600;
}

.staff-card:not(:has(.staff-details)) .staff-card-header {
  margin-bottom: 18px;
}

.staff-card-header + .staff-email-btn {
  margin-top: auto;
}

.staff-email-btn {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--navy-50);
  color: var(--navy-800);
  font-size: 0.825rem;
  font-weight: 600;
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
  touch-action: manipulation;
}

.staff-email-btn:active {
  opacity: 0.8;
}

@media (hover: hover) and (pointer: fine) {
  .staff-email-btn:hover {
    background: var(--navy-800);
    color: var(--text-white);
  }
}

/* Forms & Documents */
.doc-quick {
  display: flex;
  align-items: center;
  gap: 12px 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.doc-quick-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-text);
}

.doc-quick-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.doc-quick-link {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: var(--gold-100);
  border: 1px solid var(--gold-500);
  color: var(--navy-800);
  font-size: 0.85rem;
  font-weight: 600;
  touch-action: manipulation;
  transition: all var(--transition-fast);
}

.doc-quick-link:active { transform: scale(0.96); }

@media (hover: hover) and (pointer: fine) {
  .doc-quick-link:hover { background: var(--gold-500); color: var(--navy-900); }
}

.doc-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  position: sticky;
  top: calc(var(--header-h, 72px) + var(--safe-area-top, 0px) + 8px);
  z-index: 5;
}

.doc-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.doc-group {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.doc-group-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-light);
  background: var(--navy-50);
}

.doc-group-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--navy-800);
}

.doc-group-icon svg { width: 22px; height: 22px; }

.doc-group-title {
  font-size: 1.15rem;
  color: var(--navy-900);
  margin: 0 0 2px;
}

.doc-group-blurb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.doc-row + .doc-row { border-top: 1px solid var(--border-light); }

.doc-row-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  color: inherit;
  touch-action: manipulation;
  transition: background var(--transition-fast);
}

.doc-row-link:active { background: var(--navy-50); }

@media (hover: hover) and (pointer: fine) {
  .doc-row-link:hover { background: var(--navy-50); }
  .doc-row-link:hover .doc-row-title { color: var(--gold-text); }
  .doc-row-link:hover .doc-row-action { background: var(--navy-800); color: var(--text-white); border-color: var(--navy-800); }
}

.doc-row-text { min-width: 0; }

.doc-row-title {
  display: block;
  font-weight: 600;
  color: var(--navy-800);
  line-height: 1.3;
  transition: color var(--transition-fast);
}

.doc-row-desc {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.doc-row-action {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy-700);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 5px 11px;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.doc-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-card);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-md);
  color: var(--navy-800);
  font-weight: 600;
}

.doc-empty-sub {
  margin-top: 8px;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.doc-empty a { color: var(--gold-text); text-decoration: underline; }

@media (max-width: 900px) {
  .doc-groups { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .doc-toolbar { position: static; flex-direction: column; align-items: stretch; }
  .doc-row-link { padding: 12px 16px; }
  .doc-group-header { padding: 14px 16px; }
}

/* History Timeline */
.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--border-gold);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 44px;
  display: flex;
  justify-content: flex-end;
  padding-right: 36px;
  width: 50%;
}

.timeline-item:nth-child(even) {
  align-self: flex-end;
  justify-content: flex-start;
  padding-left: 36px;
  padding-right: 0;
  margin-left: 50%;
}

.timeline-node {
  position: absolute;
  top: 20px;
  right: -9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold-500);
  border: 3px solid var(--bg-card);
  box-shadow: 0 0 0 2px var(--navy-800);
  z-index: 2;
}

.timeline-item:nth-child(even) .timeline-node {
  right: auto;
  left: -9px;
}

.timeline-content {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.timeline-year {
  display: inline-block;
  background: var(--navy-800);
  color: var(--gold-400);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.timeline-content h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 0.925rem;
  line-height: 1.65;
}

/* Info Cards / Pricing Grid */
.tuition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.tuition-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.tuition-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-text);
  margin-bottom: 8px;
}

.tuition-card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.tuition-card p {
  font-size: 0.925rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy-800);
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
}

.faq-question svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
  fill: var(--gold-600);
  flex-shrink: 0;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 20px;
  display: none;
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Contact & Forms */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 36px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-method-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--navy-50);
  color: var(--gold-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-body);
  font-size: 1rem; /* 16px prevents iOS Safari auto-zoom */
  color: var(--text-main);
  transition: all var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

.form-control:focus {
  border-color: var(--gold-500);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
footer.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 80px;
  padding-bottom: max(30px, calc(30px + var(--safe-area-bottom)));
  padding-left: var(--safe-area-left);
  padding-right: var(--safe-area-right);
  border-top: 3px solid var(--gold-500);
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-col h2 {
  color: var(--text-white);
  font-size: 1.15rem;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gold-500);
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.8;
  margin: 16px 0 20px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  touch-action: manipulation;
  display: inline-block;
  padding: 6px 0; /* ~30px tall; list gap adds the rest */
}

.footer-links a:active {
  color: var(--gold-400);
}

@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover {
    color: var(--gold-400);
    padding-left: 4px;
  }
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.825rem;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 200ms; }
.delay-3 { transition-delay: 300ms; }
.delay-4 { transition-delay: 400ms; }

/* Responsive Media Queries (iPad, Tablet, & Mobile) */
/* Laptops 1280-1400px: tighten the header so nothing wraps */
@media (max-width: 1400px) {
  .nav-menu { gap: 14px; }
  .nav-link { font-size: 0.82rem; }
  .brand-name { font-size: 1.2rem; }
  .header-actions { gap: 8px; }
  .header-actions .btn { padding-left: 14px; padding-right: 14px; }
}

/* Below 1280px the full nav no longer fits: switch to the hamburger menu */
@media (max-width: 1279px) {
  .nav-menu, .header-actions .btn {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 992px) {
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .stat-box:nth-child(2)::after {
    display: none;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .welcome-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
    margin-left: 0;
  }
  .timeline-item:nth-child(even) {
    padding-left: 50px;
    margin-left: 0;
  }
  .timeline-node {
    left: 11px !important;
    right: auto !important;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .stats-bar {
    grid-template-columns: 1fr;
    padding: 24px 16px;
  }
  .stat-box:not(:last-child)::after {
    display: none;
  }
  .filter-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-input-wrapper {
    min-width: 100%;
  }
}

@media (max-width: 576px) {
  .top-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .top-banner-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-buttons .btn {
    width: 100%;
  }
}

/* ==========================================================================
   Campus Life Slideshow Component
   ========================================================================== */
.slideshow-section {
  padding-top: 0;
}

.slideshow-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--navy-900);
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 380px;
  max-height: 540px;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.slides-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(1.02);
  z-index: 1;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 19, 41, 0.05) 0%, rgba(5, 19, 41, 0.18) 45%, rgba(5, 19, 41, 0.88) 100%);
  pointer-events: none;
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 36px 44px;
  color: var(--text-white);
  z-index: 3;
  max-width: 780px;
  pointer-events: auto;
}

.slide-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--gold-500);
  color: var(--navy-900);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.slide-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.25;
}

.slide-desc {
  font-size: 0.975rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.slide-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(5, 19, 41, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.slide-arrow-btn:hover,
.slide-arrow-btn:focus-visible {
  background: var(--gold-500);
  color: var(--navy-900);
  border-color: var(--gold-500);
  transform: translateY(-50%) scale(1.08);
}
.slide-arrow-btn:focus-visible,
.slide-pause-btn:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.slide-arrow-btn.prev {
  left: 20px;
}

.slide-arrow-btn.next {
  right: 20px;
}

.slideshow-dots {
  position: absolute;
  bottom: 24px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 5;
}

.slide-dot {
  /* 24x24 tap target (WCAG 2.5.8) drawn as a 10px dot */
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  background-clip: content-box;
  border: 0;
  padding: 7px;
  box-sizing: border-box;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slide-dot:hover,
.slide-dot:focus-visible {
  background-color: rgba(255, 255, 255, 0.95);
}
.slide-dot:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 0;
}

.slide-pause-btn {
  margin-left: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(5, 19, 41, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.slide-pause-btn:hover { background: var(--gold-500); color: var(--navy-900); border-color: var(--gold-500); }
.slide-pause-btn .icon-play { display: none; }
.slide-pause-btn.is-paused .icon-play { display: block; }
.slide-pause-btn.is-paused .icon-pause { display: none; }

.slide-dot.active {
  background: var(--gold-500);
  width: 26px;
  border-radius: var(--radius-full);
}

/* Calendly Tour Card */
.calendly-tour-card {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  border-radius: var(--radius-md);
  padding: 28px;
  color: var(--text-white);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-md);
  margin-top: 24px;
}

.calendly-tour-card h3 {
  color: #ffffff;
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.calendly-tour-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.925rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.calendly-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-400);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .slideshow-wrapper {
    min-height: 320px;
    border-radius: var(--radius-md);
  }
  .slide-content {
    padding: 20px 20px 48px 20px;
  }
  .slide-title {
    font-size: 1.3rem;
  }
  .slide-desc {
    font-size: 0.85rem;
  }
  .slide-arrow-btn {
    width: 36px;
    height: 36px;
  }
  .slide-arrow-btn.prev {
    left: 10px;
  }
  .slide-arrow-btn.next {
    right: 10px;
  }
  .slideshow-dots {
    bottom: 14px;
    right: 18px;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .slide {
    transition: opacity 0.1s linear !important;
    transform: none !important;
  }
}

/* Print Optimization for macOS / iOS AirPrint */
@media print {
  .top-banner,
  .site-header,
  .mobile-toggle,
  .mobile-drawer,
  .mobile-backdrop,
  .cta-box,
  .filter-toolbar,
  .doc-toolbar,
  .doc-quick,
  .slideshow-section {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .container {
    width: 100% !important;
    max-width: 100% !important;
  }
  .section-navy {
    background: #fff !important;
    color: #000 !important;
  }
  .section-navy h2, .section-navy h3, .section-navy h4, .section-navy p {
    color: #000 !important;
  }
}
/* ── Contact page: admissions pointer card ───────────────────────────── */
.admissions-pointer {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  border-radius: var(--radius-md);
  padding: 32px;
  color: var(--text-white);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-md);
}
.admissions-pointer-steps {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
  display: grid;
  gap: 16px;
}
.admissions-pointer-steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.admissions-pointer-steps .step-num {
  flex: 0 0 32px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gold-400);
  color: var(--navy-900);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}
.admissions-pointer-steps strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 2px;
}
.admissions-pointer-steps span:not(.step-num) {
  color: rgba(255,255,255,0.75);
  font-size: 0.925rem;
}
.admissions-pointer-link {
  display: block;
  text-align: center;
  margin-top: 14px;
  color: var(--gold-400);
  font-weight: 600;
  font-size: 0.95rem;
}
.admissions-pointer-link:hover { color: #fff; }

/* ── Admissions roadmap: four equal steps on wide screens ────────────── */
@media (min-width: 1100px) {
  .pillars-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .roadmap-grid .pillar-card { padding: 28px 24px; }
  .roadmap-grid .pillar-card h3 { font-size: 1.2rem; }
  .roadmap-grid .pillar-card p { font-size: 0.925rem; }
}
.roadmap-grid .pillar-card { display: flex; flex-direction: column; }
.roadmap-grid .roadmap-link {
  margin-top: auto;
  padding-top: 18px;
  align-self: flex-start;
  color: var(--navy-700);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--gold-500);
  transition: color 0.2s;
}
.roadmap-grid .roadmap-link:hover { color: var(--gold-text); }
.roadmap-grid .roadmap-note { font-size: 0.9rem; margin-top: 10px; }
.roadmap-grid .roadmap-note a { text-decoration: underline; text-underline-offset: 3px; }

/* ── FACTS inquiry form embed ─────────────────────────────────────────── */
.inquiry-embed-box {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}
.inquiry-embed {
  display: block;
  width: 100%;
  height: 1850px;   /* FACTS form measured at 850px wide, plus margin */
  border: 0;
  border-radius: var(--radius-sm);
  background: #fff;
}
.inquiry-embed-fallback {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}
.inquiry-embed-fallback a { color: var(--navy-800); font-weight: 600; }
@media (max-width: 960px) {
  .inquiry-embed { height: 2350px; }  /* form switches to a single column */
}
@media (max-width: 600px) {
  .inquiry-embed-box { padding: 12px; }
  .inquiry-embed { height: 2650px; }
}

/* ── Five-card pillar grids: 3 + 2 centered on wide screens ──────────── */
@media (min-width: 1100px) {
  .pillars-grid-5 { grid-template-columns: repeat(6, 1fr); }
  .pillars-grid-5 > .pillar-card { grid-column: span 2; }
  .pillars-grid-5 > .pillar-card:nth-child(4) { grid-column: 2 / span 2; }
  .pillars-grid-5 > .pillar-card:nth-child(5) { grid-column: 4 / span 2; }
}

/* ── Mobile overflow guards ───────────────────────────────────────────── */
.welcome-grid > *,
.contact-layout > *,
.pillars-grid > * { min-width: 0; }
a[href^="mailto:"] { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .btn { white-space: normal; text-align: center; line-height: 1.3; max-width: 100%; }
}

/* ── Home: five-pillar teaser strip ──────────────────────────────────── */
.pillar-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.pillar-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  color: var(--navy-800);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pillar-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-400);
}
.pillar-tile-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--bg-alt, #f3efe7);
  color: var(--gold-500, #9E7D3B);
  display: flex; align-items: center; justify-content: center;
}
.pillar-tile-icon svg { width: 26px; height: 26px; }
.pillar-tile-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
}
@media (max-width: 1000px) { .pillar-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .pillar-strip { grid-template-columns: repeat(2, 1fr); gap: 12px; } .pillar-tile { padding: 20px 12px; } }

/* ── Program cards: equal header height, lists aligned, button at bottom ── */
.program-header { min-height: 148px; display: flex; flex-direction: column; justify-content: flex-start; }
.program-body p { min-height: 8.7em; }          /* ~6 lines at current size */
.program-body .program-features { flex: 1; }
.program-body .btn { margin-top: auto; }
@media (max-width: 900px) {
  .program-header { min-height: 0; }
  .program-body p { min-height: 0; }
}

/* ---- Sticky on-page sub-navigation (Admissions, Tuition) ---- */
.page-subnav {
  position: sticky;
  top: calc(var(--header-h, 72px) + var(--safe-area-top, 0px));
  z-index: 900;
  background: rgba(10, 29, 55, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 18px rgba(5, 19, 41, 0.18);
}
.page-subnav-links {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 10px;
  padding: 10px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.page-subnav-links::-webkit-scrollbar { display: none; }
.page-subnav-links a {
  flex: 0 0 auto;
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.page-subnav-links a:hover,
.page-subnav-links a:focus-visible,
.page-subnav-links a.active {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--navy-900);
}
/* Anchors need to clear header + sub-nav */
body.has-subnav [id] {
  scroll-margin-top: calc(var(--header-h, 72px) + 64px + var(--safe-area-top, 0px));
}

/* ---- Tuition pointer card ---- */
.tuition-pointer-section { padding-top: 48px; }
.tuition-pointer {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  background: linear-gradient(145deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--text-white);
  border-radius: var(--radius-md);
  padding: 44px 48px;
  box-shadow: var(--shadow-sm);
}
.tuition-pointer .section-subtitle { color: var(--gold-400); }
.tuition-pointer .section-title { color: var(--text-white); margin-bottom: 14px; }
.tuition-pointer p { color: rgba(255, 255, 255, 0.82); line-height: 1.65; margin: 0; }
.tuition-pointer-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.tuition-pointer-actions .btn { width: 100%; text-align: center; }
.tuition-pointer-pdf {
  color: var(--gold-300);
  font-weight: 600;
  font-size: 0.925rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tuition-pointer-pdf:hover { color: #fff; }

/* ---- Fee table ---- */
.fee-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  background: var(--bg-card);
  -webkit-overflow-scrolling: touch;
}
.fee-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.975rem;
}
.fee-table th, .fee-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}
.fee-table thead th {
  background: var(--navy-800);
  color: var(--text-white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fee-table thead th:not(:first-child), .fee-table td { text-align: right; }
.fee-table tbody th { font-weight: 600; color: var(--navy-800); }
.fee-table tbody th small { display: block; font-weight: 400; font-size: 0.8rem; color: var(--text-muted, #6b7280); }
.fee-table td { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--navy-900); }
.fee-table tbody tr:nth-child(even) td, .fee-table tbody tr:nth-child(even) th { background: var(--gold-50); }
.fee-table tbody tr:last-child th, .fee-table tbody tr:last-child td { border-bottom: none; }
.fee-table-reg td { text-align: right; font-weight: 500; }
.fee-na { color: var(--text-muted, #9ca3af); font-weight: 400; }
.fee-note {
  max-width: 760px;
  margin: 18px auto 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted, #6b7280);
}
.fee-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

/* ---- Fee list (additional costs box) ---- */
.fee-list { list-style: none; padding: 0; margin: 0; }
.fee-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-light);
  font-size: 0.925rem;
}
.fee-list li:last-child { border-bottom: none; }
.fee-list small { display: block; font-size: 0.78rem; color: var(--text-muted, #6b7280); }
.fee-list strong { white-space: nowrap; color: var(--navy-800); }

@media (max-width: 768px) {
  .tuition-pointer { grid-template-columns: 1fr; padding: 32px 24px; gap: 24px; }
  .page-subnav-links { justify-content: flex-start; padding: 8px 0; }
  .page-subnav-links a { padding: 7px 14px; font-size: 0.8rem; }
}

/* ---- Compact tuition band (Admissions) ---- */
.tuition-band {
  background: linear-gradient(90deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--text-white);
}
.tuition-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  flex-wrap: wrap;
}
.tuition-band p { margin: 0; color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; line-height: 1.5; flex: 1 1 420px; }
.tuition-band p strong { color: var(--gold-400); font-weight: 700; }
.tuition-band-actions { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.tuition-band-pdf { color: var(--gold-300); font-weight: 600; font-size: 0.875rem; text-decoration: underline; text-underline-offset: 3px; white-space: normal; text-align: center; line-height: 1.4; }
.tuition-band-pdf:hover { color: #fff; }

/* ---- Tour / Apply step panels (Admissions) ---- */
.steps-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.step-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.step-panel .section-title { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 0; }
.step-panel p { margin: 0; line-height: 1.65; }
.step-panel .btn { margin-top: 6px; }
.step-panel .roadmap-note { font-size: 0.875rem; margin-top: 4px; }
.step-panel .roadmap-note a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 768px) {
  .tuition-band-actions { width: 100%; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
  .step-panel { padding: 28px 22px; }
}

/* ==========================================================================
   Site-wide announcement / closure banner (#siteAlert, fed by announcement.json)
   ========================================================================== */
.site-alert {
  padding-top: max(10px, var(--safe-area-top));
  padding-bottom: 10px;
  padding-left: max(0px, var(--safe-area-left));
  padding-right: max(0px, var(--safe-area-right));
  font-size: 0.95rem;
  line-height: 1.45;
  background: var(--navy-100);
  color: var(--navy-900);
  border-bottom: 3px solid var(--navy-600);
}
.site-alert[hidden] { display: none; }
.site-alert--warning { background: #FFF4D6; color: #4A3608; border-bottom-color: #B58D22; }
.site-alert--closure { background: #8B1C1C; color: #FFFFFF; border-bottom-color: #5E0F0F; }
.site-alert-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.site-alert-icon { flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; fill: currentColor; }
.site-alert-body { flex: 1; min-width: 0; }
.site-alert-title { display: block; font-weight: 700; margin-bottom: 2px; }
.site-alert-link {
  display: inline-block;
  margin-top: 4px;
  font-weight: 600;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  min-height: 24px;
}
.site-alert-link:hover, .site-alert-link:focus-visible { text-decoration-thickness: 2px; }
.site-alert-dismiss {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin: -10px -10px -10px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: inherit;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}
.site-alert-dismiss:hover { background: rgba(0, 0, 0, 0.08); }
.site-alert--closure .site-alert-dismiss:hover { background: rgba(255, 255, 255, 0.15); }
.site-alert :focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }

/* Skip link (keyboard / screen-reader users) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 3000;
  padding: 12px 18px;
  background: var(--navy-800);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: top 0.15s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: calc(16px + var(--safe-area-top, 0px));
  outline: 3px solid var(--gold-500, #d4af37);
  outline-offset: 2px;
}
#main-content:focus {
  outline: none;
}

/* Visually hidden, still read by screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Legal pages (privacy policy) ---------- */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.75;
  color: var(--text-main);
}
.legal-content h2 {
  font-size: 1.35rem;
  color: var(--navy-800);
  margin: 40px 0 12px;
}
.legal-content h2:first-of-type { margin-top: 24px; }
.legal-content p,
.legal-content ul { margin-bottom: 16px; }
.legal-content ul { padding-left: 24px; }
.legal-content li { margin-bottom: 10px; }
.legal-content a { color: var(--navy-600); text-decoration: underline; }
.legal-meta { color: var(--text-muted); font-size: 0.95rem; }
.legal-address { font-style: normal; margin-bottom: 16px; }
.legal-draft-notice {
  background: var(--gold-100);
  border: 1px solid var(--gold-500);
  border-left: 4px solid var(--gold-600);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  color: var(--gold-text);
}

/* Visible keyboard focus on search and form fields (replaces the old outline:none) */
.search-input:focus-visible,
.form-control:focus-visible {
  outline: 3px solid var(--navy-600);
  outline-offset: 2px;
}

/* Fee table: hint shown only when the table can scroll sideways (narrow screens) */
.fee-table-hint {
  display: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 8px;
}
@media (max-width: 600px) {
  .fee-table-hint { display: block; }
}
.fee-table-wrap:focus-visible {
  outline: 3px solid var(--navy-600);
  outline-offset: 2px;
}

/* Footer bottom row links: comfortable tap height on phones */
.footer-bottom a {
  display: inline-block;
  padding: 6px 0;
}

.footer-translate { font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); }

.slide picture { display: contents; }
