/* ============================================================
   MAHARISHI VIDYA MANDIR SR. SEC. SCHOOL — VELLORE
   Color palette extracted from logo:
     Maroon  #8B1A1A  (ring & school name)
     Gold    #D4A017  (MVM monogram)
     Green   #2E7D32  (tree & CBSE text)
   Design rule: maroon only on nav, topbar, footer & accents.
   Sections use white / cream / light-green / image overlays.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,600&display=swap");

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --maroon: #8b1a1a;
  --maroon-dark: #6b0f0f;
  --maroon-light: #b22222;
  --gold: #d4a017;
  --gold-dark: #b88600;
  --gold-light: #f0c040;
  --green: #2e7d32;
  --green-dark: #1b5e20;
  --green-light: #4caf50;
  --cream: #fff8f0;
  --cream-dark: #f5edd8;
  --light-gray: #f0ebe0;
  --white: #ffffff;
  --text-dark: #2c2c2c;
  --text-medium: #4a4a4a;
  --text-light: #717171;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.11);
  --shadow-lg: 0 8px 44px rgba(0, 0, 0, 0.16);
  --radius: 12px;
  --radius-sm: 6px;
  --ease: all 0.3s ease;
  --font: "Poppins", sans-serif;
  --font-h: "Playfair Display", serif;

  /* semantic aliases kept for backward compat */
  --primary: var(--maroon);
  --primary-dark: var(--maroon-dark);
  --primary-light: var(--maroon-light);
  --secondary: var(--gold);
  --secondary-dark: var(--gold-dark);
  --accent: var(--green);
  --off-white: var(--cream);
}

/* ── Reset ───────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
  transition: var(--ease);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul {
  list-style: none;
}
input,
textarea,
select,
button {
  font-family: inherit;
}

/* ── Preloader ───────────────────────────────────────────── */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--maroon-dark);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}
#preloader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-icon {
  width: 86px;
  height: 86px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  margin-bottom: 22px;
  animation: loaderSpin 1.4s ease-in-out infinite;
  box-shadow: 0 0 40px rgba(212, 160, 23, 0.5);
}
@keyframes loaderSpin {
  0%,
  100% {
    transform: rotate(0) scale(1);
  }
  25% {
    transform: rotate(-15deg) scale(1.07);
  }
  75% {
    transform: rotate(15deg) scale(1.07);
  }
}
.loader-dots {
  display: flex;
  gap: 9px;
}
.loader-dots span {
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
  animation: dotB 0.6s ease-in-out infinite alternate;
}
.loader-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.loader-dots span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes dotB {
  0% {
    transform: translateY(0);
    opacity: 0.4;
  }
  100% {
    transform: translateY(-12px);
    opacity: 1;
  }
}
.loader-text {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  margin-top: 16px;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: txtPulse 1.5s ease-in-out infinite;
}
@keyframes txtPulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

/* ── Header ─────────────────────────────────────────────── */
/* Top bar — maroon here is INTENTIONAL (compact 32px strip) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.header-top {
  background: var(--maroon-dark);
  padding: 6px 0;
}
.header-top-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-top-info {
  display: flex;
  gap: 20px;
  align-items: center;
}
.header-top-info a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-top-info a:hover {
  color: var(--gold);
}
.header-social {
  display: flex;
  gap: 9px;
}
.header-social a {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 12px;
  transition: var(--ease);
}
.header-social a:hover {
  background: var(--gold);
  color: var(--maroon-dark);
  transform: translateY(-2px);
}

.header-main {
  padding: 10px 0;
  background: var(--white);
}
.header-main-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.site-logo img {
  height: 72px;
  width: auto;
}
.logo-fallback {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 26px;
  color: var(--white);
}
.logo-text h1 {
  font-family: var(--font-h);
  font-size: 20px;
  color: var(--maroon);
  line-height: 1.2;
  font-weight: 700;
}
.logo-text p {
  font-size: 11.5px;
  color: var(--text-light);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* Admission button — gold, eye-catching */
.btn-admission {
  background: linear-gradient(135deg, #60d417, #236e10);
  color: var(--maroon-dark);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 26px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--ease);
  animation: admPulse 2.5s ease-in-out infinite;
  box-shadow: 0 4px 18px rgba(212, 160, 23, 0.45);
  white-space: nowrap;
}
.btn-admission:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 160, 23, 0.55);
  animation: none;
}
@keyframes admPulse {
  0%,
  100% {
    box-shadow: 0 4px 18px rgba(212, 160, 23, 0.4);
  }
  50% {
    box-shadow: 0 4px 30px rgba(212, 160, 23, 0.72);
  }
}

/* ── Navigation — maroon intentional (compact bar ~50px) ─── */
.site-nav {
  background: var(--maroon);
}
.nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-menu {
  display: flex;
  align-items: center;
}
.nav-menu > li {
  position: relative;
}
.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 14px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  transition: var(--ease);
  white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
}
.nav-arr {
  width: 11px;
  height: 11px;
  transition: transform 0.3s ease;
}
.nav-menu > li:hover > a .nav-arr {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 230px;
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius) var(--radius);
  border-top: 3px solid var(--gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--ease);
  z-index: 200;
}
.nav-menu > li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: var(--text-dark);
  font-size: 13.5px;
  border-bottom: 1px solid var(--light-gray);
  transition: var(--ease);
}
.dropdown li:last-child a {
  border-bottom: none;
}
.dropdown li a:hover {
  background: var(--cream);
  color: var(--maroon);
  padding-left: 28px;
}
.dropdown li a::before {
  content: "›";
  font-size: 18px;
  color: var(--gold);
  line-height: 1;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--ease);
}
.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero Slider ─────────────────────────────────────────── */
.hero-slider {
  position: relative;
  overflow: hidden;
  height: 600px;
  background: #1a0808;
}
.slider-wrapper {
  display: flex;
  height: 100%;
  transition: transform 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Background image support — add a real photo via inline style="background-image:url(...)" */
.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 8s ease;
}
.slide.active .slide-bg {
  transform: scale(1.05);
}

/* Placeholder gradient backgrounds (replace with real banner photos) */
.slide:nth-child(1) .slide-bg {
  background: linear-gradient(135deg, #3d0000 0%, #6b0f0f 40%, #8b1a1a 100%);
}
.slide:nth-child(2) .slide-bg {
  background: linear-gradient(160deg, #1b4332 0%, #2e7d32 50%, #1a3320 100%);
}
.slide:nth-child(3) .slide-bg {
  background: linear-gradient(145deg, #5d4500 0%, #8b6914 50%, #d4a017 100%);
}

/* Subtle decorative circles */
.slide-deco {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.slide-deco::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  border: 70px solid rgba(255, 255, 255, 0.04);
  top: -130px;
  right: -100px;
  animation: decoSpin 22s linear infinite;
}
.slide-deco::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 45px solid rgba(212, 160, 23, 0.07);
  bottom: -60px;
  left: 4%;
  animation: decoSpin 16s linear infinite reverse;
}
@keyframes decoSpin {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Left-heavy dark overlay so text always readable over any photo */
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(30, 5, 5, 0.88) 0%,
    rgba(20, 5, 5, 0.6) 55%,
    rgba(0, 0, 0, 0.25) 100%
  );
}
.slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 80px;
  max-width: 1300px;
  margin: 0 auto;
  left: 0;
  right: 0;
}
.slide-text {
  max-width: 640px;
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.9s ease 0.25s,
    transform 0.9s ease 0.25s;
}
.slide.active .slide-text {
  opacity: 1;
  transform: translateY(0);
}
.slide-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--maroon-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 18px;
  border-radius: 50px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.slide-text h2 {
  font-family: var(--font-h);
  font-size: clamp(26px, 4.5vw, 54px);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
  text-shadow: 2px 2px 14px rgba(0, 0, 0, 0.4);
}
.slide-text p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 30px;
  line-height: 1.75;
}
.slide-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-hero-p {
  background: var(--gold);
  color: var(--maroon-dark);
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 14px;
  transition: var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-hero-p:hover {
  background: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.btn-hero-o {
  background: transparent;
  color: var(--white);
  font-weight: 600;
  padding: 13px 30px;
  border-radius: 50px;
  font-size: 14px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  transition: var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-hero-o:hover {
  background: var(--white);
  color: var(--maroon);
  border-color: var(--white);
  transform: translateY(-3px);
}

.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--ease);
  z-index: 10;
  font-size: 22px;
}
.slider-prev {
  left: 24px;
}
.slider-next {
  right: 24px;
}
.slider-prev:hover,
.slider-next:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--maroon-dark);
}
.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--ease);
  border: none;
}
.slider-dot.active {
  background: var(--gold);
  width: 28px;
  border-radius: 5px;
}

/* ── Ticker bar ──────────────────────────────────────────── */
/* Uses gold background — avoids maroon overuse */
.ticker-bar {
  background: linear-gradient(
    90deg,
    var(--maroon-dark),
    var(--maroon),
    var(--maroon-dark)
  );
  padding: 10px 0;
  overflow: hidden;
  position: relative;
}
.ticker-bar::before,
.ticker-bar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
}
.ticker-bar::before {
  left: 0;
  background: linear-gradient(to right, var(--maroon-dark), transparent);
}
.ticker-bar::after {
  right: 0;
  background: linear-gradient(to left, var(--maroon-dark), transparent);
}
.ticker-label {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--gold);
  color: var(--maroon-dark);
  padding: 0 22px;
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 3;
  white-space: nowrap;
  gap: 8px;
}
.ticker-label::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 0;
  bottom: 0;
  border-style: solid;
  border-width: 22px 0 22px 14px;
  border-color: transparent transparent transparent var(--gold);
}
.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: tickerMove 24s linear infinite;
  padding-left: 200px;
}
.ticker-track:hover {
  animation-play-state: paused;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 28px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}
.ticker-sep {
  color: var(--gold);
  font-size: 18px;
}
@keyframes tickerMove {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ── Section commons ─────────────────────────────────────── */
.section {
  padding: 80px 0;
}
/* Neutral cream — NOT maroon */
.section-alt {
  background: var(--cream);
}
/* Green-tinted section */
.section-green-tint {
  background: linear-gradient(135deg, #f0fff0, #e8f5e9);
}
/* Dark section with SVG pattern — replaces solid maroon */
.section-dark {
  background: var(--maroon-dark);
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='52' height='52' viewBox='0 0 52 52' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h52v52H0z' fill='none'/%3E%3Ccircle cx='26' cy='26' r='1.5' fill='%23ffffff' fill-opacity='.04'/%3E%3Ccircle cx='0' cy='0' r='1.5' fill='%23ffffff' fill-opacity='.04'/%3E%3Ccircle cx='52' cy='0' r='1.5' fill='%23ffffff' fill-opacity='.04'/%3E%3Ccircle cx='0' cy='52' r='1.5' fill='%23ffffff' fill-opacity='.04'/%3E%3Ccircle cx='52' cy='52' r='1.5' fill='%23ffffff' fill-opacity='.04'/%3E%3C/svg%3E");
}
/* Forest green dark section */
.section-forest {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  position: relative;
  overflow: hidden;
}
.section-forest::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='52' height='52' viewBox='0 0 52 52' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='26' cy='26' r='1.5' fill='%23ffffff' fill-opacity='.05'/%3E%3C/svg%3E");
}

/* BG-image section helper */
.section-bg-img {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}
.section-bg-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(30, 5, 5, 0.75);
}
.section-bg-img > .container {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-badge {
  display: inline-block;
  background: rgba(139, 26, 26, 0.1);
  color: var(--maroon);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 18px;
  border-radius: 50px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-badge-green {
  background: rgba(46, 125, 50, 0.1);
  color: var(--green);
}
.section-badge-gold {
  background: rgba(212, 160, 23, 0.15);
  color: var(--gold-dark);
}
.section-title {
  font-family: var(--font-h);
  font-size: clamp(24px, 3.5vw, 42px);
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-title span {
  color: var(--maroon);
}
.section-title-light {
  color: var(--white);
}
.section-title-light span {
  color: var(--gold);
}
.section-subtitle {
  font-size: 15.5px;
  color: var(--text-light);
  max-width: 580px;
  margin: 0 auto;
}
.section-subtitle-light {
  color: rgba(255, 255, 255, 0.75);
}
.section-divider {
  width: 56px;
  height: 4px;
  background: linear-gradient(to right, var(--gold), var(--maroon));
  border-radius: 2px;
  margin: 14px auto 0;
}
.section-divider-left {
  margin-left: 0;
}
.section-divider-green {
  background: linear-gradient(to right, var(--green), var(--gold));
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--maroon);
  color: var(--white);
  font-weight: 600;
  padding: 13px 30px;
  border-radius: 50px;
  font-size: 14.5px;
  transition: var(--ease);
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--maroon-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--maroon-dark);
  font-weight: 700;
  padding: 13px 30px;
  border-radius: 50px;
  font-size: 14.5px;
  transition: var(--ease);
  border: none;
  cursor: pointer;
}
.btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.btn-green {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: var(--white);
  font-weight: 600;
  padding: 13px 30px;
  border-radius: 50px;
  font-size: 14.5px;
  transition: var(--ease);
}
.btn-green:hover {
  background: var(--green-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--maroon);
  color: var(--maroon);
  font-weight: 600;
  padding: 11px 28px;
  border-radius: 50px;
  font-size: 14.5px;
  transition: var(--ease);
  background: transparent;
}
.btn-outline:hover {
  background: var(--maroon);
  color: var(--white);
  transform: translateY(-3px);
}
.btn-outline-white {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--maroon);
  border-color: var(--white);
}
/* Legacy alias */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--maroon-dark);
  font-weight: 700;
  padding: 13px 30px;
  border-radius: 50px;
  font-size: 14.5px;
  transition: var(--ease);
}
.btn-secondary:hover {
  background: var(--gold-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ── About Section ───────────────────────────────────────── */
/* Background: white — zero maroon used here */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-img-wrap {
  position: relative;
}
.about-img-main {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.about-img-ph {
  width: 100%;
  height: 460px;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}
.about-float {
  position: absolute;
  bottom: 32px;
  left: -22px;
  background: var(--maroon);
  color: var(--white);
  padding: 20px 26px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-md);
  animation: float 3.5s ease-in-out infinite;
}
.about-float .num {
  font-size: 38px;
  font-weight: 800;
  color: var(--gold);
  display: block;
  line-height: 1;
}
.about-float .lbl {
  font-size: 12px;
  opacity: 0.85;
  line-height: 1.4;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.about-corner {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 88px;
  height: 88px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  font-size: 11px;
  font-weight: 700;
  color: var(--maroon-dark);
  text-align: center;
  padding: 10px;
  animation: spinTag 12s linear infinite;
}
@keyframes spinTag {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}
.about-content .section-badge,
.about-content .section-title,
.about-content .section-divider {
  text-align: left;
  margin-left: 0;
}
.about-desc {
  font-size: 15.5px;
  color: var(--text-medium);
  line-height: 1.85;
  margin: 20px 0 24px;
}
.about-feats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}
.about-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
}
.about-feat-ico {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background: rgba(46, 125, 50, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

/* ── Stats ───────────────────────────────────────────────── */
/* Background: dark green — NOT maroon */
.stats-section {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}
.stat-card {
  text-align: center;
  padding: 32px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}
.stat-card:last-child {
  border-right: none;
}
.stat-ico {
  font-size: 36px;
  display: block;
  margin-bottom: 12px;
  animation: iconBob 2.2s ease-in-out infinite;
}
@keyframes iconBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
.stat-num {
  font-size: 48px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}
.stat-lbl {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* ── Why Choose Us ───────────────────────────────────────── */
/* Background: white */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: var(--ease);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.why-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--gold), var(--maroon));
  transform: scaleX(0);
  transition: var(--ease);
}
.why-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.why-card:hover::after {
  transform: scaleX(1);
}
.why-ico {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: var(--white);
  box-shadow: 0 8px 20px rgba(46, 125, 50, 0.25);
  transition: var(--ease);
}
.why-card:hover .why-ico {
  transform: rotate(8deg) scale(1.1);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
}
.why-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.why-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.75;
}

/* ── Principal Message ──────────────────────────────────── */
/* Background: cream — avoids any maroon */
.message-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 320px 1fr;
}
.message-img-col {
  background: linear-gradient(160deg, var(--green-dark), var(--green));
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  padding: 28px;
}
.msg-avatar-ph {
  width: 100%;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 90px;
  opacity: 0.2;
}
.msg-name {
  position: relative;
  z-index: 1;
}
.msg-name h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}
.msg-name span {
  font-size: 13px;
  color: var(--gold);
}
.message-body {
  padding: 48px 52px;
}
.msg-quote {
  font-size: 80px;
  color: var(--gold);
  line-height: 0.7;
  font-family: Georgia, serif;
  opacity: 0.35;
  margin-bottom: 10px;
}
.message-body h3 {
  font-family: var(--font-h);
  font-size: 26px;
  color: var(--maroon);
  margin-bottom: 16px;
}
.message-body p {
  font-size: 15.5px;
  color: var(--text-medium);
  line-height: 1.85;
  margin-bottom: 24px;
}

/* ── Gallery preview ─────────────────────────────────────── */
.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 10px;
  margin-bottom: 36px;
}
.gal-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gal-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gal-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: rgba(255, 255, 255, 0.55);
  transition: transform 0.5s ease;
}
.gal-item:hover img,
.gal-item:hover .gal-ph {
  transform: scale(1.08);
}
.gal-item:nth-child(1) .gal-ph {
  background: linear-gradient(135deg, #1b4332, #2e7d32);
}
.gal-item:nth-child(2) .gal-ph {
  background: linear-gradient(135deg, #4a0f0f, #8b1a1a);
}
.gal-item:nth-child(3) .gal-ph {
  background: linear-gradient(135deg, #5d4500, #d4a017);
}
.gal-item:nth-child(4) .gal-ph {
  background: linear-gradient(135deg, #2e7d32, #4caf50);
}
.gal-item:nth-child(5) .gal-ph {
  background: linear-gradient(135deg, #6b0f0f, #b22222);
}
.gal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transition: var(--ease);
}
.gal-item:hover .gal-overlay {
  opacity: 1;
}
.gal-overlay span {
  color: var(--white);
  font-size: 22px;
}
.gal-overlay p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 600;
}
.gallery-cta {
  text-align: center;
}

/* ── Notice Board ────────────────────────────────────────── */
/* Forest green background — avoids maroon overuse */
.notice-section {
  background: linear-gradient(135deg, #1b3a1f 0%, #2e5d34 100%);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.notice-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='.03'%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3Ccircle cx='50' cy='50' r='2'/%3E%3Ccircle cx='50' cy='10' r='2'/%3E%3Ccircle cx='10' cy='50' r='2'/%3E%3C/g%3E%3C/svg%3E");
}
.notice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.notice-col-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
}
.notice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.notice-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: var(--ease);
  border-left: 3px solid transparent;
}
.notice-item:hover {
  background: rgba(255, 255, 255, 0.14);
  border-left-color: var(--gold);
}
.notice-date {
  background: var(--gold);
  color: var(--maroon-dark);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  text-align: center;
  flex-shrink: 0;
  min-width: 50px;
}
.nd-day {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  display: block;
}
.nd-mon {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.notice-text h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 3px;
  line-height: 1.4;
}
.notice-text p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

/* ── Footer ──────────────────────────────────────────────── */
/* Dark maroon is ACCEPTABLE for footer (small visual weight) */
.site-footer {
  background: var(--maroon-dark);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.footer-logo {
  height: 150px;
  width: auto;
  margin-bottom: 16px;
}
.footer-about-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.75;
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: var(--ease);
}
.footer-social a:hover {
  background: var(--gold);
  color: var(--maroon-dark);
  transform: translateY(-3px);
}
.footer-col h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 12px;
  position: relative;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--ease);
}
.footer-links a::before {
  content: "›";
  color: var(--gold);
  font-size: 16px;
}
.footer-links a:hover {
  color: var(--gold);
  padding-left: 6px;
}
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-ci {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}
.footer-ci-ico {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: rgba(212, 160, 23, 0.14);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--gold);
}
.footer-bottom {
  padding: 20px 0;
  text-align: center;
  background: var(--maroon-dark);
}
.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}
.footer-bottom a {
  color: var(--gold);
}

/* ── Popup ───────────────────────────────────────────────── */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
  backdrop-filter: blur(5px);
}
.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}
.popup-box {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  max-width: 580px;
  width: 100%;
  position: relative;
  transform: scale(0.85) translateY(24px);
  transition: transform 0.35s ease;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.popup-overlay.active .popup-box {
  transform: scale(1) translateY(0);
}
.popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-dark);
  border: none;
  z-index: 1;
  transition: var(--ease);
}
.popup-close:hover {
  background: #c00;
  color: var(--white);
  transform: rotate(90deg);
}
.popup-img {
  width: 100%;
  display: block;
  max-height: 400px;
  object-fit: cover;
}
.popup-no-img {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  padding: 56px 40px;
  text-align: center;
  color: var(--white);
}
.popup-no-img h2 {
  font-family: var(--font-h);
  font-size: 32px;
  margin-bottom: 10px;
  color: var(--gold);
}
.popup-no-img p {
  font-size: 16px;
  opacity: 0.88;
}
.popup-body {
  padding: 28px 32px;
  text-align: center;
}
.popup-body h3 {
  font-family: var(--font-h);
  font-size: 23px;
  color: var(--maroon);
  margin-bottom: 10px;
}
.popup-body p {
  font-size: 15px;
  color: var(--text-medium);
  margin-bottom: 22px;
}

/* ── Back to Top ─────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--maroon);
  color: var(--white);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-md);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--ease);
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--gold);
  color: var(--maroon-dark);
}

/* ── Page Hero (inner pages) ─────────────────────────────── */
.page-hero {
  background-color: var(--maroon-dark);   /* solid fallback */
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  padding: 68px 0;
  position: relative;
  overflow: hidden;
}
/* Dark maroon gradient overlay — ensures text always readable over any image */
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(80, 8, 8, 0.88) 0%,
    rgba(139, 26, 26, 0.78) 60%,
    rgba(107, 15, 15, 0.82) 100%
  );
  z-index: 1;
}
/* Subtle dot pattern on top of overlay */
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='.025'%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Ccircle cx='30' cy='10' r='2'/%3E%3Ccircle cx='50' cy='10' r='2'/%3E%3Ccircle cx='10' cy='30' r='2'/%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3Ccircle cx='50' cy='30' r='2'/%3E%3Ccircle cx='10' cy='50' r='2'/%3E%3Ccircle cx='30' cy='50' r='2'/%3E%3Ccircle cx='50' cy='50' r='2'/%3E%3C/g%3E%3C/svg%3E");
  z-index: 2;
}
.page-hero-inner {
  position: relative;
  z-index: 3;
}
.page-hero h1 {
  font-family: var(--font-h);
  font-size: clamp(26px, 4vw, 46px);
  color: var(--white);
  margin-bottom: 12px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}
.breadcrumb a {
  color: var(--gold);
}
.breadcrumb .sep {
  color: rgba(255, 255, 255, 0.3);
}

/* Alternative green page hero */
.page-hero-green {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
}
/* Alternative gold page hero */
.page-hero-gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), #f0c040);
}
.page-hero-gold h1 {
  color: var(--maroon-dark);
}
.page-hero-gold .breadcrumb {
  color: rgba(0, 0, 0, 0.5);
}

/* ── Inner Content ───────────────────────────────────────── */
.content-section {
  padding: 72px 0;
}
.content-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.content-card h2 {
  font-family: var(--font-h);
  font-size: 26px;
  color: var(--maroon);
  margin-bottom: 16px;
}
.content-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  margin-top: 24px;
}
.content-card p {
  font-size: 15.5px;
  color: var(--text-medium);
  line-height: 1.85;
  margin-bottom: 16px;
}
.content-card ul {
  margin: 12px 0 16px 20px;
  list-style: disc;
}
.content-card ul li {
  font-size: 15px;
  color: var(--text-medium);
  line-height: 1.75;
  margin-bottom: 6px;
}

/* Person card */
.person-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}
.person-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.person-photo-ph {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  color: rgba(255, 255, 255, 0.25);
}
.person-info h2 {
  font-family: var(--font-h);
  font-size: 30px;
  color: var(--maroon);
  margin-bottom: 4px;
}
.person-info .role {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.person-info p {
  font-size: 15.5px;
  color: var(--text-medium);
  line-height: 1.9;
  margin-bottom: 16px;
}
.person-info .signature {
  font-family: Georgia, serif;
  font-size: 22px;
  color: var(--maroon);
  margin-top: 24px;
  font-style: italic;
}

/* Faculty */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.faculty-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--ease);
}
.faculty-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.faculty-photo {
  height: 180px;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  color: rgba(255, 255, 255, 0.3);
}
.faculty-info {
  padding: 20px 16px;
}
.faculty-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.faculty-info .subj {
  font-size: 13px;
  color: var(--maroon);
  font-weight: 600;
  margin-bottom: 4px;
}
.faculty-info .exp {
  font-size: 12px;
  color: var(--text-light);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--light-gray);
}
.faq-q {
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: var(--ease);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.faq-q:hover,
.faq-item.open .faq-q {
  color: var(--maroon);
  background: var(--cream);
}
.faq-arr {
  font-size: 20px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  color: var(--maroon);
}
.faq-item.open .faq-arr {
  transform: rotate(180deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding 0.3s ease;
  font-size: 15px;
  color: var(--text-medium);
  line-height: 1.8;
  padding: 0 24px;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding: 0 24px 20px;
}

/* Gallery */
.gallery-filter-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}
.filter-btn {
  background: var(--cream);
  color: var(--text-dark);
  border: 2px solid var(--light-gray);
  padding: 9px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--ease);
  font-family: inherit;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--maroon);
  color: var(--white);
  border-color: var(--maroon);
}
.gallery-full-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gal-full-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  height: 200px;
}
.gal-full-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: rgba(255, 255, 255, 0.55);
  transition: transform 0.5s ease;
}
.gal-full-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gal-full-item:hover img,
.gal-full-item:hover .gal-full-ph {
  transform: scale(1.08);
}
.gal-full-item .gal-overlay {
  opacity: 0;
}
.gal-full-item:hover .gal-overlay {
  opacity: 1;
}
.gal-full-item.hidden {
  display: none;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
}
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ci-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--ease);
  border-left: 4px solid var(--gold);
}
.ci-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}
.ci-ico {
  width: 48px;
  height: 48px;
  background: rgba(46, 125, 50, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.ci-text h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--maroon);
  margin-bottom: 4px;
}
.ci-text p {
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.6;
}
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.contact-form h3 {
  font-family: var(--font-h);
  font-size: 24px;
  color: var(--maroon);
  margin-bottom: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 7px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  transition: var(--ease);
  color: var(--text-dark);
  background: var(--cream);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--maroon);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(139, 26, 26, 0.08);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-success {
  background: #d4edda;
  color: #155724;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  display: none;
  margin-bottom: 16px;
}

/* Toppers */
.topper-section-title {
  font-family: var(--font-h);
  font-size: 28px;
  color: var(--maroon);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
}
.topper-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.topper-card {
  background: var(--white);
  border-radius: var(--radius);
  text-align: center;
  padding: 28px 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--ease);
  position: relative;
  overflow: hidden;
}
.topper-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--gold), var(--maroon));
}
.topper-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.topper-rank {
  width: 40px;
  height: 40px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: var(--maroon-dark);
  margin: 0 auto 14px;
}
.topper-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: rgba(255, 255, 255, 0.4);
}
.topper-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.topper-card .cls {
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 6px;
}
.topper-card .pct {
  font-size: 22px;
  font-weight: 800;
  color: var(--maroon);
}

/* Accolades */
.accolade-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.accolade-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--ease);
  border-bottom: 4px solid transparent;
}
.accolade-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--gold);
}
.acc-ico {
  font-size: 48px;
  margin-bottom: 16px;
}
.accolade-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--maroon);
  margin-bottom: 8px;
}
.accolade-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ════════════════════════════════════════════════════
   INFRASTRUCTURE — Facility Cards
   ════════════════════════════════════════════════════ */

/* 3-column grid, 9 cards total */
.inf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Card shell */
.inf-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.32s ease, box-shadow 0.32s ease;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.inf-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14);
}

/* ── Photo block ─────────────────────────────────── */
.inf-card__photo {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--cream-dark);
  flex-shrink: 0;
}
.inf-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.inf-card:hover .inf-card__photo img {
  transform: scale(1.07);
}
/* Fallback gradient when image is missing */
.inf-card__fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
}
/* Subtle dark gradient at image bottom for tag readability */
.inf-card__photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
  pointer-events: none;
}
/* Floating label tag over photo (bottom-left) */
.inf-card__tag {
  position: absolute;
  bottom: 12px;
  left: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--card-accent, var(--maroon));
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
  letter-spacing: 0.03em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

/* ── Content block ───────────────────────────────── */
.inf-card__body {
  padding: 22px 24px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* Colored top accent strip using CSS variable */
  border-top: 4px solid var(--card-accent, var(--gold));
}
.inf-card__title {
  font-family: var(--font-h);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.3;
}
.inf-card__desc {
  font-size: 13.5px;
  color: var(--text-light);
  line-height: 1.8;
  margin: 0;
  flex: 1;
}
/* Short decorative line at bottom */
.inf-card__line {
  width: 36px;
  height: 3px;
  background: var(--card-accent, var(--gold));
  border-radius: 2px;
  margin-top: 4px;
}

/* ════════════════════════════════════════════════════
   INFRASTRUCTURE — Campus gallery thumbnails
   ════════════════════════════════════════════════════ */
.inf-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.inf-gal-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--cream-dark);
  cursor: pointer;
}
.inf-gal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.38s ease;
}
.inf-gal-thumb:hover img { transform: scale(1.1); }
.inf-gal-dim {
  position: absolute;
  inset: 0;
  background: rgba(139, 26, 26, 0.38);
  opacity: 0;
  transition: opacity 0.28s;
}
.inf-gal-thumb:hover .inf-gal-dim { opacity: 1; }

/* Curriculum */
.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.curr-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--ease);
  border-top: 4px solid var(--green);
}
.curr-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.curr-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--maroon);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.curr-card ul li {
  font-size: 14px;
  color: var(--text-medium);
  padding: 7px 0;
  border-bottom: 1px solid var(--light-gray);
  display: flex;
  align-items: center;
  gap: 8px;
}
.curr-card ul li:last-child {
  border-bottom: none;
}
.curr-card ul li::before {
  content: "📘";
  font-size: 13px;
}

/* Admission steps */
.admission-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
  margin-top: 40px;
}
.step-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  padding-top: 38px;
}
.step-card::before {
  content: attr(data-step);
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  background: var(--gold);
  color: var(--maroon-dark);
  font-weight: 800;
  font-size: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--maroon);
  margin-bottom: 10px;
  margin-top: 8px;
}
.step-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.65;
}

/* Statutory page — table helper (used in about.php & rules.php) */
.statutory-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 16px 0;
}
.statutory-table th {
  background: var(--maroon);
  color: var(--white);
  padding: 13px 16px;
  text-align: left;
  font-size: 13.5px;
  font-weight: 600;
}
.statutory-table td {
  padding: 12px 16px;
  color: var(--text-medium);
  border-bottom: 1px solid var(--light-gray);
  vertical-align: top;
}
.statutory-table tr:nth-child(even) td {
  background: var(--cream);
}
.statutory-table tr:hover td {
  background: var(--cream-dark);
}
.statutory-section-header {
  background: linear-gradient(90deg, var(--cream), var(--white));
  border-left: 4px solid var(--gold);
  padding: 16px 20px;
  margin: 32px 0 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.statutory-section-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--maroon);
  display: flex;
  align-items: center;
  gap: 10px;
}
.info-badge {
  display: inline-block;
  background: rgba(46, 125, 50, 0.1);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 50px;
  margin-left: 8px;
}

/* Statutory Compliances — document download grid */
.statutory-docs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 2px solid var(--maroon);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.stat-doc-card {
  border: 1px solid #d4b8b8;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  transition: background 0.2s;
}
.stat-doc-card:hover {
  background: var(--cream);
}
.stat-doc-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--maroon);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.stat-doc-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
}
.stat-doc-ico {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  flex-shrink: 0;
}
.stat-doc-fname {
  font-size: 12px;
  color: var(--text-medium);
  text-align: center;
  line-height: 1.4;
}
.stat-doc-dl {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--green);
  background: rgba(46, 125, 50, 0.1);
  padding: 3px 12px;
  border-radius: 50px;
}
.stat-doc-link:hover .stat-doc-dl {
  background: var(--green);
  color: #fff;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal-l {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal-r {
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.in,
.reveal-l.in,
.reveal-r.in {
  opacity: 1;
  transform: none;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-img-wrap {
    order: -1;
  }
  .about-img-ph {
    height: 360px;
  }
  .about-float {
    left: 10px;
  }
  .about-corner {
    right: 10px;
  }
  .message-card {
    grid-template-columns: 1fr;
  }
  .message-img-col {
    min-height: 260px;
  }
  .faculty-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .topper-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-card {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .person-card {
    grid-template-columns: 1fr;
  }
  .admission-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .accolade-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .curriculum-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .infra-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ifc-grid { grid-template-columns: repeat(2, 1fr); }
  .ifc-gallery { grid-template-columns: repeat(3, 1fr); }
  .inf-grid { grid-template-columns: repeat(2, 1fr); }
  .inf-gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery-full-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }
  .header-top {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--maroon-dark);
    padding: 6px 0;
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-menu > li > a {
    padding: 13px 20px;
    width: 100%;
  }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 0;
    display: none;
  }
  .dropdown.open {
    display: block;
  }
  .dropdown li a {
    color: rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.06);
  }
  .dropdown li a:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--gold);
  }
  .hero-slider {
    height: 440px;
  }
  .slide-content {
    padding: 0 24px;
  }
  .slide-text h2 {
    font-size: 26px;
  }
  .notice-grid {
    grid-template-columns: 1fr;
  }
  .gallery-preview-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .gal-item:first-child {
    grid-column: span 2;
    height: 240px;
  }
  .faculty-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .topper-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .about-feats {
    grid-template-columns: 1fr;
  }
  .header-main-inner {
    flex-wrap: wrap;
    gap: 12px;
  }
  .site-logo {
    flex: 1;
  }
  .slide-btns {
    flex-direction: column;
    gap: 10px;
  }
  .admission-steps {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .hero-slider {
    height: 380px;
  }
  .slide-text h2 {
    font-size: 21px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .faculty-grid {
    grid-template-columns: 1fr;
  }
  .topper-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-full-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .accolade-grid {
    grid-template-columns: 1fr;
  }
  .curriculum-grid {
    grid-template-columns: 1fr;
  }
  .infra-grid {
    grid-template-columns: 1fr;
  }
  .ifc-grid { grid-template-columns: 1fr; }
  .ifc-gallery { grid-template-columns: repeat(2, 1fr); }
  .inf-grid { grid-template-columns: 1fr; }
  .inf-gallery { grid-template-columns: repeat(2, 1fr); }
  .inf-card__photo { height: 200px; }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .message-body {
    padding: 28px 20px;
  }
}
