/* Fonts are now loaded via header.php for better performance */

:root {
  /* Default Theme (macOS Monterey Inspired) */
  --bg-color: #f5f5f7;
  --text-primary: #1d1d1f;
  --text-secondary: #86868b;
  --primary-color: #0071e3;
  --primary-hover: #0077ed;
  --primary-gradient: linear-gradient(135deg, #0071e3 0%, #c724b1 100%);
  --secondary-color: #e8e8ed;
  --card-bg: rgba(255, 255, 255, 0.8);
  --border-color: #d2d2d7;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.04);
  
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-xl: 2rem;
  
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

/* ==========================================================================
   10 macOS Themes (DO NOT DISTURB)
   ========================================================================== */

/* 1. macOS Monterey Light (Default - Rich Pink/Blue) */
.theme-mac_monterey {
  --bg-color: #f5f5f7;
  --text-primary: #1d1d1f;
  --text-secondary: #86868b;
  --primary-color: #0071e3;
  --primary-hover: #0077ed;
  --primary-gradient: linear-gradient(135deg, #0071e3 0%, #c724b1 100%);
  --secondary-color: #e8e8ed;
  --card-bg: rgba(255, 255, 255, 0.85);
  --border-color: #d2d2d7;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
}

/* 2. macOS Sequoia Light (Warm Sand & Amber) */
.theme-mac_sequoia_light {
  --bg-color: #fbf8f3;
  --text-primary: #2d261e;
  --text-secondary: #8c8275;
  --primary-color: #d97706;
  --primary-hover: #b45309;
  --primary-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --secondary-color: #f0e6d6;
  --card-bg: rgba(255, 255, 255, 0.9);
  --border-color: #eaddcd;
  --glass-bg: rgba(251, 248, 243, 0.75);
  --glass-border: rgba(255, 255, 255, 0.5);
}

/* 3. macOS Sequoia Dark (Deep Forest Amber) */
.theme-mac_sequoia_dark {
  --bg-color: #1a1510;
  --text-primary: #f5f0eb;
  --text-secondary: #9c9085;
  --primary-color: #f59e0b;
  --primary-hover: #fbbf24;
  --primary-gradient: linear-gradient(135deg, #b45309 0%, #f59e0b 100%);
  --secondary-color: #2e241c;
  --card-bg: rgba(35, 28, 22, 0.8);
  --border-color: #423529;
  --glass-bg: rgba(1a, 15, 10, 0.8);
  --glass-border: rgba(255, 255, 255, 0.05);
}

/* 4. macOS Ventura (Bright Sunburst Orange) */
.theme-mac_ventura {
  --bg-color: #fffbeb;
  --text-primary: #312e81;
  --text-secondary: #6366f1;
  --primary-color: #ea580c;
  --primary-hover: #c2410c;
  --primary-gradient: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  --secondary-color: #fee2e2;
  --card-bg: rgba(255, 255, 255, 0.9);
  --border-color: #fed7aa;
  --glass-bg: rgba(255, 251, 235, 0.75);
  --glass-border: rgba(255, 255, 255, 0.5);
}

/* 5. macOS Sonoma Green (Organic Mint & Forest) */
.theme-mac_sonoma {
  --bg-color: #f0fbf4;
  --text-primary: #14532d;
  --text-secondary: #16a34a;
  --primary-color: #15803d;
  --primary-hover: #166534;
  --primary-gradient: linear-gradient(135deg, #4ade80 0%, #15803d 100%);
  --secondary-color: #dcfce7;
  --card-bg: rgba(255, 255, 255, 0.9);
  --border-color: #bbf7d0;
  --glass-bg: rgba(240, 251, 244, 0.75);
  --glass-border: rgba(255, 255, 255, 0.5);
}

/* 6. macOS Big Sur Blue (Vibrant Wave Teal) */
.theme-mac_big_sur {
  --bg-color: #f0f9ff;
  --text-primary: #0f172a;
  --text-secondary: #0284c7;
  --primary-color: #0284c7;
  --primary-hover: #0369a1;
  --primary-gradient: linear-gradient(135deg, #0ea5e9 0%, #0d9488 100%);
  --secondary-color: #e0f2fe;
  --card-bg: rgba(255, 255, 255, 0.9);
  --border-color: #bae6fd;
  --glass-bg: rgba(240, 249, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.5);
}

/* 7. macOS Mojave Dark (Desert Slate & Sand) */
.theme-mac_mojave_dark {
  --bg-color: #1e1e1e;
  --text-primary: #f5f5f7;
  --text-secondary: #8e8e93;
  --primary-color: #d4af37;
  --primary-hover: #e5c158;
  --primary-gradient: linear-gradient(135deg, #434343 0%, #000000 100%);
  --secondary-color: #2c2c2e;
  --card-bg: rgba(30, 30, 30, 0.85);
  --border-color: #3a3a3c;
  --glass-bg: rgba(30, 30, 30, 0.8);
  --glass-border: rgba(255, 255, 255, 0.05);
}

/* 8. macOS Graphite (Minimalist Monochrome) */
.theme-mac_graphite {
  --bg-color: #f3f3f3;
  --text-primary: #333333;
  --text-secondary: #7f7f7f;
  --primary-color: #555555;
  --primary-hover: #444444;
  --primary-gradient: linear-gradient(135deg, #8e8e93 0%, #3a3a3c 100%);
  --secondary-color: #e5e5e5;
  --card-bg: rgba(255, 255, 255, 0.9);
  --border-color: #cccccc;
  --glass-bg: rgba(243, 243, 243, 0.8);
  --glass-border: rgba(255, 255, 255, 0.4);
}

/* 9. macOS Glass Light (Frosted Pastel Sky) */
.theme-mac_glass_light {
  --bg-color: #e0e7ff;
  --text-primary: #1e1b4b;
  --text-secondary: #3730a3;
  --primary-color: #4338ca;
  --primary-hover: #3730a3;
  --primary-gradient: linear-gradient(135deg, rgba(67, 56, 202, 0.9) 0%, rgba(14, 165, 233, 0.9) 100%);
  --secondary-color: rgba(255, 255, 255, 0.45);
  --card-bg: rgba(255, 255, 255, 0.5);
  --border-color: rgba(255, 255, 255, 0.55);
  --glass-bg: rgba(255, 255, 255, 0.35);
  --glass-border: rgba(255, 255, 255, 0.45);
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* 10. macOS Glass Dark (Glowing Neon Void) */
.theme-mac_glass_dark {
  --bg-color: #0b0f19;
  --text-primary: #e0e7ff;
  --text-secondary: #818cf8;
  --primary-color: #6366f1;
  --primary-hover: #4f46e5;
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --secondary-color: rgba(255, 255, 255, 0.05);
  --card-bg: rgba(17, 24, 39, 0.6);
  --border-color: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(10, 15, 30, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}


/* ==========================================================================
   17 Classic Themes (Integrated from FP Project)
   ========================================================================== */

/* 11. Dark Slate */
.theme-dark {
  --bg-color: #0f172a;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --card-bg: rgba(30, 41, 59, 0.85);
  --border-color: #334155;
  --primary-color: #38bdf8;
  --primary-hover: #0ea5e9;
  --primary-gradient: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  --secondary-color: #1e293b;
  --glass-bg: rgba(15, 23, 42, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
}

/* 12. Sepia Gold */
.theme-sepia {
  --bg-color: #f5efe6;
  --text-primary: #433422;
  --text-secondary: #6f5d47;
  --card-bg: rgba(234, 226, 183, 0.85);
  --border-color: #d6ccb1;
  --primary-color: #b45309;
  --primary-hover: #92400e;
  --primary-gradient: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  --secondary-color: #efe8dd;
  --glass-bg: rgba(245, 239, 230, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
}

/* 13. Academic Blue */
.theme-academic_blue {
  --bg-color: #f5f7ff;
  --text-primary: #0f2d59;
  --text-secondary: #475569;
  --card-bg: rgba(255, 255, 255, 0.9);
  --border-color: #c7d2fe;
  --primary-color: #3b82f6;
  --primary-hover: #2563eb;
  --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  --secondary-color: #e0e7ff;
  --glass-bg: rgba(245, 247, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.5);
}

/* 14. Forest Emerald */
.theme-forest_emerald {
  --bg-color: #f4fbf7;
  --text-primary: #0f172a;
  --text-secondary: #047857;
  --card-bg: rgba(255, 255, 255, 0.9);
  --border-color: #d1fae5;
  --primary-color: #059669;
  --primary-hover: #047857;
  --primary-gradient: linear-gradient(135deg, #10b981 0%, #047857 100%);
  --secondary-color: #ecfdf5;
  --glass-bg: rgba(244, 251, 247, 0.75);
  --glass-border: rgba(255, 255, 255, 0.5);
}

/* 15. Vintage Plum */
.theme-vintage_plum {
  --bg-color: #faf5ff;
  --text-primary: #1e1b4b;
  --text-secondary: #7c3aed;
  --card-bg: rgba(255, 255, 255, 0.9);
  --border-color: #e9d5ff;
  --primary-color: #8b5cf6;
  --primary-hover: #7c3aed;
  --primary-gradient: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
  --secondary-color: #f5f3ff;
  --glass-bg: rgba(250, 245, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.5);
}

/* 16. Sunset Amber */
.theme-sunset_amber {
  --bg-color: #fffaf5;
  --text-primary: #0f172a;
  --text-secondary: #ea580c;
  --card-bg: rgba(255, 255, 255, 0.9);
  --border-color: #fed7aa;
  --primary-color: #f97316;
  --primary-hover: #ea580c;
  --primary-gradient: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
  --secondary-color: #fff7ed;
  --glass-bg: rgba(255, 250, 245, 0.75);
  --glass-border: rgba(255, 255, 255, 0.5);
}

/* 17. Ocean Breeze */
.theme-ocean_breeze {
  --bg-color: #f0f9ff;
  --text-primary: #0f172a;
  --text-secondary: #0369a1;
  --card-bg: rgba(255, 255, 255, 0.9);
  --border-color: #bae6fd;
  --primary-color: #0284c7;
  --primary-hover: #0369a1;
  --primary-gradient: linear-gradient(135deg, #38bdf8 0%, #0369a1 100%);
  --secondary-color: #e0f2fe;
  --glass-bg: rgba(240, 249, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.5);
}

/* 18. Crimson Ruby */
.theme-crimson_ruby {
  --bg-color: #fef2f2;
  --text-primary: #7f1d1d;
  --text-secondary: #b91c1c;
  --card-bg: rgba(255, 255, 255, 0.9);
  --border-color: #fecaca;
  --primary-color: #b91c1c;
  --primary-hover: #ef4444;
  --primary-gradient: linear-gradient(135deg, #ef4444 0%, #991b1b 100%);
  --secondary-color: #fee2e2;
  --glass-bg: rgba(254, 242, 242, 0.75);
  --glass-border: rgba(255, 255, 255, 0.5);
}

/* 19. Nord Minimal */
.theme-nord_minimal {
  --bg-color: #e5e9f0;
  --text-primary: #2e3440;
  --text-secondary: #4c566a;
  --card-bg: rgba(236, 239, 244, 0.9);
  --border-color: #d8dee9;
  --primary-color: #5e81ac;
  --primary-hover: #81a1c1;
  --primary-gradient: linear-gradient(135deg, #81a1c1 0%, #5e81ac 100%);
  --secondary-color: #eceff4;
  --glass-bg: rgba(229, 233, 240, 0.75);
  --glass-border: rgba(255, 255, 255, 0.5);
}

/* 20. Unacademy Mint */
.theme-unacademy_mint {
  --bg-color: #f5fdf9;
  --text-primary: #191d23;
  --text-secondary: #00ab6c;
  --card-bg: rgba(255, 255, 255, 0.9);
  --border-color: #a7f3d0;
  --primary-color: #00c37b;
  --primary-hover: #00ab6c;
  --primary-gradient: linear-gradient(135deg, #34d399 0%, #00ab6c 100%);
  --secondary-color: #ecfdf5;
  --glass-bg: rgba(245, 253, 249, 0.75);
  --glass-border: rgba(255, 255, 255, 0.5);
}

/* 21. Cyberpunk Neon */
.theme-cyberpunk_neon {
  --bg-color: #0d0c1d;
  --text-primary: #00ffcc;
  --text-secondary: #ff0055;
  --card-bg: rgba(26, 25, 54, 0.85);
  --border-color: #ff0055;
  --primary-color: #ff0055;
  --primary-hover: #ff3377;
  --primary-gradient: linear-gradient(135deg, #ff0055 0%, #00ffcc 100%);
  --secondary-color: #1a1936;
  --glass-bg: rgba(13, 12, 29, 0.8);
  --glass-border: rgba(255, 255, 255, 0.1);
}

/* 22. Dracula Vampire */
.theme-dracula_vampire {
  --bg-color: #282a36;
  --text-primary: #f8f8f2;
  --text-secondary: #bd93f9;
  --card-bg: rgba(52, 55, 70, 0.85);
  --border-color: #44475a;
  --primary-color: #ff79c6;
  --primary-hover: #ff92d0;
  --primary-gradient: linear-gradient(135deg, #ff79c6 0%, #bd93f9 100%);
  --secondary-color: #343746;
  --glass-bg: rgba(40, 42, 54, 0.8);
  --glass-border: rgba(255, 255, 255, 0.05);
}

/* 23. Rose Gold Romance */
.theme-rosegold_romance {
  --bg-color: #fff5f5;
  --text-primary: #5c3d47;
  --text-secondary: #e57c9f;
  --card-bg: rgba(255, 232, 232, 0.9);
  --border-color: #ffd1d1;
  --primary-color: #d4af37;
  --primary-hover: #c59f28;
  --primary-gradient: linear-gradient(135deg, #e57c9f 0%, #d4af37 100%);
  --secondary-color: #ffe8e8;
  --glass-bg: rgba(255, 245, 245, 0.75);
  --glass-border: rgba(255, 255, 255, 0.5);
}

/* 24. Coffee Latte */
.theme-coffee_latte {
  --bg-color: #fbf8f3;
  --text-primary: #3e2723;
  --text-secondary: #a1887f;
  --card-bg: rgba(239, 235, 233, 0.9);
  --border-color: #d7ccc8;
  --primary-color: #8d6e63;
  --primary-hover: #795548;
  --primary-gradient: linear-gradient(135deg, #a1887f 0%, #8d6e63 100%);
  --secondary-color: #efebe9;
  --glass-bg: rgba(251, 248, 243, 0.75);
  --glass-border: rgba(255, 255, 255, 0.5);
}

/* 25. Slate Graphite */
.theme-slate_graphite {
  --bg-color: #1e2530;
  --text-primary: #e2e8f0;
  --text-secondary: #818cf8;
  --card-bg: rgba(39, 48, 63, 0.85);
  --border-color: #3d4b5f;
  --primary-color: #6366f1;
  --primary-hover: #4f46e5;
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
  --secondary-color: #27303f;
  --glass-bg: rgba(30, 37, 48, 0.8);
  --glass-border: rgba(255, 255, 255, 0.05);
}

/* 26. Royal Amethyst */
.theme-royal_amethyst {
  --bg-color: #1a0b2e;
  --text-primary: #e9d5ff;
  --text-secondary: #c084fc;
  --card-bg: rgba(45, 18, 77, 0.85);
  --border-color: #4c1d95;
  --primary-color: #a855f7;
  --primary-hover: #9333ea;
  --primary-gradient: linear-gradient(135deg, #a855f7 0%, #c084fc 100%);
  --secondary-color: #2d124d;
  --glass-bg: rgba(26, 11, 46, 0.8);
  --glass-border: rgba(255, 255, 255, 0.05);
}

/* 27. Mint Green Sage */
.theme-mint_green {
  --bg-color: #f2f7f4;
  --text-primary: #2f4f4f;
  --text-secondary: #6aa884;
  --card-bg: rgba(225, 237, 230, 0.9);
  --border-color: #b4cfc0;
  --primary-color: #4e8a6c;
  --primary-hover: #3b6b52;
  --primary-gradient: linear-gradient(135deg, #6aa884 0%, #4e8a6c 100%);
  --secondary-color: #e1ede6;
  --glass-bg: rgba(242, 247, 244, 0.75);
  --glass-border: rgba(255, 255, 255, 0.5);
}


/* ==========================================================================
   Global Base CSS Override using CSS variables
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

/* Utilities */
.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Navbar */
.mobile-menu-label, .mobile-plus-icon {
  display: none;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

.navbar-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: var(--primary-gradient);
  transition: width 0.3s ease;
}

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

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white !important;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Hero Section */
.hero {
  padding: 8rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.05em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* Cards */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-glass);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.4s ease, 
              border-color 0.4s ease;
}

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

/* Theme Switcher Styling */
.theme-selector-container {
  position: relative;
  display: inline-block;
}

.theme-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--secondary-color);
  color: var(--text-primary);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.theme-dropdown {
  position: absolute;
  right: 0;
  top: 120%;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  box-shadow: var(--shadow-lg), 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  width: 220px;
  max-height: 480px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.theme-dropdown.show {
  display: flex !important;
}

.theme-main-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.theme-advance-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.6rem;
  margin-top: 0.35rem;
  border-top: 1px dashed var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--surface-glass-1);
  transition: all 0.2s ease;
  user-select: none;
}

.theme-advance-toggle:hover {
  background: var(--secondary-color);
}

.theme-advance-list {
  margin-top: 0.3rem;
  padding-top: 0.3rem;
  border-top: 1px solid var(--border-color);
}

.theme-advance-grid {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.theme-advance-grid::-webkit-scrollbar {
  width: 4px;
}
.theme-advance-grid::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.theme-sub-header {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  padding: 0.35rem 0.5rem 0.15rem;
  opacity: 0.85;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 500;
  transition: all 0.2s ease;
  color: var(--text-primary);
}

.theme-option:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateX(2px);
}

.theme-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

/* Footer */
.footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0 1.25rem;
  margin-top: 3rem;
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

/* Micro animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Grid System */
.grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr; /* Default to 1 column on mobile */
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

.col-span-1 { grid-column: span 1 / span 1; }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-3 { grid-column: span 3 / span 3; }
.col-span-4 { grid-column: span 4 / span 4; }
.col-span-5 { grid-column: span 5 / span 5; }
.col-span-6 { grid-column: span 6 / span 6; }
.col-span-7 { grid-column: span 7 / span 7; }
.col-span-8 { grid-column: span 8 / span 8; }
.col-span-9 { grid-column: span 9 / span 9; }
.col-span-10 { grid-column: span 10 / span 10; }
.col-span-11 { grid-column: span 11 / span 11; }
.col-span-12 { grid-column: span 12 / span 12; }

/* Small screens (640px and up) */
@media (min-width: 640px) {
  .sm\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sm\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .sm\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sm\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  
  .sm\:col-span-1 { grid-column: span 1 / span 1; }
  .sm\:col-span-2 { grid-column: span 2 / span 2; }
  .sm\:col-span-3 { grid-column: span 3 / span 3; }
  .sm\:col-span-4 { grid-column: span 4 / span 4; }
  .sm\:col-span-5 { grid-column: span 5 / span 5; }
  .sm\:col-span-6 { grid-column: span 6 / span 6; }
  .sm\:col-span-7 { grid-column: span 7 / span 7; }
  .sm\:col-span-8 { grid-column: span 8 / span 8; }
  .sm\:col-span-9 { grid-column: span 9 / span 9; }
  .sm\:col-span-10 { grid-column: span 10 / span 10; }
  .sm\:col-span-11 { grid-column: span 11 / span 11; }
  .sm\:col-span-12 { grid-column: span 12 / span 12; }
}

/* Medium screens (768px and up) - Desktop & Tablets */
@media (min-width: 768px) {
  .md\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .md\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  
  .md\:col-span-1 { grid-column: span 1 / span 1; }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:col-span-3 { grid-column: span 3 / span 3; }
  .md\:col-span-4 { grid-column: span 4 / span 4; }
  .md\:col-span-5 { grid-column: span 5 / span 5; }
  .md\:col-span-6 { grid-column: span 6 / span 6; }
  .md\:col-span-7 { grid-column: span 7 / span 7; }
  .md\:col-span-8 { grid-column: span 8 / span 8; }
  .md\:col-span-9 { grid-column: span 9 / span 9; }
  .md\:col-span-10 { grid-column: span 10 / span 10; }
  .md\:col-span-11 { grid-column: span 11 / span 11; }
  .md\:col-span-12 { grid-column: span 12 / span 12; }
}

/* Large screens (1024px and up) - Standard PC */
@media (min-width: 1024px) {
  .lg\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  
  .lg\:col-span-1 { grid-column: span 1 / span 1; }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
  .lg\:col-span-4 { grid-column: span 4 / span 4; }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-6 { grid-column: span 6 / span 6; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
  .lg\:col-span-8 { grid-column: span 8 / span 8; }
  .lg\:col-span-9 { grid-column: span 9 / span 9; }
  .lg\:col-span-10 { grid-column: span 10 / span 10; }
  .lg\:col-span-11 { grid-column: span 11 / span 11; }
  .lg\:col-span-12 { grid-column: span 12 / span 12; }
}

/* Extra Large screens (1280px and up) - Wide PC */
@media (min-width: 1280px) {
  .xl\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .xl\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .xl\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .xl\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .xl\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  
  .xl\:col-span-1 { grid-column: span 1 / span 1; }
  .xl\:col-span-2 { grid-column: span 2 / span 2; }
  .xl\:col-span-3 { grid-column: span 3 / span 3; }
  .xl\:col-span-4 { grid-column: span 4 / span 4; }
  .xl\:col-span-5 { grid-column: span 5 / span 5; }
  .xl\:col-span-6 { grid-column: span 6 / span 6; }
  .xl\:col-span-7 { grid-column: span 7 / span 7; }
  .xl\:col-span-8 { grid-column: span 8 / span 8; }
  .xl\:col-span-9 { grid-column: span 9 / span 9; }
  .xl\:col-span-10 { grid-column: span 10 / span 10; }
  .xl\:col-span-11 { grid-column: span 11 / span 11; }
  .xl\:col-span-12 { grid-column: span 12 / span 12; }
}

/* ==========================================================================
   Hero Image Slider Styles
   ========================================================================== */
.slider-container {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  background: #000;
}

.slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 2;
}

.slide.active {
  opacity: 1;
  z-index: 3;
}

.slide-content {
  text-align: center;
  color: white;
  z-index: 4;
  padding: 0 1.5rem;
  max-width: 900px;
  animation: slideContentUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.slide-content .hero-title {
  color: white !important;
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.slide-content .hero-subtitle {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Slider Controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 2rem; }
.next-btn { right: 2rem; }

/* Dots indicators */
.slider-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.75rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: white;
  width: 28px;
  border-radius: 20px;
}

@media (max-width: 768px) {
  .slider-container {
    height: 480px;
  }
  .slide-content .hero-title {
    font-size: 2.25rem;
  }
  .slide-content .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .prev-btn { left: 1rem; }
  .next-btn { right: 1rem; }
}

/* ==========================================================================
   Navigation Dropdown Menu Styles
   ========================================================================== */
.nav-item-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--bg-color); /* Solid background to prevent overlap */
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.5rem 0;
  min-width: 220px;
  box-shadow: var(--shadow-lg), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.nav-item-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  padding: 0.75rem 1.5rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: block;
  text-align: left;
}

.dropdown-item:hover {
  background-color: var(--secondary-color);
  color: var(--text-primary);
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.nav-dropdown-toggle .fa-caret-down {
  transition: transform 0.3s ease;
}

.nav-item-dropdown:hover .nav-dropdown-toggle .fa-caret-down {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  .nav-dropdown-menu {
    display: none !important; /* Collapse by default on mobile */
    position: static;
    transform: none;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
    min-width: 100%;
    align-items: center;
  }
  .dropdown-item {
    text-align: center;
    padding: 0.5rem 0;
  }
  .nav-dropdown-toggle::after {
    display: none;
  }
}

/* /* ==========================================================================
   Top Info & Utility Bar
   ========================================================================== */
.top-bar {
  background: var(--card-bg);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border-bottom: 1px solid var(--border-color);
  padding: 0.35rem 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  position: relative;
  overflow: hidden;
}

.top-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-gradient);
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.75rem;
  width: 100%;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  min-width: 0;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.top-bar-info a {
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

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

.top-bar-social-inline {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding-left: 0.65rem;
  border-left: 1px solid var(--border-color);
}

.top-bar-social-inline a {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  color: var(--text-secondary);
  background: var(--surface-glass-1);
  border: 1px solid var(--border-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

.top-bar-social-inline a:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: var(--card-bg);
  transform: translateY(-1px);
}

.top-bar-adm-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-color);
  background: rgba(0, 113, 227, 0.08);
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 113, 227, 0.18);
  white-space: nowrap;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.top-bar-btn {
  font-family: var(--font-sans);
  background: var(--primary-gradient);
  color: white !important;
  padding: 0.25rem 0.65rem;
  border-radius: var(--border-radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  white-space: nowrap;
}

.top-bar-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 113, 227, 0.3);
}

/* Middle Brand Header */
.mid-header {
  padding: 1.5rem 0;
  background: var(--bg-color);
}

.mid-header-container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo-img {
  width: 90px;
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
}

.school-info h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.school-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .top-bar-container {
    justify-content: center;
    text-align: center;
  }
  .mid-header-container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .school-info h2 {
    font-size: 1.8rem;
  }
}

/* ==========================================================================
   Mobile Responsive Hamburger Menu & Toggler Styles
   ========================================================================== */
.navbar-toggler {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: opacity 0.2s ease;
}

.navbar-toggler:hover {
  opacity: 0.8;
}

/* Hide mobile brand element on desktop */
.navbar-brand-mobile {
  display: none !important;
}

/* Show on mobile — inside navbar as merged bar left side */
@media (max-width: 768px) {
  .navbar-brand-mobile {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    order: 1 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 75px) !important;
    text-decoration: none !important;
    overflow: hidden !important;
  }

  .navbar-brand-mobile img {
    width: 28px !important;
    height: 28px !important;
    border-radius: 6px !important;
    flex-shrink: 0 !important;
    border: none !important;
    background: transparent !important;
  }

  .navbar-brand-mobile .brand-name {
    font-size: clamp(0.92rem, 4.1vw, 1.12rem) !important;
    font-weight: 800 !important;
    color: white !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    letter-spacing: -0.015em !important;
  }
}

@media (max-width: 1200px) {
  .navbar-nav {
    gap: 1rem;
    font-size: 0.9rem;
  }
}

/* Global nav-controls and theme text helpers */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.theme-btn-text {
  display: inline;
}

@media (max-width: 768px) {
  /* ── MOBILE: mid-header hidden, navbar is the single compact bar ── */
  .mid-header {
    display: none !important;
  }

  /* Navbar = single merged bar on mobile */
  .navbar {
    background: var(--primary-gradient) !important;
    padding: 0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2) !important;
  }

  /* MENU text — completely hide */
  .mobile-menu-label {
    display: none !important;
  }

  .top-bar {
    display: none !important;
  }
  
  .top-bar-buttons, .top-bar-social {
    display: none !important;
  }
  
  .top-bar-container {
    justify-content: center;
    padding: 0.25rem 1rem;
  }

  .navbar-toggler {
    display: block !important;
    color: white !important;
    font-size: 1.15rem !important;
    font-weight: bold !important;
    padding: 0.2rem 0.4rem !important;
  }

  .navbar .container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 0.35rem 0.5rem !important;
    min-height: 44px !important;
    position: relative !important;
    gap: 0 !important;
  }

  .mobile-menu-label {
    display: none !important;
    order: 1 !important;
  }

  .nav-controls {
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
    order: 2 !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
  }

  .nav-controls .theme-dropdown-btn {
    padding: 0 !important;
    min-width: 28px !important;
    width: 28px !important;
    height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    font-size: 0.72rem !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
  }

  .navbar-toggler {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
  }

  .theme-btn-text {
    display: none !important;
  }

  /* Mobile Open Menu Card Container - FORCED 100% FULL WIDTH IN NEW ROW BELOW MENU BANNER */
  .navbar-nav {
    display: none !important;
    flex-direction: column !important;
    width: 100% !important;
    flex-basis: 100% !important;
    order: 99 !important;
    gap: 0 !important;
    padding: 0 !important;
    background: var(--card-bg) !important;
    border-radius: 0 0 12px 12px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18) !important;
    border: 1px solid var(--border-color) !important;
    border-top: none !important;
    overflow-y: auto !important;
    max-height: calc(100svh - 54px) !important;
    align-items: stretch !important;
  }

  .navbar-nav.mobile-open {
    display: flex !important;
  }



  .navbar-nav > li {
    border-bottom: 1px solid var(--border-color);
  }

  .navbar-nav > li:last-child {
    border-bottom: none;
  }

  .navbar-nav .nav-link {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.9rem 1.25rem !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    color: var(--text-primary) !important;
    text-transform: uppercase !important;
    width: 100% !important;
  }

  .navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
  }

  .mobile-plus-icon {
    display: inline-block !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: var(--text-secondary) !important;
  }

  .nav-item-dropdown.active-mobile .mobile-plus-icon {
    content: '-';
    transform: rotate(45deg);
  }

  .nav-item-dropdown:hover .nav-dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: none;
  }

  /* Expanded Sub-Menu styling */
  .nav-item-dropdown.active-mobile .nav-dropdown-menu {
    display: flex !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    background: var(--secondary-color) !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }

  .nav-item-dropdown.active-mobile .dropdown-item {
    padding: 0.6rem 1rem 0.6rem 2rem !important;
    border-bottom: 1px solid var(--border-color) !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: var(--text-secondary) !important;
    text-align: left !important;
    justify-content: flex-start !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.55rem !important;
    flex-direction: row !important;
  }

  .nav-item-dropdown.active-mobile .dropdown-item i {
    flex-shrink: 0 !important;
    text-align: center !important;
    width: 16px !important;
    order: 0 !important;
  }

  .nav-item-dropdown.active-mobile .dropdown-item:hover {
    color: var(--primary-color) !important;
  }
  
  .theme-selector-container {
    position: relative !important;
    width: auto !important;
    margin-top: 0 !important;
  }

  /* Floating absolute display for theme selector on mobile */
  .theme-dropdown {
    position: absolute !important;
    top: 130% !important;
    right: 0 !important;
    left: auto !important;
    width: 230px !important;
    max-width: 90vw !important;
    box-shadow: var(--shadow-lg) !important;
    border: 1px solid var(--border-color) !important;
    background-color: var(--card-bg) !important;
    z-index: 1000 !important;
    display: none;
    margin: 0 !important;
  }

  .theme-dropdown.show {
    display: flex !important;
    flex-direction: column !important;
  }
}

/* ==========================================================================
   Admin Panel Theme Overrides
   ========================================================================== */
[class*="theme-"] .min-h-screen.bg-gray-100 {
    background-color: var(--bg-color) !important;
    color: var(--text-primary) !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}
[class*="theme-"] header.bg-white,
[class*="theme-"] header.bg-white.shadow {
    background-color: var(--card-bg) !important;
    border-bottom: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: background-color 0.3s ease;
}
[class*="theme-"] header.bg-white h2 {
    color: var(--text-primary) !important;
}
[class*="theme-"] nav.bg-white,
[class*="theme-"] nav.border-b {
    background-color: var(--card-bg) !important;
    border-bottom: 1px solid var(--border-color) !important;
    transition: background-color 0.3s ease;
}
[class*="theme-"] nav.bg-white a,
[class*="theme-"] nav.bg-white button,
[class*="theme-"] nav.border-b a,
[class*="theme-"] nav.border-b button,
[class*="theme-"] nav.bg-white div,
[class*="theme-"] nav.border-b div {
    color: var(--text-primary) !important;
}
[class*="theme-"] nav.bg-white a:hover,
[class*="theme-"] nav.border-b a:hover {
    color: var(--primary-color) !important;
}
[class*="theme-"] .bg-white.overflow-hidden.shadow-sm,
[class*="theme-"] .bg-white.shadow-sm,
[class*="theme-"] .bg-white.overflow-hidden.shadow {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-md) !important;
    transition: background-color 0.3s ease;
}
[class*="theme-"] .bg-white.overflow-hidden.shadow-sm h3,
[class*="theme-"] .bg-white.overflow-hidden.shadow-sm div,
[class*="theme-"] .bg-white.shadow-sm div,
[class*="theme-"] .bg-white.overflow-hidden.shadow div {
    color: var(--text-primary) !important;
}
[class*="theme-"] .bg-white.overflow-hidden.shadow-sm p {
    color: var(--text-secondary) !important;
}
[class*="theme-"] .text-gray-900 {
    color: var(--text-primary) !important;
}
[class*="theme-"] .text-gray-800 {
    color: var(--text-primary) !important;
}
[class*="theme-"] .text-gray-500 {
    color: var(--text-secondary) !important;
}
[class*="theme-"] .text-gray-600 {
    color: var(--text-secondary) !important;
}
[class*="theme-"] .bg-indigo-600,
[class*="theme-"] .bg-indigo-600\/10 {
    background-color: var(--primary-color) !important;
}
[class*="theme-"] .bg-indigo-600:hover {
    background-color: var(--primary-hover) !important;
}

/* ==========================================================================
   Multi-Directional Scroll Reveal Animations & Micro-Interactions
   ========================================================================== */

/* 1. Slide In From Left */
.reveal-left {
  opacity: 0;
  transform: translateX(-70px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* 2. Slide In From Right */
.reveal-right {
  opacity: 0;
  transform: translateX(70px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* 3. Float Up From Bottom */
.reveal-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* 4. Drop Down From Top */
.reveal-down {
  opacity: 0;
  transform: translateY(-40px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* 5. Udta Hua Pop & Scale (Zoom & Fly) */
.reveal-pop {
  opacity: 0;
  transform: scale(0.75) translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: opacity, transform;
}

/* 6. Flip & Rotate In */
.reveal-flip {
  opacity: 0;
  transform: rotate(-6deg) translateY(40px) scale(0.9);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Active visible state when scrolled into viewport */
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-up.is-visible,
.reveal-down.is-visible,
.reveal-pop.is-visible,
.reveal-flip.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1) rotate(0deg);
}

/* Card Hover Micro-Animations */
.card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease;
}

.card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 16px 35px -10px rgba(0, 113, 227, 0.25);
}

/* Floating Badges & Buttons bounce */
.btn {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
}


/* ==========================================================================
   ENTERPRISE PREMIUM UI UPGRADE
   Plus Jakarta Sans + Playfair Display based design system
   ========================================================================== */

/* ── Root Extra Variables ── */
:root {
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --gradient-accent: linear-gradient(135deg, #0071e3 0%, #c724b1 100%);
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  --border-radius-pill: 100px;
  --blur-glass: blur(20px) saturate(180%);
}

/* ── Typography Upgrade ── */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Section label / eyebrow text */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-color);
  display: inline-block;
  margin-bottom: 0.75rem;
}

/* Premium large display title */
.display-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

/* ── Top Bar Upgrade ── */
.top-bar {
  background: var(--card-bg);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border-bottom: 1px solid var(--border-color);
  padding: 0.4rem 0;
  position: relative;
  overflow: hidden;
}

/* Thin gradient accent line at very top */
.top-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-gradient);
}

.top-bar-info a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  gap: 0.4rem;
  transition: var(--transition-smooth);
}

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

.top-bar-btn {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: var(--border-radius-pill);
  transition: var(--transition-smooth);
}

.top-bar-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.35);
}

/* ── Mid Brand Header Upgrade ── */
.mid-header {
  padding: 1.25rem 0;
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.logo-img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 113, 227, 0.15), 0 0 0 1px rgba(0, 113, 227, 0.08);
  transition: var(--transition-smooth);
}

.mid-header:hover .logo-img {
  box-shadow: 0 8px 30px rgba(0, 113, 227, 0.22), 0 0 0 2px rgba(0, 113, 227, 0.12);
  transform: scale(1.03);
}

.school-info h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

.school-info p {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
}

/* Accreditation badge next to school name */
.school-info .accreditation-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-color);
  background: rgba(0, 113, 227, 0.08);
  border: 1px solid rgba(0, 113, 227, 0.18);
  padding: 0.2rem 0.65rem;
  border-radius: var(--border-radius-pill);
  margin-left: 0.75rem;
  vertical-align: middle;
}

/* ── Navbar Enterprise Upgrade ── */
.navbar {
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 1px 0 var(--border-color), 0 4px 24px rgba(0,0,0,0.04);
  padding: 0.6rem 0;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 0.1rem;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.nav-link::after {
  height: 2px;
  background: var(--primary-gradient);
  border-radius: 2px;
  bottom: -1px;
}

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

/* Nav dropdown — enterprise style */
.nav-dropdown-menu {
  border-radius: 14px;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.06);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  padding: 0.5rem;
  min-width: 230px;
  overflow: hidden;
}

.dropdown-item {
  font-size: 0.83rem;
  font-weight: 500;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  letter-spacing: 0.005em;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-item::before {
  content: '→';
  font-size: 0.7rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: var(--transition-smooth);
  color: var(--primary-color);
}

.dropdown-item:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.dropdown-item:hover {
  background: linear-gradient(135deg, rgba(0,113,227,0.07) 0%, rgba(199,36,177,0.04) 100%);
  color: var(--text-primary);
  padding-left: 1.2rem;
}

/* Theme switcher btn */
.theme-dropdown-btn {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--border-radius-pill);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.theme-dropdown-btn:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

/* ── Card Upgrade ── */
.card {
  background: var(--card-bg);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.03);
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-6px) scale(1.012);
  box-shadow: 0 12px 40px rgba(0, 113, 227, 0.14), 0 4px 12px rgba(0,0,0,0.06);
  border-color: rgba(0, 113, 227, 0.2);
}

/* Premium card variant */
.card-premium {
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(0,113,227,0.03) 100%);
  border: 1px solid rgba(0,113,227,0.12);
  border-radius: 20px;
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
}

.card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
}

/* ── Button Upgrade ── */
.btn {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 10px;
  padding: 0.75rem 1.75rem;
  transition: var(--transition-smooth);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white !important;
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.35);
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.45);
}

.btn-primary:active {
  transform: translateY(-1px) scale(1.00);
}

/* Outline / Ghost button */
.btn-outline {
  background: transparent;
  color: var(--primary-color) !important;
  border: 1.5px solid var(--primary-color);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white !important;
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.3);
  transform: translateY(-2px);
}

/* Pill button */
.btn-pill {
  border-radius: var(--border-radius-pill);
  padding: 0.65rem 1.75rem;
}

/* ── Section Premium Headings ── */
.section-heading {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-heading .section-eyebrow {
  margin-bottom: 0.6rem;
}

.section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.section-heading p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 400;
}

/* Decorative gradient underline below section title */
.section-heading h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 3px;
  margin: 0.75rem auto 0;
}

/* ── Stats / Numbers Row ── */
.stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 0.4rem;
}

/* ── Feature / Icon Cards ── */
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,113,227,0.12) 0%, rgba(199,36,177,0.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(0,113,227,0.12);
  transition: var(--transition-smooth);
}

.card:hover .feature-icon {
  background: var(--primary-gradient);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.35);
  transform: scale(1.1) rotate(-3deg);
}

.card:hover .feature-icon i,
.card:hover .feature-icon span {
  filter: brightness(10);
}

/* ── News / Notice Tags ── */
.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: var(--border-radius-pill);
}

.tag-new {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.tag-important {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.tag-info {
  background: rgba(0, 113, 227, 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(0, 113, 227, 0.2);
}

/* ── Form Fields Upgrade ── */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="password"],
select,
textarea {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 400;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-color);
  color: var(--text-primary);
  transition: var(--transition-smooth);
  outline: none;
  padding: 0.75rem 1rem;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
  background: var(--card-bg);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-secondary);
  font-weight: 400;
}

label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 0.4rem;
}

/* ── Footer Upgrade ── */
.footer {
  position: relative;
  overflow: hidden;
}

/* Footer top gradient accent */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-gradient);
}

.footer h3 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-color);
  display: block !important;
  margin-bottom: 1.25rem;
}

/* ── Floating Callback/CTA Buttons ── */
.floating-btn {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: var(--border-radius-pill);
  padding: 0.75rem 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: var(--transition-smooth);
  border: none;
  cursor: pointer;
}

.floating-btn:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

/* ── Glassmorphism Section Background ── */
.glass-section {
  background: var(--glass-bg);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

/* ── Scrollbar Upgrade ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 6px;
  transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* ── Selection Color ── */
::selection {
  background: rgba(0, 113, 227, 0.18);
  color: var(--text-primary);
}

/* ── Slider Upgrade ── */
.slider-container {
  height: 620px;
  border-radius: 0 0 0 0;
}

.slide::after {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.55) 60%,
    rgba(0, 0, 0, 0.72) 100%
  );
}

.slide-content .hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.slide-content .hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.65;
}

/* Slider badge pill */
.slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--border-radius-pill);
  padding: 0.45rem 1.1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fbbf24;
  margin-bottom: 1.25rem;
}

/* ── Page Hero / Section Banner ── */
.page-hero {
  padding: 5.5rem 1.5rem;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 3px;
}

/* ── Divider ── */
.divider-gradient {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-color), transparent);
  margin: 3rem 0;
  border: none;
}

/* ── Responsive Tweaks for enterprise upgrades ── */
@media (max-width: 768px) {
  .school-info h2 {
    font-size: 1.2rem !important;
    letter-spacing: -0.02em !important;
  }

  .logo-img {
    width: 62px !important;
    height: 62px !important;
    border-radius: 12px !important;
  }

  .slider-container {
    height: 500px;
  }

  .slide-content .hero-title {
    font-size: 2rem;
  }

  .nav-dropdown-menu {
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .slider-container {
    height: 420px;
  }
}


/* ── Mid Header Stats (1000+ Students etc.) ── */
.mid-header-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
  padding-left: 2rem;
  border-left: 1px solid var(--border-color);
}

.mid-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.mid-stat-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.mid-stat-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 0.1rem;
}

.mid-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border-color);
}

@media (max-width: 1024px) {
  .mid-header-stats {
    display: none;
  }
}

@media (max-width: 768px) {
  .mid-header-container {
    gap: 0.85rem !important;
  }
  .accreditation-badge {
    display: none !important;
  }
}

/* ==========================================================================
   MOBILE PRO-LEVEL OVERHAUL — 90% mobile traffic ke liye
   ========================================================================== */

/* ── Global Mobile Base ── */
@media (max-width: 768px) {
  html { font-size: 15px; }

  body {
    overflow-x: hidden;
  }

  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Touch targets minimum 44px */
  a, button { min-height: 44px; }

  /* Section spacing tighter on mobile */
  section, .container {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
}

/* ── Hero Slider — Full bleed, tall, bold text ── */
@media (max-width: 768px) {
  .slider-container {
    height: 92svh !important;
    min-height: 520px !important;
    border-radius: 0 !important;
  }

  .slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(0,0,0,0.15) 0%,
      rgba(0,0,0,0.55) 55%,
      rgba(0,0,0,0.72) 100%
    );
    z-index: 1;
  }

  .slide-content {
    position: relative;
    z-index: 2;
    padding: 0 1.25rem 3.5rem !important;
    justify-content: flex-end !important;
    align-items: flex-start !important;
    text-align: left !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .slide-eyebrow {
    font-size: 0.7rem !important;
    letter-spacing: 0.15em !important;
    margin-bottom: 0.6rem !important;
    opacity: 0.9;
  }

  .hero-title {
    font-size: clamp(1.75rem, 7vw, 2.6rem) !important;
    line-height: 1.12 !important;
    font-weight: 900 !important;
    text-align: left !important;
    margin-bottom: 0.75rem !important;
    letter-spacing: -0.02em !important;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4) !important;
  }

  .hero-subtitle {
    font-size: 0.92rem !important;
    line-height: 1.55 !important;
    text-align: left !important;
    padding: 0 !important;
    margin-bottom: 1.5rem !important;
    opacity: 0.92;
    max-width: 90%;
  }

  .slide-content > div:last-of-type {
    display: flex !important;
    gap: 0.75rem !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
  }

  .slide-content .btn {
    padding: 0.7rem 1.4rem !important;
    font-size: 0.85rem !important;
    min-height: 44px !important;
    border-radius: 50px !important;
  }

  .slider-btn {
    width: 38px !important;
    height: 38px !important;
    font-size: 0.85rem !important;
    top: auto !important;
    bottom: 6.5rem !important;
    transform: none !important;
  }

  .prev-btn { left: 1.25rem !important; }
  .next-btn { right: 1.25rem !important; }

  .slider-dots {
    bottom: 1.5rem !important;
  }

  .dot {
    width: 7px !important;
    height: 7px !important;
  }
}

/* ── Feature Cards Grid ── */
@media (max-width: 768px) {
  .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-4,
  [class*="grid-cols-4"],
  [class*="grid-cols-3"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.85rem !important;
  }

  .card {
    padding: 1.25rem 1rem !important;
    border-radius: 16px !important;
  }

  .card h3 {
    font-size: 0.95rem !important;
    margin-bottom: 0.4rem !important;
  }

  .card p {
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
  }

  .card > div:first-child {
    font-size: 2rem !important;
    margin-bottom: 0.6rem !important;
  }
}

@media (max-width: 400px) {
  [class*="grid-cols-4"],
  [class*="grid-cols-3"],
  .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-4 {
    grid-template-columns: 1fr !important;
  }
}

/* ── Stat Cards (counters row) ── */
@media (max-width: 768px) {
  .stat-card, [class*="stat-card"] {
    padding: 1.25rem 0.85rem !important;
    border-radius: 14px !important;
  }

  .stat-number, [class*="stat-number"] {
    font-size: 2rem !important;
  }

  .stat-label, [class*="stat-label"] {
    font-size: 0.78rem !important;
  }
}

/* ── Section Headings ── */
@media (max-width: 768px) {
  .section-heading, h2.section-heading {
    font-size: clamp(1.5rem, 6vw, 2rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 0.5rem !important;
  }

  .section-eyebrow {
    font-size: 0.68rem !important;
    letter-spacing: 0.12em !important;
    margin-bottom: 0.5rem !important;
  }

  .section-desc {
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
    max-width: 100% !important;
    padding: 0 0.5rem !important;
  }
}

/* ── Buttons global mobile ── */
@media (max-width: 768px) {
  .btn {
    padding: 0.65rem 1.25rem !important;
    font-size: 0.85rem !important;
    min-height: 44px !important;
    border-radius: 50px !important;
  }

  .btn-primary {
    box-shadow: 0 4px 18px rgba(var(--primary-rgb, 230,74,25), 0.35) !important;
  }
}

/* ── Feature Icon Boxes ── */
@media (max-width: 768px) {
  .feature-icon-box, [class*="feature-box"] {
    padding: 1.25rem 1rem !important;
    border-radius: 14px !important;
    gap: 0.85rem !important;
  }

  .feature-icon {
    width: 46px !important;
    height: 46px !important;
    font-size: 1.1rem !important;
    flex-shrink: 0 !important;
  }
}

/* ── News / Notice Cards ── */
@media (max-width: 768px) {
  .news-card, .notice-card {
    padding: 1.1rem !important;
    border-radius: 14px !important;
    gap: 0.6rem !important;
  }

  .news-tag, .tag {
    font-size: 0.65rem !important;
    padding: 0.2rem 0.6rem !important;
  }
}

/* ── About/Content Section with image ── */
@media (max-width: 768px) {
  .about-section, .content-with-image,
  [style*="grid-template-columns: 1fr 1fr"],
  .two-col-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .about-section img, .content-img {
    border-radius: 16px !important;
    width: 100% !important;
    height: 240px !important;
    object-fit: cover !important;
  }
}

/* ── Gallery Grid ── */
@media (max-width: 768px) {
  .gallery-grid, [class*="gallery"] .grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
  }

  .gallery-item {
    border-radius: 10px !important;
    overflow: hidden !important;
    aspect-ratio: 1 / 1 !important;
  }

  .gallery-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}

/* ── Forms — Admissions / Career / Contact ── */
@media (max-width: 768px) {
  .form-group, .form-row {
    margin-bottom: 1rem !important;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  input[type="password"],
  select,
  textarea {
    font-size: 16px !important; /* iOS zoom fix */
    padding: 0.75rem 1rem !important;
    border-radius: 10px !important;
    min-height: 48px !important;
  }

  .form-grid, [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  .form-submit-btn, form .btn-primary {
    width: 100% !important;
    padding: 0.85rem !important;
    font-size: 1rem !important;
    min-height: 50px !important;
    border-radius: 12px !important;
  }
}

/* ── Footer ── */
@media (max-width: 768px) {
  .footer {
    padding: 1.75rem 0 1rem !important;
    margin-top: 2rem !important;
  }

  .footer .grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem 1rem !important;
  }

  .footer-brand {
    grid-column: 1 / -1 !important;
  }

  .footer h3, .footer-heading {
    font-size: 0.85rem !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 0.6rem !important;
  }

  .footer a, .footer p {
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
  }

  .footer-social {
    gap: 0.5rem !important;
  }

  .footer-social a, .social-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.85rem !important;
    border-radius: 50% !important;
  }

  .footer-bottom {
    padding-top: 0.75rem !important;
    margin-top: 1.25rem !important;
    font-size: 0.78rem !important;
    flex-direction: column !important;
    gap: 0.35rem !important;
    text-align: center !important;
  }
}

@media (max-width: 400px) {
  .footer .grid,
  .footer-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── Floating Buttons ── */
@media (max-width: 768px) {
  .floating-buttons-wrapper {
    bottom: 1.25rem !important;
    right: 1rem !important;
    gap: 0.6rem !important;
  }

  .floating-btn {
    padding: 0.6rem 1rem !important;
    font-size: 0.8rem !important;
    border-radius: 50px !important;
    min-height: 42px !important;
    box-shadow: 0 4px 18px rgba(0,0,0,0.22) !important;
  }

  .floating-btn span {
    font-size: 0.78rem !important;
  }

  .floating-close {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.75rem !important;
  }
}

/* ── Page Hero (inner pages) ── */
@media (max-width: 768px) {
  .page-hero, .inner-hero {
    padding: 3rem 1.25rem 2.5rem !important;
    min-height: 180px !important;
  }

  .page-hero h1, .inner-hero h1 {
    font-size: clamp(1.6rem, 6.5vw, 2.2rem) !important;
    line-height: 1.2 !important;
  }

  .page-hero p, .inner-hero p {
    font-size: 0.88rem !important;
  }
}

/* ── Table overflow fix ── */
@media (max-width: 768px) {
  .table-responsive, table {
    overflow-x: auto !important;
    display: block !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 10px !important;
  }
}

/* ── Admission / Career Form page ── */
@media (max-width: 768px) {
  .form-card, .admission-form-container, .career-form-container {
    padding: 1.5rem 1.25rem !important;
    border-radius: 16px !important;
    margin: 0 !important;
  }
}

/* ── Glass sections ── */
@media (max-width: 768px) {
  .glass-section {
    padding: 2rem 1.25rem !important;
    border-radius: 16px !important;
    margin: 0 0.75rem !important;
  }
}

/* ── Smooth scroll + tap highlight ── */
@media (max-width: 768px) {
  * { -webkit-tap-highlight-color: transparent; }
  html { scroll-behavior: smooth; }
}

/* ── Extra small screens (320-375px) ── */
@media (max-width: 380px) {
  .hero-title {
    font-size: 1.55rem !important;
  }

  .hero-subtitle {
    font-size: 0.85rem !important;
  }

  .btn {
    padding: 0.6rem 1rem !important;
    font-size: 0.8rem !important;
  }

  .card {
    padding: 1rem 0.85rem !important;
  }
}


/* ── Mobile Header Compact Overrides ── */
@media (max-width: 768px) {
  /* Theme button chhota */
  .theme-dropdown-btn {
    padding: 0 !important;
    font-size: 0.72rem !important;
    border-radius: 6px !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
  }

  .theme-dropdown-btn i {
    font-size: 0.72rem !important;
  }

  /* Navbar toggler (hamburger) bhi compact */
  .navbar-toggler {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.9rem !important;
    padding: 0 !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
  }

  /* Dropdown items left-align force */
  .nav-item-dropdown.active-mobile .dropdown-item {
    text-align: left !important;
    justify-content: flex-start !important;
  }

  /* Mid-header aur navbar ke beech gap zero */
  .mid-header + .navbar,
  .mid-header ~ .navbar {
    margin-top: 0 !important;
  }
}

/* ── Mobile Navbar Controls — white on gradient bg ── */
@media (max-width: 768px) {
  .navbar-toggler {
    color: white !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 6px !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.9rem !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
  }

  .theme-dropdown-btn {
    color: white !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 6px !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
  }

  .theme-dropdown-btn i {
    font-size: 0.72rem !important;
    color: white !important;
  }

  /* nav-controls right me properly */
  .nav-controls {
    order: 2 !important;
    flex-shrink: 0 !important;
    gap: 3px !important;
    display: flex !important;
    align-items: center !important;
  }
}

/* ── Mobile submenu items — FORCE left align ── */
@media (max-width: 768px) {
  .nav-dropdown-menu .dropdown-item,
  .nav-item-dropdown .dropdown-item,
  .nav-item-dropdown.active-mobile .nav-dropdown-menu .dropdown-item {
    text-align: left !important;
    justify-content: flex-start !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.6rem !important;
    padding: 0.65rem 1rem 0.65rem 1.5rem !important;
  }

  .nav-dropdown-menu .dropdown-item i,
  .nav-item-dropdown.active-mobile .dropdown-item i {
    flex-shrink: 0 !important;
    width: 16px !important;
    text-align: center !important;
  }

  /* ::before arrow hide on mobile */
  .nav-dropdown-menu .dropdown-item::before {
    display: none !important;
  }
}

/* ==========================================================================
   MOBILE NAVIGATION — FINAL VERTICAL ACCORDION FIX
   Keep every top-level item and submenu in normal vertical document flow.
   ========================================================================== */
@media (max-width: 768px) {
  .navbar-nav.mobile-open {
    display: flex !important;
    flex-flow: column nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .navbar-nav.mobile-open > li,
  .navbar-nav.mobile-open > .nav-item-dropdown {
    display: block !important;
    position: static !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    float: none !important;
    clear: both !important;
  }

  .navbar-nav.mobile-open > li > .nav-link,
  .navbar-nav.mobile-open > .nav-item-dropdown > .nav-link {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    align-items: center !important;
    justify-content: space-between !important;
    text-align: left !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }

  /* Closed submenu remains completely outside layout. */
  .navbar-nav.mobile-open .nav-item-dropdown > .nav-dropdown-menu {
    display: none !important;
    position: static !important;
    inset: auto !important;
    float: none !important;
    clear: both !important;
    transform: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0.25rem 0 !important;
    box-sizing: border-box !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow-x: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: color-mix(in srgb, var(--secondary-color) 82%, transparent) !important;
  }

  /* Open submenu occupies a fresh full-width row below its parent. */
  .navbar-nav.mobile-open .nav-item-dropdown.active-mobile > .nav-dropdown-menu {
    display: flex !important;
    flex-flow: column nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
  }

  .navbar-nav.mobile-open .nav-dropdown-menu > .dropdown-item {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0.72rem 1rem 0.72rem 1.5rem !important;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    border-radius: 0 !important;
  }

  .navbar-nav.mobile-open .nav-dropdown-menu > .dropdown-item > i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 18px !important;
    width: 18px !important;
    margin: 0 !important;
    text-align: center !important;
  }

  .navbar-nav.mobile-open .nav-dropdown-menu > .dropdown-item::before {
    display: none !important;
    content: none !important;
  }

  .navbar-nav.mobile-open > li > .btn {
    display: flex !important;
    width: calc(100% - 2rem) !important;
    margin: 0.75rem 1rem !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   MOBILE SCROLL PERFORMANCE — native, smooth vertical scrolling
   ========================================================================== */
@media (max-width: 768px) {
  html {
    overflow-x: clip !important;
    overflow-y: auto !important;
    scroll-behavior: smooth !important;
    -webkit-text-size-adjust: 100% !important;
  }

  body {
    overflow-x: clip !important;
    overflow-y: visible !important;
    width: 100% !important;
    max-width: 100vw !important;
    overscroll-behavior-x: none !important;
    touch-action: pan-y !important;
  }

  /* Blurs are attractive on desktop but expensive during mobile scrolling. */
  .navbar,
  .card,
  .glass-section,
  .glass-card,
  .feature-card,
  .nav-dropdown-menu,
  .theme-dropdown {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  /* Keep the opened menu scrollable without hijacking page scroll. */
  .navbar-nav.mobile-open {
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;
  }

  .slide,
  .slider-container,
  main,
  section,
  .card,
  .notice-item-card,
  .notice-filter-bar,
  .notice-filter-pills,
  .notice-search-input {
    touch-action: pan-y !important;
  }

  /* Prevent Notice Feed from trapping mobile page scroll */
  .notice-board-feed,
  #notice-board-feed {
    max-height: none !important;
    overflow: visible !important;
    overflow-y: visible !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   $10,000 ULTRA-PREMIUM AGENCY-GRADE DESIGN & INTERACTION ENGINE
   ========================================================================== */

/* 1. Global Elevation & Surface Refinements */
:root {
  --surface-glass-1: rgba(255, 255, 255, 0.65);
  --surface-glass-2: rgba(255, 255, 255, 0.85);
  --surface-glass-3: rgba(255, 255, 255, 0.95);
  --specular-border: rgba(255, 255, 255, 0.6);
  --shadow-elevation-1: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
  --shadow-elevation-2: 0 12px 32px -4px rgba(0, 0, 0, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
  --shadow-elevation-3: 0 24px 48px -8px rgba(0, 0, 0, 0.12), 0 8px 16px -4px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 40px -10px var(--primary-color);
  --transition-luxury: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 2. Magnetic Buttons & Luxury Button Styles */
.btn-magnetic {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.85rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-luxury);
  will-change: transform;
  border: 1px solid transparent;
  box-shadow: var(--shadow-elevation-1);
}

.btn-luxury-primary {
  background: var(--primary-gradient);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-luxury-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px -4px rgba(0, 113, 227, 0.35), var(--shadow-glow);
  color: #ffffff !important;
}

.btn-luxury-glass {
  background: var(--surface-glass-1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color);
}
.btn-luxury-glass:hover {
  background: var(--surface-glass-2);
  transform: translateY(-3px) scale(1.02);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-elevation-2);
  color: var(--primary-color) !important;
}

.btn-luxury-white {
  background: #ffffff;
  color: var(--text-primary) !important;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.btn-luxury-white:hover {
  background: #f8fafc;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.15);
}

/* 3. 3D Tilt Card Engine */
.tilt-card-3d {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
  will-change: transform;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.tilt-card-3d:hover {
  box-shadow: var(--shadow-elevation-3);
}

.tilt-card-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.18) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
  border-radius: inherit;
}

.tilt-card-3d:hover .tilt-card-glare {
  opacity: 1;
}

/* 4. Cinematic Hero & Ken Burns Slider */
.hero-luxury-slider {
  position: relative;
  width: 100%;
  height: 82vh;
  min-height: 540px;
  max-height: 750px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #090d16;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s ease;
  display: flex;
  align-items: flex-end;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 6%; /* Keeps top of building and school name fully visible */
  transform: scale(1.04);
  transition: transform 7s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.hero-slide.active .hero-slide-bg {
  transform: scale(1);
}

.hero-overlay-scrim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(8, 12, 22, 0.04) 0%, rgba(8, 12, 22, 0.2) 45%, rgba(8, 12, 22, 0.85) 100%),
              linear-gradient(90deg, rgba(8, 12, 22, 0.72) 0%, rgba(8, 12, 22, 0.15) 55%, transparent 100%);
  z-index: 2;
}

.hero-particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.hero-content-luxury {
  position: relative;
  z-index: 5;
  color: #ffffff;
  max-width: 680px;
  padding: 0 1.5rem 4.5rem;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.85rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hero-title-editorial {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 0.6rem;
  color: #ffffff;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.7);
}

.hero-subtitle-editorial {
  font-family: var(--font-sans);
  font-size: clamp(0.88rem, 1.4vw, 1.02rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  max-width: 520px;
  margin-bottom: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Single Colorful Dots Slide Navigator (1 Tiny Glowing Gemstone Dot Per Slide) */
.hero-timeline-controls {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0.6rem;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero-dot-btn,
.hero-dot-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0.45;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.hero-dot-btn:hover,
.hero-dot-group:hover {
  opacity: 0.85;
  transform: scale(1.22);
}

.hero-dot-btn.active,
.hero-dot-group.active {
  opacity: 1;
  transform: scale(1.35);
}

.dot-gem {
  width: 7.5px;
  height: 7.5px;
  border-radius: 50%;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Vibrant Colorful Gemstone Dot Palettes */
.dot-gold {
  background: radial-gradient(circle at 30% 30%, #fffbeb, #f59e0b 65%, #d97706 100%);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.85), 0 1px 3px rgba(0, 0, 0, 0.4);
}

.dot-cyan {
  background: radial-gradient(circle at 30% 30%, #f0f9ff, #0ea5e9 65%, #0284c7 100%);
  box-shadow: 0 0 8px rgba(14, 165, 233, 0.85), 0 1px 3px rgba(0, 0, 0, 0.4);
}

.dot-purple {
  background: radial-gradient(circle at 30% 30%, #faf5ff, #a855f7 65%, #7e22ce 100%);
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.85), 0 1px 3px rgba(0, 0, 0, 0.4);
}

.dot-emerald {
  background: radial-gradient(circle at 30% 30%, #ecfdf5, #10b981 65%, #047857 100%);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.85), 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero-dot-btn.active .dot-gem,
.hero-dot-group.active .dot-gem {
  animation: dotPurePulse 1.8s infinite ease-in-out;
}

@keyframes dotPurePulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.22); filter: brightness(1.35); }
}

@media (max-width: 640px) {
  .hero-timeline-controls {
    bottom: 0.55rem;
    gap: 0.5rem;
  }
  .dot-gem {
    width: 6.5px;
    height: 6.5px;
  }
}

/* Clean Uncluttered UI - Hide Floating WhatsApp/Callback Widgets */
.floating-widget-container,
.floating-btn,
.floating-buttons-wrapper {
  display: none !important;
}

/* 5. Interactive Tuition Fee Estimator */
.estimator-container {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-elevation-2);
  position: relative;
  overflow: hidden;
}

.estimator-grade-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.estimator-grade-btn {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-luxury);
  text-align: center;
}

.estimator-grade-btn:hover {
  background: var(--surface-glass-2);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.estimator-grade-btn.active {
  background: var(--primary-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 16px -2px rgba(0, 113, 227, 0.35);
}

.estimator-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.estimator-stat-card {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: var(--surface-glass-1);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: var(--transition-luxury);
}

.estimator-stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-color);
  background: var(--surface-glass-2);
}

.estimator-stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-color);
  font-family: var(--font-sans);
  margin-bottom: 0.25rem;
}

.estimator-stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

/* 6. Virtual Campus Explorer */
.campus-tour-wrapper {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-elevation-2);
}

.tour-nav-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: var(--secondary-color);
  border-bottom: 1px solid var(--border-color);
}
.tour-nav-tabs::-webkit-scrollbar { display: none; }

.tour-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-luxury);
}

.tour-tab-btn:hover {
  color: var(--text-primary);
  background: var(--surface-glass-1);
}

.tour-tab-btn.active {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.tour-stage-screen {
  position: relative;
  height: 520px;
  width: 100%;
  background-size: cover;
  background-position: center;
  transition: background-image 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .tour-stage-screen {
    height: 300px;
  }
}

.tour-bottom-panel {
  padding: 1.75rem 2rem 2rem;
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tour-bottom-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.tour-hotspot-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.tour-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.75rem;
  list-style: none;
  padding: 1.25rem 0 0;
  margin: 0;
  border-top: 1px solid var(--border-color);
}

.tour-features-grid li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--surface-glass-1);
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition-luxury);
}

.tour-features-grid li:hover {
  background: var(--surface-glass-2);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* 7. Live Smart Notice Filter & Hub */
.notice-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.notice-filter-pills {
  display: flex;
  gap: 0.35rem;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 0.85rem;
}

.notice-pill {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.32rem 0.4rem;
  border-radius: 9999px;
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  text-align: center;
  transition: var(--transition-luxury);
  user-select: none;
}

.notice-pill:hover,
.notice-pill.active {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

.notice-pill .pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.pill-dot-red {
  background: #ef4444;
}

.pill-dot-blue {
  background: #3b82f6;
}

.pill-dot-green {
  background: #10b981;
}

.notice-pill.active .pill-dot {
  box-shadow: 0 0 4px #ffffff;
}

@media (max-width: 640px) {
  .notice-filter-pills {
    gap: 0.25rem;
    margin-bottom: 0.75rem;
  }
  .notice-pill {
    padding: 0.28rem 0.25rem;
    font-size: 0.71rem;
    gap: 0.2rem;
  }
  .notice-pill .pill-dot {
    width: 5px;
    height: 5px;
  }
}

.notice-search-input {
  padding: 0.5rem 1.2rem;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition-luxury);
  min-width: 220px;
}

.notice-search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.notice-board-feed,
#notice-board-feed {
  max-height: 380px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.notice-board-feed::-webkit-scrollbar,
#notice-board-feed::-webkit-scrollbar {
  width: 5px;
}
.notice-board-feed::-webkit-scrollbar-track,
#notice-board-feed::-webkit-scrollbar-track {
  background: transparent;
}
.notice-board-feed::-webkit-scrollbar-thumb,
#notice-board-feed::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

/* 8. Interactive Academic Pathway */
.pathway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  position: relative;
}

.pathway-step-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  position: relative;
  transition: var(--transition-luxury);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pathway-step-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-elevation-2);
}

.pathway-step-num {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--border-color);
  font-family: var(--font-display);
}

.pathway-step-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 16px -2px rgba(0, 113, 227, 0.25);
}

/* 9. Testimonial Luxury Carousel */
.testimonial-luxury-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-elevation-1);
  transition: var(--transition-luxury);
}

.testimonial-luxury-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-elevation-3);
  border-color: var(--primary-color);
}

.star-rating {
  display: flex;
  gap: 0.3rem;
  color: #f59e0b;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

/* 10. Scroll Progress & Back-to-Top */
#scrollTopProgress {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-luxury);
  box-shadow: var(--shadow-elevation-2);
}

#scrollTopProgress.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scrollTopProgress:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-elevation-3);
}

#scrollTopProgress svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

#scrollTopProgress circle {
  fill: none;
  stroke-width: 3;
}

#scrollTopProgress .progress-bg {
  stroke: var(--border-color);
}

#scrollTopProgress .progress-bar {
  stroke: var(--primary-color);
  stroke-dasharray: 126;
  stroke-dashoffset: 126;
  transition: stroke-dashoffset 0.1s ease;
}

#scrollTopProgress i {
  color: var(--text-primary);
  font-size: 0.85rem;
}

/* 11. Luxury Toast Notification System */
.luxury-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.luxury-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  font-size: 0.9rem;
  font-weight: 500;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.luxury-toast.show {
  transform: translateX(0);
}

.luxury-toast.toast-success i { color: #10b981; }
.luxury-toast.toast-info i { color: #38bdf8; }

/* ==========================================================================
   12. Command Palette (Ctrl+K / Cmd+K) Modal
   ========================================================================== */
#commandPaletteModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem;
  padding-top: 10vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  box-sizing: border-box;
}

#commandPaletteModal.active {
  opacity: 1;
  visibility: visible;
}

.cmd-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 29, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.cmd-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 640px;
  background: var(--card-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  transform: translateY(-20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

#commandPaletteModal.active .cmd-dialog {
  transform: translateY(0) scale(1);
}

.cmd-header {
  display: flex;
  align-items: center;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  gap: 12px;
  flex-shrink: 0;
}

.cmd-search-icon {
  color: var(--primary-color);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.cmd-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text-primary);
  min-width: 0;
}

.cmd-esc-badge {
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
}

.cmd-results {
  max-height: 400px;
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
}

.cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  gap: 12px;
  line-height: 1.4;
  flex-shrink: 0;
  min-height: 48px;
  transition: background 0.15s ease, transform 0.15s ease;
  box-sizing: border-box;
}

.cmd-item:hover, .cmd-item.selected {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.cmd-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  flex: 1 1 auto;
  min-width: 0;
}

.cmd-item-left i {
  color: var(--primary-color);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.cmd-item-left span {
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.3;
}

.cmd-item-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 9999px;
  background: rgba(0, 113, 227, 0.1);
  color: var(--primary-color);
  flex-shrink: 0;
  white-space: nowrap;
}

.cmd-empty {
  padding: 2rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.cmd-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 0.75rem 1.25rem;
  background: var(--secondary-color);
  border-top: 1px solid var(--border-color);
  font-size: 0.75rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.cmd-footer kbd {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  font-family: inherit;
  font-weight: 700;
}

/* 13. Top Bar Quick Search Button */
.cmd-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-luxury);
}

.cmd-nav-btn:hover {
  background: var(--surface-glass-2);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.cmd-nav-btn kbd {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  font-size: 0.7rem;
}

/* ==========================================================================
   14. MASTER MOBILE FIXES & RESPONSIVE POLISH ($10,000 Polish)
   ========================================================================== */
@media (max-width: 768px) {
  /* Command Palette on mobile */
  #commandPaletteModal {
    padding: 12px;
    padding-top: 18px;
    align-items: flex-start;
  }

  .cmd-dialog {
    max-height: 92vh;
    border-radius: var(--radius-lg);
  }

  .cmd-header {
    padding: 0.85rem 1rem;
    gap: 8px;
  }

  .cmd-input {
    font-size: 0.95rem;
  }

  .cmd-results {
    padding: 0.5rem;
    max-height: calc(92vh - 80px);
    gap: 4px;
  }

  .cmd-item {
    padding: 10px 10px;
    min-height: 44px;
    gap: 8px;
  }

  .cmd-item-left {
    font-size: 0.82rem;
    gap: 8px;
  }

  .cmd-item-left span {
    line-height: 1.25;
  }

  .cmd-item-category {
    font-size: 0.65rem;
    padding: 2px 6px;
  }

  .cmd-footer {
    display: none !important;
  }

  /* Virtual Campus Tour on mobile — Stack layout to prevent overlapping tabs */
  .campus-tour-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
  }

  .tour-nav-tabs {
    padding: 0.5rem;
    gap: 0.35rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tour-tab-btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
    flex-shrink: 0;
  }

  .tour-stage-screen {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: auto;
    padding: 0;
    position: relative;
    background-size: cover;
    background-position: center;
  }

  .tour-stage-scrim {
    display: none;
  }

  .tour-stage-screen::before {
    content: '';
    display: block;
    height: 240px;
    width: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
    flex-shrink: 0;
  }

  .tour-info-card {
    position: relative;
    z-index: 5;
    background: var(--card-bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 1.25rem 1.25rem 1.5rem;
    color: var(--text-primary);
    max-width: 100%;
    width: 100%;
    box-shadow: none;
    box-sizing: border-box;
  }

  .tour-info-card h3 {
    color: var(--text-primary) !important;
    font-size: 1.25rem !important;
    margin-bottom: 0.4rem !important;
    line-height: 1.25 !important;
  }

  .tour-info-card p {
    color: var(--text-secondary) !important;
    font-size: 0.88rem !important;
    line-height: 1.55 !important;
    margin-bottom: 1rem !important;
  }

  .tour-info-card ul li {
    color: var(--text-secondary) !important;
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
  }

  /* Hero Section on mobile */
  .hero-luxury-slider {
    height: 290px !important;
    min-height: 270px !important;
    max-height: 330px !important;
  }

  .hero-slide-bg {
    background-size: cover !important;
    background-position: center 4% !important;
    background-repeat: no-repeat !important;
    transform: none !important;
  }

  .hero-slide.active .hero-slide-bg {
    transform: none !important;
  }

  .hero-overlay-scrim {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(8, 12, 22, 0.15) 30%, rgba(8, 12, 22, 0.92) 100%) !important;
  }

  .hero-content-luxury {
    padding: 0 1rem 1.85rem !important;
    max-width: 100%;
  }

  .hero-pill-badge {
    padding: 0.22rem 0.65rem !important;
    font-size: 0.65rem !important;
    margin-bottom: 0.35rem !important;
  }

  .hero-title-editorial {
    font-size: clamp(1.15rem, 4.5vw, 1.45rem) !important;
    margin-bottom: 0.25rem !important;
    line-height: 1.22 !important;
  }

  .hero-subtitle-editorial {
    font-size: 0.76rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-timeline-controls {
    bottom: 0.55rem !important;
    padding: 0.25rem 0.6rem !important;
    gap: 0.4rem !important;
  }

  .hero-timer-bar {
    width: 32px !important;
    height: 3px !important;
  }

  #scrollTopProgress {
    left: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }
}

/* ── Custom Overrides for User Requests ── */

/* 1. Fix Hero Image Mobile: Full Cover & Top-Anchored (No Black Gap & No Name Cutoff) */
@media (max-width: 768px) {
  .hero-slide-bg {
    background-size: cover !important;
    background-position: center 4% !important;
    background-repeat: no-repeat !important;
    transform: none !important;
  }

  .hero-slide.active .hero-slide-bg {
    transform: none !important;
  }
}

/* 2. Remove backgrounds and reduce gap between top right icons (Search, Theme, Hamburger) */
@media (max-width: 768px) {
  .nav-controls {
    gap: 2px !important;
  }

  .nav-controls .theme-dropdown-btn,
  .nav-controls .navbar-toggler {
    width: 22px !important;
    min-width: 22px !important;
    height: 28px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .nav-controls .theme-dropdown-btn i,
  .nav-controls .navbar-toggler i {
    font-size: 0.84rem !important;
  }

  .theme-selector-container {
    display: inline-flex !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

.nav-controls .theme-dropdown-btn,
.theme-dropdown-btn,
.navbar-toggler,
.nav-controls .navbar-toggler {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.nav-controls .theme-dropdown-btn:hover,
.theme-dropdown-btn:hover,
.navbar-toggler:hover,
.nav-controls .navbar-toggler:hover {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  opacity: 0.8 !important;
}

/* 3. Parents Testimonials Mobile Horizontal Scroll */
@media (max-width: 768px) {
  .testimonial-swipe-indicator {
    display: inline-flex !important;
  }

  .testimonials-slider-mobile {
    display: flex !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 1.15rem !important;
    padding: 0.5rem 0.25rem 1.25rem 0.25rem !important;
    margin-left: -1rem !important;
    margin-right: -1rem !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    scrollbar-width: none !important;
  }

  .testimonials-slider-mobile::-webkit-scrollbar {
    display: none !important;
  }

  .testimonials-slider-mobile .parent-bubble-card,
  .testimonials-slider-mobile .testimonial-luxury-card,
  .testimonials-slider-mobile > div {
    flex: 0 0 85% !important;
    max-width: 85% !important;
    min-width: 285px !important;
    flex-shrink: 0 !important;
    scroll-snap-align: center !important;
    padding: 1.75rem 1.4rem !important;
    margin-bottom: 0 !important;
    border-radius: var(--radius-xl) !important;
    transform: none !important;
  }
}

/* 4. Accessibility: Skip to Content Link */
.skip-to-content {
  position: fixed;
  top: -100px;
  left: 1.5rem;
  z-index: 999999;
  background: var(--primary-color);
  color: #ffffff !important;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: top 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.skip-to-content:focus {
  top: 0;
  outline: 3px solid #fbbf24;
}

/* 5. Live Pulse Indicator for New Notices */
.notice-pulse-dot {
  position: relative;
}

.notice-pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.75;
  animation: badgePing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes badgePing {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* 6. Student Hall of Fame & Academic Accolades */
.achievement-card {
  position: relative;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: var(--transition-luxury);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.achievement-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-elevation-3);
}

.medal-badge-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.medal-badge-silver {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(100, 116, 139, 0.35);
}

.medal-badge-bronze {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

/* ==========================================================================
   7. Card Monotony Breakers & Bespoke Section Visual Styles
   ========================================================================== */

/* 7.1 Bento Feature Pods (Homepage Section 2) */
.feature-bento-pod {
  position: relative;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.25rem 1.75rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.feature-bento-pod::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--pod-accent, var(--primary-gradient));
  transition: height 0.3s ease;
}
.feature-bento-pod:hover {
  transform: translateY(-8px);
  border-color: var(--pod-border, var(--primary-color));
  box-shadow: 0 20px 30px -10px var(--pod-shadow, rgba(0, 113, 227, 0.18));
}
.feature-bento-pod:hover::before {
  height: 6px;
}
.feature-bento-icon-pod {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  color: #ffffff;
  margin-bottom: 1.35rem;
  box-shadow: 0 8px 18px -4px var(--pod-shadow, rgba(0,0,0,0.25));
  transition: transform 0.3s ease;
}
.feature-bento-pod:hover .feature-bento-icon-pod {
  transform: scale(1.1) rotate(-3deg);
}

/* 7.2 Connected Academic Pathways Journey (Homepage Section 5) */
.academic-timeline-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}
@media (max-width: 992px) {
  .academic-timeline-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}
@media (max-width: 640px) {
  .academic-timeline-track {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}
.pathway-milestone-card {
  position: relative;
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s ease;
  overflow: hidden;
}
.pathway-milestone-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--step-accent, var(--primary-color));
}
.pathway-milestone-card:hover {
  transform: translateY(-6px);
  border-color: var(--step-accent, var(--primary-color));
  box-shadow: 0 16px 28px -8px var(--step-shadow, rgba(0,0,0,0.15));
}
.pathway-step-watermark {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--text-primary);
  opacity: 0.06;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.pathway-milestone-card:hover .pathway-step-watermark {
  opacity: 0.12;
  transform: scale(1.08);
}
.pathway-milestone-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #ffffff;
  background: var(--step-accent, var(--primary-gradient));
  margin-bottom: 1.1rem;
  box-shadow: 0 6px 14px -3px var(--step-shadow, rgba(0,0,0,0.2));
}

/* 7.3 Prestige Executive Leadership Dossier (Homepage Section 7 & About) */
.leadership-dossier-card {
  position: relative;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: 2.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s ease;
  overflow: hidden;
}
.leadership-dossier-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--dossier-gradient, var(--primary-gradient));
}
.leadership-quote-watermark {
  position: absolute;
  bottom: 1.5rem;
  right: 1.75rem;
  font-size: 5.5rem;
  color: var(--text-primary);
  opacity: 0.04;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.leadership-dossier-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-elevation-3);
}
.leadership-dossier-card:hover .leadership-quote-watermark {
  opacity: 0.08;
}
.leadership-portrait-ring {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--dossier-border, var(--primary-color));
  box-shadow: 0 6px 18px -4px var(--dossier-shadow, rgba(0,0,0,0.25));
  transition: transform 0.3s ease;
}
.leadership-dossier-card:hover .leadership-portrait-ring {
  transform: scale(1.05);
}

/* 7.4 Olympic Trophy Pedestals (Hall of Fame Section 7.5) */
.podium-pedestal-card {
  position: relative;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.25rem 1.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s ease;
  overflow: hidden;
}
.podium-pedestal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--podium-ribbon, linear-gradient(90deg, #f59e0b, #d97706));
}
.podium-pedestal-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 32px -10px var(--podium-shadow, rgba(245, 158, 11, 0.2));
  border-color: var(--podium-color, #f59e0b);
}
.podium-medallion {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #ffffff;
  box-shadow: 0 6px 16px -2px var(--podium-shadow, rgba(0,0,0,0.2));
  transition: transform 0.3s ease;
}
.podium-pedestal-card:hover .podium-medallion {
  transform: scale(1.12) rotate(6deg);
}

/* 7.5 Conversation Bubble Testimonials (Homepage Section 8) */
.parent-bubble-card {
  position: relative;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s ease;
}
.parent-bubble-card::before {
  content: '\f10d';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  font-size: 1.6rem;
  color: var(--primary-color);
  opacity: 0.2;
}
.parent-bubble-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-color);
  box-shadow: 0 16px 30px -8px rgba(0, 113, 227, 0.15);
}

/* 7.6 Admissions Pipeline Stepper (Admissions Page) */
.admissions-pipeline-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}
@media (max-width: 992px) {
  .admissions-pipeline-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}
@media (max-width: 640px) {
  .admissions-pipeline-track {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}
.admissions-pipeline-step {
  position: relative;
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.6rem 1.6rem;
  text-align: center;
  transition: all 0.35s ease;
}
.admissions-pipeline-step:hover {
  transform: translateY(-6px);
  border-color: var(--step-color, var(--primary-color));
  box-shadow: 0 16px 28px -8px var(--step-shadow, rgba(0,0,0,0.15));
}
.pipeline-step-node {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--step-color, var(--primary-gradient));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  margin: 0 auto 1.25rem;
  box-shadow: 0 8px 18px -4px var(--step-shadow, rgba(0,0,0,0.25));
  transition: transform 0.3s ease;
}
.admissions-pipeline-step:hover .pipeline-step-node {
  transform: scale(1.12);
}

/* 7.7 Guiding Pillars of Excellence (About Page) */
.pillar-architecture-card {
  position: relative;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  transition: all 0.35s ease;
  overflow: hidden;
}
.pillar-architecture-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--pillar-accent, var(--primary-gradient));
}
.pillar-architecture-card:hover {
  transform: translateY(-8px);
  border-color: var(--pillar-border, var(--primary-color));
  box-shadow: 0 20px 32px -10px var(--pillar-shadow, rgba(0,0,0,0.2));
}
.pillar-crest-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--pillar-accent, var(--primary-gradient));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 1.35rem;
  box-shadow: 0 8px 18px -4px var(--pillar-shadow, rgba(0,0,0,0.25));
  transition: transform 0.3s ease;
}
.pillar-architecture-card:hover .pillar-crest-icon {
  transform: scale(1.1) rotate(4deg);
}

/* 7.8 Academic Scholar Profiles (Faculty Page) */
.faculty-scholar-card {
  position: relative;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}
.faculty-scholar-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-elevation-3);
}
.faculty-scholar-photo {
  height: 260px;
  background-size: cover;
  background-position: top center;
  position: relative;
  transition: transform 0.4s ease;
}
.faculty-scholar-card:hover .faculty-scholar-photo {
  transform: scale(1.03);
}
.faculty-scholar-info {
  padding: 1.5rem;
  background: var(--surface-glass-1);
  border-top: 1px solid var(--border-color);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}



