/* ==========================================================================
   GAUTAM RISHI GROUP OF INSTITUTES - PREMIUM WEB STYLE SYSTEM
   Colors: White, Navy Blue (#0d47a1), Soft Cyan (#03BFCB), Dark Navy (#012840)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Color Tokens */
  --primary: #03BFCB;           /* Soft Cyan */
  --primary-rgb: 3, 191, 203;
  --primary-hover: #029fa9;
  --secondary: #0d47a1;         /* Navy Accent */
  --secondary-rgb: 13, 71, 161;
  --dark-navy: #012840;         /* Dark Navy Accent / Footer */
  --dark-navy-rgb: 1, 40, 64;
  
  /* Light Mode Defaults */
  --bg-body: #ffffff;
  --bg-light: #f4f9fc;
  --bg-card: rgba(255, 255, 255, 0.85);
  --border-color: rgba(13, 71, 161, 0.08);
  --text-main: #2d3748;
  --text-muted: #718096;
  --text-light: #ffffff;
  
  /* Shadows & Glassmorphism */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 10px 25px rgba(13, 71, 161, 0.05);
  --shadow-lg: 0 20px 40px rgba(13, 71, 161, 0.1);
  --shadow-glow: 0 0 20px rgba(3, 191, 203, 0.3);
  --backdrop-blur: blur(12px);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  
  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Constants */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  
  --header-height: 70px;
}

/* Dark Mode Overrides */
body.dark-mode {
  --bg-body: #070e17;
  --bg-light: #0d1724;
  --bg-card: rgba(13, 23, 36, 0.85);
  --border-color: rgba(255, 255, 255, 0.06);
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --glass-bg: rgba(7, 14, 23, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode h4, body.dark-mode h5, body.dark-mode h6 {
  color: #ffffff;
}

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

ul {
  list-style: none;
}

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

/* Containers & Grid */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

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

.section-title-wrap {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.section-tagline {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary);
  position: relative;
  display: inline-block;
}

body.dark-mode .section-title {
  color: #ffffff;
}

.section-subtitle {
  color: var(--text-muted);
  margin-top: 15px;
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   BUTTONS & INTERACTIVE ELEMENTS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  gap: 10px;
  outline: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(3, 191, 203, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(3, 191, 203, 0.45), var(--shadow-glow);
}

.btn-secondary {
  background-color: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}

body.dark-mode .btn-secondary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background-color: var(--secondary);
  color: #ffffff;
  transform: translateY(-2px);
}

body.dark-mode .btn-secondary:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-accent {
  background: var(--secondary);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(13, 71, 161, 0.2);
}

.btn-accent:hover {
  background: var(--dark-navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13, 71, 161, 0.3);
}

.btn-white {
  background-color: #ffffff;
  color: var(--secondary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn-white:hover {
  background-color: var(--bg-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   TOP ANNOUNCEMENT BAR & NAVIGATION HEADER
   ========================================================================== */
.announcement-bar {
  background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
  color: #ffffff;
  font-size: 0.85rem;
  padding: 8px 0;
  text-align: center;
  position: relative;
  z-index: 1002;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.announcement-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.announcement-text {
  flex-grow: 1;
  text-align: center;
}

.announcement-btn {
  background: #ffffff;
  color: var(--secondary);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.75rem;
  margin-left: 15px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.announcement-btn:hover {
  background: var(--bg-light);
  transform: scale(1.05);
}

/* Header Navbar */
.main-header {
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop-blur);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 1001;
  transition: var(--transition-normal);
}

.main-header.scrolled {
  background: var(--bg-body);
  box-shadow: var(--shadow-md);
  padding: 10px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0; /* COMPACT PADDING */
  transition: var(--transition-normal);
}

.main-header.scrolled .header-container {
  padding: 8px 0;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 42px; /* REDUCED HEIGHT */
  width: auto;
  transition: var(--transition-normal);
}

.main-header.scrolled .logo-img {
  height: 34px;
}

/* Nav Menu (Single Alignment - No Wrap) */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px; /* COMPACT GAP */
  flex-wrap: nowrap; /* PREVENT WRAPPING */
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 6px 10px; /* COMPACT PADDING */
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--secondary);
  font-size: 0.84rem; /* REDUCED FONT SIZE */
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
  white-space: nowrap; /* PREVENT INTERNAL WRAPPING */
}

body.dark-mode .nav-link {
  color: #ffffff;
}

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

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-body);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition-normal);
  padding: 10px 0;
  z-index: 100;
}

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

.dropdown-item a {
  display: block;
  padding: 10px 24px;
  font-weight: 500;
  color: var(--text-main);
  font-size: 0.88rem;
}

.dropdown-item a:hover {
  background-color: var(--bg-light);
  color: var(--primary);
  padding-left: 28px;
}

/* Actions in Header */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px; /* COMPACT GAP */
}

.lang-selector {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  color: var(--secondary);
  padding: 4px 8px; /* COMPACT PADDING */
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem; /* COMPACT SIZE */
  cursor: pointer;
  outline: none;
}

body.dark-mode .lang-selector {
  background: var(--bg-light);
  color: #ffffff;
  border-color: var(--border-color);
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; /* COMPACT SIZE */
  height: 32px;
  border-radius: 50%;
  transition: var(--transition-fast);
}

body.dark-mode .theme-toggle {
  color: #ffffff;
}

.theme-toggle:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

#btnEnquireNow {
  padding: 6px 14px; /* COMPACT BUTTON */
  font-size: 0.8rem;
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--secondary);
}

body.dark-mode .mobile-menu-toggle {
  color: #ffffff;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  background: radial-gradient(circle at 80% 20%, rgba(3, 191, 203, 0.12) 0%, rgba(255, 255, 255, 0) 60%),
              radial-gradient(circle at 10% 80%, rgba(13, 71, 161, 0.05) 0%, rgba(255, 255, 255, 0) 50%);
  padding: 120px 0 80px 0;
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
}

body.dark-mode .hero {
  background: radial-gradient(circle at 80% 20%, rgba(3, 191, 203, 0.08) 0%, rgba(7, 14, 23, 0) 65%),
              radial-gradient(circle at 10% 80%, rgba(13, 71, 161, 0.15) 0%, rgba(7, 14, 23, 0) 50%);
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-legacy-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-light);
  color: var(--secondary);
  border: 1px solid rgba(3, 191, 203, 0.2);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 25px;
}

body.dark-mode .hero-legacy-badge-top {
  color: var(--primary);
}

.hero-legacy-badge-top i {
  color: var(--primary);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--secondary);
  margin-bottom: 25px;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.hero-title span {
  display: block;
}

.hero-title .highlight-cyan {
  color: var(--primary);
  text-shadow: 0 0 30px rgba(3, 191, 203, 0.15);
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-play-tour {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--secondary);
  cursor: pointer;
}

body.dark-mode .btn-play-tour {
  color: #ffffff;
}

.btn-play-tour:hover {
  color: var(--primary);
}

.play-icon-wrap {
  width: 48px;
  height: 48px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-normal);
  box-shadow: 0 0 15px rgba(3, 191, 203, 0.2);
}

.btn-play-tour:hover .play-icon-wrap {
  background-color: var(--primary);
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

/* Right Illustration */
.hero-illustration-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-main-img-container {
  width: 100%;
  max-width: 520px;
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.hero-main-img-container img {
  width: 100%;
  height: auto;
}

/* Rotating 28 Years Badge */
.circular-badge-container {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 110px;
  height: 110px;
  z-index: 10;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(3, 191, 203, 0.2);
  border: 2px dashed var(--primary);
  animation: rotate-badge 15s linear infinite;
}

body.dark-mode .circular-badge-container {
  background-color: var(--bg-light);
}

.badge-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.badge-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
}

body.dark-mode .badge-num {
  color: var(--primary);
}

.badge-text {
  font-family: var(--font-heading);
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

@keyframes rotate-badge {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.circular-badge-container .badge-inner {
  animation: anti-rotate-badge 15s linear infinite;
}

@keyframes anti-rotate-badge {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

/* Floating Elements */
.floating-element {
  position: absolute;
  z-index: 3;
  width: 50px;
  height: 50px;
  background-color: var(--bg-card);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary);
  box-shadow: var(--shadow-md);
  animation: float-slow 6s ease-in-out infinite;
}

.float-el-1 { top: 20%; left: -20px; animation-delay: 0s; }
.float-el-2 { bottom: 15%; left: 30px; animation-delay: 1.5s; color: var(--secondary); }
.float-el-3 { top: 30%; right: -25px; animation-delay: 3s; color: var(--primary); }
.float-el-4 { bottom: 25%; right: 10px; animation-delay: 4.5s; }

@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
}

/* ==========================================================================
   QUICK ACCESS FEATURE BAR
   ========================================================================== */
.quick-access-bar {
  margin-top: -40px;
  position: relative;
  z-index: 10;
}

.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 10px;
  border-radius: var(--radius-md);
  background-color: transparent;
  transition: var(--transition-normal);
  border: 1px solid transparent;
}

.quick-card:hover {
  background-color: var(--bg-light);
  border-color: var(--border-color);
  transform: translateY(-5px);
}

.quick-icon-wrap {
  width: 50px;
  height: 50px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 12px;
  transition: var(--transition-normal);
}

.quick-card:hover .quick-icon-wrap {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.quick-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 4px;
}

body.dark-mode .quick-title {
  color: #ffffff;
}

.quick-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   STATISTICS SECTION (DARK PREMIUM)
   ========================================================================== */
.stats-section {
  background: linear-gradient(135deg, var(--dark-navy) 0%, #081d2c 100%);
  color: #ffffff;
  padding: 80px 0;
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-card {
  padding: 20px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

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

.stat-icon {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 15px;
  opacity: 0.8;
}

.stat-count {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.1;
  text-shadow: 0 0 20px rgba(3, 191, 203, 0.2);
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

/* ==========================================================================
   FOUR PILLARS SECTION (PREMIUM CARDS & NEON HIGHLIGHTS)
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pillar-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Premium Colored Top Border Indicator */
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: var(--accent-color);
  z-index: 10;
}

.pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(13, 71, 161, 0.1), 0 0 20px rgba(3, 191, 203, 0.15);
  border-color: var(--accent-color);
}

.pillar-img-wrap {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.pillar-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

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

.pillar-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  z-index: 2;
}

.pillar-icon-overlay {
  position: absolute;
  bottom: -20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background-color: #ffffff;
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-md);
  z-index: 3;
  transition: var(--transition-normal);
}

body.dark-mode .pillar-icon-overlay {
  background-color: var(--bg-light);
  color: #ffffff;
}

.pillar-card:hover .pillar-icon-overlay {
  transform: scale(1.1) rotate(360deg);
  background-color: var(--accent-color);
  color: #ffffff;
}

.pillar-content {
  padding: 30px 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.pillar-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 5px;
}

body.dark-mode .pillar-title {
  color: #ffffff;
}

.pillar-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-weight: 600;
}

.pillar-features {
  margin-bottom: 25px;
  flex-grow: 1;
}

.pillar-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  margin-bottom: 10px;
  color: var(--text-main);
}

.pillar-features li i {
  color: var(--primary);
  font-size: 0.9rem;
}

/* Custom pillar accents */
.pillar-1 { --accent-color: #0d47a1; }
.pillar-2 { --accent-color: #03BFCB; }
.pillar-3 { --accent-color: #f57c00; }
.pillar-4 { --accent-color: #6a1b9a; }

.pillar-1 .pillar-badge { background-color: #0d47a1; }
.pillar-2 .pillar-badge { background-color: #03BFCB; }
.pillar-3 .pillar-badge { background-color: #f57c00; }
.pillar-4 .pillar-badge { background-color: #6a1b9a; }

.pillar-card.glowing {
  box-shadow: 0 0 25px rgba(3, 191, 203, 0.15);
  border: 1px dashed var(--primary);
}

.pillar-card.glowing:hover {
  box-shadow: 0 0 35px rgba(3, 191, 203, 0.35);
}

/* ==========================================================================
   WHY CHOOSE SECTION (PREMIUM ICON DASHBOARD)
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  background-color: var(--glass-bg);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--glass-border);
  padding: 30px;
  border-radius: var(--radius-lg);
  transition: var(--transition-normal);
  display: flex;
  gap: 20px;
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(3, 191, 203, 0.4);
}

.why-icon {
  width: 54px;
  height: 54px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: var(--transition-normal);
}

.why-card:hover .why-icon {
  background-color: var(--primary);
  color: #ffffff;
  transform: scale(1.05) rotate(-5deg);
  box-shadow: var(--shadow-glow);
}

.why-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
}

body.dark-mode .why-title {
  color: #ffffff;
}

.why-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   JOURNEY OF 28 YEARS TIMELINE (STAGGERED AND GLOWING)
   ========================================================================== */
.timeline-outer {
  position: relative;
  padding: 60px 0;
  overflow-x: auto;
}

.timeline-outer::-webkit-scrollbar {
  height: 6px;
}

.timeline-outer::-webkit-scrollbar-track {
  background: var(--bg-light);
  border-radius: var(--radius-full);
}

.timeline-outer::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: var(--radius-full);
}

.timeline-outer::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.timeline-track {
  display: flex;
  min-width: 1200px;
  position: relative;
  justify-content: space-between;
  padding: 120px 0; /* Expanded padding for staggered layouts */
}

/* Glowing Neon Timeline Line */
.timeline-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 6px; /* Thicker line */
  background-color: var(--border-color);
  z-index: 1;
  transform: translateY(-50%);
  border-radius: var(--radius-full);
}

.timeline-progress {
  position: absolute;
  top: 50%;
  left: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
  z-index: 2;
  width: 0%;
  transform: translateY(-50%);
  border-radius: var(--radius-full);
  box-shadow: 0 0 15px rgba(3, 191, 203, 0.6);
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-node {
  flex: 1;
  position: relative;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

/* Centered Glowing Nodes */
.node-dot {
  width: 26px;
  height: 26px;
  background-color: var(--bg-body);
  border: 4px solid var(--border-color);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.timeline-node:hover .node-dot, .timeline-node.active .node-dot {
  border-color: var(--primary);
  background-color: var(--bg-body);
  box-shadow: var(--shadow-glow);
  transform: translate(-50%, -50%) scale(1.2);
}

.node-dot::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: var(--primary);
  border-radius: 50%;
  opacity: 0;
  transition: var(--transition-fast);
}

.timeline-node.active .node-dot::after {
  opacity: 1;
}

/* Staggered Timeline content cards */
.timeline-content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
  width: 180px;
  position: absolute;
  transition: var(--transition-normal);
  z-index: 4;
}

body.dark-mode .timeline-content-card {
  background: var(--bg-card);
}

.timeline-node:hover .timeline-content-card {
  transform: scale(1.05) translate(-48%, 0);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

/* Align staggered positions */
.timeline-node:nth-child(odd) .timeline-content-card {
  bottom: 35px; /* Float above the line */
  transform: translateX(-50%);
}

.timeline-node:nth-child(even) .timeline-content-card {
  top: 35px; /* Float below the line */
  transform: translateX(-50%);
}

.node-year {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 4px;
}

body.dark-mode .node-year {
  color: var(--primary);
}

.node-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.3;
}

/* ==========================================================================
   STUDENT LIFE GALLERY
   ========================================================================== */
.gallery-slider-wrap {
  position: relative;
  margin-top: 30px;
}

.gallery-container {
  overflow: hidden;
  padding: 20px 0;
}

.gallery-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-track-item {
  min-width: calc(33.333% - 16px);
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition-normal);
}

.gallery-track-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(3, 191, 203, 0.3);
}

.gallery-slider-img {
  height: 240px;
  overflow: hidden;
  position: relative;
}

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

.gallery-track-item:hover .gallery-slider-img img {
  transform: scale(1.08);
}

.gallery-slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 191, 203, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.8rem;
  opacity: 0;
  transition: var(--transition-normal);
}

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

.gallery-slider-content {
  padding: 20px 24px;
}

.gallery-slider-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--secondary);
}

body.dark-mode .gallery-slider-title {
  color: #ffffff;
}

/* Slider Controls */
.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--bg-body);
  border: 1px solid var(--primary); /* Cyan accent border */
  box-shadow: var(--shadow-md);
  color: var(--secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 10;
  transition: var(--transition-normal);
}

body.dark-mode .gallery-nav-btn {
  color: #ffffff;
  border-color: var(--primary);
}

.gallery-nav-btn:hover {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.gallery-nav-btn.prev { left: -25px; }
.gallery-nav-btn.next { right: -25px; }

/* ==========================================================================
   LEADERSHIP & GOVERNING BOARD
   ========================================================================== */
.chairman-message-section {
  background: radial-gradient(circle at 10% 20%, rgba(3, 191, 203, 0.06) 0%, rgba(255, 255, 255, 0) 50%);
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
  z-index: 2;
}

.leader-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.leader-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(3, 191, 203, 0.3);
}

.leader-img-wrap {
  height: 300px;
  overflow: hidden;
  border-bottom: 4px solid var(--primary-light);
}

.leader-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

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

.leader-content {
  padding: 30px 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.leader-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 4px;
}

body.dark-mode .leader-name {
  color: #ffffff;
}

.leader-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.leader-quote {
  font-size: 0.88rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 25px;
  flex-grow: 1;
}

.leader-signature {
  font-family: 'Georgia', serif;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--secondary);
  text-align: right;
  opacity: 0.8;
}

body.dark-mode .leader-signature {
  color: var(--primary);
}

/* ==========================================================================
   CALL TO ACTION BANNER (LEGACY OF EXCELLENCE)
   ========================================================================== */
.cta-banner-wrap {
  padding: 60px 0;
  position: relative;
  z-index: 2;
}

.cta-banner {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--dark-navy) 100%);
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-banner-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 0.8fr;
  gap: 30px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.cta-legacy-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
}

.cta-legacy-subtitle {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-top: 10px;
}

.cta-center {
  text-align: center;
}

.cta-reviews-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.rating-stars {
  color: #ffb300;
  font-size: 1.15rem;
  margin-bottom: 5px;
}

.reviews-count {
  font-size: 0.82rem;
  opacity: 0.7;
}

.review-avatars {
  display: flex;
  margin-top: 10px;
}

.review-avatars img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--secondary);
  margin-left: -8px;
}

.review-avatars img:first-child {
  margin-left: 0;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.footer {
  background-color: var(--dark-navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 100px 0 30px 0;
  font-size: 0.88rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr 0.9fr 1.1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo-wrap {
  margin-bottom: 20px;
}

.footer-logo-wrap img {
  height: 48px;
  filter: brightness(0) invert(1);
}

.footer-about {
  margin-bottom: 25px;
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.social-btn:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.footer-heading {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background-color: var(--primary);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.footer-contact li {
  margin-bottom: 16px;
  display: flex;
  gap: 12px;
}

.footer-contact i {
  color: var(--primary);
  margin-top: 4px;
}

.footer-contact-text {
  line-height: 1.4;
}

.qr-code-wrap {
  background-color: #ffffff;
  padding: 10px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-top: 15px;
}

.qr-code-wrap img {
  width: 90px;
  height: 90px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.8rem;
  opacity: 0.8;
}

.footer-legal-links {
  display: flex;
  gap: 24px;
}

.footer-legal-links a:hover {
  color: var(--primary);
}

/* ==========================================================================
   FLOATING WIDGETS (WHATSAPP, ENQUIRY, CHATBOT)
   ========================================================================== */
.floating-widgets-wrap {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  transition: var(--transition-normal);
}

.btn-whatsapp {
  background-color: #25d366;
}

.btn-whatsapp:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.btn-chatbot {
  background-color: var(--primary);
}

.btn-chatbot:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

/* Live Enquiry Bar */
.live-enquiry-widget {
  position: fixed;
  right: -320px;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  background-color: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: var(--transition-normal);
}

.live-enquiry-widget.active {
  right: 0;
}

.enquiry-handle {
  position: absolute;
  left: -48px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: right center;
  background: var(--secondary);
  color: #ffffff;
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  cursor: pointer;
  box-shadow: -3px 0 10px rgba(0, 0, 0, 0.1);
}

.live-enquiry-body {
  padding: 30px 24px;
}

.enquiry-title {
  font-size: 1.15rem;
  color: var(--secondary);
  margin-bottom: 20px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 8px;
}

body.dark-mode .enquiry-title {
  color: #ffffff;
}

/* Chatbot Window */
.chatbot-window {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 350px;
  height: 480px;
  background-color: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: var(--transition-normal);
}

.chatbot-window.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chatbot-header {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  color: #ffffff;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
}

.chatbot-close {
  cursor: pointer;
  font-size: 1.2rem;
  opacity: 0.8;
}

.chatbot-close:hover {
  opacity: 1;
}

.chatbot-messages {
  flex-grow: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.chat-bubble.bot {
  background-color: var(--bg-light);
  color: var(--text-main);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-bubble.user {
  background-color: var(--primary);
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chatbot-input-wrap {
  display: flex;
  border-top: 1px solid var(--border-color);
  padding: 10px;
  background-color: var(--bg-body);
}

.chatbot-input {
  flex-grow: 1;
  border: none;
  background: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 8px 12px;
  color: var(--text-main);
}

.chatbot-send {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0 10px;
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--secondary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-normal);
  z-index: 998;
}

.scroll-to-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background-color: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

/* ==========================================================================
   MODALS AND OVERLAYS (HIDDEN BY DEFAULT - POSITIONED FIXED)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(1, 40, 64, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background-color: var(--bg-body);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(0.9);
  transition: var(--transition-normal);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-header-banner {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  color: #ffffff;
  padding: 30px;
  position: relative;
}

.modal-header-title {
  color: #ffffff;
  font-size: 1.6rem;
  margin-bottom: 5px;
  font-weight: 700;
}

.modal-header-desc {
  font-size: 0.88rem;
  opacity: 0.9;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.8;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.modal-body {
  padding: 30px;
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(7, 14, 23, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 85%;
  max-height: 80%;
  position: relative;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lightbox-caption {
  color: white;
  text-align: center;
  margin-top: 15px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  color: white;
  font-size: 2.2rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lightbox-close:hover {
  color: var(--primary);
  transform: rotate(90deg);
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1200px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
  .quick-access-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .stat-card {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .stat-card:nth-child(4), .stat-card:nth-child(5), .stat-card:nth-child(6) {
    border-bottom: none;
  }
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-track-item {
    min-width: calc(50% - 12px);
  }
  .footer-top {
    grid-template-columns: repeat(3, 1fr);
  }
  .cta-banner-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .cta-reviews-wrap {
    align-items: center;
  }
  .leadership-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }
  .hero-legacy-badge-top {
    justify-content: center;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-main-img-container {
    margin-left: auto;
    margin-right: auto;
  }
  .about-row {
    grid-template-columns: 1fr;
  }
  .philosophy-grid {
    grid-template-columns: 1fr;
  }
  .institutions-grid {
    grid-template-columns: 1fr;
  }
  .academics-container {
    grid-template-columns: 1fr;
  }
  .academics-sidebar {
    position: static;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .leadership-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  .announcement-bar {
    font-size: 0.78rem;
    padding: 6px 12px;
  }
  .announcement-container {
    flex-direction: column;
    gap: 6px;
  }
  .announcement-btn {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 80%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-body);
    flex-direction: column;
    align-items: flex-start;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border-right: 1px solid var(--border-color);
    transition: var(--transition-normal);
  }
  .nav-menu.active {
    left: 0;
  }
  .nav-item {
    width: 100%;
    margin-bottom: 20px;
  }
  .nav-link {
    width: 100%;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem; /* Standard size on mobile menu list */
  }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    transform: none;
    padding-left: 20px;
    border: none;
    display: none;
    background-color: transparent;
  }
  .nav-item.active-drop .dropdown-menu {
    display: block;
  }
  .quick-access-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-card:nth-child(4) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .gallery-track-item {
    min-width: 100%;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-legal-links {
    justify-content: center;
  }
  
  /* Staggered Timeline Mobile Override */
  .timeline-track {
    padding: 60px 0;
  }
  .timeline-node:nth-child(odd) .timeline-content-card,
  .timeline-node:nth-child(even) .timeline-content-card {
    position: relative;
    top: auto;
    bottom: auto;
    transform: none;
    margin-top: 15px;
    width: 150px;
  }
  .timeline-node:nth-child(odd) .timeline-content-card {
    margin-bottom: 20px;
  }
  .node-dot {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 15px auto;
  }
  .timeline-node:hover .timeline-content-card {
    transform: none;
  }
  .timeline-line, .timeline-progress {
    display: none; /* Hide timeline line on mobile flex stack */
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .quick-access-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-card {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .stat-card:last-child {
    border-bottom: none;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CINEMATIC INTRO OVERLAY & KEYNOTE ANIMATION SYSTEM (BORDERLESS APPLE/GOOGLE THEME)
   ========================================================================== */
.intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff; /* Pure white keynote background */
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 1.5s;
}

.intro-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Enter Cinematic Screen (Minimal White Gate) */
.intro-enter-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--secondary);
  z-index: 10;
  transition: all 1s ease;
}

.intro-enter-container.fade-out {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.9);
}

.enter-logo-wrap {
  margin-bottom: 25px;
}

.enter-logo {
  height: 65px;
}

.enter-legacy-badge {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--primary);
  margin-bottom: 40px;
  opacity: 0.8;
  animation: enter-pulse 2s infinite ease-in-out;
}

@keyframes enter-pulse {
  0%, 100% { opacity: 0.6; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.02); }
}

.enter-btn {
  padding: 16px 36px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  box-shadow: 0 0 30px rgba(3, 191, 203, 0.25);
}

/* 16:9 Presentation Viewport */
.intro-viewport {
  position: absolute;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
}

.intro-viewport.active {
  display: flex;
}

/* Stage 2 Canvas: Flying paper birds & particle trails */
.intro-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* Stage 1: Soft Ribbons Background Overlay */
.ribbons-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.ribbon {
  position: absolute;
  background: linear-gradient(135deg, rgba(3, 191, 203, 0.15) 0%, rgba(3, 191, 203, 0) 70%);
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0;
  transition: opacity 2s ease;
}

.ribbons-wrapper.active .ribbon {
  opacity: 1;
}

.ribbon-1 {
  width: 600px;
  height: 300px;
  top: -100px;
  left: -100px;
}

.ribbon-2 {
  width: 500px;
  height: 400px;
  bottom: -150px;
  right: -100px;
  background: linear-gradient(135deg, rgba(255, 179, 0, 0.08) 0%, rgba(255, 179, 0, 0) 70%);
}

/* Stage 1: Educational Journey Sequential Sketch Cards */
.journey-cards-container {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.journey-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  width: 390px;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-lg);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
  z-index: 4;
}

.journey-card.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.journey-card-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.journey-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(3, 191, 203, 0.08);
  font-size: 1.8rem;
  flex-shrink: 0;
  overflow: hidden;
  border: 2.5px solid var(--primary);
  box-shadow: 0 0 15px rgba(3, 191, 203, 0.2);
}

.journey-avatar.image-avatar {
  background-color: #ffffff;
}

.journey-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journey-body h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 4px;
}

.journey-body p {
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--text-muted);
}

/* Stage 3-4: Center Logo Reveal (NO CIRCULAR FRAME OR BADGE OR BORDERS) */
.intro-reveal-container {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 5;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.intro-reveal-container.active {
  opacity: 1;
  transform: scale(1);
}

.reveal-logo-borderless {
  position: relative;
  margin-bottom: 30px;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.reveal-logo-borderless.active {
  opacity: 1;
  transform: scale(1);
}

.reveal-logo-img {
  height: 95px; /* Clean, bold, highly legible */
  width: auto;
  filter: none; /* No inversion or dark frames */
}

/* Logo Natural Light Sweep */
.logo-light-sweep {
  position: absolute;
  top: 0;
  left: -150%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: skewX(-25deg);
}

.reveal-logo-borderless.sweep .logo-light-sweep {
  animation: logo-sweep-anim 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes logo-sweep-anim {
  100% { left: 150%; }
}

/* Celebrating Clean Text */
.celebrate-text-clean {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.celebrate-text-clean.active {
  opacity: 1;
  transform: translateY(0);
}

/* Tagline Slider clean */
.tagline-clean-wrapper {
  position: relative;
  overflow: hidden;
  padding: 10px 30px;
}

.tagline-cyan-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  transition: width 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.tagline-cyan-line.active {
  width: 100%;
}

.reveal-tagline-clean {
  font-family: var(--font-heading);
  font-size: 1.38rem;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transition: opacity 1.2s ease 0.4s;
}

.reveal-tagline-clean.active {
  opacity: 1;
}

/* Stage 5: Developer Credits */
.intro-credits-container {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  z-index: 10;
  pointer-events: none;
}

.intro-credits-container.active {
  opacity: 1;
}

.credits-line-top {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary);
}

.credits-line-bottom {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--primary);
  text-transform: uppercase;
}

/* Skip Button */
.intro-skip-btn {
  position: absolute;
  bottom: 40px;
  right: 40px;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  padding: 8px 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  z-index: 100;
  transition: var(--transition-fast);
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.7);
}

.intro-skip-btn:hover {
  color: var(--secondary);
  border-color: var(--secondary);
  background-color: rgba(13, 71, 161, 0.05);
  box-shadow: var(--shadow-md);
}


/* ==========================================================================
   MOBILE FRIENDLY iOS APP PORT & TRANSLUCENT WIDGET SYSTEM
   ========================================================================== */
.ios-tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 68px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-top: 0.5px solid rgba(0, 0, 0, 0.08);
  display: none; /* hidden on desktop screens */
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  justify-items: center;
  z-index: 9999;
  box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.03);
  padding-bottom: env(safe-area-inset-bottom, 8px);
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #8E8E93; /* Apple system grey symbol */
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.15s ease;
  width: 100%;
  text-align: center;
}

.tab-item:active {
  transform: scale(0.93);
}

.tab-item.active {
  color: var(--primary); /* Glowing active cyan color */
}

.tab-icon {
  font-size: 1.15rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.tab-item.active .tab-icon {
  background-color: rgba(3, 191, 203, 0.08);
  color: var(--primary);
  border: 1px solid rgba(3, 191, 203, 0.1);
}

/* Responsive bottom padding offset and elements scaling */
@media (max-width: 768px) {
  .ios-tab-bar {
    display: grid;
  }
  
  body {
    padding-bottom: 78px !important; /* Prevent tab bar from overlapping page elements */
  }

  /* Completely Mobile Friendly tweaks for all sections */
  .section-padding {
    padding: 60px 0;
  }

  .hero-title {
    font-size: 2.3rem !important;
    line-height: 1.25;
  }

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

  /* iOS widget styling on mobile cards */
  .quick-access-card, .pillar-card, .why-card, .leadership-card, .timeline-content-card, .news-card {
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 24px !important;
    box-shadow: 0 10px 30px rgba(3, 191, 203, 0.03) !important;
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  }

  .quick-access-card:active, .pillar-card:active, .why-card:active, .news-card:active {
    transform: scale(0.96); /* iOS tap scale down */
  }

  /* Translucent frosted-glass icons for widgets */
  .quick-access-card i, 
  .why-card-icon, 
  .pillar-avatar i, 
  .leader-avatar i,
  .info-icon-wrapper i {
    background: rgba(3, 191, 203, 0.08) !important;
    color: var(--primary) !important;
    border: 1.5px solid rgba(3, 191, 203, 0.12) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
    border-radius: 14px !important;
    width: 46px !important;
    height: 46px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 1.25rem;
  }

  /* iOS style sheet modal drawer sliding up from the bottom */
  .modal-overlay {
    align-items: flex-end !important;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.45);
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  }

  .modal-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 28px 28px 0 0 !important;
    transform: translateY(100%) !important;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
    max-height: 88vh;
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 -10px 45px rgba(0, 0, 0, 0.15) !important;
  }

  .modal-overlay.active .modal-card {
    transform: translateY(0) !important;
  }

  /* Drag indicator top bar handle */
  .modal-card::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 38px;
    height: 5px;
    background-color: rgba(0, 0, 0, 0.14);
    border-radius: 3px;
    z-index: 100;
  }

  .modal-header-banner {
    padding-top: 32px !important;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.95) 0%, rgba(3, 191, 203, 0.95) 100%) !important;
    color: #ffffff;
  }

  .modal-close-btn {
    top: 25px !important;
    right: 25px !important;
  }
}
