/* CONFIRM CSS IS LOADING */
body {
  background-color: #f0f0f0 !important;
  border-top: 5px solid red !important;
}
/* ============================================
   SA UNI PORTAL - Advanced Stylesheet v2.0
   Premium Design with Glassmorphism, 
   Micro-animations & Advanced Effects
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  /* Brand Colors */
  --primary: #1a5276;
  --primary-light: #2980b9;
  --primary-dark: #0e2f44;
  --primary-glow: rgba(41, 128, 185, 0.3);

  --secondary: #27ae60;
  --secondary-light: #2ecc71;
  --secondary-glow: rgba(46, 204, 113, 0.3);

  --accent: #f39c12;
  --accent-light: #f1c40f;
  --accent-red: #e74c3c;
  --accent-red-light: #ff6b6b;
  --accent-purple: #8e44ad;

  /* Text */
  --text-dark: #0d1b2a;
  --text-medium: #3d4f61;
  --text-light: #7f8c9a;
  --text-muted: #b0bec5;

  /* Backgrounds */
  --bg-white: #ffffff;
  --bg-light: #f0f4f8;
  --bg-gray: #e8edf2;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.08);
  --bg-glass-strong: rgba(255, 255, 255, 0.15);

  /* Borders */
  --border: #d1dce8;
  --border-light: #e8f0f7;
  --border-dark: #a0b4c8;

  /* Shadows */
  --shadow-xs: 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 20px rgba(14, 47, 68, 0.08);
  --shadow-md: 0 8px 30px rgba(14, 47, 68, 0.12);
  --shadow-lg: 0 16px 50px rgba(14, 47, 68, 0.16);
  --shadow-xl: 0 24px 70px rgba(14, 47, 68, 0.2);
  --shadow-hover: 0 12px 40px rgba(14, 47, 68, 0.18);
  --shadow-glow: 0 0 30px rgba(41, 128, 185, 0.25);
  --shadow-glow-green: 0 0 30px rgba(46, 204, 113, 0.25);

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Status Colors */
  --nsfas-green: #27ae60;
  --private-red: #e74c3c;
  --limited-orange: #f39c12;
  --open-green: #2ecc71;

  /* Z-index scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 500;
  --z-navbar: 1000;
  --z-modal: 2000;
  --z-toast: 9999;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  --gradient-hero: linear-gradient(135deg, #0d1b2a 0%, #1a5276 40%, #1a6fa8 100%);
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}


a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: var(--font);
}

::selection {
  background: var(--primary-light);
  color: white;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--border-dark);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

/* ============================================
   NAVBAR — Glassmorphism Premium
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-navbar);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(209, 220, 232, 0.6);
  transition: var(--transition);
}

.navbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
  opacity: 0;
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.97);
}

.navbar.scrolled::after {
  opacity: 1;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
  transition: var(--transition);
}

.nav-logo:hover {
  color: var(--primary);
}

.nav-logo i {
  font-size: 1.8rem;
  color: var(--secondary);
  filter: drop-shadow(0 2px 8px var(--secondary-glow));
  transition: var(--transition-bounce);
}

.nav-logo:hover i {
  transform: rotate(-10deg) scale(1.1);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-medium);
  transition: var(--transition);
  position: relative;
  letter-spacing: 0.01em;
}

.nav-link i {
  font-size: 0.8rem;
  opacity: 0.75;
  transition: var(--transition);
}

.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
}

.nav-link span {
  position: relative;
  z-index: 1;
}

.nav-link i {
  position: relative;
  z-index: 1;
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(26, 82, 118, 0.07);
  transform: translateY(-1px);
}

.nav-link:hover i {
  opacity: 1;
  transform: scale(1.15);
}

.nav-link.active {
  background: var(--gradient-primary);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.nav-link.active i {
  opacity: 1;
}

.nav-link.active:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-toggle:hover {
  background: rgba(26, 82, 118, 0.07);
}

.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--text-dark);
  border-radius: var(--radius-full);
  transition: var(--transition);
  display: block;
}

/* ============================================
   HERO SECTION — Advanced
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding-top: 70px;
}

/* Animated mesh gradient */
.hero::before {
  content: '';
  position: absolute;
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(41, 128, 185, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(46, 204, 113, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(142, 68, 173, 0.08) 0%, transparent 50%);
  animation: meshMove 15s ease-in-out infinite alternate;
}

/* Animated wave */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 200"><path fill="rgba(255,255,255,0.04)" d="M0,96L48,90.7C96,85,192,75,288,80C384,85,480,107,576,112C672,117,768,107,864,96C960,85,1056,75,1152,80C1248,85,1344,107,1392,117.3L1440,128L1440,200L1392,200C1344,200,1248,200,1152,200C1056,200,960,200,864,200C768,200,672,200,576,200C480,200,384,200,288,200C192,200,96,200,48,200L0,200Z"></path></svg>') no-repeat bottom;
  background-size: cover;
}

@keyframes meshMove {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.05) rotate(2deg); }
}

/* Floating grid overlay */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: particleFloat linear infinite;
  pointer-events: none;
}

.particle:nth-child(odd) {
  background: radial-gradient(circle, rgba(255,255,255,0.15), transparent);
  box-shadow: 0 0 10px rgba(255,255,255,0.1);
}

.particle:nth-child(even) {
  background: radial-gradient(circle, rgba(46, 204, 113, 0.2), transparent);
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.1);
}

@keyframes particleFloat {
  0% {
    transform: translateY(110vh) rotate(0deg) scale(0);
    opacity: 0;
  }
  5% { opacity: 1; transform: translateY(100vh) rotate(36deg) scale(1); }
  95% { opacity: 0.8; }
  100% {
    transform: translateY(-10vh) rotate(720deg) scale(0.5);
    opacity: 0;
  }
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: var(--z-base);
}

.hero-content {
  color: white;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--bg-glass-strong);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.83rem;
  font-weight: 600;
  margin-bottom: 1.8rem;
  backdrop-filter: blur(12px);
  letter-spacing: 0.02em;
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(243, 156, 18, 0); }
  50% { box-shadow: 0 0 0 8px rgba(243, 156, 18, 0); }
}

.hero-badge i {
  color: var(--accent);
  animation: spin 4s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(10deg); }
  75% { transform: rotate(-10deg); }
  100% { transform: rotate(0deg); }
}

.hero-title {
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  letter-spacing: -1.5px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent) 0%, #f1c40f 40%, var(--secondary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-light), var(--secondary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 4s ease-in-out infinite;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.9;
  opacity: 0.88;
  margin-bottom: 2.5rem;
  max-width: 540px;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.3rem;
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 0.78rem;
  opacity: 0.72;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* Hero Visual Card */
.hero-visual {
  position: relative;
}

.hero-visual::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(41, 128, 185, 0.2), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-search-card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.5);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.hero-search-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.hero-search-card h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.search-form-group {
  margin-bottom: 1.2rem;
}

.search-form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-medium);
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.search-form-group select,
.search-form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  font-family: var(--font);
  transition: var(--transition);
  background: var(--bg-light);
  color: var(--text-dark);
}

.search-form-group select:focus,
.search-form-group input:focus {
  border-color: var(--primary-light);
  outline: none;
  box-shadow: 0 0 0 4px rgba(41, 128, 185, 0.12);
  background: white;
}

/* ============================================
   BUTTONS — Premium Multi-variant
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  -webkit-user-select: none;
  user-select: none;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: var(--transition-fast);
}

.btn:hover::after {
  opacity: 1;
}

.btn:active {
  transform: scale(0.97) !important;
}

/* Ripple effect */
.btn::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}

.btn:active::before {
  width: 300px;
  height: 300px;
  opacity: 0;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
  filter: brightness(1.05);
}

.btn-secondary {
  background: var(--gradient-secondary);
  color: white;
  box-shadow: 0 4px 15px var(--secondary-glow);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--secondary-glow);
  filter: brightness(1.05);
}

.btn-accent {
  background: var(--gradient-accent);
  color: white;
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.35);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(243, 156, 18, 0.45);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: white;
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  border-color: var(--border-dark);
  color: var(--primary);
}

.btn-outline-dark:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-outline-dark.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.btn-glass {
  background: var(--bg-glass);
  border-color: rgba(255,255,255,0.2);
  color: white;
  backdrop-filter: blur(12px);
}

.btn-glass:hover {
  background: var(--bg-glass-strong);
  transform: translateY(-2px);
}

.btn-danger {
  background: linear-gradient(135deg, var(--accent-red), #c0392b);
  color: white;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.btn-lg {
  padding: 15px 36px;
  font-size: 1rem;
  border-radius: var(--radius);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 0.82rem;
  border-radius: var(--radius-xs);
  gap: 5px;
}

.btn-xs {
  padding: 5px 10px;
  font-size: 0.75rem;
  border-radius: var(--radius-xs);
  gap: 4px;
}

.btn-full {
  width: 100%;
}

.btn-icon {
  padding: 10px;
  border-radius: var(--radius-sm);
  aspect-ratio: 1;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: var(--space-3xl) var(--space-xl);
}

.section-sm {
  padding: 2.5rem var(--space-xl);
}

.section-dark {
  background: var(--primary-dark);
  color: white;
}

.section-gray {
  background: var(--bg-gray);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-dark);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-footer {
  text-align: center;
  margin-top: 3rem;
}

/* ============================================
   QUICK ACTIONS GRID
   ============================================ */
.quick-actions {
  background: white;
  position: relative;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.quick-card {
  background: var(--gradient-card);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.quick-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
  z-index: 0;
}

.quick-card > * {
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.quick-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.quick-card:hover::before {
  opacity: 1;
}

.quick-card:hover h3,
.quick-card:hover p,
.quick-card:hover .quick-card-link {
  color: white;
}

.quick-card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1.2rem;
  transition: var(--transition-bounce);
}

.quick-card:hover .quick-card-icon {
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.quick-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-weight: 700;
  letter-spacing: -0.2px;
}

.quick-card p {
  font-size: 0.86rem;
  color: var(--text-light);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.quick-card-link {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.01em;
}

.quick-card-link i {
  transition: var(--transition);
}

.quick-card:hover .quick-card-link i {
  transform: translateX(4px);
}

/* ============================================
   UNIVERSITY CARDS — Premium
   ============================================ */
.universities-grid,
.uni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
}

.uni-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-light);
  position: relative;
  display: flex;
  flex-direction: column;
}

.uni-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 2px solid var(--primary-light);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.uni-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.uni-card:hover::after {
  opacity: 1;
}

/* Card image with overlay */
.uni-card-image {
  position: relative;
  height: 210px;
  overflow: hidden;
  flex-shrink: 0;
}

.uni-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.uni-card:hover .uni-card-image img {
  transform: scale(1.08);
}

/* Gradient overlay on image */
.uni-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 27, 42, 0.6) 0%, transparent 50%);
  pointer-events: none;
}

.uni-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  z-index: 2;
}

.compare-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.42rem 0.65rem;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition-bounce);
  font-size: 0.82rem;
  z-index: 2;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-xs);
}

.compare-btn:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.compare-btn.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px var(--primary-glow);
}

/* Card body */
.uni-card-body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.uni-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
}

.uni-card-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
  color: var(--text-dark);
  line-height: 1.3;
  letter-spacing: -0.2px;
}

.uni-card-acronym {
  color: var(--primary-light);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.uni-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(243, 156, 18, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

.uni-rating i {
  color: var(--accent);
  font-size: 0.75rem;
}

.uni-rating span {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--accent);
}

.uni-card-info {
  display: flex;
  gap: 0.85rem;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.uni-card-info span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.uni-card-info i {
  color: var(--accent-red);
  font-size: 0.7rem;
}

.uni-card-desc {
  font-size: 0.83rem;
  color: var(--text-medium);
  margin-bottom: 0.85rem;
  line-height: 1.65;
  flex: 1;
}

.uni-card-courses {
  display: flex;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  padding: 0.7rem 0.85rem;
  background: linear-gradient(135deg, var(--bg-light), var(--bg-gray));
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.uni-card-courses span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.uni-card-courses i {
  color: var(--primary-light);
  font-size: 0.7rem;
}

.uni-card-footer {
  display: flex;
  gap: 0.6rem;
}

.uni-card-footer .btn {
  flex: 1;
  font-size: 0.82rem;
  padding: 8px 12px;
}

.uni-card-footer .btn-outline {
  border-color: var(--primary-light);
  color: var(--primary);
  background: transparent;
}

.uni-card-footer .btn-outline:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-1px);
}

/* ============================================
   BADGES — Refined
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
}

.badge-nsfas {
  background: rgba(39, 174, 96, 0.92);
  color: white;
  box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.badge-private {
  background: rgba(231, 76, 60, 0.92);
  color: white;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.badge-university {
  background: rgba(26, 82, 118, 0.92);
  color: white;
  box-shadow: 0 2px 8px rgba(26, 82, 118, 0.3);
}

.badge-university-of-technology {
  background: rgba(142, 68, 173, 0.92);
  color: white;
  box-shadow: 0 2px 8px rgba(142, 68, 173, 0.3);
}

.badge-tvet {
  background: rgba(211, 84, 0, 0.92);
  color: white;
  box-shadow: 0 2px 8px rgba(211, 84, 0, 0.3);
}

.badge-private-college {
  background: rgba(44, 62, 80, 0.92);
  color: white;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.3);
}

.badge-private-university {
  background: rgba(192, 57, 43, 0.92);
  color: white;
  box-shadow: 0 2px 8px rgba(192, 57, 43, 0.3);
}

.badge-uot { background: rgba(142, 68, 173, 0.92); color: white; }
.badge-college { background: rgba(44, 62, 80, 0.92); color: white; }

/* ============================================
   FILTERS BAR — Premium
   ============================================ */
.filters-bar {
  background: white;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--border-light);
  position: sticky;
  top: 78px;
  z-index: var(--z-dropdown);
}

.filter-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1.5;
  min-width: 230px;
  background: var(--bg-light);
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-light);
  transition: var(--transition);
}

.filter-search:focus-within {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(41, 128, 185, 0.1);
  background: white;
}

.filter-search i {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: var(--transition);
}

.filter-search:focus-within i {
  color: var(--primary-light);
}

.filter-search input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  font-size: 0.92rem;
  font-family: var(--font);
  color: var(--text-dark);
}

.filter-search input::placeholder {
  color: var(--text-muted);
}

.filter-group {
  flex: 1;
  min-width: 160px;
}

.filter-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.filter-group select,
.filter-group input {
  width: 100%;
  padding: 9px 14px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: var(--font);
  background: var(--bg-light);
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 32px;
}

.filter-group select:focus,
.filter-group input:focus {
  border-color: var(--primary-light);
  outline: none;
  box-shadow: 0 0 0 4px rgba(41, 128, 185, 0.1);
  background-color: white;
}

.results-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--text-medium);
}

.results-info strong {
  color: var(--primary);
  font-weight: 700;
}

.sort-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sort-group label {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 600;
}

.sort-group select {
  padding: 7px 30px 7px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: var(--font);
  outline: none;
  background: white;
  cursor: pointer;
  transition: var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
}

.sort-group select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.1);
}

/* ============================================
   PAGE HERO — Inner Pages
   ============================================ */
.page-hero {
  background: var(--gradient-hero);
  color: white;
  padding: 5.5rem 2rem 3.5rem;
  text-align: center;
  margin-top: 70px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(41, 128, 185, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(46, 204, 113, 0.1) 0%, transparent 60%);
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg-light);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 1;
}

.page-hero h1 i {
  font-size: 0.9em;
  opacity: 0.85;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin: 0 auto;
}

/* ============================================
   MODAL — Premium Glass
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 35, 0.8);
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(8px) saturate(150%);
}

.modal-overlay.active {
  display: flex;
  animation: overlayFadeIn 0.25s ease;
}

@keyframes overlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: white;
  border-radius: var(--radius-xl);
  max-width: 840px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.1);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: sticky;
  top: 0.75rem;
  float: right;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: 1px solid rgba(255,255,255,0.15);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  margin: 0.75rem 0.75rem 0 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-bounce);
  backdrop-filter: blur(8px);
}

.modal-close:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  transform: scale(1.1) rotate(90deg);
}

.modal-uni-header {
  position: relative;
  height: 250px;
  overflow: hidden;
  flex-shrink: 0;
}

.modal-uni-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.modal:hover .modal-uni-header img {
  transform: scale(1.03);
}

.modal-uni-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 20, 35, 0.92) 0%, rgba(10, 20, 35, 0.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  color: white;
}

.modal-uni-overlay h2 {
  font-size: 1.55rem;
  font-weight: 800;
  margin: 0.4rem 0;
  letter-spacing: -0.4px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.modal-uni-meta {
  display: flex;
  gap: 1.2rem;
  font-size: 0.83rem;
  opacity: 0.9;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.modal-uni-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.modal-uni-meta i {
  font-size: 0.75rem;
  opacity: 0.8;
}

.modal-uni-body {
  padding: 0 1.75rem 2rem;
}

/* Modal Tabs */
.modal-tabs {
  display: flex;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 1.75rem;
  overflow-x: auto;
  padding-top: 1.25rem;
  gap: 0;
  scrollbar-width: none;
}

.modal-tabs::-webkit-scrollbar {
  display: none;
}

.modal-tab {
  padding: 0.7rem 1.4rem;
  border: none;
  background: none;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font);
  font-size: 0.875rem;
  color: var(--text-light);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: var(--transition);
  position: relative;
  letter-spacing: 0.01em;
}

.modal-tab:hover {
  color: var(--primary);
  background: rgba(26, 82, 118, 0.04);
}

.modal-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(26, 82, 118, 0.05);
}

.tab-content {
  display: none;
  animation: tabFadeIn 0.25s ease;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-content.active {
  display: block;
}

/* Modal Overview */
.modal-desc {
  color: var(--text-medium);
  margin-bottom: 1.75rem;
  line-height: 1.85;
  font-size: 0.95rem;
}

.modal-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.modal-info-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem;
  background: linear-gradient(135deg, var(--bg-light), var(--bg-gray));
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.modal-info-item:hover {
  border-color: var(--primary-light);
  background: rgba(41, 128, 185, 0.04);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xs);
}

.modal-info-item i {
  color: var(--primary-light);
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.modal-info-item strong {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.modal-info-item span,
.modal-info-item a {
  font-size: 0.88rem;
  color: var(--text-dark);
  font-weight: 500;
}

.modal-info-item a {
  color: var(--primary-light);
  text-decoration: none;
}

.modal-info-item a:hover {
  text-decoration: underline;
}

.modal-facilities {
  margin-top: 1.25rem;
}

.modal-facilities h4 {
  margin-bottom: 0.85rem;
  font-size: 0.92rem;
  color: var(--text-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.facilities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.facility-tag {
  background: rgba(26, 82, 118, 0.07);
  color: var(--primary);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid rgba(26, 82, 118, 0.15);
  transition: var(--transition);
}

.facility-tag:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.facility-tag i {
  font-size: 0.65rem;
}

/* Courses in Modal */
.courses-filter {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

.courses-filter input,
.courses-filter select {
  flex: 1;
  min-width: 150px;
  padding: 0.55rem 0.85rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: var(--font);
  outline: none;
  transition: var(--transition);
  background: var(--bg-light);
}

.courses-filter input:focus,
.courses-filter select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.1);
  background: white;
}

.course-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  transition: var(--transition);
  flex-wrap: wrap;
  gap: 0.5rem;
  cursor: pointer;
}

.course-item:hover {
  background: rgba(26, 82, 118, 0.04);
  border-color: var(--primary-light);
  transform: translateX(4px);
  box-shadow: var(--shadow-xs);
}

.course-item-main h4 {
  font-size: 0.88rem;
  margin-bottom: 0.2rem;
  color: var(--text-dark);
  font-weight: 600;
}

.course-faculty {
  font-size: 0.73rem;
  color: var(--text-muted);
  font-style: italic;
}

.course-item-meta {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.course-tag {
  padding: 0.22rem 0.55rem;
  background: var(--bg-gray);
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  letter-spacing: 0.01em;
}

.aps-tag { background: #dbeafe; color: #1e40af; }
.nsfas-tag { background: #dcfce7; color: #15803d; }
.availability-open { background: #dcfce7; color: #15803d; }
.availability-limited { background: #fef9c3; color: #854d0e; }

.no-courses {
  text-align: center;
  color: var(--text-muted);
  padding: 2.5rem;
  font-style: italic;
  font-size: 0.9rem;
}

/* Pros & Cons */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.pros {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(21, 128, 61, 0.15);
}

.cons {
  background: linear-gradient(135deg, #fff1f2, #fecdd3);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(190, 18, 60, 0.15);
}

.pros h4 {
  color: #15803d;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cons h4 {
  color: #be123c;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pros ul, .cons ul { list-style: none; }

.pros li, .cons li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.45rem 0;
  font-size: 0.86rem;
  line-height: 1.55;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.pros li:last-child, .cons li:last-child {
  border-bottom: none;
}

.pros li i {
  color: #16a34a;
  margin-top: 3px;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.cons li i {
  color: #dc2626;
  margin-top: 3px;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* Contact Tab */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.contact-item {
  display: flex;
  gap: 0.85rem;
  padding: 1.1rem;
  background: linear-gradient(135deg, var(--bg-light), var(--bg-gray));
  border-radius: var(--radius-sm);
  align-items: flex-start;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.contact-item:hover {
  border-color: var(--primary-light);
  background: rgba(41, 128, 185, 0.04);
}

.contact-item i {
  color: var(--primary-light);
  font-size: 1.05rem;
  margin-top: 1px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.contact-item a {
  color: var(--primary-light);
  font-size: 0.88rem;
  font-weight: 500;
  word-break: break-all;
}

.contact-item a:hover { text-decoration: underline; }

.contact-item span {
  font-size: 0.88rem;
  color: var(--text-dark);
  font-weight: 500;
}

.modal-apply-btn {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
}

.modal-apply-btn .btn {
  flex: 1;
  justify-content: center;
  min-width: 180px;
}

.modal-apply-btn .btn-outline-dark.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ============================================
   APS CALCULATOR — Premium
   ============================================ */
.aps-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: start;
}

.aps-calculator-box {
  background: white;
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.aps-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--bg-gray);
}

.aps-header h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.3px;
}

.aps-header p {
  color: var(--text-light);
  font-size: 0.88rem;
  margin-top: 0.4rem;
}

.subject-row {
  display: grid;
  grid-template-columns: 1fr 95px 65px auto;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 0.65rem;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.subject-row:hover {
  background: var(--bg-light);
}

.subject-select,
.mark-input {
  padding: 0.6rem 0.75rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: var(--font);
  outline: none;
  transition: var(--transition);
  background: white;
  color: var(--text-dark);
}

.subject-select:focus,
.mark-input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(41, 128, 185, 0.1);
}

.point-display {
  padding: 0.62rem 0.6rem;
  background: linear-gradient(135deg, var(--bg-light), var(--bg-gray));
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--primary);
  text-align: center;
  white-space: nowrap;
  border: 1px solid var(--border-light);
  min-width: 55px;
}

.remove-row-btn {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  transition: var(--transition-bounce);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-row-btn:hover {
  background: #dc2626;
  color: white;
  border-color: #dc2626;
  transform: scale(1.1) rotate(5deg);
}

.aps-result-box {
  margin: 1.75rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(26, 82, 118, 0.04), rgba(41, 128, 185, 0.07));
  border: 2px solid rgba(26, 82, 118, 0.12);
  border-radius: var(--radius);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.aps-result-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.aps-score-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.aps-score-label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

.aps-score-number {
  font-size: 4.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -2px;
  transition: var(--transition);
}

.aps-score-max {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.aps-score-bar {
  height: 12px;
  background: var(--bg-gray);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
}

.aps-score-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 14.28%,
    rgba(255,255,255,0.3) 14.28%,
    rgba(255,255,255,0.3) 14.5%
  );
  z-index: 1;
}

.aps-score-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.aps-score-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
}

.aps-score-desc {
  font-size: 0.9rem;
  color: var(--text-medium);
  font-weight: 500;
  line-height: 1.5;
}

.aps-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.aps-actions .btn {
  flex: 1;
  justify-content: center;
  min-width: 150px;
}

/* APS Guide Sidebar */
.aps-guide {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.guide-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}

.guide-card h3 {
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.guide-card h3 i {
  color: var(--primary-light);
}

.guide-table {
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.guide-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 1rem;
  font-size: 0.83rem;
  transition: var(--transition-fast);
}

.guide-row.header {
  background: var(--gradient-primary);
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.guide-row:not(.header) {
  border-bottom: 1px solid var(--border-light);
}

.guide-row:not(.header):last-child {
  border-bottom: none;
}

.guide-row:not(.header):hover {
  background: rgba(26, 82, 118, 0.04);
}

.guide-row:not(.header):nth-child(even) {
  background: white;
}

.guide-row:not(.header):nth-child(even):hover {
  background: rgba(26, 82, 118, 0.04);
}

.point-badge {
  background: var(--gradient-primary);
  color: white;
  padding: 2px 9px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.78rem;
  min-width: 28px;
  text-align: center;
}

.aps-ranges {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.range-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  transition: var(--transition);
  cursor: default;
}

.range-item:hover {
  transform: translateX(4px);
}

.range-item span:first-child {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.range-excellent {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #14532d;
  border: 1px solid rgba(21, 128, 61, 0.2);
}

.range-good {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1e3a8a;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.range-average {
  background: linear-gradient(135deg, #fef9c3, #fef08a);
  color: #713f12;
  border: 1px solid rgba(202, 138, 4, 0.2);
}

.range-below {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #7f1d1d;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

/* ============================================
   COURSE FINDER — Premium
   ============================================ */
.course-finder-box {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.course-finder-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 1rem;
  padding: 1.75rem;
  background: linear-gradient(135deg, var(--bg-light), var(--bg-gray));
  border-bottom: 2px solid var(--border-light);
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.filter-item label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.filter-item input,
.filter-item select {
  padding: 0.62rem 0.85rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: var(--font);
  outline: none;
  transition: var(--transition);
  background: white;
  color: var(--text-dark);
}

.filter-item input:focus,
.filter-item select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(41, 128, 185, 0.1);
}

/* Toggle Switch */
.toggle-switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin-top: 0.4rem;
  gap: 0.6rem;
}

.toggle-switch input {
  display: none;
}

.toggle-slider {
  width: 48px;
  height: 27px;
  background: var(--border);
  border-radius: var(--radius-full);
  position: relative;
  transition: var(--transition);
  flex-shrink: 0;
}

.toggle-slider::after {
  content: '';
  position: absolute;
  width: 21px;
  height: 21px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: var(--transition-bounce);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--gradient-secondary);
  box-shadow: 0 0 12px var(--secondary-glow);
}

.toggle-switch input:checked + .toggle-slider::after {
  left: 24px;
}

.course-results {
  padding: 1.75rem;
  min-height: 350px;
}

.course-finder-placeholder {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.course-finder-placeholder i {
  font-size: 4rem;
  margin-bottom: 1.25rem;
  opacity: 0.2;
  display: block;
}

.course-finder-placeholder h3 {
  margin-bottom: 0.5rem;
  color: var(--text-medium);
  font-size: 1.1rem;
}

.course-finder-placeholder p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.course-results-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.course-results-header h3 {
  font-size: 1.05rem;
  color: var(--text-dark);
  font-weight: 700;
}

.course-results-header p {
  color: var(--text-light);
  font-size: 0.88rem;
}

.course-results-header h3 strong {
  color: var(--primary);
}

.course-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.1rem;
}

.course-result-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.3rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.course-result-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-primary);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: var(--transition);
}

.course-result-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.course-result-card:hover::before {
  transform: scaleY(1);
}

.crc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.85rem;
  gap: 0.5rem;
}

.crc-header h4 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.35;
}

.crc-uni {
  font-size: 0.76rem;
  color: var(--primary-light);
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.crc-uni:hover {
  text-decoration: underline;
}

.crc-details {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
  font-size: 0.78rem;
  color: var(--text-light);
}

.crc-details span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.crc-details i {
  font-size: 0.7rem;
  color: var(--primary-light);
}

.nsfas-badge {
  color: var(--secondary);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.crc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}

.aps-match {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.aps-match i { font-size: 0.75rem; }
.aps-match.qualify { color: var(--secondary); }
.aps-match.not-qualify { color: var(--accent-red); }

/* ============================================
   APPLY PAGE — Premium
   ============================================ */
.apply-intro {
  margin-bottom: 3rem;
}

.apply-intro h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  letter-spacing: -0.4px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.step-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.step-card:hover::before {
  transform: scaleX(1);
}

.step-number {
  width: 46px;
  height: 46px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.15rem;
  margin: 0 auto 1.1rem;
  box-shadow: 0 6px 18px var(--primary-glow);
  transition: var(--transition-bounce);
}

.step-card:hover .step-number {
  transform: scale(1.15) rotate(-5deg);
}

.step-card h4 {
  font-size: 0.98rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-weight: 700;
}

.step-card p {
  font-size: 0.83rem;
  color: var(--text-light);
  margin-bottom: 1.1rem;
  line-height: 1.6;
}

.apply-section-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  letter-spacing: -0.4px;
}

.apply-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 1.5rem;
}

.apply-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.apply-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 2px solid var(--primary-light);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.apply-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.apply-card:hover::after {
  opacity: 1;
}

.apply-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.apply-card-header h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  letter-spacing: -0.1px;
}

.apply-card-info {
  margin-bottom: 1rem;
}

.apply-info-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.32rem 0;
  font-size: 0.83rem;
  color: var(--text-medium);
}

.apply-info-row i {
  color: var(--primary-light);
  width: 14px;
  flex-shrink: 0;
  font-size: 0.78rem;
}

.apply-status {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}

.status-open {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #15803d;
  border: 1px solid rgba(21, 128, 61, 0.2);
}

.status-closed {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #991b1b;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.status-upcoming {
  background: linear-gradient(135deg, #fef9c3, #fef08a);
  color: #92400e;
  border: 1px solid rgba(202, 138, 4, 0.2);
}

.apply-card-footer {
  display: flex;
  gap: 0.65rem;
}

.apply-card-footer .btn {
  flex: 1;
  justify-content: center;
  font-size: 0.82rem;
  padding: 8px 12px;
}

/* ============================================
   COMPARE PAGE — Premium
   ============================================ */
.compare-empty {
  text-align: center;
  padding: 5rem 2rem;
}

.compare-empty i {
  font-size: 5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.25rem;
  display: block;
  opacity: 0.3;
}

.compare-empty h3 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
  color: var(--text-dark);
  font-weight: 700;
}

.compare-empty p {
  color: var(--text-light);
  margin-bottom: 1.75rem;
  font-size: 1rem;
}

.compare-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-bottom: 1.75rem;
}

.compare-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  min-width: 650px;
}

.compare-table th,
.compare-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  font-size: 0.87rem;
  vertical-align: middle;
}

.compare-table th:first-child,
.compare-table td:first-child {
  font-weight: 700;
  color: var(--text-medium);
  background: linear-gradient(135deg, var(--bg-light), var(--bg-gray));
  min-width: 160px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-right: 2px solid var(--border);
}

.compare-table thead th {
  background: var(--gradient-primary);
  color: white;
  font-weight: 700;
  padding: 1.25rem;
}

.compare-table thead th:first-child {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
}

.compare-table tbody tr {
  transition: var(--transition-fast);
}

.compare-table tbody tr:hover {
  background: rgba(26, 82, 118, 0.03);
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-th {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
  min-width: 180px;
}

.compare-th img {
  width: 95px;
  height: 65px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.compare-th > span {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.remove-compare {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-size: 0.68rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-bounce);
}

.remove-compare:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  transform: scale(1.2) rotate(90deg);
}

.compare-rating {
  color: var(--accent);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.compare-rating i { font-size: 0.8rem; }
.compare-yes { color: var(--secondary); font-weight: 700; }
.compare-no { color: var(--accent-red); font-weight: 700; }

/* ============================================
   INFO SECTION (HOME) — Glassmorphism
   ============================================ */
.info-section {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.info-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(41, 128, 185, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 85% 20%, rgba(46, 204, 113, 0.12) 0%, transparent 60%);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.info-card {
  background: var(--bg-glass);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: white;
  backdrop-filter: blur(16px);
  transition: var(--transition);
}

.info-card:hover {
  background: var(--bg-glass-strong);
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(0,0,0,0.2);
}

.info-card-icon {
  font-size: 2.8rem;
  margin-bottom: 1.25rem;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(255,255,255,0.2));
}

.info-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.info-card p {
  opacity: 0.85;
  margin-bottom: 1.5rem;
  line-height: 1.85;
  font-size: 0.95rem;
}

.info-list {
  list-style: none;
  margin-bottom: 1.75rem;
}

.info-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0;
  font-size: 0.92rem;
  opacity: 0.88;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.info-list li:last-child {
  border-bottom: none;
}

.info-list li i {
  color: var(--secondary-light);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.aps-table {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.75rem;
  border: 1px solid rgba(255,255,255,0.1);
}

.aps-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 1.1rem;
  font-size: 0.86rem;
  transition: var(--transition-fast);
}

.aps-row.header {
  background: rgba(0, 0, 0, 0.3);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.aps-row:not(.header) {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.aps-row:not(.header):hover {
  background: rgba(255, 255, 255, 0.08);
}

.aps-point {
  font-weight: 800;
  color: var(--accent-light);
  font-size: 0.9rem;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
  background: var(--primary-dark);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(41, 128, 185, 0.15), transparent 70%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  position: relative;
  z-index: 1;
}

.stat-card {
  text-align: center;
  color: white;
  padding: 2.5rem 2rem;
  position: relative;
  transition: var(--transition);
}

.stat-card::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: rgba(255,255,255,0.1);
}

.stat-card:last-child::after {
  display: none;
}

.stat-card:hover {
  background: rgba(255,255,255,0.04);
}

.stat-card i {
  font-size: 2.2rem;
  color: var(--secondary-light);
  margin-bottom: 1rem;
  display: block;
  filter: drop-shadow(0 0 12px var(--secondary-glow));
  transition: var(--transition-bounce);
}

.stat-card:hover i {
  transform: scale(1.2) rotate(-8deg);
}

.stat-number {
  display: block;
  font-size: 2.8rem;
  font-weight: 900;
  color: white;
  margin-bottom: 0.4rem;
  letter-spacing: -1px;
}

.stat-label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* ============================================
   FEATURED SECTION
   ============================================ */
.featured-section {
  background: linear-gradient(135deg, var(--bg-gray), var(--bg-light));
}

/* ============================================
   NO RESULTS
   ============================================ */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.no-results i {
  font-size: 3.5rem;
  opacity: 0.18;
  display: block;
  margin-bottom: 1.25rem;
}

.no-results h3 {
  margin-bottom: 0.6rem;
  color: var(--text-medium);
  font-size: 1.15rem;
  font-weight: 700;
}

.no-results p {
  margin-bottom: 1.75rem;
  font-size: 0.92rem;
}

/* ============================================
   TOAST NOTIFICATIONS — Premium
   ============================================ */
.toast-container {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.35rem;
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
  font-weight: 600;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
  max-width: 350px;
  min-width: 270px;
  pointer-events: auto;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.toast::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: currentColor;
  opacity: 0.2;
}

.toast.show {
  transform: translateX(0);
}

.toast i {
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.toast-success {
  border-left: 4px solid var(--secondary);
  color: var(--text-dark);
}

.toast-success i { color: var(--secondary); }

.toast-error {
  border-left: 4px solid var(--accent-red);
  color: var(--text-dark);
}

.toast-error i { color: var(--accent-red); }

.toast-warning {
  border-left: 4px solid var(--accent);
  color: var(--text-dark);
}

.toast-warning i { color: var(--accent); }

.toast-info {
  border-left: 4px solid var(--primary-light);
  color: var(--text-dark);
}

.toast-info i { color: var(--primary-light); }

/* ============================================
   FOOTER — Premium
   ============================================ */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.footer::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(41, 128, 185, 0.08), transparent 70%);
  pointer-events: none;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-col h3 {
  color: white;
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.footer-col h4 {
  color: white;
  font-size: 0.8rem;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  opacity: 0.85;
}

.footer-col p {
  font-size: 0.88rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  opacity: 0.75;
}

.social-links {
  display: flex;
  gap: 0.65rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: var(--transition-bounce);
  font-size: 0.9rem;
}

.social-links a:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: white;
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 6px 18px var(--primary-glow);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  padding: 0.38rem 0;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.footer-col ul li:last-child {
  border-bottom: none;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.68);
  transition: var(--transition);
  position: relative;
}

.footer-col ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--secondary-light);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: white;
}

.footer-col ul li a:hover::after {
  width: 100%;
}

.footer-col ul li i {
  color: var(--secondary-light);
  width: 16px;
  flex-shrink: 0;
  font-size: 0.78rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.55;
  letter-spacing: 0.01em;
}

/* ============================================
   FEATURE CARDS (HOME)
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.feature-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition-bounce);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.feature-card:hover::after {
  transform: scaleX(1);
}

.feature-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.6rem;
  color: white;
  transition: var(--transition-bounce);
}

.feature-card:hover .feature-icon {
  transform: scale(1.15) rotate(-8deg);
}

.feature-icon.blue { background: linear-gradient(135deg, var(--primary), var(--primary-light)); box-shadow: 0 6px 20px var(--primary-glow); }
.feature-icon.green { background: linear-gradient(135deg, var(--secondary), var(--secondary-light)); box-shadow: 0 6px 20px var(--secondary-glow); }
.feature-icon.orange { background: linear-gradient(135deg, var(--accent), #e67e22); box-shadow: 0 6px 20px rgba(243,156,18,0.35); }
.feature-icon.red { background: linear-gradient(135deg, #e74c3c, #c0392b); box-shadow: 0 6px 20px rgba(231,76,60,0.35); }

.feature-card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.feature-card p {
  font-size: 0.87rem;
  color: var(--text-light);
  line-height: 1.75;
}

/* ============================================
   ANIMATIONS & UTILITIES
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-fadeInUp { animation: fadeInUp 0.5s ease forwards; }
.animate-fadeIn { animation: fadeIn 0.4s ease forwards; }

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--bg-gray) 25%, var(--bg-light) 50%, var(--bg-gray) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* Glassmorphism utility */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-light), var(--secondary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   RESPONSIVE — Mobile First Advanced
   ============================================ */
@media (max-width: 1200px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual {
    display: none;
  }

  .hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .aps-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .universities-grid,
  .uni-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  :root {
    --space-3xl: 3rem;
  }

  /* Mobile Navbar */
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border-light);
    gap: 0.25rem;
  }

  .nav-menu.active {
    display: flex;
    animation: fadeInUp 0.25s ease;
  }

  .nav-menu li { width: 100%; }
  .nav-link { width: 100%; padding: 10px 14px; }

  /* Hero */
  .hero {
    text-align: center;
    padding-top: 70px;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }

  .hero-description {
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    max-width: 300px;
    width: 100%;
  }

  .hero-stats {
    justify-content: center;
    gap: 1.5rem;
  }

  /* Sections */
  .section {
    padding: 2.5rem 1.25rem;
  }

  /* Grids */
  .universities-grid,
  .uni-grid {
    grid-template-columns: 1fr;
  }

  .pros-cons-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* APS */
  .subject-row {
    grid-template-columns: 1fr auto auto;
    padding: 0.4rem;
  }

  /* Filters */
  .filters-bar {
    position: static;
    flex-direction: column;
    gap: 0.75rem;
  }

  .filter-group {
    min-width: 100%;
  }

  .filter-search {
    min-width: 100%;
  }

  /* Modal */
  .modal-tabs {
    gap: 0;
  }

  .modal-tab {
    padding: 0.55rem 0.8rem;
    font-size: 0.8rem;
  }

  .modal-uni-body {
    padding: 0 1.1rem 1.5rem;
  }

  /* Compare */
  .compare-actions {
    flex-direction: column;
  }

  /* Page Hero */
  .page-hero {
    padding: 5rem 1.25rem 3rem;
  }

  .page-hero h1 {
    font-size: 1.8rem;
    flex-direction: column;
    gap: 0.4rem;
  }

  /* Info grid */
  .info-grid {
    grid-template-columns: 1fr;
  }

  /* Steps */
  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Apply */
  .apply-grid {
    grid-template-columns: 1fr;
  }

  /* Course Results */
  .course-results-grid {
    grid-template-columns: 1fr;
  }

  /* Course finder filters */
  .course-finder-filters {
    grid-template-columns: 1fr;
  }

  /* Toast */
  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }

  .toast {
    max-width: 100%;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  /* Hero */
  .hero-title {
    font-size: 1.7rem;
    letter-spacing: -0.5px;
  }

  .hero-stats {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Quick actions */
  .quick-actions-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .quick-card {
    padding: 1.25rem;
  }

  /* Steps */
  .steps-grid {
    grid-template-columns: 1fr;
  }

  /* APS */
  .aps-score-number {
    font-size: 3.5rem;
  }

  .aps-actions {
    flex-direction: column;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-card::after {
    display: none;
  }

  /* Uni card */
  .uni-card-footer {
    flex-direction: column;
  }

  /* Modal */
  .modal {
    border-radius: var(--radius);
    max-height: 95vh;
  }

  .modal-uni-header {
    height: 180px;
  }

  /* Toast position */
  .toast-container {
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
  }

  /* Section header */
  .section-header h2 {
    font-size: 1.6rem;
  }

  /* Footer */
  .footer-grid {
    gap: 1.75rem;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .navbar,
  .hero,
  .toast-container,
  .modal-overlay,
  .compare-btn,
  .nav-toggle {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  .section {
    padding: 1rem 0;
  }

  .uni-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }

  a::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    color: #666;
  }
}

/* ============================================
   DARK MODE (optional - auto detect)
   ============================================ */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-light: #0d1b2a;
    --bg-gray: #112236;
    --bg-white: #0d1b2a;
    --bg-card: #152a3d;
    --border: #1e3a52;
    --border-light: #1a3347;
    --text-dark: #e8f0f7;
    --text-medium: #9bb5cc;
    --text-light: #6a8fa8;
    --text-muted: #4a7090;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 12px 