/* =============================================
   HORIZON ACADEMY — MAIN STYLESHEET
   Theme: Deep Navy (#0a1628) + White + Gold (#c9a84c)
   Fonts: Playfair Display + DM Sans
   ============================================= */

/* ===== CSS VARIABLES ===== */
:root {
  --navy: #0a1628;
  --navy-mid: #112240;
  --navy-light: #1a3a5c;
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --gold-dark: #a07c30;
  --white: #ffffff;
  --off-white: #f8f6f0;
  --text-light: rgba(255,255,255,0.85);
  --text-muted: rgba(255,255,255,0.55);
  --glass-bg: rgba(255,255,255,0.06);
  --glass-border: rgba(201,168,76,0.2);
  --glass-bg-light: rgba(255,255,255,0.92);
  --shadow-gold: 0 8px 32px rgba(201,168,76,0.15);
  --shadow-deep: 0 20px 60px rgba(0,0,0,0.4);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xl: 24px;
  --transition: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

em { font-style: italic; color: var(--gold); }

/* ===== GLASS MORPHISM ===== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  transition: var(--transition);
  letter-spacing: 0.02em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.5);
}
.btn-outline {
  border: 1.5px solid rgba(201,168,76,0.6);
  color: var(--gold);
}
.btn-outline:hover {
  background: rgba(201,168,76,0.12);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-full { width: 100%; justify-content: center; }

/* ===== SECTION HEADERS ===== */
.section { padding: 100px 0; }
.bg-alt { background: var(--navy-mid); }

.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block;
  padding: 6px 20px;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 16px;
}
.section-desc {
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ===== ANIMATIONS ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.9s ease forwards;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.15s; }
.reveal.delay-2 { transition-delay: 0.3s; }
.reveal.delay-3 { transition-delay: 0.45s; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 56px;
  /* default visible */
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), backdrop-filter 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);

  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(10,22,40,0.97);
  backdrop-filter: blur(20px);
  /* IMPORTANT: keep navbar height stable on scroll (no padding change) */
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--glass-border);
}

/* Hide navbar after hero area so it doesn't appear across all sections */
.navbar.hidden {
  /* hide fully even during transitions */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-140%);
}

.navbar.hidden * {
  transition: none;
}


.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 1.1rem;
}
.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}
.logo-text em { font-style: italic; color: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-light);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold);
  background: rgba(201,168,76,0.1);
}
.admin-trigger { opacity: 0.5; }
.admin-trigger:hover { opacity: 1; }

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

/* ===== ADMISSION BAR (Home only) ===== */
.admission-bar {
  position: relative;
  z-index: 1;
  margin-top: 0;

  background: rgba(10, 22, 40, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201,168,76,0.22);
}

.admission-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Scrolling text (desktop) */
.admission-marquee {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

.admission-marquee {
  /* animate a repeating strip */
  position: relative;
}

.admission-marquee {
  animation: admissionScroll 10s linear infinite;
}

@keyframes admissionScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.admission-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd24d, #ffb300);
  color: #0a1628;
  font-weight: 900;
  font-size: 0.86rem;
  box-shadow: 0 0 20px rgba(255, 195, 0, 0.25);
}

.admission-text {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 0.98rem;
}

.admission-divider {
  color: rgba(201,168,76,0.9);
}

.admission-content {
  display: none;
  align-items: center;
  gap: 12px;
}

.admission-main-text {
  color: #ffffff;
  font-weight: 800;
}

.admission-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd24d, #ff3b30);
  color: #0a1628;
  font-weight: 1000;
  box-shadow: 0 0 22px rgba(255, 59, 48, 0.35), 0 8px 30px rgba(255, 195, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admission-apply:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(255, 59, 48, 0.45), 0 12px 40px rgba(255, 195, 0, 0.25);
}

/* Mobile: show content + apply button */
@media (max-width: 768px) {
  .admission-marquee { display: none; }
  .admission-content { display: flex; }
  .admission-main-text { font-size: 0.95rem; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Two-column responsive hero grid — text LEFT, slider RIGHT */
.hero-grid {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Left col = text content */
.hero-left-col {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

/* Right col = image slider */
.hero-right-col {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-text-card {
  width: 100%;
  padding: 26px 26px 24px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,168,76,0.22);
  box-shadow: var(--shadow-gold);
}

.hero-subtitle-anim {
  animation: heroSubtitleIn 900ms ease both;
}

@keyframes heroSubtitleIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Soft floating animation for the slider card */
.hero-left-slider {
  animation: heroFloat 5.2s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a0f1e 0%, #0d1f3c 50%, #061225 100%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(201,168,76,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(26,58,92,0.5) 0%, transparent 50%);
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(201,168,76,0.08) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: patternDrift 40s linear infinite;
}
@keyframes patternDrift {
  from { background-position: 0 0; }
  to { background-position: 50px 50px; }
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  padding: 0 32px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  padding: 8px 24px;
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
  background: rgba(201,168,76,0.07);
}
.hero-title {
  color: var(--white);
  margin-bottom: 24px;
  font-weight: 900;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.hero-subtitle {
  color: var(--text-muted);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 40px;
  line-height: 1.8;
}
.hero-cta { display: flex; gap: 16px; justify-content: flex-start; flex-wrap: wrap; }
.hero-scroll-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ===== ABOUT SECTION ===== */
.about-section { background: var(--navy); }
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-text { display: flex; flex-direction: column; gap: 24px; }
.about-card {
  padding: 28px;
  transition: var(--transition);
}
.about-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-gold); }
.about-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.about-card h3 { color: var(--gold); margin-bottom: 10px; font-size: 1.15rem; }
.about-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.8; }

.about-image-side { position: relative; }
.about-image-frame { position: relative; }

/* School Building Image */
.about-building-img-wrap {
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4), var(--shadow-gold);
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.5s ease;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
}

.about-building-img-wrap:hover {
  transform: scale(1.025) translateY(-4px);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 40px rgba(201,168,76,0.2);
}

.about-building-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.about-building-img-wrap:hover .about-building-img {
  transform: scale(1.06);
}

.about-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
}
.about-image-placeholder i {
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.4;
}
.about-image-placeholder span {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.about-accent-box {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  padding: 20px 28px;
  border-radius: var(--radius);
  text-align: center;
}
.accent-year { display: block; font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 900; line-height: 1; }
.accent-label { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }

/* About image entrance animation */
.about-image-side.visible .about-building-img-wrap {
  animation: aboutImgReveal 0.9s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}
@keyframes aboutImgReveal {
  from { opacity: 0; transform: translateX(40px) scale(0.97); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* Responsive about grid */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .about-image-side {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }
  .about-building-img-wrap {
    aspect-ratio: 16 / 9;
  }
  .about-accent-box {
    bottom: -14px;
    right: 10px;
    padding: 14px 20px;
  }
}

/* ===== STATS SECTION ===== */
.stats-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy-mid) 100%);
  position: relative;
  overflow: hidden;
}
.stats-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(201,168,76,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
  z-index: 1;
}
.stat-item {
  text-align: center;
  padding: 40px 20px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}
.stat-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-gold); }
.stat-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(201,168,76,0.2), rgba(201,168,76,0.05));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--gold);
  margin: 0 auto 20px;
  border: 1px solid rgba(201,168,76,0.3);
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ===== IMAGE GALLERY SECTIONS ===== */
.gallery-section {}
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.gallery-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}
.gallery-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-gold); }
.gallery-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-card:hover .gallery-card-img { transform: scale(1.05); }
.gallery-card-body {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.gallery-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  flex: 1;
}
.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,22,40,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.gallery-card:hover .gallery-card-overlay { opacity: 1; }
.gallery-card-overlay i { font-size: 2rem; color: var(--gold); }

.gallery-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px 20px;
  color: var(--text-muted);
  border: 1px dashed rgba(201,168,76,0.2);
  border-radius: var(--radius-xl);
  display: none;
}
.gallery-empty i { font-size: 3rem; color: var(--gold); opacity: 0.3; }
.gallery-empty p { font-size: 1rem; text-align: center; max-width: 400px; }
.gallery-empty.show { display: flex; }

.download-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: var(--transition);
  flex-shrink: 0;
}
.download-btn:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ===== FACULTY SECTION ===== */
.faculty-section { background: var(--navy); }
.faculty-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 10px 20px;
  flex: 1;
  min-width: 200px;
}
.search-box i { color: var(--gold); }
.search-box input {
  background: none;
  border: none;
  outline: none;
  color: var(--white);
  font-size: 0.95rem;
  width: 100%;
}
.search-box input::placeholder { color: var(--text-muted); }
.filter-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1.5px solid rgba(201,168,76,0.3);
  color: var(--text-muted);
  transition: var(--transition);
  letter-spacing: 0.04em;
  text-transform: capitalize;
}
.filter-btn.active, .filter-btn:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  border-color: transparent;
}
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}
.faculty-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
  text-align: center;
}
.faculty-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-gold); }
.faculty-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
  text-align: center;
}

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

/* Image should scale without clipping */
.faculty-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 15%;
  background: var(--navy-light);
  display: block;
}

.faculty-card-img-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--navy-light), var(--navy-mid));
  display: flex;
  align-items: center;
  justify-content: center;
}

.faculty-card-img-placeholder i { font-size: 4rem; color: rgba(201,168,76,0.3); }
.faculty-card-img-placeholder i { font-size: 4rem; color: rgba(201,168,76,0.3); }
.faculty-card-body { padding: 20px; }
.faculty-card-subject {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.2);
  color: var(--gold);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.faculty-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.faculty-card-info {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
  line-height: 1.6;
}
.faculty-card-info span { display: block; }
.faculty-card-footer { padding: 16px 20px; border-top: 1px solid var(--glass-border); }

/* ===== TESTIMONIALS ===== */
.testimonials-section {
  background: var(--navy-mid);
  position: relative;
  overflow: hidden;
}

/* ===== TRANSFER CERTIFICATE (TC) ===== */
.tc-section {
  background: var(--navy-mid);
  position: relative;
  overflow: hidden;
}

.tc-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.tc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.tc-card {
  position: relative;
  z-index: 1;
  text-align: center;
  transition: var(--transition);
}

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

.tc-card-body {
  padding: 20px;
}

.tc-field {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(201,168,76,0.12);
}

.tc-field:last-child {
  border-bottom: none;
}

.tc-label {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tc-value {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
}

.tc-card-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--glass-border);
}

.tc-view-btn {
  width: 100%;
  justify-content: center;
  border-radius: 999px;
}

@media (max-width: 480px) {
  .tc-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .tc-card {
    border-radius: 18px;
  }

  .tc-card-body {
    padding: 14px 16px 10px;
  }

  .tc-value {
    font-size: 0.88rem;
  }

  .tc-card-footer {
    padding: 10px 12px;
  }
}

.testi-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}
.testimonials-slider { position: relative; z-index: 1; }
.testimonials-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  transition: var(--transition);
}
.testi-card {
  padding: 36px 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: var(--transition);
}
.testi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-gold); }
.testi-quote { color: var(--gold); font-size: 1.8rem; opacity: 0.6; }
.testi-card p {
  color: var(--text-light);
  font-size: 0.97rem;
  line-height: 1.85;
  flex: 1;
  font-style: italic;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
}
.testi-avatar {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.testi-author strong { display: block; color: var(--white); font-weight: 600; font-size: 0.95rem; }
.testi-author span { color: var(--text-muted); font-size: 0.8rem; }
.testi-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}
.testi-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(201,168,76,0.4);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.testi-btn:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.testi-dots { display: flex; gap: 8px; }
.testi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(201,168,76,0.3);
  cursor: pointer;
  transition: var(--transition);
}
.testi-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

/* ===== CONTACT SECTION ===== */
.contact-section { background: var(--navy); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  margin-bottom: 48px;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  transition: var(--transition);
}
.contact-item:hover { transform: translateX(4px); }
.contact-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, rgba(201,168,76,0.2), rgba(201,168,76,0.05));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
  border: 1px solid rgba(201,168,76,0.2);
}
.contact-item h4 { color: var(--gold); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; font-family: 'DM Sans', sans-serif; font-weight: 700; }
.contact-item p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; }

.contact-form { padding: 40px; }
.contact-form h3 { color: var(--white); margin-bottom: 28px; font-size: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(201,168,76,0.06);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 20px;
  background: rgba(76,175,80,0.15);
  border: 1px solid rgba(76,175,80,0.3);
  border-radius: var(--radius-sm);
  color: #81c784;
  font-size: 0.92rem;
  align-items: center;
  gap: 10px;
}
.form-success.show { display: flex; }

.map-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  height: 400px;
}
.map-container iframe { width: 100%; height: 100%; border: 0; filter: brightness(0.8) contrast(1.1) saturate(0.8) invert(0.1); }

/* ===== FOOTER ===== */
.footer { background: #050d1a; }
.footer-top { padding: 80px 0 60px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 48px;
}
.footer-logo { margin-bottom: 16px; display: inline-flex; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.8; margin-bottom: 24px; max-width: 280px; }
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(201,168,76,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}
.social-links a:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  transform: translateY(-3px);
}
.footer-links-col h4, .footer-contact h4 {
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(201,168,76,0.2);
}
.footer-links-col ul li { margin-bottom: 10px; }
.footer-links-col ul a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links-col ul a::before {
  content: '›';
  color: var(--gold);
  font-size: 1rem;
}
.footer-links-col ul a:hover { color: var(--gold); transform: translateX(4px); }
.footer-contact p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
}
.footer-contact p i { color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.footer-contact .btn { margin-top: 16px; }
.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(201,168,76,0.1);
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.82rem; }
.footer-bottom i { color: var(--gold); }

/* ===== ADMIN LOGIN MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: linear-gradient(135deg, rgba(17,34,64,0.98), rgba(10,22,40,0.99));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  width: 100%;
  max-width: 400px;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: var(--transition);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,0.15); color: var(--white); }
.modal-header { text-align: center; margin-bottom: 32px; }
.modal-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--navy);
  margin: 0 auto 16px;
}
.modal-header h2 { font-size: 1.8rem; color: var(--white); margin-bottom: 6px; }
.modal-header p { color: var(--text-muted); font-size: 0.9rem; }
.login-error {
  display: none;
  padding: 10px 16px;
  background: rgba(239,83,80,0.15);
  border: 1px solid rgba(239,83,80,0.3);
  border-radius: var(--radius-sm);
  color: #ef9a9a;
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.login-error.show { display: block; }

/* ===== ADMIN DASHBOARD ===== */
.admin-dashboard {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: none;
  flex-direction: column;
  background: #060e1c;
  overflow: hidden;
}
.admin-dashboard.open { display: flex; }

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  flex-shrink: 0;
}
.admin-header-left { display: flex; align-items: center; gap: 16px; }
.admin-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--white);
}
.admin-logo i { color: var(--gold); }
.admin-badge {
  padding: 4px 14px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 50px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
}

.admin-body { display: flex; flex: 1; overflow: hidden; }

.admin-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.03);
  border-right: 1px solid rgba(201,168,76,0.1);
  padding: 20px 12px;
  overflow-y: auto;
}
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
  text-align: left;
}
.admin-nav-btn i { width: 18px; color: var(--gold); opacity: 0.6; }
.admin-nav-btn:hover, .admin-nav-btn.active {
  background: rgba(201,168,76,0.1);
  color: var(--white);
}
.admin-nav-btn.active i { opacity: 1; }

.admin-content { flex: 1; overflow-y: auto; padding: 28px; }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(201,168,76,0.15);
}
.admin-panel-header h2 {
  font-size: 1.4rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-panel-header h2 i { color: var(--gold); font-size: 1.1rem; }

.admin-two-col {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 32px;
  align-items: start;
}
.admin-form-wrap h3, .admin-table-wrap h3 {
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.admin-form {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 24px;
}
.admin-form .form-group { margin-bottom: 16px; }
.admin-form label { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; display: block; margin-bottom: 6px; }
.admin-form input, .admin-form select {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}
.admin-form input:focus {
  border-color: var(--gold);
  background: rgba(201,168,76,0.06);
}
.admin-form input::placeholder { color: rgba(255,255,255,0.25); }
.form-actions { display: flex; gap: 10px; margin-top: 4px; }

/* File Upload Area */
.file-upload-area {
  border: 2px dashed rgba(201,168,76,0.3);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.file-upload-area:hover { border-color: var(--gold); background: rgba(201,168,76,0.05); }
.file-upload-area i { font-size: 1.8rem; color: var(--gold); opacity: 0.5; display: block; margin-bottom: 8px; }
.file-upload-area span { color: var(--text-muted); font-size: 0.82rem; }
.file-upload-area input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  padding: 0 !important;
  border: none !important;
}
.preview-img-wrap { margin-top: 10px; }
.preview-img-wrap img {
  max-height: 100px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
}
.pdf-name-preview { margin-top: 8px; color: var(--gold); font-size: 0.8rem; }

/* Admin Table */
.admin-table-scroll { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.admin-table th {
  background: rgba(201,168,76,0.08);
  color: var(--gold);
  text-align: left;
  padding: 10px 14px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'DM Sans', sans-serif;
}
.admin-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--text-light);
  vertical-align: middle;
}
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.admin-table img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; }
.table-empty { padding: 32px; text-align: center; color: var(--text-muted); font-size: 0.88rem; }

.action-btns { display: flex; gap: 6px; }
.action-btn {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.action-btn-edit {
  background: rgba(201,168,76,0.15);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.2);
}
.action-btn-edit:hover { background: var(--gold); color: var(--navy); }
.action-btn-delete {
  background: rgba(239,83,80,0.12);
  color: #ef9a9a;
  border: 1px solid rgba(239,83,80,0.2);
}
.action-btn-delete:hover { background: #ef5350; color: white; }

/* Admin Upload Section */
.admin-upload-section { margin-bottom: 32px; }
.admin-gallery-section h3 {
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.admin-gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  transition: var(--transition);
}
.admin-gallery-item:hover { border-color: var(--gold); }
.admin-gallery-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}
.admin-gallery-item-body {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.admin-gallery-item-title {
  color: var(--text-muted);
  font-size: 0.78rem;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(0,0,0,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-deep);
  object-fit: contain;
}
.lightbox-caption {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-nav {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.lightbox-nav:hover { background: var(--gold); color: var(--navy); }

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(201,168,76,0.4);
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(201,168,76,0.5); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-image-side { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .testimonials-track { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .admin-two-col { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }

  /* Mobile layout fixes */
  html { overflow-x: hidden; }
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }

  /* Nudge contact section a bit left on phones */
  .contact-info, .contact-form-wrap { position: relative; left: -8px; }

  .contact-form-wrap { padding-left: 0; padding-right: 0; }


  body { overflow-x: hidden; }
  .container { padding: 0 16px; }

  /* Slide-in mobile menu */

  .navbar .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    width: 280px;
    height: 100vh;
    background: rgba(10,22,40,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 80px 24px 40px;
    gap: 4px;

    /* Start hidden off-canvas */
    transform: translateX(-105%);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);

    align-items: flex-start;
    overflow-y: auto;
    border-right: 1px solid var(--glass-border);
  }

  .navbar .nav-links.open { transform: translateX(0); }

  /* Professional mobile menu spacing */
  .navbar .nav-links { 
    scrollbar-width: thin;
  }
  .navbar .nav-links::-webkit-scrollbar { width: 8px; }
  .navbar .nav-links::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.25); border-radius: 999px; }
  .navbar .nav-links::-webkit-scrollbar-track { background: transparent; }

  .navbar .nav-links a {
    padding: 12px 16px;
    font-size: 1rem;
    width: 100%;
    border-radius: 12px;
  }


  .hamburger { display: flex; z-index: 1001; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .testimonials-track { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: center; }
  .admin-sidebar { width: 60px; }
  .admin-nav-btn span { display: none; }
  .admin-nav-btn { justify-content: center; padding: 12px; }
  .admin-nav-btn i { width: auto; opacity: 1; }
  .scroll-top { bottom: 16px; right: 16px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .image-gallery { grid-template-columns: 1fr; }
  .faculty-grid { grid-template-columns: 1fr; gap: 18px; }
  .section { padding-left: 0; padding-right: 0; }
  .container { padding: 0 14px; }

  /* Premium mobile card layout */
  .faculty-card {
    border-radius: 18px;
    padding-bottom: 2px;
  }

  .faculty-card-img {
    aspect-ratio: 4 / 5; /* more face-friendly */
    object-position: 50% 10%;
  }

  .faculty-card-body {
    padding: 14px 16px 10px;
  }

  .faculty-card-name {
    font-size: 1.02rem;
    margin-bottom: 6px;
  }

  .faculty-card-info {
    font-size: 0.82rem;
    margin-bottom: 12px;
  }

  .faculty-card-footer {
    padding: 10px 12px;
  }

  /* Ensure button stays centered + fully visible */
  .faculty-card-footer .btn {
    width: 100%;
    justify-content: center;
    padding: 10px 12px;
    font-size: 0.82rem;
    border-radius: 999px;
    display: inline-flex;
  }

  /* Prevent any horizontal overflow */
  body { overflow-x: hidden; }

  .admin-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .modal { padding: 32px 24px; margin: 16px; }
  .contact-form { padding: 24px; }
}




/* ===== HERO LEFT IMAGE SLIDER (Home only) ===== */
.hero-left-slider-wrap{
  width: min(520px, 90%);
  margin: 0 auto 34px;
  position: relative;
  z-index: 1;
}

/* Larger hero slider card for desktop */
.hero-left-slider-wrap--big{
  width: 100%;
  max-width: 560px;
  margin: 0;
}

.hero-left-slider-wrap--big .hero-left-slide img{
  height: 400px;
}




.hero-content-inner{
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
}

/* Desktop: two-column layout (text LEFT, slider RIGHT) */
@media (min-width: 900px){
  .hero-grid{ grid-template-columns: 1.1fr 1fr; gap: 60px; }
  .hero-left-slider-wrap{ margin: 0; }

  .hero-title{ font-size: clamp(2.1rem, 3.2vw, 3.4rem); }
  .hero-subtitle{ font-size: clamp(0.98rem, 1.35vw, 1.12rem); margin-bottom: 28px; }
  .hero-cta{ gap: 14px; }
  .hero-cta .btn{ padding: 13px 26px; }
}





.hero-left-slider{
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 70px rgba(0,0,0,0.35), var(--shadow-gold);
  padding: 16px 16px 18px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  will-change: transform;
}

.hero-left-slider:hover{
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(201,168,76,0.25);
}

.hero-left-slider-viewport{
  width: 100%;
  overflow: hidden;
  border-radius: calc(var(--radius-xl) - 10px);
}

.hero-left-slider-track{
  display: flex;
  width: 100%;
  transform: translate3d(0,0,0);
  will-change: transform;
}

.hero-left-slide{
  flex: 0 0 100%;
  padding: 0;
}

.hero-left-slide img{
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: calc(var(--radius-xl) - 10px);
  background: rgba(255,255,255,0.03);
  transition: transform 0.6s ease;
  backface-visibility: hidden;
}



.hero-left-slider:hover .hero-left-slide img{
  transform: scale(1.03);
}

.hero-left-slider-nav{
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
}

.hero-left-slider-dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.35);
  background: rgba(201,168,76,0.25);
  cursor: pointer;
  transition: var(--transition);
}

.hero-left-slider-dot[aria-current="true"],
.hero-left-slider-dot:hover{
  background: var(--gold);
  transform: scale(1.25);
}

@media (max-width: 899px){
  /* Mobile: slider on TOP, text below */
  .hero-grid{
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* Flip order: slider (right-col) comes first visually */
  .hero-left-col { order: 2; justify-content: center; }
  .hero-right-col { order: 1; justify-content: center; }

  .hero-text-card{ padding: 22px 16px; }

  .hero-left-slider-wrap{
    width: min(560px, 92vw);
    margin-top: 0;
  }

  .hero-left-slider{ padding: 12px 12px 16px; }
  .hero-left-slide img{ height: 220px; }
  .hero-cta { justify-content: center; }
}



@media (max-width: 480px){
  .hero-left-slide img{ height: 200px; }
}

/* ===== HERO HIGHLIGHT (Home only) ===== */
.hero-home-highlight {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}


/* ===== PRINCIPAL & CHAIRMAN CARDS (Home only) ===== */
.principal-chairman-section { background: var(--navy); }
.leadership-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 8px;
}
.leadership-card {
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.leadership-image {
  width: 220px;
  height: 220px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(201,168,76,0.25);
  background: rgba(255,255,255,0.04);
  flex-shrink: 0;
}
.leadership-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.leadership-body {
  flex: 1;
  min-width: 0;
}
.leadership-role {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid rgba(201,168,76,0.25);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.leadership-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 10px;
}
.leadership-message {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .leadership-grid { grid-template-columns: 1fr; }
  .leadership-card { padding: 20px; }
}

@media (max-width: 768px) {
  .leadership-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .leadership-image {
    width: 96px;
    height: 96px;
  }
}

.hero-highlight-card {

  width: min(860px, 100%);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
}

.hero-highlight-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(201,168,76,0.22), rgba(201,168,76,0.05));
  border: 1px solid rgba(201,168,76,0.22);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.hero-highlight-title {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 4px;
}

.hero-highlight-text {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

