/* ============================================================
   SARVAJNA PU COLLEGE — PREMIUM UI UPGRADE
   Fonts: Cormorant Garamond (headings) + Outfit (body)
   ============================================================ */


/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Core palette */
  --primary:        #0D2157;   /* Deep Navy */
  --primary-mid:    #1A3A8F;   /* Mid Navy */
  --secondary:      #E9A21B;   /* Amber Gold */
  --secondary-dark: #C8881A;   /* Darker Gold for hover */
  --accent:         #8B1E3F;   /* Maroon */
  --accent-light:   #F4E8ED;

  /* Backgrounds */
  --bg:             #F5F7FC;
  --bg-card:        #FFFFFF;
  --bg-section-alt: #EEF2FA;
  --bg-dark:        #0A1840;

  /* Text */
  --text:           #1A1F36;
  --text-light:     #FFFFFF;
  --muted:          #6B7A99;
  --muted-dark:     #4A5472;

  /* Borders */
  --border:         #E0E7F5;

  /* Shadows */
  --shadow-xs:   0 1px 3px rgba(13,33,87,0.07);
  --shadow-sm:   0 4px 12px rgba(13,33,87,0.09);
  --shadow-md:   0 8px 24px rgba(13,33,87,0.12);
  --shadow-lg:   0 16px 40px rgba(13,33,87,0.16);
  --shadow-xl:   0 24px 60px rgba(13,33,87,0.20);

  /* Spacing scale */
  --sp-4:  4px;
  --sp-8:  8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-24: 24px;
  --sp-32: 32px;
  --sp-40: 40px;
  --sp-48: 48px;
  --sp-64: 64px;
  --sp-80: 80px;

  /* Border radius */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  18px;
  --r-xl:  24px;
  --r-full: 9999px;

  /* Transitions */
  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:  cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 20px;
  overflow-x: hidden;
  padding-bottom: 60px;
}

body.modal-open,
body.no-scroll {
  overflow: hidden;
}

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

a {
  color: inherit;
}

ul {
  list-style: none;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}

@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(233,162,27,0.45); }
  70%  { box-shadow: 0 0 0 12px rgba(233,162,27,0); }
  100% { box-shadow: 0 0 0 0 rgba(233,162,27,0); }
}

@keyframes scrollText {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

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

@keyframes popupFade {
  from { transform: scale(0.92) translateY(-10px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes notice-bounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.2); }
  70%  { transform: scale(0.92); }
  100% { transform: scale(1); }
}

/* Apply entrance animations to key containers */
/* Scroll-reveal: only animate when .is-visible is added by IntersectionObserver */
.section-title,
.section-subtitle {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.section-subtitle { transition-delay: 0.1s; }

.section-title.is-visible,
.section-subtitle.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.card,
.testimonial-card,
.about-card,
.feature-card,
.stream-card,
.contact-card,
.faculty-card,
.leader-card,
.stat-box,
.announcement-item,
.album-card,
.result-card,
.youtube-card,
.map-card,
.blog-card,
.step-card,
.info-card {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.card.is-visible,
.testimonial-card.is-visible,
.about-card.is-visible,
.feature-card.is-visible,
.stream-card.is-visible,
.contact-card.is-visible,
.faculty-card.is-visible,
.leader-card.is-visible,
.stat-box.is-visible,
.announcement-item.is-visible,
.album-card.is-visible,
.result-card.is-visible,
.youtube-card.is-visible,
.map-card.is-visible,
.blog-card.is-visible,
.step-card.is-visible,
.info-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children inside grid containers */
.cards .card:nth-child(1),
.testimonials-grid .testimonial-card:nth-child(1),
.about-cards .about-card:nth-child(1),
.features-grid .feature-card:nth-child(1),
.youtube-grid .youtube-card:nth-child(1),
.album-grid .album-card:nth-child(1) { transition-delay: 0.05s; }

.cards .card:nth-child(2),
.testimonials-grid .testimonial-card:nth-child(2),
.about-cards .about-card:nth-child(2),
.features-grid .feature-card:nth-child(2),
.youtube-grid .youtube-card:nth-child(2),
.album-grid .album-card:nth-child(2) { transition-delay: 0.13s; }

.cards .card:nth-child(3),
.testimonials-grid .testimonial-card:nth-child(3),
.about-cards .about-card:nth-child(3),
.features-grid .feature-card:nth-child(3),
.youtube-grid .youtube-card:nth-child(3),
.album-grid .album-card:nth-child(3) { transition-delay: 0.21s; }

.cards .card:nth-child(4),
.features-grid .feature-card:nth-child(4),
.album-grid .album-card:nth-child(4) { transition-delay: 0.29s; }

.cards .card:nth-child(5),
.album-grid .album-card:nth-child(5) { transition-delay: 0.35s; }

.cards .card:nth-child(6),
.album-grid .album-card:nth-child(6) { transition-delay: 0.40s; }


/* ============================================================
   TOP STRIP  (contact / audio bar)
   ============================================================ */
.topbar,
.top-strip,
.top-bar {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.92);
  font-size: 17px;
  font-weight: 400;
  padding: 7px var(--sp-24);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-16);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: relative;
  z-index: 1;
}

.topbar-left,
.top-bar-left,
.admission-text {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  flex-wrap: wrap;
}

.top-item {
  white-space: nowrap;
}

.top-divider {
  opacity: 0.4;
}

.topbar-audio,
.top-bar-right,
.audio-box,
.audio-wrapper {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.anthem-text {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--secondary);
}

.audio-btn,
.audio-play,
.audio-menu {
  background: var(--secondary);
  border: none;
  color: var(--primary);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.2s var(--ease), background 0.2s;
  flex-shrink: 0;
}

.audio-btn:hover,
.audio-play:hover,
.audio-menu:hover {
  background: #f5b800;
  transform: scale(1.12);
}

#audioSeek,
.top-audio {
  width: 120px;
  accent-color: var(--secondary);
  cursor: pointer;
}

#speedControl {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 3px 8px;
  border-radius: var(--r-sm);
  font-size: 16px;
  font-family: var(--font-body);
  cursor: pointer;
}

.audio-dropdown {
  position: absolute;
  top: 40px;
  right: 0;
  background: #fff;
  color: var(--primary);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  display: none;
  min-width: 150px;
  z-index: 99999;
  overflow: hidden;
  border: 1px solid var(--border);
}

.audio-dropdown div {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.2s;
}

.audio-dropdown div:hover {
  background: var(--secondary);
  color: var(--primary);
}

/* college-audio native element */
.college-audio,
.top-audio {
  height: 28px;
  width: 150px;
  background: transparent;
  accent-color: var(--secondary);
}

.college-audio::-webkit-media-controls-panel {
  background-color: var(--bg-dark);
}

.college-audio::-webkit-media-controls-play-button,
.college-audio::-webkit-media-controls-volume-slider,
.college-audio::-webkit-media-controls-timeline {
  filter: invert(1);
}


/* ============================================================
   COLLEGE HEADER (Logo + Name + Founder strip)
   ============================================================ */
.college-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--sp-48);
  padding: 40px var(--sp-56);
  min-height: 200px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.college-logo,
.header-logo {
  height: 150px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(13,33,87,0.12));
  transition: transform 0.3s var(--ease);
}

.college-logo:hover,
.header-logo:hover {
  transform: scale(1.04);
}

.left-logo img,
.right-logo img {
  height: 150px;
  width: auto;
}

.college-title-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 var(--sp-16);
  min-width: 0; /* allow text to shrink */
}

.trust-name {
  font-family: var(--font-display);
  font-size: clamp(13px, 1.4vw, 20px);
  font-weight: 700;
  color: var(--secondary);
  text-align: center;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 2px;
}

/* ── Location Line (Kalaburagi ✦ Raichur) ── */
.location-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 5px;
  font-family: var(--font-body);
  font-size: clamp(11px, 1.1vw, 15px);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
}
.loc-city {
  padding: 2px 10px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  color: #fff;
  font-size: clamp(9px, 0.95vw, 13px);
  letter-spacing: 1.8px;
  font-weight: 700;
  white-space: nowrap;
}
.loc-city--raichur {
  background: linear-gradient(135deg, var(--accent) 0%, #b52e55 100%);
  box-shadow: 0 2px 8px rgba(139,30,63,0.22);
}
.loc-sep {
  color: var(--secondary);
  font-size: clamp(8px, 0.8vw, 11px);
  line-height: 1;
  opacity: 0.85;
}

/* ── Raichur JSP note ── */
.raichur-jsp-note {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #f8f0f3 0%, #fff8ec 100%);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-md);
  padding: 12px 16px;
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: clamp(12px, 1.1vw, 14px);
  color: var(--text);
  line-height: 1.45;
}
.raichur-jsp-note strong {
  display: block;
  color: var(--primary);
  font-weight: 700;
  font-size: clamp(13px, 1.2vw, 15px);
  margin-bottom: 3px;
}
.raichur-jsp-note span { color: var(--muted-dark); }
.raichur-jsp-thumb {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid var(--accent);
  flex-shrink: 0;
}

.college-name,
.college-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  line-height: 1.3;
  letter-spacing: -0.3px;
  padding: 0;
}

.founder-photo {
  height: 150px;
  width: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--secondary);
  box-shadow: 0 4px 16px rgba(233,162,27,0.25);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.founder-photo:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 24px rgba(233,162,27,0.35);
}


/* ── Map Campus Label ── */
.map-campus-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 10px;
  padding: 6px 0 6px 4px;
  border-left: 4px solid var(--secondary);
}

.map-campus-wrapper {
  width: 100%;
}

.header-divider {
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--primary) 100%);
  width: 100%;
}


/* ============================================================
   SITE HEADER / NAVBAR (Sticky, Glass)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid rgba(13,33,87,0.10);
  padding: 0 var(--sp-24);
  display: flex;
  align-items: center;
  height: 64px;
  box-shadow: 0 2px 20px rgba(13,33,87,0.08);
  transition: box-shadow 0.3s;
}

.site-header:hover {
  box-shadow: 0 4px 28px rgba(13,33,87,0.12);
}

/* Legacy navbar */
.navbar {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  padding: 0 var(--sp-40);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(13,33,87,0.08);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  font-weight: 700;
  font-size: 22px;
  color: var(--primary);
  font-family: var(--font-display);
  text-decoration: none;
}

.logo img {
  height: 50px;
  width: auto;
}

/* Desktop Nav */
.desktop-nav,
.navbar nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.desktop-nav a,
.navbar nav a,
.nav-bar a {
  position: relative;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 18.5px;
  letter-spacing: 0.2px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.desktop-nav a::after,
.navbar nav a::after {
  content: none;
}

.desktop-nav a:hover,
.navbar nav a:hover,
.nav-bar a:hover {
  color: var(--primary);
  background: rgba(13,33,87,0.06);
  transform: none;
}

.desktop-nav a.active,
.navbar nav a.active {
  color: var(--primary);
  background: rgba(13,33,87,0.08);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.hamburger {
  font-size: 30px;
  cursor: pointer;
  user-select: none;
  color: var(--primary);
  padding: var(--sp-4) var(--sp-8);
  border-radius: var(--r-sm);
  transition: background 0.2s;
  line-height: 1;
}

.hamburger:hover {
  background: rgba(13,33,87,0.07);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: #fff;
  padding-top: 70px;
  box-shadow: 4px 0 40px rgba(0,0,0,0.18);
  z-index: 9999;
  border-right: 3px solid var(--secondary);
}

.mobile-menu a {
  display: block;
  padding: 14px 24px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 19px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
}

.mobile-menu a:hover {
  background: var(--bg-section-alt);
  color: var(--primary);
  padding-left: 32px;
}

/* NAV-BAR (legacy) */
.nav-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  padding: 0 var(--sp-40);
  background: #fff;
  height: 60px;
}

/* Exam notice button */
.exam-notice-btn,
.exam-notice-float {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--secondary);
  color: var(--primary);
  border-radius: var(--r-sm);
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  margin-left: var(--sp-8);
}

.exam-notice-btn:hover,
.exam-notice-float:hover {
  background: #f5c73a;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.exam-notice-btn:hover .exam-notice-icon,
.exam-notice-float:hover .exam-notice-icon {
  animation: notice-bounce 0.6s ease;
}

.exam-notice-icon {
  font-size: 19px;
  line-height: 1;
}

/* Header wrapper */
.nav-wrapper {
  background: #fff;
  position: relative;
  z-index: 20;
}

.header-strip {
  display: flex;
  width: 100%;
  overflow: visible;
}

.announcement-strip {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}


/* ============================================================
   ANNOUNCEMENT STRIP (marquee bar)
   ============================================================ */
.announcement-strip {
  width: 100%;
  background: var(--secondary);
  color: var(--primary);
  padding: 9px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.announcement-strip:hover .announcement-text {
  animation-play-state: paused;
}

.announcement-text {
  display: inline-block;
  padding-left: 100%;
  animation: scrollText 22s linear infinite;
  font-weight: 700;
  font-size: 17.5px;
  letter-spacing: 0.3px;
  color: var(--primary);
}

/* Legacy marquee announcement */
.announcement {
  background: var(--secondary);
  color: var(--primary);
  overflow: hidden;
  white-space: nowrap;
  font-weight: 700;
  padding: 9px 0;
}

.announcement-track {
  display: inline-block;
  padding: 0;
  animation: scroll-left 20s linear infinite;
}

@keyframes scroll-left {
  from { transform: translateX(100%); }
  to   { transform: translateX(-100%); }
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  background: var(--secondary);
  color: var(--primary);
  padding: 13px 32px;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.3px;
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s var(--ease-spring),
    box-shadow 0.2s var(--ease),
    background 0.2s;
  box-shadow: 0 4px 16px rgba(233,162,27,0.30);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.22) 0%, transparent 60%);
  border-radius: inherit;
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 10px 28px rgba(233,162,27,0.45);
  background: #F5B826;
}

.btn:active {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 4px 12px rgba(233,162,27,0.25);
}

.btn.outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.8);
  color: #fff;
  box-shadow: none;
}

.btn.outline:hover {
  background: rgba(255,255,255,0.12);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn.small {
  padding: 7px 16px;
  font-size: 17px;
  border-radius: var(--r-sm);
}

.back-btn,
.back-gallery-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  padding: 10px 20px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 18px;
  font-family: var(--font-body);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}

.back-btn:hover,
.back-gallery-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.youtube-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  background: #FF0000;
  color: #fff;
  font-weight: 700;
  font-size: 19px;
  border-radius: var(--r-md);
  text-decoration: none;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
  box-shadow: 0 6px 20px rgba(255,0,0,0.3);
}

.youtube-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255,0,0,0.4);
}


/* ============================================================
   HERO SECTIONS
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 90vh;
  min-height: 560px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 60%, #233E7A 100%),
              url('../images/campus.jpg') center/cover no-repeat;
  background-blend-mode: multiply;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--sp-24);
  color: #fff;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center bottom, rgba(233,162,27,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -1;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.45rem, 5vw, 4.05rem);
  font-weight: 700;
  margin-bottom: var(--sp-12);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  line-height: 1.18;
  letter-spacing: -0.5px;
  animation: fadeInUp 0.8s var(--ease-out) 0.1s both;
}

.hero p {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin-bottom: var(--sp-32);
  opacity: 0.92;
  max-width: 640px;
  animation: fadeInUp 0.8s var(--ease-out) 0.25s both;
}

.hero .btn {
  animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
  animation: fadeInUp 0.8s var(--ease-out) both;
}

/* Video Hero */
.video-hero {
  position: relative;
  height: 78vh;
  min-height: 480px;
  overflow: hidden;
  background: var(--primary);
}

.video-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,33,87,0.62) 0%,
    rgba(13,33,87,0.50) 50%,
    rgba(13,33,87,0.72) 100%
  );
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--sp-24);
  gap: var(--sp-16);
}

.video-overlay h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.85rem);
  font-weight: 700;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
  letter-spacing: -0.5px;
  line-height: 1.15;
  animation: fadeInUp 0.8s var(--ease-out) 0.1s both;
}

.video-overlay p {
  font-size: clamp(1.25rem, 1.8vw, 1.45rem);
  margin-bottom: var(--sp-8);
  opacity: 0.94;
  max-width: 600px;
  animation: fadeInUp 0.8s var(--ease-out) 0.25s both;
}

.video-overlay .btn {
  animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}


/* ============================================================
   SECTIONS (Generic)
   ============================================================ */
.section {
  padding: var(--sp-80) var(--sp-40);
  max-width: 1300px;
  margin: 0 auto;
}

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

section {
  padding: var(--sp-80) var(--sp-40);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.0rem, 3vw, 2.75rem);
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: var(--sp-48);
  letter-spacing: -0.5px;
  line-height: 1.2;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  border-radius: var(--r-full);
  margin: 14px auto 0;
}

.section-subtitle,
.about-intro {
  text-align: center;
  max-width: 720px;
  margin: -var(--sp-24) auto var(--sp-48);
  font-size: 20.5px;
  color: var(--muted-dark);
  line-height: 1.75;
}

.about-intro {
  font-size: 22px;
}


/* ============================================================
   CARDS (Generic)
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-24);
}

.card {
  background: var(--bg-card);
  padding: var(--sp-32);
  border-radius: var(--r-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

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

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: var(--sp-8);
  font-weight: 700;
}

.card p {
  color: var(--muted-dark);
  font-size: 19px;
  line-height: 1.65;
}

.card .emoji,
.card span[style*="font-size: 2.25rem"],
.card span[style*="font-size: 2.25rem"] {
  display: block;
  margin-bottom: var(--sp-12);
}


/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-32);
  padding: var(--sp-64) var(--sp-40);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  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='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stat-box {
  text-align: center;
  color: #fff;
  position: relative;
  min-width: 140px;
}

.stat-box h2 {
  font-family: var(--font-display);
  font-size: clamp(2.65rem, 5vw, 3.65rem);
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: var(--sp-4);
  line-height: 1.1;
}

.stat-box p {
  color: rgba(255,255,255,0.82);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.3px;
}


/* ============================================================
   FEATURE CARDS
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-24);
}

.feature-card {
  padding: var(--sp-24);
  background: var(--bg-card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  text-align: center;
  font-weight: 600;
  font-size: 19px;
  color: var(--text);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s, border-color 0.3s;
}

.feature-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(13,33,87,0.18);
}


/* ============================================================
   STREAM / COURSE CARDS
   ============================================================ */
.streams {
  display: flex;
  gap: var(--sp-32);
  justify-content: center;
  flex-wrap: wrap;
}

.stream-card {
  background: var(--bg-card);
  padding: var(--sp-32);
  border-radius: var(--r-xl);
  min-width: 270px;
  max-width: 340px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.stream-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
  transform-origin: left;
}

.stream-card:hover::after {
  transform: scaleX(1);
}

.stream-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
}


/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  color: white;
  padding: var(--sp-80) var(--sp-40);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 120%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(233,162,27,0.10) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  margin-bottom: var(--sp-12);
  font-weight: 700;
}

.cta-section p {
  margin-bottom: var(--sp-32);
  opacity: 0.88;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: var(--sp-16);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--sp-8);
}

.cta-buttons a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 13px 26px;
  background: var(--secondary);
  color: var(--primary);
  border-radius: var(--r-md);
  font-weight: 700;
  text-decoration: none;
  font-size: 19px;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(233,162,27,0.3);
}

.cta-buttons a:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(233,162,27,0.45);
}

.cta-section .btn {
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
}

.cta-section .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(233,162,27,0.45);
}


/* ============================================================
   FACULTY SECTION
   ============================================================ */
.faculty-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
  margin-bottom: var(--sp-32);
  justify-content: center;
}

.faculty-dept-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: var(--sp-32);
  padding-bottom: var(--sp-12);
  border-bottom: 3px solid var(--secondary);
  display: inline-block;
  width: 100%;
}

.faculty-tabs button {
  padding: 10px 22px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease-spring);
}

.faculty-tabs button:hover,
.faculty-tabs button.active {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.faculty-group {
  display: none;
}

.faculty-group.active {
  display: block;
}

.faculty-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-24);
}

.faculty-card {
  max-width: 300px;
  margin: auto;
  padding: var(--sp-24) var(--sp-16);
  background: var(--bg-card);
  border-radius: var(--r-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-12);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

.faculty-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.faculty-card img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  background: var(--bg);
  border-radius: var(--r-md);
  transition: transform 0.35s var(--ease);
}

.faculty-card:hover img {
  transform: scale(1.04);
}

.faculty-card h5 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--primary);
  font-weight: 700;
  margin: 0;
}

.designation {
  font-size: 17px;
  color: var(--muted);
  font-weight: 500;
}


/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
  background: var(--bg-section-alt);
  padding: var(--sp-80) var(--sp-40);
  text-align: center;
}

.testimonials-subtitle {
  max-width: 680px;
  margin: -var(--sp-24) auto var(--sp-48);
  font-size: 20.5px;
  color: var(--muted-dark);
  line-height: 1.7;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--sp-32);
  max-width: 1200px;
  margin: auto;
}

.testimonial-card {
  background: var(--bg-card);
  padding: var(--sp-40) var(--sp-32);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 12px;
  left: 24px;
  font-family: var(--font-display);
  font-size: 5.25rem;
  color: var(--secondary);
  opacity: 0.18;
  line-height: 1;
  pointer-events: none;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: var(--sp-16);
  margin-bottom: var(--sp-24);
}

.testimonial-header img {
  display: none;
}

.testimonial-text {
  font-size: 19.5px;
  color: var(--muted-dark);
  line-height: 1.8;
  margin-bottom: var(--sp-16);
  font-style: italic;
}

.testimonial-name {
  font-size: 19.5px;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-display);
}

.testimonial-role {
  font-size: 17.5px;
  color: var(--muted);
}


/* ============================================================
   ANNOUNCEMENT BOARD
   ============================================================ */
.announcement-board {
  background: var(--bg-section-alt);
  padding: var(--sp-80) var(--sp-40);
}

.announcement-board .section-title {
  text-align: center;
  margin-bottom: var(--sp-40);
}

.announcement-list {
  max-width: 960px;
  margin: auto;
  background: var(--bg-card);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.announcement-item {
  display: flex;
  align-items: center;
  gap: var(--sp-20);
  padding: 20px var(--sp-32);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: background 0.2s;
}

.announcement-item:last-child {
  border-bottom: none;
}

.announcement-item:hover {
  background: #F0F5FF;
  cursor: pointer;
}

.announcement-date {
  min-width: 110px;
  background: var(--primary);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: var(--r-md);
  text-align: center;
  flex-shrink: 0;
  font-family: var(--font-body);
  letter-spacing: 0.3px;
}

.announcement-item p {
  margin: 0;
  font-size: 19.5px;
  color: var(--text);
  flex: 1;
  line-height: 1.5;
}

.announcement-icon {
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.announcement-tag {
  font-size: 15.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--r-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.announcement-tag.pdf {
  background: #FFF0F0;
  color: #C62828;
}

.announcement-tag.form {
  background: #F0F9F0;
  color: #2E7D32;
}


/* ============================================================
   GALLERY
   ============================================================ */
.gallery-albums,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-40);
  margin-top: var(--sp-40);
}

.album-card {
  position: relative;
  height: 280px;
  border-radius: var(--r-xl);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s;
  background: var(--bg-card);
  text-decoration: none;
}

.album-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-xl);
}

.album-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}

.album-card:hover img {
  transform: scale(1.08);
}

.album-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13,33,87,0.85) 0%,
    rgba(13,33,87,0.45) 50%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: var(--sp-24);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.album-card:hover .album-overlay {
  opacity: 1;
}

.album-overlay h3,
.album-overlay span {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  text-align: center;
  padding: 0 var(--sp-16);
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.album-title {
  background: var(--primary);
  color: #fff;
  padding: var(--sp-16);
  text-align: center;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.3px;
}

/* Album header (inside album pages) */
.album-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-32) var(--sp-40) var(--sp-16);
}

/* Photo grid inside album */
.gallery-photos,
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-20);
}

.gallery-photos img,
.photo-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
  cursor: pointer;
}

.gallery-photos img:hover,
.photo-grid img:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-lg);
}

/* Full album grid */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--sp-24);
  padding: var(--sp-40);
}


/* ============================================================
   RESULTS GRID
   ============================================================ */
.results-grid {
  max-width: 1100px;
  margin: var(--sp-40) auto;
  padding: 0 var(--sp-24);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-32);
}

.result-card {
  position: relative;
  height: 310px;
  border-radius: var(--r-xl);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s;
}

.result-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.result-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.result-card:hover img {
  transform: scale(1.07);
}

.result-card::after {
  content: "🔍 View Result";
  position: absolute;
  inset: 0;
  background: rgba(13,33,87,0.58);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s;
  font-family: var(--font-body);
}

.result-card:hover::after {
  opacity: 1;
}


/* ============================================================
   YOUTUBE SECTION
   ============================================================ */
.youtube-section {
  background: var(--bg-section-alt);
  padding: var(--sp-80) var(--sp-40);
  text-align: center;
}

.youtube-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  color: var(--primary);
  font-weight: 700;
  margin-bottom: var(--sp-8);
}

.youtube-desc {
  max-width: 660px;
  margin: 0 auto var(--sp-40);
  color: var(--muted-dark);
  font-size: 20px;
  line-height: 1.7;
}

.youtube-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-24);
  max-width: 900px;
  margin: 0 auto var(--sp-40);
}

.youtube-card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
  aspect-ratio: 16/9;
  background: var(--primary);
}

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

.play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  color: #fff;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.3s;
}

.youtube-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.youtube-card:hover .play-icon {
  opacity: 1;
}


/* ============================================================
   ABOUT PAGE SPECIFICS
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-32);
}

.mission-list li,
.approach-list li,
.infra-list li {
  margin-bottom: var(--sp-8);
  padding-left: var(--sp-16);
  position: relative;
  font-size: 19.5px;
  color: var(--muted-dark);
  line-height: 1.65;
}

.mission-list li::before,
.approach-list li::before,
.infra-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: 700;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-32);
  margin-top: var(--sp-40);
}

.about-card {
  background: var(--bg-card);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s;
}

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

.about-card-body {
  padding: var(--sp-24);
  text-align: center;
}

.about-card-body h3 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-bottom: var(--sp-8);
  font-size: 1.45rem;
  font-weight: 700;
}

.about-card-body p {
  color: var(--muted-dark);
  font-size: 19px;
  line-height: 1.65;
}

.about-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

/* Leader cards */
.leader-card {
  max-width: 1180px;
  margin: var(--sp-48) auto 0;
  background: var(--bg-card);
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  gap: var(--sp-48);
  padding: var(--sp-40);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s;
  overflow: hidden;
  position: relative;
}

.leader-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

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

.leader-photo {
  flex-shrink: 0;
}

.leader-photo img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--r-xl);
  border: 4px solid var(--secondary);
  box-shadow: 0 8px 24px rgba(233,162,27,0.2);
  transition: transform 0.35s var(--ease);
  display: block;
}

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

.leader-message p {
  font-size: 20.5px;
  color: var(--muted-dark);
  line-height: 1.8;
  margin-bottom: var(--sp-16);
}

.leader-message h4,
.leader-message h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--primary);
  font-weight: 700;
}


/* ============================================================
   CONTACT
   ============================================================ */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-32);
  margin-top: var(--sp-32);
}

.contact-card {
  background: var(--bg-card);
  padding: var(--sp-32);
  border-radius: var(--r-xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
}

.contact-card p {
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.contact-card h3 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-bottom: var(--sp-12);
  font-size: 1.4rem;
  font-weight: 700;
}

.contact-form-map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-40);
  align-items: stretch;
  margin-top: var(--sp-40);
}

.contact-form-box {
  background: var(--bg-card);
  padding: var(--sp-40);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.contact-form-box h3 {
  font-family: var(--font-display);
  margin-bottom: var(--sp-24);
  color: var(--primary);
  font-size: 1.65rem;
  font-weight: 700;
}

.contact-form-box form input,
.contact-form-box form select,
.contact-form-box form textarea,
.modal-form input,
.modal-form textarea {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: var(--sp-16);
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  font-size: 18.5px;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.contact-form-box form input:focus,
.contact-form-box form select:focus,
.contact-form-box form textarea:focus,
.modal-form input:focus,
.modal-form textarea:focus {
  border-color: var(--primary-mid);
  box-shadow: 0 0 0 3px rgba(13,33,87,0.08);
  background: #fff;
}

.contact-form-box form textarea,
.modal-form textarea {
  resize: none;
  height: 90px;
}

.contact-form-box button {
  width: 100%;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  padding: 14px;
  font-weight: 700;
  font-size: 19px;
  border-radius: var(--r-md);
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(233,162,27,0.3);
}

.contact-form-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(233,162,27,0.4);
}

.contact-map-box {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.contact-map-box iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  display: block;
}

/* Contact section alt layout */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-24);
  padding: var(--sp-40) 0;
}

.map-box {
  width: 100%;
  height: 420px;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-inner {
  width: 100%;
  height: 100%;
}

.map-inner iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Contact CTA */
.contact-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  color: #fff;
  text-align: center;
  padding: var(--sp-48) var(--sp-24);
}

.contact-cta h3 {
  font-family: var(--font-display);
  font-size: 2.05rem;
  margin-bottom: var(--sp-24);
  font-weight: 700;
}

/* Contact-map-container */
.contact-map-container {
  display: flex;
  width: 100%;
  height: 70vh;
}

.map-box,
.contact-box {
  width: 50%;
  height: 100%;
}


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer,
footer {
  width: 100%;
  background: var(--bg-dark);
  color: rgba(255,255,255,0.88);
  padding: var(--sp-64) var(--sp-40) var(--sp-40);
  margin-top: 0;
  border-top: 3px solid var(--secondary);
  position: relative;
}

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

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: var(--sp-64);
  flex-wrap: wrap;
}

.site-footer h4,
footer h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: var(--sp-16);
  color: var(--secondary);
  letter-spacing: 0.3px;
  font-weight: 700;
}

.footer-links ul {
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  color: rgba(255,255,255,0.76);
  text-decoration: none;
  font-size: 18.5px;
  line-height: 2;
  transition: color 0.2s, padding-left 0.2s;
  display: block;
}

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

.footer-hours p {
  margin: 5px 0;
  font-size: 18.5px;
  color: rgba(255,255,255,0.76);
  line-height: 1.8;
}

.footer-copy {
  max-width: 1200px;
  margin: var(--sp-40) auto 0;
  text-align: center;
  font-size: 17px;
  color: rgba(255,255,255,0.52);
  padding-top: var(--sp-24);
  border-top: 1px solid rgba(255,255,255,0.08);
}


/* ============================================================
   ENQUIRY / MODAL
   ============================================================ */
.modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(10,24,64,0.65);
  backdrop-filter: blur(4px);
  /* display is controlled by JS inline style — do NOT set it here */
  justify-content: center;
  align-items: center;
  z-index: 100000 !important;
}

.modal-box {
  background: var(--bg-card);
  width: 90%;
  max-width: 900px;
  border-radius: var(--r-xl);
  overflow: hidden;
  animation: popupFade 0.38s var(--ease-out) both;
  position: relative;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(13,33,87,0.1);
  z-index: 100000 !important;
}

.modal-close {
  position: absolute;
  top: var(--sp-16);
  right: var(--sp-16);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 22px;
  cursor: pointer;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  z-index: 2;
  transition: background 0.2s, transform 0.2s;
}

.modal-close:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: rotate(90deg);
}

.modal-content {
  display: flex;
  min-height: 500px;
}

.modal-form {
  flex: 1;
  padding: var(--sp-40);
}

.modal-form h2 {
  font-family: var(--font-display);
  color: var(--primary);
  font-size: 1.95rem;
  font-weight: 700;
  margin-bottom: var(--sp-4);
}

.form-line {
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  border-radius: var(--r-full);
  margin: var(--sp-8) 0 var(--sp-24);
}

.modal-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
}

.modal-form span {
  color: var(--accent);
}

.modal-form input,
.modal-form textarea {
  width: 100%;
  padding: 11px 14px;
  margin-bottom: var(--sp-16);
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  font-family: var(--font-body);
  font-size: 18.5px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.modal-form input:focus,
.modal-form textarea:focus {
  border-color: var(--primary-mid);
  box-shadow: 0 0 0 3px rgba(13,33,87,0.09);
  background: #fff;
}

.modal-form textarea {
  resize: none;
  height: 90px;
}

.modal-image {
  flex: 1;
  background: var(--bg-section-alt);
  overflow: hidden;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ============================================================
   FLOATING BUTTONS (WhatsApp / YouTube)
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 90px;
  left: 20px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  box-shadow: 0 6px 20px rgba(37,211,102,0.45);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s;
  animation: pulseRing 2.5s infinite;
  text-decoration: none;
}

.whatsapp-float img {
  width: 32px;
  height: 32px;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 28px rgba(37,211,102,0.55);
  animation: none;
}

.whatsapp-float:active,
.whatsappfloat:active {
  transform: scale(0.96);
}

.youtube-float {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #FF0000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  box-shadow: 0 6px 20px rgba(255,0,0,0.4);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s;
}

.youtube-float img {
  width: 32px;
  height: 32px;
}

.youtube-float:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 28px rgba(255,0,0,0.5);
}

/* whatsappfloat (typo variant in HTML) */
.whatsappfloat {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(37,211,102,0.4);
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
}

.whatsappfloat img {
  width: 32px;
  height: 32px;
}

.whatsappfloat:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 22px rgba(37,211,102,0.5);
}


/* ============================================================
   JSP QUOTE STRIP (Bottom Fixed)
   ============================================================ */
.jsp-quote-strip {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #B91C1C;
  color: #fff;
  height: 44px;
  overflow: hidden;
  z-index: 9999;
  display: flex;
  align-items: center;
  border-top: 3px solid var(--secondary);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
}

.jsp-quote-track {
  display: inline-flex;
  white-space: nowrap;
  animation: scrollQuotes 75s linear infinite;
}

.jsp-quote-track span {
  padding: 0 56px;
  font-size: 18.5px;
  font-weight: 500;
  letter-spacing: 0.3px;
  opacity: 0.96;
}


/* ============================================================
   LIGHTBOX
   ============================================================ */
#global-lightbox,
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.96);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
}

#global-lightbox img,
#lightbox-img,
#gl-img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: var(--r-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,0.8);
}

.gl-close,
.close-btn,
#gl-close {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 44px;
  color: rgba(255,255,255,0.88);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
}

.gl-close:hover,
.close-btn:hover,
#gl-close:hover {
  color: var(--secondary);
  transform: rotate(90deg);
}

.gl-arrow,
.nav-arrow,
.nav-btn,
#gl-prev,
#gl-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 60px;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  user-select: none;
  padding: var(--sp-12);
  transition: color 0.2s, transform 0.2s;
}

.gl-arrow:hover,
.nav-arrow:hover,
.nav-btn:hover,
#gl-prev:hover,
#gl-next:hover {
  color: var(--secondary);
  transform: translateY(-50%) scale(1.1);
}

.gl-arrow.left,
.nav-arrow.left,
.nav-btn.left,
#gl-prev { left: 24px; }

.gl-arrow.right,
.nav-arrow.right,
.nav-btn.right,
#gl-next { right: 24px; }

.back-gallery {
  position: absolute;
  top: 20px;
  left: 30px;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 21px;
  background: rgba(0,0,0,0.5);
  padding: 7px 14px;
  border-radius: var(--r-md);
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}

.back-gallery:hover {
  background: rgba(0,0,0,0.75);
}


/* ============================================================
   PROFILE & STUDENT DASHBOARD
   ============================================================ */
.profile-card {
  max-width: 420px;
  margin: auto;
  padding: var(--sp-32);
  background: var(--bg-card);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  text-align: center;
}

.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--sp-16);
  border: 3px solid var(--primary);
  box-shadow: var(--shadow-md);
}

.profile-table {
  width: 100%;
  margin-top: var(--sp-16);
  border-collapse: collapse;
}

.profile-table th {
  text-align: left;
  padding: 8px 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 18px;
}

.profile-table td {
  text-align: right;
  color: var(--text);
  font-size: 19px;
}

.att-percent {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
}

.att-days {
  font-size: 17px;
  color: var(--muted);
}

.admin-actions {
  display: flex;
  gap: var(--sp-16);
  margin-bottom: var(--sp-24);
  flex-wrap: wrap;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--sp-16);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.admin-table th,
.admin-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 18.5px;
}

.admin-table th {
  background: var(--bg-section-alt);
  font-weight: 700;
  color: var(--primary);
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: var(--bg-section-alt);
}


/* ============================================================
   MISC / UTILITY
   ============================================================ */
.hidden {
  display: none;
}

.section-subtitle {
  text-align: center;
  color: var(--muted-dark);
  margin-bottom: var(--sp-40);
  font-size: 20px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Large screens: constrain max widths */
@media (min-width: 993px) {
  .mobile-nav,
  .mobile-menu {
    display: none !important;
  }

  .desktop-nav {
    display: flex;
  }
}

/* Tablet & small desktop */
@media (max-width: 1200px) {
  .header-strip {
    flex-direction: column;
  }

  .footer-content {
    gap: var(--sp-40);
    justify-content: flex-start;
  }
}

/* Tablet */
@media (max-width: 992px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: flex;
    width: 100%;
  }

  .college-header {
    gap: var(--sp-24);
    padding: 28px var(--sp-32);
    min-height: 160px;
  }

  .gallery-albums,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-map {
    grid-template-columns: 1fr;
  }

  .leader-card {
    flex-direction: column;
    text-align: center;
    padding: var(--sp-32);
  }

  .leader-photo img {
    width: 240px;
    height: 240px;
  }

  .contact-map-container {
    flex-direction: column;
    height: auto;
  }

  .map-box,
  .contact-box {
    width: 100%;
  }

  .map-box {
    height: 300px;
  }

  .contact-section {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --sp-40: 24px;
    --sp-80: 48px;
    --sp-64: 40px;
  }

  body {
    font-size: 19px;
  }

  .topbar,
  .top-strip,
  .top-bar {
    flex-direction: column;
    gap: var(--sp-8);
    text-align: center;
    padding: var(--sp-12) var(--sp-16);
    font-size: 16px;
  }

  #audioSeek {
    width: 100px;
  }

  .college-header {
    grid-template-columns: auto 1fr auto;
    gap: var(--sp-16);
    padding: 24px var(--sp-24);
    min-height: 140px;
  }

  .college-title-wrapper {
    flex-direction: column;
    gap: 3px;
    padding: 0 8px;
    min-width: 0;
  }

  .college-logo,
  .header-logo,
  .left-logo img,
  .right-logo img {
    height: 110px;
  }

  .college-name,
  .college-title {
    font-size: clamp(16px, 2.8vw, 32px);
  }

  .trust-name {
    font-size: clamp(10px, 1.5vw, 15px);
    letter-spacing: 1px;
  }

  .location-line {
    font-size: clamp(9px, 2.2vw, 12px);
    gap: 5px;
    margin-top: 4px;
  }

  .loc-city {
    font-size: clamp(8px, 1.8vw, 11px);
    padding: 2px 7px;
    letter-spacing: 1.2px;
  }

  .founder-photo {
    height: 110px;
    width: 110px;
  }

  .site-header {
    padding: 0 var(--sp-16);
  }

  section,
  .section {
    padding: var(--sp-48) var(--sp-16);
  }

  .section-title {
    font-size: clamp(1.65rem, 5vw, 2.15rem);
  }

  .hero {
    height: 76vh;
  }

  .hero h1 {
    font-size: 2.15rem;
  }

  .video-hero {
    height: 65vh;
  }

  .video-overlay h1 {
    font-size: 2.05rem;
  }

  .stats-section {
    padding: var(--sp-48) var(--sp-16);
    gap: var(--sp-24);
  }

  .stat-box h2 {
    font-size: 2.45rem;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: var(--sp-16);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-24);
  }

  .testimonials-section {
    padding: var(--sp-48) var(--sp-16);
  }

  .announcement-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-8);
    padding: var(--sp-16) var(--sp-16);
  }

  .announcement-date {
    min-width: auto;
  }

  .gallery-albums,
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-24);
  }

  .album-card {
    height: 240px;
  }

  .album-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    padding: var(--sp-24) var(--sp-16);
    gap: var(--sp-16);
  }

  .results-grid {
    grid-template-columns: 1fr;
    padding: 0 var(--sp-16);
    gap: var(--sp-20);
  }

  .result-card {
    height: 240px;
  }

  .youtube-section {
    padding: var(--sp-48) var(--sp-16);
  }

  .youtube-grid {
    grid-template-columns: 1fr;
  }

  .youtube-title {
    font-size: 1.85rem;
  }

  .contact-cards {
    grid-template-columns: 1fr;
    gap: var(--sp-16);
  }

  .contact-form-map {
    grid-template-columns: 1fr;
    gap: var(--sp-24);
  }

  .modal-content {
    flex-direction: column;
  }

  .modal-image {
    display: none;
  }

  .modal-form {
    padding: var(--sp-24) var(--sp-20);
  }

  .footer-content {
    gap: var(--sp-32);
    text-align: center;
    flex-direction: column;
    align-items: center;
  }

  .site-footer,
  footer {
    padding: var(--sp-48) var(--sp-16) var(--sp-32);
  }

  .exam-notice-float {
    top: 120px;
    left: 10px;
    width: 155px;
    height: 40px;
    font-size: 17px;
  }

  .whatsapp-float {
    bottom: 110px;
    left: 16px;
  }

  .streams {
    flex-direction: column;
    align-items: center;
  }

  .stream-card {
    min-width: 100%;
    max-width: 100%;
  }

  .about-cards {
    grid-template-columns: 1fr;
  }

  .faculty-cards {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .leader-card {
    gap: var(--sp-24);
    padding: var(--sp-24);
  }

  .leader-photo img {
    width: 200px;
    height: 200px;
  }

  .two-col {
    grid-columns: 1fr;
  }

  .header-strip {
    flex-direction: column;
  }

  .nav-bar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 12px var(--sp-16);
    font-size: 18px;
  }

  .announcement-strip {
    white-space: nowrap;
    overflow: hidden;
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--sp-16);
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* Very small */
@media (max-width: 480px) {
  /* Single-row header: logo | text | founder — never stacks */
  .college-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto;
    align-items: center;
    justify-items: center;
    gap: 6px 8px;
    padding: 12px 10px;
    min-height: unset;
  }

  .college-logo,
  .header-logo {
    grid-column: 1;
    grid-row: 1;
    height: 60px;
    width: auto;
    flex-shrink: 0;
  }

  .college-title-wrapper {
    grid-column: 2;
    grid-row: 1;
    flex-direction: column;
    gap: 2px;
    padding: 0 2px;
    align-items: center;
    min-width: 0;
    width: 100%;
  }

  /* TRUST NAME — always TOP */
  .trust-name {
    order: 1;
    font-size: clamp(7px, 2.2vw, 11px);
    letter-spacing: 0.5px;
    margin-bottom: 0;
    white-space: nowrap;
  }

  /* COLLEGE TITLE — always MIDDLE */
  .college-title,
  .college-name {
    order: 2;
    font-size: clamp(9px, 3.2vw, 15px);
    line-height: 1.2;
    text-align: center;
    padding: 0;
    font-weight: 700;
    word-break: break-word;
    hyphens: auto;
  }

  /* LOCATION LINE — always BOTTOM */
  .location-line {
    order: 3;
    font-size: clamp(6px, 1.9vw, 10px);
    gap: 3px;
    margin-top: 2px;
    white-space: nowrap;
  }

  .loc-city {
    font-size: clamp(6px, 1.7vw, 9px);
    padding: 1px 5px;
    letter-spacing: 0.8px;
  }

  .loc-sep { font-size: 6px; }

  .founder-photo {
    grid-column: 3;
    grid-row: 1;
    height: 60px;
    width: 60px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    flex-shrink: 0;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .video-overlay h1 {
    font-size: 1.75rem;
  }

  .nav-bar {
    font-size: 17px;
    gap: 6px;
  }

  .album-grid {
    grid-template-columns: 1fr 1fr;
    padding: var(--sp-16) var(--sp-12);
    gap: var(--sp-12);
  }
}

/* ============================================================
   FONT STABILITY — prevent layout shifts while web fonts load
   ============================================================ */

/* Size-adjust fallbacks so system fonts don't cause layout shift
   when Outfit/Cormorant Garamond loads in */
@font-face {
  font-family: 'Outfit-fallback';
  src: local('Arial'), local('Helvetica Neue'), local('sans-serif');
  size-adjust: 100%;
  ascent-override: 95%;
  descent-override: 25%;
  line-gap-override: normal;
}

/* Ensure no CLS from font loading on critical layout elements */
.college-header,
.site-header,
.topbar {
  min-height: 0; /* already set, but ensures no jump */
  contain: layout style;
}

/* Prevent invisible-text flash on slow connections —
   already handled by display=swap in Google Fonts URL */

/* ============================================================
   RESPONSIVE ENHANCEMENTS — ALL DEVICES (added fixes)
   ============================================================ */

/* ── Topbar: stack cleanly on small screens ── */
@media (max-width: 600px) {
  .topbar, .top-strip, .top-bar {
    flex-direction: column;
    gap: 6px;
    padding: 8px 14px;
    font-size: 14px;
    text-align: center;
  }
  .topbar-audio {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
  }
  #audioSeek { width: 80px; }
  .anthem-text { font-size: 13px; }
  #speedControl { font-size: 13px; padding: 2px 4px; }
}

/* ── College header title: never overflow ── */
.college-title, .college-name {
  word-break: break-word;
  hyphens: auto;
  text-align: center;
}

/* ── Video Hero: proper ratio on all screens ── */
.video-hero {
  position: relative;
  overflow: hidden;
  background: #0d2157;
}
@media (max-width: 768px) {
  .video-hero { height: 56vw; min-height: 260px; max-height: 70vh; }
}
@media (max-width: 480px) {
  .video-hero { height: 62vw; min-height: 220px; }
  .video-overlay h1 { font-size: clamp(1.2rem, 5.5vw, 2rem); }
  .video-overlay p  { font-size: clamp(0.85rem, 3vw, 1.1rem); }
}

/* ── Announcement notice cards on mobile ── */
.announcement-highlight {
  flex-direction: row !important;
}
@media (max-width: 560px) {
  .announcement-highlight {
    flex-direction: column !important;
    padding: 20px 18px !important;
    gap: 12px !important;
  }
  .announcement-highlight div[style*="font-size:2.4rem"] { font-size: 2rem !important; }
  .announcement-highlight p[style*="font-size:1.22rem"] { font-size: 1.05rem !important; }
  .announcement-highlight div[style*="margin-top:16px"] {
    flex-direction: column !important;
  }
  .announcement-highlight button,
  .announcement-highlight a[href="contact"] {
    width: 100%;
    text-align: center;
  }
}

/* ── Infrastructure single card: full width on all devices ── */
.infra-single-card {
  max-width: 540px;
  margin: 40px auto 0;
  width: 100%;
}
@media (max-width: 600px) {
  .infra-single-card { max-width: 100%; margin-top: 24px; }
}

/* ── About cards: don't shrink image too much ── */
.about-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
@media (max-width: 480px) {
  .about-card img { height: 180px; }
}

/* ── Cards grid: single column on mobile ── */
@media (max-width: 560px) {
  .cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ── Section padding tighter on small phones ── */
@media (max-width: 380px) {
  section, .section { padding: 32px 12px; }
  .section-title { font-size: 1.5rem; }
  .hero h1 { font-size: 1.6rem; }
  .btn {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
}

/* ── Mobile menu full-width links ── */
.mobile-menu a {
  padding: 14px 20px;
  font-size: 1rem;
  display: block;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* ── Modal: full screen on phones ── */
@media (max-width: 520px) {
  .modal-box {
    width: 96%;
    border-radius: 16px;
    max-height: 92vh;
    overflow-y: auto;
  }
  .modal-form { padding: 24px 16px; }
  .modal-form h2 { font-size: 1.5rem; }
  .modal-image { display: none; }
}

/* ── Footer: always stacked on mobile ── */
@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
  }
  .footer-links ul { padding: 0; list-style: none; }
}

/* ── JSP Quotes strip: bigger text on wide screens ── */
.jsp-quote-strip { overflow: hidden; }
.jsp-quote-track span { white-space: nowrap; }
@media (max-width: 480px) {
  .jsp-quote-track { font-size: 0.88rem; }
}

/* ── Stat boxes: wrap properly ── */
@media (max-width: 480px) {
  .stats-section {
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
  }
  .stat-box { min-width: 120px; flex: 1 1 120px; }
}

/* ── Floating buttons: don't overlap on very small phones ── */
@media (max-width: 380px) {
  .whatsapp-float { left: 10px; bottom: 80px; width: 48px; height: 48px; }
  .youtube-float  { right: 10px; bottom: 80px; width: 48px; height: 48px; }
}

/* ── Leader / people cards: stack on tablet ── */
@media (max-width: 768px) {
  .leader-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ── Courses/streams: always responsive ── */
@media (max-width: 600px) {
  .streams {
    flex-direction: column;
    align-items: stretch;
  }
  .stream-card { width: 100%; max-width: 100%; }
}

/* ── Table / results grid ── */
@media (max-width: 560px) {
  .results-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 12px;
  }
  .result-card { height: 200px; }
}

/* ── Gallery albums: 1 column on phones ── */
@media (max-width: 480px) {
  .gallery-albums { grid-template-columns: 1fr; }
  .album-card { height: 220px; }
}

/* ── Announcement board on mobile ── */
@media (max-width: 560px) {
  .announcement-board { padding: 32px 12px; }
}

/* Modal image — JSP photo specific fix */
.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ============================================================
   UI POLISH v3 — All devices
   ============================================================ */

/* ── Body bottom padding so quote strip doesn't overlap content ── */
body { padding-bottom: 48px; }

/* ── Topbar — clean on all sizes ── */
@media (max-width: 640px) {
  .topbar { font-size: 13px; padding: 6px 12px; flex-wrap: wrap; gap: 4px; }
  .topbar-left { font-size: 13px; }
  .anthem-text { font-size: 12px; }
  #audioSeek { width: 70px; }
}

/* ── College header — never overflow on narrow phones ── */
.college-title { font-size: clamp(14px,3.2vw,28px); line-height: 1.3; }

/* ── Desktop nav — wrap if needed, never overflow ── */
.desktop-nav { flex-wrap: wrap; gap: 4px; }
.desktop-nav a { white-space: nowrap; font-size: clamp(13px,1.2vw,16px); }

/* ── Mobile menu — readable link sizes ── */
.mobile-menu a { font-size: 1rem; padding: 13px 20px; }

/* ── Announcement strip text size ── */
.announcement-strip { font-size: clamp(13px, 2vw, 16px); }

/* ── Section title — fluid ── */
.section-title { font-size: clamp(1.45rem, 4vw, 2.4rem); }

/* ── Cards grid ── */
.cards { display: grid; gap: var(--sp-24); }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); } }
@media (max-width: 639px) { .cards { grid-template-columns: 1fr; gap: 16px; } }

/* ── About cards on tablet ── */
@media (min-width: 640px) and (max-width: 900px) {
  .about-cards { grid-template-columns: 1fr 1fr; }
}

/* ── Video overlay text ── */
.video-overlay h1 { font-size: clamp(1.2rem, 4.5vw, 2.6rem); }
.video-overlay p  { font-size: clamp(0.85rem, 2.5vw, 1.2rem); }

/* ── Modal: proper height & scroll on short phones ── */
.modal-box { max-height: 96vh; overflow-y: auto; }
@media (max-width: 520px) {
  .modal-box { width: 97%; border-radius: 14px; }
  .modal-form { padding: 20px 14px; }
  .modal-form h2 { font-size: 1.35rem; }
  .modal-form input, .modal-form textarea { font-size: 16px; } /* prevents zoom on iOS */
}

/* ── Modal image: always cover & center JSP photo ── */
.modal-image { overflow: hidden; }
.modal-image img { width:100%; height:100%; object-fit:cover; object-position:top center; }

/* ── Footer ── */
@media (max-width: 600px) {
  .footer-content { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
  .footer-links ul { padding: 0; }
  .footer-copy { font-size: 0.85rem; padding: 0 16px; text-align: center; }
}

/* ── Floating buttons — don't overlap on small screens ── */
@media (max-width: 400px) {
  .whatsapp-float { width: 46px; height: 46px; bottom: 70px; left: 12px; }
  .youtube-float  { width: 46px; height: 46px; bottom: 70px; right: 12px; }
}

/* ── Quote strip — proper font size on all screens ── */
.jsp-quote-strip { z-index: 9998; }
.jsp-quote-track span { font-size: clamp(13px, 2vw, 18.5px); padding: 0 40px; }

/* ── Gallery grid — responsive ── */
.gallery-grid { display: grid; gap: 20px; padding: 24px; }
@media (min-width: 900px)  { .gallery-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 560px) and (max-width: 899px) { .gallery-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 559px)  { .gallery-grid { grid-template-columns: 1fr; } }

.album-card { border-radius: 14px; overflow: hidden; position: relative; height: 220px; display: block; box-shadow: 0 8px 24px rgba(13,33,87,.13); }
.album-card img { width:100%; height:100%; object-fit:cover; transition: transform .4s ease; }
.album-card:hover img { transform: scale(1.05); }
.album-overlay { position:absolute; inset:0; background:linear-gradient(to top, rgba(13,33,87,.75) 0%, transparent 60%); display:flex; align-items:flex-end; padding:16px 18px; }
.album-overlay span { color:#fff; font-size:1.1rem; font-weight:700; font-family:'Cormorant Garamond',serif; letter-spacing:.3px; }
@media (max-width:480px) { .album-card { height: 185px; } }

/* ── Blog page ── */
.blog-body { max-width: 820px; }
@media (max-width: 480px) {
  .blog-pillars { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pillar-card { padding: 14px 10px; }
}

/* ============================================================
   ANALYTICS HIDDEN PANEL
   ============================================================ */
#analytics-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10,24,64,0.72);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#analytics-panel.analytics-open {
  display: flex;
}
.analytics-inner {
  background: #fff;
  border-radius: 20px;
  padding: 28px 28px 20px;
  width: 100%;
  max-width: 540px;
  box-shadow: 0 24px 60px rgba(13,33,87,0.30);
  font-family: var(--font-body);
}
.analytics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}
.analytics-close {
  background: var(--bg);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 14px;
  color: var(--muted-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.analytics-close:hover { background: var(--border); }
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.analytics-stat {
  background: var(--bg);
  border-radius: 12px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.an-num {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.an-label {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  text-align: center;
}
.analytics-chart-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.analytics-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 90px;
  background: var(--bg);
  border-radius: 12px;
  padding: 10px 12px 28px;
  position: relative;
  margin-bottom: 16px;
}
.an-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  position: relative;
}
.an-bar-fill {
  width: 100%;
  min-height: 4px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  transition: height 0.5s var(--ease);
}
.an-bar-val {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  position: absolute;
  bottom: 18px;
  text-align: center;
  width: 100%;
}
.an-bar-date {
  font-size: 9px;
  color: var(--muted);
  position: absolute;
  bottom: 2px;
  text-align: center;
  width: 100%;
  font-weight: 600;
}
.analytics-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--muted);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.an-reset-btn {
  background: var(--accent-light);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  transition: background 0.2s;
}
.an-reset-btn:hover { background: var(--accent); color: #fff; }

/* hint cursor on footer */
#footer-copy-trigger { cursor: default; user-select: none; }

/* Analytics responsive */
@media (max-width: 480px) {
  .analytics-inner { padding: 20px 16px 16px; }
  .analytics-grid { grid-template-columns: repeat(2, 1fr); }
  .an-num { font-size: 1.3rem; }
  .analytics-chart { height: 70px; }
}

/* ============================================================
   v2 FIXES
   ============================================================ */

/* Fix 1 — Location line: same font as trust-name, bold, primary colour */
.location-line {
  font-family: var(--font-display) !important;
  font-size: clamp(13px, 1.4vw, 20px) !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
  text-align: center;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.2;
  margin-top: 4px;
}
/* Remove old pill styles if any survive */
.loc-city, .loc-sep, .loc-city--raichur { display: none !important; }

/* Fix 2 — Side-by-side maps grid */
.maps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
}
@media (max-width: 768px) {
  .maps-grid { grid-template-columns: 1fr; gap: 20px; }
}
.map-card {
  display: flex;
  flex-direction: column;
}
.map-frame {
  width: 100%;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(13,33,87,0.12);
  border: 3px solid var(--border);
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .map-frame { height: 260px; }
}
.map-card-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
  text-align: center;
  margin-top: 10px;
  padding: 0 4px;
  line-height: 1.4;
}

/* Fix 3 — 🌐 globe analytics button in footer */
.analytics-globe-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  opacity: 0.55;
  margin-left: 10px;
  padding: 2px 4px;
  border-radius: 4px;
  vertical-align: middle;
  transition: opacity 0.2s, transform 0.2s;
  line-height: 1;
}
.analytics-globe-btn:hover { opacity: 1; transform: scale(1.2); }

/* Fix 3 — Password gate modal */
#analytics-gate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(10,24,64,0.75);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#analytics-gate.gate-open { display: flex; }
.gate-box {
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px 28px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 24px 60px rgba(13,33,87,0.28);
  font-family: var(--font-body);
  text-align: center;
}
.gate-icon { font-size: 2.4rem; margin-bottom: 12px; line-height: 1; }
.gate-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.gate-sub { font-size: 0.88rem; color: var(--muted); margin-bottom: 20px; }
.gate-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  text-align: center;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.gate-input:focus { border-color: var(--primary); }
.gate-error {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.gate-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.gate-cancel {
  flex: 1;
  padding: 11px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--muted-dark);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s;
}
.gate-cancel:hover { border-color: var(--primary); color: var(--primary); }
.gate-submit {
  flex: 1;
  padding: 11px;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.gate-submit:hover { background: var(--primary-mid); }
@media (max-width: 420px) {
  .gate-box { padding: 28px 20px 22px; }
  .gate-actions { flex-direction: column; }
}

/* ============================================================
   HEADER LAYOUT — ABSOLUTE LOCK (grid-area, cannot be overridden)
   Row 1 (top)    = Kayaka Education Trust   (.trust-name)
   Row 2 (centre) = College Name              (.college-title / .college-name)
   Row 3 (bottom) = KALABURAGI & RAICHUR     (.location-line)
   Outer grid: [left-logo] [text-block] [right-photo] — always one row
   ============================================================ */

/* ── Outer 3-column grid: logos on sides, text in centre ── */
.college-header {
  display:               grid !important;
  grid-template-columns: auto 1fr auto !important;
  grid-template-rows:    auto !important;
  align-items:           center !important;
}

/* ── Inner text block: 3 named rows, top→middle→bottom, never flex ── */
.college-title-wrapper {
  display:               grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows:    auto auto auto !important;
  grid-template-areas:   "trust" "title" "location" !important;
  justify-items:         center !important;
  align-content:         center !important;
  gap:                   3px 0 !important;
  padding:               0 8px !important;
  min-width:             0 !important;
  width:                 100% !important;
}

/* Each element pinned to its named row — nothing can move it */
.college-title-wrapper > .trust-name {
  grid-area: trust !important;
}
.college-title-wrapper > .college-title,
.college-title-wrapper > .college-name {
  grid-area: title !important;
}
.college-title-wrapper > .location-line {
  grid-area: location !important;
}

/* ── Text sizing: fluid across all viewports ── */
.college-header .trust-name {
  font-size:      clamp(10px, 1.6vw, 20px) !important;
  font-weight:    700 !important;
  color:          var(--secondary) !important;
  text-align:     center !important;
  letter-spacing: 1.2px !important;
  text-transform: uppercase !important;
  line-height:    1.2 !important;
  white-space:    nowrap;
  margin:         0 !important;
}

.college-header .college-title,
.college-header .college-name {
  font-size:   clamp(13px, 3vw, 46px) !important;
  line-height: 1.25 !important;
  text-align:  center !important;
  font-weight: 700 !important;
  color:       var(--primary) !important;
  word-break:  break-word;
  hyphens:     auto;
  margin:      0 !important;
}

.college-header .location-line {
  font-size:      clamp(9px, 1.2vw, 15px) !important;
  font-weight:    700 !important;
  color:          var(--primary) !important;
  text-align:     center !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  line-height:    1.2 !important;
  display:        block !important;   /* override the flex that was on this element */
  margin:         0 !important;
}

/* ── Logo / founder photo sizes ── */
.college-header .college-logo,
.college-header .header-logo {
  height: clamp(55px, 12vw, 150px) !important;
  width:  auto !important;
  flex-shrink: 0;
}
.college-header .founder-photo {
  height: clamp(55px, 12vw, 150px) !important;
  width:  clamp(55px, 12vw, 150px) !important;
  flex-shrink: 0;
}

/* ── Breakpoint fine-tuning (sizing only — layout never changes) ── */
@media (max-width: 768px) {
  .college-header { gap: 12px !important; padding: 20px 18px !important; }
  .college-header .trust-name    { font-size: clamp(9px,  2vw, 15px) !important; }
  .college-header .college-title,
  .college-header .college-name  { font-size: clamp(12px, 3.2vw, 28px) !important; }
  .college-header .location-line { font-size: clamp(8px,  1.8vw, 12px) !important; }
}

@media (max-width: 480px) {
  .college-header { gap: 8px 8px !important; padding: 12px 10px !important; }
  .college-title-wrapper { gap: 2px 0 !important; padding: 0 4px !important; }
  .college-header .trust-name    { font-size: clamp(7px,  2.2vw, 11px) !important; letter-spacing: 0.5px !important; }
  .college-header .college-title,
  .college-header .college-name  { font-size: clamp(9px,  3.4vw, 16px) !important; }
  .college-header .location-line { font-size: clamp(6px,  2vw,   10px) !important; letter-spacing: 0.8px !important; }
}

@media (max-width: 360px) {
  .college-header { gap: 5px 5px !important; padding: 10px 6px !important; }
  .college-title-wrapper { gap: 1px 0 !important; padding: 0 2px !important; }
  .college-header .trust-name    { font-size: clamp(6px,  2.2vw,  9px) !important; }
  .college-header .college-title,
  .college-header .college-name  { font-size: clamp(8px,  3.2vw, 13px) !important; }
  .college-header .location-line { font-size: clamp(5px,  1.9vw,  8px) !important; }
}

/* ================================================================
   DEFINITIVE HEADER LOCK v2 — Final override. Never edit above this.
   Layout identical to desktop on every screen ≥ 280px:
     [Logo]  [Trust Name / College Title / Location Line]  [Founder Photo]
   Text order inside wrapper: Trust (top) → Title (mid) → Location (btm)
   Sizes shrink fluidly with clamp(); layout structure NEVER changes.
   ================================================================ */

/* ── 1. Outer grid: always 3 columns, single row ── */
.college-header {
  display:               grid !important;
  grid-template-columns: auto 1fr auto !important;
  grid-template-rows:    auto !important;
  align-items:           center !important;
  justify-items:         stretch !important;
  flex-direction:        unset !important;
  flex-wrap:             unset !important;
  padding:               clamp(8px, 2.5vw, 40px) clamp(8px, 3vw, 56px) !important;
  gap:                   clamp(6px, 1.5vw, 48px) !important;
  min-height:            unset !important;
  background:            #fff !important;
  box-sizing:            border-box !important;
  width:                 100% !important;
}

/* ── 2. College logo (left col) ── */
.college-header > .college-logo,
.college-header > .header-logo {
  display:     block !important;
  height:      clamp(46px, 11vw, 150px) !important;
  width:       auto !important;
  flex-shrink: 0 !important;
  grid-column: 1 !important;
  grid-row:    1 !important;
  align-self:  center !important;
}

/* ── 3. Text wrapper (centre col) — named-row grid, never flex ── */
.college-header > .college-title-wrapper {
  display:               grid !important;
  grid-column:           2 !important;
  grid-row:              1 !important;
  grid-template-columns: 1fr !important;
  grid-template-rows:    auto auto auto !important;
  grid-template-areas:
    "trust"
    "title"
    "location" !important;
  justify-items:         center !important;
  align-content:         center !important;
  gap:                   clamp(1px, 0.4vw, 6px) 0 !important;
  padding:               0 clamp(2px, 1vw, 16px) !important;
  min-width:             0 !important;
  width:                 100% !important;
  flex-direction:        unset !important;
}

/* ── 4a. Trust Name — pinned to top row ── */
.college-header .college-title-wrapper > .trust-name {
  grid-area:      trust !important;
  order:          unset !important;
  font-size:      clamp(7px, 1.7vw, 20px) !important;
  font-weight:    700 !important;
  color:          var(--secondary) !important;
  text-align:     center !important;
  letter-spacing: clamp(0.4px, 0.15vw, 1.5px) !important;
  text-transform: uppercase !important;
  line-height:    1.2 !important;
  white-space:    nowrap !important;
  margin:         0 !important;
}

/* ── 4b. College Title — pinned to middle row ── */
.college-header .college-title-wrapper > .college-title,
.college-header .college-title-wrapper > .college-name {
  grid-area:   title !important;
  order:       unset !important;
  font-size:   clamp(10px, 3vw, 46px) !important;
  line-height: 1.25 !important;
  text-align:  center !important;
  font-weight: 700 !important;
  color:       var(--primary) !important;
  word-break:  break-word !important;
  hyphens:     auto !important;
  margin:      0 !important;
}

/* ── 4c. Location Line — pinned to bottom row ── */
.college-header .college-title-wrapper > .location-line {
  grid-area:       location !important;
  order:           unset !important;
  display:         flex !important;
  align-items:     center !important;
  justify-content: center !important;
  flex-wrap:       wrap !important;
  gap:             clamp(2px, 0.5vw, 6px) !important;
  font-size:       clamp(6px, 1.15vw, 15px) !important;
  font-weight:     700 !important;
  color:           var(--primary) !important;
  text-align:      center !important;
  letter-spacing:  clamp(0.4px, 0.18vw, 2px) !important;
  text-transform:  uppercase !important;
  line-height:     1.2 !important;
  margin:          0 !important;
  white-space:     nowrap !important;
}

/* ── 5. Founder photo (right col) ── */
.college-header > .founder-photo {
  display:         block !important;
  height:          clamp(46px, 11vw, 150px) !important;
  width:           clamp(46px, 11vw, 150px) !important;
  border-radius:   50% !important;
  object-fit:      cover !important;
  object-position: top center !important;
  flex-shrink:     0 !important;
  grid-column:     3 !important;
  grid-row:        1 !important;
  align-self:      center !important;
}

/* ── 6. loc-city badges inside location line ── */
.college-header .loc-city {
  font-size:      clamp(5px, 1vw, 13px) !important;
  padding:        clamp(1px, 0.2vw, 2px) clamp(3px, 0.8vw, 10px) !important;
  letter-spacing: clamp(0.3px, 0.12vw, 1.8px) !important;
  white-space:    nowrap !important;
}

/* ── END DEFINITIVE HEADER LOCK v2 ── */
