/* ============================================
   1. CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  --primary: #6B1D4A;
  --primary-light: #8B2D5E;
  --secondary: #C8972A;
  --secondary-light: #D4A94D;
  --gold: #C8972A;
  --accent: #F5EBF2;
  --dark: #1A0D16;
  --text: #2B1C26;
  --light: #FAF7F9;
  --white: #ffffff;
  --overlay: rgba(26, 13, 22, 0.65);
  --overlay-dark: rgba(26, 13, 22, 0.85);
  --stem-color: #6B1D4A;
  --social-color: #2a5c8a;
  --arts-color: #8a2a2a;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.18);
  --shadow-xl: 0 16px 60px rgba(0,0,0,0.22);
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', 'Segoe UI', sans-serif;
  --font-accent: 'Cormorant Garamond', Georgia, serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
}

/* ============================================
   2. RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Fix for logo backgrounds */
.loader-logo-img,
.header-logo-img,
.footer-logo-img,
.about-logo-watermark img {
  background-color: transparent !important;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul, ol { list-style: none; }

button {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================
   3. TYPOGRAPHY SCALE
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--dark);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { margin-bottom: 1rem; }

.section-label {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--secondary);
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--secondary);
  margin-top: 12px;
}

.section-title-center::after {
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: #6B5A64;
  max-width: 640px;
  line-height: 1.7;
}

/* ============================================
   4. LAYOUT UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section-dark {
  background: var(--primary);
  color: var(--white);
}

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

.section-light {
  background: var(--light);
}

.section-accent {
  background: var(--accent);
}

.text-center { text-align: center; }
.text-gold { color: var(--secondary); }
.text-white { color: var(--white); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* Gold decorative rule */
.gold-rule {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--secondary), transparent);
  border: none;
  margin: 0;
}

/* CTA Button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  border-radius: 50px;
  transition: var(--transition);
  cursor: pointer;
  text-transform: uppercase;
}

.btn-gold {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(200, 151, 42, 0.35);
}

.btn-gold:hover {
  background: var(--secondary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(200, 151, 42, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-outline-green {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline-green:hover {
  background: var(--primary);
  color: var(--white);
}

/* ============================================
   5. SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
  z-index: 10001;
  transition: width 0.1s linear;
}

/* ============================================
   6. CUSTOM CURSOR
   ============================================ */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  transition: transform 0.1s;
  mix-blend-mode: difference;
  display: none;
}

.cursor-ring {
  width: 35px;
  height: 35px;
  border: 2px solid var(--secondary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99998;
  transition: transform 0.15s ease-out, width 0.3s, height 0.3s;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  display: none;
}

@media (pointer: fine) {
  .cursor-dot, .cursor-ring { display: block; }
  body { cursor: none; }
  a, button, .clickable { cursor: none; }
}

/* ============================================
   7. HEADER & NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  padding: 0.8rem 0;
  transition: var(--transition);
}

.header.transparent {
  background: transparent;
}

.header.transparent .nav-link {
  text-shadow: 0 1px 6px rgba(0,0,0,0.7), 0 0 16px rgba(0,0,0,0.4);
}

.header.transparent .header-logo-text {
  text-shadow: 0 1px 6px rgba(0,0,0,0.7), 0 0 16px rgba(0,0,0,0.4);
}

.header.solid {
  background: var(--primary);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
  padding: 0.5rem 0;
}

.header.scrolled {
  background: var(--primary);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
  padding: 0.5rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-link {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.5rem 1.1rem;
  position: relative;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6), 0 0 12px rgba(0,0,0,0.3);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: calc(100% - 2rem);
}

.nav-link:hover {
  color: var(--secondary);
}

.nav-link.active {
  color: var(--secondary);
}

/* Navigation Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-link--parent {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link--parent svg {
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-link--parent svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(107, 29, 74, 0.15), 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 0.75rem;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  border: 1px solid rgba(107, 29, 74, 0.08);
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--white);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.25s ease;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.nav-dropdown-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--secondary);
  transform: scaleY(0);
  transition: transform 0.25s ease;
  border-radius: 0 2px 2px 0;
}

.nav-dropdown-item:hover {
  background: linear-gradient(135deg, rgba(107, 29, 74, 0.06) 0%, rgba(200, 151, 42, 0.08) 100%);
  color: var(--primary);
  padding-left: 1.25rem;
}

.nav-dropdown-item:hover::before {
  transform: scaleY(1);
}

.nav-dropdown-item.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
}

.nav-dropdown-item.active::before {
  background: var(--secondary);
  transform: scaleY(1);
}

.nav-dropdown-item i,
.nav-dropdown-item svg {
  width: 18px;
  height: 18px;
  opacity: 0.7;
  flex-shrink: 0;
}

/* Mobile nav sub-items */
.mobile-nav-sub {
  padding-left: 2rem;
  font-size: 0.9rem;
  opacity: 0.85;
}

.mobile-nav-sub.active {
  color: var(--secondary);
  opacity: 1;
}

/* Logo */
.header-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.5rem;
  flex-shrink: 0;
  cursor: pointer;
}

.header-logo img,
.header-logo .header-logo-img {
  height: 48px;
  width: auto;
  transition: var(--transition);
  object-fit: contain;
}

.header.scrolled .header-logo img,
.header.solid .header-logo img {
  height: 40px;
}

.header-logo-text {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-top: 2px;
}

/* Search */
.nav-search-btn {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.1rem;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.nav-search-btn:hover { color: var(--secondary); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 10002;
  position: absolute;
  right: 2rem;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-dark);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-nav.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--white);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.mobile-nav.active a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav.active a:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.active a:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav.active a:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav.active a:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav.active a:nth-child(5) { transition-delay: 0.3s; }
.mobile-nav.active a:nth-child(6) { transition-delay: 0.35s; }

.mobile-nav a:hover { color: var(--secondary); }

/* ============================================
   8. HERO CAROUSEL
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--dark);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.02);
  animation: kenBurns 25s ease infinite alternate;
}

.hero-slide-bg--contain {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}

@keyframes kenBurns {
  0% { transform: scale(1.02); }
  100% { transform: scale(1.06); }
}

.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 13, 22, 0.85) 0%, rgba(26, 13, 22, 0.55) 35%, rgba(26, 13, 22, 0.25) 65%, rgba(26, 13, 22, 0.15) 100%);
  z-index: 2;
}

/* Noise texture overlay */
.hero::after {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 3;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  text-align: center;
  width: 90%;
  max-width: 900px;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 2rem;
  margin-left: 0;
  border-radius: 0;
}

.hero-tag {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--secondary);
  text-shadow: 0 1px 10px rgba(0,0,0,0.95), 0 0 30px rgba(0,0,0,0.7), 0 2px 20px rgba(0,0,0,0.5);
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s 0.3s forwards;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--white);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 0.8s 0.5s forwards;
  text-shadow: 0 2px 30px rgba(0,0,0,0.95), 0 1px 10px rgba(0,0,0,0.85), 0 0 80px rgba(0,0,0,0.5), 0 4px 40px rgba(107, 29, 74, 0.3);
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 12px rgba(0,0,0,0.95), 0 0 40px rgba(0,0,0,0.7), 0 2px 20px rgba(0,0,0,0.5);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s 0.7s forwards;
}

.hero-cta {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s 0.9s forwards;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Carousel Controls */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-arrow:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-50%) scale(1.05);
}

.carousel-prev { left: 2rem; }
.carousel-next { right: 2rem; }

.carousel-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.6rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: scale(1.2);
}

/* ============================================
   9. ANNOUNCEMENT TICKER
   ============================================ */
.ticker {
  background: linear-gradient(135deg, var(--secondary), #d4a94d);
  color: var(--dark);
  padding: 0.65rem 0;
  overflow: hidden;
  position: relative;
  z-index: 50;
}

.ticker-track {
  display: flex;
  animation: tickerScroll 35s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  padding: 0 3rem;
  font-weight: 500;
  font-size: 0.9rem;
  flex-shrink: 0;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   10. PAGE HERO BANNER (for inner pages)
   ============================================ */
.page-hero {
  position: relative;
  height: 45vh;
  min-height: 320px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-hero--has-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero--has-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 13, 22, 0.75) 0%, rgba(107, 29, 74, 0.65) 50%, rgba(139, 45, 94, 0.6) 100%);
  z-index: 1;
}

/* Cocurricular Page Hero */
.page-hero--cocurricular {
  height: 60vh;
  min-height: 450px;
  background-image: url('../images/gallery/sports/RUGBY.jpg');
}

/* Student Life Page Hero */
.page-hero--studentlife {
  height: 60vh;
  min-height: 450px;
  background-image: url('../images/gallery/academics/ASSEMBLY.jpg');
}

.page-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

/* Hero Stats Row */
.hero-stats-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 140px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.hero-stat:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.hero-stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.1;
  margin-bottom: 0.3rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-stat-label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .hero-stats-row {
    gap: 1rem;
    margin-top: 2rem;
  }
  
  .hero-stat {
    min-width: 100px;
    padding: 0.8rem 1rem;
  }
  
  .hero-stat-number {
    font-size: 1.8rem;
  }
  
  .hero-stat-label {
    font-size: 0.75rem;
  }
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  margin-bottom: 0.5rem;
}

.page-hero .section-label {
  margin-bottom: 0.8rem;
}

.page-hero .hero-sub {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  animation: none;
  opacity: 1;
  transform: none;
}

/* ============================================
   10b. ABOUT PAGE HERO ENHANCEMENTS
   ============================================ */
.page-hero--about {
  height: 75vh;
  min-height: 550px;
  max-height: 800px;
}

.page-hero--about::before {
  background: linear-gradient(
    180deg,
    rgba(26, 13, 22, 0.7) 0%,
    rgba(107, 29, 74, 0.55) 40%,
    rgba(107, 29, 74, 0.7) 100%
  );
}

/* Hero floating shapes */
.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(200, 151, 42, 0.15), rgba(200, 151, 42, 0.05));
  border: 1px solid rgba(200, 151, 42, 0.2);
}

.hero-shape--1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -50px;
  animation: floatShape 20s ease-in-out infinite;
}

.hero-shape--2 {
  width: 200px;
  height: 200px;
  bottom: 15%;
  left: 5%;
  animation: floatShape 15s ease-in-out infinite reverse;
}

.hero-shape--3 {
  width: 150px;
  height: 150px;
  top: 30%;
  right: 10%;
  background: linear-gradient(135deg, rgba(107, 29, 74, 0.2), rgba(139, 45, 94, 0.1));
  border: 1px solid rgba(139, 45, 94, 0.3);
  animation: floatShape 18s ease-in-out infinite;
}

@keyframes floatShape {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(20px, -20px) rotate(90deg);
  }
  50% {
    transform: translate(0, -40px) rotate(180deg);
  }
  75% {
    transform: translate(-20px, -20px) rotate(270deg);
  }
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(200, 151, 42, 0.2);
  border: 1px solid rgba(200, 151, 42, 0.4);
  color: var(--secondary);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
  animation: fadeInDown 0.8s ease-out forwards;
}

.hero-badge-icon {
  font-size: 1rem;
}

/* Animated hero title */
.hero-title-animated {
  position: relative;
  display: inline-block;
}

.hero-title-animated::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--secondary), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% {
    opacity: 0.5;
    width: 80px;
  }
  50% {
    opacity: 1;
    width: 120px;
  }
}

/* Hero stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  padding: 1.5rem 2.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(15px);
  animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1;
}

.hero-stat-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.scroll-arrow {
  width: 20px;
  height: 30px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  position: relative;
}

.scroll-arrow::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--secondary);
  border-radius: 2px;
  animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) translateY(8px);
    opacity: 0.5;
  }
}

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

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

/* About page hero responsive */
@media (max-width: 768px) {
  .page-hero--about {
    height: 85vh;
    min-height: 500px;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
  }
  
  .hero-stat-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  }
  
  .hero-stat-number {
    font-size: 1.6rem;
  }
  
  .hero-shapes {
    display: none;
  }
  
  .hero-scroll-indicator {
    bottom: 1rem;
  }
}

/* ============================================
   10c. WELCOME SECTION
   ============================================ */
.welcome-section {
  background: var(--white);
  padding: 6rem 0;
  position: relative;
}

.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.welcome-content .section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1.5rem;
}

.welcome-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.welcome-highlights {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.welcome-highlight {
  text-align: center;
  padding: 1rem;
  background: var(--light);
  border-radius: 12px;
  min-width: 100px;
}

.highlight-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

.highlight-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.3rem;
}

.welcome-image {
  position: relative;
}

.welcome-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.welcome-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: var(--secondary);
  border-radius: 12px;
  z-index: -1;
}

@media (max-width: 992px) {
  .welcome-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .welcome-image img {
    height: 350px;
  }
  
  .welcome-highlights {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ============================================
   11. PATHWAYS / CBE SECTION
   ============================================ */
.pathways-section {
  background: var(--light);
  padding: 6rem 0;
  position: relative;
}

.pathways-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--white);
  clip-path: polygon(0 0, 100% 0, 100% 30%, 0 100%);
}

.pathway-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.pathway-card {
  background: var(--dark);
  border-radius: var(--radius);
  padding: 0;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
}

.pathway-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.pathway-card:hover .pathway-bg {
  transform: scale(1.08);
}

.pathway-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(26,13,22,0.95) 0%, rgba(26,13,22,0.7) 40%, rgba(26,13,22,0.2) 100%);
  transition: var(--transition);
}

.pathway-card:hover .pathway-overlay {
  background: linear-gradient(to top, rgba(26,13,22,0.98) 0%, rgba(26,13,22,0.75) 50%, rgba(26,13,22,0.3) 100%);
}

.pathway-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem 2rem;
}

.pathway-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--card-color);
  opacity: 0.3;
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}

.pathway-card:hover .pathway-number {
  opacity: 0.6;
}

.pathway-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-color);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  z-index: 3;
}

.pathway-card:hover::before {
  transform: scaleX(1);
}

.pathway-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.pathway-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
  color: var(--white);
}

.pathway-card .pathway-sub {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--secondary);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.pathway-desc {
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.4s ease;
}

.pathway-card:hover .pathway-desc {
  max-height: 200px;
  opacity: 1;
}

.pathway-card p {
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.pathway-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.pathway-tag {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
}

.pathway-link {
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pathway-link span {
  transition: transform 0.3s ease;
}

.pathway-card:hover .pathway-link span {
  transform: translateX(6px);
}

.pathway-link:hover { gap: 0.8rem; }

/* ============================================
   12. QUICK STATS BAR
   ============================================ */
.stats-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.stats-section--enhanced {
  position: relative;
  padding: 6rem 0;
  min-height: 400px;
  display: flex;
  align-items: center;
}

.stats-section--enhanced .stats-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.stats-section--enhanced .stats-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 13, 22, 0.92) 0%, rgba(107, 29, 74, 0.88) 100%);
}

.stats-section--enhanced .container {
  position: relative;
  z-index: 2;
}

.stats-section--enhanced .stats-content {
  text-align: center;
  margin-bottom: 3rem;
}

.stats-section--enhanced .section-label {
  color: var(--secondary);
}

.stats-section--enhanced .section-title {
  color: var(--white);
  margin-bottom: 0;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--light);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 40%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  position: relative;
  padding: 1rem;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.15);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

/* ============================================
   12a. HERO SLIDE 4 — TEXT-ONLY (No Image)
   ============================================ */
.hero-slide-bg--gradient {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 45%, var(--primary-light) 100%) !important;
}

.hero-slide-bg--gradient::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 25% 50%, rgba(200, 151, 42, 0.15) 0%, transparent 55%),
              radial-gradient(ellipse at 75% 40%, rgba(139, 45, 94, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.hero-slide--text-only .hero-content {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-align: left;
}

/* ============================================
   12b. INSPIRATION CAROUSEL (Text-only)
   ============================================ */
.inspire-carousel {
  position: relative;
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  padding: 6rem 2rem;
  text-align: center;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.inspire-carousel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(200, 151, 42, 0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(107, 29, 74, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.inspire-slides {
  position: relative;
  width: 100%;
  max-width: 800px;
  min-height: 220px;
}

.inspire-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.inspire-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

.inspire-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.inspire-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.inspire-sub {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 550px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.inspire-dots {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.5rem;
  position: relative;
  z-index: 2;
}

.inspire-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.inspire-dot.active {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: scale(1.2);
}

/* ============================================
   12c. WHY KIAMBU
   ============================================ */
.why-kiambu {
  padding: 6rem 0;
  background: var(--accent);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 2rem 2rem 2.5rem;
  text-align: left;
  box-shadow: 0 4px 24px rgba(107, 29, 74, 0.07);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: 1px solid rgba(107, 29, 74, 0.06);
  border-left: 4px solid var(--primary);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, rgba(107, 29, 74, 0.06), rgba(200, 151, 42, 0.06));
  border-radius: 50%;
  pointer-events: none;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(107, 29, 74, 0.14);
  border-left-color: var(--secondary);
}

.why-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(107, 29, 74, 0.08), rgba(200, 151, 42, 0.08));
  border-radius: 14px;
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.why-card p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.65;
  opacity: 0.85;
}

/* ============================================
   13. NEWS SECTION
   ============================================ */
.news-section {
  padding: 6rem 0;
  background: var(--white);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.news-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid #ECE5EA;
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.news-card-img {
  height: 150px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-body {
  padding: 1.2rem;
}

.news-card-date {
  font-size: 0.8rem;
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.news-card-body h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.news-card-body p {
  font-size: 0.85rem;
  color: #7A6470;
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.news-card-link {
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.news-card-link:hover { gap: 0.7rem; }

/* Featured News Card */
.news-card--featured {
  border: 2px solid var(--gold);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
}

.news-card--featured .news-card-img {
  height: 180px;
}

.news-card--featured h4 {
  font-size: 1.1rem;
  color: var(--primary);
}

.news-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, var(--gold) 0%, #c9a227 100%);
  color: var(--dark);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

/* ============================================
   13b. FINAL CTA SECTION
   ============================================ */
.cta-section {
  position: relative;
  padding: 8rem 2rem;
  text-align: center;
  overflow: hidden;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 13, 22, 0.92) 0%, rgba(107, 29, 74, 0.88) 100%);
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-content .section-label {
  color: var(--secondary);
}

.cta-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  line-height: 1.7;
}

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

.btn-outline-light {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: var(--transition);
}

.btn-outline-light:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--primary);
}

@media (max-width: 768px) {
  .cta-section {
    padding: 5rem 1.5rem;
    min-height: 350px;
  }
  
  .cta-bg {
    background-attachment: scroll;
  }
}

/* ============================================
   14. ABOUT US STYLES
   ============================================ */
.about-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.about-tab {
  padding: 0.7rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 50px;
  background: var(--accent);
  color: var(--primary);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.about-tab.active, .about-tab:hover {
  background: var(--primary);
  color: var(--white);
}

.about-panel { display: none; }
.about-panel.active { display: block; }

/* History */
.history-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.history-pullquote {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--primary);
  line-height: 1.5;
  border-left: 3px solid var(--secondary);
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

/* History section enhancements */
.history-text p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.history-image-container {
  position: relative;
}

.history-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.history-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.history-image-wrapper:hover .history-image {
  transform: scale(1.05);
}

.history-image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(26, 13, 22, 0.9), transparent);
}

.image-caption-text {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
}

.history-image-accent {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  border-radius: var(--radius);
  z-index: -1;
  opacity: 0.6;
}

/* Timeline — Modern Horizontal Scroll */
.timeline-modern {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1rem 0 2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--secondary) var(--light);
}

.timeline-modern::-webkit-scrollbar {
  height: 6px;
}

.timeline-modern::-webkit-scrollbar-track {
  background: var(--light);
  border-radius: 3px;
}

.timeline-modern::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 3px;
}

.timeline-track {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem 0.5rem 1rem;
  position: relative;
  min-width: max-content;
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: 54px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--secondary), var(--primary), var(--secondary));
  z-index: 0;
}

.timeline-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 200px;
  flex-shrink: 0;
}

.timeline-card-year {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--secondary);
  background: var(--white);
  padding: 0.3rem 1rem;
  border-radius: 2rem;
  border: 2px solid var(--secondary);
  position: relative;
  z-index: 2;
  text-align: center;
  line-height: 1.4;
}

.timeline-card-line {
  width: 3px;
  height: 24px;
  background: linear-gradient(to bottom, var(--secondary), var(--primary));
  flex-shrink: 0;
}

.timeline-card-body {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1rem;
  box-shadow: 0 4px 20px rgba(107, 29, 74, 0.08);
  border-top: 3px solid var(--secondary);
  text-align: center;
  flex: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card:hover .timeline-card-body {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(107, 29, 74, 0.14);
}

.timeline-card-body p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #6B5A64;
  margin: 0;
}

/* Quote Box (shared) */
.quote-box {
  background: var(--white);
  border-left: 4px solid var(--secondary);
  padding: 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--primary);
}

/* Principal */
.principal-hero {
  position: relative;
  width: 100%;
  min-height: 720px;
  border-radius: var(--radius);
  overflow: hidden;
}

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

.principal-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Quote floating on the left */
.principal-quote-float {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  max-width: 360px;
  padding: 2rem 2rem 1.5rem;
  background: linear-gradient(135deg, rgba(26, 13, 22, 0.92), rgba(107, 29, 74, 0.85));
  backdrop-filter: blur(10px);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.principal-quote-float .section-label {
  color: var(--secondary);
  margin-bottom: 0.8rem;
}

.principal-quote-float .quote-box {
  background: rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--secondary);
  color: rgba(255, 255, 255, 0.95);
  padding: 1.2rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 0 0 1rem;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
}

.principal-quote-float .principal-signature {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--secondary);
  margin: 0;
}

.principal-quote-float .principal-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.2rem;
}

/* Bottom strip — compact, doesn't cover image */
.principal-bottom-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background: linear-gradient(to top, rgba(26, 13, 22, 0.95) 0%, rgba(26, 13, 22, 0.7) 70%, transparent 100%);
  padding: 3rem 2.5rem 1.8rem;
}

.principal-bottom-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.principal-bottom-col p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 0;
}

/* Vision & Mission */
.vision-mission {
  padding: 5rem 0;
}

.vision-text {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--primary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.3;
}

.mission-card {
  background: var(--white);
  border-left: 4px solid var(--secondary);
  padding: 2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 700px;
  margin: 0 auto 3rem;
  box-shadow: var(--shadow-sm);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.value-card {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--radius);
  background: var(--accent);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.value-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 0.8rem;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-icon svg { width: 24px; height: 24px; }

.value-card h4 {
  font-size: 1rem;
  color: var(--primary);
}

/* Enhanced Vision Section */
.vision-mission--enhanced {
  padding: 3rem 0;
}

.vision-header {
  text-align: center;
  margin-bottom: 3rem;
}

.vision-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--primary);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.vision-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.vision-subheading {
  color: var(--text);
  opacity: 0.7;
  font-size: 1.1rem;
}

.vision-cards-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.vision-card {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.vision-card--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
}

.vision-card--secondary {
  background: var(--white);
  border: 2px solid var(--primary);
  color: var(--primary);
}

.vision-card--secondary .vision-card-text {
  color: var(--text);
}

.vision-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.vision-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.vision-card-text {
  font-family: var(--font-accent);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.6;
}

.motto-banner {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 3rem;
  text-align: center;
}

.motto-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.motto-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.8);
}

.motto-text {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
}

.values-heading {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .vision-cards-row {
    grid-template-columns: 1fr;
  }
}

/* Board */
.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.board-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid #ECE5EA;
  transition: var(--transition);
}

.board-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.board-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.board-card h4 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.board-card .board-title { font-size: 0.85rem; color: var(--secondary); font-weight: 600; }

/* ============================================
   15. ACADEMICS STYLES
   ============================================ */

/* Pathway Quick Links on Academics Page */
.pathway-quick-links {
  text-align: center;
  margin-bottom: 3rem;
}

.pathway-quick-links .section-label {
  margin-bottom: 1.5rem;
}

.pathway-link-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pathway-link-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 2px solid var(--accent);
  transition: all 0.3s ease;
  display: block;
}

.pathway-link-card:hover {
  border-color: var(--secondary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.pathway-link-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
}

.pathway-link-card h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.pathway-link-card p {
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0.8;
}

@media (max-width: 768px) {
  .pathway-link-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .pathway-link-card {
    padding: 1.5rem;
  }
}

.academics-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.academics-tab {
  padding: 0.7rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 50px;
  background: var(--accent);
  color: var(--primary);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.academics-tab.active, .academics-tab:hover {
  background: var(--primary);
  color: var(--white);
}

.academics-panel { display: none; }
.academics-panel.active { display: block; }

/* Teachers Grid */
.teacher-search {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.teacher-search input {
  width: 100%;
  max-width: 500px;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  border: 2px solid #ECE5EA;
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--white);
}

.teacher-search input:focus {
  border-color: var(--secondary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(200,151,42,0.15);
}

.teachers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.teacher-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid #ECE5EA;
  transition: var(--transition);
}

.teacher-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

.teacher-photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.teacher-card h4 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.teacher-subject {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.teacher-bio {
  font-size: 0.88rem;
  color: #7A6470;
  line-height: 1.6;
}

/* Departments */
.departments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.dept-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid #ECE5EA;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.dept-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--dept-color, var(--primary));
}

.dept-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.dept-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.dept-icon svg { width: 28px; height: 28px; }

.dept-card h4 { margin-bottom: 0.5rem; }
.dept-meta { font-size: 0.85rem; color: #7A6470; margin-bottom: 0.8rem; }
.dept-card p { font-size: 0.92rem; color: #6B5A64; }

/* Performance */
.performance-chart {
  margin: 2rem 0;
}

.chart-bar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.chart-label {
  width: 60px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
  text-align: right;
}

.chart-bar-container {
  flex: 1;
  background: var(--accent);
  border-radius: 50px;
  height: 32px;
  overflow: hidden;
  position: relative;
}

.chart-bar {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 1rem;
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 0;
}

.perf-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.perf-table thead {
  background: var(--primary);
  color: var(--white);
}

.perf-table th, .perf-table td {
  padding: 0.8rem 1.2rem;
  text-align: center;
  font-size: 0.92rem;
}

.perf-table tbody tr {
  border-bottom: 1px solid #ECE5EA;
  transition: var(--transition);
}

.perf-table tbody tr:hover { background: var(--accent); }

/* ============================================
   16. CO-CURRICULAR STYLES
   ============================================ */
.cocurricular-banner {
  height: 40vh;
  min-height: 300px;
  background: linear-gradient(135deg, rgba(26, 13, 22, 0.7), rgba(107, 29, 74, 0.65)), url('images/carousel/RUGBY.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.cocurricular-banner h2 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.cocurricular-banner .section-label { margin-bottom: 0.5rem; }

.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 4rem 0;
}

/* V2 Activity Cards — Background image overlay style */
.activity-card-v2 {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  transition: var(--transition);
}

.activity-card-v2:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.activity-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.activity-card-v2:hover .activity-card-bg {
  transform: scale(1.08);
}

.activity-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(26,13,22,0.95) 0%, rgba(26,13,22,0.6) 50%, rgba(26,13,22,0.15) 100%);
  transition: var(--transition);
}

.activity-card-v2:hover .activity-card-overlay {
  background: linear-gradient(to top, rgba(26,13,22,0.98) 0%, rgba(26,13,22,0.7) 55%, rgba(26,13,22,0.25) 100%);
}

.activity-card-content {
  position: relative;
  z-index: 2;
  padding: 2rem 1.5rem;
}

.activity-emoji {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.activity-card-content h4 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.activity-card-content p {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease;
}

.activity-card-v2:hover .activity-card-content p {
  max-height: 200px;
  opacity: 1;
}

.activity-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.activity-stat {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  padding: 0.25rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
}

/* Legacy activity-card styles (keep for compatibility) */
.activity-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid #ECE5EA;
  transition: var(--transition);
}

.activity-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

.activity-img {
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

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

.activity-body { padding: 1.5rem; }
.activity-body h4 { margin-bottom: 0.5rem; }
.activity-body p { font-size: 0.92rem; color: #7A6470; }

/* Achievements Wall — Timeline layout */
.achievements-wall {
  padding: 4rem 0;
  background: var(--light);
}

.achievements-timeline {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.achieve-row {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.achieve-year-marker {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(107,29,74,0.3);
}

.achieve-items {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-top: 0.5rem;
}

.achieve-item {
  background: var(--white);
  border: 1px solid #ECE5EA;
  border-radius: var(--radius);
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}

.achieve-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

.achieve-icon {
  font-size: 1.3rem;
}

/* Legacy badge styles (keep for compatibility) */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.achievement-badge {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid #ECE5EA;
  transition: var(--transition);
}

.achievement-badge:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

.achievement-icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
}

.achievement-badge h4 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.achievement-badge .achv-year {
  font-size: 0.8rem;
  color: var(--secondary);
  font-weight: 700;
}

/* ============================================
   17. STUDENT LIFE / BOARDING STYLES
   ============================================ */
.boarding-head {
  padding: 5rem 0;
  background: var(--light);
}

.boarding-head-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: center;
}

.boarding-head-text blockquote {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text);
  border-left: 3px solid var(--secondary);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  line-height: 1.8;
}

.boarding-head-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.dormitory-life {
  background: var(--white);
}

.dorm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

.dorm-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid #ECE5EA;
  transition: var(--transition);
}

.dorm-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.dorm-card h4 { color: var(--primary); margin-bottom: 0.8rem; }

.dorm-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.dorm-capacity {
  font-weight: 700;
  color: var(--primary);
}

.dorm-head {
  color: #7A6470;
}

.dorm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.dorm-tag {
  background: var(--accent);
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Daily Schedule */
.daily-schedule {
  padding: 5rem 0;
  background: var(--light);
}

.schedule-timeline {
  position: relative;
  max-width: 700px;
  margin: 2rem auto;
  padding-left: 40px;
}

.schedule-timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary), var(--primary-light));
  border-radius: 3px;
}

.schedule-item {
  position: relative;
  padding: 0.8rem 0 0.8rem 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}

.schedule-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--secondary);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--secondary);
}

.schedule-time {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--primary);
  min-width: 80px;
  white-space: nowrap;
}

.schedule-event {
  font-size: 0.95rem;
  color: var(--text);
}

/* Student Leadership */
.student-leadership {
  background: var(--white);
}

.leaders-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2rem 0 3rem;
}

.leader-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #ECE5EA;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.leader-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.leader-img {
  height: 280px;
  overflow: hidden;
  position: relative;
}

.leader-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.leader-info {
  padding: 1.5rem;
  text-align: center;
}

.leader-info h4 {
  margin-bottom: 0.3rem;
}

.leader-title {
  display: inline-block;
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
}

.leader-info p {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 0.95rem;
  color: #7A6470;
}

.prefects-heading {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary);
}

.prefects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.prefect-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid #ECE5EA;
  transition: var(--transition);
}

.prefect-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--secondary);
}

.prefect-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.8rem;
  border: 3px solid var(--accent);
}

.prefect-card h5 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.prefect-card span {
  font-size: 0.8rem;
  color: var(--secondary);
  font-weight: 600;
}

/* Fees CTA */
.fees-cta {
  background: linear-gradient(135deg, var(--primary), var(--dark));
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}

.fees-cta .section-title { color: var(--white); }
.fees-cta .section-title::after { background: var(--secondary); }

.fees-amount {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--secondary);
  margin: 1.5rem 0 0.5rem;
}

.fees-amount span {
  font-size: 1.2rem;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
}

.fees-note {
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(200, 151, 42, 0.35);
}

.btn-secondary:hover {
  background: var(--secondary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(200, 151, 42, 0.5);
}

/* ============================================
   18. GALLERY STYLES
   ============================================ */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.gallery-filter {
  padding: 0.6rem 1.3rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 50px;
  background: var(--accent);
  color: var(--primary);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-filter.active, .gallery-filter:hover {
  background: var(--primary);
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  grid-auto-flow: dense;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
  aspect-ratio: 4/3;
}

.gallery-item.tall { grid-row: span 2; aspect-ratio: auto; }
.gallery-item.wide { grid-column: span 2; }

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

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

/* Gallery Overlay - Used for captions */
.gallery-overlay,
.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 1.5rem;
  color: var(--white);
}

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

.gallery-overlay span {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.gallery-item-overlay .zoom-icon { font-size: 1.5rem; }
.gallery-item-overlay .gallery-tag {
  font-size: 0.8rem;
  background: var(--secondary);
  padding: 0.2rem 0.8rem;
  border-radius: 50px;
  font-weight: 600;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: var(--white);
  font-size: 2rem;
  background: none;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: -70px; }
.lightbox-next { right: -70px; }

/* Video Section */
.video-section {
  padding: 4rem 0;
  background: var(--light);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  align-items: start;
}

.video-card {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--dark);
  position: relative;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--dark), var(--primary));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  gap: 0.5rem;
}

.play-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* Video Embeds */
.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--dark);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-embed--tiktok {
  padding-bottom: 125%; /* Taller aspect ratio for TikTok */
  max-width: 325px;
  margin: 0 auto;
}

.video-embed--tiktok blockquote {
  margin: 0;
}

/* ============================================
   19. FOOTER
   ============================================ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 5rem 0 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.8fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.footer-brand {
  max-width: 100%;
}

.footer-brand .footer-logo {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.footer-brand .footer-logo img,
.footer-brand .footer-logo .footer-logo-img {
  height: 60px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-tagline {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 0.8rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

.social-link svg { width: 18px; height: 18px; }

.footer h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.6rem;
}

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

.footer-links a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
  word-break: break-word;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  min-width: 16px;
  flex-shrink: 0;
  margin-top: 4px;
  opacity: 0.6;
}

.footer-bottom {
  margin-top: 3rem;
  padding: 1.2rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom .powered {
  color: var(--secondary);
  font-family: var(--font-accent);
  font-style: italic;
}

/* ============================================
   20. BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 9990;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(200,151,42,0.4);
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(200,151,42,0.6);
}

/* ============================================
   21. ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================
   ABOUT PAGE: Logo Watermark Overlay
   ============================================ */
.about-logo-watermark {
  position: fixed;
  top: 50%;
  right: -60px;
  transform: translateY(-50%);
  width: 320px;
  height: 320px;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.about-logo-watermark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ============================================
   ABOUT PAGE: Continuous Flow Design
   ============================================ */

/* Text gradient utility */
.text-gradient {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

/* Section badge */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--primary);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-header--center {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text);
  opacity: 0.7;
  font-size: 1.1rem;
}

/* ============================================
   OUR STORY SECTION
   ============================================ */
.about-story {
  padding: 6rem 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.about-story::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(107, 29, 74, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.story-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.story-label-line {
  width: 40px;
  height: 2px;
  background: var(--secondary);
}

.story-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 2rem;
}

.story-lead {
  font-family: var(--font-accent);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--primary);
  line-height: 1.6;
  padding-left: 1.5rem;
  border-left: 3px solid var(--secondary);
  margin-bottom: 2rem;
}

.story-content p {
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.story-motto {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--accent);
  border-radius: var(--radius);
  margin-top: 2rem;
}

.motto-icon {
  font-size: 2rem;
}

.motto-details {
  display: flex;
  flex-direction: column;
}

.story-motto .motto-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text);
  opacity: 0.7;
}

.story-motto .motto-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 700;
}

/* Principal Message in Story */
.principal-message {
  position: relative;
  background: linear-gradient(135deg, rgba(107, 29, 74, 0.05) 0%, rgba(200, 151, 42, 0.08) 100%);
  border-left: 4px solid var(--secondary);
  padding: 1.5rem 2rem;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin: 1.5rem 0 2rem;
}

.principal-quote-mark {
  position: absolute;
  top: -10px;
  left: 10px;
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--secondary);
  opacity: 0.3;
  line-height: 1;
}

.principal-msg-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
  margin-bottom: 0.75rem;
}

.principal-msg-signature {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 600;
}

/* Principal Profile Card */
.principal-profile {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(107, 29, 74, 0.12);
  border: 1px solid rgba(107, 29, 74, 0.08);
  max-width: 400px;
  margin: 0 auto;
}

.principal-image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
}

.principal-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.principal-profile:hover .principal-image-frame img {
  transform: scale(1.05);
}

.principal-info {
  padding: 1.5rem 2rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, var(--white) 0%, rgba(107, 29, 74, 0.03) 100%);
}

.principal-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.principal-title {
  display: block;
  font-size: 0.95rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.principal-credentials {
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0.7;
  margin-bottom: 1.25rem;
}

.principal-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(107, 29, 74, 0.1);
}

.principal-stat {
  text-align: center;
}

.principal-stat .stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.principal-stat .stat-label {
  font-size: 0.75rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

/* Story visual */
.story-visual {
  position: relative;
}

.story-image-stack {
  position: relative;
  height: 500px;
}

.story-image {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.story-image--1 {
  width: 70%;
  height: 350px;
  top: 0;
  left: 0;
  z-index: 2;
}

.story-image--2 {
  width: 60%;
  height: 280px;
  bottom: 0;
  right: 0;
  z-index: 1;
}

.story-stats-card {
  position: absolute;
  bottom: 60px;
  left: -30px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--shadow-xl);
  z-index: 3;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.stat-text {
  font-size: 0.75rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   JOURNEY TIMELINE SECTION
   ============================================ */
.about-journey {
  padding: 6rem 0;
  background: var(--light);
  position: relative;
  overflow: hidden;
}

.journey-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(107, 29, 74, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(200, 151, 42, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

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

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--secondary), var(--primary), var(--secondary));
  transform: translateX(-50%);
}

/* Animated timeline line */
.timeline-line--animated {
  background: linear-gradient(to bottom, 
    var(--secondary) 0%,
    var(--primary) 50%,
    rgba(107, 29, 74, 0.3) 100%
  );
  transform-origin: top;
  animation: growLine 2s ease-out forwards;
}

@keyframes growLine {
  from {
    transform: translateX(-50%) scaleY(0);
  }
  to {
    transform: translateX(-50%) scaleY(1);
  }
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 2rem;
}

/* Enhanced scroll reveal animations with fade in/out */
.timeline-reveal {
  opacity: 1;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.timeline-reveal.is-visible {
  opacity: 1;
}

.timeline-item--left.timeline-reveal {
  transform: translateX(0) scale(1);
}

.timeline-item--right.timeline-reveal {
  transform: translateX(0) scale(1);
}

.timeline-item--left.timeline-reveal.is-visible,
.timeline-item--right.timeline-reveal.is-visible {
  transform: translateX(0) scale(1);
}

/* Timeline dot animation for reveal */
.timeline-reveal .timeline-dot {
  transform: scale(1);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s;
}

.timeline-reveal.is-visible .timeline-dot {
  transform: scale(1);
}

.timeline-item--left {
  padding-right: 4rem;
  text-align: right;
}

.timeline-item--right {
  margin-left: 50%;
  padding-left: 4rem;
}

.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--secondary);
  border: 4px solid var(--white);
  border-radius: 50%;
  top: 2.5rem;
  box-shadow: 0 0 0 4px rgba(200, 151, 42, 0.2);
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.timeline-item--left .timeline-dot {
  right: -10px;
}

.timeline-item--right .timeline-dot {
  left: -10px;
}

.timeline-dot--highlight {
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(107, 29, 74, 0.2);
}

.timeline-dot--current {
  background: var(--secondary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(200, 151, 42, 0.2);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(200, 151, 42, 0.1);
  }
}

.timeline-content {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--secondary), var(--primary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.timeline-item--right .timeline-content::before {
  left: 0;
}

.timeline-item--left .timeline-content::before {
  left: auto;
  right: 0;
}

.timeline-content:hover::before {
  opacity: 1;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.timeline-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.timeline-item--left .timeline-icon {
  float: right;
  margin-left: 1rem;
  margin-bottom: 0;
}

.timeline-item--right .timeline-icon {
  float: left;
  margin-right: 1rem;
  margin-bottom: 0;
}

.timeline-content--highlight {
  border: 2px solid var(--primary);
}

.timeline-content--current {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
}

.timeline-content--current::before {
  background: var(--secondary);
  opacity: 1;
}

.timeline-content--current .timeline-year {
  color: var(--secondary);
}

.timeline-year {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.timeline-content h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.85;
}

/* ============================================
   PRINCIPAL SECTION
   ============================================ */
.about-principal {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.principal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.principal-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.principal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(26, 13, 22, 0.92) 0%,
    rgba(107, 29, 74, 0.85) 50%,
    rgba(139, 45, 94, 0.8) 100%
  );
}

.principal-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 5rem 0;
}

.principal-quote-section {
  max-width: 800px;
  margin: 0 auto 4rem;
  text-align: center;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  color: var(--secondary);
  opacity: 0.5;
  margin-bottom: -2rem;
}

.principal-quote {
  font-family: var(--font-accent);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  color: var(--white);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.principal-attribution {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.principal-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--secondary);
}

.principal-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.principal-info {
  text-align: left;
}

.principal-info strong {
  display: block;
  color: var(--white);
  font-size: 1.1rem;
}

.principal-info span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.principal-message-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.message-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
}

.message-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.message-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.message-card h4 {
  color: var(--secondary);
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

/* Redesigned Principal Section - No Overlay */
.about-principal--redesigned {
  min-height: 700px;
  display: block;
  background: var(--light);
}

.about-principal--redesigned .principal-backdrop {
  width: 100%;
  height: 100%;
}

.about-principal--redesigned .principal-backdrop img {
  object-position: top center;
}

.principal-content-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 45%;
  display: flex;
  align-items: center;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(26, 13, 22, 0.95) 0%,
    rgba(26, 13, 22, 0.9) 60%,
    rgba(26, 13, 22, 0.7) 85%,
    transparent 100%
  );
  padding: 3rem;
}

.principal-quote-panel {
  max-width: 450px;
  padding-left: 1rem;
}

.principal-quote-panel .section-badge {
  background: rgba(200, 151, 42, 0.2);
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.principal-quote-panel .quote-mark {
  font-size: 5rem;
  margin-bottom: -1.5rem;
  text-align: left;
}

.principal-quote-panel .principal-quote {
  text-align: left;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

.principal-quote-panel .principal-attribution {
  justify-content: flex-start;
}

/* Cards strip at bottom */
.principal-cards-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 1.5rem 0;
  background: linear-gradient(to top, rgba(26, 13, 22, 0.85), transparent);
}

.principal-message-grid--compact {
  max-width: 100%;
  gap: 1.5rem;
}

.message-card--light {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.85rem 1rem;
  box-shadow: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius);
}

.message-card--light .message-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.message-card--light h4 {
  color: var(--secondary);
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.message-card--light p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  line-height: 1.4;
}

.message-card--light:hover {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Responsive for redesigned principal */
@media (max-width: 1024px) {
  .principal-content-wrapper {
    width: 55%;
  }
  
  .principal-message-grid--compact {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .message-card--light {
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .about-principal--redesigned {
    min-height: auto;
    display: flex;
    flex-direction: column;
  }
  
  .about-principal--redesigned .principal-backdrop {
    position: relative;
    height: 350px;
  }
  
  .principal-content-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    background: var(--dark);
    padding: 2rem;
  }
  
  .principal-quote-panel {
    max-width: 100%;
    padding-left: 0;
  }
  
  .principal-cards-strip {
    position: relative;
    background: var(--primary);
    padding: 2rem 0;
  }
  
  .principal-message-grid--compact {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 500px;
  }
}

.message-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================================
   VISION & MISSION SECTION - REDESIGNED
   ============================================ */
.about-vision--redesigned {
  position: relative;
  padding: 6rem 0 4rem;
  background: var(--dark);
  overflow: hidden;
}

.vision-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/gallery/academics/ASSEMBLY.jpg') center/cover no-repeat;
  opacity: 0.15;
  z-index: 0;
}

.vision-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 13, 22, 0.9), rgba(107, 29, 74, 0.8));
  z-index: 1;
}

.about-vision--redesigned .container {
  position: relative;
  z-index: 2;
}

.about-vision--redesigned .section-header--light .section-title {
  color: var(--white);
}

.about-vision--redesigned .section-header--light .section-badge {
  background: rgba(200, 151, 42, 0.2);
  color: var(--secondary);
}

/* Vision Cards Grid */
.vision-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.vision-card-v2 {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}

.vision-card-v2:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  border-color: var(--secondary);
}

.vision-card-v2 .vision-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.vision-card-v2 .vision-card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--secondary);
}

.vision-card-v2 .vision-card-label {
  display: inline-block;
  background: rgba(200, 151, 42, 0.2);
  color: var(--secondary);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.vision-card-v2 h3 {
  font-family: var(--font-accent);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--white);
  line-height: 1.6;
  margin-bottom: 0;
}

.vision-card-v2 p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}

/* Legacy vision styles kept for compatibility */
.about-vision {
  padding: 6rem 0;
  background: var(--white);
}

.vision-showcase {
  display: none;
}

.about-vision--redesigned .vision-showcase {
  display: block;
}

.about-vision--redesigned .vision-main {
  display: none;
}

/* Values showcase */
.values-showcase {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.values-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.values-subtitle {
  color: var(--text);
  opacity: 0.7;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* Old hexgrid - kept for backwards compatibility */
.values-hexgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.value-hex {
  aspect-ratio: 1;
}

.hex-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--white);
  transition: var(--transition);
  cursor: default;
}

.hex-inner:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.hex-inner svg {
  width: 28px;
  height: 28px;
}

.hex-inner span {
  font-size: 0.8rem;
  font-weight: 600;
}

/* Last two values span different columns */
.values-hexgrid .value-hex:nth-child(4) {
  grid-column: 1 / 2;
}

.values-hexgrid .value-hex:nth-child(5) {
  grid-column: 2 / 3;
}

/* ============================================
   NEW VALUES GRID - Redesigned
   ============================================ */
.values-showcase--redesigned .values-intro p {
  max-width: 600px;
  margin: 0 auto 3rem;
  text-align: center;
}

.values-grid-new {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.value-card-new {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  background: var(--white);
  border: 1px solid rgba(107, 29, 74, 0.1);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.value-card-new.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.value-card-new--1.is-visible { transition-delay: 0s; }
.value-card-new--2.is-visible { transition-delay: 0.1s; }
.value-card-new--3.is-visible { transition-delay: 0.2s; }
.value-card-new--4.is-visible { transition-delay: 0.3s; }
.value-card-new--5.is-visible { transition-delay: 0.4s; }

.value-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.value-card-new--1 .value-card-bg {
  background: linear-gradient(135deg, rgba(107, 29, 74, 0.05) 0%, rgba(200, 151, 42, 0.1) 100%);
}

.value-card-new--2 .value-card-bg {
  background: linear-gradient(135deg, rgba(200, 151, 42, 0.05) 0%, rgba(107, 29, 74, 0.1) 100%);
}

.value-card-new--3 .value-card-bg {
  background: linear-gradient(135deg, rgba(107, 29, 74, 0.08) 0%, rgba(139, 45, 94, 0.1) 100%);
}

.value-card-new--4 .value-card-bg {
  background: linear-gradient(135deg, rgba(200, 151, 42, 0.08) 0%, rgba(107, 29, 74, 0.08) 100%);
}

.value-card-new--5 .value-card-bg {
  background: linear-gradient(135deg, rgba(139, 45, 94, 0.05) 0%, rgba(200, 151, 42, 0.1) 100%);
}

.value-card-new:hover .value-card-bg {
  opacity: 1;
}

.value-card-new:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(107, 29, 74, 0.15);
  border-color: var(--secondary);
}

.value-card-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.value-icon-ring {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  position: relative;
  transition: all 0.4s ease;
}

.value-icon-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.value-icon-ring::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(107, 29, 74, 0.1), rgba(200, 151, 42, 0.1));
  z-index: -1;
}

.value-card-new:hover .value-icon-ring {
  transform: scale(1.1) rotate(5deg);
}

.value-icon-ring svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
  transition: color 0.3s ease;
}

.value-card-new:hover .value-icon-ring svg {
  color: var(--secondary);
}

.value-card-content h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.value-card-content p {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text);
  opacity: 0.8;
}

/* ============================================
   ALUMNI SECTION
   ============================================ */
.about-alumni {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  position: relative;
  overflow: hidden;
}

.alumni-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.alumni-header {
  text-align: center;
  margin-bottom: 3rem;
}

.alumni-header .section-badge {
  background: rgba(255, 255, 255, 0.1);
  color: var(--secondary);
}

.alumni-header .section-title {
  color: var(--white);
}

.alumni-intro-block {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

.alumni-lead {
  font-family: var(--font-accent);
  font-size: 1.3rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.alumni-intro-block p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}

.alumni-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto 4rem;
}

.alumni-feature {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.alumni-feature h4 {
  color: var(--secondary);
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.alumni-feature p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
}

.trustees-section {
  max-width: 1000px;
  margin: 0 auto;
}

.trustees-section h3 {
  color: var(--white);
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.trustees-carousel {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.trustee {
  text-align: center;
}

.trustee-avatar {
  width: 70px;
  height: 70px;
  margin: 0 auto 0.8rem;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  font-weight: 700;
  font-size: 1.2rem;
  transition: var(--transition);
}

.trustee:hover .trustee-avatar {
  transform: scale(1.1);
}

.trustee-details strong {
  display: block;
  color: var(--white);
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.trustee-details span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
}

.alumni-cta {
  text-align: center;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.btn-lg svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   ABOUT PAGE RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .story-image-stack {
    height: 400px;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .vision-showcase {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .principal-message-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .about-story,
  .about-journey,
  .about-vision,
  .about-alumni {
    padding: 4rem 0;
  }
  
  .timeline-line {
    left: 20px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 0;
  }
  
  .timeline-item--left,
  .timeline-item--right {
    margin-left: 0;
    text-align: left;
    padding-left: 60px;
  }
  
  .timeline-item--left .timeline-dot,
  .timeline-item--right .timeline-dot {
    left: 10px;
    right: auto;
  }
  
  .story-image-stack {
    height: 350px;
  }
  
  .story-stats-card {
    position: relative;
    left: auto;
    bottom: auto;
    margin-top: -40px;
    justify-content: center;
  }
  
  .alumni-features {
    grid-template-columns: 1fr;
  }
  
  .trustees-carousel {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  
  .values-hexgrid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .values-hexgrid .value-hex:nth-child(5) {
    grid-column: 1 / 3;
  }
  
  /* New values grid responsive */
  .values-grid-new {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  
  .value-card-new {
    padding: 1.25rem 1rem;
  }
  
  .timeline-item {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    text-align: left;
  }
  
  .timeline-item--left,
  .timeline-item--right {
    margin-left: 0;
    padding-left: 3rem;
    padding-right: 1rem;
  }
  
  .timeline-line {
    left: 10px;
  }
  
  .timeline-item--left .timeline-dot,
  .timeline-item--right .timeline-dot {
    left: 0;
    right: auto;
  }
  
  .timeline-item--left .timeline-content {
    text-align: left;
  }
  
  .timeline-item--left .timeline-icon,
  .timeline-item--right .timeline-icon {
    float: left;
    margin-right: 1rem;
    margin-left: 0;
  }
  
  .timeline-item--left.timeline-reveal,
  .timeline-item--right.timeline-reveal {
    transform: translateX(-40px);
  }
}

@media (max-width: 480px) {
  .trustees-carousel {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .story-image--1 {
    width: 85%;
  }
  
  .story-image--2 {
    width: 70%;
  }
  
  /* New values grid - mobile */
  .values-grid-new {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .value-card-new {
    padding: 1rem 0.75rem;
  }
  
  .value-icon-ring {
    width: 44px;
    height: 44px;
  }
  
  .value-icon-ring svg {
    width: 18px;
    height: 18px;
  }
  
  .value-card-content h4 {
    font-size: 0.85rem;
  }
  
  .value-card-content p {
    font-size: 0.72rem;
  }
}

/* ============================================
   PATHWAY PAGES (STEM, Social Sciences, Arts & Sports)
   ============================================ */

/* Pathway Hero Badge */
.page-hero--pathway {
  position: relative;
}

.page-hero-overlay {
  display: none;
}

/* Pathway hero text shadows for readability */
.page-hero--pathway .page-hero-content {
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 0 2px 8px rgba(0, 0, 0, 0.8);
}

.page-hero--pathway .section-label {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.page-hero--pathway h1 {
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.95), 0 2px 10px rgba(0, 0, 0, 0.8);
}

.page-hero--pathway .hero-sub {
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.9);
}

.page-hero--pathway .page-hero-content {
  position: relative;
  z-index: 2;
}

.pathway-hero-badge {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 10;
}

.pathway-hero-icon {
  font-size: 2.5rem;
}

/* HOD Section */
.pathway-hod-section {
  padding-top: 5rem;
}

.pathway-hod-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}

.pathway-hod-image {
  position: relative;
}

.pathway-hod-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.pathway-hod-badge {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.pathway-hod-content .section-label {
  margin-bottom: 0.5rem;
}

.pathway-hod-content .section-title {
  margin-bottom: 0.25rem;
}

.pathway-hod-title {
  color: var(--text);
  opacity: 0.7;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.pathway-hod-message {
  font-family: var(--font-accent);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text);
  border-left: 4px solid var(--secondary);
  padding-left: 1.5rem;
  margin: 0;
}

.pathway-hod-signature {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.signature-line {
  width: 40px;
  height: 2px;
  background: var(--secondary);
}

.pathway-hod-signature span {
  font-weight: 600;
  color: var(--primary);
}

/* HOS Section */
.pathway-hos-section {
  padding: 5rem 0;
}

.hos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.hos-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(107, 29, 74, 0.1);
}

.hos-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

.hos-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--secondary);
}

.hos-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.hos-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--primary);
}

.hos-subject {
  font-weight: 600;
  color: var(--secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.hos-credentials {
  font-size: 0.8rem;
  color: var(--text);
  opacity: 0.7;
}

/* Pathway Content Section */
.pathway-content-section {
  padding: 5rem 0;
}

.pathway-subjects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

/* Redesigned Pathway Subject Cards */
.pathway-subject-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(107, 29, 74, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
  border: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.pathway-subject-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--secondary), var(--gold), var(--secondary-light));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pathway-subject-card:hover::before {
  opacity: 1;
}

.pathway-subject-card:hover {
  box-shadow: 0 20px 60px rgba(107, 29, 74, 0.15), 0 8px 25px rgba(0, 0, 0, 0.08);
  transform: translateY(-8px);
}

.pathway-subject-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(107, 29, 74, 0.25);
}

.pathway-subject-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: none;
  position: relative;
}

.pathway-subject-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--secondary));
  border-radius: 2px;
}

.pathway-subject-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pathway-subject-item {
  padding: 1rem;
  background: rgba(200, 151, 42, 0.05);
  border-radius: 12px;
  border-left: 3px solid var(--gold);
  transition: all 0.3s ease;
}

.pathway-subject-item:hover {
  background: rgba(200, 151, 42, 0.1);
  transform: translateX(5px);
}

.pathway-subject-item h4 {
  font-size: 1rem;
  color: var(--secondary);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.pathway-subject-item p {
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.85;
  line-height: 1.6;
}

.pathway-subject-footer {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(200, 151, 42, 0.2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pathway-subject-footer span {
  font-size: 0.9rem;
  color: var(--secondary);
  font-weight: 600;
  background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* CBC Note */
.pathway-cbc-note {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: linear-gradient(135deg, var(--accent), rgba(200, 151, 42, 0.1));
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 3rem;
  border-left: 4px solid var(--secondary);
}

.pathway-cbc-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.pathway-cbc-content h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.pathway-cbc-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
}

/* Pathway Gallery */
.pathway-gallery-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--dark), var(--primary));
}

.pathway-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.pathway-gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.pathway-gallery-item--large {
  grid-column: span 2;
}

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

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

.pathway-gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: var(--white);
  padding: 2rem 1rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.pathway-gallery-item:hover .pathway-gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* Pathway Gallery Slideshow */
.pathway-slideshow {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 2rem auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--dark);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.pathway-slideshow-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.pathway-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.pathway-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.pathway-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pathway-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: var(--white);
  padding: 3rem 1.5rem 1.5rem;
  text-align: center;
}

.pathway-slide-caption h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Slideshow Navigation Arrows */
.pathway-slideshow-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
}

.pathway-slideshow:hover .pathway-slideshow-arrow {
  opacity: 1;
}

.pathway-slideshow-arrow:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-50%) scale(1.1);
}

.pathway-slideshow-arrow--prev { left: 1rem; }
.pathway-slideshow-arrow--next { right: 1rem; }

/* Slideshow Dots/Indicators */
.pathway-slideshow-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(0,0,0,0.4);
  flex-wrap: wrap;
}

.pathway-slideshow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.pathway-slideshow-dot:hover {
  background: rgba(255,255,255,0.6);
}

.pathway-slideshow-dot.active {
  background: var(--secondary);
  transform: scale(1.3);
}

/* Slideshow Counter */
.pathway-slideshow-counter {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  color: var(--white);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 10;
}

/* Slideshow Thumbnails Preview (optional) */
.pathway-slideshow-thumbnails {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(0,0,0,0.5);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--secondary) transparent;
}

.pathway-slideshow-thumbnails::-webkit-scrollbar {
  height: 4px;
}

.pathway-slideshow-thumbnails::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 2px;
}

.pathway-slideshow-thumb {
  flex-shrink: 0;
  width: 60px;
  height: 45px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.pathway-slideshow-thumb:hover {
  opacity: 0.8;
}

.pathway-slideshow-thumb.active {
  opacity: 1;
  border-color: var(--secondary);
}

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

/* Responsive Slideshow */
@media (max-width: 768px) {
  .pathway-slideshow {
    border-radius: var(--radius);
  }
  
  .pathway-slideshow-arrow {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    opacity: 1;
  }
  
  .pathway-slideshow-arrow--prev { left: 0.5rem; }
  .pathway-slideshow-arrow--next { right: 0.5rem; }
  
  .pathway-slide-caption h4 {
    font-size: 1rem;
  }
  
  .pathway-slideshow-thumbnails {
    display: none;
  }
}

/* Achievements Section */
.pathway-achievements-section {
  padding: 5rem 0;
  background: var(--light);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.achievement-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-top: 4px solid var(--secondary);
}

.achievement-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.achievement-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.achievement-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.achievement-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.achievement-card p {
  font-size: 0.8rem;
  color: var(--text);
  opacity: 0.7;
}

/* CTA Section */
.pathway-cta-section {
  padding: 4rem 0;
  background: var(--accent);
}

.pathway-cta-section h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.pathway-cta-section p {
  color: var(--text);
  margin-bottom: 1.5rem;
}

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

/* Pathway Responsive */
@media (max-width: 992px) {
  .pathway-hod-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .pathway-hod-image {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .pathway-subjects-grid {
    grid-template-columns: 1fr;
  }
  
  .pathway-gallery {
    grid-template-columns: 1fr 1fr;
  }
  
  .pathway-gallery-item--large {
    grid-column: span 1;
  }
  
  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pathway-hero-badge {
    width: 60px;
    height: 60px;
    bottom: -30px;
  }
  
  .pathway-hero-icon {
    font-size: 1.8rem;
  }
  
  .pathway-hod-section {
    padding-top: 3rem;
  }
  
  .pathway-cbc-note {
    flex-direction: column;
    gap: 1rem;
  }
  
  .pathway-gallery {
    grid-template-columns: 1fr 1fr;
  }
  
  .pathway-gallery-item--large {
    grid-column: span 1;
  }
}

@media (max-width: 480px) {
  .hos-grid {
    grid-template-columns: 1fr;
  }
  
  .achievements-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .achievement-card {
    padding: 1.25rem;
  }
  
  .achievement-number {
    font-size: 1.5rem;
  }
}

/* ABOUT PAGE: Alumni Section - Legacy (keeping for compatibility) */
.alumni-section {
  padding: 2rem 0;
}

.alumni-intro {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

.alumni-intro p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1rem;
}

.alumni-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.alumni-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border-left: 4px solid var(--secondary);
  box-shadow: 0 4px 20px rgba(107, 29, 74, 0.06);
}

.alumni-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.alumni-card p {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.6;
  opacity: 0.85;
}

.alumni-trustees h3 {
  text-align: center;
  margin-bottom: 2rem;
}

.trustees-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.trustee-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(107, 29, 74, 0.06);
  border: 1px solid rgba(107, 29, 74, 0.06);
  transition: transform 0.3s ease;
}

.trustee-card:hover {
  transform: translateY(-4px);
}

.trustee-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 700;
}

.trustee-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.trustee-card p {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 600;
}

.alumni-cta {
  text-align: center;
  margin-top: 2rem;
}

/* ============================================
   DEPUTY PRINCIPALS SECTION
   ============================================ */
.deputy-section {
  padding: 5rem 0;
  background: var(--light);
}

.deputy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.deputy-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  max-height: 420px;
  cursor: default;
  box-shadow: 0 8px 32px rgba(107, 29, 74, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.deputy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(107, 29, 74, 0.18);
}

.deputy-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  z-index: 0;
}

.deputy-bg--academics {
  object-position: center 15%;
}

.deputy-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 2rem 1.8rem 1.8rem;
  background: linear-gradient(to top, rgba(26, 13, 22, 0.95) 0%, rgba(107, 29, 74, 0.8) 65%, transparent 100%);
}

.deputy-card h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.2rem;
}

.deputy-card .deputy-title {
  font-size: 0.8rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.deputy-quote {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  border-left: 3px solid var(--secondary);
  padding-left: 1rem;
}

.deputy-bio {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}

/* ============================================
   DEPARTMENTS PATHWAY REDESIGN
   ============================================ */
.pathway-section {
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  padding: 3rem 2.5rem;
}

.pathway-section-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(25, 40, 95, 0.9), rgba(70, 30, 100, 0.88));
  z-index: 1;
}

.pathway-section-inner {
  position: relative;
  z-index: 2;
}

.pathway-filter-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.pathway-filter-btn {
  padding: 0.65rem 2rem;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.4);
  background: transparent;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pathway-filter-btn.active,
.pathway-filter-btn:hover {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

.pathway-detail {
  display: none;
}

.pathway-detail.active {
  display: block;
}

.pathway-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pathway-detail-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pathway-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.pathway-detail-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.2rem;
  background: rgba(200, 151, 42, 0.08);
}

.pathway-detail-card h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  margin-bottom: 0.4rem;
}

.pathway-detail-card .pathway-detail-sub {
  text-align: center;
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.pathway-detail-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.pathway-detail-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid #f0ebe9;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.55;
  position: relative;
  padding-left: 1.3rem;
}

.pathway-detail-list li::before {
  content: '\25B8';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: 700;
}

.pathway-detail-list li:last-child {
  border-bottom: none;
}

.pathway-detail-footer {
  background: #FFF9E6;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  font-size: 0.9rem;
  color: var(--dark);
  font-weight: 500;
}

/* ============================================
   CONTACT PAGE STYLES
   ============================================ */
.contact-section {
  padding: 5rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
}

.contact-info-text h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.contact-info-text p {
  font-size: 0.92rem;
  color: var(--text);
  opacity: 0.8;
}

/* Centered Contact Grid (no form) */
.contact-grid--centered {
  grid-template-columns: 1fr;
  max-width: 700px;
  margin: 0 auto;
}

.contact-info--centered {
  background: var(--white);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: 0 8px 40px rgba(107, 29, 74, 0.08);
  border: 1px solid rgba(107, 29, 74, 0.06);
}

.contact-info--centered h3 {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-info--centered .contact-info-item {
  justify-content: flex-start;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 8px 40px rgba(107, 29, 74, 0.08);
  border: 1px solid rgba(107, 29, 74, 0.06);
}

.contact-form h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color 0.3s ease;
  background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-map {
  margin-top: 4rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(107, 29, 74, 0.08);
}

.contact-map iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* Page load crest animation */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.page-loader img,
.page-loader .loader-logo-img {
  height: 120px;
  width: auto;
  object-fit: contain;
  animation: loaderPulse 1.5s ease infinite;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.6; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* ============================================
   22. STUDENT LIFE PAGE - MODERN REDESIGN
   ============================================ */

/* Full-Screen Hero */
.studentlife-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.studentlife-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.studentlife-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 13, 22, 0.4) 0%, rgba(26, 13, 22, 0.5) 50%, rgba(26, 13, 22, 0.6) 100%);
}

.studentlife-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 2rem;
  margin-bottom: 4rem;
}

.studentlife-hero-content .hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.studentlife-hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.8), 0 1px 4px rgba(0, 0, 0, 0.6);
}

.studentlife-hero-content .hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #fff;
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

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

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  background: transparent;
  text-decoration: none;
}

.btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.studentlife-hero-stats {
  position: absolute;
  bottom: 8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4rem;
  z-index: 2;
}

.hero-stat-item {
  text-align: center;
}

.hero-stat-item .stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
}

.hero-stat-item .stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  z-index: 2;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* Campus Overview */
.campus-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.campus-overview-content .lead-text {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.campus-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.campus-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.campus-feature .feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.campus-feature .feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
}

.campus-feature .feature-text h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.campus-feature .feature-text p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

.campus-overview-images .image-stack {
  position: relative;
  padding: 2rem;
}

.image-stack .stack-img-1 {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.image-stack .stack-img-2 {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 4px solid #fff;
}

.image-stack .image-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: var(--gold);
  opacity: 0.3;
  border-radius: var(--radius);
  z-index: -1;
}

/* Daily Life Timeline */
.daily-life {
  background: var(--dark);
  color: #fff;
}

.daily-life .section-label {
  color: var(--gold);
}

.daily-life .section-title {
  color: #fff;
}

.daily-life .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.daily-life .timeline-wrapper {
  overflow-x: auto;
  padding: 3rem 1rem;
  margin-top: 2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) rgba(255, 255, 255, 0.1);
}

.daily-life .timeline-wrapper::-webkit-scrollbar {
  height: 8px;
}

.daily-life .timeline-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.daily-life .timeline-wrapper::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
}

.daily-life .timeline {
  display: flex;
  gap: 0;
  min-width: max-content;
  position: relative;
  padding: 0 1rem;
}

.daily-life .timeline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(212, 175, 55, 0.5) 50%, var(--gold) 100%);
  transform: translateY(-50%);
}

.daily-life .timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-width: 160px;
  padding: 0 0.5rem;
}

.daily-life .timeline-item::before {
  content: '';
  width: 20px;
  height: 20px;
  background: var(--gold);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.3), 0 0 20px rgba(212, 175, 55, 0.4);
}

.daily-life .timeline-time {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 2.5rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.daily-life .timeline-content {
  text-align: center;
  margin-top: 2.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  min-width: 140px;
}

.daily-life .timeline-content h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.daily-life .timeline-content p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  line-height: 1.5;
}

/* Operation Effective 40 - Six Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.pillar-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.pillar-card:hover {
  transform: translateY(-8px);
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.08) 100%);
  border-color: rgba(255,255,255,0.25);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

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

.pillar-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(255,255,255,0.08);
  line-height: 1;
}

.pillar-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.pillar-card h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.pillar-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin: 0;
}

.pillars-motto {
  margin-top: 3rem;
}

.motto-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(107, 29, 74, 0.4);
}

.motto-wheel {
  font-size: 2rem;
}

.motto-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  font-style: italic;
}

@media (max-width: 1024px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .pillar-card {
    padding: 1.5rem;
  }
  
  .pillar-icon {
    font-size: 2.5rem;
  }
  
  .pillar-card h4 {
    font-size: 1.05rem;
  }
  
  .motto-badge {
    flex-direction: column;
    padding: 1.5rem;
    text-align: center;
  }
}

/* Boarding Houses */
.houses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.house-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.house-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.house-card .house-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.house-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.house-card .house-type {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.house-card--highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  grid-column: span 2;
}

.house-card--highlight h4,
.house-card--highlight .house-type {
  color: #fff;
}

.houses-info {
  margin-top: 2rem;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Facilities Grid */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.facility-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.facility-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.facility-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.facility-icon svg {
  width: 28px;
  height: 28px;
  stroke: #fff;
}

.facility-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.facility-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.6;
}

/* Facilities Section Background */
.facilities-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  position: relative;
  overflow: hidden;
}

.facilities-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/gallery/school life/SCHOOL LIFE 2.jpg') center/cover no-repeat;
  opacity: 0.25;
  z-index: 0;
}

.facilities-section > .container {
  position: relative;
  z-index: 1;
}

.facilities-section .section-label {
  color: var(--gold);
}

.facilities-section .section-title {
  color: #fff;
}

.section-subtitle-center {
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.facilities-section .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

/* Facility Cards with Background Images */
.facilities-section .facility-card {
  background: transparent;
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.facilities-section .facility-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(26, 13, 22, 0.85) 0%, rgba(107, 29, 74, 0.45) 100%);
  z-index: 1;
  transition: background 0.3s ease;
}

.facilities-section .facility-card:hover::before {
  background: linear-gradient(to top, rgba(26, 13, 22, 0.7) 0%, rgba(107, 29, 74, 0.3) 100%);
}

.facilities-section .facility-card > * {
  position: relative;
  z-index: 2;
}

.facilities-section .facility-icon {
  background: linear-gradient(135deg, var(--gold) 0%, #c4a747 100%);
  margin-bottom: 0.75rem;
}

.facilities-section .facility-card h4 {
  color: #fff;
}

.facilities-section .facility-card p {
  color: rgba(255, 255, 255, 0.85);
}

.facilities-section .facility-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Individual Facility Card Backgrounds */
.facilities-section .facility-card:nth-child(1) {
  background-image: url('https://images.unsplash.com/photo-1507842217343-583bb7270b66?w=400&q=80');
}

.facilities-section .facility-card:nth-child(2) {
  background-image: url('https://images.unsplash.com/photo-1532094349884-543bc11b234d?w=400&q=80');
}

.facilities-section .facility-card:nth-child(3) {
  background-image: url('https://images.unsplash.com/photo-1567521464027-f127ff144326?w=400&q=80');
}

.facilities-section .facility-card:nth-child(4) {
  background-image: url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?w=400&q=80');
}

.facilities-section .facility-card:nth-child(5) {
  background-image: url('https://images.unsplash.com/photo-1574629810360-7efbbe195018?w=400&q=80');
}

.facilities-section .facility-card:nth-child(6) {
  background-image: url('https://images.unsplash.com/photo-1438032005730-c779502df39b?w=400&q=80');
}

.facilities-section .facility-card:nth-child(7) {
  background-image: url('https://images.unsplash.com/photo-1517694712202-14dd9538aa97?w=400&q=80');
}

.facilities-section .facility-card:nth-child(8) {
  background-image: url('https://images.unsplash.com/photo-1516321165247-4aa89a48be28?w=400&q=80');
}

/* Leadership Message */
.leadership-grid {
  max-width: 1000px;
  margin: 0 auto;
}

.leadership-card {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 3rem;
  align-items: center;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.leadership-image {
  position: relative;
}

.leadership-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leadership-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: var(--gold);
  opacity: 0.5;
  border-radius: var(--radius);
}

.leadership-content {
  padding: 3rem;
}

.leadership-content h3 {
  font-size: 1.75rem;
  color: var(--dark);
  margin-bottom: 1rem;
}

.leadership-content blockquote {
  font-family: var(--font-alt);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.8;
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--gold);
}

.leadership-name strong {
  display: block;
  font-size: 1.1rem;
  color: var(--dark);
}

.leadership-name span {
  font-size: 0.9rem;
  color: var(--primary);
}

/* Wellness Section */
.wellness-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: center;
}

.wellness-content .lead-text {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.wellness-services {
  margin-top: auto;
  padding-top: 1rem;
}

.wellness-profile-inline {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.wellness-profile-inline img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.wellness-profile-inline h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
}

 .wellness-profile-inline span {
  font-size: 0.8rem;
  color: #666;
}

@media (max-width: 992px) {
  .side-by-side-grid {
    grid-template-columns: 1fr;
  }
}
/* Student Leadership Modern */
.student-leadership-modern {
  background: linear-gradient(180deg, #fff 0%, #f8f6f4 100%);
}

.captains-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 3rem;
  margin-bottom: 4rem;
}

.captain-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  align-items: center;
}

.captain-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: top; /* This will center the image from the top */
}

.captain-info {
  padding: 1.5rem;
}

.captain-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold) 0%, #c9a227 100%);
  color: var(--dark);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

.captain-info h3 {
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.captain-quote {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
  line-height: 1.6;
  margin: 0;
}

.prefects-section {
  text-align: center;
}

.prefects-title {
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 2rem;
}

.prefects-modern-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.prefect-modern-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.prefect-modern-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.prefect-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold);
}

.prefect-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prefect-modern-card h4 {
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.prefect-role {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 500;
}

/* Prefects Gallery Grid */
.prefects-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.prefects-gallery-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: all 0.3s ease;
}

.prefects-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s ease;
}

.prefects-gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(107, 29, 74, 0.25);
}

.prefects-gallery-card:hover img {
  transform: scale(1.05);
}

.prefects-gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  color: #fff;
  padding: 2rem 1rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

/* Student Voices */
.student-voices {
  background: var(--dark);
}

.student-voices .section-label {
  color: var(--gold);
}

.student-voices .section-title {
  color: #fff;
}

.voices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.voice-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.voice-content {
  margin-bottom: 1.5rem;
}

.quote-icon {
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.5;
  margin-bottom: -1.5rem;
}

.voice-content p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  font-style: italic;
}

.voice-author {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.voice-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.voice-author strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
}

.voice-author span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Fees Section */
.fees-section {
  padding: 6rem 0;
}

.fees-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.fees-content {
  padding: 4rem;
  color: #fff;
}

.fees-content .section-label {
  color: var(--gold);
}

.fees-content h2 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1.5rem;
}

.fees-amount {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.fees-amount .currency {
  font-size: 1.5rem;
  font-weight: 600;
}

.fees-amount .amount {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gold);
}

.fees-amount .period {
  font-size: 1rem;
  opacity: 0.8;
}

.fees-note {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.fees-includes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.fee-item {
  background: rgba(255, 255, 255, 0.15);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
}

.fees-image {
  position: relative;
}

.fees-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Application CTA */
.application-cta {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.application-cta .cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.application-cta .cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(107, 29, 74, 0.6) 0%, rgba(26, 13, 22, 0.7) 100%);
}

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

.application-cta .cta-content h2,
.application-cta .cta-content p {
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 0 2px 8px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 0, 0, 0.5);
}

.application-cta h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 1rem;
}

.application-cta p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}

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

/* ============================================
   23. RESPONSIVE
   ============================================ */
@media (max-width: 1280px) {
  .nav-link { font-size: 0.92rem; padding: 0.5rem 0.8rem; }
  .hero-content { margin-left: 0; padding-left: 2rem; }
}

@media (max-width: 1024px) {
  .nav-left, .nav-right, .nav-search-btn { display: none; }
  .hamburger { display: flex; }
  .header-inner { justify-content: flex-start; }
  .hero-content { margin-left: 0; padding-left: 2rem; max-width: 600px; }

  .pathway-cards { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after { display: none; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .history-content { grid-template-columns: 1fr; }
  .principal-hero { min-height: 600px; }
  .principal-quote-float { max-width: 300px; padding: 1.5rem; }
  .principal-quote-float .quote-box { font-size: 0.95rem; }
  .principal-bottom-strip { position: relative; background: rgba(26, 13, 22, 0.93); padding: 1.5rem; }
  .principal-bottom-cols { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .departments-grid { grid-template-columns: repeat(2, 1fr); }
  .activities-grid { grid-template-columns: repeat(2, 1fr); }
  .boarding-head-content { grid-template-columns: 1fr; text-align: center; }
  .board-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .leaders-showcase { grid-template-columns: 1fr; }
  .prefects-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .deputy-grid { max-width: 1000px; }
  .deputy-card { max-height: 380px; }
  .pathway-detail-grid { grid-template-columns: repeat(2, 1fr); }
  .alumni-cards { grid-template-columns: 1fr; }
  .trustees-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .about-logo-watermark { display: none; }

  /* Student Life Page - 1024px */
  .campus-overview-grid { grid-template-columns: 1fr; gap: 3rem; }
  .campus-overview-images { order: -1; }
  .facilities-grid { grid-template-columns: repeat(2, 1fr); }
  .leadership-card { grid-template-columns: 1fr; }
  .leadership-image { max-height: 400px; }
  .wellness-profile-inline { margin-top: 1.5rem; }
  .captain-card { grid-template-columns: 1fr; }
  .prefects-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .voices-grid { grid-template-columns: repeat(2, 1fr); }
  .fees-card { grid-template-columns: 1fr; }
  .fees-image { max-height: 300px; }
  .studentlife-hero-stats { gap: 2rem; }
}

@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .container { padding: 0 1.2rem; }

  .pathway-cards { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item::after { display: none; }
  .news-grid { grid-template-columns: 1fr; }
  .departments-grid { grid-template-columns: 1fr; }
  .activities-grid { grid-template-columns: 1fr; }
  .dorm-grid { grid-template-columns: 1fr; }
  .board-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .prefects-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .why-grid { grid-template-columns: 1fr; }
  .why-card { padding: 2rem 1.5rem; }
  .inspire-carousel { padding: 4rem 1.5rem; min-height: 300px; }
  .inspire-heading { font-size: clamp(1.8rem, 6vw, 2.8rem); }

  .achieve-row { flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
  .achieve-items { justify-content: center; }
  .activity-card-v2 { min-height: 320px; }
  .pathway-card { min-height: 400px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.wide { grid-column: span 1; }
  .gallery-item.tall { grid-row: span 1; aspect-ratio: 4/3; }
  .trustees-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .deputy-grid { grid-template-columns: 1fr; max-width: 680px; }
  .deputy-card { aspect-ratio: 5 / 4; max-height: 420px; }
  .deputy-card h4 { font-size: 1.2rem; }
  .deputy-quote { font-size: 0.85rem; }
  .pathway-detail-grid { grid-template-columns: 1fr; }
  .pathway-filter-tabs { flex-wrap: wrap; gap: 0.5rem; }
  .principal-hero { min-height: 560px; }
  .principal-quote-float { position: relative; top: auto; left: auto; transform: none; max-width: 100%; border-radius: var(--radius) var(--radius) 0 0; padding: 1.5rem; }
  .principal-bottom-strip { position: relative; background: rgba(26, 13, 22, 0.93); padding: 1.5rem; }
  .principal-bottom-cols { grid-template-columns: 1fr; gap: 1rem; }

  .carousel-arrow { display: none; }
  .hero-heading { font-size: clamp(2rem, 8vw, 3rem); }

  .about-tabs, .academics-tabs, .gallery-filters { gap: 0.3rem; }
  .about-tab, .academics-tab, .gallery-filter { padding: 0.5rem 1rem; font-size: 0.8rem; }

  .timeline-card { width: 170px; }
  .timeline-card-body { padding: 1rem 0.8rem; }
  .timeline-card-body p { font-size: 0.82rem; }

  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }

  .fees-cta { padding: 2.5rem 1.5rem; }

  .page-hero { height: 35vh; min-height: 260px; }

  /* Vision section redesigned - mobile */
  .vision-cards-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .vision-card-v2 { padding: 2rem 1.5rem; }
  .vision-card-v2 h3 { font-size: 1.1rem; }
  .about-vision--redesigned { padding: 4rem 0 3rem; }

  /* Student Life Page - 768px */
  .studentlife-hero { min-height: 100vh; }
  .studentlife-hero-content h1 { font-size: 2.5rem; }
  .studentlife-hero-stats { position: relative; bottom: auto; flex-wrap: wrap; gap: 1.5rem; justify-content: center; padding: 0 1rem; margin-top: 2rem; }
  .hero-stat-item .stat-number { font-size: 2rem; }
  .scroll-indicator { display: none; }
  .campus-features { gap: 1rem; }
  .image-stack .stack-img-2 { width: 50%; }
  .timeline { padding-bottom: 2rem; }
  .timeline-item { min-width: 120px; }
  .houses-grid { grid-template-columns: repeat(2, 1fr); }
  .house-card--highlight { grid-column: span 2; }
  .facilities-grid { grid-template-columns: 1fr; }
  .leadership-content { padding: 2rem; }
  .wellness-services { grid-template-columns: 1fr; }
  .wellness-profile-inline { margin-top: 1.5rem; }
  .captain-card { grid-template-columns: 1fr; }
  .captain-image img { height: 200px; }
  .prefects-modern-grid { grid-template-columns: repeat(2, 1fr); }
  .prefects-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .voices-grid { grid-template-columns: 1fr; }
  .fees-content { padding: 2.5rem; }
  .fees-amount .amount { font-size: 2.5rem; }
  .application-cta { padding: 4rem 0; }
}

@media (max-width: 480px) {
  .values-grid { grid-template-columns: 1fr 1fr; }
  .prefects-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }

  /* Student Life Page - 480px */
  .studentlife-hero-content h1 { font-size: 2rem; }
  .studentlife-hero-stats { gap: 1rem; }
  .hero-stat-item .stat-number { font-size: 1.5rem; }
  .hero-stat-item .stat-label { font-size: 0.7rem; }
  .houses-grid { grid-template-columns: 1fr; }
  .house-card--highlight { grid-column: span 1; }
  .prefects-modern-grid { grid-template-columns: 1fr; }
  .prefects-gallery-grid { grid-template-columns: 1fr; }
  .fees-content { padding: 1.5rem; }
  .fees-includes { flex-direction: column; }
}

/* Print */
@media print {
  .header, .footer, .back-to-top, .scroll-progress, .cursor-dot, .cursor-ring, .ticker, .carousel-arrow, .carousel-dots { display: none !important; }
  .hero, .page-hero { height: auto; min-height: auto; }
  body { color: #000; }
}
