:root {
  --mobile-sm: 320px;
  --mobile: 480px;
  --tablet: 768px;
  --laptop: 1024px;
  --desktop: 1280px;
  --primary: #1a3a6b;
  --accent: #e07b00;
  --accent-light: #ffa733;
  --white: #ffffff;
  --light-bg: #f5f7fb;
  --dark-bg: #0d1f3c;
  --text-dark: #1a1a2e;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --success: #0f8a4b;
  --warning: #fff5d7;
  --warning-border: #f2c14e;
  --font-en: "Poppins", sans-serif;
  --font-hi: "Noto Sans Devanagari", sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 6px 18px rgba(13, 31, 60, 0.08);
  --shadow-md: 0 16px 38px rgba(13, 31, 60, 0.12);
  --shadow-lg: 0 24px 70px rgba(13, 31, 60, 0.18);
  --header-height: 64px;
  --page-banner-image: url("images/gallery-banner.jpg");
  --transition: 0.3s ease;
}
  /* Home hero background moved from inline style */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text-dark);
  font-family: var(--font-en);
  font-size: 16px;
  line-height: 1.8;
  padding-top: var(--header-height);
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

a,
button {
  min-width: 44px;
  min-height: 44px;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

section {
  padding: 48px 0;
}

.site-footer section {
  padding: 0;
}

.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

::selection {
  background: var(--accent-light);
  color: var(--dark-bg);
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border: 3px solid var(--light-bg);
  border-radius: 999px;
}

.hindi,
[lang="hi"] {
  font-family: var(--font-hi);
}

h1 {
  font-size: clamp(1.6rem, 4.5vw, 3rem);
}

h2 {
  font-size: clamp(1.3rem, 3.5vw, 2.2rem);
}

h3 {
  font-size: clamp(1.1rem, 2.8vw, 1.6rem);
}

h4 {
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
}

p {
  font-size: clamp(0.88rem, 2vw, 1rem);
  line-height: 1.8;
}

/* ── TOP BAR ── */
.top-bar {
  display: none;
  background: linear-gradient(90deg, rgba(10,32,62,0.95), rgba(26,58,107,0.95));
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.82rem;
  padding: 8px 20px;
  border-bottom: 3px solid rgba(224,123,0,0.06);
}

.top-bar a {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 0;
  color: rgba(255, 255, 255, 0.92);
  transition: color var(--transition);
}

.top-bar a:hover {
  color: var(--accent-light);
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── NAVBAR WRAPPER ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  /* premium glass gradient when over hero */
  background: linear-gradient(90deg, rgba(6,28,58,0.88), rgba(16,44,86,0.9));
  color: #ffffff;
  -webkit-backdrop-filter: blur(10px) saturate(135%);
  backdrop-filter: blur(10px) saturate(135%);
  border-bottom: 0;
  box-shadow: 0 18px 50px rgba(4,12,36,0.25);
  transition: box-shadow 0.28s var(--transition), background 0.28s var(--transition), transform 0.28s var(--transition);
}

.navbar.scrolled {
  /* switch to light style when page scrolled past hero */
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(245,247,251,0.96));
  color: var(--text-dark);
  box-shadow: var(--shadow-md);
}

/* ── NAV CONTAINER ── */
.nav-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 12px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 14px;
  transition: padding var(--transition), gap var(--transition);
}

  .navbar.scrolled .nav-container {
    padding: 10px 24px;
  }

/* ── LOGO ── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 1;
  text-decoration: none;
}

.logo-icon {
  display: grid;
  width: 64px;
  height: 64px;
  min-width: 64px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(30,64,120,1), rgba(12,30,62,1));
  color: var(--accent-light);
  box-shadow: 0 18px 40px rgba(13,31,60,0.22), 0 0 0 4px rgba(224,123,0,0.04) inset;
  transform: translateZ(0);
}

.nav-logo:hover .logo-icon { transform: translateY(-4px) scale(1.02); }

.logo-icon img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.logo-icon svg {
  width: 70%;
  height: 70%;
}

.logo-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.2;
}

.logo-hindi {
  max-width: 54vw;
  overflow: hidden;
  color: #ffffff;
  font-family: "Noto Sans Devanagari", sans-serif;
  font-size: clamp(0.8rem, 2.5vw, 1.08rem);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logo-english {
  max-width: 54vw;
  overflow: hidden;
  color: var(--accent-light);
  font-size: clamp(0.64rem, 1.8vw, 0.82rem);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── HAMBURGER BUTTON ── */
.hamburger {
  position: relative;
  z-index: 1100;
  display: flex;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  flex-direction: column;
  flex-shrink: 0;
  justify-content: center;
  gap: 6px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger .bar {
  display: block;
  width: 34px;
  height: 3.5px;
  margin: 0 auto;
  background: rgba(255,255,255,0.95);
  border-radius: 3px;
  transform-origin: center;
  transition: all 0.32s cubic-bezier(.2,.9,.2,1);
}

.navbar.scrolled .hamburger .bar { background: var(--primary); }

.hamburger.active .bar:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* ── NAV LINKS ── */
.nav-links {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 999;
  display: flex;
  width: 100%;
  max-height: 0;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  list-style: none;
  margin: 0;
  padding: 0;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.nav-links.nav-open {
  max-height: 400px;
  padding: 12px 0 20px;
}

/* Desktop / wider screens: horizontal navigation */
@media (min-width: 900px) {
  .navbar {
    background: var(--light-bg);
    border-bottom: 1px solid rgba(3,10,32,0.04);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .nav-container { padding: 10px 16px; gap: 8px; }

  .nav-links {
    position: static;
    top: auto;
    left: auto;
    width: auto;
    max-height: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .nav-links li { width: auto; }

  .nav-links li a {
    padding: 8px 6px;
    color: rgba(255,255,255,0.95);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    position: relative;
    transition: color 0.18s ease, transform 0.18s ease;
  }

  .nav-links li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    height: 3px;
    width: 0;
    background: var(--accent);
    border-radius: 3px;
    transition: width 0.28s ease;
  }

  .nav-links li a:hover::after,
  .nav-links li a.active::after {
    width: 100%;
  }

  .nav-links li a:hover,
  .nav-links li a.active {
    color: var(--accent-light);
    transform: translateY(-2px);
  }

  .navbar.scrolled .nav-links li a {
    color: var(--text-dark);
  }

  .nav-actions { display: flex; }

  .nav-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 700;
    padding: 6px 8px;
    border-radius: 8px;
    background: transparent;
  }

  .nav-phone:hover { color: var(--accent); transform: translateY(-2px); }

  .nav-cta { padding: 10px 16px; border-radius: 999px; white-space: nowrap; font-size: 0.98rem; box-shadow: 0 14px 34px rgba(224,123,0,0.2); }

  .logo-icon { width: 72px; height: 72px; min-width:72px; border-radius:14px; }
  .logo-icon img { width:78%; height:78%; }
  .logo-hindi { font-size: clamp(1rem, 3vw, 1.35rem); }
  .logo-english { font-size: clamp(0.78rem, 2.2vw, 1.02rem); }
}

/* Mobile: compact header but keep name visible and ensure contrast */
@media (max-width: 899px) {
  .logo-text {
    display: flex !important;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
    width: auto;
    max-width: calc(100vw - 136px);
  }
  .logo-text { min-width: 0; opacity: 1 !important; }
  .logo-hindi {
    color: var(--primary);
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    font-size: clamp(0.82rem, 3vw, 0.98rem);
    font-weight: 800;
    line-height: 1;
  }
  .logo-english {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    color: var(--accent);
    font-size: clamp(0.64rem, 2vw, 0.82rem);
    font-weight: 700;
    line-height: 1;
  }
  .logo-icon { width: 56px; height: 56px; min-width:56px; }
  .logo-icon img { width:72%; height:72%; }
  .hamburger .bar { background: var(--primary) !important; }
  .nav-container { padding: 8px 12px; gap: 10px; }
  .nav-cta { padding: 8px 12px; font-size: 0.9rem; }
  .navbar { box-shadow: 0 8px 20px rgba(4,12,36,0.08); }
}

.nav-links li {
  width: 100%;
}

.nav-links li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 20px;
  border-left: 3px solid transparent;
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
  border-left-color: var(--accent);
  background: #fff8f0;
  color: var(--accent);
}

/* Header CTA / actions */
.nav-actions {
  display: none;
  align-items: center;
  gap: 10px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  color: var(--white);
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 34px rgba(224, 123, 0, 0.22);
  transition: transform 0.22s ease, opacity 0.22s ease, box-shadow 0.22s ease;
}

.nav-cta:hover { transform: translateY(-3px) scale(1.02); opacity: 0.98; box-shadow: 0 18px 46px rgba(224, 123, 0, 0.26); }

@keyframes pulse-accent { 0% { box-shadow: 0 10px 24px rgba(224,123,0,0.16); } 50% { box-shadow: 0 18px 40px rgba(224,123,0,0.22); } 100% { box-shadow: 0 10px 24px rgba(224,123,0,0.16); } }
.nav-cta.animate { animation: pulse-accent 3.6s ease-in-out infinite; }

/* when navbar is transparent, give CTA a thin white outline for visibility */
.navbar:not(.scrolled) .nav-cta { box-shadow: 0 10px 28px rgba(13,31,60,0.12), 0 0 0 3px rgba(255,255,255,0.06); }

.section {
  padding: 48px 0;
}

.section--light {
  background: var(--light-bg);
}

.section--dark {
  background: var(--dark-bg);
  color: var(--white);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto clamp(24px, 5vw, 48px);
  text-align: center;
}

.section-heading--left {
  margin-inline: 0;
  text-align: left;
}

.section-heading h1,
.section-heading h2 {
  margin: 0 0 8px;
  color: var(--primary);
  font-family: var(--font-hi);
  font-weight: 700;
  line-height: 1.25;
}

.section-heading h1::after,
.section-heading h2::after,
.section-heading .divider {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  margin: 12px auto 0;
  background: var(--accent);
  border-radius: 2px;
}

.section-heading--left h1::after,
.section-heading--left h2::after {
  margin-left: 0;
  margin-right: 0;
}

.section-heading .subtitle,
.section-subtitle,
.subtitle {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: clamp(0.92rem, 2.2vw, 1.1rem);
  font-weight: 500;
}

.section-action {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.rich-text {
  display: grid;
  gap: 16px;
}

.rich-text p,
.hindi p {
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(224, 123, 0, 0.28);
}

.btn-primary:hover {
  background: #c76d00;
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.76);
  background: transparent;
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--primary);
}

.btn-navy {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(26, 58, 107, 0.22);
}

.btn-navy:hover {
  background: var(--dark-bg);
}

.hero {
  position: relative;
  position: relative;
  display: grid;
  min-height: 86svh;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: calc(var(--header-height) + 36px) 16px 80px;
  background-position: center;
  background-size: cover;
  color: var(--white);
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  /* removed strong blue overlay so hero images show through */
  background: transparent;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 180px;
  /* keep bottom fade subtle/transparent to avoid blue tint */
  background: transparent;
}

.hero-content {
  width: 100%;
  max-width: 980px;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-hi);
  font-size: clamp(2rem, 6.5vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  text-shadow: 0 8px 30px rgba(2,10,28,0.6);
}

.hero p {
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
}

.hero .tagline {
  margin: 14px auto 0;
  color: var(--accent-light);
  font-family: var(--font-hi);
  font-weight: 800;
  letter-spacing: 0.4px;
}

.typewriter {
  min-height: 1.7em;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.hero-actions,
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  flex-direction: row;
  gap: 16px;
  justify-content: center;
  margin-top: 28px;
}

.hero-actions a,
.hero-buttons a {
  padding: 12px 26px;
  font-size: 1rem;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

/* Floating hero CTA card */
.hero-card {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  gap: 14px;
  align-items: center;
  box-shadow: 0 18px 48px rgba(3,10,32,0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.hero-card .card-text { color: rgba(255,255,255,0.92); font-weight:700; }
.hero-card .card-cta .btn { padding: 10px 18px; border-radius: 10px; }

.hero-particles span {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255, 167, 51, 0.48);
  border-radius: 50%;
  animation: floatParticle 6s ease-in-out infinite;
}

.hero-particles span:nth-child(1) { top: 18%; left: 12%; }
.hero-particles span:nth-child(2) { top: 28%; right: 14%; width: 14px; height: 14px; animation-delay: 0.8s; }
.hero-particles span:nth-child(3) { bottom: 26%; left: 18%; width: 8px; height: 8px; animation-delay: 1.6s; }
.hero-particles span:nth-child(4) { right: 24%; bottom: 18%; animation-delay: 2.4s; }
.hero-particles span:nth-child(5) { top: 44%; left: 48%; width: 12px; height: 12px; animation-delay: 3.2s; }

.hero-wave {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  width: 100%;
  color: var(--white);
  pointer-events: none;
}

/* ── HERO SLIDER ── */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: -3;
  display: block;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 900ms ease, transform 900ms ease;
  will-change: opacity, transform;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* show images clearly without darkening/blue tint */
  filter: none;
}
.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

/* Ensure hero overlays remain visible */
.hero-content,
.hero-card {
  position: relative;
  z-index: 2;
}

.notice-bar,
.marquee-bar {
  overflow: hidden;
  padding: 10px 0;
  background: var(--accent);
  color: var(--white);
  font-size: clamp(0.8rem, 2.2vw, 0.95rem);
  font-weight: 700;
  white-space: nowrap;
}

.notice-bar__inner {
  display: flex;
  min-height: 44px;
  flex-direction: column;
  gap: 4px;
}

@media (min-width: 1200px) {
  .event-magazine-collage {
    grid-template-columns: 1.22fr 0.78fr;
  }

  .collage-stack {
    grid-template-rows: 1.08fr 0.98fr 0.94fr;
  }
}

.notice-label {
  flex: 0 0 auto;
  font-family: var(--font-hi);
}

.notice-marquee {
  width: 100%;
  overflow: hidden;
}

.marquee-track,
.marquee-inner {
  display: inline-block;
  min-width: max-content;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.grid,
.grid-2,
.grid-3,
.grid-4,
.grid-6 {
  display: grid;
}

.grid {
  gap: 24px;
}

.grid-2 {
  grid-template-columns: 1fr;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: 1fr;
  gap: 20px;
}

.grid-4,
.grid-6 {
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition), color var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.stat-card,
.feature-card,
.infra-card,
.activity-badge {
  padding: 20px 14px;
  text-align: center;
}

.stat-card .icon,
.feature-card .icon,
.infra-card .icon {
  display: inline-grid;
  width: clamp(46px, 12vw, 58px);
  height: clamp(46px, 12vw, 58px);
  margin-bottom: 12px;
  place-items: center;
  border-radius: 50%;
  background: rgba(224, 123, 0, 0.1);
  color: var(--accent);
  font-size: 1.6rem;
}

.stat-value,
.stat-number {
  color: var(--primary);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
}

.stat-label,
.card-subtitle {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: clamp(0.78rem, 2vw, 0.9rem);
  font-weight: 600;
}

.feature-card:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.feature-card:hover h3,
.feature-card:hover .card-subtitle {
  color: rgba(255, 255, 255, 0.86);
}

.feature-card:hover .icon {
  background: rgba(255, 255, 255, 0.14);
  color: var(--accent-light);
}

.event-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: clamp(20px, 5vw, 42px);
  overflow: hidden;
}

.event-card h3 {
  margin: 0 0 14px;
  color: var(--primary);
  font-family: var(--font-hi);
  font-size: clamp(1.2rem, 3.8vw, 2rem);
  line-height: 1.35;
}

.event-card p {
  margin: 0;
  font-family: var(--font-hi);
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 0;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(224, 123, 0, 0.12);
  color: var(--accent);
  font-family: var(--font-hi);
  font-size: 0.9rem;
  font-weight: 800;
}

.photo-collage,
.event-collage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 20px;
}

.photo-card,
.gallery-card {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--primary);
  cursor: pointer;
}

.photo-card img,
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease, filter 400ms ease;
}

.photo-card::after,
.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13, 31, 60, 0.78), transparent 58%);
  opacity: 0;
  transition: opacity var(--transition);
}

.photo-card:hover img,
.gallery-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.photo-card:hover::after,
.gallery-card:hover::after {
  opacity: 1;
}

.principal-layout,
.principal-section,
.hostel-layout,
.contact-layout,
.development-layout,
.affiliation-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.profile-panel {
  text-align: center;
}

.profile-panel h3 {
  margin: 0;
  color: var(--primary);
  font-family: var(--font-hi);
  font-size: 1.25rem;
}

.profile-photo,
.principal-photo {
  width: clamp(140px, 40vw, 240px);
  height: clamp(140px, 40vw, 240px);
  margin: 0 auto 18px;
  overflow: hidden;
  border: 6px solid var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-mark {
  color: rgba(224, 123, 0, 0.18);
  font-family: Georgia, serif;
  font-size: clamp(4rem, 16vw, 8rem);
  font-weight: 700;
  line-height: 0.7;
}

.leadership-grid,
.management-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.leader-card {
  padding: 24px 18px;
  text-align: center;
}

.leader-card img {
  width: clamp(120px, 34vw, 148px);
  height: clamp(120px, 34vw, 148px);
  margin: 0 auto 18px;
  border: 6px solid var(--light-bg);
  border-radius: 50%;
  object-fit: cover;
}

.leader-card h3,
.stream-card h3,
.feature-card h3,
.infra-card h3 {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: clamp(1.05rem, 2.8vw, 1.25rem);
  font-weight: 800;
}

.leader-card h3 {
  font-family: var(--font-hi);
}

.leader-card .title {
  margin: 0 0 16px;
  color: var(--accent);
  font-family: var(--font-hi);
  font-weight: 800;
}

.leader-card blockquote {
  margin: 0;
  color: var(--text-muted);
  font-family: var(--font-hi);
}

.gallery-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

/* ── New masonry-gallery: column-based ── */
.masonry-gallery {
  columns: 2;
  column-gap: 10px;
  gap: 10px;
}

.masonry-gallery .gallery-card {
  display: inline-block;
  width: 100%;
  margin-bottom: 10px;
  break-inside: avoid;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  min-height: 0;
  box-shadow: 0 4px 16px rgba(13,31,60,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.masonry-gallery .gallery-card img {
  width: 100%;
  height: auto;
  min-height: 120px;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.4s ease;
}

.masonry-gallery .gallery-card.tall img {
  min-height: 320px;
  object-fit: cover;
}

.masonry-gallery .gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(13,31,60,0.22);
}

.masonry-gallery .gallery-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.12) brightness(1.02);
}

.masonry-gallery .gallery-card::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.masonry-gallery .gallery-card[data-category="events"]::before {
  background: var(--accent);
  opacity: 1;
}

.masonry-gallery .gallery-card[data-category="sports"]::before {
  background: #16a34a;
  opacity: 1;
}

.masonry-gallery .gallery-card[data-category="cultural"]::before {
  background: #7c3aed;
  opacity: 1;
}

.masonry-gallery .gallery-card[data-category="academic"]::before {
  background: #0284c7;
  opacity: 1;
}

.gallery-card {
  min-height: 180px;
  transition: opacity var(--transition), transform var(--transition);
}

.gallery-card[hidden] {
  display: none;
}

.gallery-card.is-hidden {
  pointer-events: none;
  opacity: 0;
  transform: scale(0.94);
}

.gallery-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 32px 14px 14px;
  background: linear-gradient(0deg, rgba(13,31,60,0.88), transparent);
  color: var(--white);
  font-family: var(--font-hi);
  font-size: 0.88rem;
  font-weight: 700;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.gallery-card:hover .gallery-caption {
  transform: translateY(0);
}

.page-banner {
  position: relative;
  display: flex;
  height: clamp(180px, 35vw, 400px);
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  padding: 20px 16px;
  background-position: center;
  background-size: cover;
  background-image: var(--page-banner-image);
  color: var(--white);
  text-align: center;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Remove the strong blue tint so banners display original image colors */
  background: transparent;
}

.page-banner h1 {
  margin: 0;
  font-family: var(--font-hi);
  font-size: clamp(1.4rem, 4vw, 2.8rem);
  font-weight: 800;
}

/* Per-page banners (use uploaded, page-specific images) */
.page-banner.about { background-image: url("images/about-us-banner.jpg"); }
.page-banner.contact { background-image: url("images/contact-banner.jpg"); }
.page-banner.academic { background-image: url("images/academics-banner.jpg"); }
.page-banner.gallery { background-image: url("images/gallery-banner.jpg"); }
.page-banner.fees { background-image: url("images/results-banner.jpg"); }

/* Remove overlaying text on banners and hero (site-wide) */
.page-banner h1,
.page-banner .breadcrumb,
.hero-content,
.hero-card {
  display: none !important;
}

/* If you want to keep overlay text on a specific page, add `show-banner-text` to the page-banner element
   e.g. <section class="page-banner about show-banner-text"> — this will restore the heading and breadcrumb. */
.page-banner.show-banner-text h1,
.page-banner.show-banner-text .breadcrumb {
  display: block !important;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 600;
}

.breadcrumb a {
  min-width: 0;
}

.breadcrumb a:hover {
  color: var(--accent-light);
}

.timeline {
  position: relative;
  display: grid;
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 16px;
  width: 3px;
  background: rgba(26, 58, 107, 0.14);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  display: grid;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 0 0 6px var(--white);
}

.timeline-content {
  padding: 18px;
}

.timeline-content h3 {
  margin: 0 0 8px;
  color: var(--primary);
  font-family: var(--font-hi);
}

.timeline-content p {
  margin: 0;
  font-family: var(--font-hi);
}

.stat-badges {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.stat-badge {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--white);
  text-align: center;
}

.stat-badge strong {
  display: block;
  color: var(--accent-light);
  font-size: 1.45rem;
}

.activity-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.activity-badge {
  color: var(--primary);
  font-family: var(--font-hi);
  font-weight: 800;
}

.quote-block {
  margin: 0;
  padding: clamp(20px, 4vw, 36px);
  border-left: 6px solid var(--accent);
  border-radius: var(--radius);
  background: rgba(224, 123, 0, 0.08);
  color: var(--primary);
  font-family: var(--font-hi);
  font-size: clamp(1.05rem, 2.5vw, 1.45rem);
  font-weight: 700;
}

.stream-card {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 5vw, 40px);
}

.stream-icon {
  display: grid;
  width: clamp(56px, 16vw, 68px);
  height: clamp(56px, 16vw, 68px);
  place-items: center;
  border-radius: 50%;
  background: rgba(26, 58, 107, 0.1);
  font-size: 2rem;
}

.hostel-image {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hostel-image img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.icon-list {
  display: grid;
  gap: 10px;
}

.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.hostel-facilities {
  grid-template-columns: 1fr;
  margin-top: 22px;
}

.table-wrap,
.fee-table {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  /* overflow smoothing removed for cross-browser compatibility */
}

.data-table,
.fee-table table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  background: var(--white);
}

.table-strong { font-weight: 700; }

.data-table th,
.data-table td,
.fee-table th,
.fee-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.data-table th,
.fee-table th {
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-hi);
  font-weight: 800;
}

.data-table tr:nth-child(even) td,
.fee-table tr:nth-child(even) td {
  background: var(--light-bg);
}

.data-table tr:last-child td,
.fee-table tr:last-child td {
  border-bottom: 0;
}

.note-box {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--warning-border);
  border-radius: var(--radius);
  background: var(--warning);
  color: #744900;
  font-family: var(--font-hi);
  font-weight: 700;
}

.accordion {
  display: grid;
  gap: 12px;
}

.accordion-item {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.accordion-button,
.accordion-header {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--white);
  color: var(--primary);
  cursor: pointer;
  font-family: var(--font-hi);
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  font-weight: 800;
  text-align: left;
}

.accordion-button::after {
  content: ">";
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 1.6rem;
  line-height: 1;
  transform: rotate(90deg);
  transition: transform var(--transition);
}

.accordion-item.is-open .accordion-button::after {
  transform: rotate(-90deg);
}

.accordion-panel,
.accordion-body {
  max-height: 0;
  overflow: hidden;
  font-size: clamp(0.85rem, 2.2vw, 0.95rem);
  line-height: 1.8;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.accordion-panel-inner {
  padding: 0 20px 20px;
  color: var(--text-muted);
  font-family: var(--font-hi);
}

.accordion-body {
  padding: 0 20px;
}

.accordion-body.open {
  max-height: 600px;
  padding: 16px 20px;
}

.filter-buttons,
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}

.filter-btn {
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: var(--white);
  color: var(--primary);
  cursor: pointer;
  font-family: var(--font-hi);
  font-size: 0.88rem;
  font-weight: 800;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(5, 12, 24, 0.88);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  width: auto;
  max-width: 100%;
  max-height: 82svh;
  border-radius: var(--radius);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-btn {
  position: absolute;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
  font-size: 1.8rem;
  transition: background var(--transition), transform var(--transition);
}

.lightbox-btn:hover {
  background: var(--accent);
  transform: scale(1.06);
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-prev {
  bottom: 20px;
  left: 20px;
}

.lightbox-next {
  right: 20px;
  bottom: 20px;
}

.contact-info {
  display: grid;
  gap: 16px;
}

.contact-hero {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
  padding: clamp(22px, 5vw, 32px);
  background: linear-gradient(135deg, rgba(26,58,107,0.98), rgba(13,31,60,0.96));
  color: var(--white);
  overflow: hidden;
  position: relative;
}

.contact-hero::after {
  content: "";
  position: absolute;
  inset: auto -60px -60px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  filter: blur(10px);
  pointer-events: none;
}

.contact-hero-text,
.contact-hero-badges,
.contact-form-header {
  position: relative;
  z-index: 1;
}

.contact-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: var(--accent-light);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-hero h2,
.contact-form-header h3 {
  margin: 0;
  font-family: var(--font-hi);
  line-height: 1.25;
}

.contact-hero h2 {
  color: var(--white);
  font-size: clamp(1.3rem, 3.8vw, 2rem);
}

.contact-hero p,
.contact-form-header p {
  margin: 10px 0 0;
  color: rgba(255,255,255,0.82);
  font-family: var(--font-hi);
  line-height: 1.6;
}

.contact-hero-badges {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.contact-badge {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 6px 10px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

.contact-badge:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.18);
}

.contact-badge span {
  grid-row: span 2;
  font-size: 1.2rem;
  line-height: 1;
}

.contact-badge strong {
  font-family: var(--font-hi);
  font-size: 0.98rem;
}

.contact-badge small {
  color: rgba(255,255,255,0.8);
  font-size: 0.84rem;
}

.contact-badge--static {
  pointer-events: none;
}

.contact-card {
  padding: 20px;
}

.contact-card:nth-child(1) { border-top: 4px solid var(--accent); }
.contact-card:nth-child(2) { border-top: 4px solid #16a34a; }
.contact-card:nth-child(3) { border-top: 4px solid #0284c7; }

.contact-card h3 {
  margin: 0 0 8px;
  color: var(--primary);
  font-family: var(--font-hi);
}

.contact-card p {
  margin: 0;
}

.contact-card p + p {
  margin-top: 6px;
}

.contact-card a {
  color: var(--primary);
  font-weight: 700;
}

.contact-card a:hover {
  color: var(--accent);
}

.map-frame {
  width: 100%;
  max-width: 100%;
  height: 340px;
  margin-top: 18px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-form {
  display: grid;
  width: 100%;
  gap: 16px;
  padding: clamp(22px, 5vw, 34px);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,248,252,0.98));
  border: 1px solid rgba(26,58,107,0.08);
}

.contact-form-header {
  margin-bottom: 4px;
}

.contact-form-header h3 {
  color: var(--primary);
  font-size: clamp(1.05rem, 2.8vw, 1.45rem);
}

.contact-form-header p {
  color: var(--text-muted);
  margin-top: 8px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label {
  color: var(--primary);
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(26,58,107,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.92);
  padding: 14px 15px;
  color: var(--text-dark);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: 0 10px 24px rgba(13,31,60,0.04);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(224, 123, 0, 0.12), 0 14px 28px rgba(13,31,60,0.08);
  transform: translateY(-1px);
}

.form-success {
  display: none;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(15, 138, 75, 0.1);
  color: var(--success);
  font-family: var(--font-hi);
  font-weight: 800;
}

.form-success.is-visible {
  display: block;
}

.error-text {
  color: #b42318;
  font-size: 0.86rem;
}

.is-invalid {
  border-color: #b42318 !important;
}

@media (max-width: 899px) {
  .contact-layout {
    gap: 28px;
  }

  .contact-hero {
    margin-bottom: 18px;
  }
}

@media (min-width: 700px) {
  .contact-layout {
    align-items: start;
  }

  .contact-hero-badges {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-form {
    position: sticky;
    top: calc(var(--header-height) + 18px);
  }
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 32px;
  }

  .contact-hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    padding: clamp(26px, 3vw, 38px);
  }

  .contact-hero-badges {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: clamp(26px, 3vw, 38px);
  }
}

.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
  padding: 56px 0 26px;
}

.site-footer a,
.site-footer button {
  min-width: 0;
  min-height: 0;
}

.footer-main {
  padding: 8px 0 6px;
  padding: 0 0 6px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  padding: 28px 20px 22px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.footer-column h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.2px;
}

.footer-about h2 {
  display: grid;
  gap: 3px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: contain;
  background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  padding: 8px;
  box-shadow: 0 10px 30px rgba(2,10,28,0.45) inset;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(2,10,28,0.45) inset;
}

.footer-title-hi {
  font-family: var(--font-hi);
  font-size: 1.32rem;
  line-height: 1.2;
}

.footer-title-en {
  color: var(--accent-light);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
}

.footer-tagline {
  margin: 10px 0 8px;
  color: var(--accent-light);
  font-family: var(--font-hi);
  font-weight: 700;
  line-height: 1.4;
  margin: 12px 0 10px;
  max-width: 360px;
}

.footer-column p {
  margin: 0;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  line-height: 1.35;
  transition: color var(--transition), transform var(--transition);
}

.footer-links a:hover {
  color: var(--accent-light);
  transform: translateX(6px);
}

.footer-contact {
  display: grid;
  gap: 10px;
}

.footer-contact li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  line-height: 1.5;
}
.footer-contact li > span[aria-hidden="true"] {
  line-height: 1;
  margin-top: 2px;
}

.footer-contact a:hover {
  color: var(--accent-light);
}

/* Footer social and newsletter */
.footer-social {
  margin-top: 16px;
  display: flex;
  gap: 14px;
}

.social-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.03);
  box-shadow: 0 10px 30px rgba(2,10,28,0.24);
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition), color var(--transition);
}

.social-icon svg {
  width: 22px;
  height: 22px;
}

.social-icon:hover {
  transform: translateY(-6px) scale(1.03);
  background: linear-gradient(90deg,var(--accent),var(--accent-light));
  color: #fff;
  box-shadow: 0 18px 36px rgba(224,123,0,0.22);
}

.footer-newsletter {
  margin-top: 14px;
}

.newsletter-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.newsletter-row input[type="email"] {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  color: var(--white);
  outline: none;
}

.newsletter-row input::placeholder { color: rgba(255,255,255,0.6); }

.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

.footer-credit-line {
  margin: 18px 0 0;
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
  margin: 10px 0 0;
  text-align: center;
}

.footer-credit-line a {
  color: var(--accent-light);
  font-weight: 800;
  text-decoration: none;
}

.footer-credit-line a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer.footer-no-credits .footer-main {
  padding-bottom: 14px;
}

.site-footer.footer-no-credits .footer-grid {
  padding-bottom: 18px;
}

/* -------- Premium Footer Enhancements -------- */
.site-footer {
  background: linear-gradient(180deg, rgba(10,28,55,0.98) 0%, rgba(12,36,66,0.98) 100%);
  color: rgba(255,255,255,0.92);
}

.site-footer .footer-main {
  padding: 18px 0 10px;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 1fr;
  gap: 28px;
  align-items: start;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: 14px;
  padding: 28px 28px 22px;
  box-shadow: 0 18px 50px rgba(3,10,32,0.45);
}

.footer-brand {
  gap: 14px;
}

.footer-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  padding: 8px;
  background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  box-shadow: 0 8px 30px rgba(3,10,32,0.45) inset;
}

.footer-title-hi { font-size: 1.25rem; }
.footer-title-en { font-size: 0.86rem; }

.footer-about p { color: rgba(255,255,255,0.82); margin-top: 8px; }

.footer-links { display: grid; gap: 8px; }
.footer-links a {
  color: rgba(255,255,255,0.88);
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-links a::after { content: '→'; opacity: 0; margin-left: 8px; transition: all 0.2s ease; font-weight:700; }
.footer-links a:hover { color: var(--accent-light); transform: translateX(4px); }
.footer-links a:hover::after { opacity: 1; transform: translateX(4px); }

.footer-contact li { color: rgba(255,255,255,0.9); }

.footer-social { margin-top: 16px; }
.social-icon {
  width: 44px; height:44px; border-radius: 10px; display:inline-grid; place-items:center;
  background: rgba(255,255,255,0.03); color: var(--white); transition: transform 0.28s ease, background 0.28s ease;
}
.social-icon svg { display:block; }
.social-icon:hover { transform: translateY(-6px); background: linear-gradient(90deg,var(--accent),var(--accent-light)); color: #fff; box-shadow: 0 18px 36px rgba(224,123,0,0.18); }

.footer-newsletter { margin-top: 18px; }
.newsletter-row input[type="email"] { padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.02); }
.newsletter-row .btn-primary { padding: 10px 18px; border-radius: 10px; box-shadow: 0 12px 28px rgba(26,58,107,0.24); background: linear-gradient(90deg,var(--accent),var(--accent-light)); }

@media (max-width: 899px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; padding: 22px; box-shadow: none; border-radius: 10px; }
}

@media (max-width: 599px) {
  .footer-grid {
    gap: 22px;
    padding: 26px 18px 18px;
  }

  .footer-column h2 {
    margin-bottom: 10px;
  }

  .footer-contact li {
    grid-template-columns: 18px 1fr;
  }

  .social-icon {
    width: 48px;
    height: 48px;
  }
}

@media (min-width: 480px) {
  .container {
    padding: 0 20px;
  }
  .footer-column h2 { position: relative; padding-left: 18px; }
  .footer-column h2::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 28px; background: var(--accent); border-radius: 4px; }
  .footer-school-name { margin: 0; color: var(--white); font-size: 1.2rem; line-height:1.1; }
  .footer-school-sub { display:block; color: var(--accent-light); font-size:0.85rem; font-weight:800; margin-top:6px; }
  .footer-tagline { margin-top: 12px; color: rgba(255,255,255,0.85); max-width: 340px; }
  .footer-address { margin-top: 12px; color: rgba(255,255,255,0.82); }

  .hero-actions,
  .hero-buttons {
    align-items: center;
    flex-direction: row;
  }

  .footer-social { margin-top: 18px; }
  .social-icon {
    width: 56px; height:56px; border-radius: 12px; display:inline-grid; place-items:center;
    background: rgba(255,255,255,0.03); color: var(--white); transition: transform 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
    border: 1px solid rgba(255,255,255,0.03);
    box-shadow: 0 10px 24px rgba(3,10,32,0.18);
  }
  .footer-credit-line {
    margin: 8px 0 0;
    color: rgba(255,255,255,0.82);
    font-size: 0.95rem;
    text-align: center;
  }

  .footer-credit-line a { color: var(--accent-light); font-weight:800; text-decoration:none; }
  .footer-credit-line a:hover { text-decoration: underline; color: #fff; }
  .hostel-facilities,
  .activity-grid,
  .stat-badges {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 600px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }


  /* footer separator and credits wrap */
  .footer-sep { border: 0; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02)); margin: 18px 0 12px; }
  .footer-credits-wrap { display:flex; flex-direction:column; align-items:center; gap:6px; padding-bottom:8px; }

  /* Base WhatsApp FAB (mobile first) */
  .whatsapp-fab {
    position: fixed !important;
    right: 14px !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 14px) !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg,#25D366,#07A44D) !important;
    display: inline-grid !important;
    place-items: center !important;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(2,60,24,0.18) !important;
    z-index: 99999 !important;
    text-decoration: none !important;
  }
  .whatsapp-fab svg { width: 20px !important; height: 20px !important; display:block; }
  .whatsapp-fab img { max-width: 100% !important; height: auto !important; display:block; }

  @media (max-width: 420px) {
    .whatsapp-fab { right: 12px !important; bottom: 12px !important; width: 44px !important; height: 44px !important; }
    .whatsapp-fab svg { width: 18px !important; height: 18px !important; }
  }

  /* WhatsApp floating action button */
  .whatsapp-fab {
    position: fixed;
    right: 22px;
    bottom: 24px;
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: linear-gradient(180deg,#25D366,#07A44D);
    display: inline-grid;
    place-items: center;
    color: #fff;
    box-shadow: 0 18px 40px rgba(2,60,24,0.28);
    z-index: 9999;
    text-decoration: none;
  }
  .whatsapp-fab svg { width: 28px; height: 28px; }

  /* prevent footer decorative band from overlapping page content */
  main { margin-bottom: 0; }

  .grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-preview,
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .masonry-gallery {
    columns: 3;
  }

  .leadership-grid,
  .management-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    padding: 34px 20px 24px;
  }
}

@media (min-width: 768px) {
  section,
  .section {
    padding: 64px 0;
  }

  .container {
    padding: 0 20px;
  }

  .top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-container {
    padding: 10px 16px;
  }

  /* header defaults for light background */
  .nav-logo .logo-hindi { color: var(--primary); }
  .nav-logo .logo-english { color: var(--accent); }

  .nav-links li a { color: var(--text-dark); }
  .nav-links li a:hover, .nav-links li a.active { color: var(--accent); }

  .hamburger .bar { background: var(--text-dark); }

  .navbar.scrolled .nav-container {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .logo-icon {
    width: 72px;
    height: 72px;
    min-width: 72px;
  }

  .logo-hindi,
  .logo-english {
    max-width: none;
  }

  .hamburger {
    display: none;
  }

  .nav-actions { display: flex; }

  .nav-links {
    position: static;
    width: auto;
    max-height: none;
    flex-direction: row;
    gap: 4px;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .nav-links li {
    width: auto;
  }

  .nav-links li a {
    position: relative;
    padding: 10px 16px;
    border-left: none;
    border-radius: 8px;
    font-size: 1rem;
  }

  .nav-links li a::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease, left 0.3s ease;
  }

  .nav-links li a:hover::after,
  .nav-links li a.active::after {
    width: 70%;
    left: 15%;
  }

  /* make header stand out when scrolled */
  .navbar.scrolled { background: var(--light-bg); color: var(--text-dark); box-shadow: 0 22px 50px rgba(3,10,32,0.06); transform: translateY(0); border-bottom-color: var(--border); }

  /* adjust link/logo colors when header is light */
  .navbar.scrolled .nav-links li a { color: var(--text-dark); }
  .navbar.scrolled .nav-links li a:hover, .navbar.scrolled .nav-links li a.active { color: var(--accent); }
  .navbar.scrolled .nav-logo .logo-hindi { color: var(--primary); }
  .navbar.scrolled .nav-logo .logo-english { color: var(--accent); }
  .navbar.scrolled .hamburger .bar { background: var(--text-dark); }

  .navbar.scrolled .nav-cta { box-shadow: 0 10px 24px rgba(224,123,0,0.18); }

/* Footer decorative highlight and pill newsletter (appended) */
.site-footer { position: relative; overflow: visible; }
.site-footer::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 80px);
  height: 44px;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  box-shadow: 0 8px 22px rgba(3,10,32,0.22);
  pointer-events: none;
  z-index: 1;
}

.newsletter-row { align-items: center; }
.newsletter-pill { display: flex; max-width: 420px; width: 100%; background: rgba(255,255,255,0.02); border-radius: 999px; padding: 6px; gap: 6px; border: 1px solid rgba(255,255,255,0.04); }
.newsletter-pill input[type="email"] { flex:1; background: transparent; border: 0; padding: 12px 18px; color: rgba(255,255,255,0.92); border-radius: 999px; }
.newsletter-pill .btn-primary { flex: 0 0 auto; border-radius: 999px; padding: 10px 18px; box-shadow: 0 14px 36px rgba(224,123,0,0.18); }
.newsletter-pill input::placeholder { color: rgba(255,255,255,0.6); }

@media (max-width: 900px) {
  .site-footer::before { display: none; }
}

  .nav-cta { box-shadow: 0 18px 40px rgba(224,123,0,0.16); }

  .nav-links li a:hover,
  .nav-links li a.active {
    border-left: none;
    background: transparent;
    color: var(--accent);
  }

  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .principal-layout,
  .principal-section {
    grid-template-columns: minmax(14rem, 17.5rem) 1fr;
    align-items: start;
  }

  .hostel-layout,
  .development-layout,
  .affiliation-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
  }

  .contact-layout {
    grid-template-columns: 55fr 45fr;
  }

  .event-card {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }

  .photo-collage,
  .event-collage {
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: repeat(3, minmax(110px, 1fr));
    gap: 12px;
  }

  .photo-collage .photo-card:first-child,
  .event-collage .main-photo {
    grid-row: span 3;
  }

  .lightbox {
    padding: 30px;
  }

  .lightbox img {
    max-height: 86vh;
  }

  .lightbox-prev {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }

  .lightbox-next {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }
}

@media (min-width: 900px) {
  .leadership-grid,
  .management-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 34px;
    padding: 40px 24px 26px;
  }
}

@media (min-width: 1024px) {
  section,
  .section {
    padding: 80px 0;
  }

  .container {
    padding: 0 24px;
  }

  .nav-container {
    padding: 16px 24px;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .grid-6 {
    grid-template-columns: repeat(6, 1fr);
  }

  .gallery-preview,
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .masonry-gallery {
    columns: 4;
  }

  .gallery-preview .gallery-card:nth-child(1),
  .gallery-preview .gallery-card:nth-child(5),
  .gallery-grid .tall {
    grid-row: span 2;
  }

  .gallery-preview .gallery-card:nth-child(3),
  .gallery-grid .wide {
    grid-column: span 2;
  }
}

@media (min-width: 1280px) {
  .hero h1 {
    font-size: clamp(3rem, 4.6vw, 5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   UPGRADE 1 — EVENT MAGAZINE COLLAGE
   ═══════════════════════════════════════════════════════════ */

.event-magazine-collage {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: auto;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(13,31,60,0.22);
}

.collage-hero {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  position: relative;
  min-height: 420px;
}
.collage-hero img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.collage-hero:hover img {
  transform: scale(1.04);
}

.collage-stack {
  display: grid;
  grid-template-rows: 1.05fr 0.95fr 0.92fr;
  gap: 6px;
  background: #0d1f3c;
}

.collage-top-right,
.collage-newspaper,
.collage-bottom-right {
  margin: 0;
  position: relative;
  overflow: hidden;
}

.collage-top-right img,
.collage-newspaper img,
.collage-bottom-right img {
  width: 100%;
  height: 100%;
  min-height: 145px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.collage-bottom-right {
  min-height: 165px;
}

.collage-top-right:hover img,
.collage-bottom-right:hover img {
  transform: scale(1.06);
}

.collage-newspaper {
  position: relative;
}
.collage-newspaper img {
  filter: grayscale(18%) contrast(1.05);
}
.collage-newspaper:hover img {
  filter: grayscale(0%) contrast(1);
  transform: scale(1.04);
}
.newspaper-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(224,123,0,0.92);
  color: #fff;
  font-family: var(--font-hi);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 6px 12px;
  text-align: center;
  letter-spacing: 0.5px;
}

.collage-badge {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 80px;
  height: 80px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-hi);
  font-size: 0.7rem;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(224,123,0,0.45);
  z-index: 10;
  animation: pulse 2.4s ease-in-out infinite;
  text-align: center;
  line-height: 1.3;
}

@media (max-width: 600px) {
  .event-magazine-collage {
    grid-template-columns: 1fr;
  }
  .collage-hero {
    min-height: 240px;
  }
  .collage-hero img {
    min-height: 240px;
  }
  .collage-stack {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr;
  }
  .collage-badge {
    top: 8px;
    right: 8px;
    width: 60px;
    height: 60px;
    font-size: 0.6rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   UPGRADE 2 — FULL-WIDTH AUTO-SCROLL IMAGE STRIP
   ═══════════════════════════════════════════════════════════ */

.image-strip-section {
  width: 100%;
  overflow: hidden;
  padding: 0;
  background: var(--dark-bg);
  position: relative;
}

.image-strip-section::before,
.image-strip-section::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.image-strip-section::before {
  left: 0;
  background: linear-gradient(90deg, var(--dark-bg), transparent);
}
.image-strip-section::after {
  right: 0;
  background: linear-gradient(-90deg, var(--dark-bg), transparent);
}

.strip-track {
  display: flex;
  gap: 6px;
  width: max-content;
  animation: stripScroll 36s linear infinite;
  will-change: transform;
}

.strip-track:hover {
  animation-play-state: paused;
}

.strip-item {
  margin: 0;
  flex: 0 0 auto;
  width: 240px;
  height: 160px;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}
.strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: brightness(0.88) saturate(0.9);
}
.strip-item:hover img {
  transform: scale(1.08);
  filter: brightness(1) saturate(1.1);
}

@keyframes stripScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 600px) {
  .strip-item {
    width: 160px;
    height: 110px;
  }
}

/* ═══════════════════════════════════════════════════════════
   UPGRADE 3 — GALLERY: FEATURED BANNER
   ═══════════════════════════════════════════════════════════ */

.gallery-featured-banner {
  margin-bottom: 32px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(13,31,60,0.2);
}
.featured-hero-img {
  margin: 0;
  position: relative;
  height: clamp(220px, 40vw, 440px);
  cursor: pointer;
}
.featured-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}
.gallery-featured-banner:hover .featured-hero-img img {
  transform: scale(1.04);
}
.featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, 
    rgba(13,31,60,0.88) 0%, 
    rgba(13,31,60,0.5) 55%, 
    transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: clamp(18px, 4vw, 40px);
}
.featured-text {
  max-width: 580px;
}
.featured-tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 4px 14px;
  border-radius: 999px;
  font-family: var(--font-hi);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.featured-text h3 {
  margin: 0 0 8px;
  color: #fff;
  font-family: var(--font-hi);
  font-size: clamp(1.1rem, 3vw, 1.8rem);
  font-weight: 800;
  line-height: 1.3;
}
.featured-text p {
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-size: clamp(0.82rem, 2vw, 0.95rem);
}
.featured-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,0.28);
  color: #fff;
  flex-shrink: 0;
}
.count-number {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}
.count-label {
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0.8;
}
@media (max-width: 500px) {
  .featured-count { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   UPGRADE 3 — GALLERY: HORIZONTAL SCROLL ROWS
   ═══════════════════════════════════════════════════════════ */

.scroll-rows-section {
  margin-top: 48px;
  display: grid;
  gap: 40px;
}

.scroll-row-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

/* =====================
   Premium polish layer
   ===================== */

:root {
  --surface: #ffffff;
  --muted-ink: #6b7280;
  --card-bg: #ffffff;
  --glass: rgba(255,255,255,0.6);
}

/* Slightly narrower max-width for improved reading rhythm */
.container { max-width: 1200px; }

/* Buttons */
.btn { border-radius: 12px; font-weight: 700; padding: 10px 16px; }
.btn-primary { background: linear-gradient(90deg,var(--accent),var(--accent-light)); color: #fff; box-shadow: 0 10px 30px rgba(224,123,0,0.12); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(224,123,0,0.18); }
.btn-outline { border: 1px solid rgba(255,255,255,0.14); background: transparent; }

/* Cards and surfaces */
.card { background: var(--card-bg); border-radius: 12px; box-shadow: 0 10px 30px rgba(13,31,60,0.06); padding: 18px; }

.contact-hero.card {
  background: linear-gradient(135deg, rgba(10,28,55,0.98), rgba(26,58,107,0.96)) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 60px rgba(10,28,55,0.2);
  padding: clamp(24px, 4vw, 36px) !important;
}

.contact-hero.card .contact-hero-text h2,
.contact-hero.card .contact-hero-text p,
.contact-hero.card .contact-kicker,
.contact-hero.card .contact-badge,
.contact-hero.card .contact-badge strong,
.contact-hero.card .contact-badge small {
  color: #fff;
}

.contact-hero.card .contact-kicker {
  background: rgba(255,255,255,0.12);
}

.contact-hero.card .contact-badge {
  background: rgba(255,255,255,0.08);
}

.contact-hero.card .contact-badge:hover {
  background: rgba(255,255,255,0.14);
}

.contact-hero.card::after {
  background: radial-gradient(circle at center, rgba(255,255,255,0.18), transparent 70%);
}

.contact-form.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,253,0.98)) !important;
  border: 1px solid rgba(26,58,107,0.08);
  box-shadow: 0 18px 50px rgba(13,31,60,0.08);
}

/* Section headings */
.section-heading h2 { font-weight: 800; color: var(--dark-bg); margin-bottom: 6px; }
.section__title { font-weight: 800; color: var(--dark-bg); }
.subtitle { color: var(--muted-ink); }

/* Hero tweaks */
.hero::before { background: linear-gradient(115deg, rgba(6,24,48,0.55) 0%, rgba(10,28,55,0.45) 42%, rgba(10,28,55,0.08) 100%); }
.hero-content { padding: 18px 20px; }

/* Nav polish */
.navbar { background: rgba(250,250,252,0.98); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.navbar.scrolled { background: #ffffff; box-shadow: 0 8px 34px rgba(2,10,28,0.06); }
.nav-links a { padding: 12px 14px; border-radius: 8px; }
.nav-links a.active { color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); }

/* Footer premium */
.site-footer { background: linear-gradient(180deg,#0b2036 0%, #081425 100%); color: rgba(255,255,255,0.92); padding: 30px 0 12px; }
.footer-main .footer-grid { display: grid; grid-template-columns: 1.35fr 0.9fr 1fr; gap: 28px; align-items: start; }
.footer-logo { width: 64px; height: 64px; border-radius: 12px; box-shadow: 0 12px 40px rgba(2,10,28,0.4); }
.footer-links a, .footer-contact a { color: rgba(255,255,255,0.9); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.04); margin-top: 18px; padding: 10px 0 0; }

/* Responsive adjustments */
@media (max-width: 900px) {
  .footer-main .footer-grid { grid-template-columns: 1fr; }
  .nav-container { padding: 8px 12px; }
  .hero { min-height: 60svh; }
}

/* Academics page specific styles */
.stream-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.stream-card .card-footer { margin-top: 12px; }
.facility-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 14px; }
.facility-item h4 { margin: 0 0 6px; }
.facility-item p { margin: 0; color: var(--muted-ink); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .facility-grid { grid-template-columns: 1fr; }
}

  /* Fee cards and notes */
  .fee-download-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
    margin-top: 12px;
  }
  .fee-card { padding: 18px; display: flex; flex-direction: column; justify-content: space-between; }
  .fee-card-body { display: flex; gap: 12px; align-items: center; }
  .fee-icon { width: 64px; height: 64px; display: grid; place-items: center; font-size: 1.6rem; background: linear-gradient(180deg, rgba(224,123,0,0.12), rgba(224,123,0,0.06)); border-radius: 12px; }
  .fee-card h3 { margin: 0 0 6px; }
  .fee-card-actions { display: flex; gap: 12px; margin-top: 12px; }

  .note-box {
    background: linear-gradient(180deg, #fff7e6 0%, #fff3d9 100%);
    border: 1px solid rgba(224,123,0,0.18);
    padding: 18px;
    border-radius: 10px;
    margin-top: 18px;
    box-shadow: 0 8px 30px rgba(13,31,60,0.04);
  }
  .note-box strong { display:block; margin-bottom:8px; color: #b45b00 }

  @media (max-width: 880px) {
    .fee-download-section { grid-template-columns: 1fr; }
  }

/* Small utility to lift important sections */
.elevate { box-shadow: 0 20px 50px rgba(2,10,28,0.08); border-radius: 14px; }

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
.scroll-row-header h3 {
  flex: 1;
  margin: 0;
  color: var(--primary);
  font-family: var(--font-hi);
  font-size: clamp(1rem, 2.8vw, 1.3rem);
  font-weight: 800;
}
.scroll-row-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: none;
  transition: background 0.25s ease, transform 0.2s ease;
  line-height: 1;
}
.scroll-row-btn:hover {
  background: var(--accent);
  transform: scale(1.1);
}

.scroll-row-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  padding-bottom: 6px;
  scroll-behavior: smooth;
}
.scroll-row-track::-webkit-scrollbar {
  display: none;
}

.scroll-card {
  flex: 0 0 auto;
  width: clamp(200px, 36vw, 300px);
  height: clamp(140px, 25vw, 210px);
  scroll-snap-align: start;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(13,31,60,0.14);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.scroll-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.scroll-card figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 12px 10px;
  background: linear-gradient(0deg, rgba(13,31,60,0.85), transparent);
  color: #fff;
  font-family: var(--font-hi);
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.scroll-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 18px 48px rgba(13,31,60,0.22);
}
.scroll-card:hover img {
  transform: scale(1.07);
}
.scroll-card:hover figcaption {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   UPGRADE 4 — POLAROID WALL
   ═══════════════════════════════════════════════════════════ */

.polaroid-wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: 20px 10px;
}
@media (min-width: 600px) {
  .polaroid-wall { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .polaroid-wall { grid-template-columns: repeat(6, 1fr); gap: 14px; }
}

.polaroid {
  margin: 0;
  background: #fff;
  padding: 8px 8px 28px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15), 
              0 2px 6px rgba(0,0,0,0.1);
  border-radius: 2px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  position: relative;
}
.polaroid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.polaroid figcaption {
  text-align: center;
  margin-top: 10px;
  font-family: var(--font-hi);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.3;
}

.polaroid--tilt-left  { transform: rotate(-2.5deg); }
.polaroid--tilt-right { transform: rotate(2deg); }
.polaroid--straight   { transform: rotate(0deg); }

.polaroid:hover {
  transform: rotate(0deg) scale(1.1) translateY(-8px) !important;
  box-shadow: 0 24px 56px rgba(0,0,0,0.22);
  z-index: 10;
}

.polaroid::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 35% 35%, 
    #e07b00, #b45a00);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* ═══════════════════════════════════════════════════════════
   UPGRADE 5 — GLOBAL DECORATIVE IMPROVEMENTS
   ═══════════════════════════════════════════════════════════ */

.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin: 0;
  padding: 0;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: clamp(40px, 6vw, 80px);
}

.section--pattern {
  background-image: 
    radial-gradient(circle at 1px 1px, 
    rgba(26,58,107,0.06) 1px, transparent 0);
  background-size: 28px 28px;
  background-color: var(--light-bg);
}

.ribbon-label {
  position: absolute;
  top: 14px;
  left: -4px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-hi);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px 4px 10px;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
  z-index: 3;
  letter-spacing: 0.4px;
}

img {
  transition: opacity 0.4s ease;
}
img.loaded {
  opacity: 1;
}
