/* ==========================================================================
   MIZORAM INSTITUTE OF PHARMACEUTICAL SCIENCES (MIPS) — DESIGN SYSTEM
   Modern, Prestigious Emerald Medical & Academic Aesthetic
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand Palette */
  --primary-dark: #043825;
  --primary: #064e3b;
  --primary-light: #047857;
  --primary-subtle: #ecfdf5;
  --accent: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.25);
  
  --gold-deep: #b45309;
  --gold: #d97706;
  --gold-light: #f59e0b;
  --gold-subtle: #fef3c7;

  /* Neutral Surface & Text */
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --white:     #ffffff;

  /* Semantic Feedback */
  --success: #10b981;
  --warning: #f59e0b;
  --danger:  #ef4444;
  --info:    #0284c7;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Elevations & Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-emerald: 0 10px 25px -5px rgba(6, 78, 59, 0.25);
  --shadow-gold: 0 10px 20px -5px rgba(217, 119, 6, 0.3);

  /* Borders & Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  color: var(--slate-800);
  background-color: var(--slate-50);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--slate-900);
  line-height: 1.25;
  font-weight: 700;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent);
}

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

/* ==========================================================================
   STATUTORY COMPLIANCE TICKER & TOP BAR
   ========================================================================== */

.statutory-bar {
  background: linear-gradient(90deg, #b91c1c 0%, #991b1b 100%);
  color: var(--white);
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.15);
  position: relative;
  z-index: 1001;
}

.statutory-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.top-bar {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.825rem;
  padding: 8px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.top-bar-info span, .top-bar-info a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
}

.top-bar-info a:hover {
  color: var(--accent);
}

.top-bar-accreditation {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.775rem;
  color: var(--gold-light);
  font-weight: 600;
}

/* ==========================================================================
   NAVIGATION BAR (Glassmorphism & Responsive Drawer)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all var(--transition-normal);
}

.navbar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(6, 78, 59, 0.15));
  transition: transform var(--transition-normal);
}

.brand-link:hover .brand-logo {
  transform: scale(1.04);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: -0.2px;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--slate-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.nav-links > li {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-link {
  padding: 8px 10px;
  font-size: 0.885rem;
  font-weight: 600;
  color: var(--slate-700);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--primary-subtle);
}

.nav-link.active {
  color: var(--primary);
  background: rgba(6, 78, 59, 0.08);
  font-weight: 700;
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white) !important;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(6, 78, 59, 0.25);
  transition: all var(--transition-normal);
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 1.2;
}

.nav-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(6, 78, 59, 0.35);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
}

.admin-nav-link {
  color: var(--slate-500) !important;
  font-size: 0.85rem;
  padding: 6px 12px;
}

.admin-nav-link:hover {
  color: var(--primary) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--slate-200);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--slate-700);
  font-size: 1.25rem;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: var(--white);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
}

.mobile-drawer.open .mobile-drawer-content {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--slate-200);
}

.close-drawer-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--slate-500);
  cursor: pointer;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--slate-700);
  font-size: 1rem;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background: var(--primary-subtle);
  color: var(--primary);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(6, 78, 59, 0.05) 0%, transparent 50%),
              linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 70px 24px 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--slate-200);
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid rgba(6, 78, 59, 0.15);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  width: fit-content;
  letter-spacing: 0.3px;
}

.hero-badge-pulse {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: 3.1rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
  letter-spacing: -0.8px;
}

.hero-title span {
  color: var(--gold);
  background: linear-gradient(135deg, #064e3b 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-motto {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--gold-deep);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--slate-600);
  line-height: 1.7;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(6, 78, 59, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.8);
  text-align: center;
  position: relative;
  max-width: 440px;
  width: 100%;
}

.hero-card-logo {
  width: 220px;
  height: 220px;
  margin: 0 auto 20px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(6, 78, 59, 0.15));
  animation: float 6s ease-in-out infinite;
}

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

.hero-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.hero-card-subtitle {
  font-size: 0.875rem;
  color: var(--slate-500);
  margin-bottom: 18px;
}

.hero-card-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.card-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--slate-100);
  color: var(--slate-700);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-pill.pci {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.card-pill.mscte {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* ==========================================================================
   METRICS & STATS STRIP
   ========================================================================== */

.stats-strip {
  background: var(--primary);
  color: var(--white);
  padding: 32px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   BUTTONS & ACTIONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.975rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  line-height: 1.25;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white) !important;
  box-shadow: 0 4px 12px rgba(6, 78, 59, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
  box-shadow: 0 6px 18px rgba(6, 78, 59, 0.35);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--white) !important;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, #fbbf24 100%);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.35);
}

.btn-outline {
  background: var(--white);
  color: var(--primary) !important;
  border: 1.5px solid var(--slate-300);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary-subtle);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 30px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-danger {
  background: var(--danger);
  color: var(--white) !important;
}

.btn-danger:hover {
  background: #dc2626;
}

/* ==========================================================================
   PAGE SECTIONS & CONTAINERS
   ========================================================================== */

.section {
  padding: 80px 24px;
}

.section-alt {
  background-color: var(--white);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 54px;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--slate-600);
  line-height: 1.65;
}

/* ==========================================================================
   CARDS & GRIDS
   ========================================================================== */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: rgba(6, 78, 59, 0.2);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 10px;
}

.card-text {
  font-size: 0.95rem;
  color: var(--slate-600);
  line-height: 1.6;
}

/* ==========================================================================
   TABLES (Curriculum, Fees & Hostels)
   ========================================================================== */

.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  margin: 20px 0;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.925rem;
}

.table th {
  background: var(--slate-100);
  color: var(--slate-800);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 2px solid var(--slate-200);
  font-family: var(--font-heading);
}

.table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--slate-200);
  color: var(--slate-700);
}

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

.table tbody tr:hover {
  background-color: var(--slate-50);
}

.table-highlight {
  font-weight: 700;
  color: var(--primary);
}

.table-total {
  background: var(--primary-subtle) !important;
  font-weight: 800;
  color: var(--primary);
  font-size: 1rem;
}

/* ==========================================================================
   FACULTY DIRECTORY
   ========================================================================== */

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-tab {
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  color: var(--slate-700);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-emerald);
}

.faculty-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.faculty-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(6, 78, 59, 0.25);
}

.faculty-photo-wrap {
  width: 100%;
  height: 240px;
  background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faculty-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-slow);
}

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

.faculty-avatar-fallback {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2.2rem;
  font-weight: 700;
  font-family: var(--font-heading);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.faculty-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.faculty-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
}

.faculty-role {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.faculty-dept {
  font-size: 0.825rem;
  color: var(--slate-500);
}

.faculty-quote {
  font-size: 0.875rem;
  color: var(--slate-600);
  font-style: italic;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--slate-100);
}

/* ==========================================================================
   PHOTO GALLERY & LIGHTBOX
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 280px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  background: var(--slate-200);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 78, 59, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: var(--white);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-pin-chip {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gold);
  color: var(--white);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.gallery-caption {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.gallery-category-pill {
  font-size: 0.75rem;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  margin-top: 4px;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 56, 37, 0.94);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-modal.open {
  display: flex;
}

.lightbox-content {
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: var(--white);
  margin-top: 16px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
}

.lightbox-close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

/* ==========================================================================
   FORMS & CONTROLS (Admissions & Admin)
   ========================================================================== */

.form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-md);
}

.form-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-subtle);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-section-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-700);
}

.form-label span.req {
  color: var(--danger);
}

.form-control, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--slate-300);
  background-color: var(--white);
  color: var(--slate-800);
  transition: all var(--transition-fast);
}

.form-control:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-help {
  font-size: 0.8rem;
  color: var(--slate-500);
}

.photo-upload-zone {
  border: 2px dashed var(--slate-300);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  background: var(--slate-50);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.photo-upload-zone:hover {
  border-color: var(--primary);
  background: var(--primary-subtle);
}

.photo-preview {
  width: 120px;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin: 12px auto 0;
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   ADMIN PORTAL
   ========================================================================== */

.admin-header {
  background: var(--primary-dark);
  color: var(--white);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-tabs-nav {
  display: flex;
  gap: 4px;
  background: var(--slate-100);
  padding: 6px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  margin-bottom: 24px;
  overflow-x: auto;
}

.admin-tab-btn {
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  background: none;
  color: var(--slate-600);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.admin-tab-btn:hover {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.6);
}

.admin-tab-btn.active {
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.admin-tab-pane {
  display: none;
}

.admin-tab-pane.active {
  display: block;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-pending {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-approved {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.badge-rejected {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.badge-waitlist {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fcd34d;
}

.badge-reserved {
  background: #cffafe;
  color: #0e7490;
  border: 1px solid #67e8f9;
}

.capacity-meter {
  width: 100%;
  height: 10px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
  margin: 8px 0;
}

.capacity-meter-bar {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  border-radius: 9999px;
  transition: width 0.5s ease, background 0.3s ease;
}

.capacity-meter-bar.full {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 70px 24px 24px;
  border-top: 4px solid var(--gold);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 50px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 18px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.825rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    align-items: center;
  }
  .hero-desc {
    margin: 0 auto;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .stat-item:nth-child(2) {
    border-right: none;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1180px) {
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
}

.badge-waitlist {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-weight: 700;
}

.capacity-meter {
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
  height: 10px;
  position: relative;
  margin: 10px 0;
}

.capacity-meter-bar {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  transition: width 0.6s ease;
}

.capacity-meter-bar.full {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 12px;
  }
  .grid-3, .grid-2, .grid-4 {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .form-grid-2, .form-grid-3 {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   NAVBAR DROPDOWNS & SUBMENUS
   ========================================================================== */

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-toggle {
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

.nav-dropdown-toggle i.fa-chevron-down {
  font-size: 0.7rem;
  transition: transform var(--transition-fast);
  margin-left: 3px;
  color: var(--slate-400);
}

.nav-dropdown:hover .nav-dropdown-toggle i.fa-chevron-down {
  transform: rotate(180deg);
  color: var(--primary);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 235px;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1100;
  display: flex;
  flex-direction: column;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  color: var(--slate-700);
  font-size: 0.865rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.dropdown-item:hover {
  background: var(--primary-subtle);
  color: var(--primary);
  padding-left: 22px;
}

.dropdown-item i {
  color: var(--primary-light);
  font-size: 0.95rem;
  width: 18px;
  text-align: center;
}

/* Mobile Drawer Dropdowns */
.mobile-dropdown {
  width: 100%;
}

.mobile-submenu {
  list-style: none;
  padding: 4px 0 6px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-sub-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 0.865rem;
  font-weight: 600;
  color: var(--slate-600);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.mobile-sub-link:hover, .mobile-sub-link.active {
  color: var(--primary);
  background: var(--primary-subtle);
}

/* ==========================================================================
   TOP ANNOUNCEMENT TICKER (Landing Page)
   ========================================================================== */

.top-ticker-bar {
  background: #0f172a;
  color: #ffffff;
  border-bottom: 2px solid var(--gold);
  padding: 9px 16px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 990;
}

.top-ticker-inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ticker-left {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  flex: 1;
}

.ticker-badge {
  background: #dc2626;
  color: #ffffff;
  font-size: 0.725rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ticker-text {
  color: #e2e8f0;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker-link {
  color: var(--gold-light);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.825rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: color var(--transition-fast);
  flex-shrink: 0;
}

.ticker-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================================================
   FAQ ACCORDIONS
   ========================================================================== */

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 200ms ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.faq-item:hover {
  border-color: var(--primary-light);
  box-shadow: 0 4px 12px rgba(6, 78, 59, 0.05);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(6, 78, 59, 0.08);
}

.faq-question {
  width: 100%;
  padding: 18px 22px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate-800);
  transition: color var(--transition-fast);
}

.faq-item.active .faq-question {
  color: var(--primary);
  background: var(--primary-subtle);
}

.faq-toggle-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--slate-100);
  color: var(--slate-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: transform 250ms ease, background 200ms ease, color 200ms ease;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
  background: var(--primary);
  color: #ffffff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms cubic-bezier(0.16, 1, 0.3, 1), padding 200ms ease;
  padding: 0 22px;
  color: var(--slate-600);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 600px;
  padding: 16px 22px 22px;
}

/* ==========================================================================
   ADMIN INCOMING ADMISSION TOAST & PULSE BADGE
   ========================================================================== */

.admin-admission-alert-banner {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1.5px solid #93c5fd;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
  animation: slideDown 300ms ease-out;
}

.pulse-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  min-width: 18px;
  height: 18px;
  background: #ef4444;
  color: #ffffff;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 800;
  margin-left: 6px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Print Stylesheet for Certificate Generation */
@media print {
  body {
    background: #ffffff;
    color: #000000;
  }
  .site-header, .statutory-bar, .top-bar, .site-footer, .btn, .no-print, .top-ticker-bar {
    display: none !important;
  }
}
