/* ==========================================================================
   Indian Modern Public School — Website Theme "Sunrise Arch"
   --------------------------------------------------------------------------
   TABLE OF CONTENTS
   01. Design tokens
   02. Reset & base
   03. Layout helpers
   04. Typography
   05. Buttons & links
   06. Utility bar, header & navigation
   07. Home — hero slider
   08. Home — news ticker
   09. Home — facts row
   10. Home — welcome
   11. Home — quick access (bento)
   12. Sliders (facilities & gallery carousel)
   13. Home — stats band
   14. Leadership cards
   15. Home — diary (events + featured)
   16. Gallery grid, filters & lightbox
   17. Testimonials slider
   18. Call-to-action band
   19. Footer
   20. Inner page header
   21. About page
   22. Message pages
   23. Facility page
   24. Admission page
   25. News page
   26. Documents page
   27. Contact page & forms
   28. Site settings page
   29. Floating actions & social icons
   30. Responsive
   31. Reduced motion
   ========================================================================== */


/* 01. DESIGN TOKENS ------------------------------------------------------- */
:root {
  /* Colour — taken from the school logo: deep navy ring + rising-sun gold */
  --navy: #132654;
  --navy-soft: #203875;
  --royal: #365bc0;
  --sun: #f3bb3d;
  --sun-deep: #d99a12;
  --sun-soft: #fff5dc;
  --diya: #ca4e3d;
  --mist: #f2f5fa;
  --white: #ffffff;
  --ink: #1b2944;
  --muted: #596a85;
  --line: #dce4ef;

  /* Type */
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;

  /* Shape & depth */
  --arch: 999px 999px 0 0;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 22px 50px -24px rgba(15, 27, 76, .45);
  --shadow-sm: 0 10px 26px -16px rgba(15, 27, 76, .4);

  /* Layout */
  --container: 1240px;
  --bar-h: 76px;
}


/* 02. RESET & BASE -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open, body.lightbox-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
iframe { border: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  padding: 10px 16px; background: var(--sun); color: var(--navy); font-weight: 700; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }


/* 03. LAYOUT HELPERS ------------------------------------------------------ */
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.bg-mist { background: var(--mist); }
.bg-navy { background: var(--navy); color: var(--white); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.top { align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.stack { display: grid; gap: 16px; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px 64px; align-items: end; margin-bottom: 44px; }
.section-head.single { grid-template-columns: minmax(0, 760px); }
.section-head .lede { max-width: 52ch; }


/* 04. TYPOGRAPHY ---------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.1; letter-spacing: -.02em; }
.title {
  margin-top: 10px;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.03em;
}
.bg-navy .title, .on-dark .title { color: var(--white); }
.lede { color: var(--muted); font-size: 1.125rem; max-width: 60ch; }
.prose p + p { margin-top: 1em; }
.prose p { max-width: 62ch; color: var(--muted); }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--royal); font-size: .95rem; font-weight: 700; letter-spacing: .01em;
}
.kicker::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(246, 185, 26, .22); }
.bg-navy .kicker, .on-dark .kicker { color: var(--sun); }
.tick-list { display: grid; gap: 12px; margin: 26px 0 34px; list-style: none; }
.tick-list li { position: relative; padding-left: 34px; color: var(--ink); }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.5 3 3 6-6.5' fill='none' stroke='%230f1b4c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}


/* 05. BUTTONS & LINKS ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 26px;
  border: 2px solid transparent; border-radius: var(--radius-sm);
  font-weight: 700; line-height: 1.2; text-align: center;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--sun); color: var(--navy); }
.btn-primary:hover { background: #ffc93c; }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-soft); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-outline { border-color: rgba(255, 255, 255, .55); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.text-link {
  display: inline-block; color: var(--royal); font-weight: 700;
  text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 5px;
  transition: color .2s;
}
.text-link:hover { color: var(--navy); }
.text-button { border: 0; background: none; padding: 6px 4px; color: var(--diya); font-weight: 700; text-decoration: underline; }


/* 06. UTILITY BAR, HEADER & NAVIGATION ------------------------------------ */
#site-header { display: contents; }
.utility-bar { background: var(--navy); color: rgba(255, 255, 255, .9); font-size: .88rem; }
.utility-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 40px; }
.utility-tag { font-weight: 600; letter-spacing: .02em; color: var(--sun); }
.utility-right { display: flex; align-items: center; gap: 24px; }
.utility-links { display: flex; gap: 22px; }
.utility-links a { padding: 8px 0; transition: color .2s; }
.utility-links a:hover { color: var(--sun); }

.main-bar {
  position: sticky; top: 0; z-index: 60;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--bar-h); }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-logo { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; flex: none; }
.brand-copy { display: grid; line-height: 1.2; min-width: 0; }
.brand-copy strong { font-family: var(--font-display); font-size: 1.12rem; font-weight: 800; letter-spacing: -.02em; color: var(--navy); white-space: nowrap; }
.brand-copy small { margin-top: 2px; color: var(--muted); font-size: .76rem; font-weight: 500; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav > li { position: relative; }
.nav > li > a, .nav-toggle {
  position: relative; display: flex; align-items: center; gap: 5px;
  padding: 10px 10px; border: 0; background: none;
  font-size: .92rem; font-weight: 600; color: var(--ink); white-space: nowrap;
  transition: color .2s;
}
.nav > li > a::after, .nav-toggle::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 3px; border-radius: 3px;
  background: var(--sun); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav > li:hover > a, .nav > li:hover > .nav-toggle { color: var(--royal); }
.nav > li:hover > a::after, .nav > li:hover > .nav-toggle::after,
.nav > li.active > a::after, .nav > li.active > .nav-toggle::after { transform: scaleX(1); }
.nav > li.active > a, .nav > li.active > .nav-toggle { color: var(--navy); }
.nav-chevron { width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.dropdown.open .nav-chevron { transform: translateY(1px) rotate(225deg); }
.dropdown-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; padding: 8px; list-style: none;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.dropdown:hover .dropdown-menu, .dropdown.open .dropdown-menu, .dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu a { display: block; padding: 11px 14px; border-radius: var(--radius-sm); font-weight: 600; font-size: .94rem; }
.dropdown-menu a:hover { background: var(--mist); color: var(--royal); }

.menu-button {
  display: none; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white);
  align-items: center; justify-content: center; color: var(--navy);
}
.menu-button svg { width: 24px; height: 24px; }
.menu-button .icon-close { display: none; }
body.menu-open .menu-button .icon-open { display: none; }
body.menu-open .menu-button .icon-close { display: block; }


/* 07. HOME — HERO SLIDER -------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--white); isolation: isolate; }
.hero-rays {
  position: absolute; inset: 0; z-index: -1;
  background:
    repeating-conic-gradient(from 270deg at 76% 100%, rgba(246, 185, 26, .09) 0 5deg, transparent 5deg 10deg),
    radial-gradient(120% 90% at 76% 100%, rgba(42, 69, 184, .55), transparent 65%);
}
.hero-stage { display: grid; }
.hero-slide {
  grid-area: 1 / 1;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 88px); align-items: center;
  padding: 72px 0 40px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .6s ease, visibility .6s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.hero-copy > * { opacity: 0; transform: translateY(18px); }
.hero-slide.is-active .hero-copy > * { animation: hero-rise .7s cubic-bezier(.2, .7, .2, 1) forwards; }
.hero-slide.is-active .hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-slide.is-active .hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-slide.is-active .hero-copy > :nth-child(4) { animation-delay: .24s; }
@keyframes hero-rise { to { opacity: 1; transform: none; } }
.hero h1 { margin: 14px 0 22px; font-size: clamp(2.7rem, 5.6vw, 4.9rem); font-weight: 800; letter-spacing: -.04em; line-height: .98; color: var(--white); }
.hero-copy p { max-width: 50ch; color: rgba(255, 255, 255, .82); font-size: 1.16rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-arch { position: relative; justify-self: end; width: min(100%, 430px); aspect-ratio: 4 / 5; }
.hero-arch img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--arch); background: var(--navy-soft); }
.hero-arch::before {
  content: ""; position: absolute; inset: -16px -16px 0; border: 2px solid var(--sun); border-bottom: 0; border-radius: var(--arch); opacity: .9;
}

.hero-controls { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 34px; }
.hero-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 190px)); gap: 14px; list-style: none; }
.hero-tab {
  position: relative; display: block; width: 100%; padding: 14px 0 0; border: 0; background: none; text-align: left;
  color: rgba(255, 255, 255, .62); font-size: .92rem; font-weight: 600; transition: color .2s;
}
.hero-tab::before, .hero-tab::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; border-radius: 3px; }
.hero-tab::before { right: 0; background: rgba(255, 255, 255, .22); }
.hero-tab::after { width: var(--progress, 0%); background: var(--sun); }
.hero-tab:hover, .hero-tab.is-active { color: var(--white); }
.hero-tab b { margin-right: 8px; color: var(--sun); font-family: var(--font-display); }
.hero-arrows { display: flex; gap: 10px; }
.round-btn {
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .45); background: transparent; color: var(--white);
  transition: background-color .2s, color .2s, border-color .2s, opacity .2s;
}
.round-btn svg { width: 20px; height: 20px; }
.round-btn:hover:not(:disabled) { background: var(--sun); border-color: var(--sun); color: var(--navy); }
.round-btn:disabled { opacity: .35; cursor: default; }
.round-btn.on-light { border-color: var(--navy); color: var(--navy); }
.round-btn.on-light:hover:not(:disabled) { background: var(--navy); border-color: var(--navy); color: var(--white); }


/* 08. HOME — NEWS TICKER -------------------------------------------------- */
.ticker { background: var(--sun); color: var(--navy); }
.ticker-inner { display: flex; align-items: center; gap: 20px; min-height: 52px; }
.ticker-label { flex: none; padding: 5px 14px; border-radius: 999px; background: var(--navy); color: var(--sun); font-size: .85rem; font-weight: 700; }
.ticker-window { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { padding-right: 56px; white-space: nowrap; font-weight: 600; font-size: .96rem; }
.ticker-track span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 12px; border-radius: 50%; background: var(--navy); vertical-align: middle; }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker-link { flex: none; font-weight: 700; font-size: .9rem; text-decoration: underline; text-underline-offset: 4px; }


/* 09. HOME — FACTS ROW ---------------------------------------------------- */
.facts { padding: 0; }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: -1px; background: var(--white); border-bottom: 1px solid var(--line); }
.fact { display: flex; align-items: center; gap: 16px; padding: 30px 26px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact-icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--sun-soft); color: var(--navy); }
.fact-icon svg { width: 26px; height: 26px; }
.fact strong { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--navy); line-height: 1.2; }
.fact small { color: var(--muted); font-size: .9rem; }


/* 10. HOME — WELCOME ------------------------------------------------------ */
.welcome-media { position: relative; width: min(100%, 460px); aspect-ratio: 4 / 5; justify-self: center; }
.welcome-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--arch); }
.welcome-media::before { content: ""; position: absolute; inset: -16px -16px 0; border: 2px solid var(--sun); border-bottom: 0; border-radius: var(--arch); }
.welcome-badge {
  position: absolute; right: -28px; bottom: 36px; max-width: 210px; padding: 18px 20px; border-radius: var(--radius);
  background: var(--navy); color: rgba(255, 255, 255, .86); box-shadow: var(--shadow); font-size: .92rem; line-height: 1.4;
}
.welcome-badge strong { display: block; font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--sun); }
.welcome-copy .title { margin-bottom: 18px; }


/* 11. HOME — QUICK ACCESS (BENTO) ----------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.bento-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 30px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.bento-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.bento-card:nth-child(1) { grid-column: span 3; background: var(--navy); border-color: var(--navy); color: rgba(255, 255, 255, .82); }
.bento-card:nth-child(2) { grid-column: span 3; background: var(--sun-soft); border-color: #f4dd96; }
.bento-card:nth-child(n+3) { grid-column: span 2; }
.bento-card h3 { font-size: 1.45rem; font-weight: 700; }
.bento-card:nth-child(1) h3 { color: var(--white); }
.bento-card p { color: var(--muted); }
.bento-card:nth-child(1) p { color: rgba(255, 255, 255, .78); }
.bento-card .text-link { margin-top: auto; padding-top: 10px; }
.bento-card:nth-child(1) .text-link { color: var(--sun); }
.bento-icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 8px; border-radius: 12px; background: var(--mist); color: var(--royal); }
.bento-card:nth-child(1) .bento-icon { background: rgba(255, 255, 255, .12); color: var(--sun); }
.bento-card:nth-child(2) .bento-icon { background: var(--white); color: var(--navy); }
.bento-icon svg { width: 26px; height: 26px; }


/* 12. SLIDERS (scroll-snap, used for facilities & gallery carousel) -------- */
.slider-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.slider-hint { color: var(--muted); font-size: .92rem; }
.slider-buttons { display: flex; gap: 10px; }
.slider-track {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 2px 18px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track > * { flex: 0 0 calc((100% - 44px) / 3); scroll-snap-align: start; }
.facility-card { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--navy); }
.facility-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.facility-card:hover img { transform: scale(1.05); }
.facility-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(15, 27, 76, .92)); }
.facility-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 26px; color: var(--white); }
.facility-caption h3 { color: var(--white); font-size: 1.4rem; }
.facility-caption small { display: block; margin-top: 4px; color: rgba(255, 255, 255, .82); font-size: .94rem; }


/* 13. HOME — STATS BAND --------------------------------------------------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stat { padding-left: 22px; border-left: 3px solid var(--sun); }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 800; line-height: 1; color: var(--sun); }
.stat span { display: block; margin-top: 8px; color: rgba(255, 255, 255, .82); font-weight: 500; }


/* 14. LEADERSHIP CARDS ---------------------------------------------------- */
.leader-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.leader-card { display: flex; align-items: center; gap: 28px; padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.bg-mist .leader-card { border-color: transparent; box-shadow: var(--shadow-sm); }
.portrait { display: grid; place-items: center; flex: none; width: 132px; aspect-ratio: 4 / 5; border-radius: var(--arch); background: linear-gradient(160deg, var(--royal), var(--navy)); color: var(--sun); font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; }
.leader-role { color: var(--royal); font-weight: 700; font-size: .95rem; }
.leader-body h3 { margin: 2px 0 10px; font-size: 1.6rem; }
.leader-body p { margin-bottom: 14px; color: var(--muted); }


/* 15. HOME — DIARY (EVENTS + FEATURED) ------------------------------------ */
.event-list { display: grid; gap: 14px; margin-top: 28px; }
.event-item {
  display: flex; align-items: center; gap: 20px; padding: 16px 22px 16px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
a.event-item:hover { border-color: var(--sun); box-shadow: var(--shadow-sm); }
.event-date { display: grid; place-items: center; flex: none; width: 70px; height: 74px; border-radius: 12px; background: var(--navy); color: var(--white); text-align: center; line-height: 1; }
.event-date strong { font-family: var(--font-display); font-size: 1.9rem; }
.event-date small { margin-top: 4px; color: var(--sun); font-weight: 700; letter-spacing: .06em; }
.event-info { flex: 1; }
.event-info h3 { font-size: 1.15rem; }
.event-info small { color: var(--muted); }
.event-go { color: var(--royal); font-size: 1.3rem; font-weight: 700; }
.feature-panel { position: relative; overflow: hidden; padding: clamp(30px, 4vw, 48px); border-radius: var(--radius); background: var(--royal); color: rgba(255, 255, 255, .86); }
.feature-panel::before { content: ""; position: absolute; right: -90px; bottom: -150px; width: 340px; height: 340px; border-radius: 50%; border: 44px solid rgba(246, 185, 26, .2); }
.feature-panel > * { position: relative; }
.feature-panel h3 { margin: 12px 0 14px; color: var(--white); font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.15; }
.feature-panel p { margin-bottom: 26px; }
.feature-panel .kicker { color: var(--sun); }


/* 16. GALLERY GRID, FILTERS & LIGHTBOX ------------------------------------ */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 36px; }
.filter-btn { padding: 9px 20px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); font-weight: 600; font-size: .94rem; transition: all .2s; }
.filter-btn:hover { border-color: var(--navy); }
.filter-btn.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.gallery-slider-track > .gallery-item { flex: 0 0 calc((100% - 44px) / 3); }
.gallery-item {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; overflow: hidden;
  border: 0; border-radius: var(--radius); background: var(--navy); container-type: size; text-align: left;
}
.gallery-item.hidden { display: none; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item[data-rotate="90"] img, .gallery-item[data-rotate="-90"] img {
  position: absolute; top: 50%; left: 50%; width: 100cqh; height: 100cqw; max-width: none;
}
.gallery-item[data-rotate="90"] img { transform: translate(-50%, -50%) rotate(90deg); }
.gallery-item[data-rotate="-90"] img { transform: translate(-50%, -50%) rotate(-90deg); }
.gallery-item[data-rotate="90"]:hover img { transform: translate(-50%, -50%) rotate(90deg) scale(1.06); }
.gallery-item[data-rotate="-90"]:hover img { transform: translate(-50%, -50%) rotate(-90deg) scale(1.06); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 1px; padding: 40px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(15, 27, 76, .9)); color: var(--white);
}
.gallery-caption strong { font-family: var(--font-display); font-size: 1.05rem; }
.gallery-caption small { color: var(--sun); font-weight: 600; }
.gallery-empty { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--muted); }

.lightbox { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(8, 14, 40, .94); }
.lightbox.open { display: flex; }
.lightbox-figure { display: grid; justify-items: center; gap: 14px; max-width: 100%; }
.lightbox img { width: auto; height: auto; max-width: min(1100px, 88vw); max-height: 80vh; border-radius: 10px; object-fit: contain; transition: transform .25s; }
.lightbox img.is-rotated { max-width: 78vh; max-height: 88vw; }
.lightbox-caption { color: rgba(255, 255, 255, .86); text-align: center; font-weight: 600; }
.lightbox-close, .lightbox-nav {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: var(--white); font-size: 1.6rem; line-height: 1; transition: background-color .2s, color .2s;
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--sun); color: var(--navy); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-nav.prev { left: 20px; top: 50%; translate: 0 -50%; }
.lightbox-nav.next { right: 20px; top: 50%; translate: 0 -50%; }


/* 17. TESTIMONIALS SLIDER ------------------------------------------------- */
.voices { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.voices-stage { display: grid; }
.voice { grid-area: 1 / 1; padding: 6px 0; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .5s, transform .5s, visibility .5s; }
.voice.is-active { opacity: 1; visibility: visible; transform: none; }
.voice blockquote { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.15rem); font-weight: 600; line-height: 1.25; letter-spacing: -.02em; color: var(--navy); }
.voice blockquote::before { content: "“"; display: block; height: .55em; margin-bottom: 10px; color: var(--sun); font-size: 4.4rem; line-height: .8; }
.voice figcaption { display: grid; margin-top: 26px; }
.voice figcaption strong { font-size: 1.05rem; }
.voice figcaption small { color: var(--muted); }
.voices-nav { display: flex; align-items: center; gap: 18px; margin-top: 34px; }
.dots { display: flex; gap: 8px; }
.dot { width: 11px; height: 11px; padding: 0; border: 0; border-radius: 999px; background: var(--line); transition: width .25s, background-color .25s; }
.dot.is-active { width: 30px; background: var(--sun-deep); }


/* 18. CALL-TO-ACTION BAND ------------------------------------------------- */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(32px, 5vw, 56px);
  border-radius: 22px; background: var(--sun); color: var(--navy); position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(15, 27, 76, .08) 0 12px, transparent 12px 24px);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.12; }
.cta-band p { max-width: 54ch; margin-top: 8px; font-weight: 500; }


/* 19. FOOTER -------------------------------------------------------------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .78); }
.footer-main { display: grid; grid-template-columns: 1.3fr .8fr .8fr 1.3fr; gap: 44px; padding: 72px 0 56px; }
.site-footer .brand-copy strong { color: var(--white); }
.site-footer .brand-copy small { color: rgba(255, 255, 255, .6); }
.footer-brand p { max-width: 36ch; margin: 20px 0 22px; }
.footer-title { margin-bottom: 18px; color: var(--sun); font-size: 1.05rem; }
.footer-links { display: grid; gap: 10px; list-style: none; }
.footer-links a { transition: color .2s; }
.footer-links a:hover { color: var(--sun); }
.footer-contact { display: grid; gap: 6px; margin-bottom: 8px; }
.footer-contact a:hover { color: var(--sun); }
.footer-contact-link, .footer-map-link { display: inline-block; margin-top: 4px; color: var(--sun); font-weight: 700; font-size: .94rem; }
.footer-map { width: 100%; height: 150px; margin-top: 16px; border-radius: var(--radius-sm); filter: saturate(.85); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 20px 0; font-size: .9rem; color: rgba(255, 255, 255, .62); }


/* 20. INNER PAGE HEADER --------------------------------------------------- */
.page-head { position: relative; overflow: hidden; padding: 72px 0 96px; background: var(--navy); color: var(--white); isolation: isolate; }
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: repeating-conic-gradient(from 270deg at 88% 120%, rgba(246, 185, 26, .09) 0 5deg, transparent 5deg 10deg), radial-gradient(90% 120% at 88% 120%, rgba(42, 69, 184, .6), transparent 65%);
}
.page-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='68' height='34' viewBox='0 0 68 34'%3E%3Cpath d='M0 34a34 34 0 0 1 68 0z' fill='%23ffffff'/%3E%3C/svg%3E") repeat-x left bottom;
}
.page-head h1 { margin: 12px 0 16px; color: var(--white); font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.04em; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; color: rgba(255, 255, 255, .7); font-size: .94rem; }
.breadcrumbs a { color: var(--sun); font-weight: 600; }
.breadcrumbs a:hover { text-decoration: underline; }


/* 21. ABOUT PAGE ---------------------------------------------------------- */
.photo-arch { position: relative; width: min(100%, 440px); aspect-ratio: 4 / 5; justify-self: center; }
.photo-arch img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--arch); }
.photo-arch::before { content: ""; position: absolute; inset: -16px -16px 0; border: 2px solid var(--sun); border-bottom: 0; border-radius: var(--arch); }
.photo-wide { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.photo-wide img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 5 / 4; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.pillar { padding: 40px 36px; border-left: 1px solid var(--line); }
.pillar:first-child { border-left: 0; }
.pillar::before { content: ""; display: block; width: 44px; height: 5px; margin-bottom: 22px; border-radius: 5px; background: var(--sun); }
.pillar h3 { margin-bottom: 10px; font-size: 1.5rem; }
.pillar p { color: var(--muted); }
.value-list { display: grid; gap: 14px; margin-top: 28px; }
.value-item { padding: 20px 24px; border-left: 5px solid var(--sun); border-radius: 0 var(--radius) var(--radius) 0; background: var(--mist); }
.value-item h3 { margin-bottom: 4px; font-size: 1.25rem; }
.value-item p { color: var(--muted); }
.timeline { position: relative; display: grid; gap: 30px; padding-left: 4px; }
.timeline::before { content: ""; position: absolute; left: 33px; top: 12px; bottom: 12px; width: 2px; background: var(--line); }
.timeline-item { position: relative; display: flex; gap: 22px; align-items: flex-start; }
.timeline-dot { position: relative; z-index: 1; display: grid; place-items: center; flex: none; width: 60px; height: 60px; border-radius: 50%; background: var(--navy); color: var(--sun); font-family: var(--font-display); font-weight: 800; border: 5px solid var(--mist); box-sizing: content-box; margin: -5px; }
.timeline-copy { padding-top: 4px; }
.timeline-copy h3 { font-size: 1.3rem; margin-bottom: 4px; }
.timeline-copy p { color: var(--muted); }


/* 22. MESSAGE PAGES ------------------------------------------------------- */
.message-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.message-profile { position: sticky; top: calc(var(--bar-h) + 24px); display: grid; justify-items: start; gap: 24px; }
.message-profile .portrait { width: 100%; font-size: 4.4rem; position: relative; }
.message-profile .portrait::before { content: ""; position: absolute; inset: -14px -14px 0; border: 2px solid var(--sun); border-bottom: 0; border-radius: var(--arch); }
.message-profile-copy span { color: var(--royal); font-weight: 700; }
.message-profile-copy h2 { margin: 2px 0 6px; font-size: 1.7rem; }
.message-profile-copy p { color: var(--muted); font-size: .94rem; }
.message-copy p { max-width: 64ch; margin-top: 1.1em; color: var(--ink); line-height: 1.8; }
.message-copy .lead {
  margin-top: 26px; padding: 6px 0 6px 26px; border-left: 5px solid var(--sun);
  font-family: var(--font-display); font-size: clamp(1.35rem, 2.2vw, 1.8rem); font-weight: 600; line-height: 1.3; color: var(--navy);
}
.signature { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--navy); line-height: 1.3; }
.signature small { display: block; margin-top: 4px; font-family: var(--font-body); font-size: .88rem; font-weight: 600; color: var(--muted); }


/* 23. FACILITY PAGE ------------------------------------------------------- */
.facility-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.facility-tile { position: relative; min-height: 340px; overflow: hidden; border-radius: var(--radius); background: var(--navy); color: var(--white); }
.facility-tile:nth-child(1), .facility-tile:nth-child(7), .facility-tile:nth-child(9) { grid-column: span 2; }
.facility-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.facility-tile:hover img { transform: scale(1.05); }
.facility-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(15, 27, 76, .94)); }
.facility-tile-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 26px; }
.facility-tile h3 { margin-bottom: 6px; color: var(--white); font-size: 1.4rem; }
.facility-tile p { max-width: 46ch; color: rgba(255, 255, 255, .86); font-size: .96rem; line-height: 1.55; }


/* 24. ADMISSION PAGE ------------------------------------------------------ */
.admission-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.admission-heading h1 { margin-top: 10px; font-size: clamp(2.4rem, 4.6vw, 3.8rem); font-weight: 800; letter-spacing: -.04em; }
.admission-cards { align-items: stretch; }
.admission-card { padding: 34px; border: 1px solid var(--line); border-top: 5px solid var(--sun); border-radius: var(--radius); background: var(--white); }
.admission-card h2 { margin-bottom: 18px; font-size: 1.5rem; }
.admission-dates { margin-top: 24px; background: var(--sun-soft); border-color: #f4dd96; border-top-color: var(--sun); }
.editable-content { color: var(--muted); }
.editable-list { display: grid; gap: 12px; padding-left: 22px; color: var(--muted); }
ol.editable-list { counter-reset: step; list-style: none; padding-left: 0; }
ol.editable-list li { counter-increment: step; position: relative; padding-left: 44px; }
ol.editable-list li::before {
  content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: var(--sun); font-family: var(--font-display); font-weight: 800; font-size: .9rem;
}
ul.editable-list li::marker { color: var(--sun-deep); }
.editable-placeholder { color: var(--muted); font-style: italic; }
.admission-empty-note { margin-top: 24px; padding: 18px 22px; border-radius: var(--radius-sm); background: var(--mist); color: var(--muted); }
.admission-contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px; align-items: stretch; }
.admission-location { padding: 36px; border-radius: var(--radius); background: var(--navy); color: rgba(255, 255, 255, .82); }
.admission-location h2 { margin: 10px 0 14px; color: var(--white); font-size: 1.8rem; }
.admission-location strong { color: var(--white); }
.admission-location p { margin: 6px 0 20px; }
.admission-location .kicker { color: var(--sun); }
.admission-location-contact { display: grid; gap: 8px; margin-bottom: 24px; }
.admission-location-contact a { color: var(--sun); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.admission-location .btn-ghost { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.admission-location .btn-ghost:hover { background: var(--white); color: var(--navy); }


/* 25. NEWS PAGE ----------------------------------------------------------- */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.news-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: box-shadow .25s, transform .25s; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card img { width: 100%; height: 220px; object-fit: cover; }
.news-card-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 24px; }
.news-meta { color: var(--royal); font-size: .88rem; font-weight: 700; }
.news-card h3 { font-size: 1.3rem; }
.news-card p { color: var(--muted); }
.news-card .text-link { margin-top: auto; padding-top: 8px; align-self: flex-start; }
.news-card:first-child { grid-column: span 3; flex-direction: row; }
.news-card:first-child img { width: 48%; height: auto; min-height: 340px; }
.news-card:first-child .news-card-body { justify-content: center; padding: clamp(28px, 4vw, 56px); }
.news-card:first-child h3 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }


/* 26. DOCUMENTS PAGE ------------------------------------------------------ */
.document-list { display: grid; gap: 14px; }
.doc-row { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: border-color .2s, box-shadow .2s; }
.doc-row:hover { border-color: var(--sun); box-shadow: var(--shadow-sm); }
.doc-icon { display: grid; place-items: center; flex: none; width: 48px; height: 56px; border-radius: 6px 14px 6px 6px; background: var(--diya); color: var(--white); font-size: .78rem; font-weight: 800; letter-spacing: .04em; }
.doc-copy { flex: 1; min-width: 0; }
.doc-copy strong { display: block; font-family: var(--font-display); font-size: 1.08rem; color: var(--navy); }
.doc-copy small { color: var(--muted); }
.doc-action { flex: none; padding: 9px 18px; border: 1.5px solid var(--navy); border-radius: 999px; font-size: .9rem; font-weight: 700; transition: background-color .2s, color .2s; }
.doc-action:hover { background: var(--navy); color: var(--white); }
.download-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.download-card h3 { font-size: 1.4rem; }
.download-card p { color: var(--muted); }
.download-card .text-link { margin-top: auto; padding-top: 10px; }
.note-card { margin-top: 28px; padding: 24px 26px; border-left: 5px solid var(--sun); border-radius: 0 var(--radius) var(--radius) 0; background: var(--sun-soft); }
.note-card h3 { margin-bottom: 4px; font-size: 1.2rem; }


/* 27. CONTACT PAGE & FORMS ------------------------------------------------ */
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-card { display: grid; gap: 6px; align-content: start; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.contact-card strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--navy); }
.contact-card span, .contact-card a { color: var(--muted); }
.contact-card a { color: var(--royal); font-weight: 700; }
.map-embed { width: 100%; height: 420px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.form-card { padding: clamp(26px, 4vw, 44px); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-card h2 { margin: 10px 0 24px; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 7px; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label, .settings-category-row label { font-size: .92rem; font-weight: 700; color: var(--navy); }
.field input, .field select, .field textarea, .settings-category-row input, .settings-inline-form input, .settings-social-row input {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .settings-category-row input:focus, .settings-inline-form input:focus, .settings-social-row input:focus {
  outline: 0; border-color: var(--royal); box-shadow: 0 0 0 4px rgba(42, 69, 184, .15);
}
.form-note { color: var(--muted); font-size: .88rem; }
.field .btn { justify-self: start; }
.success-message { display: none; padding: 14px 18px; border-radius: var(--radius-sm); background: #e4f6ea; color: #14612f; font-weight: 600; }
.success-message.show { display: block; }


/* 28. SITE SETTINGS PAGE -------------------------------------------------- */
.settings-notice { margin-bottom: 30px; padding: 20px 24px; border-left: 5px solid var(--sun); border-radius: 0 var(--radius) var(--radius) 0; background: var(--sun-soft); }
.settings-notice p { margin-top: 4px; color: var(--muted); }
.settings-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 28px; }
.settings-file-actions, .settings-submit { display: flex; flex-wrap: wrap; gap: 10px; }
.settings-message { margin: 16px 0; padding: 14px 18px; border-radius: var(--radius-sm); background: #e4f6ea; color: #14612f; font-weight: 600; }
.settings-message.error { background: #fde8e4; color: #8b2615; }
.settings-section { margin: 26px 0; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.settings-section h3 { margin-bottom: 20px; font-size: 1.5rem; }
.settings-section textarea { min-height: 110px; }
.settings-category-list { display: grid; gap: 10px; margin: 16px 0; }
.settings-category-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.settings-social-row { display: grid; grid-template-columns: minmax(120px, .7fr) minmax(180px, 1.3fr) auto; align-items: center; gap: 10px; margin-bottom: 10px; }
.settings-inline-form { display: flex; max-width: 580px; gap: 10px; }
.settings-inline-form input { flex: 1; }
.gallery-upload { margin-top: 22px; }
.settings-image-list { display: grid; gap: 10px; margin-top: 22px; }
.settings-image-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.settings-image-row img { width: 84px; height: 66px; border-radius: 6px; object-fit: cover; background: var(--mist); }
.settings-image-row div { display: grid; min-width: 0; }
.settings-image-row strong { color: var(--navy); }
.settings-image-row span, .settings-image-row small { color: var(--muted); overflow-wrap: anywhere; }
.settings-submit { margin-top: 30px; }


/* 29. FLOATING ACTIONS & SOCIAL ICONS ------------------------------------- */
.social-links { display: flex; flex-wrap: wrap; gap: 8px; }
.social-links a, .social-links span {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3);
  color: var(--white); transition: background-color .2s, color .2s, border-color .2s;
}
.social-links span { opacity: .65; }
.social-links a:hover { background: var(--sun); border-color: var(--sun); color: var(--navy); }
.social-links svg { width: 17px; height: 17px; fill: currentColor; }
.social-links [data-platform="instagram"] svg { fill: none; stroke: currentColor; stroke-width: 2; }
.social-links .icon-fill { fill: currentColor; stroke: none; }
.utility-bar .social-links a, .utility-bar .social-links span {
  width: 30px; height: 30px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .07);
}
.utility-bar .social-links a:hover { border-color: var(--sun); background: var(--sun); }
.utility-bar .social-links svg { width: 15px; height: 15px; }

.floating-actions { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; gap: 10px; justify-items: end; }
.float-btn {
  display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%;
  box-shadow: 0 10px 24px -8px rgba(15, 27, 76, .55); font-weight: 800; font-size: 1.05rem; transition: transform .2s;
}
.float-btn:hover { transform: translateY(-3px); }
.float-btn svg { width: 24px; height: 24px; }
.float-whatsapp { background: #25d366; color: #fff; font-size: .95rem; }
.float-enquire { background: var(--sun); color: var(--navy); }
.float-top { background: var(--navy); color: var(--white); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s; }
.float-top.visible { opacity: 1; visibility: visible; transform: none; }


/* 30. RESPONSIVE ---------------------------------------------------------- */
@media (max-width: 1260px) {
  .menu-button { display: inline-flex; }
  .utility-bar { display: block; }
  .nav-wrap {
    position: fixed; inset: 0; z-index: -1; padding: calc(var(--bar-h) + 16px) 24px 32px; overflow-y: auto;
    background: var(--white); transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s;
  }
  body.menu-open .nav-wrap { transform: none; visibility: visible; }
  .nav { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > li { border-bottom: 1px solid var(--line); }
  .nav > li > a, .nav-toggle { width: 100%; justify-content: space-between; padding: 18px 4px; font-size: 1.1rem; }
  .nav > li > a::after, .nav-toggle::after { display: none; }
  .nav > li.active > a, .nav > li.active > .nav-toggle { color: var(--royal); }
  .dropdown-menu { position: static; min-width: 0; padding: 0 0 12px 12px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; }
  .dropdown.open .dropdown-menu { display: block; }
  .dropdown:hover .dropdown-menu { display: none; }
  .dropdown.open:hover .dropdown-menu { display: block; }
}

@media (max-width: 1040px) {
  .section { padding: 72px 0; }
  .split, .voices, .section-head, .admission-contact-grid { grid-template-columns: 1fr; }
  .section-head { align-items: start; }
  .hero-slide { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-arch { justify-self: start; width: min(78%, 340px); margin-left: 16px; }
  .facts-grid, .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { padding: 22px 18px; }
  .fact:nth-child(odd) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .bento-card:nth-child(n) { grid-column: span 3; }
  .bento-card:nth-child(5) { grid-column: span 6; }
  .slider-track > *, .gallery-slider-track > .gallery-item { flex-basis: calc((100% - 22px) / 2); }
  .leader-grid, .grid-3 { grid-template-columns: 1fr; }
  .grid-3.keep-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .message-layout { grid-template-columns: 1fr; }
  .message-profile { position: static; grid-template-columns: 150px 1fr; align-items: center; }
  .message-profile .portrait { font-size: 2.6rem; }
  .facility-grid, .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facility-tile:nth-child(n) { grid-column: auto; }
  .facility-tile:nth-child(1) { grid-column: span 2; }
  .news-card:first-child { grid-column: span 2; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-left: 0; border-top: 1px solid var(--line); }
  .pillar:first-child { border-top: 0; }
  .welcome-badge { right: 0; }
}

@media (max-width: 720px) {
  :root { --bar-h: 68px; }
  body { font-size: 1rem; }
  .container { width: calc(100% - 32px); }
  .utility-inner { min-height: 34px; justify-content: flex-end; }
  .utility-tag, .utility-links { display: none; }
  .utility-right { width: 100%; justify-content: flex-end; gap: 0; }
  .utility-bar .social-links { justify-content: flex-end; gap: 5px; }
  .utility-bar .social-links a, .utility-bar .social-links span { width: 27px; height: 27px; }
  .section { padding: 60px 0; }
  .section-sm { padding: 44px 0; }
  .brand-logo { width: 46px; height: 46px; }
  .brand-copy strong { font-size: 1rem; }
  .brand-copy small { display: none; }
  .hero-slide { padding: 36px 0 24px; }
  .hero-arch { width: min(74%, 300px); }
  .hero-controls { flex-direction: column-reverse; align-items: stretch; gap: 18px; padding-bottom: 26px; }
  .hero-tabs { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .hero-tab { font-size: .8rem; }
  .hero-tab b { display: block; margin: 0; }
  .hero-arrows { justify-content: flex-end; }
  .ticker-label { padding: 4px 10px; font-size: .78rem; }
  .ticker-link { display: none; }
  .facts-grid { grid-template-columns: 1fr; }
  .fact, .fact:nth-child(odd) { padding: 18px 0; border-left: 0; }
  .fact:nth-child(n+2) { border-top: 1px solid var(--line); }
  .bento { gap: 14px; }
  .bento-card:nth-child(n) { grid-column: span 6; padding: 24px; }
  .slider-track > *, .gallery-slider-track > .gallery-item { flex-basis: 86%; }
  .slider-bar { flex-wrap: wrap; }
  .stats-grid { gap: 28px 16px; }
  .stat { padding-left: 14px; }
  .leader-card { flex-direction: column; align-items: flex-start; }
  .event-item { gap: 14px; padding-right: 16px; }
  .event-date { width: 60px; height: 66px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .footer-main { grid-template-columns: 1fr; padding: 52px 0 36px; gap: 34px; }
  .page-head { padding: 52px 0 76px; }
  .message-profile { grid-template-columns: 110px 1fr; gap: 18px; }
  .facility-grid, .news-grid, .contact-cards, .form-grid { grid-template-columns: 1fr; }
  .facility-tile:nth-child(n) { grid-column: auto; min-height: 300px; }
  .news-card:first-child { grid-column: auto; flex-direction: column; }
  .news-card:first-child img { width: 100%; min-height: 0; height: 230px; }
  .admission-heading { flex-direction: column; align-items: flex-start; }
  .admission-card, .admission-location { padding: 26px 22px; }
  .doc-row { flex-wrap: wrap; }
  .doc-action { margin-left: 66px; }
  .map-embed { height: 320px; }
  .settings-toolbar { flex-direction: column; align-items: flex-start; }
  .settings-section { padding: 22px 16px; }
  .settings-category-row { grid-template-columns: 1fr auto; }
  .settings-category-row label { grid-column: 1 / -1; margin-bottom: -6px; }
  .settings-image-row { grid-template-columns: 62px minmax(0, 1fr); gap: 10px; }
  .settings-image-row img { width: 62px; height: 58px; }
  .settings-image-row .text-button { grid-column: 2; justify-self: start; padding-left: 0; }
  .settings-inline-form { flex-direction: column; align-items: stretch; }
  .settings-inline-form .btn { align-self: flex-start; }
  .settings-social-row { grid-template-columns: minmax(0, 1fr) auto; }
  .settings-social-row input:nth-of-type(2) { grid-column: 1 / -1; grid-row: 2; }
  .lightbox-nav { top: auto; bottom: 20px; translate: none; }
  .lightbox-nav.prev { left: calc(50% - 60px); }
  .lightbox-nav.next { right: calc(50% - 60px); }
  .floating-actions { right: 12px; bottom: 12px; }
  .float-btn { width: 46px; height: 46px; }
}


/* 31. REDUCED MOTION ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .slider-track { scroll-behavior: auto; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; }
  .hero-copy > * { opacity: 1; transform: none; }
}


/* 32. EXTRAS ADDED AFTER FIRST PASS -------------------------------------- */
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.center-row { display: flex; justify-content: center; margin-top: 34px; }
.mt-lg { margin-top: 26px; }
.title + .lede, .title + .prose, .title + .value-list, .title + .event-list { margin-top: 18px; }
