/* ==========================================================
   Sri Vigneswara School - Custom Theme Stylesheet
  Deep green, antique gold, and clean neutral school theme
   ========================================================== */

:root {
  --navy-primary: #0F3B2E;
  --navy-dark: #0F3B2E;
  --navy-accent: #B8860B;
  --gold-accent: #B8860B;
  --gold-hover: #B8860B;
  --coral-accent: #e63946;
  --text-dark: #1C2826;
  --text-muted: #1C2826;
  --text-light: #FFFFFF;
  --bg-page: #FFFFFF;
  --bg-subtle: #F7F9F6;
  --card-border: #F7F9F6;
  --input-border: #788A7F;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', sans-serif;
  --font-serif: var(--font-heading);
  --font-sans: var(--font-body);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-soft: 0 10px 25px -5px rgba(15, 59, 46, 0.05), 0 8px 10px -6px rgba(15, 59, 46, 0.02);
  --shadow-hover: 0 18px 32px -8px rgba(15, 59, 46, 0.12);
  --watermark-top-offset: 202px;
}

html {
  background-color: var(--bg-page);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-dark);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body:not(.admin-body) {
  isolation: isolate;
  background-color: transparent;
}

body:not(.admin-body)::before {
  position: fixed;
  z-index: -1;
  inset: var(--watermark-top-offset) 0 20px;
  background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), url("../school%20images/background.jpeg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  opacity: 0.6;
  pointer-events: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: none;
}

p,
li {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

.container {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
}

.section-padding {
  padding: 85px 0;
}

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

/* Top Utility Bar */
.top-bar {
  background-color: var(--navy-primary);
  border-bottom: 1.5px solid rgba(184, 134, 11, 0.62);
  box-shadow: 0 2px 12px rgba(184, 134, 11, 0.2);
  padding: 8px 0;
  font-size: 14px;
  color: #FFFFFF;
}

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

.contact-info a {
  margin-right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.contact-info a:hover {
  color: var(--gold-accent);
}

.social-links a {
  margin-left: 12px;
  font-size: 0.95rem;
  color: #FFFFFF;
}

.social-links a:hover {
  color: var(--gold-accent);
}

/* Main Navigation */
.main-navbar {
  background: var(--navy-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-top: 1.5px solid rgba(184, 134, 11, 0.32);
  border-bottom: 1.5px solid rgba(184, 134, 11, 0.72);
  box-shadow: 0 4px 14px rgba(184, 134, 11, 0.12), 0 8px 24px rgba(15, 59, 46, 0.16);
  padding: 14px 0;
}

.main-navbar > .nav-container {
  z-index: 1;
}

.main-navbar::before {
  position: absolute;
  top: 0;
  bottom: 0;
  right: max(calc((100% - 1240px) / 2), 5%);
  z-index: 0;
  width: 50vw;
  background-image:
    linear-gradient(112deg, transparent 38%, rgba(255, 219, 126, 0.3) 49%, transparent 61%),
    url("../school%20images/peacock-feather-header.png");
  background-repeat: no-repeat;
  background-size: 260% 100%, 100% 100%;
  background-position: -130% 0, right center;
  -webkit-mask-image: url("../school%20images/peacock-feather-header.png");
  -webkit-mask-position: right center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-image: url("../school%20images/peacock-feather-header.png");
  mask-position: right center;
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
  content: "";
  opacity: 0.48;
  pointer-events: none;
  animation: peacock-gold-glitter 7s ease-in-out infinite;
}

.nav-container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.peacock-glitter {
  position: absolute;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.peacock-glitter-navbar {
  top: 0;
  right: max(calc((100% - 1240px) / 2), 5%);
  bottom: 0;
  width: 50vw;
  -webkit-mask: url("../school%20images/peacock-feather-header.png") right center / 100% 100% no-repeat;
  mask: url("../school%20images/peacock-feather-header.png") right center / 100% 100% no-repeat;
}

.peacock-glitter-navbar > span {
  color: #fff6d2;
  filter: drop-shadow(0 0 4px rgba(255, 202, 63, 1));
  animation-duration: 4.2s;
}

.peacock-glitter-navbar > span:nth-child(1) { top: 47%; left: 14%; }
.peacock-glitter-navbar > span:nth-child(2) { top: 57%; left: 19%; }
.peacock-glitter-navbar > span:nth-child(3) { top: 39%; left: 24%; }
.peacock-glitter-navbar > span:nth-child(4) { top: 62%; left: 29%; }
.peacock-glitter-navbar > span:nth-child(5) { top: 49%; left: 35%; }
.peacock-glitter-navbar > span:nth-child(6) { top: 67%; left: 40%; }
.peacock-glitter-navbar > span:nth-child(7) { top: 42%; left: 46%; }
.peacock-glitter-navbar > span:nth-child(8) { top: 59%; left: 52%; }
.peacock-glitter-navbar > span:nth-child(9) { top: 34%; left: 57%; }
.peacock-glitter-navbar > span:nth-child(10) { top: 52%; left: 62%; }
.peacock-glitter-navbar > span:nth-child(11) { top: 66%; left: 68%; }
.peacock-glitter-navbar > span:nth-child(12) { top: 48%; left: 73%; }
.peacock-glitter-navbar > span:nth-child(13) { top: 38%; left: 78%; }
.peacock-glitter-navbar > span:nth-child(14) { top: 61%; left: 83%; }
.peacock-glitter-navbar > span:nth-child(15) { top: 47%; left: 88%; }
.peacock-glitter-navbar > span:nth-child(16) { top: 69%; left: 92%; }
.peacock-glitter-navbar > span:nth-child(17) { top: 76%; left: 96%; }
.peacock-glitter-navbar > span:nth-child(18) { top: 72%; left: 55%; }

.peacock-glitter-navbar > span::before {
  width: 1.5px;
  height: 7px;
}

.peacock-glitter-navbar > span::after {
  width: 7px;
  height: 1.5px;
}

.peacock-glitter-hero {
  top: 0;
  right: max(calc((100% - 1240px) / 2), 5%);
  bottom: 0;
  width: min(52%, 700px);
  -webkit-mask: url("../school%20images/peacock-hero-right.png") right center / contain no-repeat;
  mask: url("../school%20images/peacock-hero-right.png") right center / contain no-repeat;
}

.peacock-glitter-hero > span {
  color: #fff6d2;
  filter: drop-shadow(0 0 4px rgba(255, 202, 63, 1));
  animation-duration: 4.2s;
}

.peacock-glitter-hero > span:nth-child(1) { top: 45%; left: 14%; }
.peacock-glitter-hero > span:nth-child(2) { top: 72%; left: 19%; }
.peacock-glitter-hero > span:nth-child(3) { top: 35%; left: 24%; }
.peacock-glitter-hero > span:nth-child(4) { top: 61%; left: 29%; }
.peacock-glitter-hero > span:nth-child(5) { top: 49%; left: 34%; }
.peacock-glitter-hero > span:nth-child(6) { top: 78%; left: 39%; }
.peacock-glitter-hero > span:nth-child(7) { top: 30%; left: 44%; }
.peacock-glitter-hero > span:nth-child(8) { top: 57%; left: 49%; }
.peacock-glitter-hero > span:nth-child(9) { top: 84%; left: 54%; }
.peacock-glitter-hero > span:nth-child(10) { top: 42%; left: 59%; }
.peacock-glitter-hero > span:nth-child(11) { top: 67%; left: 64%; }
.peacock-glitter-hero > span:nth-child(12) { top: 51%; left: 69%; }
.peacock-glitter-hero > span:nth-child(13) { top: 36%; left: 74%; }
.peacock-glitter-hero > span:nth-child(14) { top: 68%; left: 79%; }
.peacock-glitter-hero > span:nth-child(15) { top: 53%; left: 84%; }
.peacock-glitter-hero > span:nth-child(16) { top: 33%; left: 89%; }
.peacock-glitter-hero > span:nth-child(17) { top: 76%; left: 93%; }
.peacock-glitter-hero > span:nth-child(18) { top: 61%; left: 97%; }

.peacock-glitter > span {
  position: absolute;
  width: 7px;
  height: 7px;
  color: #ffe49a;
  opacity: 0;
  filter: drop-shadow(0 0 2px rgba(255, 210, 89, 0.82));
  animation: peacock-star-twinkle 5.2s ease-in-out infinite;
}

.peacock-glitter > span::before,
.peacock-glitter > span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
}

.peacock-glitter > span::before {
  width: 1.3px;
  height: 7px;
}

.peacock-glitter > span::after {
  width: 7px;
  height: 1.3px;
}

.peacock-glitter > span:nth-child(1) { top: 15%; left: 12%; animation-delay: 0s; }
.peacock-glitter > span:nth-child(2) { top: 45%; left: 18%; animation-delay: -0.29s; }
.peacock-glitter > span:nth-child(3) { top: 73%; left: 23%; animation-delay: -0.58s; }
.peacock-glitter > span:nth-child(4) { top: 28%; left: 29%; animation-delay: -0.87s; }
.peacock-glitter > span:nth-child(5) { top: 60%; left: 34%; animation-delay: -1.16s; }
.peacock-glitter > span:nth-child(6) { top: 18%; left: 40%; animation-delay: -1.45s; }
.peacock-glitter > span:nth-child(7) { top: 78%; left: 45%; animation-delay: -1.74s; }
.peacock-glitter > span:nth-child(8) { top: 42%; left: 50%; animation-delay: -2.03s; }
.peacock-glitter > span:nth-child(9) { top: 12%; left: 56%; animation-delay: -2.32s; }
.peacock-glitter > span:nth-child(10) { top: 66%; left: 61%; animation-delay: -2.61s; }
.peacock-glitter > span:nth-child(11) { top: 33%; left: 66%; animation-delay: -2.9s; }
.peacock-glitter > span:nth-child(12) { top: 83%; left: 71%; animation-delay: -3.19s; }
.peacock-glitter > span:nth-child(13) { top: 20%; left: 76%; animation-delay: -3.48s; }
.peacock-glitter > span:nth-child(14) { top: 55%; left: 81%; animation-delay: -3.77s; }
.peacock-glitter > span:nth-child(15) { top: 35%; left: 86%; animation-delay: -4.06s; }
.peacock-glitter > span:nth-child(16) { top: 72%; left: 90%; animation-delay: -4.35s; }
.peacock-glitter > span:nth-child(17) { top: 11%; left: 93%; animation-delay: -4.64s; }
.peacock-glitter > span:nth-child(18) { top: 48%; left: 96%; animation-delay: -4.93s; }

@keyframes peacock-star-twinkle {
  0%, 10%, 64%, 100% {
    opacity: 0;
    transform: scale(0.35) rotate(0deg);
  }
  18%, 48% {
    opacity: 1;
    transform: scale(1) rotate(45deg);
  }
  56% {
    opacity: 0.28;
    transform: scale(0.58) rotate(90deg);
  }
}

body:not(.admin-body) .nav-container::before {
  position: absolute;
  top: -15.5px;
  left: 50%;
  z-index: 2;
  width: 28vw;
  max-width: 360px;
  min-width: 120px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5) 28%, #fff3cf 50%, #d4af37 76%, transparent);
  filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.9));
  content: "";
  transform: translateX(calc(-100% - 50vw));
  animation: header-line-travel 9s linear 1s infinite;
  pointer-events: none;
}

body:not(.admin-body) .nav-container::after {
  position: absolute;
  bottom: -15.5px;
  left: 50%;
  z-index: 3;
  width: 28vw;
  max-width: 360px;
  min-width: 120px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5) 28%, #fff3cf 50%, #d4af37 76%, transparent);
  filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.9));
  content: "";
  transform: translateX(50vw);
  animation: header-line-travel-reverse 9s linear 1s infinite;
  pointer-events: none;
}

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

.crest-placeholder {
  width: 46px;
  height: 46px;
  padding: 2px;
  background: #FFFFFF;
  border: 1.5px solid rgba(184, 134, 11, 0.45);
  border-radius: 50%;
  display: block;
  object-fit: contain;
  box-shadow: 0 4px 10px rgba(184, 134, 11, 0.28);
}

.brand-text h1 {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FFFFFF;
  line-height: 1.2;
}

.brand-text p {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  font-weight: 600;
}

.brand-text .sub-addr {
  display: block;
  font-size: 0.80rem;
  color: rgba(255, 255, 255, 0.78);
}

.nav-links {
  order: 3;
  flex: 0 0 100%;
  display: flex;
  list-style: none;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1.5px solid rgba(184, 134, 11, 0.42);
}

.nav-links a {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #FFFFFF;
  padding: 6px 0;
  position: relative;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--gold-accent);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-accent);
  box-shadow: 0 0 8px rgba(184, 134, 11, 0.62);
}

.btn-enquire {
  margin-left: auto;
  background: linear-gradient(135deg, rgba(184, 134, 11, 0.96), rgba(204, 157, 43, 0.92));
  color: var(--navy-primary);
  padding: 9px 20px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 6px 16px rgba(184, 134, 11, 0.18), inset 0 1px rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
}

.btn-enquire:hover {
  background: var(--gold-accent);
  box-shadow: 0 8px 20px rgba(15, 59, 46, 0.12), inset 0 1px rgba(255, 255, 255, 0.8);
}

/* Hero Section */
.hero-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 80px 0 18px;
  background-color: var(--navy-primary);
}

.hero-section::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(90deg, #0F3B2E 0%, #0F3B2E 15%, rgba(15, 59, 46, 0.94) 26.5%, rgba(15, 59, 46, 0.64) 40.5%, rgba(15, 59, 46, 0.25) 54.5%, rgba(15, 59, 46, 0) 67.5%);
  content: "";
  pointer-events: none;
}

@media (min-width: 992px) {
  .hero-section::before {
    background: linear-gradient(90deg, var(--navy-primary) 0%, var(--navy-primary) 15%, rgba(15, 59, 46, 0.8) 26.67%, rgba(15, 59, 46, 0.4) 38.33%, rgba(15, 59, 46, 0) 50%);
  }
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: 75% center;
  background-size: cover;
  opacity: 0;
  transition: opacity 600ms ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-section > .container,
.hero-carousel-controls {
  position: relative;
  z-index: 1;
}

.hero-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 30px;
  padding-top: 4px;
}

.hero-slideshow[hidden],
.hero-carousel-controls[hidden] {
  display: none;
}

.hero-slide-dot {
  position: relative;
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.hero-slide-dot::before {
  width: 9px;
  height: 9px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
  content: "";
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.hero-slide-dot.is-active::before {
  border-color: var(--gold-accent);
  background: var(--gold-accent);
  transform: scale(1.2);
}

.hero-slide-dot:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 3px;
}

.hero-section .vinayagar-watermark {
  display: none;
}

/* Subtle green and gold accents distinguish public content sections. */
body:not(.admin-body) .section-padding:not(.hero-section),
body:not(.admin-body) .content-section {
  border-top: 2px solid rgba(15, 59, 46, 0.14);
  background-image: linear-gradient(115deg, rgba(15, 59, 46, 0.035), transparent 52%, rgba(184, 134, 11, 0.025));
  background-color: transparent;
}

body:not(.admin-body) .section-title,
body:not(.admin-body) .content-section h2 {
  position: relative;
  width: fit-content;
  max-width: 100%;
  padding-bottom: 9px;
}

body:not(.admin-body) .section-title::after,
body:not(.admin-body) .content-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 42px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-accent), rgba(15, 59, 46, 0.35));
}

/* Subtle Vinayagar Decorative Line-Art Watermark */
.vinayagar-watermark {
  position: absolute;
  right: -2%;
  top: -5%;
  width: 480px;
  height: 480px;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23B8860B'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 16.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  margin-bottom: 50px;
  text-align: left;
}

.hero-text-content {
  max-width: 700px;
}

.pill-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.15em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--navy-primary);
  background: var(--gold-accent);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(48px, 4.2vw, 60px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  margin-bottom: 20px;
  font-weight: 600;
  text-transform: none;
}

.hero-title span {
  color: var(--gold-accent);
}

.hero-description {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.94);
  max-width: 530px;
  margin-bottom: 30px;
}

.hero-btn-group {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow: 0 8px 20px rgba(15, 59, 46, 0.12), inset 0 1px rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.btn:hover,
.btn:focus-visible,
.btn-enquire:hover,
.btn-enquire:focus-visible {
  transform: translateY(-2px);
}

.btn-navy {
  background: linear-gradient(135deg, rgba(184, 134, 11, 0.96), rgba(204, 157, 43, 0.9));
  color: var(--navy-primary);
}

.btn-navy:hover {
  background: var(--gold-accent);
}

.btn-outline {
  border: 1.5px solid var(--navy-primary);
  color: var(--navy-primary);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 8px 20px rgba(15, 59, 46, 0.08), inset 0 1px rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
}

.hero-section .btn-outline {
  border-color: rgba(255, 255, 255, 0.8);
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline:hover {
  border-color: var(--gold-accent);
  background: var(--gold-accent);
  color: var(--navy-primary);
}

.hero-image-wrapper .image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(15, 59, 46, 0.3);
  border: 6px solid #ffffff;
}

.hero-image-wrapper img {
  width: 100%;
  height: 380px;
}

/* Stats Counter Banner Strip */
.quick-stats-strip {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 18px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--card-border);
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-card i {
  font-size: 1.8rem;
  color: var(--gold-accent);
}

.stat-number {
  display: block;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-dark);
  line-height: 1.1;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
}

.stat-highlight {
  background: var(--bg-subtle);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gold-accent);
}

/* Headings & Section Styling */
.section-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-accent);
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 3vw, 44px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-transform: none;
  color: var(--text-dark);
  margin-bottom: 18px;
}

.section-body {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.section-header-centered {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px;
}

.section-header-split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

/* About Grid */
.about-section > .container {
  width: 96%;
  max-width: 1600px;
}

.about-heading {
  margin-bottom: 30px;
}

.about-intro-copy {
  margin-bottom: 30px;
}

.about-intro-copy .section-body {
  max-width: none;
  margin-bottom: 14px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 25px;
}

.about-story {
  display: grid;
  gap: 20px;
}

.about-main-card {
  background: #ffffff;
  padding: 34px;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
}

.btn-navy-sm {
  background: linear-gradient(135deg, rgba(184, 134, 11, 0.96), rgba(204, 157, 43, 0.9));
  color: var(--navy-primary);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-block;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 6px 16px rgba(184, 134, 11, 0.16), inset 0 1px rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn-navy-sm:hover,
.btn-navy-sm:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 9px 20px rgba(15, 59, 46, 0.14), inset 0 1px rgba(255, 255, 255, 0.45);
}

.about-media-card {
  min-height: 320px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid rgba(184, 134, 11, 0.62);
  border-top: 3px solid var(--gold-accent);
  box-shadow: 0 16px 36px rgba(15, 59, 46, 0.12), 0 4px 12px rgba(184, 134, 11, 0.12);
}

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

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.pillar-box {
  background: #ffffff;
  border: 1px solid var(--card-border);
  padding: 20px;
  border-radius: var(--radius-md);
  display: flex;
  gap: 15px;
  align-items: flex-start;
  box-shadow: var(--shadow-soft);
}

.pillar-box i {
  font-size: 1.5rem;
  color: var(--gold-accent);
  background: var(--bg-subtle);
  padding: 10px;
  border-radius: 8px;
}

.pillar-box h4 {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.pillar-box p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* 6 Core Pillars Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  padding: 26px 18px;
  border-radius: var(--radius-md);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-card i {
  font-size: 1.8rem;
  color: var(--navy-accent);
  margin-bottom: 12px;
  display: inline-block;
}

.feature-card h4 {
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.feature-card p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Academic Roadmap */
.roadmap-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 18px;
}

.roadmap-lead-card {
  background: var(--navy-primary);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lead-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-accent);
  margin-bottom: 8px;
}

.roadmap-lead-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.roadmap-lead-card p {
  font-size: 0.85rem;
  color: #FFFFFF;
  margin-bottom: 18px;
}

.btn-gold-sm {
  background: var(--gold-accent);
  color: var(--navy-primary);
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  display: inline-block;
  align-self: flex-start;
}

.roadmap-step {
  background: #ffffff;
  border: 1px solid var(--card-border);
  padding: 24px 20px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
}

.step-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-accent);
  margin-bottom: 12px;
}

.roadmap-step h4 {
  font-size: 1.05rem;
  color: var(--text-dark);
}

.grade-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy-primary);
  background: var(--gold-accent);
  padding: 3px 8px;
  border-radius: 4px;
  margin: 6px 0 12px;
  align-self: flex-start;
}

.roadmap-step p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Clubs & Extracurriculars */
.clubs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 30px;
}

.club-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.club-card img {
  width: 100%;
  height: 180px;
  border: 1.5px solid rgba(184, 134, 11, 0.5);
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(15, 59, 46, 0.1), 0 2px 6px rgba(184, 134, 11, 0.1);
}

.clubs-grid > .club-card:nth-child(2) > img {
  object-fit: cover;
  object-position: top center;
}

.club-card-body {
  padding: 22px;
}

.club-card-body h4 {
  font-size: 1.1rem;
  color: var(--text-dark);
}

.club-motto {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-accent);
  margin: 3px 0 10px;
}

.club-card-body p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.extracurricular-box {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  box-shadow: var(--shadow-soft);
}

.ec-image-side img {
  width: 100%;
  height: 100%;
  border: 1.5px solid rgba(184, 134, 11, 0.62);
  border-top: 4px solid var(--gold-accent);
  border-radius: 8px;
  box-shadow: 0 7px 18px rgba(15, 59, 46, 0.12), 0 2px 7px rgba(184, 134, 11, 0.14);
}

.ec-content-side {
  padding: 35px;
}

.ec-content-side h4 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.ec-content-side p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.activity-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.activity-tags-grid span {
  background: var(--bg-subtle);
  border: 1.5px solid var(--gold-accent);
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.activity-tags-grid span i {
  color: var(--gold-accent);
}

/* Facilities Grid */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 18px;
}

.facility-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid rgba(184, 134, 11, 0.5);
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 59, 46, 0.08), 0 3px 8px rgba(184, 134, 11, 0.08);
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.facility-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(15, 59, 46, 0.12), 0 4px 12px rgba(184, 134, 11, 0.12);
}

.facility-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-top: 3px solid var(--gold-accent);
  border-bottom: 1.5px solid rgba(184, 134, 11, 0.42);
  object-fit: cover;
  background: var(--bg-subtle);
}

.facility-item span {
  display: block;
  padding: 12px 6px;
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--text-dark);
}

.btn-outline-sm {
  border: 1px solid var(--card-border);
  background: #ffffff;
  color: var(--text-dark);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.btn-outline-sm:hover,
.btn-outline-sm:focus-visible {
  border-color: var(--gold-accent);
  background: var(--gold-accent);
  color: var(--navy-primary);
  box-shadow: 0 6px 16px rgba(184, 134, 11, 0.16);
  transform: translateY(-2px);
}

/* Notices and Achievements */
.events-notices-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
}

.home-toppers-grades {
  display: grid;
  gap: 14px;
}

.home-topper-grade {
  display: grid;
  min-width: 0;
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.home-topper-grade-title {
  display: flex;
  align-items: center;
  margin: 0;
  color: var(--text-dark);
  font-size: 0.88rem;
}

.home-topper-ranks {
  display: grid;
  width: min(100%, 1020px);
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
  margin-inline: auto;
}

.home-topper-rank-slot {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  background: var(--bg-subtle);
}

.home-topper-rank-label {
  color: var(--gold-accent);
  font-size: 0.69rem;
  font-weight: 800;
}

.home-topper-empty {
  margin: auto 0;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.home-topper-students {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  justify-content: center;
  gap: 8px;
}

.home-topper-students[data-student-count="2"],
.home-topper-students[data-student-count="3"] {
  display: grid;
  width: max-content;
  max-width: none;
}

.home-topper-students[data-student-count="2"] {
  grid-template-columns: repeat(2, 104px);
}

.home-topper-students[data-student-count="3"] {
  grid-template-columns: repeat(3, 104px);
}

.home-topper-student {
  display: grid;
  width: 104px;
  min-width: 0;
  gap: 5px;
  align-content: start;
  justify-items: center;
}

.home-topper-student > .public-image-frame {
  width: 100%;
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: 4px;
}

.home-topper-student > .public-image-frame > img {
  object-fit: cover;
}

.home-topper-student-details {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 3px;
  justify-items: center;
  text-align: center;
}

.home-topper-student-details strong {
  overflow-wrap: anywhere;
  color: var(--text-dark);
  font-size: 17px;
  line-height: 1.25;
}

.home-topper-student-details small {
  color: var(--text-muted);
  font-size: 0.65rem;
  line-height: 1.3;
}

.home-topper-student-details p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--text-dark);
  font-size: 0.67rem;
  line-height: 1.35;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-toppers-section {
  scroll-margin-top: 120px;
}

.board-card {
  display: flex;
  min-width: 0;
  min-height: 193px;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--bg-subtle);
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.card-top h4 {
  font-size: 1rem;
  color: var(--text-dark);
}

.card-badge {
  background: var(--gold-accent);
  color: var(--navy-primary);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

.view-link {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-accent);
}

.topper-preview-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.topper-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-subtle);
  padding: 14px;
  border-radius: var(--radius-sm);
}

.topper-box i {
  font-size: 1.8rem;
  color: var(--gold-accent);
}

.topper-box strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dark);
}

.topper-box p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.topper-box a {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-accent);
}

.event-rows {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.event-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.date-badge {
  background: var(--bg-subtle);
  border: 1.5px solid var(--gold-accent);
  padding: 6px 12px;
  border-radius: 6px;
  text-align: center;
}

.date-badge .day {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
}

.date-badge .month {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gold-accent);
}

.event-meta h5 {
  font-size: 0.85rem;
  color: var(--text-dark);
}

.event-meta small {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.notice-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.notice-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.notice-list li i {
  color: var(--gold-accent);
  font-size: 1.1rem;
  margin-top: 2px;
}

.notice-list li a {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
}

.notice-list li small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.home-board-feed {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  margin-top: 0;
}

.home-board-feed .home-board-row {
  display: grid;
  min-width: 0;
  min-height: 76px;
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.home-board-feed .home-board-row:hover {
  transform: translateY(-1px);
  border-color: var(--gold-accent);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.home-board-visual {
  position: relative;
  display: grid;
  width: 80px;
  min-height: 54px;
  place-items: center;
  color: var(--gold-accent);
  font-size: 1.2rem;
}

.home-board-visual > .public-image-frame {
  width: 80px;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
}

.home-board-visual > .public-image-frame > img {
  object-fit: contain;
}

.topper-rank {
  position: absolute;
  z-index: 1;
  top: -4px;
  left: -4px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: var(--gold-accent);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
}

.topper-rank-2 { background: var(--navy-primary); }
.topper-rank-3 { background: var(--gold-accent); }

.home-board-visual-rank-only .topper-rank {
  position: static;
  width: 44px;
  height: 44px;
  font-size: 0.82rem;
}

.home-date-badge {
  display: grid;
  width: 62px;
  min-height: 52px;
  align-content: center;
  justify-items: center;
  border: 1.5px solid var(--gold-accent);
  border-radius: 6px;
  background: var(--bg-subtle);
  color: var(--text-dark);
}

.home-date-day {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.1;
}

.home-date-month {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.home-board-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
  align-content: center;
}

.home-board-title {
  overflow: hidden;
  color: var(--text-dark);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-board-meta {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.68rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-board-description {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-dark);
  font-size: 0.72rem;
  line-height: 1.4;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-board-attachment {
  width: fit-content;
  color: var(--gold-accent);
  font-size: 0.68rem;
  font-weight: 700;
}

.home-board-attachment:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }

  .home-board-feed .home-board-row {
    transition: none;
  }
}

/* Call to Action */
.cta-banner {
  background: var(--navy-primary);
  padding: 50px 0;
  color: #ffffff;
}

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

.cta-text h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.cta-text p {
  color: #FFFFFF;
  font-size: 0.92rem;
}

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

.btn-gold {
  background: var(--gold-accent);
  color: var(--navy-primary);
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
}

.btn-outline-white {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.btn-outline-white:hover,
.btn-outline-white:focus-visible {
  border-color: var(--gold-accent);
  background: var(--gold-accent);
  color: var(--navy-primary);
  box-shadow: 0 6px 16px rgba(184, 134, 11, 0.2);
  transform: translateY(-2px);
}

/* Deep green footer */
.main-footer {
  background: var(--navy-dark);
  color: #FFFFFF;
  padding: 60px 0 0;
  position: relative;
  overflow: hidden;
}

/* Vinayagar Footer Background Accent */
.vinayagar-footer-watermark {
  position: absolute;
  right: 2%;
  bottom: 5%;
  width: 280px;
  height: 280px;
  opacity: 0.03;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 16.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.crest-placeholder-footer {
  width: 38px;
  height: 38px;
  padding: 2px;
  background: #FFFFFF;
  border: 1.5px solid rgba(184, 134, 11, 0.45);
  border-radius: 50%;
  display: block;
  object-fit: contain;
}

.footer-brand h5 {
  font-size: 1rem;
  color: #ffffff;
  letter-spacing: 0.05em;
}

.footer-brand small {
  font-size: 0.65rem;
  color: #FFFFFF;
  display: block;
}

.school-address {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.motto-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 4em;
  color: var(--gold-accent);
  text-align: center;
}

.main-footer .brand-col .motto-quote {
  font-size: clamp(1rem, 2vw, 1.45rem);
  white-space: nowrap;
}

#clubs .student-life-closing-motto {
  margin-top: 24px;
  font-size: 1.25rem;
  line-height: 1.5;
}

.iit-partnership-download {
  margin-top: 22px;
  text-align: center;
}

.iit-special-initiatives {
  margin-top: 18px;
}

.iit-special-initiatives h4 {
  text-align: center;
}

.iit-special-initiatives-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 24px;
  margin-top: 12px;
  padding-left: 20px;
}

@media (max-width: 900px) {
  .iit-special-initiatives-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.footer-col h6 {
  font-size: 0.9rem;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

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

.footer-links li {
  margin-bottom: 9px;
  font-size: 14px;
}

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

.contact-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FFFFFF;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.footer-socials a {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 0.9rem;
}

.footer-socials a:hover {
  background: var(--gold-accent);
  color: var(--navy-dark);
}

.btn-map {
  font-size: 0.75rem;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px 0;
  font-size: 14px;
  color: #FFFFFF;
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .hero-description {
    margin: 0 0 30px;
  }
  .hero-btn-group {
    justify-content: flex-start;
  }
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .roadmap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .events-notices-grid,
  .facilities-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .about-media-card {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  .nav-container {
    flex-wrap: wrap;
    gap: 12px;
  }
  .nav-links {
    order: 3;
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    padding: 8px 0 4px;
    border-top: 1.5px solid rgba(184, 134, 11, 0.42);
  }
  .nav-links li {
    flex: 0 0 auto;
  }
  .brand-text .sub-addr {
    display: none;
  }
  .hero-title {
    font-size: clamp(40px, 8vw, 48px);
  }
  .quick-stats-strip {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  .clubs-grid,
  .extracurricular-box {
    grid-template-columns: 1fr;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .home-topper-grade {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .home-topper-grade-title {
    font-size: 0.84rem;
  }

  .home-topper-ranks {
    gap: 5px;
  }

  .home-topper-rank-slot {
    padding: 6px;
  }

  .home-topper-student-details strong {
    font-size: 0.66rem;
  }

  .home-topper-student-details small,
  .home-topper-student-details p {
    font-size: 0.6rem;
  }
  .cta-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}

/* Interior pages */
.page-hero {
  padding: 54px 0 42px;
  background: var(--navy-primary);
  border-bottom: 1.5px solid var(--gold-accent);
}

.page-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--gold-accent);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.page-title {
  margin-bottom: 12px;
  color: #FFFFFF;
  font-family: var(--font-serif);
  font-size: clamp(48px, 5vw, 60px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-transform: none;
}

.page-lede {
  max-width: 720px;
  color: #FFFFFF;
  font-size: 18px;
  line-height: 1.7;
}

.page-subnav {
  padding: 16px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--card-border);
}

.page-subnav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.page-subnav-links a {
  display: inline-flex;
  padding: 7px 12px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

.page-subnav-links a:hover,
.page-subnav-links a:focus-visible {
  border-color: var(--gold-accent);
  background: var(--gold-accent);
  color: var(--navy-primary);
}

.content-section {
  padding: 54px 0;
  scroll-margin-top: 150px;
}

.content-section:nth-of-type(even) {
  background: var(--bg-subtle);
}

.content-section h2 {
  margin-bottom: 12px;
  color: var(--text-dark);
  font-family: var(--font-serif);
  font-size: clamp(40px, 3vw, 44px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-transform: none;
}

.content-section h3 {
  margin-bottom: 8px;
  color: var(--text-dark);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.35;
  text-transform: none;
}

.content-section p {
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.7;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.house-system-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.house-card {
  border-top-width: 5px;
}

.house-card-red {
  border-top-color: #c62828 !important;
}

.house-card-green {
  border-top-color: #2e7d32 !important;
}

.house-card-blue {
  border-top-color: #1565c0 !important;
}

.house-card-yellow {
  border-top-color: #d6a400 !important;
}

.house-card h3 {
  text-wrap: balance;
}

#streams .content-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-card {
  padding: 22px;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(15, 59, 46, 0.07), inset 0 1px rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

.leader-message-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.42fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(22px, 4vw, 42px);
  border: 1.5px solid rgba(15, 59, 46, 0.22);
  border-top: 4px solid var(--gold-accent);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.leader-message-copy {
  min-width: 0;
}

.leader-message-heading {
  margin-bottom: 14px;
}

.leader-message-body {
  margin-bottom: 0;
  white-space: pre-line;
}

.leader-message-profile {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  text-align: center;
}

.leader-message-photo {
  width: min(100%, 250px);
  aspect-ratio: 4 / 5;
  margin-bottom: 8px;
  overflow: hidden;
  border: 2px solid rgba(184, 134, 11, 0.76);
  border-top: 4px solid var(--gold-accent);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 24px rgba(15, 59, 46, 0.12);
}

.leader-message-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leader-message-name {
  color: var(--text-dark);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.2;
}

.leader-message-designation,
.leader-message-school {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.leader-message-school {
  max-width: 28ch;
}

[data-site-announcement][hidden] {
  display: none;
}

.stat-highlight {
  max-width: 330px;
  text-align: left;
}

.stat-highlight .stat-number,
.stat-highlight .stat-label {
  overflow-wrap: anywhere;
}

body:not(.admin-body) .about-main-card,
body:not(.admin-body) .pillar-box,
body:not(.admin-body) .feature-card,
body:not(.admin-body) .roadmap-step,
body:not(.admin-body) .club-card,
body:not(.admin-body) .board-card,
body:not(.admin-body) .content-card {
  border-width: 1.5px;
  border-color: rgba(15, 59, 46, 0.28);
  border-top: 4px solid var(--gold-accent);
}

body:not(.admin-body) .about-pillars > .pillar-box:nth-child(even),
body:not(.admin-body) .pillars-grid > .feature-card:nth-child(even) {
  background: var(--navy-primary);
  border-color: var(--gold-accent);
  box-shadow: 0 12px 26px rgba(15, 59, 46, 0.16), inset 0 1px rgba(255, 255, 255, 0.12);
}

body:not(.admin-body) .about-pillars > .pillar-box:nth-child(even) h4,
body:not(.admin-body) .pillars-grid > .feature-card:nth-child(even) h4 {
  color: #FFFFFF;
}

body:not(.admin-body) .about-pillars > .pillar-box:nth-child(even) p,
body:not(.admin-body) .pillars-grid > .feature-card:nth-child(even) p {
  color: rgba(255, 255, 255, 0.84);
}

body:not(.admin-body) .content-grid > .content-card:nth-child(even) {
  border-color: var(--gold-accent);
  background: var(--navy-primary);
  color: #FFFFFF;
  box-shadow: 0 12px 26px rgba(15, 59, 46, 0.14), inset 0 1px rgba(255, 255, 255, 0.12);
}

body:not(.admin-body) .content-grid > .content-card:nth-child(even) h2,
body:not(.admin-body) .content-grid > .content-card:nth-child(even) h3,
body:not(.admin-body) .content-grid > .content-card:nth-child(even) p,
body:not(.admin-body) .content-grid > .content-card:nth-child(even) strong {
  color: #FFFFFF;
}

body:not(.admin-body) .content-grid > .content-card:nth-child(even) a:not(.btn) {
  color: var(--gold-accent);
}

body:not(.admin-body) .about-pillars > .pillar-box:nth-child(even) i {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold-accent);
}

.content-card > :last-child {
  margin-bottom: 0;
}

.content-card img {
  aspect-ratio: 16 / 9;
  margin: -22px -22px 18px;
  max-width: calc(100% + 44px);
  width: calc(100% + 44px);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.image-content-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
  gap: 0;
  min-width: 0;
  padding: 0;
  overflow: hidden;
}

.image-content-card.image-right {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

#streams .image-content-card {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-content: start;
  border: 0;
  border-top: 4px solid var(--gold-accent);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--text-dark);
  box-shadow: 0 12px 28px rgba(15, 59, 46, 0.08);
}

#streams .image-content-card:nth-child(even) {
  background: #ffffff;
  color: var(--text-dark);
  box-shadow: 0 12px 28px rgba(15, 59, 46, 0.08);
}

#streams .image-content-card h3,
#streams .image-content-card p,
#streams .image-content-card strong {
  color: var(--text-dark);
}

.image-content-card .content-card-copy {
  min-width: 0;
  padding: 24px;
}

#streams .image-content-card .content-card-copy {
  padding: 20px;
}

.content-card-copy > :last-child {
  margin-bottom: 0;
}

.content-card-media {
  position: relative;
  align-self: stretch;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 20px 10px;
  border: 0;
  border-right: 0;
  border-radius: 0;
}

.image-content-card.image-right .content-card-media {
  grid-column: 2;
  grid-row: 1;
  border-left: 1px solid rgba(184, 134, 11, 0.78);
}

.image-content-card.image-right .content-card-copy {
  grid-column: 1;
  grid-row: 1;
}

#streams .content-card-media {
  position: relative;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid rgba(184, 134, 11, 0.72);
  border-radius: 0;
  box-shadow: none;
}

.content-card-media > img {
  position: absolute;
  top: 20px;
  left: 10px;
  display: block;
  width: calc(100% - 20px);
  height: calc(100% - 40px);
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: auto;
  margin: 0;
  border-radius: 5px;
  object-fit: cover;
}

#streams .content-card-media > img {
  position: static;
  width: 100%;
  height: 100%;
  border-radius: 5px;
}

#enrichment-programmes .content-grid > .content-card:nth-child(6) .content-card-media > img {
  object-position: top center;
}

.video-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.video-gallery-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 59, 46, 0.2);
  border-top: 4px solid var(--gold-accent);
  border-radius: var(--radius-sm);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 59, 46, 0.08), 0 2px 8px rgba(184, 134, 11, 0.08);
}

.video-gallery-card iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #132b25;
}

.video-gallery-media {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  background: #132b25;
}

.video-gallery-media > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-gallery-media > iframe {
  position: absolute;
  inset: 0;
  height: 100%;
}

.video-gallery-play {
  position: absolute;
  display: grid;
  width: 58px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: #c4302b;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

.video-gallery-play:hover,
.video-gallery-play:focus-visible {
  background: #a9201c;
}

.video-gallery-play:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.video-gallery-empty {
  color: #fff;
  font-size: 0.88rem;
}

.video-gallery-card-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
}

body:not(.admin-body) .video-gallery-card-caption h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
}

.video-gallery-card-caption a {
  flex: 0 0 auto;
  color: var(--navy-primary);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold-accent);
  text-underline-offset: 3px;
}

@media (max-width: 1024px) {
  .video-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .video-gallery-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .video-gallery-card-caption {
    padding: 14px;
  }
}

@media (max-width: 768px) {
  .house-system-grid {
    grid-template-columns: 1fr;
  }

  .leader-message-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .leader-message-profile {
    justify-self: center;
    width: min(100%, 320px);
  }

  .image-content-card,
  .image-content-card.image-right {
    grid-template-columns: minmax(0, 1fr);
  }

  .image-content-card .content-card-media,
  .image-content-card.image-right .content-card-media {
    grid-column: 1;
    grid-row: 1;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    padding: 20px 10px;
    border: 0;
  }

  .image-content-card.image-right .content-card-media {
    border-bottom: 1px solid rgba(184, 134, 11, 0.78);
  }

  .image-content-card .content-card-media > img {
    top: 20px;
    left: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 40px);
  }

  .image-content-card .content-card-copy,
  .image-content-card.image-right .content-card-copy {
    grid-column: 1;
    grid-row: 2;
  }

  #streams .image-content-card {
    grid-template-columns: minmax(0, 1fr);
  }

  #streams .content-card-media {
    aspect-ratio: 16 / 10;
    padding: 10px 12px;
  }

  #streams .content-card-media > img {
    position: static;
    width: 100%;
    height: 100%;
  }

}

.facility-story-grid {
  grid-template-columns: minmax(0, 1fr);
  max-width: 960px;
}

.history-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: stretch;
  gap: 24px;
  margin-top: 18px;
}

.history-layout > div {
  align-self: center;
}

.history-layout > img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 1.5px solid rgba(184, 134, 11, 0.72);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px rgba(15, 59, 46, 0.12), 0 3px 10px rgba(184, 134, 11, 0.12);
  object-fit: cover;
}

.content-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.public-data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 14px;
  margin-top: 18px;
}

.public-gallery-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  justify-items: start;
}

.public-data-grid .content-card,
.event-rows.public-data-grid .content-card {
  min-width: 0;
  margin: 0;
}

.public-data-card img {
  width: 100%;
}

.public-image-frame {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  place-items: center;
  border: 1.5px solid rgba(184, 134, 11, 0.68);
  border-radius: 7px;
  background: var(--bg-subtle);
  box-shadow: 0 7px 18px rgba(15, 59, 46, 0.1), 0 2px 7px rgba(184, 134, 11, 0.12);
}

.public-data-card > .public-image-frame {
  margin: 0 0 12px;
}

.public-data-card .public-image-frame {
  width: min(100%, 260px);
}

.event-category-section .public-data-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.event-category-section .public-data-card > p {
  width: 100%;
  overflow-wrap: anywhere;
}

.public-image-frame > img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  margin: 0;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}

.event-category-section .public-image-frame,
.public-gallery-grid .gallery-item {
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.event-category-section .public-image-frame:hover,
.public-gallery-grid .gallery-item:hover {
  box-shadow: 0 10px 24px rgba(15, 59, 46, 0.16);
  transform: translateY(-3px);
}

.public-record-meta,
.public-empty {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.event-rows.public-data-grid {
  grid-template-columns: 1fr;
  margin-top: 12px;
}

.staff-entry {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.staff-entry:hover,
.staff-entry:focus-visible {
  color: var(--gold-accent);
  text-decoration: underline;
}

.gallery-item {
  overflow: hidden;
  border: 1.5px solid rgba(184, 134, 11, 0.62);
  border-radius: var(--radius-sm);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 59, 46, 0.08), 0 2px 7px rgba(184, 134, 11, 0.08);
}

body:not(.admin-body) .content-card > img,
body:not(.admin-body) .club-card > img,
body:not(.admin-body) .ec-image-side img,
body:not(.admin-body) .facility-item img,
body:not(.admin-body) .about-media-card img,
body:not(.admin-body) .gallery-item > img {
  box-shadow: 0 7px 18px rgba(15, 59, 46, 0.12), 0 2px 7px rgba(184, 134, 11, 0.14);
}

body:not(.admin-body) .content-card > img {
  border: 1.5px solid rgba(184, 134, 11, 0.62);
}

.public-gallery-grid .gallery-item {
  width: 100%;
  max-width: 260px;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-bottom: 1.5px solid rgba(184, 134, 11, 0.42);
  object-fit: cover;
}

.gallery-item > .public-image-frame {
  border-radius: 0;
}

.gallery-item figcaption {
  padding: 10px 12px;
  color: var(--text-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.public-video-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

.public-video-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1.5px solid rgba(184, 134, 11, 0.62);
  border-radius: var(--radius-sm);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 59, 46, 0.08), 0 2px 7px rgba(184, 134, 11, 0.08);
  color: var(--text-dark);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.public-video-card:hover,
.public-video-card:focus-visible {
  box-shadow: 0 10px 24px rgba(15, 59, 46, 0.16);
  transform: translateY(-3px);
}

.public-video-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #132b25;
}

.public-video-frame > video {
  display: block;
  width: 100%;
  height: 100%;
  background: #132b25;
  object-fit: cover;
}

.public-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: rgba(15, 59, 46, 0.78);
  color: #ffffff;
  font-size: 1.35rem;
  transform: translate(-50%, -50%);
}

.public-video-caption {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
}

.public-video-caption strong {
  font-size: 0.9rem;
}

.public-video-caption small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.video-lightbox {
  position: fixed;
  width: min(calc(100% - 32px), 1000px);
  max-width: 1000px;
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 48px 16px 16px;
  overflow: visible;
  border: 1px solid rgba(184, 134, 11, 0.7);
  border-radius: var(--radius-md);
  background: #101815;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.video-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.video-lightbox-close {
  position: absolute;
  top: 8px;
  right: 10px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font-size: 1.25rem;
}

.video-lightbox-player {
  display: block;
  width: 100%;
  max-height: calc(100vh - 112px);
  aspect-ratio: 16 / 9;
  background: #000000;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--text-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--input-border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-dark);
  font: inherit;
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-form .consent-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.contact-form .consent-check input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
}

.admission-form {
  display: grid;
  gap: 18px;
}

.admission-fieldset,
.admission-nested-fieldset {
  min-width: 0;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.9), 0 8px 22px rgba(15, 59, 46, 0.035);
}

.admission-fieldset legend,
.admission-nested-fieldset legend {
  display: block;
  width: calc(100% + 40px);
  max-width: none;
  margin: -20px -20px 18px;
  padding: 11px 20px;
  border-bottom: 1px solid var(--card-border);
  background: var(--bg-subtle);
  color: var(--text-dark);
  font-weight: 800;
}

.admission-nested-fieldset {
  margin-top: 18px;
  padding: 16px;
  background: var(--bg-subtle);
}

.admission-nested-fieldset legend {
  width: calc(100% + 32px);
  margin: -16px -16px 14px;
  padding: 9px 16px;
  background: var(--bg-subtle);
}

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

.admission-fields label {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 6px;
  color: var(--text-dark);
  font-size: 0.82rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.admission-fields label > span[aria-hidden="true"] {
  display: contents;
}

.admission-fields input,
.admission-fields select,
.admission-fields textarea {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 10px 12px;
  border: 2px solid var(--input-border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-dark);
  font: inherit;
  font-size: 0.9rem;
}

.admission-fields textarea {
  resize: vertical;
}

.admission-fields input[type="file"] {
  padding: 7px;
  font-size: 0.78rem;
}

.admission-fields input:focus,
.admission-fields select:focus,
.admission-fields textarea:focus {
  outline: 3px solid rgba(184, 134, 11, 0.22);
  border-color: var(--gold-accent);
}

.admission-wide {
  grid-column: 1 / -1;
}

.field-hint {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 400;
}

.admission-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
}

.admission-choice-row label,
.admission-declaration {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--text-dark);
  font-size: 0.86rem;
}

.admission-choice-row input,
.admission-declaration input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--gold-accent);
}

.admission-table-wrap {
  overflow-x: auto;
}

.admission-marks-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.admission-marks-table th,
.admission-marks-table td {
  padding: 8px;
  border-bottom: 1px solid var(--card-border);
  text-align: left;
}

.admission-marks-table input {
  width: 100%;
  min-width: 100px;
  min-height: 38px;
  padding: 7px 9px;
  border: 2px solid var(--input-border);
  border-radius: var(--radius-sm);
}

.admission-form > button {
  justify-self: start;
}

.admission-form-status-success {
  color: var(--navy-primary);
}

.admission-form-status-error {
  color: #a83232;
}

.service-status,
.form-status {
  min-height: 1.5em;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.form-status:empty {
  display: none;
}

.map-frame {
  width: 100%;
  min-height: 300px;
  border: 0;
  border-radius: var(--radius-sm);
}

@media (max-width: 768px) {
  .content-grid,
  .gallery-grid,
  .contact-layout,
  .history-layout {
    grid-template-columns: 1fr;
  }

  .history-layout > img {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .image-content-card .content-card-copy {
    padding: 20px;
  }

  .iit-special-initiatives-list {
    grid-template-columns: 1fr;
  }

  #streams .content-grid {
    grid-template-columns: 1fr;
  }
  .content-section {
    padding: 40px 0;
  }
  .admission-fields {
    grid-template-columns: 1fr;
  }

  @media (max-width: 480px) {
    .image-content-card .content-card-copy {
      padding: 18px;
    }
  }
  .admission-wide {
    grid-column: auto;
  }
}

/* Public-site academic typography hierarchy */
body:not(.admin-body) h1 {
  font-size: clamp(48px, 4.2vw, 60px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-transform: none;
}

body:not(.admin-body) h2 {
  font-size: clamp(40px, 3vw, 44px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-transform: none;
}

body:not(.admin-body) h3,
body:not(.admin-body) h4 {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.35;
  text-transform: none;
}

body:not(.admin-body) p,
body:not(.admin-body) li {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
}

body:not(.admin-body) small,
body:not(.admin-body) [class*="meta"],
body:not(.admin-body) [class*="caption"] {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

body:not(.admin-body) .brand-text h1 {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

body:not(.admin-body) .hero-title,
body:not(.admin-body) .page-title {
  font-size: clamp(48px, 5vw, 60px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-transform: none;
}

body:not(.admin-body) .section-title {
  font-size: clamp(40px, 3vw, 44px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-transform: none;
}

body:not(.admin-body) .hero-description,
body:not(.admin-body) .page-lede {
  font-size: 18px;
  line-height: 1.7;
}

body:not(.admin-body) .footer-links li {
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  body:not(.admin-body) h1,
  body:not(.admin-body) .hero-title,
  body:not(.admin-body) .page-title {
    font-size: clamp(38px, 8vw, 48px);
  }

  body:not(.admin-body) h2,
  body:not(.admin-body) .section-title {
    font-size: clamp(34px, 7vw, 40px);
  }

  body:not(.admin-body) h3,
  body:not(.admin-body) h4 {
    font-size: 24px;
  }
}

.nav-toggle,
.nav-menu-cta {
  display: none;
}

/* Tablet and mobile layout adjustments; desktop styles remain unchanged. */
@media (max-width: 1023px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

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

  .main-navbar {
    z-index: 1100;
  }

  .main-navbar::after {
    position: fixed;
    z-index: 0;
    inset: 0;
    background: rgba(15, 59, 46, 0.32);
    backdrop-filter: blur(3px);
    content: "";
    opacity: 0;
    pointer-events: none;
    overscroll-behavior: none;
    touch-action: none;
    transition: opacity 220ms ease;
  }

  body.mobile-menu-open .main-navbar::after {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-container {
    position: relative;
    z-index: 1;
    flex-wrap: nowrap;
    gap: 12px;
  }

  .brand {
    min-width: 0;
    max-width: calc(100% - 60px);
  }

  .brand-text {
    min-width: 0;
  }

  .brand-text h1 {
    overflow-wrap: anywhere;
  }

  .nav-toggle {
    display: flex;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--radius-sm);
    background: var(--navy-primary);
    cursor: pointer;
    z-index: 2;
  }

  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: #FFFFFF;
    transition: transform 220ms ease, opacity 180ms ease;
  }

  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-toggle:focus-visible,
  .nav-links a:focus-visible {
    outline: 2px solid #FFFFFF;
    outline-offset: 3px;
  }

  .nav-action {
    display: none;
  }

  .nav-links {
    position: fixed;
    z-index: 1;
    top: calc(var(--mobile-menu-top, 0px) + 12px);
    right: max(5%, calc((100vw - 1240px) / 2));
    left: max(5%, calc((100vw - 1240px) / 2));
    display: flex;
    flex-direction: column;
    gap: 0;
    width: auto;
    max-height: min(75vh, 620px);
    max-height: min(75dvh, 620px, calc(100dvh - var(--mobile-menu-top, 0px) - 24px));
    overflow-y: auto;
    padding: 10px 18px 18px;
    border: 1px solid rgba(184, 134, 11, 0.62);
    border-radius: var(--radius-md);
    background: rgba(15, 59, 46, 0.98);
    box-shadow: 0 14px 34px rgba(15, 59, 46, 0.3);
    backdrop-filter: blur(14px);
    transform: translateY(-8px);
    flex: initial;
    order: initial;
    visibility: hidden;
    opacity: 0;
    transition: transform 220ms ease, opacity 220ms ease, visibility 220ms ease;
    scrollbar-width: none;
  }

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

  .nav-links[aria-hidden="false"] {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
  }

  .nav-links li {
    flex: 0 0 auto;
    border-bottom: 1px solid rgba(184, 134, 11, 0.24);
  }

  .nav-links a {
    display: flex;
    min-height: 48px;
    align-items: center;
    padding: 10px 4px;
  }

  .nav-links a.active::after,
  .nav-links a:hover::after {
    bottom: 5px;
    width: 34px;
  }

  .nav-links .nav-menu-cta {
    display: block;
    padding-top: 12px;
    border-bottom: 0;
  }

  .nav-links .nav-menu-cta a {
    justify-content: center;
    min-height: 48px;
    padding: 10px 18px;
    color: var(--navy-primary);
  }

  .section-padding {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .content-section {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .hero-section {
    padding-top: 56px;
  }

  .page-hero {
    padding-top: 42px;
    padding-bottom: 34px;
  }

  .content-grid,
  .pillars-grid,
  .roadmap-grid,
  .clubs-grid,
  .facilities-grid,
  .events-notices-grid,
  .gallery-grid,
  .video-gallery-grid,
  .public-data-grid:not(.event-rows),
  .house-system-grid,
  .quick-stats-strip,
  .home-topper-grades {
    display: flex;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 14px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .about-pillars {
    flex-direction: row;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 14px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .about-pillars::-webkit-scrollbar {
    display: none;
  }

  .content-grid::-webkit-scrollbar,
  .pillars-grid::-webkit-scrollbar,
  .roadmap-grid::-webkit-scrollbar,
  .clubs-grid::-webkit-scrollbar,
  .facilities-grid::-webkit-scrollbar,
  .events-notices-grid::-webkit-scrollbar,
  .gallery-grid::-webkit-scrollbar,
  .video-gallery-grid::-webkit-scrollbar,
  .public-data-grid:not(.event-rows)::-webkit-scrollbar,
  .house-system-grid::-webkit-scrollbar,
  .quick-stats-strip::-webkit-scrollbar,
  .home-topper-grades::-webkit-scrollbar {
    display: none;
  }

  .content-grid > *,
  .pillars-grid > *,
  .roadmap-grid > *,
  .clubs-grid > *,
  .facilities-grid > *,
  .events-notices-grid > *,
  .gallery-grid > *,
  .video-gallery-grid > *,
  .public-data-grid:not(.event-rows) > *,
  .house-system-grid > *,
  .quick-stats-strip > *,
  .home-topper-grades > * {
    flex: 0 0 min(85%, 340px);
    min-width: 0;
    max-width: 100%;
    scroll-snap-align: start;
  }

  .about-pillars > .pillar-box {
    flex: 0 0 min(85%, 340px);
    min-width: 0;
    max-width: 100%;
    scroll-snap-align: start;
  }

  .content-grid > .content-card,
  .pillars-grid > .feature-card,
  .clubs-grid > .club-card,
  .facilities-grid > .facility-item,
  .gallery-grid > .gallery-item,
  .video-gallery-grid > *,
  .events-notices-grid > .board-card {
    height: auto;
    align-self: stretch;
  }

  .quick-stats-strip {
    flex-direction: row;
    align-items: stretch;
  }

  .quick-stats-strip > .stat-card {
    display: flex;
    flex: 0 0 min(72%, 260px);
    min-height: 84px;
    align-items: center;
  }

  .home-topper-grades > [data-public-resource] {
    flex-basis: min(92%, 460px);
  }

  .facilities-grid > .facility-item {
    flex-basis: min(72%, 280px);
  }

  .footer-grid {
    min-width: 0;
  }

  .extracurricular-box {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 18px;
  }

  .image-content-card {
    min-width: 0;
  }

  .image-content-card .content-card-media {
    min-width: 0;
  }

  .contact-layout,
  .history-layout,
  .leader-message-card {
    min-width: 0;
  }

  .map-frame {
    min-height: 240px;
  }
}

@media (max-width: 768px) {
  :root {
    --watermark-top-offset: 88px;
  }

  .container {
    width: calc(100% - 32px);
    max-width: 100%;
  }

  .top-bar {
    display: none;
  }

  .brand {
    gap: 10px;
  }

  .crest-placeholder {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  .brand-text h1 {
    font-size: clamp(13px, 4vw, 18px);
    letter-spacing: 0.06em;
  }

  .brand-text p {
    font-size: 0.58rem;
  }

  .brand-text .sub-addr {
    display: none;
  }

  body:not(.admin-body) h1,
  body:not(.admin-body) .hero-title,
  body:not(.admin-body) .page-title {
    font-size: clamp(30px, 8vw, 38px);
  }

  body:not(.admin-body) h2,
  body:not(.admin-body) .section-title {
    font-size: clamp(27px, 7vw, 34px);
  }

  body:not(.admin-body) h3,
  body:not(.admin-body) h4 {
    font-size: 22px;
  }

  body:not(.admin-body) p,
  body:not(.admin-body) li {
    font-size: 16px;
  }

  .hero-section {
    padding: 42px 0 14px;
  }

  .hero-carousel-controls {
    gap: 1px;
    min-height: 30px;
    padding-top: 4px;
  }

  .hero-slide-dot {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .section-padding {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .content-section {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .page-hero {
    padding-top: 34px;
    padding-bottom: 28px;
  }

  .hero-btn-group,
  .cta-actions {
    flex-wrap: wrap;
  }

  .hero-btn-group > a,
  .cta-actions > a,
  .btn,
  .btn-enquire,
  button,
  input,
  select,
  textarea {
    min-height: 44px;
  }

  .extracurricular-box {
    grid-template-columns: minmax(0, 1fr);
  }

  .extracurricular-box .ec-image-side {
    min-height: 190px;
  }

  .quick-stats-strip {
    gap: 12px;
  }

  .home-topper-grade {
    min-width: 0;
  }

  .content-grid > *,
  .pillars-grid > *,
  .roadmap-grid > *,
  .clubs-grid > *,
  .gallery-grid > *,
  .events-notices-grid > * {
    flex-basis: min(86%, 320px);
  }

  .footer-bottom-flex {
    flex-wrap: wrap;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle span,
  .nav-links {
    transition: none;
  }
}

#fee-structure .fee-table-wrap {
  width: 100%;
  max-width: 820px;
  margin: 22px auto 0;
  overflow-x: auto;
  border: 1px solid rgba(15, 59, 46, 0.2);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  -webkit-overflow-scrolling: touch;
}

#fee-structure .fee-table-wrap:focus-visible {
  outline: 2px solid var(--gold-accent);
  outline-offset: 3px;
}

#fee-structure .fee-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  margin: 0 auto;
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.5;
}

#fee-structure .fee-table th:first-child {
  width: 34%;
}

#fee-structure .fee-table th:not(:first-child) {
  width: 33%;
}

#fee-structure .fee-table th,
#fee-structure .fee-table td {
  padding: 14px 22px;
  border: 1px solid rgba(15, 59, 46, 0.16);
}

#fee-structure .fee-table thead {
  background: rgba(15, 59, 46, 0.09);
}

#fee-structure .fee-table thead th {
  color: var(--navy-primary);
  font-weight: 600;
}

#fee-structure .fee-table thead th:first-child,
#fee-structure .fee-table tbody th {
  text-align: left;
}

#fee-structure .fee-table thead th:not(:first-child),
#fee-structure .fee-table td {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#fee-structure .fee-table tbody th {
  font-weight: 500;
}

#fee-structure .fee-table tbody tr:nth-child(even) {
  background: var(--bg-subtle);
}

@media (max-width: 1023px) {
  #fee-structure .fee-table {
    display: table;
    max-width: none;
    height: auto;
  }
}

@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding-right: 16px;
    padding-left: 16px;
  }

  body:not(.admin-body) .brand-text h1 {
    font-size: clamp(0.75rem, 3.5vw, 0.95rem);
    line-height: 1.2;
    letter-spacing: 0.04em;
  }

  .section-padding,
  .content-section,
  .page-hero,
  .cta-banner {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero-section {
    padding: 36px 0 12px;
  }

  .hero-grid {
    margin-bottom: 24px;
  }

  .hero-slide {
    background-position: center;
  }

  body:not(.admin-body) .hero-title,
  body:not(.admin-body) .page-title {
    font-size: clamp(2rem, 7.5vw, 2.5rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  body:not(.admin-body) .section-title,
  body:not(.admin-body) .content-section h2 {
    font-size: clamp(1.65rem, 6vw, 2rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  body:not(.admin-body) .content-section h3,
  body:not(.admin-body) .content-section h4 {
    font-size: 1.25rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  body:not(.admin-body) .hero-description,
  body:not(.admin-body) .page-lede,
  body:not(.admin-body) .content-section p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero-btn-group,
  .cta-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    width: 100%;
  }

  .hero-btn-group > a,
  .cta-actions > a {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  .btn,
  .btn-enquire,
  .btn-navy-sm,
  .btn-outline-sm,
  button,
  input,
  select,
  textarea {
    min-height: 44px;
  }

  .content-grid,
  .pillars-grid,
  .roadmap-grid,
  .clubs-grid,
  .facilities-grid,
  .events-notices-grid,
  .gallery-grid,
  .video-gallery-grid,
  .public-data-grid:not(.event-rows),
  .public-data-grid.event-rows,
  .public-video-grid,
  .house-system-grid,
  .quick-stats-strip,
  .home-topper-grades,
  .home-toppers-grades,
  .about-pillars,
  .about-grid,
  .history-layout,
  .contact-layout,
  .leader-message-card,
  .extracurricular-box,
  .home-topper-grade,
  .home-topper-ranks {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 16px;
    width: 100%;
    min-width: 0;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
  }

  .content-grid > *,
  .pillars-grid > *,
  .roadmap-grid > *,
  .clubs-grid > *,
  .facilities-grid > *,
  .events-notices-grid > *,
  .gallery-grid > *,
  .video-gallery-grid > *,
  .public-data-grid > *,
  .public-video-grid > *,
  .house-system-grid > *,
  .home-topper-grades > *,
  .home-toppers-grades > *,
  .about-pillars > *,
  .about-grid > *,
  .history-layout > *,
  .contact-layout > *,
  .leader-message-card > *,
  .extracurricular-box > *,
  .home-topper-grade > *,
  .home-topper-ranks > * {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex: initial;
    scroll-snap-align: none;
  }

  .quick-stats-strip > .stat-card[hidden] {
    display: none;
  }

  .content-card,
  .about-main-card,
  .pillar-box,
  .feature-card,
  .club-card,
  .board-card {
    min-width: 0;
    padding: 16px;
    overflow-wrap: anywhere;
  }

  .image-content-card,
  .image-content-card.image-right {
    grid-template-columns: minmax(0, 1fr);
  }

  .image-content-card .content-card-media {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    padding: 0;
  }

  #streams .image-content-card .content-card-media {
    aspect-ratio: 16 / 9;
    padding: 0;
  }

  .image-content-card.image-right .content-card-media,
  .image-content-card.image-right .content-card-copy {
    grid-column: 1;
    grid-row: auto;
  }

  .image-content-card .content-card-media > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
  }

  #streams .image-content-card .content-card-media > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .image-content-card .content-card-copy,
  #streams .image-content-card .content-card-copy {
    min-width: 0;
    padding: 16px;
  }

  .content-card > img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 0 0 16px;
    object-fit: cover;
    object-position: center;
  }

  .about-media-card {
    width: 100%;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .about-media-card img,
  .history-layout > img,
  .ec-image-side img,
  .facility-item img,
  .gallery-item > img,
  .gallery-item > .public-image-frame > img,
  .public-image-frame > img {
    max-width: 100%;
    object-fit: cover;
    object-position: center;
  }

  .history-layout > img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .ec-image-side {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .ec-image-side img {
    width: 100%;
    height: 100%;
  }

  .quick-stats-strip {
    padding: 8px 16px;
  }

  .quick-stats-strip > .stat-card {
    width: 100%;
    min-width: 0;
    min-height: 68px;
    padding: 10px 0;
    border-bottom: 1px solid var(--card-border);
  }

  .quick-stats-strip > .stat-card:last-child {
    border-bottom: 0;
  }

  .home-topper-grade {
    padding: 14px;
  }

  .home-topper-grade-title {
    font-size: 1rem;
  }

  .home-topper-ranks {
    gap: 10px;
  }

  .home-topper-rank-slot {
    min-width: 0;
    padding: 12px;
  }

  .home-board-feed .home-board-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-board-visual,
  .home-board-visual > .public-image-frame {
    width: 100%;
  }

  .home-board-visual > .public-image-frame {
    aspect-ratio: 16 / 9;
  }

  .video-gallery-card-caption {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .video-gallery-card-caption a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .event-category-section .public-data-card .public-image-frame {
    width: min(100%, 340px);
  }

  #fee-structure .fee-table-wrap {
    max-width: 100%;
  }

  .content-grid,
  .pillars-grid,
  .roadmap-grid,
  .clubs-grid,
  .facilities-grid,
  .events-notices-grid,
  .gallery-grid,
  .video-gallery-grid,
  .public-data-grid:not(.event-rows),
  .house-system-grid,
  .quick-stats-strip,
  .home-topper-grades,
  .home-toppers-grades,
  .about-pillars {
    display: flex;
    flex-flow: row nowrap;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 16px 14px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .content-grid::-webkit-scrollbar,
  .pillars-grid::-webkit-scrollbar,
  .roadmap-grid::-webkit-scrollbar,
  .clubs-grid::-webkit-scrollbar,
  .facilities-grid::-webkit-scrollbar,
  .events-notices-grid::-webkit-scrollbar,
  .gallery-grid::-webkit-scrollbar,
  .video-gallery-grid::-webkit-scrollbar,
  .public-data-grid:not(.event-rows)::-webkit-scrollbar,
  .house-system-grid::-webkit-scrollbar,
  .quick-stats-strip::-webkit-scrollbar,
  .home-topper-grades::-webkit-scrollbar,
  .home-toppers-grades::-webkit-scrollbar,
  .about-pillars::-webkit-scrollbar {
    display: none;
  }

  .content-grid > *,
  .pillars-grid > *,
  .roadmap-grid > *,
  .clubs-grid > *,
  .facilities-grid > *,
  .events-notices-grid > *,
  .gallery-grid > *,
  .video-gallery-grid > *,
  .public-data-grid:not(.event-rows) > *,
  .house-system-grid > *,
  .home-topper-grades > *,
  .home-toppers-grades > *,
  .about-pillars > * {
    flex: 0 0 min(85%, 340px);
    width: auto;
    min-width: 0;
    max-width: 100%;
    scroll-snap-align: start;
  }

  .home-toppers-grades > [data-public-resource] {
    flex-basis: min(92%, 460px);
  }

  .about-pillars > .pillar-box {
    flex-basis: min(85%, 340px);
  }

  .quick-stats-strip > .stat-card {
    flex: 0 0 min(72%, 260px);
    width: auto;
  }

  .facilities-grid > .facility-item {
    flex-basis: min(72%, 280px);
  }

  .home-topper-ranks {
    display: flex;
    width: max-content;
    max-width: 100%;
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .home-topper-grade {
    display: block;
    padding: 9px;
  }

  .home-toppers-grades {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
  }

  .home-toppers-grades > [data-public-resource] {
    flex: initial;
    width: 100%;
    max-width: 100%;
    scroll-snap-align: none;
  }

  body:not(.admin-body) .home-topper-grade-title {
    margin-bottom: 7px;
    font-size: 0.82rem;
  }

  .home-topper-ranks {
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
    flex-flow: row nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 4px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .home-topper-ranks::-webkit-scrollbar {
    display: none;
  }

  .home-topper-rank-slot {
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
    gap: 6px;
    padding: 7px;
    scroll-snap-align: start;
  }

  .home-topper-rank-label {
    font-size: 0.58rem;
  }

  .home-topper-students {
    width: max-content;
    max-width: 100%;
    grid-template-columns: 76px;
    gap: 6px;
  }

  .home-topper-students[data-student-count="2"],
  .home-topper-students[data-student-count="3"] {
    width: max-content;
    max-width: none;
  }

  .home-topper-students[data-student-count="2"] {
    grid-template-columns: repeat(2, 76px);
  }

  .home-topper-students[data-student-count="3"] {
    grid-template-columns: repeat(3, 76px);
  }

  .home-topper-student {
    width: 76px;
    gap: 4px;
  }

  .home-topper-student > .public-image-frame {
    width: 100%;
  }

  .home-topper-student-details strong {
    font-size: 0.62rem;
  }

  .home-topper-student-details small,
  body:not(.admin-body) .home-topper-student-details p {
    font-size: 0.52rem;
  }
}

@media (max-width: 767px) {
  .hero-section {
    background: var(--navy-primary);
  }

  .hero-btn-group {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr);
    gap: 8px;
    width: 100%;
  }

  .hero-btn-group > a {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 7px 8px;
    justify-content: center;
    gap: 3px;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .quick-stats-strip {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, 1.3fr) minmax(0, 1.7fr) minmax(0, 2.1fr);
    align-items: stretch;
    gap: 4px;
    width: 100%;
    min-width: 0;
    overflow: visible;
    padding: 2px 3px;
    scroll-snap-type: none;
    margin-top: 4px;
  }

  .quick-stats-strip > .stat-card {
    display: grid;
    flex: initial;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    align-items: center;
    justify-items: center;
    column-gap: 2px;
    row-gap: 1px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
    padding: 2px 1px;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    text-align: center;
    scroll-snap-align: none;
  }

  .quick-stats-strip > .stat-card > div {
    display: contents;
  }

  .quick-stats-strip > .stat-card i {
    flex: 0 0 auto;
    grid-column: 1;
    grid-row: 1;
    font-size: 0.9rem;
  }

  .quick-stats-strip > .stat-card .stat-number {
    grid-column: 2;
    grid-row: 1;
    white-space: nowrap;
  }

  .quick-stats-strip .stat-number {
    min-width: 0;
    font-size: 0.52rem;
  }

  .quick-stats-strip > .stat-card.stat-highlight .stat-number {
    font-size: 0.45rem;
    transform: scaleX(0.9);
    transform-origin: left center;
  }

  .quick-stats-strip .stat-label {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: 100%;
    font-size: 0.32rem;
    line-height: 1;
    letter-spacing: -0.02em;
    hyphens: none;
    overflow-wrap: normal;
    word-break: keep-all;
    white-space: nowrap;
  }

  .hero-carousel-controls {
    width: 100%;
    justify-content: center;
    gap: 2px;
    min-height: 28px;
    margin: 0 0 8px;
    padding-top: 0;
  }

  .hero-section::before {
    display: none;
  }

  .hero-text-content {
    max-width: 100%;
  }

  .hero-description {
    margin-bottom: 16px;
  }

  .hero-text-content > .hero-slideshow {
    position: relative;
    z-index: 0;
    inset: auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0 0 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  }

  .hero-text-content > .hero-slideshow .hero-slide {
    background-position: center;
  }

  .hero-text-content > .hero-carousel-controls {
    margin-bottom: 10px;
  }

  .mobile-read-more {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin: 0 0 12px;
    padding: 8px 16px;
    border: 1px solid var(--gold-accent);
    border-radius: var(--radius-sm);
    background: var(--navy-primary);
    color: #FFFFFF;
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
  }

  .mobile-read-more:hover,
  .mobile-read-more:focus-visible {
    background: var(--gold-accent);
    color: var(--navy-primary);
  }

  .mobile-read-more[hidden],
  [data-read-more-tail][hidden] {
    display: none;
  }
}

@media (min-width: 768px) {
  .mobile-read-more {
    display: none !important;
  }

  [data-read-more-tail][hidden] {
    display: contents !important;
  }
}

@media (max-width: 767.98px) {
  .about-section .about-grid > .about-pillars {
    display: flex;
    flex-flow: row nowrap;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 12px 14px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 12px;
    scroll-behavior: smooth;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .about-section .about-grid > .about-pillars::-webkit-scrollbar {
    display: none;
  }

  .about-section .about-grid > .about-pillars > .pillar-box {
    display: flex;
    flex: 0 0 min(85vw, 340px);
    align-items: flex-start;
    gap: 12px;
    width: auto;
    min-width: 0;
    max-width: calc(100vw - 48px);
    padding: 20px;
    scroll-snap-align: start;
  }

  .about-section .about-grid > .about-pillars > .pillar-box > div {
    flex: 1 1 auto;
    min-width: 0;
  }

  .about-section .about-grid > .about-pillars .pillar-box h4 {
    font-size: 0.9rem;
    line-height: 1.3;
    overflow-wrap: break-word;
  }

  .about-section .about-grid > .about-pillars .pillar-box p {
    font-size: 0.8rem;
    line-height: 1.5;
    overflow-wrap: break-word;
  }
}

@media (min-width: 769px) {
  #activities .scouts-jrc-card {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    grid-template-rows: auto auto auto;
    align-items: center;
    column-gap: 18px;
    row-gap: 10px;
    overflow: hidden;
  }

  #activities .scouts-jrc-card > img {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 260px;
    aspect-ratio: auto;
    margin: 0;
    border-radius: 6px;
    object-fit: cover;
    object-position: center;
  }

  #activities .scouts-jrc-card > h3,
  #activities .scouts-jrc-card > p {
    grid-column: 2;
    min-width: 0;
  }

  #vision-mission .content-grid > .content-card:nth-child(4),
  #clubs .content-grid > .content-card:last-child {
    display: grid;
    grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.2fr);
    grid-template-rows: auto auto auto;
    align-items: center;
    column-gap: 22px;
    row-gap: 10px;
    overflow: hidden;
  }

  #vision-mission .content-grid > .content-card:nth-child(4) > img,
  #clubs .content-grid > .content-card:last-child > img {
    grid-column: 1;
    grid-row: 1 / span 4;
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 300px;
    aspect-ratio: auto;
    margin: 0;
    border-radius: 6px;
    object-fit: cover;
    object-position: center top;
  }

  #vision-mission .content-grid > .content-card:nth-child(4) > img {
    align-self: stretch;
    min-height: 100%;
  }

  #vision-mission .content-grid > .content-card:nth-child(4) > h3,
  #vision-mission .content-grid > .content-card:nth-child(4) > .inspiration-kicker,
  #vision-mission .content-grid > .content-card:nth-child(4) > blockquote,
  #vision-mission .content-grid > .content-card:nth-child(4) > p,
  #clubs .content-grid > .content-card:last-child > h3,
  #clubs .content-grid > .content-card:last-child > blockquote,
  #clubs .content-grid > .content-card:last-child > p {
    grid-column: 2;
    min-width: 0;
  }
}

@media (min-width: 1024px) {
  #enrichment-programmes .content-grid > .content-card:nth-child(8) {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 20px;
    row-gap: 10px;
    overflow: hidden;
  }

  #enrichment-programmes .content-grid > .content-card:nth-child(8) > img {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 220px;
    aspect-ratio: auto;
    margin: 0;
    border-radius: 6px;
    object-fit: cover;
    object-position: center;
  }

  #enrichment-programmes .content-grid > .content-card:nth-child(8) > h3,
  #enrichment-programmes .content-grid > .content-card:nth-child(8) > p {
    grid-column: 2;
    min-width: 0;
  }

  #enrichment-programmes .einstein-feature-card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto auto;
    align-items: center;
    column-gap: 28px;
    row-gap: 12px;
    overflow: hidden;
  }

  #enrichment-programmes .einstein-feature-card > img {
    grid-column: 1;
    grid-row: 1 / span 4;
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 300px;
    aspect-ratio: auto;
    margin: 0;
    border-radius: 6px;
    object-fit: cover;
    object-position: center top;
  }

  #enrichment-programmes .einstein-feature-card > h3,
  #enrichment-programmes .einstein-feature-card > blockquote,
  #enrichment-programmes .einstein-feature-card > p {
    grid-column: 2 / -1;
    min-width: 0;
  }
}

.einstein-feature-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-rows: auto auto auto;
  align-items: start;
  column-gap: 16px;
  row-gap: 10px;
  margin-top: 22px;
  overflow: hidden;
}

.einstein-feature-card > img {
  align-self: start;
  grid-column: 1;
  grid-row: 1 / span 3;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  margin: 0;
  border-radius: 6px;
  object-fit: cover;
  object-position: center top;
}

.einstein-feature-card > h3,
.einstein-feature-card > blockquote,
.einstein-feature-card > p {
  grid-column: 2;
  min-width: 0;
}

@media (max-width: 768px) {
  #activities .image-content-card .content-card-media > img {
    inset: 12px;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    border-radius: 6px;
  }

  #activities .content-grid > .scouts-jrc-card {
    display: grid;
    flex: 0 0 100%;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    align-items: start;
    column-gap: 12px;
    row-gap: 10px;
    width: 100%;
    padding: 15px;
    overflow: hidden;
  }

  #activities .content-grid > .content-card {
    padding: 5px;
  }

  #activities .content-grid > .scouts-jrc-card > img {
    grid-column: 1;
    grid-row: 1;
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 10px 10px 16px;
    border-radius: 6px;
    object-fit: cover;
    object-position: center;
  }

  #activities .content-grid > .scouts-jrc-card > h3,
  #activities .content-grid > .scouts-jrc-card > p {
    grid-column: 1;
    min-width: 0;
  }

  #vision-mission .content-grid > .content-card:nth-child(4) > img,
  #clubs .content-grid > .content-card:last-child > img,
  #enrichment-programmes .content-grid > .content-card:nth-child(8) > img {
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
  }

  #enrichment-programmes .content-grid > .content-card:nth-child(8) > img {
    aspect-ratio: 4 / 3;
  }

  .einstein-feature-card {
    column-gap: 12px;
    padding: 16px;
  }

  .einstein-feature-card > img {
    aspect-ratio: 3 / 5;
  }

  #enrichment-programmes .einstein-feature-card {
    display: none;
  }
}

#achievements .home-topper-students {
  justify-items: center;
}

#achievements .home-topper-student > .public-image-frame {
  width: 100%;
  aspect-ratio: 3 / 4;
}

@media (min-width: 769px) {
  #achievements .home-toppers-grades {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
  }

  #achievements .home-topper-grade {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
  }

  #achievements .home-topper-grade-title {
    justify-content: center;
    text-align: center;
    font-size: 1.05rem;
  }

  #achievements .home-topper-ranks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    max-width: none;
    gap: 16px;
  }

  #achievements .home-topper-rank-slot {
    align-items: center;
    gap: 10px;
    padding: 14px;
    text-align: center;
  }

  #achievements .home-topper-students {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 12px;
  }

  #achievements .home-topper-students[data-student-count="2"] {
    width: 100%;
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #achievements .home-topper-students[data-student-count="3"] {
    width: 100%;
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #achievements .home-topper-student {
    width: 100%;
    max-width: 176px;
    justify-self: center;
    justify-items: center;
  }

  #achievements .home-topper-students[data-student-count="2"] .home-topper-student {
    max-width: 156px;
  }

  #achievements .home-topper-students[data-student-count="3"] .home-topper-student {
    max-width: 132px;
  }
}

@media (max-width: 768px) {
  #achievements .home-topper-ranks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: none;
    gap: 6px;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
  }

  #achievements .home-topper-rank-slot {
    display: flex;
    flex: initial;
    width: 100%;
    min-width: 0;
    align-items: center;
    padding: 7px 5px;
    scroll-snap-align: none;
  }

  #achievements .home-topper-students,
  #achievements .home-topper-students[data-student-count="2"],
  #achievements .home-topper-students[data-student-count="3"] {
    display: grid;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 5px;
  }

  #achievements .home-topper-students[data-student-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #achievements .home-topper-students[data-student-count="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #achievements .home-topper-student,
  #achievements .home-topper-students[data-student-count="2"] .home-topper-student,
  #achievements .home-topper-students[data-student-count="3"] .home-topper-student {
    width: 100%;
    max-width: 92px;
    justify-self: center;
  }

  #achievements .home-topper-students {
    justify-items: center;
  }
}

#achievements .home-topper-grade {
  border: 1px solid rgba(15, 59, 46, 0.2);
  border-top: 3px solid var(--gold-accent);
  background: linear-gradient(145deg, #ffffff, #f6f8f3);
  box-shadow: 0 10px 28px rgba(15, 59, 46, 0.08);
}

#achievements .home-topper-grade-title {
  color: var(--navy-primary);
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  font-weight: 700;
}

#achievements .home-topper-rank-slot {
  border: 1px solid rgba(15, 59, 46, 0.1);
  background: linear-gradient(160deg, #f7f9f6, #eef3ec);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#achievements .home-topper-rank-slot-1 {
  border: 2px solid #c49a27;
  background-image:
    linear-gradient(112deg, transparent 30%, rgba(255, 255, 255, 0.82) 46%, transparent 62%),
    linear-gradient(155deg, #fffdf5 0%, #f8edc8 100%);
  background-size: 240% 100%, 100% 100%;
  background-position: 160% 0, 0 0;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.8), 0 5px 16px rgba(148, 105, 12, 0.14);
}

#achievements .home-topper-rank-slot-2 {
  border: 2px solid #8998a3;
  background-image:
    linear-gradient(112deg, transparent 25%, rgba(255, 255, 255, 0.96) 44%, rgba(255, 255, 255, 0.12) 55%, transparent 68%),
    linear-gradient(155deg, #f9fbfc 0%, #d9e0e5 48%, #eef1f3 100%);
  background-size: 240% 100%, 100% 100%;
  background-position: 160% 0, 0 0;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.98), 0 5px 16px rgba(85, 99, 108, 0.17);
}

.event-gallery-page .event-category-section .event-image-carousel {
  display: flex;
  flex-flow: row nowrap;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  min-width: 0;
  margin-top: 18px;
  padding: 6px 4px 16px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--gold-accent) rgba(15, 59, 46, 0.14);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.event-gallery-page .event-category-section .event-image-carousel::-webkit-scrollbar {
  height: 9px;
}

.event-gallery-page .event-category-section .event-image-carousel::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(15, 59, 46, 0.12);
}

.event-gallery-page .event-category-section .event-image-carousel::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--gold-accent);
  background-clip: padding-box;
}

.event-gallery-page .image-lightbox-thumbnails {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
  max-width: 100%;
  margin: 0 auto 14px;
  padding: 0 0 6px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--gold-accent) rgba(15, 59, 46, 0.14);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.event-gallery-page .image-lightbox-thumbnails[hidden] {
  display: none;
}

.event-gallery-page .image-lightbox-thumbnails::-webkit-scrollbar {
  display: block;
  height: 6px;
}

.event-gallery-page .image-lightbox-thumbnail {
  flex: 0 0 110px;
  width: 110px;
  height: 64px;
  min-height: 0;
  padding: 2px;
  overflow: hidden;
  border: 1px solid rgba(15, 59, 46, 0.4);
  border-radius: 7px;
  background: #ffffff;
  cursor: pointer;
}

.event-gallery-page .image-lightbox-thumbnail[aria-current="true"] {
  border: 2px solid var(--gold-accent);
  box-shadow: 0 2px 8px rgba(15, 59, 46, 0.24);
}

.event-gallery-page .image-lightbox-thumbnail img {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: cover;
}

.event-gallery-page .image-lightbox-thumbnails::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(15, 59, 46, 0.14);
}

.event-gallery-page .image-lightbox-thumbnails::-webkit-scrollbar-thumb {
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--gold-accent);
  background-clip: padding-box;
}

.event-gallery-page .event-image-card {
  position: relative;
  flex: 0 0 clamp(210px, calc((100% - 48px) / 4), 260px);
  min-width: 0;
  aspect-ratio: 4 / 3;
  padding: 6px;
  border: 1px solid var(--gold-accent);
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff, #f1f5ef);
  box-shadow: 0 8px 22px rgba(15, 59, 46, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  scroll-snap-align: start;
}

.event-gallery-page .event-image-card:not(.event-image-card-centum) {
  flex-basis: clamp(300px, calc((100% - 32px) / 3), 360px);
}

.event-gallery-page .event-image-card-centum {
  aspect-ratio: auto;
}

.event-gallery-page .event-image-card-front {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 6px;
  overflow: hidden;
  border-radius: 12px;
}

.event-gallery-page .event-image-card-centum .event-image-card-front {
  position: relative;
  inset: auto;
  display: flex;
  flex-direction: column;
  padding: 8px;
  background:
    radial-gradient(ellipse at top, rgba(184, 134, 11, 0.11), transparent 56%),
    linear-gradient(160deg, #ffffff, #f4f7f2);
}

.event-gallery-page .event-image-card-front {
  border: 0;
  background: #ffffff;
}

.event-gallery-page .event-gallery-image {
  position: relative;
  flex: 1 1 auto;
  inset: auto;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  background: #e9eee9;
  border: 2px solid var(--gold-accent);
  cursor: zoom-in;
}

.event-gallery-page .event-gallery-image > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(15, 59, 46, 0.18);
  object-fit: cover;
}

.event-gallery-page .event-image-title {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 32px 14px 14px;
  color: #ffffff;
  background: linear-gradient(transparent, rgba(10, 31, 25, 0.88));
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  overflow-wrap: anywhere;
}

.event-gallery-page .event-centum-heading {
  padding: 3px 3px 8px;
  text-align: center;
}

.event-gallery-page .event-centum-meta {
  margin: 0;
  color: var(--navy-primary);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
}

.event-gallery-page .event-centum-event-title {
  margin: 3px 0 0;
  color: #8a6508;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}

.event-gallery-page .event-image-card-centum .event-gallery-image {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  border-radius: 9px;
  background: #ffffff;
}

.event-gallery-page .event-gallery-image > img {
  transition: transform 220ms ease;
}

.event-gallery-page .event-gallery-image:hover > img,
.event-gallery-page .event-gallery-image:focus-visible > img {
  transform: scale(1.045);
}

.event-gallery-page .event-gallery-image:focus-visible {
  outline: 3px solid var(--navy-primary);
  outline-offset: 3px;
}

.event-gallery-page .event-card-image-controls {
  position: absolute;
  z-index: 1;
  inset: 50% 14px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  transform: translateY(-50%);
}

.event-gallery-page .event-card-image-arrow {
  display: grid;
  width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(15, 59, 46, 0.94);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}

.event-gallery-page .event-card-image-arrow:hover,
.event-gallery-page .event-card-image-arrow:focus-visible {
  background: var(--gold-accent);
}

.event-gallery-page .event-card-image-position {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 59, 46, 0.94);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  pointer-events: none;
}

.event-gallery-page .event-image-title {
  padding-right: 78px;
}

.event-gallery-page .image-lightbox-stage {
  position: relative;
  width: min(100%, 720px);
  clear: both;
  margin: 0 auto;
}

.event-gallery-page .image-lightbox-navigation {
  position: absolute;
  z-index: 1;
  top: 50%;
  display: grid;
  width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(15, 59, 46, 0.82);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.event-gallery-page .image-lightbox-navigation[hidden] {
  display: none;
}

.event-gallery-page .image-lightbox-previous {
  left: 12px;
}

.event-gallery-page .image-lightbox-next {
  right: 12px;
}

.event-gallery-page .image-lightbox-navigation:hover,
.event-gallery-page .image-lightbox-navigation:focus-visible {
  background: var(--gold-accent);
}

.event-gallery-page .image-lightbox-position {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 50%;
  padding: 4px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 59, 46, 0.82);
  font-size: 0.78rem;
  font-weight: 700;
  transform: translateX(-50%);
}

.event-gallery-page .image-lightbox-position[hidden] {
  display: none;
}

.event-gallery-page .event-gallery-load-more {
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid var(--gold-accent);
  border-radius: 8px;
  color: var(--navy-primary);
  background: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.event-gallery-page .event-gallery-load-more:hover {
  color: #ffffff;
  background: var(--navy-primary);
}

.event-gallery-page .event-gallery-controls {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
}

.event-gallery-page .event-gallery-controls[hidden] {
  display: none;
}

.event-gallery-page .event-gallery-count {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.event-gallery-page .image-lightbox {
  position: fixed;
  inset: 0;
  width: min(90vw, 880px);
  max-width: 90vw;
  max-height: 92vh;
  margin: auto;
  padding: 24px;
  overflow: auto;
  border: 2px solid var(--gold-accent);
  border-radius: 18px;
  color: var(--text-dark);
  background:
    radial-gradient(ellipse at top left, rgba(184, 134, 11, 0.18), transparent 42%),
    linear-gradient(145deg, #f8faf6, #e8f0e9);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38), inset 0 1px 0 #ffffff;
}

.event-gallery-page .image-lightbox::backdrop {
  background: rgba(8, 20, 16, 0.82);
}

.event-gallery-page .image-lightbox-close {
  position: sticky;
  z-index: 1;
  top: 0;
  float: right;
  display: grid;
  width: 42px;
  height: 42px;
  min-height: 42px;
  margin: -12px -12px 8px 8px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: var(--navy-primary);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.event-gallery-page .image-lightbox-image {
  display: block;
  width: 100%;
  max-height: 62vh;
  margin: 0 auto 14px;
  padding: 6px;
  border: 2px solid var(--gold-accent);
  border-radius: 12px;
  background: var(--navy-primary);
  box-shadow: 0 10px 28px rgba(15, 59, 46, 0.22);
  object-fit: contain;
}

.event-gallery-page .image-lightbox[open] .image-lightbox-image {
  animation: event-gallery-zoom-in 240ms ease-out both;
}

@keyframes event-gallery-zoom-in {
  from {
    opacity: 0.72;
    transform: scale(0.94);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.event-gallery-page .image-lightbox-copy h2 {
  margin: 0 0 8px;
  color: var(--navy-primary);
  text-align: center;
}

.event-gallery-page .image-lightbox-copy p {
  margin: 0;
  color: var(--text-muted);
  text-align: center;
  overflow-wrap: anywhere;
}

@media (max-width: 768px) {
  .event-gallery-page .event-category-section .event-image-carousel {
    gap: 12px;
    padding: 6px 4px 16px;
  }

  .event-gallery-page .event-image-card {
    flex-basis: clamp(210px, 66vw, 260px);
  }

  .event-gallery-page .event-image-card:not(.event-image-card-centum) {
    flex-basis: clamp(260px, 78vw, 320px);
  }

  .event-gallery-page .event-image-card-centum {
    padding: 6px;
    border: 1px solid var(--gold-accent);
    border-radius: 14px;
    background: linear-gradient(145deg, #ffffff, #f1f5ef);
    box-shadow: 0 8px 22px rgba(15, 59, 46, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }

  .event-gallery-page .event-image-card-centum .event-image-card-front {
    padding: 8px;
    background:
      radial-gradient(ellipse at top, rgba(184, 134, 11, 0.11), transparent 56%),
      linear-gradient(160deg, #ffffff, #f4f7f2);
  }

  .event-gallery-page .event-image-card-centum .event-gallery-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    border: 2px solid var(--gold-accent);
    border-radius: 9px;
    background: #ffffff;
  }

  .event-gallery-page .image-lightbox-thumbnails {
    gap: 5px;
    margin-bottom: 10px;
    padding-bottom: 6px;
  }

  .event-gallery-page .image-lightbox-thumbnail {
    flex-basis: 96px;
    width: 96px;
    height: 56px;
  }

  .event-gallery-page .image-lightbox-thumbnails::-webkit-scrollbar {
    display: block;
    height: 6px;
  }

  .event-gallery-page .image-lightbox-thumbnails {
    scrollbar-width: thin;
    scrollbar-color: var(--gold-accent) rgba(15, 59, 46, 0.14);
  }

  .event-gallery-page .event-centum-meta {
    font-size: 0.74rem;
  }

  .event-gallery-page .event-centum-event-title {
    font-size: 0.92rem;
  }

  .event-gallery-page .event-gallery-controls {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .event-gallery-page .event-gallery-load-more {
    width: 100%;
  }

  .event-gallery-page .image-lightbox {
    width: 92vw;
    max-width: 92vw;
    padding: 14px;
  }

  .event-gallery-page .image-lightbox-image {
    max-height: 58vh;
  }

  .event-gallery-page .image-lightbox-navigation {
    width: 46px;
    height: 46px;
    min-height: 46px;
    flex: 0 0 46px;
    padding: 0;
    border: 2px solid #ffffff;
    background: rgba(15, 59, 46, 0.96);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.38);
    font-size: 2rem;
  }

  .event-gallery-page .event-card-image-controls {
    inset-inline: 12px;
  }

  .event-gallery-page .event-card-image-arrow {
    width: 46px;
    height: 46px;
    min-height: 46px;
    flex: 0 0 46px;
    padding: 0;
    border: 2px solid #ffffff;
    background: rgba(15, 59, 46, 0.96);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.38);
    font-size: 2rem;
  }

  .event-gallery-page .event-card-image-position {
    right: 14px;
    bottom: 14px;
    padding: 6px 11px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    font-size: 0.84rem;
    letter-spacing: 0.02em;
  }

  .event-gallery-page .image-lightbox-position {
    top: auto;
    right: 10px;
    bottom: 12px;
    left: auto;
    padding: 6px 11px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    font-size: 0.84rem;
    transform: none;
  }
}

.public-data-grid.public-video-carousel {
  display: flex;
  flex-flow: row nowrap;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 4px 16px;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--gold-accent) rgba(15, 59, 46, 0.14);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.public-data-grid.public-video-carousel::-webkit-scrollbar {
  height: 9px;
}

.public-data-grid.public-video-carousel::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(15, 59, 46, 0.12);
}

.public-data-grid.public-video-carousel::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--gold-accent);
  background-clip: padding-box;
}

.public-video-carousel > .public-video-card {
  flex: 0 0 clamp(240px, 30vw, 320px);
  scroll-snap-align: start;
}

.public-video-carousel .public-video-frame {
  flex: 0 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.public-video-carousel .public-video-frame > video {
  object-fit: cover;
}

.video-lightbox-copy {
  padding: 14px 4px 2px;
  color: #ffffff;
}

.video-lightbox-copy h2 {
  margin: 0 0 6px;
  color: #ffffff;
}

.video-lightbox-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  overflow-wrap: anywhere;
}

@media (max-width: 768px) {
  .public-data-grid.public-video-carousel {
    gap: 12px;
    padding: 6px 4px 16px;
  }

  .public-video-carousel > .public-video-card {
    flex-basis: min(82vw, 320px);
  }

  .video-lightbox {
    padding: 48px 12px 12px;
  }

  .video-lightbox-copy {
    padding-inline: 2px;
  }
}

#achievements .home-topper-rank-slot-3 {
  border: 2px solid #a85f3b;
  background-image:
    linear-gradient(112deg, transparent 30%, rgba(255, 255, 255, 0.72) 46%, transparent 62%),
    linear-gradient(155deg, #fff9f5 0%, #f0ded3 100%);
  background-size: 240% 100%, 100% 100%;
  background-position: 160% 0, 0 0;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.8), 0 5px 16px rgba(123, 61, 35, 0.13);
}

#achievements .home-topper-rank-slot-1,
#achievements .home-topper-rank-slot-2,
#achievements .home-topper-rank-slot-3 {
  animation: topper-metallic-shimmer 5s ease-in-out infinite;
}

@keyframes topper-metallic-shimmer {
  0%, 100% { background-position: 160% 0, 0 0; }
  50% { background-position: -60% 0, 0 0; }
}

#achievements .home-topper-rank-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--navy-primary);
  font-size: 0.8rem;
}

#achievements .home-topper-rank-medal {
  font-size: 1.1rem;
}

#achievements .home-topper-rank-label-1 .home-topper-rank-medal {
  color: #b8860b;
}

#achievements .home-topper-rank-label-2 .home-topper-rank-medal {
  color: #77858e;
}

#achievements .home-topper-rank-label-3 .home-topper-rank-medal {
  color: #a85f3b;
}

#achievements .home-topper-students[data-student-count="2"],
#achievements .home-topper-students[data-student-count="3"] {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: -2px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 4px 8px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 8px;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

#achievements .home-topper-students[data-student-count="2"]::-webkit-scrollbar,
#achievements .home-topper-students[data-student-count="3"]::-webkit-scrollbar {
  height: 8px;
}

#achievements .home-topper-students[data-student-count="2"] .home-topper-student {
  flex: 0 0 176px;
  width: 176px;
  max-width: none;
}

#achievements .home-topper-students[data-student-count="3"] .home-topper-student {
  flex: 0 0 176px;
  width: 176px;
  max-width: none;
}

#achievements .home-topper-students[data-student-count="2"] .home-topper-student,
#achievements .home-topper-students[data-student-count="3"] .home-topper-student {
  scroll-snap-align: center;
}

#achievements .home-topper-students[data-student-count="2"]:focus-visible,
#achievements .home-topper-students[data-student-count="3"]:focus-visible {
  outline: 2px solid var(--gold-accent);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  #achievements .home-topper-grade {
    padding: 12px;
  }

  #achievements .home-topper-grade-title {
    margin-bottom: 10px;
    font-size: 1.05rem;
  }

  #achievements .home-topper-rank-slot {
    padding: 8px 5px;
  }

  #achievements .home-topper-rank-label {
    gap: 3px;
    font-size: 0.65rem;
  }

  #achievements .home-topper-rank-medal {
    font-size: 0.88rem;
  }

  #achievements .home-topper-students[data-student-count="2"],
  #achievements .home-topper-students[data-student-count="3"] {
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-color: var(--gold-accent) rgba(15, 59, 46, 0.14);
    scrollbar-width: thin;
  }

  #achievements .home-topper-students[data-student-count="2"]::-webkit-scrollbar,
  #achievements .home-topper-students[data-student-count="3"]::-webkit-scrollbar {
    display: block;
    height: 8px;
  }

  #achievements .home-topper-students[data-student-count="2"]::-webkit-scrollbar-track,
  #achievements .home-topper-students[data-student-count="3"]::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(15, 59, 46, 0.14);
  }

  #achievements .home-topper-students[data-student-count="2"]::-webkit-scrollbar-thumb,
  #achievements .home-topper-students[data-student-count="3"]::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: var(--gold-accent);
    background-clip: padding-box;
  }

  #achievements .home-topper-students[data-student-count="2"] .home-topper-student,
  #achievements .home-topper-students[data-student-count="3"] .home-topper-student {
    flex: 0 0 92px;
    width: 92px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #achievements .home-topper-rank-slot-1,
  #achievements .home-topper-rank-slot-2,
  #achievements .home-topper-rank-slot-3 {
    animation: none;
  }
}

.event-gallery-page .event-image-card-centum {
  isolation: isolate;
  border: 1px solid rgba(201, 164, 66, 0.9);
  background: linear-gradient(145deg, #f8fbf7, #e7efe8);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.92),
    0 9px 24px rgba(15, 59, 46, 0.18);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.event-gallery-page .event-image-card-centum::after {
  position: absolute;
  z-index: 2;
  inset: 6px;
  border-radius: 9px;
  background: linear-gradient(
    118deg,
    transparent 22%,
    rgba(199, 236, 215, 0.04) 38%,
    rgba(223, 255, 237, 0.62) 49%,
    rgba(145, 202, 166, 0.12) 58%,
    transparent 74%
  );
  background-size: 250% 100%;
  background-position: 150% 0;
  content: "";
  pointer-events: none;
  animation: centum-emerald-glass-sweep 5.5s ease-in-out infinite;
}

.event-gallery-page .event-centum-ribbon-frame {
  position: absolute;
  z-index: 4;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.event-gallery-page .event-centum-score-ribbon {
  position: absolute;
  top: 15px;
  left: -39px;
  display: block;
  width: 140px;
  padding: 8px 4px;
  overflow: hidden;
  border: 2px solid #f1d77f;
  color: #fff3bd;
  background:
    linear-gradient(112deg, transparent 30%, rgba(232, 255, 239, 0.42) 46%, transparent 62%),
    linear-gradient(155deg, #28734e 0%, #0f4c35 44%, #1d6845 72%, #0b3f2d 100%);
  background-size: 240% 100%, 100% 100%;
  background-position: 160% 0, 0 0;
  box-shadow:
    0 3px 9px rgba(15, 59, 46, 0.35),
    inset 0 0 0 1px rgba(255, 247, 205, 0.82),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 1px 2px rgba(235, 206, 112, 0.38);
  transform: rotate(-45deg);
  animation: centum-foil-shimmer 5s ease-in-out infinite;
}

.event-gallery-page .event-image-card-centum:hover {
  transform: translateY(-5px);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.96),
    0 15px 32px rgba(15, 59, 46, 0.25),
    0 0 0 3px rgba(201, 164, 66, 0.16);
}

.event-gallery-page .event-image-card-centum .event-image-card-front {
  background:
    radial-gradient(ellipse at top, rgba(33, 102, 69, 0.1), transparent 58%),
    linear-gradient(160deg, #fbfcf8, #eaf1e9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.event-gallery-page .event-centum-meta {
  color: #164b36;
}

.event-gallery-page .event-centum-event-title {
  color: #96721a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.event-gallery-page .event-image-card-centum .event-gallery-image {
  border: 1px solid #c8a342;
  box-shadow: 0 3px 10px rgba(15, 59, 46, 0.13);
}

@keyframes centum-foil-shimmer {
  0%, 100% { background-position: 160% 0, 0 0; }
  50% { background-position: -60% 0, 0 0; }
}

@keyframes centum-emerald-glass-sweep {
  0%, 12% { background-position: 150% 0; }
  58%, 100% { background-position: -150% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .event-gallery-page .event-image-card-centum,
  .event-gallery-page .event-image-card-centum::after,
  .event-gallery-page .event-centum-ribbon-frame,
  .event-gallery-page .event-centum-score-ribbon {
    transition: none;
    animation: none;
  }
}

.home-page .main-navbar .nav-action > .btn-enquire {
  border: 1.5px solid rgba(229, 168, 35, 0.88);
  background: #D4AF37;
  color: #083320;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12), inset 0 1px rgba(255, 255, 255, 0.35);
  transition: transform 180ms ease, color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.home-page .main-navbar .nav-action > .btn-enquire:hover,
.home-page .main-navbar .nav-action > .btn-enquire:focus-visible {
  border-color: #E5A823;
  background: #E5A823;
  color: #083320;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16), inset 0 1px rgba(255, 255, 255, 0.45);
}

.main-navbar .nav-action > .btn-enquire,
.home-page .hero-section .hero-admissions-cta {
  position: relative;
  isolation: isolate;
  overflow: visible;
  animation: radialPulse 3s ease-out infinite;
}

.main-navbar .nav-action > .btn-enquire > span,
.home-page .hero-section .hero-admissions-cta > span {
  position: relative;
  z-index: 2;
}

.home-page .hero-section .hero-admissions-cta {
  border-color: #D49B22;
  background: linear-gradient(135deg, #F0BA3B, #D49B22);
  color: #083320;
}

.main-navbar .nav-action > .btn-enquire::after,
.home-page .hero-section .hero-admissions-cta::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.62) 50%, transparent 60%);
  background-size: 200% 100%;
  background-position: -100% 0;
  border-radius: inherit;
  content: "";
  pointer-events: none;
  animation: lightSweep 3s ease-in-out infinite;
}

.home-page .hero-section .hero-admissions-cta:hover,
.home-page .hero-section .hero-admissions-cta:focus-visible {
  border-color: #F2C45D;
  background: linear-gradient(135deg, #F5C852, #E5A823);
  color: #083320;
}

.main-navbar .nav-action > .btn-enquire:hover,
.main-navbar .nav-action > .btn-enquire:focus-visible,
.home-page .hero-section .hero-admissions-cta:hover,
.home-page .hero-section .hero-admissions-cta:focus-visible {
  transform: translateY(-4px);
}

.main-navbar .nav-action > .btn-enquire:active,
.home-page .hero-section .hero-admissions-cta:active {
  transform: translateY(0) scale(0.95);
}

@keyframes radialPulse {
  0% {
    outline: 1px solid rgba(229, 168, 35, 0.5);
    outline-offset: 0;
    filter: drop-shadow(0 0 3px rgba(229, 168, 35, 0.42));
  }
  70% {
    outline: 8px solid rgba(229, 168, 35, 0);
    outline-offset: 12px;
    filter: drop-shadow(0 0 9px rgba(229, 168, 35, 0));
  }
  100% {
    outline: 8px solid rgba(229, 168, 35, 0);
    outline-offset: 12px;
    filter: drop-shadow(0 0 9px rgba(229, 168, 35, 0));
  }
}

@keyframes lightSweep {
  0%, 15% {
    background-position: -100% 0;
  }
  70%, 100% {
    background-position: 100% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .main-navbar .nav-action > .btn-enquire,
  .main-navbar .nav-action > .btn-enquire::after,
  .home-page .hero-section .hero-admissions-cta,
  .home-page .hero-section .hero-admissions-cta::after {
    animation: none;
  }
}

#infrastructure .bus-facilities-image-frame {
  position: relative;
  width: calc(100% + 44px);
  aspect-ratio: 16 / 9;
  margin: -22px -22px 18px;
  overflow: hidden;
  container-type: size;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

#infrastructure .bus-facilities-image-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  margin: 0;
  aspect-ratio: auto;
  object-fit: cover;
}

#infrastructure .sports-ground-image-frame {
  position: relative;
  width: calc(100% + 44px);
  aspect-ratio: 16 / 9;
  margin: -22px -22px 18px;
  overflow: hidden;
  container-type: size;
  box-sizing: border-box;
  border: 1.5px solid rgba(184, 134, 11, 0.62);
  border-top: 4px solid var(--gold-accent);
  background: #ffffff;
  box-shadow: 0 7px 18px rgba(15, 59, 46, 0.12), 0 2px 7px rgba(184, 134, 11, 0.14);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

#infrastructure .sports-ground-image-frame > img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100cqh;
  height: 100cqw;
  max-width: none;
  margin: 0;
  aspect-ratio: auto;
  object-fit: cover;
  transform: translate(-50%, -50%) rotate(-90deg);
}

@media (min-width: 1024px) {
  #infrastructure .bus-facilities-card {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    grid-template-rows: auto 1fr;
    align-items: center;
    column-gap: 20px;
    overflow: hidden;
  }

  #infrastructure .bus-facilities-card > .bus-facilities-image-frame {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 100%;
    height: 100%;
    min-height: 240px;
    margin: 0;
    border-radius: 6px;
  }

  #infrastructure .bus-facilities-card > h3,
  #infrastructure .bus-facilities-card > p {
    grid-column: 2;
    min-width: 0;
  }
}

@media (min-width: 769px) {
  #infrastructure .sports-physical-card {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 18px;
    row-gap: 10px;
    overflow: hidden;
  }

  #infrastructure .sports-physical-card > .sports-ground-image-frame {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 100%;
    height: 100%;
    min-height: 220px;
    margin: 0;
    border-radius: 6px;
  }

  #infrastructure .sports-physical-card > h3,
  #infrastructure .sports-physical-card > p {
    grid-column: 2;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  #infrastructure .bus-facilities-card > .bus-facilities-image-frame,
  #infrastructure .sports-physical-card > .sports-ground-image-frame {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    margin: 0 0 16px;
    aspect-ratio: 16 / 9;
    border: 1.5px solid rgba(184, 134, 11, 0.68);
    border-radius: 7px;
    box-shadow: 0 7px 18px rgba(15, 59, 46, 0.1), 0 2px 7px rgba(184, 134, 11, 0.12);
  }

  #infrastructure .sports-physical-card > .sports-ground-image-frame {
    border-top-width: 1.5px;
  }
}

html {
  scroll-behavior: smooth;
}

body:not(.admin-body) .crest-placeholder {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  border: 2px solid #d4af37;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

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

.page-hero::after {
  position: absolute;
  z-index: 0;
  top: 0;
  right: max(calc((100% - 1240px) / 2), 5%);
  bottom: 0;
  width: min(52%, 700px);
  background-image:
    linear-gradient(112deg, transparent 38%, rgba(255, 219, 126, 0.3) 49%, transparent 61%),
    url("../school%20images/peacock-hero-right.png");
  background-repeat: no-repeat;
  background-size: 260% 100%, contain;
  background-position: -130% 0, right center;
  -webkit-mask-image: url("../school%20images/peacock-hero-right.png");
  -webkit-mask-position: right center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-image: url("../school%20images/peacock-hero-right.png");
  mask-position: right center;
  mask-repeat: no-repeat;
  mask-size: contain;
  content: "";
  pointer-events: none;
  animation: peacock-gold-glitter 7s ease-in-out infinite;
}

@keyframes peacock-gold-glitter {
  0%, 12% { background-position: -130% 0, right center; }
  58%, 100% { background-position: 130% 0, right center; }
}

.page-hero > .container {
  position: relative;
  z-index: 1;
}

.page-hero .page-kicker,
.page-hero .page-title,
.page-hero .page-lede,
.page-hero .btn {
  max-width: 54%;
}

body:not(.admin-body) .page-hero .admissions-page-title {
  max-width: none;
}

.notice-marquee {
  overflow: hidden;
  box-sizing: border-box;
  width: calc(100% - 48px);
  max-width: 1240px;
  margin: 12px auto;
  padding: 8px 0;
  border: 1px solid rgba(212, 175, 55, 0.65);
  border-radius: 8px;
  background: #0f3b2e;
  color: #d4af37;
}

.notice-marquee[hidden] {
  display: none;
}

.notice-marquee-content {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
}

.notice-marquee .notice-marquee-heading {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid rgba(240, 230, 210, 0.72);
  border-radius: 5px;
  background: linear-gradient(135deg, #d4af37, #b8860b);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
  color: #0f3b2e;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.notice-marquee-icon {
  font-size: 0.9rem;
  line-height: 1;
}

.notice-marquee-window {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  line-height: 1.25;
}

.notice-marquee-track {
  display: flex;
  width: max-content;
  animation: notice-marquee-scroll var(--marquee-duration, 28s) linear infinite;
  will-change: transform;
}

.notice-marquee-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 1rem;
  padding-right: 1rem;
  white-space: nowrap;
}

.notice-marquee-title {
  font-size: 0.78rem;
  font-weight: 500;
}

.notice-marquee-separator {
  color: #f0e6d2;
}

.notice-marquee-window:hover .notice-marquee-track {
  animation-play-state: paused;
}

.scroll-reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 900ms ease, transform 900ms ease;
  will-change: opacity, transform;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@keyframes notice-marquee-scroll {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes header-line-travel {
  from {
    transform: translateX(calc(-100% - 50vw));
  }
  to {
    transform: translateX(50vw);
  }
}

@keyframes header-line-travel-reverse {
  from {
    transform: translateX(50vw);
  }
  to {
    transform: translateX(calc(-100% - 50vw));
  }
}

@media (max-width: 991px) {
  .page-hero::after {
    display: none;
  }

  .peacock-glitter-hero {
    display: none;
  }

  .page-hero .page-kicker,
  .page-hero .page-title,
  .page-hero .page-lede,
  .page-hero .btn {
    max-width: 100%;
  }

  body:not(.admin-body) .page-hero .admissions-page-title {
    max-width: 100%;
    white-space: normal;
  }

  .scroll-reveal {
    will-change: auto;
  }
}

@media (min-width: 992px) {
  body:not(.admin-body) .page-hero .admissions-page-title {
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  body:not(.admin-body) .nav-container::before,
  body:not(.admin-body) .nav-container::after {
    animation-duration: 7s;
  }

  .extracurricular-box .ec-image-side {
    box-sizing: border-box;
    padding: 16px 16px 0;
    aspect-ratio: auto;
  }

  .extracurricular-box .ec-image-side img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 1.5px solid rgba(184, 134, 11, 0.5);
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(15, 59, 46, 0.1), 0 2px 6px rgba(184, 134, 11, 0.1);
  }

  .activity-tags-grid span {
    padding: 4px 10px;
    font-size: 14px;
  }

  body:not(.admin-body) .crest-placeholder {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .notice-marquee {
    width: calc(100% - 32px);
    max-width: 480px;
    margin: 10px auto;
    padding: 4px 0;
    border: 1px solid rgba(212, 175, 55, 0.65);
    border-radius: 8px;
  }

  .notice-marquee-content {
    box-sizing: border-box;
    width: 100%;
    gap: 6px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .notice-marquee .notice-marquee-heading {
    gap: 2px;
    padding: 1px 4px;
    font-size: 0.56rem;
    letter-spacing: 0.03em;
  }

  .notice-marquee-icon {
    font-size: 0.64rem;
  }

  .notice-marquee-title {
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .main-navbar::before,
  .page-hero::after {
    animation: none;
  }

  .peacock-glitter > span {
    animation: none;
    opacity: 0.7;
  }

  .notice-marquee-track {
    animation: none;
  }

  body:not(.admin-body) .nav-container::before,
  body:not(.admin-body) .nav-container::after {
    display: none;
  }

  .notice-marquee-group[aria-hidden="true"] {
    display: none;
  }

  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
