/* ============================================================
   School Template — Premium Design System
   Multi-tenant CMS | Kesari Cloud Tech
   ============================================================ */

:root {
  /* Brand Colors */
  --blue:          #2563eb;
  --blue-dark:     #1d4ed8;
  --blue-light:    #3b82f6;
  --blue-glow:     rgba(37, 99, 235, 0.12);
  --blue-glow-2:   rgba(37, 99, 235, 0.06);
  --gold:          #f59e0b;
  --gold-dark:     #d97706;
  --gold-light:    #fbbf24;
  --gold-glow:     rgba(245, 158, 11, 0.12);
  --gold-glow-2:   rgba(245, 158, 11, 0.06);

  /* Backgrounds */
  --bg:            #f8faff;
  --bg-alt:        #f1f5fd;
  --bg-dark:       #0f172a;
  --bg-dark-2:     #1e293b;
  --bg-dark-3:     #0b1120;

  /* Surfaces */
  --surface:       #ffffff;
  --surface-dark:  rgba(255, 255, 255, 0.04);
  --surface-dark-2: rgba(255, 255, 255, 0.07);

  /* Text */
  --text:          #0f172a;
  --text-2:        #475569;
  --text-3:        #64748b;
  --text-light:    #f8fafc;
  --text-light-2:  rgba(248, 250, 252, 0.65);

  /* Borders */
  --border:        rgba(0, 0, 0, 0.07);
  --border-blue:   rgba(37, 99, 235, 0.15);
  --border-dark:   rgba(255, 255, 255, 0.08);
  --border-dark-2: rgba(255, 255, 255, 0.13);

  /* Typography */
  --font:          "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display:  "Space Grotesk", "Inter", sans-serif;

  /* Layout */
  --container:     1200px;
  --radius:        16px;
  --radius-sm:     10px;
  --radius-xs:     6px;

  /* Motion */
  --transition:    0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.7; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--blue); color: #fff; }
ul { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
@media (min-width: 1280px) { .container { padding: 0 48px; } }

.accent { color: var(--blue); }
.accent-gold { color: var(--gold); }

/* ============================================================
   Page Loader
   ============================================================ */
.page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-dark);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-content { text-align: center; }
.loader-logo-wrap {
  color: var(--blue); margin-bottom: 20px;
  animation: loaderPulse 1.6s ease infinite;
  display: inline-block;
}
.loader-logo-img { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; }
@keyframes loaderPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.94); }
}
.loader-bar {
  width: 140px; height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px; overflow: hidden;
  margin: 0 auto 14px;
}
.loader-progress {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  border-radius: 3px;
  animation: loaderFill 1.3s var(--ease-out) forwards;
}
@keyframes loaderFill { to { width: 100%; } }
.loader-tagline {
  color: var(--text-light-2);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================================
   Reveal Animations
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0) !important; }
.reveal.fade-left { transform: translateX(-40px); }
.reveal.fade-right { transform: translateX(40px); }
.reveal.fade-up { transform: translateY(40px); }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }
.reveal.d5 { transition-delay: 0.5s; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 10px 0;
  transition: all var(--transition);
}
.site-header.scrolled {
  background: rgba(15, 23, 42, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 var(--border-dark);
  padding: 4px 0;
}
.nav-container {
  display: flex; align-items: center;
  gap: 24px; height: 64px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(37, 99, 235, 0.2);
}
.brand-logo-img { width: 32px; height: 32px; object-fit: contain; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 700;
  color: #fff; line-height: 1.2;
}
.brand-sub {
  font-size: 0.68rem; color: var(--text-light-2);
  letter-spacing: 0.03em;
}
.nav-desktop {
  display: none; align-items: center; gap: 4px;
  margin-left: auto;
}
@media (min-width: 960px) { .nav-desktop { display: flex; } }
.nav-desktop a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem; font-weight: 500;
  padding: 8px 14px; border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.nav-desktop a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--blue) !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  padding: 8px 16px !important;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav-cta:hover { background: var(--blue-dark) !important; transform: translateY(-1px); }

/* Hamburger */
.menu-toggle {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; margin-left: auto;
  border-radius: 8px;
}
@media (min-width: 960px) { .menu-toggle { display: none; } }
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: rgba(255, 255, 255, 0.8); border-radius: 2px;
  transition: all var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: var(--bg-dark);
  padding-top: 84px;
  flex-direction: column;
}
.mobile-nav.open { display: flex; }
.mobile-nav nav {
  display: flex; flex-direction: column;
  padding: 24px;
}
.mobile-nav a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.25rem; font-weight: 600;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-dark);
  transition: color var(--transition), padding-left var(--transition);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--blue-light); padding-left: 8px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px;
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
  border: none; text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37, 99, 235, 0.45); }
.btn-glass {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.1); color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 14px 28px; font-size: 0.95rem; }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); }
.section-dark .section-label,
.section-dark h2,
.section-dark h3,
.section-dark p,
.section-dark .section-title,
.section-dark .section-subtitle { color: var(--text-light); }
.section-dark .section-subtitle { color: var(--text-light-2); }

.section-center { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--blue);
  background: var(--blue-glow); border: 1px solid var(--border-blue);
  padding: 6px 14px; border-radius: 100px;
  margin-bottom: 16px;
}
.section-dark .section-label {
  color: var(--gold); background: var(--gold-glow); border-color: rgba(245,158,11,0.2);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700; line-height: 1.2;
  margin-bottom: 16px; color: var(--text);
}
.section-dark .section-title { color: var(--text-light); }
.section-subtitle {
  font-size: 1.05rem; color: var(--text-2); line-height: 1.8;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden; background: var(--bg-dark);
  padding-top: 80px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-gradient {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(37,99,235,0.22) 0%, transparent 65%),
              radial-gradient(ellipse 60% 50% at 100% 100%, rgba(245,158,11,0.1) 0%, transparent 60%),
              linear-gradient(180deg, #0f172a 0%, #0b1427 100%);
}
.hero-grid-pattern {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 30%, transparent 80%);
}
.hero-glow-blue {
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.18) 0%, transparent 70%);
  filter: blur(60px); pointer-events: none;
}
.hero-glow-gold {
  position: absolute; bottom: 10%; right: 10%;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,0.1) 0%, transparent 70%);
  filter: blur(60px); pointer-events: none;
}
.hero-bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.15; z-index: 0;
}
.hero-content { position: relative; z-index: 1; padding: 60px 0; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.25);
  padding: 7px 16px; border-radius: 100px;
  margin-bottom: 24px;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: badgePulse 2s ease infinite;
}
@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 800; color: #fff;
  line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero-tagline { font-size: clamp(1rem, 2.2vw, 1.25rem); color: var(--text-light-2); max-width: 620px; margin: 0 auto 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 56px; }
.hero-stats {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-dark-2);
  border-radius: 16px; padding: 20px 32px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  width: fit-content; margin: 0 auto;
}
.stat { text-align: center; padding: 0 28px; }
.stat strong {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 800; color: #fff;
  display: inline-block;
}
.stat-plus { font-size: 1.5rem; font-weight: 700; color: var(--gold); }
.stat span:not(.stat-plus) {
  display: block; font-size: 0.78rem;
  color: var(--text-light-2); text-transform: uppercase;
  letter-spacing: 0.06em; margin-top: 2px;
}
.stat-divider {
  width: 1px; height: 40px;
  background: var(--border-dark-2);
  flex-shrink: 0;
}
@media (max-width: 560px) {
  .hero-stats { gap: 16px; padding: 16px 20px; }
  .stat { padding: 0 12px; }
  .stat-divider { display: none; }
}
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.4); font-size: 0.72rem;
  letter-spacing: 0.05em; text-transform: uppercase; z-index: 1;
}
.scroll-mouse {
  width: 22px; height: 36px; border: 2px solid rgba(255,255,255,0.2);
  border-radius: 12px; display: flex; align-items: flex-start;
  justify-content: center; padding-top: 6px;
}
.scroll-dot {
  width: 3px; height: 8px; background: rgba(255,255,255,0.4);
  border-radius: 3px; animation: scrollDot 2s ease infinite;
}
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }

/* ============================================================
   About
   ============================================================ */
.about-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
}
@media (max-width: 960px) { .about-layout { grid-template-columns: 1fr; gap: 48px; } }
.about-text-col h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700; margin-bottom: 20px; line-height: 1.2;
}
.about-desc { font-size: 1.05rem; color: var(--text-2); margin-bottom: 32px; line-height: 1.8; }
.values-grid {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.value-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 100px;
  background: var(--blue-glow); border: 1px solid var(--border-blue);
  font-size: 0.85rem; font-weight: 600; color: var(--blue);
}
.value-pill::before {
  content: ""; width: 6px; height: 6px;
  border-radius: 50%; background: var(--blue); flex-shrink: 0;
}
.about-image-col { position: relative; }
.about-img-card {
  position: relative; border-radius: 24px; overflow: visible;
}
.about-img-glow {
  position: absolute; inset: -20px;
  background: radial-gradient(circle at 50% 50%, var(--blue-glow) 0%, transparent 70%);
  filter: blur(30px); z-index: 0;
}
.about-img-inner {
  position: relative; z-index: 1;
  border-radius: 20px; overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  border: 1px solid var(--border-blue);
}
.about-img-inner img { width: 100%; height: 100%; object-fit: cover; }
.about-img-placeholder {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; height: 100%; gap: 12px;
  color: var(--text-3);
  font-size: 0.85rem;
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
}
.about-img-badge {
  position: absolute; bottom: -16px; left: -16px; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 12px 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.about-img-badge svg { color: var(--gold); flex-shrink: 0; width: 24px; height: 24px; }
.about-img-badge strong {
  display: block; font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700; color: var(--text);
}
.about-img-badge span { font-size: 0.75rem; color: var(--text-2); }

/* ============================================================
   Programs
   ============================================================ */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.program-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px;
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.program-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.program-card:hover::before { transform: scaleX(1); }
.program-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(37,99,235,0.1); border-color: var(--border-blue); }
.program-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--blue-glow); border: 1px solid var(--border-blue);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); margin-bottom: 20px;
  transition: background var(--transition), transform var(--transition);
}
.program-card:hover .program-icon { background: var(--blue); color: #fff; transform: rotate(6deg) scale(1.05); }
.program-card h3 {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  color: var(--text); margin-bottom: 10px;
}
.program-card p { font-size: 0.9rem; color: var(--text-2); line-height: 1.7; margin-bottom: 16px; }
.program-card .program-grade {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  color: var(--blue); background: var(--blue-glow);
  border: 1px solid var(--border-blue);
  padding: 4px 12px; border-radius: 100px;
}

/* ============================================================
   Faculty
   ============================================================ */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.faculty-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  text-align: center; transition: all var(--transition);
  position: relative; overflow: hidden;
}
.faculty-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(37,99,235,0.08); border-color: var(--border-blue); }
.faculty-photo-wrap {
  width: 90px; height: 90px; border-radius: 50%;
  margin: 0 auto 16px; overflow: hidden; position: relative;
  background: var(--bg-alt);
  border: 3px solid var(--border-blue);
}
.faculty-photo { width: 100%; height: 100%; object-fit: cover; }
.faculty-initials {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  color: var(--blue); background: var(--blue-glow);
}
.faculty-card h3 {
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  color: var(--text); margin-bottom: 6px;
}
.faculty-designation {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--blue); margin-bottom: 4px;
}
.faculty-dept {
  font-size: 0.78rem; color: var(--text-3);
  background: var(--bg-alt); border-radius: 100px;
  padding: 3px 12px; display: inline-block; margin-top: 8px;
}

/* ============================================================
   Admissions
   ============================================================ */
.admissions-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start;
}
@media (max-width: 768px) { .admissions-layout { grid-template-columns: 1fr; } }
.admissions-steps h3,
.admissions-eligibility h3 {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  color: var(--text-light); margin-bottom: 24px;
}
.steps-list { display: flex; flex-direction: column; gap: 0; }
.step-item {
  display: flex; gap: 20px; align-items: flex-start;
  position: relative; padding-bottom: 28px;
}
.step-item:last-child { padding-bottom: 0; }
.step-item:not(:last-child) .step-number::after {
  content: ""; position: absolute;
  left: 50%; top: 40px; bottom: 0;
  width: 2px; background: rgba(37,99,235,0.3);
  transform: translateX(-50%);
}
.step-number {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 700;
  flex-shrink: 0; position: relative;
}
.step-content h4 {
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 700;
  color: var(--text-light); margin-bottom: 4px;
}
.step-content p { font-size: 0.87rem; color: var(--text-light-2); line-height: 1.6; }
.eligibility-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.eligibility-item {
  display: flex; align-items: flex-start; gap: 12px;
}
.eligibility-check {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(37,99,235,0.15); border: 1px solid rgba(37,99,235,0.3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--blue-light); font-size: 0.7rem; font-weight: 700;
}
.eligibility-item span:last-child { font-size: 0.9rem; color: var(--text-light-2); line-height: 1.6; }
.admissions-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============================================================
   Facilities
   ============================================================ */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.facility-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  text-align: center; transition: all var(--transition);
}
.facility-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(37,99,235,0.08); border-color: var(--border-blue); }
.facility-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--blue-glow); border: 1px solid var(--border-blue);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); margin: 0 auto 16px;
  transition: all var(--transition);
}
.facility-card:hover .facility-icon { background: var(--blue); color: #fff; }
.facility-card h3 { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.facility-card p { font-size: 0.83rem; color: var(--text-2); line-height: 1.6; }

/* ============================================================
   Gallery
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.gallery-grid img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover; border-radius: var(--radius-sm);
  cursor: pointer; transition: all var(--transition);
  border: 1px solid var(--border);
}
.gallery-grid img:hover { transform: scale(1.03); box-shadow: 0 12px 36px rgba(37,99,235,0.15); border-color: var(--border-blue); }
.gallery-empty { text-align: center; color: var(--text-2); padding: 48px 0; }

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 92vw; max-height: 88vh;
  border-radius: var(--radius-sm);
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute; top: 20px; right: 20px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #fff; transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.contact-card {
  background: var(--surface-dark); border: 1px solid var(--border-dark);
  border-radius: var(--radius); padding: 28px 24px;
  transition: all var(--transition);
}
.contact-card:hover { background: var(--surface-dark-2); border-color: var(--border-dark-2); }
.contact-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--blue-glow); border: 1px solid rgba(37,99,235,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-light); margin-bottom: 16px;
}
.contact-icon.phone { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.25); color: #10b981; }
.contact-icon.email { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.25); color: var(--gold); }
.contact-icon.map { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.25); color: #ef4444; }
.contact-card h4 {
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 700;
  color: var(--text-light); margin-bottom: 8px;
}
.contact-card p, .contact-card a { font-size: 0.87rem; color: var(--text-light-2); line-height: 1.7; }
.contact-card a:hover { color: var(--blue-light); }
.map-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px; background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.1); border-radius: 10px;
  color: var(--text-light-2); font-size: 0.82rem; cursor: pointer;
  transition: border-color var(--transition);
}
.map-placeholder:hover { border-color: rgba(255,255,255,0.2); }

/* ============================================================
   CTA Banner
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 50%, #6366f1 100%);
  padding: 64px 0; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap; position: relative; z-index: 1;
}
.cta-text h2 {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700; color: #fff; margin-bottom: 8px;
}
.cta-text p { color: rgba(255,255,255,0.8); font-size: 1rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--bg-dark-3); padding: 64px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid var(--border-dark);
}
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-logo-img { width: 36px; height: 36px; object-fit: contain; border-radius: 10px; }
.footer-brand-name {
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 700;
  color: var(--text-light);
}
.footer-desc { font-size: 0.87rem; color: var(--text-light-2); line-height: 1.7; margin-bottom: 6px; }
.footer-est { font-size: 0.78rem; color: var(--text-light-2); opacity: 0.6; }
.footer-links-col { display: flex; flex-direction: column; gap: 10px; }
.footer-links-col h5 {
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 700;
  color: var(--text-light); letter-spacing: 0.04em; margin-bottom: 4px;
}
.footer-links-col a, .footer-links-col p {
  font-size: 0.85rem; color: var(--text-light-2);
  transition: color var(--transition);
}
.footer-links-col a:hover { color: var(--blue-light); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding: 20px 0;
  font-size: 0.8rem; color: rgba(255,255,255,0.35);
}
.footer-credit { }
.footer-dev-link { color: var(--blue-light); font-weight: 500; }
.footer-dev-link:hover { color: var(--gold-light); }

/* ============================================================
   WhatsApp Float
   ============================================================ */
.whatsapp-float {
  position: fixed; bottom: 80px; right: 24px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: waPulse 2.5s ease infinite;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,0.55); animation: none; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.3); }
  50% { box-shadow: 0 4px 20px rgba(37,211,102,0.45), 0 0 0 12px rgba(37,211,102,0); }
}
.whatsapp-tooltip {
  position: absolute; right: 66px; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.75); color: #fff; white-space: nowrap;
  font-size: 0.78rem; padding: 6px 12px; border-radius: 8px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

/* ============================================================
   Back to Top
   ============================================================ */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,99,235,0.4);
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--blue-dark); transform: translateY(-3px); }

/* ============================================================
   Responsive Breakpoints
   ============================================================ */
@media (max-width: 960px) {
  .section { padding: 72px 0; }
  .section-center { margin-bottom: 48px; }
  .cta-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .hero h1 { font-size: 2.2rem; }
  .hero-tagline { font-size: 1rem; }
  .programs-grid,
  .faculty-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .about-img-badge { bottom: -10px; left: -10px; padding: 10px 14px; }
}
@media (max-width: 560px) {
  .section { padding: 48px 0; }
  .hero h1 { font-size: 1.9rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .programs-grid,
  .faculty-grid,
  .facilities-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-actions { width: 100%; flex-direction: column; }
  .cta-actions .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .brand-sub { display: none; }
  .section-title { font-size: 1.5rem; }
}
