:root {
  /* Clean Light Mode Color System */
  --clr-bg: #FFFFFF;
  --clr-surface: #F8FAFC;
  --clr-text: #0F172A;
  --clr-text-muted: #475569;
  
  --clr-primary: #0066FF;
  --clr-primary-hover: #0052cc;
  --clr-secondary: #001F54;
  --clr-accent: #FFD700;

  /* Typography */
  --font-sans: 'Inter', sans-serif;
  --font-heading: 'Sora', sans-serif;
  --font-accent: 'Poppins', sans-serif;

  /* Fluid Typography */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  --text-3xl: clamp(1.75rem, 1.4rem + 1.75vw, 2.5rem);
  --text-4xl: clamp(2rem, 1.6rem + 2vw, 3.5rem);
  --text-5xl: clamp(2.5rem, 2rem + 3vw, 5rem);
  --text-hero: clamp(2.5rem, 1.5rem + 5vw, 5.5rem);

  /* Fluid Spacing */
  --space-2: clamp(0.25rem, 0.2rem + 0.25vw, 0.5rem);
  --space-4: clamp(0.75rem, 0.65rem + 0.5vw, 1rem);
  --space-8: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --space-12: clamp(2rem, 1.6rem + 2vw, 3rem);
  --space-16: clamp(2.5rem, 1.9rem + 3vw, 4rem);
  --space-24: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  
  /* Borders & Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-normal: 300ms ease;
}

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

html {
  font-size: 16px;
  overflow-x: clip; /* clip prevents horizontal scroll without creating a containing block for fixed children */
}

body {
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
  color: var(--clr-text);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-5xl); line-height: 1.1; }
h2 { font-size: var(--text-4xl); line-height: 1.15; }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  margin-bottom: var(--space-4);
  font-size: var(--text-base);
  color: var(--clr-text-muted);
}

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

ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 768px) {
  .container { padding: 0 var(--space-8); }
}

.section { padding: var(--space-12) 0; }
@media (min-width: 768px) {
  .section { padding: var(--space-24) 0; }
}
.section-bg { background-color: var(--clr-surface); }

.flex { display: flex; }
.grid { display: grid; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: var(--space-4); }
.gap-8 { gap: var(--space-8); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-accent);
  font-weight: 500;
  font-size: var(--text-base);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  text-transform: none; /* Cleaner look without uppercase */
}

.btn-primary {
  background: var(--clr-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
  background: var(--clr-primary-hover);
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--clr-text);
  border: 1px solid #E2E8F0;
}

.btn-outline:hover {
  background: var(--clr-surface);
  border-color: #CBD5E1;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: var(--text-lg);
}

.hero-buttons {
  flex-direction: column;
  width: 100%;
}
.hero-buttons .btn { width: 100%; }
@media (min-width: 640px) {
  .hero-buttons { flex-direction: row; width: auto; }
  .hero-buttons .btn { width: auto; }
}

/* Gradients */
.text-gradient {
  background: linear-gradient(135deg, var(--clr-secondary), var(--clr-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Lenis */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* ==========================================
   Component Styles
   ========================================== */

/* Navigation — now sticky on all devices */
.nav-header {
  position: sticky;          /* ← changed from fixed to sticky */
  top: 0;                    /* keeps it at the top */
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #F1F5F9;
  transition: all var(--transition-normal);
}

.top-bar {
  background: var(--clr-secondary);
  color: #fff;
  font-size: 0.8rem;
  padding: 6px 0;
}

.top-bar-container {
  flex-direction: column;
  gap: 8px;
}
@media (min-width: 768px) {
  .top-bar-container {
    flex-direction: row;
    gap: 0;
  }
}

.top-bar a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: 500;
}
.top-bar a:hover {
  color: #fff;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
}
.social-icon:hover {
  background: var(--clr-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.bottom-ticker {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  white-space: nowrap;
  background: var(--clr-primary);
  color: #fff;
  font-size: 0.85rem;
  padding: 8px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 28s linear infinite;
  will-change: transform;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-track span {
  padding-right: 60px;
  flex-shrink: 0;
}

/* Shift by exactly half (one copy) for seamless loop */
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.nav-container { height: 70px; }

.logo {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  line-height: 1;
  color: var(--clr-secondary);
}

.logo span {
  font-size: 0.65em;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--clr-primary);
}

/* Live Nav Clock — inline beside COLLEGE */
.nav-clock {
  font-size: 0.6em;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--clr-primary);
  opacity: 0.7;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  padding-left: 0.45em;
  border-left: 1.5px solid rgba(0, 102, 255, 0.25);
}

.nav-link {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--clr-text-muted);
}
.nav-link:hover { color: var(--clr-primary); }

/* Dropdown Styles */
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff;
  min-width: 230px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #E8EEF6;
  border-radius: 14px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.22,1,0.36,1), visibility 0.22s ease;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

/* Arrow tip */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #fff;
  border-top: 1px solid #E8EEF6;
  border-left: 1px solid #E8EEF6;
  border-radius: 2px 0 0 0;
}

.nav-dropdown:hover > .dropdown-menu,
.nav-dropdown:focus-within > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.dropdown-item {
  display: block;
  padding: 0.7rem 1.25rem;
  color: var(--clr-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
  border-radius: 8px;
  margin: 0 0.35rem;
}

.dropdown-item:hover {
  background: rgba(0,102,255,0.06);
  color: var(--clr-primary);
  padding-left: 1.5rem;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
  padding: 5px;
}
.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background-color: var(--clr-text);
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: left center;
}
.mobile-menu-btn.is-active span:nth-child(1) { transform: rotate(45deg); }
.mobile-menu-btn.is-active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.is-active span:nth-child(3) { transform: rotate(-45deg); }

/* ══════════════════════════════════════════
   MOBILE NAV — Full-screen Right-Drawer
══════════════════════════════════════════ */

/* Backdrop overlay */
#mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1998;
  background: rgba(5, 11, 20, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
#mobile-nav-backdrop.open {
  opacity: 1;
}

/* The drawer panel itself */
#mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(360px, 88vw);
  z-index: 1999;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  padding: 2rem 2rem 3rem;
  overflow-y: auto;
  transform: translateX(105%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.15);
}
#mobile-nav-drawer.open {
  transform: translateX(0);
}

/* Drawer header */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #F1F5F9;
}
.drawer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--clr-secondary);
  text-decoration: none;
}
.drawer-logo img { height: 1.8rem; width: auto; }
.drawer-close {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: #F8FAFC;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--clr-text);
  transition: background 0.2s, color 0.2s;
}
.drawer-close:hover { background: rgba(0,102,255,0.08); color: var(--clr-primary); }

/* Nav links */
.drawer-nav-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}
.drawer-nav-list li { opacity: 0; transform: translateX(20px); }
#mobile-nav-drawer.open .drawer-nav-list li {
  animation: drawerLinkIn 0.4s cubic-bezier(0.22,1,0.36,1) both;
}
#mobile-nav-drawer.open .drawer-nav-list li:nth-child(1)  { animation-delay: 0.05s; }
#mobile-nav-drawer.open .drawer-nav-list li:nth-child(2)  { animation-delay: 0.10s; }
#mobile-nav-drawer.open .drawer-nav-list li:nth-child(3)  { animation-delay: 0.15s; }
#mobile-nav-drawer.open .drawer-nav-list li:nth-child(4)  { animation-delay: 0.20s; }
#mobile-nav-drawer.open .drawer-nav-list li:nth-child(5)  { animation-delay: 0.25s; }
#mobile-nav-drawer.open .drawer-nav-list li:nth-child(6)  { animation-delay: 0.30s; }
#mobile-nav-drawer.open .drawer-nav-list li:nth-child(7)  { animation-delay: 0.35s; }
@keyframes drawerLinkIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.drawer-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--clr-text);
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
}
.drawer-nav-link:hover { background: rgba(0,102,255,0.06); color: var(--clr-primary); }
.drawer-nav-link.active { color: var(--clr-primary); background: rgba(0,102,255,0.06); }

.drawer-chevron {
  transition: transform 0.25s ease;
  flex-shrink: 0;
  color: var(--clr-text-muted);
}
.drawer-dropdown.open .drawer-chevron { transform: rotate(180deg); }

/* Drawer sub-menu */
.drawer-submenu {
  list-style: none;
  margin: 0.25rem 0 0.5rem;
  padding: 0.25rem 0;
  background: #F8FAFC;
  border-radius: 10px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}
.drawer-dropdown.open .drawer-submenu {
  max-height: 300px;
}
.drawer-submenu a {
  display: block;
  padding: 0.6rem 1.5rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.drawer-submenu a:hover { background: rgba(0,102,255,0.08); color: var(--clr-primary); }

/* Drawer footer */
.drawer-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #F1F5F9;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.drawer-footer a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.drawer-footer a:hover { color: var(--clr-primary); }
.drawer-cta {
  margin-top: 1.25rem;
}
.drawer-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem;
  background: var(--clr-primary);
  color: #fff !important;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-heading);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,102,255,0.25);
  transition: box-shadow 0.2s, transform 0.2s;
}
.drawer-cta a:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,102,255,0.3); }

@media (max-width: 992px) {
  /* Keep sticky on mobile, do NOT override with relative */
  .nav-header { position: sticky; top: 0; }  /* ← ensures sticky on mobile too */
  .desktop-nav { display: none !important; }
  .mobile-menu-btn { display: flex; }
}
@media (min-width: 993px) {
  #mobile-nav-backdrop,
  #mobile-nav-drawer { display: none !important; }
}

@media (max-width: 768px) {
  .nav-actions .btn-outline { display: none; }
  .nav-actions .btn-primary { 
    padding: 0.5rem 1rem; 
    font-size: var(--text-sm);
  }
  .logo { font-size: 1.2rem; }
  .nav-container { height: 60px; }
}


/* Hero Section (Slider) */
.hero-section {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #000;
  padding-top: 160px;
  padding-bottom: 80px;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 1.5s ease-in-out;
  animation: slowZoom 20s linear forwards;
  transform-origin: center center;
  will-change: transform, opacity;
}

@keyframes slowZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  margin-top: 5vh;
  color: #fff; /* White text on hero images */
}

.hero-content h1, .hero-content p {
  color: #fff;
}
.hero-content .text-gradient {
  background: linear-gradient(135deg, #fff, #CBD5E1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text-wrapper {
  max-width: 800px;
}

.hero-title {
  font-size: var(--text-hero);
  margin-bottom: var(--space-4);
  line-height: 1.05;
}

.hero-subtitle {
  font-size: var(--text-lg);
  max-width: 600px;
  margin-bottom: var(--space-8);
  color: rgba(255,255,255,0.9);
}
@media (min-width: 768px) {
  .hero-subtitle {
    font-size: var(--text-xl);
  }
}

/* Stats */
.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: var(--space-8);
  margin-top: var(--space-12);
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: var(--space-8);
}
.stat-item h3 {
  font-size: var(--text-4xl);
  color: var(--clr-primary);
  margin-bottom: 0;
}
.stat-item p {
  font-size: var(--text-sm);
  color: #CBD5E1;
}

/* Why Section */
.why-grid {
  grid-template-columns: 1fr;
  gap: var(--space-12);
}
@media (min-width: 992px) {
  .why-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}
.feature-list { margin-top: var(--space-8); }
.feature-list li {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  font-size: var(--text-lg);
  color: var(--clr-text);
  font-weight: 500;
}
.why-visual {
  height: 300px;
  border-radius: var(--radius-xl);
  background-image: url('../images/41.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
@media (min-width: 768px) {
  .why-visual { height: 450px; }
}

/* Programs Section */
.programs-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
@media (min-width: 768px) {
  .programs-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.program-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.filter-btn {
  background: #fff;
  border: 1px solid #E2E8F0;
  color: var(--clr-text-muted);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: var(--font-sans);
  font-weight: 500;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--clr-primary);
  color: #fff;
  border-color: var(--clr-primary);
}

.programs-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: var(--space-8);
}

.program-card {
  background: #fff;
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  border: 1px solid #F1F5F9;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.program-card:hover {
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
  transform: translateY(-4px);
}
.card-icon {
  width: 56px;
  height: 56px;
  background: var(--clr-surface);
  color: var(--clr-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.program-card h3 { 
  margin-bottom: var(--space-2); 
  font-size: var(--text-xl); 
  line-height: 1.3;
}
.program-card p {
  font-size: var(--text-sm);
}
.program-card .btn { margin-top: auto; }

/* Floating Widgets */
.floating-widgets {
  position: fixed;
  bottom: var(--space-8);
  width: 100%;
  left: 0;
  pointer-events: none;
  z-index: 1000;
}

.fab-btn {
  position: absolute;
  bottom: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transition: all var(--transition-normal);
  border: none;
}
.fab-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

@keyframes idleBreathe {
  0%, 100% { transform: scale(1) translateY(0); box-shadow: 0 10px 25px rgba(0,102,255,0.3); }
  50% { transform: scale(1.05) translateY(-3px); box-shadow: 0 15px 35px rgba(0,102,255,0.5); }
}

.ai-fab {
  left: var(--space-4);
  background: var(--clr-primary);
  animation: idleBreathe 3s infinite ease-in-out;
}

.wa-fab {
  right: var(--space-4);
  background: #25D366;
}

.ai-tooltip {
  position: absolute;
  bottom: 75px;
  left: var(--space-4);
  background: #fff;
  color: var(--clr-text);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  border-bottom-left-radius: 4px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  font-size: var(--text-sm);
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  white-space: nowrap;
}
.ai-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 12px;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: rotate(45deg);
  border-bottom-right-radius: 3px;
}

.ai-tooltip.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (min-width: 768px) {
  .ai-fab { left: var(--space-8); }
  .wa-fab { right: var(--space-8); }
  .ai-tooltip { left: var(--space-8); }
}

/* AI Chat Modal (iOS iMessage Theme) */
.ai-chat-modal {
  position: fixed;
  bottom: 80px;
  left: var(--space-4);
  width: calc(100vw - 2rem);
  max-width: 440px;
  height: 600px;
  max-height: calc(100vh - 120px);
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  border: 1px solid rgba(0,0,0,0.1);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (max-width: 767px) {
  .ai-chat-modal.is-open {
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: none;
  }
}

@media (min-width: 768px) {
  .ai-chat-modal { left: var(--space-8); width: 440px; bottom: 90px; }
}

.ai-chat-modal.is-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* iOS Header */
.chat-header {
  background: rgba(242, 242, 247, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.ios-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ios-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.ios-name {
  font-size: 11px;
  font-weight: 500;
  color: #000;
  margin-top: 4px;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.close-chat {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
}

/* Chat Messages Area */
.chat-messages {
  flex: 1;
  padding: var(--space-4);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  background: #fff;
}

/* iMessage Bubbles */
.message {
  position: relative;
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 20px;
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 6px;
  word-wrap: break-word;
  z-index: 1;
}

/* AI Message (Receiver - Grey) */
.ai-message {
  background: #E9E9EB;
  color: #000;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  margin-left: 6px;
}
.ai-message::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: -6px;
  height: 20px;
  width: 20px;
  background: #E9E9EB;
  border-bottom-right-radius: 15px;
  z-index: -1;
}
.ai-message::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -8px;
  height: 20px;
  width: 10px;
  background: #fff;
  border-bottom-right-radius: 10px;
  z-index: -1;
}

.ai-message ul {
  margin: 0.5rem 0;
  padding-left: 1.2rem;
  list-style-type: disc;
}
.ai-message li { margin-bottom: 0.3rem; }
.ai-message p { margin-bottom: 0.5rem; }
.ai-message p:last-child { margin-bottom: 0; }
.ai-message strong { font-weight: 600; }

/* User Message (Sender - Blue) */
.user-message {
  background: #007AFF;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  margin-right: 6px;
}
.user-message::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: -6px;
  height: 20px;
  width: 20px;
  background: #007AFF;
  border-bottom-left-radius: 15px;
  z-index: -1;
}
.user-message::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: -8px;
  height: 20px;
  width: 10px;
  background: #fff;
  border-bottom-left-radius: 10px;
  z-index: -1;
}

/* iMessage Input Area */
.chat-input-area {
  background: rgba(242, 242, 247, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0,0,0,0.1);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.input-pill {
  flex: 1;
  background: #fff;
  border: 1px solid #C7C7CC;
  border-radius: 20px;
  padding: 6px 16px;
  display: flex;
  align-items: center;
}

.input-pill input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  color: #000;
  padding: 4px 0;
  outline: none;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.input-pill input::placeholder {
  color: #8E8E93;
}

@media (max-width: 480px) {
  .input-pill input {
    font-size: 13px;
  }
}

.ios-send-btn {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: #007AFF;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s;
}
.ios-send-btn:hover {
  opacity: 0.8;
}

/* Typing Indicator */
.typing-indicator {
  background: #E9E9EB;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  margin-left: 6px;
  padding: 12px 16px;
  border-radius: 20px;
  display: flex;
  gap: 4px;
}
.typing-indicator span {
  width: 8px;
  height: 8px;
  background: #999;
  border-radius: 50%;
  animation: typing-bounce 1.2s infinite ease-in-out;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
  0%, 80%, 100% { transform: scale(1); opacity: 0.5; }
  40% { transform: scale(1.3); opacity: 1; }
}

/* Student Life Section */
.student-life-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  grid-auto-rows: 250px;
}
@media (min-width: 768px) {
  .student-life-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: var(--space-6);
  }
}
.student-life-img {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform var(--transition-normal);
}
.student-life-img:hover {
  transform: translateY(-5px);
}
.student-life-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.student-life-img:hover img {
  transform: scale(1.05);
}
.student-life-img.tall {
  grid-row: span 2;
  grid-column: span 2;
}
@media (min-width: 768px) {
  .student-life-img.tall {
    grid-column: span 2;
  }
  .student-life-img.wide {
    grid-column: span 2;
  }
}
.img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 50%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-6);
}
.img-overlay span {
  color: #fff;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Events Section */
.events-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--space-8);
}
.event-card {
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}
.event-card:hover {
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  transform: translateY(-5px);
}
.event-img {
  position: relative;
  height: 200px;
}
.event-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.event-date {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: var(--clr-primary);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.event-date .day {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: 2px;
}
.event-date .month {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.event-info {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.event-info h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.event-info p {
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  flex-grow: 1;
}
.event-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: var(--text-xs);
  color: var(--clr-text-muted);
  border-top: 1px solid #F1F5F9;
  padding-top: var(--space-4);
}
.event-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Accreditations Section */
.accreditations-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--space-8);
}
.accreditation-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid #F1F5F9;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  transition: all var(--transition-normal);
}
.accreditation-card:hover {
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
  transform: translateY(-4px);
  border-color: var(--clr-primary);
}
.accreditation-card .cert-icon {
  width: 80px;
  height: 80px;
  background: var(--clr-surface);
  color: var(--clr-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
}
.accreditation-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}
.accreditation-card p {
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
  flex-grow: 1;
}
.cert-btn {
  width: 100%;
}

/* Logo Ticker */
.logo-ticker-section {
  padding: var(--space-8) 0;
  background: var(--clr-surface);
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
  overflow: hidden;
}
.logo-ticker-container {
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  position: relative;
  display: flex;
}
.logo-ticker-container::before,
.logo-ticker-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.logo-ticker-container::before {
  left: 0;
  background: linear-gradient(to right, var(--clr-surface) 0%, transparent 100%);
}
.logo-ticker-container::after {
  right: 0;
  background: linear-gradient(to left, var(--clr-surface) 0%, transparent 100%);
}
.logo-ticker-track {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  padding-left: var(--space-12);
  animation: logo-scroll 25s linear infinite;
  white-space: nowrap;
}
.logo-ticker-track:hover {
  animation-play-state: paused;
}
.logo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--clr-text-muted);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}
.logo-item:hover {
  opacity: 1;
  color: var(--clr-primary);
}
.logo-item i {
  width: 28px;
  height: 28px;
}

@keyframes logo-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Footer */
.footer {
  background: var(--clr-secondary);
  color: #fff;
  padding: var(--space-16) 0 var(--space-8);
}
.footer p, .footer a { color: #CBD5E1; }
.footer h3, .footer h4 { color: #fff; margin-bottom: var(--space-4); }
.footer-grid {
  grid-template-columns: 1fr;
  gap: var(--space-8);
}
@media (min-width: 576px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 2fr; }
}
.footer-links ul { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.gear-1 {
  animation: spin 4s linear infinite;
}

/* ==============================================
   COMPREHENSIVE RESPONSIVE DESIGN SYSTEM
   Breakpoints:
     xs  : < 480px  (small phones)
     sm  : 480–767px
     md  : 768–991px (tablets)
     lg  : 992–1279px
     xl  : 1280px+  (desktops)
   ============================================== */

/* ── Top Bar ─────────────────────────────────── */
@media (max-width: 767px) {
  .top-bar { display: none; } /* hide on mobile – save space */
}

/* ── Navigation ──────────────────────────────── */
@media (max-width: 479px) {
  .nav-container { height: 56px; }
  .logo { font-size: 1rem; }
  .logo img { height: 1.4em !important; }
  .nav-actions .btn-primary { padding: 0.4rem 0.9rem; font-size: 0.78rem; }
}

/* ── Hero Section ─────────────────────────────── */
@media (max-width: 991px) {
  .hero-section {
    padding-top: 130px;
    padding-bottom: 60px;
    min-height: 85dvh;
  }
  .hero-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.65) 100%);
  }
}

@media (max-width: 767px) {
  .hero-section {
    padding-top: 110px;
    padding-bottom: 50px;
    min-height: 80dvh;
    align-items: flex-end;
  }
  .hero-content { margin-top: 0; padding-bottom: 1rem; }
  .hero-title { font-size: clamp(2rem, 7vw, 3rem); }
  .hero-subtitle { font-size: clamp(0.95rem, 3vw, 1.1rem); max-width: 100%; }
  .hero-text-wrapper { max-width: 100%; }
}

@media (max-width: 479px) {
  .hero-section { padding-top: 90px; min-height: 75dvh; }
  .hero-title { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .hero-buttons { gap: 0.75rem; }
  .hero-buttons .btn { padding: 0.85rem 1.5rem; font-size: 0.95rem; }
}

/* ── Bottom Ticker ───────────────────────────── */
@media (max-width: 479px) {
  .bottom-ticker { font-size: 0.78rem; padding: 6px 0; }
}

/* ── Section Padding ─────────────────────────── */
@media (max-width: 767px) {
  .section { padding: 3rem 0; }
  .section h2 { font-size: clamp(1.6rem, 5vw, 2rem); }
}

/* ── Why Education Section ───────────────────── */
@media (max-width: 991px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-visual { height: 280px; }
}

@media (max-width: 479px) {
  .why-visual { height: 220px; border-radius: var(--radius-lg); }
  .feature-list li { font-size: var(--text-base); }
}

/* ── Scholarship Section ─────────────────────── */
@media (max-width: 767px) {
  .scholarship-section { padding: 3rem 0 !important; }
  .scholarship-card {
    border-radius: 16px !important;
  }
  .scholarship-content {
    padding: 1.75rem !important;
  }
  .scholarship-content h2 { font-size: clamp(1.5rem, 5vw, 2rem) !important; }
  .scholarship-content p { font-size: 0.95rem !important; }
}

@media (max-width: 479px) {
  .scholarship-content { padding: 1.25rem !important; }
  .scholarship-visual { min-height: 220px !important; }
}

/* ── Programs Section ────────────────────────── */
@media (max-width: 767px) {
  .programs-grid { grid-template-columns: 1fr; }
  .program-filters { justify-content: center; gap: 0.4rem; }
  .filter-btn { padding: 0.4rem 1rem; font-size: 0.82rem; }
}

@media (max-width: 479px) {
  .programs-header { gap: 1rem; }
  .program-card { padding: 1.25rem; }
  .program-card h3 { font-size: var(--text-lg); }
}

/* ── Student Life Grid ───────────────────────── */
@media (max-width: 639px) {
  .student-life-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
    gap: var(--space-2);
  }
  .student-life-img.tall {
    grid-row: span 1;
    grid-column: span 2;
  }
  .img-overlay span { font-size: var(--text-base); }
}

@media (max-width: 479px) {
  .student-life-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }
  .student-life-img.tall { grid-column: span 1; }
  .student-life-img.wide { grid-column: span 1; }
}

/* ── Events Section ──────────────────────────── */
@media (max-width: 767px) {
  .events-grid { grid-template-columns: 1fr; }
  .event-img { height: 180px; }
  .event-info { padding: 1.25rem; }
}

/* ── Accreditations Section ──────────────────── */
@media (max-width: 767px) {
  .accreditations-grid { grid-template-columns: 1fr; }
}

@media (min-width: 480px) and (max-width: 767px) {
  .accreditations-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Logo Ticker ─────────────────────────────── */
@media (max-width: 479px) {
  .logo-item { font-size: var(--text-base); }
  .logo-item i { width: 20px; height: 20px; }
}

/* ── Footer ──────────────────────────────────── */
@media (max-width: 479px) {
  .footer { padding: 2.5rem 0 1.5rem; }
  .footer h3, .footer h4 { font-size: var(--text-lg); }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.5rem; }
}

/* ── Floating Widgets ────────────────────────── */
@media (max-width: 479px) {
  .fab-btn { width: 52px; height: 52px; }
  .floating-widgets { bottom: var(--space-4); }
  .ai-fab { left: 0.75rem; }
  .wa-fab { right: 0.75rem; }
  .ai-tooltip { left: 0.75rem; font-size: 0.78rem; }
}

/* ── AI Chat Modal ───────────────────────────── */
@media (max-width: 479px) {
  .ai-chat-modal {
    width: 100vw;
    left: 0 !important;
    border-radius: 0;
  }
  .ai-chat-modal.is-open {
    height: 100dvh;
    max-height: 100dvh;
    bottom: 0;
    border-radius: 0;
  }
  /* Keyboard avoidance — JS sets --kb-offset when keyboard appears */
  .ai-chat-modal.keyboard-open {
    bottom: var(--kb-offset, 0px) !important;
    height: calc(100dvh - var(--kb-offset, 0px)) !important;
    max-height: calc(100dvh - var(--kb-offset, 0px)) !important;
    transition: bottom 0.2s ease, height 0.2s ease !important;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  /* Keyboard avoidance for mid-size phones */
  .ai-chat-modal.keyboard-open {
    bottom: calc(80px + var(--kb-offset, 0px)) !important;
    transition: bottom 0.2s ease !important;
  }
}

/* ── Utility: prevent horizontal overflow on all sizes ── */
/* NOTE: header is excluded so nav dropdowns can render outside its bounds */
section, footer, main { max-width: 100vw; overflow-x: hidden; }

/* ── Large screens: clamp max container width ── */
@media (min-width: 1440px) {
  .container { max-width: 1400px; }
  .hero-title { font-size: 5.5rem; }
}