@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideShow 12s infinite ease-in-out;
}

.slide:nth-child(1) {
    animation-delay: 0s;
}

.slide:nth-child(2) {
    animation-delay: 4s;
}

.slide:nth-child(3) {
    animation-delay: 8s;
}

/* Keyframes for sliding/fading background images */
@keyframes slideShow {
    0% {
        opacity: 0;
    }
    8% {
        opacity: 1;
    }
    25% {
        opacity: 1;
    }
    33% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

.hero > .hero-content {
    position: relative; 
    z-index: 2;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for readability */
    padding: 3rem 2rem;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero > .hero-content h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.highlight {
    color: #FF8C00; /* Orange for "Leaders" to match the design */
}

.hero > .hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero .apply-btn, .hero .learn-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero .apply-btn {
    background-color: #FF8C00; /* Orange */
    color: white;
}

.hero .learn-btn {
    background-color: #4169E1; /* Blue */
    color: white;
}

.hero .apply-btn:hover, .hero .learn-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero > .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero > .hero-content p {
        font-size: 1rem;
    }
    
    .buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero .apply-btn, .hero .learn-btn {
        width: 100%;
        max-width: 250px;
    }
}

/* Board of Governors Section */
.board-of-governors {
    padding: 80px 40px;
    background-color: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a2332;
    margin-bottom: 8px;
}

.section-header p {
    font-size: 0.92rem;
    color: #7a869a;
}

/* Grid Layout */
.governors-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

/* Individual Card */
.governor-card {
    text-align: center;
}

.governor-card img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 16px;
}

/* Name */
.governor-card h4 {
    font-size: 0.96rem;
    font-weight: 600;
    color: #1a2332;
    margin-bottom: 4px;
}

/* Role */
.governor-card span {
    display: block;
    font-size: 0.84rem;
    font-weight: 500;
    color: #2563eb;
    margin-bottom: 12px;
}

/* Description */
.governor-card p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #6b7280;
    max-width: 240px;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .governors-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .board-of-governors {
        padding: 48px 16px;
    }

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

/* Our Commitment Section */
.our-commitment {
    padding: clamp(48px, 8vw, 90px) clamp(16px, 5vw, 40px);
    background-color: #ffffff;
    text-align: center;
}

.commitment-header {
    max-width: 780px;
    margin: 0 auto 60px auto;
}

.commitment-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a2332;
    margin-bottom: 12px;
}

.commitment-header p {
    font-size: 0.92rem;
    line-height: 1.8;
    color: #6b7280;
}

/* Commitment Items */
.commitment-items {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 80px;
}

.commitment-item {
    max-width: 220px;
}

.commitment-item .icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px auto;
    background-color: #1f3a5f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.commitment-item .icon img {
    width: 22px;
    height: 22px;
}

.commitment-item h4 {
    font-size: 0.96rem;
    font-weight: 600;
    color: #1a2332;
    margin-bottom: 6px;
}

.commitment-item p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
    .commitment-items {
        flex-direction: column;
        gap: 40px;
    }
}

    
.footer {
    background-color: #1a2332;
    color: #ffffff;
    padding: 60px 0 0 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 40px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-about .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-about .footer-logo img {
    width: 50px;
    height: 50px;
}

.footer-about .footer-logo h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.footer-about .tagline {
    font-size: 0.88rem;
    color: #a0aec0;
}

.footer-description {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #cbd5e0;
    margin-bottom: 24px;
    max-width: 400px;
}

.footer.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: #2d3748;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s;
}

.social-icon:hover {
    background-color: #4a5568;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffffff;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 0.92rem;
    color: #cbd5e0;
}

.contact-info i {
    color: #FF8C00;
    font-size: 16px;
    width: 20px;
    flex-shrink: 0;
}

.contact-info span {
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.copyright {
    font-size: 0.88rem;
    color: #a0aec0;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: #ffffff;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px 40px 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 24px 20px;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 12px;
    }
}

/* === Layout System: Global Header/Nav/Footer === */
:root {
  --blue-900: #0e1f3d;
  --blue-700: #123a72;
  --blue-600: #1f4a8a;
  --blue-100: #e6eef9;
  --orange-500: #f28c28;
  --orange-600: #e67610;
  --ink-900: #101828;
  --ink-700: #344054;
  --ink-500: #667085;
  --white: #ffffff;
  --shadow-soft: 0 10px 30px rgba(16, 24, 40, 0.08);
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 18px;
  --nav-height: 60px;
  --content-max: 1200px;
}

body {
  font-family: "Avenir Next", "Optima", "Segoe UI", sans-serif;
  color: var(--ink-900);
  background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  color: var(--blue-900);
  letter-spacing: 0.2px;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 0;
  padding: 10px 14px;
  background: var(--blue-900);
  color: var(--white);
  border-radius: var(--radius-s);
  text-decoration: none;
  z-index: 2000;
  /* Hidden above the page by its own height, so it never peeks out */
  transform: translateY(calc(-100% - 4px));
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(12px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1500;
  background: var(--white);
  border-bottom: 1px solid #eef1f6;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.07);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1d3fa3;
  white-space: nowrap;
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

/* Mobile nav overlay � full screen below header */
.site-nav {
  position: fixed;
  inset: 60px 0 0 0;
  background: var(--white);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease;
  z-index: 1200;
}

body.nav-open .site-nav {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 8px 0 env(safe-area-inset-bottom, 24px);
}

.nav-item {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #f0f2f6;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  color: #1a2332;
  min-height: 52px;
}

.nav-link:active {
  background: #f3f6fb;
  color: #1d3fa3;
}

/* Hamburger button */
.nav-toggle {
  border: 1.5px solid #e6ecf5;
  background: var(--white);
  color: #1d3fa3;
  padding: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}


.nav-toggle-bars {
  width: 22px;
  height: 16px;
  display: grid;
  gap: 4px;
}

.nav-toggle-bars span {
  height: 2px;
  background: #1d3fa3;
  border-radius: 999px;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Animate hamburger to X when open */
body.nav-open .nav-toggle-bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
body.nav-open .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.submenu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 0 20px 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  color: #6b7280;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}

.submenu-indicator {
  font-size: 0.9rem;
  color: #9ca3af;
  transition: transform 0.2s ease;
}

.nav-item.submenu-open .submenu-indicator {
  transform: rotate(180deg);
}

.nav-item.has-submenu {
  position: relative;
}

/* Parent menu items open their dropdown instead of navigating */
.submenu-trigger {
  width: 100%;
  justify-content: space-between;
  gap: 6px;
  border: 0;
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.submenu-trigger .submenu-indicator { font-size: 0.7em; }

@media (min-width: 1100px) {
  .submenu-trigger { width: auto; }
  .nav-item.has-submenu:hover .submenu-indicator { transform: rotate(180deg); }
}

.submenu {
  list-style: none;
  position: static;
  background: #f8fafc;
  border-top: 1px solid #eef1f6;
  padding: 4px 0 8px;
  display: none;
}

.nav-item.submenu-open .submenu {
  display: block;
}

.submenu a {
  display: block;
  padding: 13px 20px 13px 32px;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.97rem;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.submenu a:active {
  color: #1d3fa3;
  background: #eef3fb;
}

/* Header right side */
.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Hide social icons on mobile � too cramped */
.social-links {
  display: none;
}

.social-link {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #4b5563;
  text-decoration: none;
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 8px;
  background: #f47c20;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.apply-btn:active {
  background: #d96a10;
}

/* -- Desktop nav (= 960px) -- */
@media (min-width: 1100px) {
  .header-inner {
    padding: 0 24px;
    height: 70px;
    gap: 24px;
  }

  .brand-logo { width: 44px; height: 44px; }
  .brand-title { font-size: 1.2rem; }

  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    inset: auto;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    overflow: visible;
    flex: 1;
    display: flex;
    justify-content: center;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 0;
  }

  .nav-item {
    border-bottom: none;
    flex-direction: row;
    align-items: center;
  }

  .nav-link {
    padding: 8px 10px;
    font-size: 0.95rem;
    min-height: auto;
    border-radius: 6px;
  }

  .nav-link:hover { color: #1d3fa3; background: #f3f6fb; }

  .submenu-toggle { display: none; }

  .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--white);
    border: 1px solid #e6ecf5;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    padding: 22px 0 10px;
    z-index: 20;
  }

  .submenu a {
    padding: 10px 16px 10px 20px;
    min-height: auto;
    display: block;
    font-weight: 600;
    white-space: nowrap;
  }

  .submenu a:hover { color: #1d3fa3; background: #f3f6fb; }

  .nav-item.has-submenu:hover .submenu,
  .nav-item.has-submenu:focus-within .submenu,
  .nav-item.submenu-open .submenu {
    display: block;
  }

  .social-links { display: inline-flex; gap: 10px; }

  .apply-btn { padding: 10px 20px; font-size: 0.95rem; border-radius: 10px; }
}

.site-main {
  min-height: 60vh;
  padding: 0 0 48px;
}

.site-footer {
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: #e5e7eb;
  padding: 48px 0 env(safe-area-inset-bottom, 24px);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-top {
  display: grid;
  gap: 36px;
}

.footer-branding {
  display: grid;
  gap: 14px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.footer-brand-title {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.footer-brand-subtitle {
  display: block;
  font-size: 0.87rem;
  color: #94a3b8;
  letter-spacing: 0.3px;
}

.footer-description {
  max-width: 360px;
  color: #cbd5f5;
  line-height: 1.7;
  font-size: 0.94rem;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.footer-social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-links-col h3,
.footer-contact-col h3 {
  font-size: 0.97rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: #cbd5f5;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.94rem;
}

.footer-links a:hover { color: #ffffff; }

.footer-contact li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  color: #cbd5f5;
  font-size: 0.94rem;
}

.footer-contact a { color: #cbd5f5; text-decoration: none; }
.footer-contact a:hover { color: #ffffff; }

.contact-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f97316;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
  color: #94a3b8;
  text-align: center;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.footer-legal a { color: #94a3b8; text-decoration: none; }
.footer-legal a:hover { color: #ffffff; }

@media (min-width: 900px) {
  .site-footer { padding: 60px 0 28px; }

  .footer-top {
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: start;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .footer-legal { justify-content: flex-end; }
}
/* === End Layout System === */

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation-duration: 0.001ms !important;
  }
}

/* === UI Modules: Tabs, Accordions, Forms, Lightbox, Filtering === */
.tabs {
  display: grid;
  gap: 16px;
}

.tabs [role="tablist"] {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid var(--blue-100);
  padding-bottom: 8px;
}

.tabs [role="tab"] {
  appearance: none;
  border: 1px solid var(--blue-100);
  background: var(--white);
  color: var(--ink-700);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.tabs [role="tab"][aria-selected="true"] {
  background: var(--blue-700);
  color: var(--white);
  border-color: var(--blue-700);
}

.tabs [role="tabpanel"] {
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-m);
  padding: 18px;
}

.accordion {
  display: grid;
  gap: 12px;
}

.accordion button[data-accordion-trigger] {
  width: 100%;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-m);
  padding: 14px 16px;
  font-weight: 600;
  color: var(--ink-900);
  cursor: pointer;
}

.accordion button[data-accordion-trigger][aria-expanded="true"] {
  border-color: var(--blue-600);
  box-shadow: var(--shadow-soft);
}

.accordion .accordion-panel {
  padding: 12px 16px 20px;
  color: var(--ink-700);
}

.field-error {
  color: var(--orange-600);
  font-size: 0.9rem;
  margin-top: 6px;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: var(--orange-600);
  outline: 2px solid rgba(242, 140, 40, 0.25);
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 24, 44, 0.85);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 2000;
}

.lightbox-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  width: min(920px, 90vw);
  background: var(--white);
  border-radius: var(--radius-l);
  padding: 24px;
  display: grid;
  gap: 16px;
  box-shadow: var(--shadow-soft);
}

.lightbox-content figure {
  margin: 0;
  display: grid;
  gap: 10px;
}

.lightbox-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-m);
}

.lightbox-caption {
  color: var(--ink-700);
  font-size: 0.94rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 16px;
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  font-size: 1.2rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--blue-700);
}

.lightbox-close {
  right: 16px;
}

.lightbox-prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-controls [data-filter-value] {
  border: 1px solid var(--blue-100);
  background: var(--white);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-700);
}

.filter-controls [data-filter-value][aria-pressed="true"] {
  background: var(--blue-600);
  color: var(--white);
  border-color: var(--blue-600);
}
/* === End UI Modules === */


/* === Homepage Hero, Orgs, Testimonials === */
.homepage-hero {
  position: relative;
  min-height: calc(100svh - 60px);
  min-height: calc(100vh - 60px);
  display: grid;
  align-items: center;
  overflow: hidden;
  /* No background colour — overlay is handled by ::before */
  color: var(--white);
}

/* Left-side overlay only — fades to transparent so the photo shows on the right */
.homepage-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(8, 14, 30, 0.88) 0%,
    rgba(8, 14, 30, 0.75) 30%,
    rgba(8, 14, 30, 0.35) 52%,
    rgba(8, 14, 30, 0.0)  65%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

.hero-slide::after {
  content: none; /* overlay now handled by .homepage-hero::before */
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 24px;
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
  padding: clamp(60px, 10vw, 120px) clamp(20px, 5vw, 64px) clamp(80px, 12vw, 120px);
}

.hero-intro {
  display: grid;
  gap: 14px;
  text-align: left;
  max-width: 520px; /* keep text in the left half */
}

.hero-tag {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

.hero-intro h1 {
  font-family: "Archivo Black", "Impact", "Arial Black", sans-serif;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  font-weight: 800;
  text-transform: none;
  letter-spacing: -0.01em;
}

.hero-accent {
  color: #f5a623; /* gold accent matching the reference */
}

.hero-subtitle {
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: #f5a623;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-lede {
  font-size: clamp(0.95rem, 3vw, 1rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 460px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  font-size: 0.97rem;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--orange-500);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(242, 140, 40, 0.35);
}

.hero-cta {
  background: #1d3fa3;
  color: #fff;
  border-radius: 6px;
  padding: 12px 28px;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 2px solid #1d3fa3;
}

.hero-cta-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-cta-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn:active { transform: scale(0.97); }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  display: none;
  place-items: center;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 2;
}

.hero-arrow--prev { left: clamp(16px, 4vw, 40px); }
.hero-arrow--next { right: clamp(16px, 4vw, 40px); }

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 5vw, 36px);
  transform: translateX(-50%);
  display: inline-flex;
  gap: 10px;
  z-index: 2;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  background: #e11d2e;
  border-color: #e11d2e;
  transform: scale(1.25);
}

.orgs-section,
.testimonials {
  padding: clamp(48px, 8vw, 90px) clamp(16px, 5vw, 60px);
  background: #f7f9fc;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--ink-900);
  margin-bottom: 8px;
}

.section-head p {
  color: var(--ink-500);
  font-size: 0.97rem;
}

.orgs-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.orgs-track {
  display: grid;
  grid-auto-flow: column;
  /* exactly 4 visible: calc((100% - 3 gaps) / 4) */
  grid-auto-columns: calc((100% - 3 * 14px) / 4);
  gap: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.orgs-track::-webkit-scrollbar { display: none; }

.org-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e6ecf5;
  overflow: hidden;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  aspect-ratio: 3 / 2;
}

.org-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* On smaller screens show 2 */
@media (max-width: 640px) {
  .orgs-track {
    grid-auto-columns: calc((100% - 14px) / 2);
  }
}

.carousel-btn {
  background: var(--white);
  border: 1px solid var(--blue-100);
  color: var(--blue-700);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: var(--shadow-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.testimonials { background: #efefef; }

.testimonial-carousel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-aside h2 {
  font-family: "Avenir Next", "Optima", "Segoe UI", sans-serif;
  color: #0f172a;
  font-size: clamp(1.6rem, 5vw, 3.2rem);
  line-height: 1.05;
  margin-bottom: 12px;
}

.testimonial-aside h2 strong { font-weight: 800; color: #020617; }

.testimonial-aside p {
  color: #374151;
  font-size: 0.97rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.testimonial-nav { display: flex; gap: 12px; }

.testimonial-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.testimonial-track {
  position: relative;
  min-height: 300px;
}

.testimonial {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  display: grid;
  align-content: start;
}

.testimonial::before {
  content: "\201C";
  color: #1e1b8d;
  font-size: 4rem;
  line-height: 0.8;
  margin-bottom: 6px;
}

.testimonial.is-active {
  opacity: 1;
  transform: translateY(0);
}

.testimonial p {
  color: #111827;
  font-family: "Avenir Next", "Optima", "Segoe UI", sans-serif;
  font-size: clamp(1.2rem, 4vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.testimonial-meta {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #d1d5db;
  flex-shrink: 0;
}

.testimonial-meta .name {
  display: block;
  font-weight: 700;
  color: #111827;
  font-size: 1rem;
}

.testimonial-meta .role {
  display: block;
  color: #4b5563;
  margin-top: 2px;
  font-size: 0.92rem;
}

.testimonial-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.testimonial-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: #d1d5db;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease, background 0.2s ease;
}

.testimonial-dots button.is-active {
  background: #1e1b8d;
  transform: scale(1.3);
}

@media (min-width: 900px) {
  .homepage-hero {
    min-height: calc(100vh - 70px);
  }

  .hero-arrow { display: grid; }

  .testimonial-carousel {
    grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1fr);
    gap: clamp(30px, 6vw, 90px);
  }

  .testimonial-track { min-height: 360px; }
  .testimonial p { font-size: clamp(1.8rem, 3.5vw, 3.2rem); }
}
/* === End Homepage === */


/* === Governors Team Grid === */
.gov-team {
  background: #eeeeee;
  padding: clamp(56px, 7vw, 90px) clamp(18px, 4vw, 44px);
}

.gov-team-header {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.gov-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.86rem;
  color: #4b5563;
  font-weight: 700;
  margin-bottom: 10px;
}

.gov-team-header h1 {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: #1f2937;
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  line-height: 1.1;
  margin-bottom: 14px;
}

.gov-intro {
  color: #6b7280;
  max-width: 620px;
  margin: 0 auto;
}

.gov-team-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gov-member-card {
  border: 1px solid #d8dbe0;
  background: #f3f4f6;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gov-member-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1);
}

.gov-member-photo {
  height: 210px;
  overflow: hidden;
}

.gov-member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.gov-member-body {
  padding: 14px 14px 12px;
}

.gov-member-body h2 {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.03rem;
  color: #202327;
  margin: 0 0 2px;
}

.gov-role {
  color: #5d6672;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.gov-summary {
  color: #6b7280;
  font-size: 0.91rem;
  line-height: 1.55;
  min-height: 58px;
}

.gov-socials {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.gov-socials a {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #cbd2da;
  color: #5e6772;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gov-socials svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.gov-bg-blue { background: #f3f4f6; }
.gov-bg-peach { background: #f3f4f6; }
.gov-bg-blue { background: #f3f4f6; }
.gov-bg-peach { background: #f3f4f6; }
.gov-bg-gold { background: #f3f4f6; }
.gov-bg-lilac { background: #f3f4f6; }
.gov-bg-rose { background: #f3f4f6; }
.gov-bg-violet { background: #f3f4f6; }
.gov-bg-mint { background: #f3f4f6; }
.gov-bg-indigo { background: #f3f4f6; }

@media (min-width: 900px) {
  .gov-team-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

  .gov-member-photo {
    height: 250px;
  }
}
/* === End Governors Team Grid === */


/* === Proprietress Page === */
.prop-banner {
  background: linear-gradient(135deg, #0e1f3d 0%, #1d3fa3 100%);
  color: #fff;
  text-align: center;
  padding: clamp(48px, 8vw, 80px) 20px clamp(40px, 6vw, 64px);
}

.prop-banner-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
}

.prop-banner-title {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin: 0;
}

/* Two-column layout */
.prop-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 48px);
  display: grid;
  grid-template-columns: 1fr;   /* mobile: single column */
  gap: 40px;
  align-items: start;
}

@media (min-width: 768px) {
  .prop-section {
    grid-template-columns: 340px 1fr;
    gap: clamp(40px, 5vw, 72px);
  }
}

/* Photo column */
.prop-photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.prop-photo-wrap {
  width: 100%;
  max-width: 340px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(14, 31, 61, 0.18);
  background: #0e1f3d;
  /* lit-screen effect: bright centre, dark vignette edges */
  position: relative;
}

.prop-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 40%,
    rgba(255,255,255,0.08) 0%,
    rgba(0,0,0,0.28) 100%
  );
  pointer-events: none;
  border-radius: inherit;
}

.prop-photo {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  filter: brightness(1.06) contrast(1.04);
}

.prop-name-card {
  padding: 16px 20px 18px;
  text-align: center;
  background: #0e1f3d;
}

.prop-name {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

.prop-title-label {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  margin-top: 3px;
}

/* Text column */
.prop-content-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.prop-content-col p {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.8;
  color: #374151;
}

.prop-salutation {
  font-weight: 600;
  color: #1d3fa3 !important;
  font-size: clamp(1rem, 2.2vw, 1.1rem) !important;
}

.prop-closing {
  margin-top: 8px;
  font-style: italic;
  color: #4b5563 !important;
}

.prop-signature {
  border-left: 3px solid #1d3fa3;
  padding-left: 16px;
  margin-top: 4px;
}

.prop-sig-name {
  font-weight: 700;
  font-size: 1rem;
  color: #0e1f3d;
  margin: 0 0 2px;
}

.prop-sig-role {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0;
}
/* === End Proprietress Page === */


/* === Prefects Page === */
.prf-banner {
  background-image: linear-gradient(rgba(7, 20, 48, 0.7), rgba(14, 31, 61, 0.76)), url('../images/banner.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  text-align: center;
  padding: clamp(48px, 8vw, 80px) 20px clamp(40px, 6vw, 64px);
}

.prf-banner-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
}

.prf-banner-title {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.prf-intro {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 56px) clamp(20px, 5vw, 48px);
  text-align: center;
}

.prf-intro p {
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  line-height: 1.8;
  color: #4b5563;
}

/* Content wrapper */
.prf-content {
  background: #eeeeee;
  padding: 0 clamp(18px, 4vw, 44px) clamp(40px, 5vw, 60px);
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

/* Shared grid base */
.prf-grid {
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  gap: 16px;
}

/* 4 columns grid (rows 1–2) */
.prf-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* 6 columns grid (rows 3–4) */
.prf-grid--six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

/* Responsive: 4-col grid */
@media (max-width: 900px) {
  .prf-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* Responsive: 6-col grid */
@media (max-width: 1100px) {
  .prf-grid--six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .prf-grid--six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 400px) {
  .prf-grid--six {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
}

/* Card */
.prf-card {
  border: 1px solid #d8dbe0;
  background: #f3f4f6;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prf-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1);
}

/* Photo */
.prf-photo {
  height: 210px;
  overflow: hidden;
  background: #e5e7eb;
}

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

/* Card body */
.prf-body {
  padding: 12px 14px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.prf-position {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-700);
  margin-bottom: 3px;
}

.prf-name {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.99rem;
  font-weight: 700;
  color: #202327;
  margin: 0 0 3px;
  line-height: 1.25;
}

.prf-class {
  font-size: 0.87rem;
  color: var(--ink-500);
  margin-bottom: 0;
}

.prf-quote {
  font-size: 0.88rem;
  font-style: italic;
  color: #6b7280;
  line-height: 1.5;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid #e5e7eb;
}

.prf-quote::before {
  content: "\201C";
}

.prf-quote::after {
  content: "\201D";
}

/* Entrance animation */
.prf-card {
  opacity: 0;
  transform: translateY(16px);
}

.prf-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

@media (prefers-reduced-motion: reduce) {
  .prf-card {
    opacity: 1;
    transform: none;
  }

  .prf-card.is-visible {
    transition: none;
  }
}

@media (max-width: 480px) {
  .prf-photo {
    height: 240px;
  }
}
/* === Prefects Page === */
.prf-banner {
  background-image: linear-gradient(rgba(7, 20, 48, 0.7), rgba(14, 31, 61, 0.76)), url('../images/banner.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  text-align: center;
  padding: clamp(48px, 8vw, 80px) 20px clamp(40px, 6vw, 64px);
}

.prf-banner-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
}

.prf-banner-title {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.prf-intro {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 56px) clamp(20px, 5vw, 48px);
  text-align: center;
}

.prf-intro p {
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  line-height: 1.8;
  color: #4b5563;
}

/* Content wrapper */
.prf-content {
  background: #eeeeee;
  padding: clamp(30px, 4vw, 50px) clamp(18px, 4vw, 44px) clamp(40px, 5vw, 60px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Shared grid base */
.prf-grid {
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  gap: 16px;
  justify-content: center;
  justify-items: center;
}

.prf-grid--two {
  grid-template-columns: repeat(2, minmax(220px, 280px));
  max-width: 620px;
}

.prf-grid--three {
  grid-template-columns: repeat(3, minmax(200px, 260px));
  max-width: 820px;
}

.prf-grid--six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .prf-grid--two {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .prf-grid--three {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 640px) {
  .prf-grid--two,
  .prf-grid--three {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
}

@media (max-width: 1200px) {
  .prf-grid--six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .prf-grid--six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 400px) {
  .prf-grid--six {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
}

/* Card */
.prf-card {
  border: 1px solid #d8dbe0;
  background: #f3f4f6;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prf-grid--two .prf-card,
.prf-grid--three .prf-card {
  transform: scale(1.02);
}

.prf-grid--two .prf-card:hover,
.prf-grid--three .prf-card:hover {
  transform: translateY(-2px) scale(1.02);
}

.prf-grid--two .prf-photo,
.prf-grid--three .prf-photo {
  height: 260px;
}

.prf-grid--two .prf-body,
.prf-grid--three .prf-body {
  padding: 16px 16px 18px;
}

.prf-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1);
}

/* Photo */
.prf-photo {
  height: 220px;
  overflow: hidden;
  background: #e5e7eb;
}

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

/* Card body */
.prf-body {
  padding: 12px 14px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.prf-position {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-700);
  margin-bottom: 3px;
}

.prf-name {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.99rem;
  font-weight: 700;
  color: #202327;
  margin: 0 0 3px;
  line-height: 1.25;
}

.prf-class {
  font-size: 0.87rem;
  color: var(--ink-500);
  margin-bottom: 0;
}

.prf-quote {
  font-size: 0.88rem;
  font-style: italic;
  color: #6b7280;
  line-height: 1.5;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid #e5e7eb;
}

.prf-quote::before {
  content: "\201C";
}

.prf-quote::after {
  content: "\201D";
}

/* Entrance animation */
.prf-card {
  opacity: 0;
  transform: translateY(16px);
}

.prf-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

@media (prefers-reduced-motion: reduce) {
  .prf-card {
    opacity: 1;
    transform: none;
  }

  .prf-card.is-visible {
    transition: none;
  }
}

@media (max-width: 480px) {
  .prf-photo {
    height: 240px;
  }
}
/* === End Prefects Page === */

/* Shared banner for every inner page */
.page-banner {
  min-height: clamp(210px, 30vw, 340px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(rgba(7, 20, 48, 0.7), rgba(14, 31, 61, 0.76)), url('../images/banner.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  text-align: center;
  padding: clamp(48px, 8vw, 80px) 20px clamp(40px, 6vw, 64px);
}

.page-banner-eyebrow {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.page-banner-title {
  margin: 0;
  color: #fff;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
}

/* === 2026 Editorial UI Upgrade === */
:root {
  --content-max: 1400px;
  --page-gutter: clamp(20px, 4.5vw, 64px);
  --surface-soft: #f5f7fb;
  --line-soft: rgba(18, 58, 114, 0.14);
  --shadow-card: 0 24px 70px rgba(14, 31, 61, 0.1);
  --radius-xl: 28px;
  --nav-height: 74px;
}

html {
  /* Fluid base size: 16px on phones, growing to 18px on large screens */
  font-size: clamp(100%, 93.75% + 0.3vw, 112.5%);
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  overflow-x: hidden;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--ink-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

button,
input,
select,
textarea { font: inherit; }

img { max-width: 100%; }

h1, h2, h3, h4, h5, h6 {
  font-family: "Playfair Display", "Iowan Old Style", "Palatino Linotype", serif;
  letter-spacing: -0.025em;
}

a,
button { -webkit-tap-highlight-color: transparent; }

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(242, 140, 40, 0.7);
  outline-offset: 4px;
}

::selection {
  color: var(--white);
  background: var(--blue-700);
}

/* Premium global header */
.site-header {
  min-height: var(--nav-height);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(18, 58, 114, 0.09);
  box-shadow: none;
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   become the containing block for the fixed mobile nav and clip it. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  pointer-events: none;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.985);
  box-shadow: 0 10px 35px rgba(14, 31, 61, 0.09);
}

.header-inner {
  width: 100%;
  max-width: var(--content-max);
  height: var(--nav-height);
  padding: 0 var(--page-gutter);
  gap: clamp(16px, 2vw, 34px);
}

.brand { gap: 11px; }
.brand-logo {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  border-radius: 14px;
}
.brand-title {
  font-family: "Playfair Display", "Iowan Old Style", serif;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  color: var(--blue-900);
}

.site-nav {
  inset: var(--nav-height) 0 0;
  visibility: hidden;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease, visibility 0.32s;
}

body.nav-open .site-nav { visibility: visible; }

.nav-toggle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border-color: var(--line-soft);
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.header-actions .social-links { display: none; }

.mobile-nav-socials {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 8px;
  padding: 22px var(--page-gutter) 34px;
  border-top: 1px solid var(--line-soft);
}

.mobile-nav-socials > span {
  color: var(--ink-500);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.mobile-nav-socials .social-links {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.mobile-nav-socials .social-link {
  width: 38px;
  height: 38px;
  color: var(--blue-900);
  background: var(--surface-soft);
  border: 1px solid var(--line-soft);
}

.header-actions .apply-btn {
  display: inline-flex !important;
  visibility: visible;
  opacity: 1;
  flex-shrink: 0;
  min-height: 44px;
  padding: 10px 19px;
  border: 1px solid var(--blue-900);
  border-radius: 999px;
  background: var(--blue-900);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.header-actions .apply-btn:hover {
  background: var(--blue-700);
  border-color: var(--blue-700);
  transform: translateY(-1px);
}

@media (min-width: 1100px) {
  .site-nav { visibility: visible; }

  .header-actions .social-links {
    display: inline-flex;
    align-items: center;
    gap: 2px;
  }

  .header-inner { height: 78px; }

  .nav-list {
    height: 78px;
    gap: clamp(1px, 0.45vw, 7px);
  }

  .nav-item { height: 100%; }

  .nav-link {
    position: relative;
    height: 100%;
    padding: 0 clamp(7px, 0.75vw, 12px);
    border-radius: 0;
    font-size: clamp(0.78rem, 0.78vw, 0.9rem);
  }

  .nav-link::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 2px;
    background: var(--orange-500);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.22s ease;
  }

  .nav-link:hover,
  .nav-link[aria-current="page"] { color: var(--blue-700); background: transparent; }

  .nav-link:hover::after,
  .nav-link[aria-current="page"]::after { transform: scaleX(1); }

  .submenu {
    top: calc(100% - 8px);
    min-width: 240px;
    padding: 10px;
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(14, 31, 61, 0.15);
  }

  .submenu a {
    padding: 11px 13px;
    border-radius: 9px;
    font-size: 0.91rem;
  }

  .header-actions .apply-btn { padding-inline: 23px; }
}

@media (min-width: 768px) {
  .header-actions .social-links {
    display: inline-flex;
    align-items: center;
    gap: 2px;
  }

  .mobile-nav-socials { display: none; }
}

@media (max-width: 430px) {
  .brand-title { display: none; }
  .header-inner { gap: 9px; }
  .header-actions .apply-btn { padding-inline: 14px; font-size: 0.84rem; }
}

/* Homepage hero */
.home-main { padding: 0; }

.homepage-hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  min-height: calc(100svh - var(--nav-height));
  display: grid;
  align-items: stretch;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background: var(--blue-900);
}

.homepage-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 18, 40, 0.9) 0%, rgba(7, 18, 40, 0.75) 42%, rgba(7, 18, 40, 0.28) 72%, rgba(7, 18, 40, 0.16) 100%),
    linear-gradient(0deg, rgba(7, 18, 40, 0.66) 0%, transparent 45%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 42%;
  animation: heroImageIn 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes heroImageIn {
  from { opacity: 0.6; transform: scale(1.035); }
  to { opacity: 1; transform: scale(1); }
}

.homepage-hero .hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, var(--content-max));
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(88px, 12vh, 150px) var(--page-gutter) clamp(118px, 15vh, 170px);
  display: grid;
  align-content: center;
  gap: clamp(54px, 8vh, 94px);
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.homepage-hero .hero-intro {
  max-width: 820px;
  display: grid;
  gap: 22px;
  text-align: left;
}

.homepage-hero .hero-tag {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin: 0;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: none;
  backdrop-filter: blur(8px);
}

.hero-tag > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange-500);
  box-shadow: 0 0 0 4px rgba(242, 140, 40, 0.15);
}

.homepage-hero .hero-intro h1 {
  max-width: 900px;
  margin: 0;
  color: var(--white);
  font-family: "Playfair Display", "Iowan Old Style", serif;
  font-size: clamp(3.15rem, 6.6vw, 6.6rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.22);
}

.hero-intro h1 em {
  display: block;
  font-style: normal;
  color: rgba(255, 255, 255, 0.84);
}

.homepage-hero .hero-lede {
  max-width: 610px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  line-height: 1.7;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.hero-actions .btn {
  min-height: 52px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 700;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.hero-actions .hero-cta {
  gap: 14px;
  border: 1px solid var(--orange-500);
  background: var(--orange-500);
  color: var(--white);
  box-shadow: 0 14px 34px rgba(242, 140, 40, 0.27);
}

.hero-actions .hero-cta-ghost {
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.hero-actions .btn:hover { transform: translateY(-2px); }
.hero-actions .hero-cta:hover { background: var(--orange-600); border-color: var(--orange-600); }
.hero-actions .hero-cta-ghost:hover { background: rgba(255, 255, 255, 0.15); }

.hero-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 990px;
  border-top: 1px solid rgba(255, 255, 255, 0.27);
}

.hero-principles > div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 13px;
  row-gap: 6px;
  padding: 22px clamp(16px, 2.2vw, 30px) 0 0;
}

.hero-principles > div + div {
  padding-left: clamp(16px, 2.2vw, 30px);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-principles span {
  grid-row: 1 / span 2;
  color: var(--orange-500);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-principles strong {
  color: var(--white);
  font-size: 0.9rem;
  line-height: 1.25;
}

.hero-principles p {
  max-width: 230px;
  margin: 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.85rem;
  line-height: 1.55;
  text-shadow: none;
}

.hero-scroll {
  position: absolute;
  right: var(--page-gutter);
  bottom: 30px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-scroll span:last-child {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
}

/* Shared homepage editorial system */
.home-shell {
  width: min(100%, var(--content-max));
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.section-eyebrow {
  margin: 0 0 18px;
  color: var(--blue-700);
  font-size: 0.81rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 2px;
  margin: 0 10px 3px 0;
  background: var(--orange-500);
}

.section-eyebrow--light { color: rgba(255, 255, 255, 0.7); }

.home-values {
  border-bottom: 1px solid var(--line-soft);
  background: var(--blue-100);
}

.home-values-grid {
  min-height: 104px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(30px, 7vw, 110px);
}

.home-values p {
  color: var(--blue-900);
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.home-values ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
}

.home-values li {
  position: relative;
  padding-left: 23px;
  color: var(--blue-700);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.home-values li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange-500);
  transform: translateY(-50%);
}

.home-intro,
.home-pathways,
.home-experience { padding: clamp(88px, 10vw, 148px) 0; }

.home-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(48px, 8vw, 120px);
}

.home-editorial h2,
.section-heading-row h2,
.pillars-heading h2,
.home-cta h2 {
  margin: 0;
  color: var(--blue-900);
  font-size: clamp(2.45rem, 5vw, 5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.home-editorial .section-lede {
  max-width: 560px;
  margin: 30px 0;
  color: var(--ink-500);
  font-size: 1rem;
  line-height: 1.85;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--blue-700);
  color: var(--blue-700);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.text-link span { transition: transform 0.2s ease; }
.text-link:hover span { transform: translate(2px, -2px); }

.home-intro-visual {
  position: relative;
  margin: 0;
  min-height: clamp(420px, 48vw, 650px);
}

.home-intro-visual img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.home-intro-visual figcaption {
  position: absolute;
  left: clamp(18px, 4vw, 42px);
  right: clamp(18px, 4vw, 42px);
  bottom: clamp(18px, 4vw, 42px);
  max-width: 410px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(14, 31, 61, 0.84);
  font-size: 0.9rem;
  line-height: 1.65;
  backdrop-filter: blur(12px);
}

.home-intro-visual figcaption span {
  display: block;
  margin-bottom: 5px;
  color: var(--orange-500);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-pathways { background: var(--surface-soft); }

.section-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: clamp(35px, 8vw, 120px);
  margin-bottom: clamp(42px, 6vw, 74px);
}

.section-heading-row h2 { font-size: clamp(2.35rem, 4.5vw, 4.6rem); }

.section-heading-row > p {
  max-width: 480px;
  margin: 0;
  color: var(--ink-500);
  font-size: 0.97rem;
  line-height: 1.8;
}

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.pathway-card {
  position: relative;
  min-height: clamp(470px, 45vw, 620px);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
  border-radius: 22px;
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 18px 55px rgba(14, 31, 61, 0.12);
}

.pathway-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(7, 18, 40, 0.92) 0%, rgba(7, 18, 40, 0.28) 55%, rgba(7, 18, 40, 0.08) 100%);
}

.pathway-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.pathway-card:nth-child(1) img { object-position: 58% center; }
.pathway-card:nth-child(2) img { object-position: 58% center; }

.pathway-card > div {
  width: 100%;
  padding: clamp(25px, 3vw, 40px);
}

.pathway-card p {
  margin: 0 0 5px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pathway-card h3 {
  margin: 0 0 20px;
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.05;
}

.pathway-card > div > span { font-size: 0.87rem; font-weight: 700; }

.pathway-number {
  position: absolute;
  top: 25px;
  right: 25px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  font-size: 0.79rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

@media (hover: hover) {
  .pathway-card:hover img,
  .experience-card:hover img { transform: scale(1.045); }
}

.home-pillars {
  padding: clamp(92px, 11vw, 160px) 0;
  color: var(--white);
  background-color: var(--blue-900);
  background-image:
    linear-gradient(180deg, rgba(7, 18, 40, 0.93), rgba(7, 18, 40, 0.97)),
    url('../images/senior-sagab1.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.pillars-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 40px;
  align-items: start;
  margin-bottom: clamp(55px, 8vw, 95px);
}

.pillars-heading .section-eyebrow { margin-top: 14px; }
.pillars-heading h2 { color: var(--white); font-size: clamp(2.7rem, 5.2vw, 5.4rem); }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pillars-grid article {
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(32px, 3.2vw, 48px);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(31, 74, 138, 0.55), rgba(14, 31, 61, 0.92));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transition: transform 0.38s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s ease, background 0.3s ease;
}

.pillars-grid article::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(30px, 3vw, 44px);
  width: 52px;
  height: 3px;
  background: var(--orange-500);
}

.pillars-grid article::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -110px;
  z-index: -1;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 74, 138, 0.55), transparent 68%);
  transition: transform 0.5s ease;
}

.pillars-grid h3 {
  margin: 0;
  padding-bottom: 26px;
  font-family: "Inter", sans-serif;
}

.pillars-grid h3 span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 16px;
  color: var(--orange-500);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(242, 140, 40, 0.45);
  border-radius: 999px;
  background: rgba(242, 140, 40, 0.07);
}

.pillars-grid p {
  margin: 0;
  max-width: 420px;
  color: var(--white);
  font-size: clamp(1.08rem, 1.3vw, 1.22rem);
  line-height: 1.7;
}

.pillar-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pillar-values li {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 10px 12px 10px 30px;
  white-space: nowrap;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  font-weight: 600;
}

.pillar-values li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange-500);
  transform: translateY(-50%);
}

@media (hover: hover) {
  .pillars-grid article:hover {
    border-color: rgba(242, 140, 40, 0.38);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045));
    transform: translateY(-8px);
  }

  .pillars-grid article:hover::after { transform: scale(1.18); }
}

.experience-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  grid-template-rows: repeat(2, minmax(250px, 1fr));
  gap: 18px;
  min-height: 760px;
}

.experience-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: 20px;
  color: var(--white);
  text-decoration: none;
  background: var(--blue-900);
}

.experience-card--large { grid-row: 1 / 3; }

.experience-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 18, 40, 0.78) 0%, transparent 60%);
}

.experience-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.experience-card > span {
  position: absolute;
  left: clamp(22px, 3vw, 36px);
  right: clamp(22px, 3vw, 36px);
  bottom: clamp(22px, 3vw, 34px);
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  color: var(--white);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 600;
}

.experience-card b {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 50%;
  font-family: "Inter", sans-serif;
  font-size: 0.87rem;
}

.home-cta {
  position: relative;
  min-height: clamp(570px, 65vw, 780px);
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background: var(--blue-900);
}

.home-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(7, 18, 40, 0.94), rgba(7, 18, 40, 0.68) 58%, rgba(7, 18, 40, 0.36));
}

.home-cta > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.home-cta-content { padding-block: 100px; }

.home-cta h2 {
  max-width: 900px;
  color: var(--white);
  font-size: clamp(2.8rem, 6vw, 6.2rem);
}

.home-cta-content > p:not(.section-eyebrow) {
  max-width: 590px;
  margin: 28px 0 30px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1rem;
  line-height: 1.75;
}

/* Modern inner-page image banners */
.page-banner,
.prf-banner,
.prop-banner {
  min-height: clamp(300px, 38vw, 470px);
  align-items: flex-start;
  padding: clamp(90px, 12vw, 150px) var(--page-gutter) clamp(64px, 9vw, 110px);
  text-align: left;
  background-image: linear-gradient(90deg, rgba(7, 18, 40, 0.9), rgba(7, 18, 40, 0.46)), url('../images/banner.jpg');
  border-radius: 0 0 26px 26px;
}

.page-banner-eyebrow,
.prf-banner-eyebrow,
.prop-banner-eyebrow {
  width: min(100%, var(--content-max));
  margin: 0 auto 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.page-banner-title,
.prf-banner-title,
.prop-banner-title {
  width: min(100%, var(--content-max));
  margin: 0 auto;
  color: var(--white);
  font-family: "Playfair Display", serif;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

/* Seamless homepage image carousel */
.homepage-hero .hero-slider {
  z-index: -2;
  pointer-events: none;
  background: var(--blue-900);
}

.homepage-hero .hero-slide {
  background-position: center 42%;
  will-change: opacity, transform;
}

.homepage-hero .hero-slide--montessori { background-position: center center; }
.homepage-hero .hero-slide--chess { background-position: center 46%; }
.homepage-hero .hero-slide--music { background-position: center center; }
.homepage-hero .hero-slide--play { background-position: center center; }

/* Modern editorial content for the Facilities, Career and Alumni pages */
.inner-main { padding-bottom: 0; }

.inner-page-content {
  overflow: hidden;
  background: var(--white);
}

.inner-shell {
  width: min(100%, var(--content-max));
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.inner-page-section {
  padding-block: clamp(78px, 8.5vw, 124px);
}

.inner-page-section--soft { background: var(--surface-soft); }
.inner-page-section--compact { padding-top: 0; }

/* Contact page */
.contact-section { padding-top: clamp(58px, 7vw, 92px); background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.84)), url('../images/background-web.jpg') center / cover no-repeat; }
.contact-heading { max-width: 700px; margin-bottom: clamp(34px, 5vw, 58px); }
.contact-heading h2 { margin: 8px 0 14px; color: var(--blue-900); font-family: "Playfair Display", serif; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; letter-spacing: -.035em; }
.contact-heading > p:last-child { max-width: 580px; color: var(--ink-500); line-height: 1.75; }
.contact-layout { display: grid; grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr); gap: clamp(28px, 5vw, 68px); align-items: stretch; }
.contact-campus-list { display: grid; align-content: start; gap: 14px; }
.contact-campus-card { padding: clamp(22px, 3vw, 30px); border: 1px solid var(--line-soft); border-radius: 16px; background: var(--white); box-shadow: 0 12px 34px rgba(16, 33, 71, .045); }
.contact-campus-label { display: block; margin-bottom: 8px; color: var(--orange-500); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-campus-card h3 { margin-bottom: 8px; color: var(--blue-900); font-size: 1.4rem; }
.contact-campus-card p { color: var(--ink-500); font-size: .94rem; line-height: 1.7; }
.contact-campus-card { position: relative; transition: border-color .2s ease, box-shadow .2s ease; }
.contact-campus-card:hover { border-color: rgba(18, 58, 114, .32); }
.contact-campus-card.is-active { border-color: var(--orange-500); box-shadow: 0 0 0 1px var(--orange-500), 0 14px 38px rgba(16, 33, 71, .08); }
.contact-campus-select { padding: 0; border: 0; color: inherit; background: none; font: inherit; text-align: left; cursor: pointer; }
.contact-campus-select::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.contact-campus-select:focus-visible { outline: none; }
.contact-campus-select:focus-visible::after { outline: 3px solid var(--blue-700); outline-offset: 3px; }
.contact-campus-map-state { position: absolute; top: clamp(18px, 2.6vw, 26px); right: clamp(18px, 2.6vw, 26px); padding: 4px 10px; border-radius: 999px; color: var(--blue-700); background: var(--surface-soft); font-size: .7rem; font-weight: 800; }
.contact-campus-card.is-active .contact-campus-map-state { color: var(--white); background: var(--orange-500); }
.contact-directions { position: relative; z-index: 1; display: inline-flex; gap: 8px; margin-top: 15px; color: var(--blue-700); font-size: .88rem; font-weight: 800; text-decoration: none; }
.contact-directions:hover { color: var(--orange-500); }
.contact-school-details { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: clamp(22px, 3vw, 30px); border: 1px solid var(--line-soft); border-radius: 16px; background: var(--white); box-shadow: 0 12px 34px rgba(16, 33, 71, .045); }
.contact-school-details h3 { margin-bottom: 7px; color: var(--blue-900); font-size: .98rem; }
.contact-school-details > div a { display: block; width: fit-content; color: var(--ink-500); font-size: .88rem; line-height: 1.8; text-decoration: none; }
.contact-school-details > div a:hover { color: var(--blue-700); }
.contact-appointment { grid-column: 1 / -1; width: fit-content; margin-top: 2px; padding: 13px 19px; border-radius: 8px; color: var(--white); background: var(--blue-900); font-size: .82rem; font-weight: 800; text-decoration: none; }
.contact-appointment:hover { transform: translateY(-2px); }
.contact-map-wrap { min-height: 480px; overflow: hidden; border-radius: 18px; background: var(--surface-soft); box-shadow: 0 18px 50px rgba(16, 33, 71, .09); }
.contact-map { display: block; width: 100%; height: 100%; min-height: 480px; border: 0; filter: saturate(.72); }
.contact-map-caption { padding: 12px 18px; color: var(--ink-500); background: var(--white); font-size: .8rem; }
@media (max-width: 800px) { .contact-layout { grid-template-columns: 1fr; } .contact-map-wrap, .contact-map { min-height: 360px; } }
@media (max-width: 520px) { .contact-school-details { grid-template-columns: 1fr; } .contact-appointment { grid-column: auto; } }

/* Staff directory: a quiet portrait grid, ruled like the curriculum and fees pages */
.staff-directory { padding-top: clamp(58px, 7vw, 92px); }
.staff-directory-intro { max-width: 720px; margin-bottom: clamp(36px, 4vw, 52px); }
.staff-directory-intro h2 { margin-top: 8px; color: var(--blue-900); font-family: "Playfair Display", serif; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; letter-spacing: -.035em; }

.staff-campus-tabs { display: flex; gap: clamp(22px, 3.5vw, 40px); margin-bottom: clamp(40px, 5vw, 60px); border-bottom: 1px solid var(--line-soft); }
.staff-campus-tab { position: relative; padding: 0 0 16px; border: 0; background: none; color: var(--ink-500); font: inherit; font-size: 1rem; font-weight: 600; white-space: nowrap; cursor: pointer; transition: color .2s ease; }
.staff-campus-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blue-900); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.staff-campus-tab:hover,
.staff-campus-tab.is-active { color: var(--blue-900); }
.staff-campus-tab.is-active::after { transform: scaleX(1); }
.staff-campus-tab:focus-visible { outline: 2px solid var(--blue-900); outline-offset: 4px; }
.staff-campus-panel[hidden] { display: none; }

.staff-campus-heading { padding-bottom: 25px; border-bottom: 1px solid var(--line-soft); }
.staff-campus-heading .section-eyebrow { margin-bottom: 7px; }
.staff-campus-heading h3 { color: var(--blue-900); font-size: clamp(1.9rem, 3vw, 2.5rem); letter-spacing: -.03em; }

.staff-group { padding-block: clamp(36px, 4.5vw, 60px); border-bottom: 1px solid var(--line-soft); }
.staff-group > h4 { margin-bottom: clamp(22px, 2.5vw, 30px); color: var(--blue-900); font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 600; }

.staff-profile-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px); }
.staff-profile-card { min-width: 0; }
.staff-profile-card img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; background: var(--surface-soft); }
.staff-profile-card > div { padding-top: 14px; }
.staff-profile-card h5,
.staff-profile-card h6 { margin: 0 0 4px; color: var(--blue-900); font-size: 1.08rem; font-weight: 600; line-height: 1.3; }
.staff-profile-card p { color: var(--ink-500); font-size: .88rem; line-height: 1.5; }

.staff-subgroup + .staff-subgroup { margin-top: clamp(36px, 4vw, 52px); padding-top: clamp(30px, 3.5vw, 44px); border-top: 1px solid var(--line-soft); }
.staff-subgroup > h5 { margin-bottom: 20px; color: var(--ink-500); font-family: "Inter", sans-serif; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

@media (max-width: 1100px) { .staff-profile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .staff-profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .staff-campus-tab-extra { display: none; }
  .staff-profile-card h5,
  .staff-profile-card h6 { font-size: 1rem; }
  .staff-profile-card p { font-size: .82rem; }
}

/* Compact service pages */
.compact-page { padding-bottom: 0; }
.compact-page-content { padding-block: clamp(56px, 7vw, 96px); }
.compact-page-intro { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, .75fr); gap: clamp(36px, 8vw, 120px); align-items: start; }
.compact-page-intro h2 { max-width: 700px; font-family: "Playfair Display", serif; font-size: clamp(2.1rem, 4vw, 4.2rem); line-height: 1.04; letter-spacing: -.045em; }
.compact-page-intro-copy { max-width: 570px; padding-top: 8px; color: var(--ink-500); font-size: 1rem; line-height: 1.8; }
.compact-page-intro-copy p + p { margin-top: 14px; }
.compact-page-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: clamp(48px, 7vw, 92px); background: var(--line-soft); border: 1px solid var(--line-soft); }
.compact-page-card { min-height: 190px; padding: clamp(24px, 3vw, 38px); background: var(--white); }
.compact-page-card span { display: block; margin-bottom: 24px; color: var(--orange-500); font-size: 0.82rem; font-weight: 800; letter-spacing: .14em; }
.compact-page-card h3 { margin-bottom: 10px; color: var(--blue-900); font-size: clamp(1.25rem, 2vw, 1.65rem); }
.compact-page-card p { color: var(--ink-500); font-size: 0.94rem; line-height: 1.65; }
.compact-page-note { display: flex; justify-content: space-between; gap: 28px; align-items: center; margin-top: clamp(48px, 7vw, 92px); padding: clamp(28px, 4vw, 48px); background: var(--blue-900); color: var(--white); }
.compact-page-note h2 { max-width: 600px; color: var(--white); font-size: clamp(1.8rem, 3vw, 3.2rem); line-height: 1.05; }
.compact-page-note p { max-width: 390px; color: rgba(255,255,255,.72); font-size: 0.95rem; line-height: 1.7; }
.compact-page-note .btn { flex: 0 0 auto; white-space: nowrap; }
.staff-grid { margin-top: 0; }
.staff-card { text-align: center; }
.staff-card img { width: 76px; height: 76px; margin-bottom: 18px; border-radius: 50%; object-fit: cover; }
.staff-card span { margin-bottom: 10px; }
@media (max-width: 760px) {
  .compact-page-intro { grid-template-columns: 1fr; gap: 24px; }
  .compact-page-grid { grid-template-columns: 1fr; }
  .compact-page-note { align-items: flex-start; flex-direction: column; }
}

.inner-intro-section {
  position: relative;
  background: var(--white);
}

.inner-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 0.78fr);
  gap: clamp(50px, 9vw, 150px);
  align-items: start;
}

.inner-intro h2,
.inner-section-heading h2,
.career-story-copy h2,
.community-feature-copy h2 {
  max-width: 760px;
  font-family: "Playfair Display", "Iowan Old Style", serif;
  font-size: clamp(2.35rem, 4.7vw, 4.9rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.inner-intro-copy {
  max-width: 650px;
  padding-top: clamp(4px, 2.2vw, 34px);
}

.inner-intro-copy p,
.inner-section-heading > p,
.career-story-copy > p,
.community-feature-copy > p {
  color: var(--ink-500);
  font-size: 0.99rem;
  line-height: 1.8;
}

.inner-intro-copy .inner-lede {
  margin-bottom: 18px;
  color: var(--ink-700);
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  line-height: 1.7;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding-bottom: 6px;
  color: var(--blue-900);
  border-bottom: 1px solid var(--blue-900);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.text-link span { transition: transform 0.25s ease; }
.text-link:hover span { transform: translateX(4px); }

.inner-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  gap: clamp(36px, 8vw, 120px);
  align-items: end;
  margin-bottom: clamp(42px, 5vw, 72px);
}

.inner-section-heading h2 { max-width: 780px; }

.facility-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.facility-grid + .facility-grid { margin-top: 18px; }

.facility-card {
  position: relative;
  min-height: clamp(360px, 37vw, 510px);
  overflow: hidden;
  isolation: isolate;
  border-radius: 22px;
  background: var(--blue-900);
  box-shadow: 0 20px 55px rgba(14, 31, 61, 0.09);
}

.facility-card--7 { grid-column: span 7; }
.facility-card--5 { grid-column: span 5; }
.facility-card--4 { grid-column: span 4; min-height: clamp(330px, 31vw, 430px); }

.facility-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(7, 18, 40, 0.88) 0%, rgba(7, 18, 40, 0.18) 64%, transparent 100%);
}

.facility-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.facility-card:hover img { transform: scale(1.035); }

.facility-card-copy {
  position: absolute;
  inset: auto clamp(22px, 3vw, 36px) clamp(24px, 3vw, 36px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  color: var(--white);
}

.facility-card-copy > span {
  margin-top: 8px;
  color: var(--orange-500);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.facility-card h3 {
  margin-bottom: 7px;
  color: var(--white);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 600;
}

.facility-card p {
  max-width: 390px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.89rem;
  line-height: 1.55;
}

/* Career page: staff photo held in place behind the content (clip-path keeps the fixed layer inside it, including on phones) */
.career-page .inner-page-content { position: relative; isolation: isolate; clip-path: inset(0); background: transparent; }
.career-page .inner-page-content::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.55)), url('../images/sagabstaff.jpg') center / cover no-repeat;
  pointer-events: none;
}
.career-page .inner-intro-section,
.career-page .inner-page-section--soft { background: transparent; }
.career-page .inner-intro-copy p { color: var(--ink-900); font-weight: 500; text-shadow: 0 0 2px rgba(255, 255, 255, 0.9), 0 0 12px rgba(255, 255, 255, 0.85); }

.career-story {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  min-height: 720px;
  padding-inline: var(--page-gutter);
}

.career-story-media {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border-radius: 24px 0 0 24px;
  background: var(--blue-100);
}

.career-story-media::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(0deg, rgba(7, 18, 40, 0.7), transparent);
}

.career-story-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.career-story-media figcaption {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 30px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.career-story-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 7vw, 100px);
  border-radius: 0 24px 24px 0;
  background: var(--white);
}

.career-story-copy h2 { margin-bottom: 25px; }
.career-story-copy > p { max-width: 630px; }

.career-principles {
  margin-top: 36px;
  border-bottom: 1px solid var(--line-soft);
}

.career-principles article {
  display: grid;
  grid-template-columns: minmax(150px, 0.5fr) minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid var(--line-soft);
}

.career-principles span {
  color: var(--orange-500);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.career-principles h3 {
  font-family: "Inter", sans-serif;
  font-size: 0.93rem;
  font-weight: 800;
}

.career-principles p {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.88rem;
  line-height: 1.6;
}

.opportunity-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(50px, 8vw, 115px);
  padding: clamp(48px, 7vw, 92px);
  color: var(--white);
  border-radius: 26px;
  background: var(--blue-900);
  box-shadow: var(--shadow-card);
}

.opportunity-heading h2,
.inner-cta h2 {
  max-width: 650px;
  color: var(--white);
  font-family: "Playfair Display", serif;
  font-size: clamp(2.35rem, 4.5vw, 4.7rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.opportunity-heading > p:last-child,
.opportunity-status > p,
.inner-cta-actions > p {
  color: rgba(255, 255, 255, 0.67);
  line-height: 1.75;
}

.opportunity-heading > p:last-child { max-width: 520px; margin-top: 24px; }

.opportunity-status {
  align-self: center;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.opportunity-status .status-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.status-label span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange-500);
  box-shadow: 0 0 0 5px rgba(242, 140, 40, 0.14);
}

.opportunity-status h3 {
  margin-bottom: 14px;
  color: var(--white);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.55rem, 2.8vw, 2.3rem);
  font-weight: 600;
  line-height: 1.15;
}

.opportunity-status .btn { margin-top: 28px; }

.connection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.connection-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(32px, 4vw, 52px);
  border-right: 1px solid var(--line-soft);
  background: var(--white);
}

.connection-card:last-child { border-right: 0; }

.connection-card > span {
  margin-bottom: auto;
  color: var(--orange-500);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.connection-card h3 {
  margin: 0 0 12px;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  font-weight: 600;
}

.connection-card p {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.92rem;
  line-height: 1.7;
}

.community-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: 620px;
}

.community-feature figure {
  min-height: 560px;
  overflow: hidden;
  border-radius: 24px 0 0 24px;
  background: var(--blue-100);
}

.community-feature figure img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.community-feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 7vw, 94px);
  border-radius: 0 24px 24px 0;
  background: var(--blue-100);
}

.community-feature-copy h2 { margin-bottom: 24px; }
.community-feature-copy > p + p { margin-top: 14px; }

.page-primary-btn {
  align-self: flex-start;
  margin-top: 30px;
  padding: 15px 22px;
  color: var(--white);
  border-radius: 999px;
  background: var(--blue-900);
  text-decoration: none;
}

.inner-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(310px, 0.58fr);
  gap: clamp(45px, 8vw, 120px);
  align-items: end;
  padding: clamp(48px, 7vw, 92px);
  color: var(--white);
  border-radius: 26px;
  background:
    radial-gradient(circle at 90% 0%, rgba(31, 74, 138, 0.7), transparent 38%),
    var(--blue-900);
  box-shadow: var(--shadow-card);
}

.inner-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.inner-cta-actions > p {
  width: 100%;
  margin: 0 0 18px;
}

.inner-cta-primary,
.inner-cta-secondary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.inner-cta-primary {
  color: var(--blue-900);
  background: var(--white);
}

.inner-cta-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.32);
  background: transparent;
}

.inner-cta-primary:hover,
.page-primary-btn:hover { transform: translateY(-2px); }

.inner-cta-secondary:hover { border-color: rgba(255, 255, 255, 0.72); }

/* Overview editorial page */
.overview-banner {
  background-position: center 52%;
}

.overview-story {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  min-height: 690px;
}

.overview-story-media {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  border-radius: 26px 0 0 26px;
  background: var(--blue-100);
}

.overview-story-media::after {
  content: "";
  position: absolute;
  inset: 48% 0 0;
  background: linear-gradient(0deg, rgba(7, 18, 40, 0.78), transparent);
}

.overview-story-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.overview-story-media figcaption {
  position: absolute;
  left: clamp(24px, 4vw, 44px);
  right: clamp(24px, 4vw, 44px);
  bottom: 32px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overview-story-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(44px, 6.5vw, 92px);
  border-radius: 0 26px 26px 0;
  background: var(--white);
}

.overview-story-copy h2,
.overview-results-copy h2,
.overview-purpose-heading h2,
.overview-outcomes-heading h2 {
  font-family: "Playfair Display", "Iowan Old Style", serif;
  font-size: clamp(2.35rem, 4.5vw, 4.7rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.overview-story-copy h2 { margin-bottom: 26px; }

.overview-story-copy > p {
  color: var(--ink-500);
  font-size: 0.96rem;
  line-height: 1.78;
}

.overview-story-copy > p + p { margin-top: 14px; }

.overview-story-copy .overview-story-lede {
  color: var(--ink-700);
  font-size: 1.05rem;
}

.overview-story-copy blockquote {
  position: relative;
  margin-top: 30px;
  padding: 24px 0 0 28px;
  color: var(--blue-900);
  border-top: 1px solid var(--line-soft);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.45;
}

.overview-story-copy blockquote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 31px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange-500);
}

.overview-purpose {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(90px, 10vw, 148px);
  color: var(--white);
  background: var(--blue-900);
}

.overview-purpose::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 620px;
  height: 620px;
  right: -180px;
  top: -270px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 74, 138, 0.76), transparent 68%);
}

.overview-purpose::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(rgba(14, 31, 61, 0.88), rgba(14, 31, 61, 0.88)),
    url("../images/montessori-photo.jpg") center / cover no-repeat;
}

.overview-purpose-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  gap: clamp(34px, 8vw, 120px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 78px);
}

.overview-purpose-heading h2 { color: var(--white); }

.overview-purpose-heading > p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.75;
}

.overview-purpose-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.purpose-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  padding: clamp(34px, 5vw, 64px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(10px);
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.purpose-card:hover {
  transform: translateY(-6px);
  border-color: rgba(242, 140, 40, 0.48);
  background: rgba(255, 255, 255, 0.085);
}

.purpose-card-label {
  margin-bottom: auto;
  color: var(--orange-500);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.purpose-card h3 {
  max-width: 530px;
  margin: 48px 0 0;
  color: var(--white);
  font-size: clamp(1.3rem, 2.1vw, 1.85rem);
  font-weight: 700;
  line-height: 1.3;
}

.purpose-card p {
  max-width: 570px;
  margin: 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.94rem;
  line-height: 1.75;
}

.overview-values {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
  margin-top: clamp(58px, 7vw, 90px);
  padding-top: clamp(44px, 6vw, 70px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.overview-values h3 {
  max-width: 480px;
  color: var(--white);
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  font-weight: 600;
  line-height: 1.12;
}

.overview-values ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.overview-values li {
  position: relative;
  min-height: 82px;
  display: flex;
  align-items: center;
  padding: 20px 20px 20px 42px;
  color: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.87rem;
  font-weight: 700;
}

.overview-values li::before {
  content: "";
  position: absolute;
  left: 20px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange-500);
}

.overview-results {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  min-height: 690px;
}

.overview-results-media {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  border-radius: 26px 0 0 26px;
  background: var(--blue-100);
}

.overview-results-media::after {
  content: "";
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(0deg, rgba(7, 18, 40, 0.7), transparent);
}

.overview-results-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.results-media-note {
  position: absolute;
  left: clamp(22px, 3vw, 40px);
  bottom: clamp(22px, 3vw, 38px);
  z-index: 1;
  display: grid;
  gap: 4px;
  padding-left: 18px;
  color: var(--white);
  border-left: 3px solid var(--orange-500);
}

.results-media-note strong {
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  font-weight: 600;
}

.results-media-note span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.83rem;
}

.overview-results-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(44px, 6.5vw, 92px);
  border-radius: 0 26px 26px 0;
  background: var(--surface-soft);
}

.overview-results-copy h2 { margin-bottom: 26px; }

.overview-results-copy > p {
  color: var(--ink-500);
  font-size: 0.96rem;
  line-height: 1.78;
}

.overview-results-copy > p + p { margin-top: 14px; }

.overview-results-copy .overview-results-lede {
  color: var(--ink-700);
  font-size: 1.06rem;
}

.exam-list {
  margin-top: 30px;
  border-bottom: 1px solid var(--line-soft);
}

.exam-list article {
  display: grid;
  grid-template-columns: minmax(100px, 0.34fr) minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding: 17px 0;
  border-top: 1px solid var(--line-soft);
}

.exam-list strong {
  color: var(--blue-900);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

.exam-list span {
  color: var(--ink-500);
  font-size: 0.87rem;
  line-height: 1.5;
}

.overview-journey-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.journey-card {
  position: relative;
  min-height: clamp(520px, 52vw, 680px);
  overflow: hidden;
  isolation: isolate;
  border-radius: 24px;
  background: var(--blue-900);
  box-shadow: var(--shadow-card);
}

.journey-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(7, 18, 40, 0.9) 0%, rgba(7, 18, 40, 0.1) 65%);
}

.journey-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.journey-card:hover img { transform: scale(1.035); }

.journey-card-copy {
  position: absolute;
  inset: auto clamp(26px, 4vw, 48px) clamp(28px, 4vw, 46px);
  color: var(--white);
}

.journey-card-copy > span,
.outcome-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--orange-500);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.journey-card h3 {
  margin-bottom: 12px;
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  font-weight: 600;
}

.journey-card p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.7;
}

.overview-outcomes-heading {
  max-width: 900px;
  margin-bottom: clamp(44px, 6vw, 72px);
}

.overview-outcomes-heading h2 { margin-bottom: 24px; }

.overview-outcomes-heading > p:last-child {
  max-width: 720px;
  color: var(--ink-500);
  line-height: 1.78;
}

.overview-outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.outcome-card {
  position: relative;
  min-height: clamp(360px, 34vw, 470px);
  overflow: hidden;
  isolation: isolate;
  border-radius: 22px;
  background: var(--blue-900);
}

.outcome-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(7, 18, 40, 0.92), rgba(7, 18, 40, 0.04) 68%);
}

.outcome-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.outcome-card:hover img { transform: scale(1.04); }

.outcome-card > div {
  position: absolute;
  inset: auto 28px 28px;
}

.outcome-card h3 {
  color: var(--white);
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  font-weight: 600;
}

.parent-assurances {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.parent-assurances article {
  min-height: 310px;
  padding: clamp(28px, 3.5vw, 46px);
  border-right: 1px solid var(--line-soft);
  background: var(--white);
}

.parent-assurances article:last-child { border-right: 0; }

.assurance-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-bottom: 70px;
  color: var(--white);
  border-radius: 50%;
  background: var(--blue-900);
  font-size: 0.87rem;
  font-weight: 800;
}

.parent-assurances h3 {
  margin-bottom: 13px;
  color: var(--blue-900);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 600;
}

.parent-assurances p {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.9rem;
  line-height: 1.68;
}

.overview-cta-section { padding-top: clamp(70px, 8vw, 110px); }

/* Proprietress editorial page */
.prop-section {
  position: relative;
  width: min(calc(100% - (2 * var(--page-gutter))), var(--content-max));
  max-width: var(--content-max);
  margin: clamp(70px, 8vw, 116px) auto;
  padding: clamp(34px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(42px, 7vw, 105px);
  align-items: start;
  border: 1px solid var(--line-soft);
  border-radius: 30px;
  background: var(--surface-soft);
}

.prop-photo-col {
  position: sticky;
  top: calc(var(--nav-height) + 28px);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.prop-photo-wrap {
  position: relative;
  width: 100%;
  max-width: none;
  aspect-ratio: 4 / 5;
  padding: 10px;
  overflow: visible;
  border-radius: 28px;
  background: linear-gradient(145deg, var(--white), var(--blue-100));
  box-shadow: 0 30px 80px rgba(14, 31, 61, 0.18);
}

.prop-photo-wrap::before {
  content: "";
  position: absolute;
  top: -9px;
  right: -9px;
  width: 88px;
  height: 88px;
  border-top: 3px solid var(--orange-500);
  border-right: 3px solid var(--orange-500);
  border-radius: 0 24px 0 0;
  pointer-events: none;
}

.prop-photo-wrap::after {
  inset: 10px;
  z-index: 1;
  border-radius: 20px;
  background: linear-gradient(0deg, rgba(7, 18, 40, 0.55), transparent 42%);
}

.prop-photo {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  display: block;
  border-radius: 20px;
  object-fit: cover;
  object-position: center 24%;
  filter: none;
}

.prop-name-card {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 30px;
  z-index: 2;
  padding: 19px 21px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 15px;
  background: rgba(7, 18, 40, 0.9);
  box-shadow: 0 16px 34px rgba(7, 18, 40, 0.24);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.prop-name {
  color: var(--white);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 600;
}

.prop-title-label {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.prop-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.prop-socials-label {
  margin-right: 8px;
  color: var(--ink-500);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.prop-social-link {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--blue-900);
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  background: var(--white);
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(14, 31, 61, 0.08);
  transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.prop-social-link:hover {
  color: var(--white);
  background: var(--blue-900);
  transform: translateY(-3px);
}

.prop-social-link svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.prop-content-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(38px, 5vw, 70px);
  border: 1px solid rgba(18, 58, 114, 0.1);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(14, 31, 61, 0.08);
}

.prop-message-header {
  margin-bottom: 15px;
  padding-bottom: clamp(28px, 4vw, 46px);
  border-bottom: 1px solid var(--line-soft);
}

.prop-message-header h2 {
  max-width: 780px;
  font-family: "Playfair Display", "Iowan Old Style", serif;
  font-size: clamp(2.45rem, 4.7vw, 4.8rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.prop-content-col p {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.99rem;
  line-height: 1.82;
}

.prop-content-col .prop-salutation {
  color: var(--blue-900) !important;
  font-size: 0.86rem !important;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prop-content-col .prop-lead {
  color: var(--ink-700);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.18rem, 2vw, 1.48rem);
  line-height: 1.65;
}

.prop-closing {
  margin-top: 10px !important;
  color: var(--ink-700) !important;
}

.prop-signature {
  margin-top: 4px;
  padding: 20px 22px;
  border-left: 3px solid var(--orange-500);
  border-radius: 0 12px 12px 0;
  background: var(--surface-soft);
}

.prop-signature .prop-sig-name {
  color: var(--blue-900);
  font-family: "Playfair Display", serif;
  font-size: 1.08rem;
  font-weight: 600;
}

.prop-signature .prop-sig-role {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 0.86rem;
}

/* Refined shared footer */
.site-footer {
  padding: clamp(70px, 8vw, 104px) 0 max(28px, env(safe-area-inset-bottom));
  background: var(--blue-900);
}

.footer-inner {
  width: min(100%, var(--content-max));
  max-width: var(--content-max);
  padding: 0 var(--page-gutter);
}

.footer-top {
  grid-template-columns: minmax(0, 1.05fr) minmax(160px, 0.55fr) minmax(300px, 1.25fr);
  gap: clamp(42px, 7vw, 100px);
}

.footer-branding { gap: 18px; }
.footer-logo img {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 16px;
}
.footer-brand-title { font-family: "Playfair Display", serif; font-size: 1.2rem; }
.footer-description { margin: 0; color: rgba(255, 255, 255, 0.62); line-height: 1.8; }
.footer-social { display: flex; }
.footer-links-col,
.footer-contact-col {
  display: block;
  visibility: visible;
  opacity: 1;
}
.footer-links { gap: 12px; }
.footer-links li { margin: 0; }
.footer-links a,
.footer-contact a { color: rgba(255, 255, 255, 0.66); }
.footer-contact { gap: 18px; }
.footer-contact li { margin: 0; color: rgba(255, 255, 255, 0.66); line-height: 1.65; }
.footer-links-col h3,
.footer-contact-col h3 {
  margin: 0 0 20px;
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.footer-bottom { margin: 58px 0 0; padding: 22px 0 0; }
.footer-legal { display: flex; }

@media (max-width: 900px) {
  .homepage-hero::before {
    background: linear-gradient(90deg, rgba(7, 18, 40, 0.88), rgba(7, 18, 40, 0.48)), linear-gradient(0deg, rgba(7, 18, 40, 0.72), transparent 55%);
  }

  .hero-media { object-position: 60% center; }
  .homepage-hero .hero-content { padding-top: 82px; padding-bottom: 120px; }
  .hero-principles p { display: none; }
  .hero-principles > div { padding-top: 18px; }
  .home-values-grid { grid-template-columns: 1fr; gap: 15px; padding-block: 25px; }
  .home-values ul { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .home-intro-grid { grid-template-columns: 1fr; }
  .home-editorial { max-width: 720px; }
  .pathway-grid { grid-template-columns: 1fr; }
  .pathway-card { min-height: 520px; }
  .pillars-heading { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid article:last-child { grid-column: 1 / -1; }
  .experience-grid { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(440px, 1.2fr) minmax(300px, 0.8fr); min-height: 0; }
  .experience-card--large { grid-column: 1 / 3; grid-row: auto; }
  .inner-intro { grid-template-columns: 1fr; gap: 34px; }
  .inner-intro-copy { max-width: 720px; padding-top: 0; }
  .inner-section-heading { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .inner-section-heading > p { max-width: 700px; }
  .facility-card--7,
  .facility-card--5,
  .facility-card--4 { grid-column: span 6; min-height: 410px; }
  .facility-card:last-child { grid-column: 1 / -1; }
  .facility-grid--even .facility-card:last-child { grid-column: span 6; }
  .career-story { grid-template-columns: 1fr; min-height: 0; }
  .career-story-media { min-height: 570px; border-radius: 24px 24px 0 0; }
  .career-story-copy { border-radius: 0 0 24px 24px; }
  .opportunity-panel { grid-template-columns: 1fr; }
  .connection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .connection-card:nth-child(2) { border-right: 0; }
  .connection-card:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line-soft); }
  .community-feature { grid-template-columns: 1fr; min-height: 0; }
  .community-feature figure { min-height: 520px; border-radius: 24px 24px 0 0; }
  .community-feature-copy { border-radius: 0 0 24px 24px; }
  .inner-cta { grid-template-columns: 1fr; align-items: start; }
  .overview-story,
  .overview-results { grid-template-columns: 1fr; min-height: 0; }
  .overview-story-media,
  .overview-results-media { min-height: 540px; border-radius: 24px 24px 0 0; }
  .overview-story-copy,
  .overview-results-copy { border-radius: 0 0 24px 24px; }
  .overview-purpose-heading,
  .overview-values { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .overview-purpose-heading > p:last-child { max-width: 700px; }
  .overview-values ul { width: 100%; }
  .overview-outcomes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .outcome-card:last-child { grid-column: 1 / -1; }
  .parent-assurances { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .parent-assurances article:nth-child(2) { border-right: 0; }
  .parent-assurances article:nth-child(-n + 2) { border-bottom: 1px solid var(--line-soft); }
  .prop-section { grid-template-columns: 1fr; }
  .prop-photo-col {
    position: static;
    width: min(100%, 620px);
    margin-inline: auto;
  }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-branding { grid-column: 1 / 3; }
}

@media (max-width: 640px) {
  .homepage-hero { min-height: 790px; }
  .homepage-hero::before { background: linear-gradient(0deg, rgba(7, 18, 40, 0.92) 0%, rgba(7, 18, 40, 0.66) 67%, rgba(7, 18, 40, 0.42) 100%); }
  .hero-media { object-position: 62% center; }
  .homepage-hero .hero-content { align-content: end; gap: 44px; padding-top: 120px; }
  .homepage-hero .hero-intro { gap: 17px; }
  .homepage-hero .hero-intro h1 { font-size: clamp(2.75rem, 13vw, 4.2rem); }
  .homepage-hero .hero-lede { font-size: 0.97rem; }
  .hero-actions { align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-principles { grid-template-columns: 1fr; border-top: 0; }
  .hero-principles > div { padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, 0.2); }
  .hero-principles > div + div { padding-left: 0; border-left: 0; }
  .hero-scroll { display: none; }
  .home-values ul { grid-template-columns: 1fr 1fr; }
  .home-intro, .home-pathways, .home-experience { padding-block: 78px; }
  .home-intro-visual { min-height: 430px; }
  .home-intro-visual figcaption { font-size: 0.86rem; }
  .section-heading-row { grid-template-columns: 1fr; margin-bottom: 38px; }
  .pathway-card { min-height: 470px; }
  .pillars-grid { grid-template-columns: 1fr; gap: 14px; }
  .pillars-grid article,
  .pillars-grid article:first-child,
  .pillars-grid article:last-child { grid-column: auto; min-height: 0; padding: 32px 26px; }
  .pillars-grid article::before { left: 26px; }
  .pillars-grid h3 { padding-bottom: 22px; }
  .experience-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .experience-card--large { grid-column: auto; }
  .experience-card { min-height: 360px; }
  .home-cta { min-height: 650px; }
  .page-banner, .prf-banner, .prop-banner { min-height: 330px; border-radius: 0 0 18px 18px; }
  .homepage-hero .hero-slide { background-position: 62% center; }
  .homepage-hero .hero-slide--montessori,
  .homepage-hero .hero-slide--chess,
  .homepage-hero .hero-slide--music,
  .homepage-hero .hero-slide--play { background-position: center center; }
  .inner-page-section { padding-block: 76px; }
  .inner-page-section--compact { padding-top: 0; }
  .inner-intro h2,
  .inner-section-heading h2,
  .career-story-copy h2,
  .community-feature-copy h2,
  .overview-story-copy h2,
  .overview-results-copy h2,
  .overview-purpose-heading h2,
  .overview-outcomes-heading h2 { font-size: clamp(2.25rem, 11vw, 3.4rem); }
  .facility-grid { gap: 14px; }
  .facility-grid + .facility-grid { margin-top: 14px; }
  .facility-card--7,
  .facility-card--5,
  .facility-card--4,
  .facility-card:last-child,
  .facility-grid--even .facility-card:last-child { grid-column: 1 / -1; min-height: 390px; }
  .career-story-media { min-height: 430px; }
  .career-story-media figcaption { left: 22px; right: 22px; bottom: 22px; }
  .career-story-copy,
  .community-feature-copy { padding: 38px 25px 44px; }
  .career-principles article { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .opportunity-panel,
  .inner-cta { padding: 38px 25px; border-radius: 20px; }
  .opportunity-status { padding: 26px 20px; }
  .opportunity-status .btn { width: 100%; }
  .connection-grid { grid-template-columns: 1fr; }
  .connection-card,
  .connection-card:nth-child(2),
  .connection-card:last-child { grid-column: auto; min-height: 0; border-top: 1px solid var(--line-soft); border-right: 0; }
  .connection-card:first-child { border-top: 0; }
  .community-feature figure { min-height: 390px; }
  .inner-cta-actions .btn { width: 100%; }
  .overview-story-media,
  .overview-results-media { min-height: 390px; }
  .overview-story-copy,
  .overview-results-copy { padding: 38px 25px 44px; }
  .overview-purpose { padding-block: 78px; }
  .overview-purpose-grid,
  .overview-journey-grid,
  .overview-outcomes-grid,
  .parent-assurances { grid-template-columns: 1fr; }
  .purpose-card { min-height: 340px; padding: 32px 25px; }
  .purpose-card h3 { margin-top: 40px; }
  .overview-values ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-values li { min-height: 72px; padding: 16px 14px 16px 35px; }
  .overview-values li::before { left: 16px; }
  .journey-card { min-height: 500px; }
  .outcome-card,
  .outcome-card:last-child { grid-column: auto; min-height: 410px; }
  .parent-assurances article,
  .parent-assurances article:nth-child(2),
  .parent-assurances article:last-child { min-height: 260px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .parent-assurances article:last-child { border-bottom: 0; }
  .assurance-mark { margin-bottom: 48px; }
  .prop-section {
    width: calc(100% - 32px);
    margin-block: 52px;
    padding: 22px;
    gap: 42px;
    border-radius: 22px;
  }
  .prop-photo-wrap { padding: 8px; border-radius: 22px; }
  .prop-photo-wrap::after { inset: 8px; border-radius: 16px; }
  .prop-photo { border-radius: 16px; }
  .prop-name-card { left: 22px; right: 22px; bottom: 22px; padding: 16px 17px; }
  .prop-socials { flex-wrap: wrap; }
  .prop-socials-label { width: 100%; margin: 0 0 4px; text-align: center; }
  .prop-content-col { padding: 34px 23px; border-radius: 18px; }
  .prop-message-header h2 { font-size: clamp(2.35rem, 11vw, 3.35rem); }
  .footer-top { grid-template-columns: 1fr; }
  .footer-branding { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media { animation: none; }
  .homepage-hero .hero-slide { transition: none; }
  .facility-card img,
  .journey-card img,
  .outcome-card img { transition: none; }
}
/* === End Editorial UI Upgrade === */

/* Keep the desktop menu on one line now that type is larger */
@media (min-width: 1100px) {
  .nav-link { white-space: nowrap; }
}

@media (min-width: 1100px) and (max-width: 1319px) {
  .header-actions .social-links { display: none; }
}

/* === News & Events magazine page === */
.news-tag {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--orange-500);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.news-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 800;
}

.news-more span { transition: transform 0.25s ease; }
a:hover .news-more span { transform: translateX(4px); }

.news-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(260px, 1fr));
  gap: 18px;
}

.news-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  border-radius: 22px;
  background: var(--blue-900);
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 20px 55px rgba(14, 31, 61, 0.09);
}

.news-card--lead { grid-row: span 2; min-height: 600px; }

.news-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(7, 18, 40, 0.92) 0%, rgba(7, 18, 40, 0.15) 70%);
}

.news-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.news-card:hover img { transform: scale(1.04); }

.news-card-copy { padding: clamp(24px, 3vw, 44px); }

.news-card h3 {
  margin-bottom: 14px;
  color: var(--white);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 600;
  line-height: 1.15;
}

.news-card--lead h3 { max-width: 620px; font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1.05; }

.news-card p {
  max-width: 520px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.65;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 40px);
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line-soft);
}

.news-story {
  display: flex;
  flex-direction: column;
  color: var(--blue-900);
  text-decoration: none;
}

.news-story figure {
  aspect-ratio: 4 / 3;
  margin: 0 0 22px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--blue-100);
}

.news-story img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.news-story:hover img { transform: scale(1.05); }

.news-story h3 {
  margin-bottom: 14px;
  color: var(--blue-900);
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
  font-weight: 600;
  line-height: 1.2;
}

.event-list { border-top: 1px solid var(--line-soft); }

.event-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
  padding: clamp(24px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--line-soft);
}

.event-date {
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  border-radius: 20px;
  background: var(--blue-900);
  color: var(--white);
  text-align: center;
}

.event-date strong {
  align-self: end;
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}

.event-date span {
  align-self: start;
  color: var(--orange-500);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.event-info h3 {
  margin-bottom: 8px;
  color: var(--blue-900);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 600;
}

.event-info p {
  margin: 0;
  color: var(--ink-500);
  font-size: 1rem;
  line-height: 1.6;
}

.event-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid var(--blue-900);
  border-radius: 999px;
  color: var(--blue-900);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease;
}

.event-link:hover { background: var(--blue-900); color: var(--white); }

.news-gallery {
  columns: 3 280px;
  column-gap: 18px;
}

.news-gallery figure {
  position: relative;
  margin: 0 0 18px;
  overflow: hidden;
  break-inside: avoid;
  border-radius: 18px;
  background: var(--blue-100);
}

.news-gallery img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.news-gallery figure:nth-child(3n + 1) img { aspect-ratio: 4 / 5; }
.news-gallery figure:nth-child(3n + 2) img { aspect-ratio: 1 / 1; }
.news-gallery figure:nth-child(3n) img { aspect-ratio: 4 / 3; }

.news-gallery figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(14, 31, 61, 0.82);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.news-gallery figure:hover img { transform: scale(1.04); }
.news-gallery figure:hover figcaption { opacity: 1; transform: none; }

.news-follow {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
  padding: clamp(40px, 6vw, 88px);
  border-radius: 26px;
  background:
    radial-gradient(circle at 90% 0%, rgba(31, 74, 138, 0.7), transparent 38%),
    var(--blue-900);
  color: var(--white);
  box-shadow: var(--shadow-card);
}

.news-follow-heading h2 {
  margin-bottom: 20px;
  color: var(--white);
  font-size: clamp(2.3rem, 4.4vw, 4.4rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.news-follow-heading > p:last-child {
  max-width: 460px;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.02rem;
  line-height: 1.7;
}

.follow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.follow-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.follow-tile:hover {
  border-color: rgba(242, 140, 40, 0.6);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.follow-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--orange-500);
}

.follow-icon svg { width: 22px; height: 22px; fill: var(--white); }

.follow-tile > span:nth-child(2) { display: grid; min-width: 0; gap: 2px; }
.follow-tile strong { font-size: 1.05rem; }

.follow-tile small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.follow-tile b { margin-left: auto; color: var(--orange-500); font-size: 1.2rem; }

@media (max-width: 900px) {
  .news-feature { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .news-card--lead { grid-column: 1 / -1; grid-row: auto; min-height: 480px; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-grid .news-story:last-child { display: none; }
  .news-follow { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .news-feature,
  .news-grid,
  .follow-grid { grid-template-columns: 1fr; }
  .news-card--lead { min-height: 440px; }
  .news-card { min-height: 300px; }
  .news-grid .news-story:last-child { display: flex; }
  .event-row { grid-template-columns: 84px minmax(0, 1fr); gap: 18px; }
  .event-date { width: 84px; height: 84px; border-radius: 16px; }
  .event-date strong { font-size: 1.5rem; }
  .event-link { grid-column: 2; justify-self: start; }
  .news-gallery { columns: 2 140px; column-gap: 12px; }
  .news-gallery figure { margin-bottom: 12px; border-radius: 14px; }
  .news-gallery figcaption { display: none; }
  .news-follow { padding: 38px 25px; border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .news-card img,
  .news-story img,
  .news-gallery img { transition: none; }
}

/* === Leadership pages (Governors & Prefects) === */
.leader-group + .leader-group { margin-top: clamp(64px, 8vw, 110px); }

.leader-group-heading {
  margin-bottom: clamp(26px, 3vw, 40px);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.leader-group-heading h2 {
  color: var(--blue-900);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.leader-grid {
  display: grid;
  grid-template-columns: repeat(var(--leader-cols, 4), minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 30px);
}

.leader-grid--2 { --leader-cols: 2; max-width: 820px; }
.leader-grid--3 { --leader-cols: 3; }
.leader-grid--4 { --leader-cols: 4; }
.leader-grid--5 { --leader-cols: 5; }
.leader-grid--6 { --leader-cols: 6; }

.leader-card { display: flex; flex-direction: column; }

.leader-card figure {
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  background: var(--blue-100);
  box-shadow: 0 18px 45px rgba(14, 31, 61, 0.08);
}

.leader-card img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.leader-card:hover img { transform: scale(1.04); }

.leader-card-body { padding: 20px 4px 0; }
.leader-card-body .news-tag { margin-bottom: 8px; font-size: 0.76rem; line-height: 1.4; }

.leader-card h3 {
  margin-bottom: 8px;
  color: var(--blue-900);
  font-size: clamp(1.15rem, 1.4vw, 1.35rem);
  font-weight: 600;
  line-height: 1.2;
}

.leader-card p {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.95rem;
  line-height: 1.65;
}

.leader-card--lead h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.leader-card--lead .news-tag { font-size: 0.82rem; }

@media (max-width: 1100px) {
  .leader-grid--5,
  .leader-grid--6 { --leader-cols: 4; }
}

@media (max-width: 900px) {
  .leader-grid--4,
  .leader-grid--5,
  .leader-grid--6 { --leader-cols: 3; }
}

@media (max-width: 640px) {
  .leader-grid,
  .leader-grid--3,
  .leader-grid--4,
  .leader-grid--5,
  .leader-grid--6 { --leader-cols: 2; gap: 22px 14px; }
  .leader-card figure { border-radius: 16px; }
  .leader-card-body { padding-top: 14px; }
  .leader-card h3,
  .leader-card--lead h3 { font-size: 1.1rem; }
  .leader-card-body .news-tag { font-size: 0.7rem; letter-spacing: 0.08em; }
  .leader-card p { font-size: 0.88rem; }
}

@media (prefers-reduced-motion: reduce) {
  .leader-card img { transition: none; }
}

.exam-list--single article { grid-template-columns: minmax(0, 1fr); }

/* Centred prefect rows: cards keep a fixed share of the row so short rows sit in the middle */
.leader-group-heading--center { text-align: center; }

.leader-row {
  --per-row: 5;
  --row-gap: clamp(18px, 2.2vw, 30px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(32px, 4vw, 48px) var(--row-gap);
}

.leader-row--4 { --per-row: 4; }

.leader-row > .leader-card {
  flex: 0 0 calc((100% - (var(--per-row) - 1) * var(--row-gap)) / var(--per-row));
  min-width: 0;
}

.leader-row .leader-card-body { text-align: center; }

@media (max-width: 900px) {
  .leader-row,
  .leader-row--4 { --per-row: 3; }
}

@media (max-width: 640px) {
  .leader-row,
  .leader-row--4 { --per-row: 2; --row-gap: 14px; row-gap: 26px; }
}

/* === School Calendar page === */
.term-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.term-card {
  padding: clamp(28px, 3vw, 42px);
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(14, 31, 61, 0.06);
}

.term-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 26px;
}

.term-card h3 {
  color: var(--blue-900);
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  font-weight: 600;
}

.term-badge {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--orange-500);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.term-card dl { margin: 0; }

.term-card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
}

.term-card dt {
  color: var(--ink-500);
  font-size: 0.95rem;
}

.term-card dd {
  margin: 0;
  color: var(--blue-900);
  font-size: 1rem;
  font-weight: 700;
  text-align: right;
}

.term-card--current {
  border-color: transparent;
  background:
    radial-gradient(circle at 90% 0%, rgba(31, 74, 138, 0.7), transparent 45%),
    var(--blue-900);
  box-shadow: var(--shadow-card);
}

.term-card--current h3,
.term-card--current dd { color: var(--white); }
.term-card--current dt { color: rgba(255, 255, 255, 0.7); }
.term-card--current dl > div { border-color: rgba(255, 255, 255, 0.16); }

.event-row--plain { grid-template-columns: 120px minmax(0, 1fr); }
.event-row--plain .event-info h3 { margin: 0; }

.inner-section-heading > p a { color: var(--blue-700); font-weight: 700; }

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

@media (max-width: 640px) {
  .event-row--plain { grid-template-columns: 84px minmax(0, 1fr); }
}

/* === Curriculum page: subjects ===
   One quiet row per stage, ruled like the stage list above it. */
.subject-levels { border-bottom: 1px solid var(--line-soft); }

.subject-level {
  display: grid;
  grid-template-columns: minmax(200px, 0.3fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 88px);
  padding-block: clamp(36px, 4.5vw, 60px);
  border-top: 1px solid var(--line-soft);
}

.subject-level-head h3 {
  color: var(--blue-900);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 600;
  line-height: 1.15;
}

.subject-level-head p {
  margin-top: 10px;
  color: var(--ink-500);
  font-size: 0.92rem;
  line-height: 1.6;
}

.subject-group + .subject-group { margin-top: clamp(32px, 3.5vw, 46px); }

.subject-group h4 {
  margin-bottom: 12px;
  color: var(--ink-500);
  font-family: "Inter", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.subject-list {
  columns: 3;
  column-gap: clamp(24px, 3vw, 48px);
  padding: 0;
  list-style: none;
}

.subject-list li {
  break-inside: avoid;
  padding-block: 6px;
  color: var(--ink-700);
  font-size: 1rem;
  line-height: 1.45;
}

.subject-list li span {
  display: block;
  color: var(--ink-500);
  font-size: 0.8rem;
}

.subject-depts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
}

.subject-dept h5 {
  margin-bottom: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--blue-900);
  font-size: 1.3rem;
  font-weight: 600;
}

.subject-dept .subject-list { columns: 1; }

.subject-extra {
  margin-top: 26px;
  color: var(--ink-500);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .subject-level { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .subject-list { columns: 2; }
}

@media (max-width: 640px) {
  .subject-depts { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .subject-dept .subject-list { columns: 2; }
}

@media (max-width: 380px) {
  .subject-list,
  .subject-dept .subject-list { columns: 1; }
}

/* === Motion system ===
   Every entrance, scroll and hero animation lives here. Anything that moves sits
   inside the no-preference query below, so visitors whose device asks for
   reduced motion get the finished page straight away, with nothing hidden. */
:root {
  --sg-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --sg-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --hero-slide-duration: 7s;
  --hero-fade-duration: 1.6s; /* keep in step with FADE_MS in js/main.js */
}

/* Headline words that rise one by one (split in the markup or by main.js) */
.sg-word { display: inline-block; }

/* Inner page banners: the photo gets its own layer so it can settle into place */
.page-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Homepage hero: spare edge around the photos for the pointer parallax */
.homepage-hero .hero-slider { inset: -24px; }

/* The incoming photo fades in over the outgoing one, so the cross-fade never dips */
.homepage-hero .hero-slider .hero-slide {
  opacity: 0;
  transform: none;
  transition: none;
}

.homepage-hero .hero-slider .hero-slide.is-leaving { z-index: 1; opacity: 1; }
.homepage-hero .hero-slider .hero-slide.is-active { z-index: 2; opacity: 1; }

/* Each photo drifts in its own direction while it is on screen */
.homepage-hero .hero-slide:nth-child(1) { --kb-from: scale(1.04); --kb-to: scale(1.14) translate(-1.6%, -1%); }
.homepage-hero .hero-slide:nth-child(2) { --kb-from: scale(1.14) translate(1.6%, 0.6%); --kb-to: scale(1.04); }
.homepage-hero .hero-slide:nth-child(3) { --kb-from: scale(1.04) translate(-1%, 1%); --kb-to: scale(1.14) translate(1.4%, -0.8%); }
.homepage-hero .hero-slide:nth-child(4) { --kb-from: scale(1.14) translate(-1.4%, -0.8%); --kb-to: scale(1.04); }
.homepage-hero .hero-slide:nth-child(5) { --kb-from: scale(1.04); --kb-to: scale(1.14) translate(1.6%, -1%); }

/* A dark veil the opening photo emerges from */
.homepage-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--blue-900);
  opacity: 0;
  pointer-events: none;
}

.hero-tag > span { position: relative; }

.hero-tag > span::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--orange-500);
  opacity: 0;
}

.hero-underline { position: relative; }

.hero-underline::after {
  content: "";
  position: absolute;
  left: 0.02em;
  right: 0.02em;
  bottom: 0.08em;
  height: 0.06em;
  border-radius: 999px;
  background: var(--orange-500);
  transform-origin: left center;
}

.homepage-hero .hero-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.homepage-hero .hero-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.38) 50%, transparent 65%);
  translate: -110% 0;
  pointer-events: none;
}

.homepage-hero .hero-scroll span:last-child { overflow: hidden; }
.hero-scroll b { display: block; font-weight: inherit; }

/* Slideshow controls (built by main.js): pause button, one progress bar per photo */
.hero-controls {
  position: absolute;
  z-index: 2;
  left: calc((100% - min(100%, var(--content-max))) / 2 + var(--page-gutter));
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.hero-toggle:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.16);
}

/* Pause icon: two bars. Play icon: a triangle. */
.hero-toggle::before {
  content: "";
  width: 10px;
  height: 12px;
  border-inline: 3px solid currentColor;
}

.hero-toggle[data-state="paused"]::before {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent currentColor;
}

.hero-steps { display: flex; gap: 6px; }

.hero-step {
  position: relative;
  width: 42px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.hero-step::before,
.hero-step > span {
  position: absolute;
  inset: 11px 0;
  border-radius: 2px;
}

.hero-step::before {
  content: "";
  background: rgba(255, 255, 255, 0.3);
  transition: background 0.25s ease;
}

.hero-step:hover::before { background: rgba(255, 255, 255, 0.6); }

.hero-step > span {
  background: var(--orange-500);
  transform: scaleX(0);
  transform-origin: left center;
}

.hero-step.is-active > span { transform: scaleX(1); }

.hero-count {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}

.hero-toggle:focus-visible,
.hero-step:focus-visible {
  outline: 2px solid var(--orange-500);
  outline-offset: 3px;
}

/* The CTA band photo is taller than its frame so it can drift as you scroll */
.home-cta > img[data-parallax] {
  top: -14%;
  bottom: auto;
  height: 128%;
}

@media (max-width: 640px) {
  .hero-controls { bottom: 24px; gap: 12px; }
  .hero-step { width: 30px; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Page to page: the header stays put while the page fades through */
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: sg-fade-out 0.28s var(--sg-ease-in-out) both; }
  ::view-transition-new(root) { animation: sg-page-in 0.6s var(--sg-ease-out) both; }

  /* Scroll reveals: main.js adds .reveal-ready to the body and .is-revealed as
     each block arrives. Text rises; image-led blocks open like a curtain. */
  .reveal-ready [data-reveal]:not(.is-revealed) { opacity: 0; }

  .reveal-ready [data-reveal].is-revealed {
    animation: sg-rise 1s var(--sg-ease-out) var(--reveal-delay, 0s) backwards;
  }

  .reveal-ready [data-reveal-media].is-revealed {
    animation-name: sg-curtain;
    animation-duration: 1.25s;
  }

  .reveal-ready [data-reveal-media="zoom"].is-revealed img {
    animation: sg-settle 1.8s var(--sg-ease-out) var(--reveal-delay, 0s) backwards;
  }

  .reveal-ready [data-reveal].is-revealed .section-eyebrow::before {
    transform-origin: left center;
    animation: sg-draw 0.9s var(--sg-ease-out) calc(var(--reveal-delay, 0s) + 0.35s) backwards;
  }

  .reveal-ready [data-reveal].is-revealed [data-split] .sg-word {
    animation: sg-word-rise 1.05s var(--sg-ease-out) calc(var(--reveal-delay, 0s) + 0.12s + var(--w, 0) * 45ms) backwards;
  }

  /* Inner page banners: the photo settles while the title rises */
  .page-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: inherit;
    animation: sg-banner-settle 2.4s var(--sg-ease-out) both;
  }

  .page-banner > * { animation: sg-rise 1s var(--sg-ease-out) 0.15s backwards; }
  .page-banner > h1 { animation: sg-rise-soft 1.2s var(--sg-ease-out) 0.28s backwards; }

  /* Button arrows lean into the hover */
  .btn > span[aria-hidden="true"] { transition: translate 0.35s var(--sg-ease-out); }
  .btn:hover > span[aria-hidden="true"] { translate: 4px 0; }

  /* Homepage hero: the opening sequence */
  .homepage-hero::after { animation: sg-veil 1.8s var(--sg-ease-in-out) both; }
  .homepage-hero .hero-slider { animation: sg-hero-settle 2.8s var(--sg-ease-out) both; }
  .homepage-hero .hero-tag { animation: sg-rise-soft 0.9s var(--sg-ease-out) 0.2s backwards; }

  .homepage-hero h1 .sg-word {
    animation: sg-word-rise 1.15s var(--sg-ease-out) calc(0.4s + var(--w, 0) * 70ms) backwards;
  }

  .hero-underline::after { animation: sg-draw 0.9s var(--sg-ease-out) 1.75s backwards; }
  .homepage-hero .hero-lede { animation: sg-rise-soft 1.1s var(--sg-ease-out) 0.95s backwards; }
  .homepage-hero .hero-actions > * { animation: sg-rise 0.9s var(--sg-ease-out) 1.15s backwards; }
  .homepage-hero .hero-actions > :nth-child(2) { animation-delay: 1.25s; }

  .homepage-hero .hero-scroll,
  .hero-controls { animation: sg-fade-in 1s ease 1.7s backwards; }

  /* Homepage hero: what keeps moving afterwards */
  .homepage-hero .hero-slider .hero-slide.is-active {
    transition: opacity var(--hero-fade-duration) var(--sg-ease-in-out);
  }

  .homepage-hero .hero-slider .hero-slide.is-active,
  .homepage-hero .hero-slider .hero-slide.is-leaving {
    animation: sg-ken-burns calc(var(--hero-slide-duration) + var(--hero-fade-duration) + 1s) linear both;
  }

  .hero-step.is-active > span { animation: sg-hero-progress var(--hero-slide-duration) linear both; }
  .hero-tag > span::after { animation: sg-ping 2.6s cubic-bezier(0, 0, 0.2, 1) 2.2s infinite; }
  .homepage-hero .hero-cta::after { animation: sg-sheen 7s var(--sg-ease-in-out) 2.8s infinite; }
  .hero-scroll b { animation: sg-scroll-cue 2.4s var(--sg-ease-in-out) 2.4s infinite backwards; }

  /* Paused by the visitor, or scrolled out of view */
  .homepage-hero:is(.is-paused, .is-offscreen) :is(.hero-slide, .hero-step > span, .hero-scroll b),
  .homepage-hero:is(.is-paused, .is-offscreen) .hero-tag > span::after,
  .homepage-hero:is(.is-paused, .is-offscreen) .hero-cta::after {
    animation-play-state: paused;
  }
}

@media (prefers-reduced-motion: reduce) {
  /* Without autoplay there is nothing to pause; the progress bars still pick a photo */
  .hero-toggle { display: none; }
}

@media print {
  .reveal-ready [data-reveal] { opacity: 1 !important; animation: none !important; }
  .hero-controls { display: none; }
}

@keyframes sg-rise { from { opacity: 0; translate: 0 34px; } }
@keyframes sg-rise-soft { from { opacity: 0; translate: 0 20px; filter: blur(8px); } }
@keyframes sg-fade-in { from { opacity: 0; } }
@keyframes sg-fade-out { to { opacity: 0; } }
@keyframes sg-veil { from { opacity: 1; } to { opacity: 0; } }
@keyframes sg-page-in { from { opacity: 0; translate: 0 18px; } }
@keyframes sg-draw { from { transform: scaleX(0); } }
@keyframes sg-settle { from { scale: 1.22; } }

/* Negative insets keep the card's shadow visible while it opens */
@keyframes sg-curtain {
  from { clip-path: inset(100% -80px -80px -80px); translate: 0 40px; }
  to { clip-path: inset(-80px); translate: 0 0; }
}

/* The clip edge stays put while the word slides up through it */
@keyframes sg-word-rise {
  from { transform: translateY(115%); clip-path: inset(-0.2em -0.15em 125% -0.15em); }
  to { transform: none; clip-path: inset(-0.2em -0.15em -0.3em -0.15em); }
}

@keyframes sg-banner-settle { from { transform: scale(1.14); } to { transform: none; } }
@keyframes sg-hero-settle { from { scale: 1.12; } to { scale: 1; } }
@keyframes sg-ken-burns { from { transform: var(--kb-from, scale(1.04)); } to { transform: var(--kb-to, scale(1.14)); } }
@keyframes sg-hero-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes sg-ping { 0% { transform: scale(1); opacity: 0.55; } 75%, 100% { transform: scale(3.2); opacity: 0; } }
@keyframes sg-sheen { 0% { translate: -110% 0; } 18%, 100% { translate: 110% 0; } }

@keyframes sg-scroll-cue {
  0% { translate: 0 -150%; opacity: 0; }
  30%, 60% { translate: 0 0; opacity: 1; }
  90%, 100% { translate: 0 150%; opacity: 0; }
}
/* === End Motion system === */
