/* ========================================================
   MAYVILLE HIGH SCHOOL WORDPRESS THEME - MASTER CSS
   Master stylesheet merging all design variations
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=Raleway:wght@300;400;500;600;700&display=swap');

/* ========================================================
   ROOT & TYPOGRAPHY
   ======================================================== */
:root {
  /* Base colors */
  --navy: #0B1D3A;
  --navy-mid: #132B52;
  --navy-light: #1a3a60;
  
  /* Primary palette (default/home) */
  --mhs-pink: #E8B4C8;
  --mhs-pink-light: #F2D1DE;
  --mhs-pink-deep: #C87FA0;
  --dept-primary: #E8B4C8;
  --dept-primary-light: #F2D1DE;
  --dept-primary-deep: #C87FA0;
  
  /* Accents */
  --gold: #C5A55A;
  --gold-light: #D4BA7A;
  
  /* Neutrals */
  --cream: #FAF8F4;
  --cream-dark: #F0EDE5;
  --charcoal: #2C2C2C;
  --text: #3A3A3A;
  --text-light: #6B6B6B;
  --white: #FFFFFF;
  
  /* Legacy checkerboard pattern */
  --checker-dark: #0B1D3A;
  --checker-light: #FFFFFF;
}

/* Department color variations */
body.dept-nursery {
  --dept-primary: #A8C5A0;
  --dept-primary-light: #C8DEC3;
  --dept-secondary: #7FA37A;
  --dept-primary-rgb: 168, 197, 160;
}

body.dept-junior {
  --dept-primary: #4A82B0;
  --dept-primary-light: #6FA0C8;
  --dept-secondary: #5BA4A4;
  --dept-primary-rgb: 74, 130, 176;
}

body.dept-senior {
  --dept-primary: #8C3A4F;
  --dept-primary-light: #B05A72;
  --dept-primary-rgb: 140, 58, 79;
}

body.dept-wyvern {
  --dept-primary: #7A9E7E;
  --dept-primary-light: #A3C4A6;
  --dept-primary-rgb: 122, 158, 126;
}

body.dept-online {
  --dept-primary: #2E86AB;
  --dept-primary-light: #5AA9C8;
  --dept-secondary: #1B6B8A;
  --dept-primary-rgb: 46, 134, 171;
}

body.dept-dlu {
  --dept-primary: #5BA4A4;
  --dept-primary-light: #7EC4C4;
  --dept-primary-rgb: 91, 164, 164;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Raleway', sans-serif;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ========================================================
   TOP BAR
   ======================================================== */
.top-bar {
  background: var(--navy);
  padding: 8px 0;
  font-size: 12px;
  letter-spacing: .5px;
  color: rgba(255, 255, 255, .5);
  border-bottom: 2px solid var(--mhs-pink);
  position: relative;
  z-index: 1101;
}

.top-bar a {
  color: rgba(255, 255, 255, .7);
  text-decoration: none;
  transition: color .3s;
  font-size: 13px;
  font-weight: 500;
}

.top-bar a:hover {
  color: var(--mhs-pink);
}

/* ========================================================
   MAIN HEADER & LOGO
   ======================================================== */
.main-header {
  position: absolute;
  top: 42px;
  left: 0;
  right: 0;
  z-index: 1100;
  transition: all .4s;
}

.main-header.scrolled {
  position: fixed;
  top: 0;
  background: rgba(11, 29, 58, .97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 30px rgba(0, 0, 0, .3);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-crest {
  height: 90px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .3));
  transition: transform .3s;
}

.logo:hover .logo-crest {
  transform: scale(1.05);
}

.logo-text h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 30px;
  color: var(--white);
  letter-spacing: 1px;
  line-height: 1.1;
}

.logo-text span {
  font-size: 9px;
  color: var(--mhs-pink);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 500;
  display: block;
  margin-top: 4px;
}

.logo-motto {
  font-size: 9px;
  color: var(--mhs-pink);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 500;
  font-style: italic;
  margin-top: 2px;
  opacity: 0.8;
  display: block;
}

body.menu-open .top-bar {
  opacity: 0;
  visibility: hidden;
}

body.menu-open .main-header {
  position: fixed;
  top: 0;
  background: rgba(11, 29, 58, .97);
  backdrop-filter: blur(12px);
}

/* ========================================================
   DESKTOP NAVIGATION
   ======================================================== */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-item {
  position: relative;
  padding: 4px 16px;
}

.nav-item > a {
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color .3s;
  position: relative;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item > a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--dept-primary);
  transition: width .3s;
}

.nav-item:hover > a {
  color: var(--white);
}

.nav-item:hover > a::after {
  width: 100%;
}

.nav-item > a .nav-arrow {
  width: 8px;
  height: 8px;
  stroke: rgba(255, 255, 255, .4);
  fill: none;
  stroke-width: 2;
  transition: transform .3s, stroke .3s;
}

.nav-item:hover > a .nav-arrow {
  stroke: var(--dept-primary);
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .3s ease;
  z-index: 1200;
}

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

.nav-dropdown a {
  display: block;
  padding: 10px 24px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .5px;
  color: rgba(255, 255, 255, .55);
  text-decoration: none;
  transition: all .2s;
  text-transform: none;
}

.nav-dropdown a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, .04);
  padding-left: 28px;
}

.nav-dropdown a::after {
  display: none !important;
}

.nav-dropdown .dd-divider {
  height: 1px;
  background: rgba(255, 255, 255, .06);
  margin: 8px 0;
}

.nav-dropdown .dd-label {
  padding: 10px 24px 4px;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dept-primary);
  font-weight: 600;
}

.nav-cta-btn {
  background: var(--dept-primary) !important;
  color: var(--navy) !important;
  padding: 10px 24px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  border: none;
  transition: all .3s !important;
  text-decoration: none !important;
  margin-left: 8px;
}

.nav-cta-btn::after {
  display: none !important;
}

.nav-cta-btn:hover {
  background: var(--dept-primary-light) !important;
  transform: translateY(-1px);
}

/* Laptop breakpoint: tighter nav spacing */
@media (max-width: 1399px) {
  .logo-crest {
    height: 70px;
  }
  .logo-text h1 {
    font-size: 24px;
  }
  .logo {
    gap: 10px;
  }
  .nav-item {
    padding: 4px 10px;
  }
  .nav-item > a {
    font-size: 11px;
    letter-spacing: 1px;
  }
  .nav-cta-btn {
    padding: 8px 16px !important;
    font-size: 10px !important;
    margin-left: 4px;
  }
}

@media (max-width: 1199px) {
  .logo-crest {
    height: 60px;
  }
  .logo-text h1 {
    font-size: 22px;
  }
  .logo-text span,
  .logo-motto {
    font-size: 8px;
    letter-spacing: 2px;
  }
  .nav-item {
    padding: 4px 6px;
  }
  .nav-item > a {
    font-size: 10px;
    letter-spacing: 0.8px;
  }
  .nav-cta-btn {
    padding: 7px 12px !important;
    font-size: 10px !important;
    letter-spacing: 1px !important;
    margin-left: 2px;
  }
}

/* ========================================================
   HAMBURGER & MOBILE MENU
   ======================================================== */
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
  cursor: pointer;
  z-index: 1110;
  background: none;
  border: 1px solid rgba(255, 255, 255, .2);
  padding: 0;
  transition: border-color .3s;
}

.hamburger:hover {
  border-color: var(--dept-primary);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: all .4s cubic-bezier(.68, -.55, .27, 1.55);
}

.hamburger span:nth-child(1) {
  top: 14px;
}

.hamburger span:nth-child(2) {
  top: 21px;
  width: 16px;
}

.hamburger span:nth-child(3) {
  top: 28px;
}

.hamburger.active span:nth-child(1) {
  top: 21px;
  transform: translateX(-50%) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-50%) translateX(20px);
}

.hamburger.active span:nth-child(3) {
  top: 21px;
  transform: translateX(-50%) rotate(-45deg);
}

.hamburger.active span {
  background: var(--dept-primary);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 80px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease, visibility .5s;
  overflow-y: auto;
}

.mobile-menu::before {
  content: '';
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy);
  z-index: -1;
}

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

.mobile-menu-bg-pattern {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: .03;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 40px, var(--dept-primary) 40px, var(--dept-primary) 41px);
}

.mobile-menu-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: center;
  width: 100%;
  max-width: 360px;
}

.mobile-menu nav > a,
.mobile-menu nav > .mm-group > a.mm-parent {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--white);
  text-decoration: none;
  padding: 10px 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .4s ease, transform .4s ease, color .3s;
}

.mobile-menu.open nav > a,
.mobile-menu.open nav > .mm-group > a.mm-parent {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.open nav > *:nth-child(1) {
  transition-delay: .1s;
}

.mobile-menu.open nav > *:nth-child(2) {
  transition-delay: .15s;
}

.mobile-menu.open nav > *:nth-child(3) {
  transition-delay: .2s;
}

.mobile-menu.open nav > *:nth-child(4) {
  transition-delay: .25s;
}

.mobile-menu.open nav > *:nth-child(5) {
  transition-delay: .3s;
}

.mobile-menu.open nav > *:nth-child(6) {
  transition-delay: .35s;
}

.mobile-menu.open nav > *:nth-child(7) {
  transition-delay: .4s;
}

.mobile-menu nav > a:hover,
.mobile-menu nav > .mm-group > a.mm-parent:hover {
  color: var(--dept-primary);
}

.mm-group {
  text-align: center;
}

.mm-parent {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.mm-parent .mm-arrow {
  width: 14px;
  height: 14px;
  stroke: rgba(255, 255, 255, .3);
  fill: none;
  stroke-width: 2;
  transition: transform .3s, stroke .3s;
}

.mm-group.open .mm-parent .mm-arrow {
  transform: rotate(180deg);
  stroke: var(--dept-primary);
}

.mm-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}

.mm-group.open .mm-sub {
  max-height: 500px;
}

.mm-sub a {
  display: block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  padding: 8px 0;
  text-decoration: none;
  transition: color .3s;
}

.mm-sub a:hover {
  color: var(--dept-primary);
}

.mm-sub .mm-sublabel {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dept-primary);
  padding: 12px 0 4px;
  font-weight: 600;
  font-family: 'Raleway', sans-serif;
}

.mobile-division-nav {
  display: flex;
  gap: 2px;
  margin-top: 48px;
  width: 100%;
  max-width: 400px;
  padding: 0 24px;
}

.mobile-division-nav .division-link {
  flex: 1;
  text-align: center;
  padding: 16px 8px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .06);
  text-decoration: none;
  transition: all .3s;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mobile-division-nav .division-link:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .12);
}

.mobile-division-nav .division-link span:first-child {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.2;
}

.mobile-division-nav .division-link span:last-child {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .35);
  font-weight: 500;
}

.mobile-division-nav .division-link.active {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .25);
  box-shadow: 0 0 12px rgba(255, 255, 255, .06);
}

.mobile-division-nav .division-link.active span:first-child {
  color: var(--white);
}

.mobile-division-nav .division-link.active span:last-child {
  color: rgba(255, 255, 255, .6);
}

.mobile-menu-footer {
  margin-top: 48px;
  opacity: 0;
  transform: translateY(20px);
  transition: all .4s ease .5s;
}

.mobile-menu.open .mobile-menu-footer {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-footer .btn-mhs {
  border: 1px solid var(--dept-primary);
  color: var(--dept-primary);
  padding: 14px 40px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: all .3s;
}

.mobile-menu-footer .btn-mhs:hover {
  background: var(--dept-primary);
  color: var(--navy);
}

/* ========================================================
   BUTTONS
   ======================================================== */
.btn-mhs-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 34px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--dept-primary);
  color: var(--navy);
  border: none;
  transition: all .3s;
  font-family: 'Raleway', sans-serif;
}

.btn-mhs-primary:hover {
  background: var(--dept-primary-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232, 180, 200, .3);
}

.btn-mhs-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 34px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .3);
  transition: all .3s;
  font-family: 'Raleway', sans-serif;
}

.btn-mhs-outline:hover {
  border-color: var(--dept-primary);
  color: var(--dept-primary);
}

.btn-mhs-navy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 34px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--navy);
  color: var(--white);
  border: none;
  transition: all .3s;
  font-family: 'Raleway', sans-serif;
}

.btn-mhs-navy:hover {
  background: var(--navy-mid);
  color: var(--white);
  transform: translateY(-2px);
}

/* ========================================================
   SECTION LABELS & TITLES
   ======================================================== */
.section-label {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--dept-primary-deep);
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.2;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-light);
  margin-top: 14px;
  line-height: 1.7;
  font-weight: 300;
}

/* ========================================================
   HOME PAGE HERO
   ======================================================== */
.hero {
  position: relative;
  min-height: max(650px, 100svh);   /* at least viewport height, never shorter than 650px */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy, #0B1D3A);
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 29, 58, 0.5) 0%, rgba(11, 29, 58, 0.25) 40%, rgba(11, 29, 58, 0.55) 100%);
  z-index: 1;
}

.hero-fallback-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(19, 43, 82, 0.9) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(44, 80, 130, 0.5) 0%, transparent 50%),
    linear-gradient(135deg, #0a1628 0%, #162d50 30%, #1a3a60 60%, #0f2440 100%);
  background-size: cover;
  background-position: center;
  animation: heroShift 20s ease-in-out infinite alternate;
}

/* Hide fallback when video is playing */
.hero-has-video .hero-fallback-bg {
  display: none;
}

@keyframes heroShift {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.06);
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 820px;
  padding: 0 24px;
  animation: fadeUp 1s ease-out;
}

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

.hero-crest-img {
  width: 90px;
  height: auto;
  margin-bottom: 28px;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.4));
  animation: fadeUp 0.8s ease-out;
  display: none !important;
  display: none !important;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--dept-primary);
  padding: 7px 22px;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dept-primary);
  margin-bottom: 28px;
  font-weight: 500;
  animation: fadeUp 0.9s ease-out;
}

.hero h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 60px;
  font-weight: 300;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 22px;
  letter-spacing: -0.5px;
}

.hero h2 em {
  font-style: italic;
  color: var(--dept-primary);
  font-weight: 500;
  position: relative;
}

.hero p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 36px;
  font-weight: 300;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .5);
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-v-point {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 80px;
  overflow: visible;
}

.hero-v-point svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeUp 1.4s ease-out;
}

.hero-scroll-indicator span {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--dept-primary), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

/* ========================================================
   DEPARTMENT HERO
   ======================================================== */
.jr-hero {
  position: relative;
  min-height: max(650px, 100svh);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.jr-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.jr-hero-bg video,
.jr-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jr-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,29,58,0.6) 0%, rgba(11,29,58,0.85) 100%);
  z-index: 1;
}

.hero-geo {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hero-geo-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.02);
}

.hero-geo-shape:nth-child(1) { width: 300px; height: 300px; top: -80px; right: -60px; }
.hero-geo-shape:nth-child(2) { width: 200px; height: 200px; bottom: 20%; left: -40px; }
.hero-geo-shape:nth-child(3) { width: 150px; height: 150px; top: 30%; right: 25%; }
.hero-geo-shape:nth-child(4) { width: 100px; height: 100px; bottom: 10%; right: 10%; }

.jr-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  padding: 120px 24px 100px;
}

.hero-division-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dept-primary);
  font-weight: 600;
  margin-bottom: 24px;
}

.jr-hero-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 16px;
}

.jr-hero-content h2 em {
  font-style: italic;
  color: var(--dept-primary);
}

.jr-hero-content p {
  font-family: 'Raleway', sans-serif;
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Hero primary CTA — green (dept-primary), uppercase, rectangular */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--dept-primary);
  color: var(--navy);
  border: 2px solid var(--dept-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  font-family: 'Raleway', sans-serif;
  transition: all 0.3s ease;
}

.btn-hero-primary:hover {
  background: var(--dept-primary-light);
  border-color: var(--dept-primary-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Hero secondary CTA — transparent, white border, uppercase */
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.35);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  font-family: 'Raleway', sans-serif;
  transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateY(-2px);
}

.hero-play-toggle {
  position: absolute;
  bottom: 100px;
  right: 30px;
  z-index: 4;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.hero-play-toggle:hover {
  background: rgba(255,255,255,0.25);
}

.hero-play-toggle svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
  stroke: var(--white);
}

.hero-play-toggle.playing .play-icon { display: none; }
.hero-play-toggle.playing .pause-icon { display: block; }
.hero-play-toggle:not(.playing) .play-icon { display: block; }
.hero-play-toggle:not(.playing) .pause-icon { display: none; }

/* ── Division navigation bar ── */
.division-nav-bar {
  background: var(--white);
  border-bottom: 1px solid var(--cream-dark);
  padding: 0;
  position: relative;
  z-index: 90;
}

.division-nav {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.division-nav::-webkit-scrollbar { display: none; }

.division-nav .division-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 24px;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
}

.division-nav .division-link:hover {
  background: var(--cream);
}

.division-nav .division-link.active {
  border-bottom-color: var(--dept-primary);
}

.division-nav .division-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.5px;
}

.division-nav .division-age {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
}

.division-nav .division-link.active .division-name {
  color: var(--dept-primary);
}

/* ── Feature card hover ── */
.feature-card {
  background: var(--cream);
  border-radius: 8px;
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(11,29,58,0.08);
}

@media (max-width: 768px) {
  .jr-hero { min-height: max(500px, 100svh); }
  .jr-hero-content { padding: 100px 24px 120px; }
  .jr-hero-content h2 { font-size: 36px; }
  .jr-hero-content p { font-size: 16px; }
  .hero-cta-group { flex-direction: column; align-items: center; }
  .btn-hero-primary,
  .btn-hero-secondary { width: 100%; max-width: 280px; justify-content: center; }
  .hero-play-toggle { bottom: 80px; right: 16px; }
  .division-nav-bar { /* no longer sticky */ }
  .division-nav .division-link { padding: 10px 16px; }
}

/* ========================================================
   DIVISION CARDS SECTION
   ======================================================== */
.divisions-section {
  padding: 100px 0;
  background: var(--white);
}

.division-card {
  position: relative;
  height: 440px;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 24px;
}

.division-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s ease;
}

.division-card:hover .division-card-img {
  transform: scale(1.06);
}

.division-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 29, 58, 0.85) 0%, rgba(11, 29, 58, 0.2) 50%, rgba(11, 29, 58, 0.1) 100%);
  z-index: 1;
  transition: background 0.4s;
}

.division-card:hover .division-card-overlay {
  background: linear-gradient(to top, rgba(11, 29, 58, 0.9) 0%, rgba(11, 29, 58, 0.3) 50%, rgba(11, 29, 58, 0.15) 100%);
}

.division-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 32px;
}

.division-age {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mhs-pink);
  font-weight: 600;
  margin-bottom: 6px;
}

.division-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  color: var(--white);
  font-weight: 500;
  margin-bottom: 10px;
}

.division-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin-bottom: 18px;
  font-weight: 300;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
}

.division-card:hover .division-desc {
  max-height: 80px;
  opacity: 1;
}

.division-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mhs-pink);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease 0.1s;
}

.division-card:hover .division-link {
  opacity: 1;
  transform: translateY(0);
}

.division-link:hover {
  color: var(--mhs-pink-light);
}

.division-link svg {
  transition: transform 0.3s;
}

.division-link:hover svg {
  transform: translateX(4px);
}

.division-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  background: rgba(11, 29, 58, 0.3);
  transition: all 0.3s;
}

.division-card:hover .division-badge {
  border-color: var(--mhs-pink);
  background: rgba(232, 180, 200, 0.15);
}

.division-badge svg {
  width: 20px;
  height: 20px;
  stroke: white;
  fill: none;
  stroke-width: 1.5;
}

/* ========================================================
   DEPARTMENT HERO SECTION
   ======================================================== */
.dept-hero {
  position: relative;
  height: 75vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.dept-hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.dept-hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dept-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 29, 58, 0.3) 0%, rgba(11, 29, 58, 0.5) 100%);
  z-index: 1;
}

.dept-hero-fallback-bg {
  display: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, var(--navy-light) 100%);
  animation: heroShift 20s ease-in-out infinite alternate;
}

.dept-hero-content {
  position: relative;
  z-index: 10;
  text-align: left;
  max-width: 800px;
  padding: 0 48px 60px;
}

.dept-hero-label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--dept-primary);
  font-weight: 600;
  margin-bottom: 16px;
}

.dept-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.dept-hero p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  max-width: 600px;
  font-weight: 300;
}

/* ========================================================
   STATS BAND
   ======================================================== */
.stats-band {
  background: var(--navy);
  padding: 60px 0;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-item {
  color: var(--white);
}

.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 600;
  color: var(--dept-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* ========================================================
   WELCOME/HEAD'S MESSAGE
   ======================================================== */
/* ── DEPARTMENT WELCOME SECTION ────────────────────────── */
.dept-welcome {
  padding: 100px 0;
  background: var(--white, #fff);
}

.dept-welcome__image-col {
  position: relative;
}

.dept-welcome__image-wrap {
  position: relative;
  overflow: visible;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(11, 29, 58, 0.12);
}

.dept-welcome__image-wrap img.dept-welcome__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Quote overlay — sits on bottom-left of the image */
.dept-welcome__quote-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 40%;
  background: rgba(11, 29, 58, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 32px 28px 24px;
  border-radius: 0 0 0 8px;
}

.dept-welcome__quote-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-style: italic;
  color: #fff;
  line-height: 1.6;
  margin: 0 0 12px 0;
}

.dept-welcome__quote-attr {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dept-primary);
  display: block;
}

/* Content column */
.dept-welcome__content-col {
  padding-top: 20px;
}

.dept-welcome__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--dept-primary);
  margin-bottom: 16px;
}

.dept-welcome__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 400;
  color: var(--navy, #0B1D3A);
  margin-bottom: 24px;
  line-height: 1.2;
}

.dept-welcome__body {
  font-size: 16px;
  color: var(--text, #4A5568);
  line-height: 1.8;
  margin-bottom: 28px;
}

.dept-welcome__body p {
  margin-bottom: 16px;
}

.dept-welcome__body p:last-child {
  margin-bottom: 0;
}

/* CTA button — uses dept-primary (same colour as footer CTA section) */
.btn-mhs-welcome {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--dept-primary);
  color: var(--navy);
  border: 2px solid var(--dept-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  font-family: 'Raleway', sans-serif;
  transition: all 0.3s ease;
}

.btn-mhs-welcome:hover {
  background: var(--dept-primary-light);
  border-color: var(--dept-primary-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Signature */
.dept-welcome__sig {
  margin-top: 40px;
}

.dept-welcome__sig-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--navy, #0B1D3A);
  margin: 0 0 4px 0;
}

.dept-welcome__sig-role {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--dept-primary);
  font-weight: 600;
  margin: 0;
}

@media (max-width: 991px) {
  .dept-welcome {
    padding: 60px 0;
  }
  .dept-welcome__content-col {
    padding-top: 40px;
  }
  .dept-welcome__quote-overlay {
    right: 20%;
  }
}

@media (max-width: 575px) {
  .dept-welcome__title {
    font-size: 32px;
  }
  .dept-welcome__quote-overlay {
    position: relative;
    right: 0;
    border-radius: 0 0 8px 8px;
  }
}

/* ── DEPARTMENT GALLERY SECTION ───────────────────────── */
.dept-gallery {
  padding: 100px 0;
  background: #FFFFFF;
}

.dept-gallery__header {
  text-align: center;
  margin-bottom: 48px;
}

.dept-gallery__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--dept-primary);
  display: block;
  margin-bottom: 12px;
}

.dept-gallery__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 400;
  color: var(--navy, #0B1D3A);
  margin: 0 0 12px 0;
}

.dept-gallery__subtitle {
  font-size: 16px;
  color: var(--text-light);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Grid: 12-col, row 1 = 2 large (7+5), row 2 = 3 equal (4+4+4) */
.dept-gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 375px 375px;
  gap: 16px;
}

/* First 2 items span row 1 */
.dept-gallery__item--large:nth-child(1) { grid-column: 1 / 8; grid-row: 1; }
.dept-gallery__item--large:nth-child(2) { grid-column: 8 / 13; grid-row: 1; }

/* Next 3 items span row 2 */
.dept-gallery__item--small:nth-child(3) { grid-column: 1 / 5; grid-row: 2; }
.dept-gallery__item--small:nth-child(4) { grid-column: 5 / 9; grid-row: 2; }
.dept-gallery__item--small:nth-child(5) { grid-column: 9 / 13; grid-row: 2; }

/* If more than 5 categories, extra items auto-flow */
.dept-gallery__item:nth-child(n+6) { grid-column: span 4; }

.dept-gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: transform 0.4s ease;
  display: block;
  text-decoration: none;
  color: inherit;
  height: 375px;
}

.dept-gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 29, 58, 0.7) 0%, transparent 60%);
  transition: opacity 0.3s ease;
}

.dept-gallery__item:hover {
  transform: scale(1.02);
}

.dept-gallery__item:hover::after {
  opacity: 0.9;
}

/* Photo count badge (top-right) — circle with grid icon + count overlay */
.dept-gallery__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(11, 29, 58, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
}

.dept-gallery__badge svg {
  width: 18px;
  height: 18px;
  stroke: rgba(255, 255, 255, 0.7);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dept-gallery__badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: var(--dept-primary);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  color: var(--navy, #0B1D3A);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Caption (bottom-left) */
.dept-gallery__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 24px;
}

.dept-gallery__cat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--dept-primary);
  display: block;
  margin-bottom: 4px;
}

.dept-gallery__cat-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  margin: 0;
}

.dept-gallery__item--large .dept-gallery__cat-title {
  font-size: 26px;
}

@media (max-width: 991px) {
  .dept-gallery { padding: 60px 0; }
  .dept-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .dept-gallery__item--large:nth-child(1),
  .dept-gallery__item--large:nth-child(2),
  .dept-gallery__item--small:nth-child(3),
  .dept-gallery__item--small:nth-child(4),
  .dept-gallery__item--small:nth-child(5),
  .dept-gallery__item:nth-child(n+6) {
    grid-column: span 1;
    grid-row: auto;
    min-height: 340px;
  }
}

@media (max-width: 575px) {
  .dept-gallery__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .dept-gallery__item--large:nth-child(1),
  .dept-gallery__item--large:nth-child(2),
  .dept-gallery__item--small:nth-child(3),
  .dept-gallery__item--small:nth-child(4),
  .dept-gallery__item--small:nth-child(5),
  .dept-gallery__item:nth-child(n+6) {
    grid-column: 1;
    min-height: 300px;
  }
  .dept-gallery__title { font-size: 32px; }
}

/* ========================================================
   CUSTOM LIGHTBOX (matches original design)
   ======================================================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(6, 13, 24, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  opacity: 0;
  transition: opacity 0.4s;
}

.lightbox-overlay.active {
  display: flex;
  flex-direction: column;
}

.lightbox-overlay.visible {
  opacity: 1;
}

.lightbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  flex-shrink: 0;
}

.lightbox-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.lightbox-title span {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dept-primary);
  font-weight: 600;
}

.lightbox-title h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  color: #fff;
  font-weight: 500;
  margin: 0;
}

.lightbox-counter {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
}

.lightbox-close {
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  color: rgba(255, 255, 255, 0.6);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.lightbox-close svg {
  stroke: currentColor;
}

.lightbox-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.lightbox-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0 80px;
}

.lightbox-image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.4s, transform 0.4s;
}

.lightbox-image-wrapper img.lb-visible {
  opacity: 1;
  transform: scale(1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(11, 29, 58, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  z-index: 2;
}

.lightbox-nav:hover {
  background: var(--dept-primary);
  border-color: var(--dept-primary);
}

.lightbox-nav svg {
  width: 20px;
  height: 20px;
  stroke: rgba(255, 255, 255, 0.7);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox-nav:hover svg {
  stroke: var(--navy, #0B1D3A);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-thumbnails {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 20px 32px;
  flex-shrink: 0;
  overflow-x: auto;
}

.lightbox-thumb {
  width: 64px;
  height: 48px;
  flex-shrink: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.4;
  transition: 0.3s;
  overflow: hidden;
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-thumb.active {
  opacity: 1;
  border-color: var(--dept-primary);
}

.lightbox-thumb:hover {
  opacity: 0.8;
}

@media (max-width: 767px) {
  .lightbox-header {
    padding: 16px 20px;
  }
  .lightbox-title h4 {
    font-size: 18px;
  }
  .lightbox-image-wrapper {
    padding: 0 48px;
  }
  .lightbox-nav {
    width: 40px;
    height: 40px;
  }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-thumbnails {
    padding: 12px 16px;
    gap: 6px;
  }
  .lightbox-thumb {
    width: 48px;
    height: 36px;
  }
}

/* ========================================================
   SUBJECT/COURSE SHOWCASE
   ======================================================== */
.subjects-section {
  padding: 100px 0;
  background: var(--cream);
}

.subject-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.subject-card {
  background: var(--white);
  padding: 40px;
  text-align: center;
  transition: all 0.4s;
  border-top: 3px solid var(--dept-primary);
}

.subject-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-top-color: var(--dept-primary-deep);
}

.subject-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: var(--navy);
  margin-bottom: 16px;
  font-weight: 500;
}

.subject-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  font-weight: 300;
}

/* ========================================================
   GALLERY & LIGHTBOX
   ======================================================== */
.gallery-section {
  padding: 100px 0;
  background: var(--white);
}

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

.gallery-item {
  position: relative;
  height: 300px;
  overflow: hidden;
  cursor: pointer;
  border-radius: 4px;
}

/* Department gallery items override legacy .gallery-item height */
.dept-gallery__grid .gallery-item {
  height: 375px;
  border-radius: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-icon {
  width: 50px;
  height: 50px;
  background: var(--dept-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 24px;
}

/* ========================================================
   PARALLAX QUOTE BAND
   ======================================================== */
.quote-band {
  position: relative;
  padding: 80px 0;
  background: var(--navy);
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.quote-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 29, 58, 0.7);
  z-index: 1;
}

.quote-band-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.quote-band h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 24px;
  font-style: italic;
}

.quote-band-attribution {
  font-size: 14px;
  color: var(--dept-primary);
  font-weight: 500;
  letter-spacing: 1px;
}

/* ========================================================
   VIDEO SECTION WITH PLAY OVERLAY
   ======================================================== */
.video-section {
  padding: 100px 0;
  background: var(--white);
}

.video-container {
  position: relative;
  height: 500px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 29, 58, 0.4);
  z-index: 5;
  cursor: pointer;
  transition: all 0.4s;
}

.video-container:hover .video-play-overlay {
  background: rgba(11, 29, 58, 0.6);
}

.video-play-button {
  width: 80px;
  height: 80px;
  background: var(--dept-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.video-container:hover .video-play-button {
  transform: scale(1.1);
  box-shadow: 0 15px 50px rgba(232, 180, 200, 0.4);
}

.video-play-button::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 24px solid var(--navy);
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  margin-left: 4px;
}

/* ========================================================
   TIMELINE / A DAY IN THE LIFE
   ======================================================== */
.timeline-section {
  padding: 100px 0;
  background: var(--cream);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--dept-primary);
  top: 0;
}

.timeline-item {
  margin-bottom: 50px;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  margin-left: 0;
  margin-right: auto;
  text-align: right;
  padding-right: 50px;
}

.timeline-item:nth-child(even) {
  margin-left: auto;
  margin-right: 0;
  padding-left: 50px;
}

.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--white);
  border: 3px solid var(--dept-primary);
  border-radius: 50%;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
}

.timeline-content {
  background: var(--white);
  padding: 32px;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.timeline-time {
  font-size: 13px;
  font-weight: 600;
  color: var(--dept-primary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.timeline-content h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 12px;
  font-weight: 500;
}

.timeline-content p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  font-weight: 300;
}

/* ========================================================
   ENRICHMENT CARDS
   ======================================================== */
.enrichment-section {
  padding: 100px 0;
  background: var(--white);
}

.enrichment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.enrichment-card {
  text-align: center;
  padding: 40px;
  transition: all 0.4s;
  border: 1px solid var(--cream-dark);
  border-radius: 4px;
}

.enrichment-card:hover {
  border-color: var(--dept-primary);
  box-shadow: 0 15px 40px rgba(232, 180, 200, 0.15);
  transform: translateY(-4px);
}

.enrichment-icon {
  font-size: 48px;
  margin-bottom: 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.enrichment-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  color: var(--navy);
  margin-bottom: 16px;
  font-weight: 500;
}

.enrichment-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  font-weight: 300;
}

/* ========================================================
   PATHWAY STEPS / NUMBERED PROGRESSION
   ======================================================== */
.pathway-section {
  padding: 100px 0;
  background: var(--cream);
}

.pathway-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.pathway-step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--dept-primary);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 600;
  margin: 0 auto 20px;
}

.pathway-step h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 12px;
  font-weight: 500;
}

.pathway-step p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  font-weight: 300;
}

.pathway-step::after {
  content: '';
  position: absolute;
  top: 30px;
  left: calc(100% + 20px);
  width: calc(100% - 40px);
  height: 2px;
  background: var(--dept-primary-light);
}

.pathway-step:last-child::after {
  display: none;
}

/* ========================================================
   TESTIMONIALS
   ======================================================== */
.testimonials-section {
  padding: 100px 0;
  background: var(--white);
}

.testimonial-card {
  background: var(--cream);
  padding: 40px;
  border: 1px solid var(--cream-dark, #F0EDE5);
  border-radius: 0;
  position: relative;
  height: 100%;
  transition: 0.4s;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(11, 29, 58, 0.06);
}

.testimonial-card::before {
  content: '\201C';
  font-family: 'Cormorant Garamond', serif;
  font-size: 80px;
  color: var(--mhs-pink, #E8B4C8);
  line-height: 1;
  position: absolute;
  top: 16px;
  left: 32px;
  opacity: 0.3;
}

.testimonial-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--navy);
  line-height: 1.6;
  font-weight: 400;
  margin: 0 0 24px;
}

.testimonial-author {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dept-primary);
  font-weight: 600;
}

/* ========================================================
   FAQ SECTION
   ======================================================== */
.faq-section {
  padding: 100px 0;
  background: var(--cream);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-bottom: 1px solid var(--cream-dark);
  padding: 32px 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}

.faq-question:hover {
  color: var(--dept-primary);
}

.faq-toggle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--dept-primary);
  transition: transform 0.3s;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding-top: 0;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-top: 20px;
}

.faq-answer p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  font-weight: 300;
}

/* ========================================================
   CONTACT CARDS
   ======================================================== */
.contact-cards-section {
  padding: 100px 0;
  background: var(--white);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.contact-card {
  text-align: center;
  padding: 48px 32px;
  background: var(--cream);
  border-radius: 4px;
  transition: all 0.4s;
}

.contact-card:hover {
  background: var(--navy);
  box-shadow: 0 15px 40px rgba(11, 29, 58, 0.3);
}

.contact-card:hover h4,
.contact-card:hover p {
  color: var(--white);
}

.contact-card:hover .contact-icon {
  color: var(--dept-primary);
}

.contact-icon {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--navy);
  transition: color 0.3s;
}

.contact-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 12px;
  font-weight: 500;
  transition: color 0.3s;
}

.contact-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  font-weight: 300;
  transition: color 0.3s;
}

/* ========================================================
   PARALLAX QUOTE BAND
   ======================================================== */
.dept-parallax {
  position: relative;
  height: 400px;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-color: var(--navy, #0B1D3A);
  overflow: hidden;
}

/* Dark overlay */
.dept-parallax::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 29, 58, 0.55);
  z-index: 1;
}

.dept-parallax__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 400px;
  padding: 0 24px;
  text-align: center;
}

.dept-parallax__quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 300;
  color: #FFFFFF;
  line-height: 1.3;
  margin: 0;
  max-width: 900px;
}

.dept-parallax__quote em {
  color: var(--dept-primary, #E8B4C8);
  font-style: italic;
}

.dept-parallax__author {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dept-primary, #E8B4C8);
  font-weight: 700;
  margin: 28px 0 0;
}

@media (max-width: 767px) {
  .dept-parallax,
  .dept-parallax__content {
    height: 300px;
  }
  .dept-parallax__quote {
    font-size: 28px;
  }
  .dept-parallax {
    background-attachment: scroll;
  }
}

/* ========================================================
   VIDEO SECTION  ("Life at Nursery")
   ======================================================== */
.dept-video {
  padding: 100px 0;
  background: var(--navy, #0B1D3A);
}

.dept-video__header {
  text-align: center;
  margin-bottom: 60px;
}

.dept-video__label {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--dept-primary, #E8B4C8);
  font-weight: 600;
  display: block;
  margin-bottom: 14px;
}

.dept-video__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px;
  font-weight: 400;
  color: #FFFFFF;
  line-height: 1.2;
  margin: 0 0 16px;
}

.dept-video__subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto;
}

.dept-video__wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.dept-video__wrapper iframe,
.dept-video__wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.dept-video__play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 29, 58, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s;
}

.dept-video__play-overlay:hover {
  background: rgba(11, 29, 58, 0.25);
}

.dept-video__play-btn {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  color: #FFFFFF;
  padding: 0;
}

.dept-video__play-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.7);
  transform: scale(1.08);
}

.dept-video__play-btn svg {
  width: 28px;
  height: 28px;
  margin-left: 4px;
}

@media (max-width: 767px) {
  .dept-video {
    padding: 60px 0;
  }
  .dept-video__title {
    font-size: 32px;
  }
  .dept-video__play-btn {
    width: 60px;
    height: 60px;
  }
  .dept-video__play-btn svg {
    width: 22px;
    height: 22px;
  }
}

/* ========================================================
   A TYPICAL DAY SECTION (timeline)
   ======================================================== */
.dept-day {
  padding: 100px 0;
  background: var(--cream, #FAF8F4);
}

.dept-day__header {
  text-align: center;
  margin-bottom: 60px;
}

.dept-day__label {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--dept-primary, #A8C5A0);
  font-weight: 600;
  display: block;
  margin-bottom: 14px;
}

.dept-day__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px;
  font-weight: 400;
  color: var(--navy, #0B1D3A);
  line-height: 1.2;
  margin: 0 0 16px;
}

.dept-day__subtitle {
  font-size: 15px;
  color: var(--text-light, #6B6B6B);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto;
}

/* Timeline container — vertical line via ::before */
.dept-day__timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.dept-day__timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--dept-primary, #E8B4C8), var(--cream, #F0EDE5));
  transform: translateX(-50%);
}

/* Each timeline item */
.dept-day__item {
  display: flex;
  align-items: flex-start;
  position: relative;
  margin-bottom: 0;
}

/* Left-aligned items (even: 0, 2, 4) — content on left, gap on right */
.dept-day__item .dept-day__content {
  width: calc(50% - 30px);
  margin-right: auto;
  text-align: right;
}

/* Right-aligned items (odd) — content on right */
.dept-day__item--right .dept-day__content {
  width: calc(50% - 30px);
  margin-right: 0;
  margin-left: auto;
  text-align: left;
}

/* The dot on the vertical line */
.dept-day__dot {
  position: absolute;
  left: 50%;
  top: 16px;
  width: 16px;
  height: 16px;
  background: var(--dept-primary, #E8B4C8);
  border: 2.4px solid var(--cream, #FAF8F4);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

/* Content card */
.dept-day__content {
  background: #FFFFFF;
  padding: 32px;
  border: 0.8px solid #F0EDE5;
  border-radius: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s;
}

.dept-day__content:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(11, 29, 58, 0.06);
}

/* Time label */
.dept-day__time {
  font-size: 12px;
  font-weight: 600;
  color: var(--dept-primary, #C87FA0);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Item title */
.dept-day__item-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--navy, #0B1D3A);
  margin: 0 0 10px;
}

/* Description */
.dept-day__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-light, #6B6B6B);
  margin: 0;
}

/* ── Mobile: stack timeline vertically ── */
@media (max-width: 767px) {
  .dept-day {
    padding: 60px 0;
  }
  .dept-day__title {
    font-size: 32px;
  }
  .dept-day__timeline::before {
    left: 20px;
  }
  .dept-day__dot {
    left: 20px;
    top: 20px;
  }
  .dept-day__item .dept-day__content,
  .dept-day__item--right .dept-day__content {
    width: calc(100% - 50px);
    margin-left: 50px;
    margin-right: 0;
    text-align: left;
  }
  .dept-day__content {
    padding: 24px;
  }
}

/* ========================================================
   PILLARS / FEATURES SECTION
   ======================================================== */
.dept-pillars {
  padding: 100px 0;
  background: var(--cream, #FAF8F4);
}

.dept-pillars__header {
  text-align: center;
  margin-bottom: 60px;
}

.dept-pillars__label {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--dept-primary);
  font-weight: 700;
  display: block;
  margin-bottom: 14px;
}

.dept-pillars__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px;
  font-weight: 400;
  color: var(--navy, #0B1D3A);
  line-height: 1.2;
  margin: 0;
}

/* Card */
.dept-pillars__card {
  background: #FFFFFF;
  border: 0.8px solid #F0EDE5;
  padding: 48px 36px 40px;
  border-radius: 0;
  box-shadow: none;
  height: 100%;
  position: relative;
  overflow: hidden;
  text-align: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Top colour bar – hidden by default, slides in on hover */
.dept-pillars__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--dept-primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.dept-pillars__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(11, 29, 58, 0.08);
  border-color: transparent;
}

.dept-pillars__card:hover::before {
  transform: scaleX(1);
}

/* Icon container */
.dept-pillars__icon {
  width: 64px;
  height: 64px;
  margin: 0 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--dept-primary-rgb, 168, 197, 160), 0.12);
  border-radius: 0;
  transition: transform 0.4s ease;
}

.dept-pillars__card:hover .dept-pillars__icon {
  transform: scale(1.1) rotate(-3deg);
}

.dept-pillars__icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--dept-primary);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dept-pillars__icon-img {
  width: 30px;
  height: auto;
}

/* Title */
.dept-pillars__card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 500;
  color: var(--navy, #0B1D3A);
  margin-bottom: 14px;
}

/* Description */
.dept-pillars__card-desc {
  font-size: 14px;
  color: var(--text-light, #6B6B6B);
  line-height: 1.8;
  margin: 0;
}

@media (max-width: 991px) {
  .dept-pillars { padding: 60px 0; }
  .dept-pillars__title { font-size: 36px; }
}

@media (max-width: 575px) {
  .dept-pillars__card {
    padding: 36px 24px 32px;
    height: auto;
  }
}

/* ========================================================
   TRANSPORT SECTION
   ======================================================== */
/* ── Transport / Getting Here ── */
.dept-transport {
  padding: 100px 0;
  background: var(--cream);
}

.dept-transport__header {
  text-align: center;
  margin-bottom: 60px;
}

.dept-transport__label {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--dept-primary);
  font-weight: 700;
  display: block;
  margin-bottom: 14px;
}

.dept-transport__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 16px;
}

.dept-transport__subtitle {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

.dept-transport__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.dept-transport__card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 48px 32px 40px;
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s;
}

.dept-transport__card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
  transform: translateY(-4px);
}

.dept-transport__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(197, 165, 90, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  color: var(--dept-primary);
}

/* Department-specific icon tints */
.dept-nursery .dept-transport__icon { background: rgba(168, 197, 160, 0.12); }
.dept-junior .dept-transport__icon  { background: rgba(197, 165, 90, 0.10); }
.dept-senior .dept-transport__icon  { background: rgba(90, 140, 197, 0.10); }
.dept-wyvern .dept-transport__icon  { background: rgba(168, 130, 180, 0.10); }

.dept-transport__card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 500;
  color: var(--navy);
  margin: 0 0 14px;
}

.dept-transport__card-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.75;
  margin: 0;
  font-weight: 300;
}

/* ========================================================
   CTA SECTION
   ======================================================== */
.cta-section {
  padding: 100px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(232, 180, 200, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(197, 165, 90, 0.08) 0%, transparent 50%);
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}

.cta-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  margin-bottom: 32px;
  font-weight: 300;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================================
   CONTENT PAGES - Page Hero / Breadcrumbs
   ======================================================== */
.page-hero {
  background: var(--navy);
  padding: 160px 0 60px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 60%, rgba(232, 180, 200, .06) 0%, transparent 50%), radial-gradient(circle at 80% 40%, rgba(197, 165, 90, .04) 0%, transparent 50%);
}

.page-hero h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.page-hero p {
  font-size: 16px;
  color: rgba(255, 255, 255, .55);
  line-height: 1.7;
  font-weight: 300;
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.breadcrumb-nav a {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .35);
  text-decoration: none;
  font-weight: 500;
  transition: color .3s;
}

.breadcrumb-nav a:hover {
  color: var(--dept-primary);
}

.breadcrumb-nav span {
  font-size: 11px;
  color: rgba(255, 255, 255, .2);
}

/* ========================================================
   CONTENT BODY & LAYOUT
   ======================================================== */
.content-body {
  padding: 80px 0;
}

.content-main {
  max-width: 720px;
}

.content-main h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  color: var(--navy);
  font-weight: 500;
  margin: 48px 0 18px;
  line-height: 1.3;
}

.content-main h3:first-child {
  margin-top: 0;
}

.content-main p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.9;
  font-weight: 300;
  margin-bottom: 18px;
}

.content-main blockquote {
  border-left: 3px solid var(--dept-primary);
  padding: 20px 28px;
  margin: 32px 0;
  background: var(--cream);
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-style: italic;
  color: var(--navy);
  line-height: 1.5;
}

.content-main img {
  width: 100%;
  height: auto;
  margin: 32px 0;
  display: block;
  box-shadow: 0 8px 30px rgba(11, 29, 58, .08);
}

.content-main ul,
.content-main ol {
  padding-left: 20px;
  margin: 18px 0;
}

.content-main li {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.9;
  font-weight: 300;
  margin-bottom: 8px;
}

/* ========================================================
   SIDEBAR
   ======================================================== */
.content-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  padding: 32px;
  margin-bottom: 24px;
}

.sidebar-card h5 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 16px;
}

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

.sidebar-links li {
  margin-bottom: 10px;
}

.sidebar-links a {
  font-size: 13px;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 400;
  transition: color .3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-links a::before {
  content: '';
  width: 6px;
  height: 1px;
  background: var(--dept-primary);
  flex-shrink: 0;
  transition: width .3s;
}

.sidebar-links a:hover {
  color: var(--navy);
}

.sidebar-links a:hover::before {
  width: 14px;
  background: var(--navy);
}

.sidebar-cta {
  background: var(--navy);
  padding: 32px;
  text-align: center;
}

.sidebar-cta h5 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--white);
  font-weight: 400;
  margin-bottom: 12px;
}

.sidebar-cta p {
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ========================================================
   HISTORY PAGE - TIMELINE
   ======================================================== */
.history-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px;
}

.history-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--dept-primary);
}

.history-entry {
  margin-bottom: 60px;
  width: 50%;
  position: relative;
}

.history-entry:nth-child(odd) {
  margin-left: 0;
  margin-right: auto;
  text-align: right;
  padding-right: 50px;
}

.history-entry:nth-child(even) {
  margin-left: auto;
  margin-right: 0;
  padding-left: 50px;
}

.history-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--dept-primary);
  border-radius: 50%;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
}

.history-year {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--dept-primary);
  margin-bottom: 8px;
}

.history-content {
  background: var(--white);
  padding: 28px;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .08);
}

.history-content h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 12px;
  font-weight: 500;
}

.history-content p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  font-weight: 300;
}

/* ========================================================
   FOOTER
   ======================================================== */
.main-footer {
  background: #060D18;
  padding-top: 80px;
}

.footer-brand-text {
  color: rgba(255, 255, 255, .4);
  font-size: 14px;
  line-height: 1.8;
  margin-top: 18px;
  font-weight: 300;
  max-width: 320px;
}

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

.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s;
}

.footer-social a:hover {
  border-color: var(--dept-primary);
  background: rgba(232, 180, 200, .08);
}

.footer-social a svg {
  width: 16px;
  height: 16px;
  fill: rgba(255, 255, 255, .45);
}

.footer-heading {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dept-primary);
  font-weight: 600;
  margin-bottom: 22px;
  font-family: 'Raleway', sans-serif;
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, .4);
  text-decoration: none;
  font-size: 14px;
  font-weight: 300;
  transition: color .3s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-contact-row {
  border-top: 1px solid rgba(255, 255, 255, .05);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  padding: 40px 0;
  margin-top: 48px;
}

.footer-contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer-contact-icon {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(232, 180, 200, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-contact-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--dept-primary);
  fill: none;
  stroke-width: 1.5;
}

.footer-contact-item strong {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, .8);
  font-weight: 500;
  margin-bottom: 3px;
}

.footer-contact-item span {
  font-size: 13px;
  color: rgba(255, 255, 255, .35);
  font-weight: 300;
  line-height: 1.6;
}

.footer-bottom {
  padding: 24px 0;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255, 255, 255, .2);
  font-weight: 300;
  margin: 0;
}

.footer-bottom-links a {
  font-size: 12px;
  color: rgba(255, 255, 255, .2);
  text-decoration: none;
  margin-left: 20px;
  transition: color .3s;
}

.footer-bottom-links a:hover {
  color: rgba(255, 255, 255, .5);
}

/* ========================================================
   RESPONSIVE BREAKPOINTS
   ======================================================== */
@media (max-width: 991px) {
  .desktop-nav {
    display: none !important;
  }

  .hamburger {
    display: block !important;
  }

  .page-hero {
    padding: 120px 0 40px;
  }

  .page-hero h2 {
    font-size: 36px;
  }

  .content-sidebar {
    position: static;
    margin-top: 48px;
  }

  .welcome-layout {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    display: none;
  }

  .timeline-item {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .timeline-dot {
    position: static;
    margin-bottom: 16px;
    transform: none;
    left: auto;
  }

  .history-timeline::before {
    display: none;
  }

  .history-entry {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .history-dot {
    position: static;
    margin-bottom: 12px;
    transform: none;
  }

  .pathway-step::after {
    display: none;
  }
}

@media (max-width: 767px) {
  .mobile-menu nav > a,
  .mobile-menu nav > .mm-group > a.mm-parent {
    font-size: 28px;
  }

  .hero {
    min-height: max(500px, 100svh);
    padding-top: 120px;
    padding-bottom: 100px;
  }

  .hero h2 {
    font-size: 42px;
  }

  .hero p {
    font-size: 14px;
  }

  .division-card {
    height: 350px;
  }

  .dept-hero-content {
    padding: 0 24px 40px;
  }

  .dept-hero h1 {
    font-size: 36px;
  }

  .section-title {
    font-size: 32px;
  }

  .quote-band h3 {
    font-size: 32px;
  }

  .cta-content h2 {
    font-size: 32px;
  }

  .subject-cards {
    grid-template-columns: 1fr;
  }

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

  .testimonials-section .row {
    flex-direction: column;
  }

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

  .dept-transport__grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    text-align: center;
  }

  .footer-bottom-links {
    margin-top: 8px;
  }

  .footer-bottom-links a {
    margin-left: 0;
    margin-right: 16px;
  }
}

@media (max-width: 575px) {
  .top-bar .d-flex {
    flex-direction: column;
    text-align: center;
    gap: 4px;
  }

  .main-header {
    top: 68px;
  }

  .top-bar {
    padding: 6px 0;
  }

  .logo-text h1 {
    font-size: 18px;
  }

  .hero {
    min-height: max(400px, 100svh);
    padding-top: 100px;
    padding-bottom: 80px;
  }

  .hero h2 {
    font-size: 32px;
  }

  .hero p {
    font-size: 13px;
  }

  .hero-scroll-indicator {
    display: none;
  }

  .division-card {
    height: 280px;
  }

  .stats-container {
    grid-template-columns: 1fr;
  }

  .dept-hero-h1 {
    font-size: 28px;
  }

  .section-title {
    font-size: 28px;
  }

  .page-hero h2 {
    font-size: 28px;
  }

  .content-main h3 {
    font-size: 24px;
  }

  .quote-band h3 {
    font-size: 24px;
  }

  .cta-content h2 {
    font-size: 28px;
  }

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

  .pathway-steps {
    grid-template-columns: 1fr;
  }

  .welcome-image {
    height: 250px;
  }

  .video-container {
    height: 300px;
  }

  .video-play-button {
    width: 60px;
    height: 60px;
  }

  .video-play-button::before {
    border-left-width: 16px;
    border-top-width: 10px;
    border-bottom-width: 10px;
    margin-left: 2px;
  }
}

/* ========================================================
   ANIMATIONS & UTILITIES
   ======================================================== */
.fade-in {
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in-up {
  animation: fadeUp 0.8s ease-out;
}

.fade-in-down {
  animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-left {
  animation: fadeInLeft 0.8s ease-out;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-right {
  animation: fadeInRight 0.8s ease-out;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ========================================================
   SCROLLED HEADER LOGO SIZE
   ======================================================== */
.main-header.scrolled .logo-crest {
  height: 52px;
}

.main-header.scrolled .logo-text h1 {
  font-size: 22px;
}

.main-header.scrolled .logo-motto {
  display: none;
}

/* ========================================================
   NEW PAGE TEMPLATES — ADDITIONAL STYLES
   ======================================================== */

/* Content wrapper typography */
.content-wrapper h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--navy);
  margin: 32px 0 16px;
  line-height: 1.3;
}

.content-wrapper h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--navy);
  margin: 28px 0 12px;
  line-height: 1.3;
}

.content-wrapper p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.content-wrapper ul,
.content-wrapper ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.content-wrapper li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.content-wrapper a {
  color: var(--mhs-pink-deep);
  text-decoration: underline;
  text-decoration-color: var(--mhs-pink-light);
  text-underline-offset: 3px;
  transition: color 0.3s, text-decoration-color 0.3s;
}

.content-wrapper a:hover {
  color: var(--navy);
  text-decoration-color: var(--navy);
}

/* Governance report hover */
.governance-reports-list > div:hover {
  background: var(--cream-dark) !important;
  transform: translateX(4px);
}

/* Policy list hover */
.policy-list > div:hover,
.portal-documents > div:hover,
.safeguarding-contacts > div:hover {
  background: var(--cream-dark) !important;
}

/* Portal tab button hover */
.portal-tab-btn:hover:not(.active) {
  border-color: var(--navy) !important;
  background: var(--cream) !important;
}

/* Edit link styling */
.edit-link {
  text-align: center;
  padding: 20px;
}

.edit-link a {
  display: inline-block;
  padding: 8px 20px;
  background: var(--navy);
  color: var(--white) !important;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background 0.3s;
}

.edit-link a:hover {
  background: var(--navy-mid);
}

/* Responsive adjustments for new templates */
@media (max-width: 768px) {
  .main-header .logo-crest {
    height: 60px;
  }

  .main-header .logo-text h1 {
    font-size: 22px;
  }

  .portal-tabs {
    flex-direction: column !important;
  }

  .portal-tab-btn {
    width: 100% !important;
  }
}
