/* =========================================
   Delhi-NCR CollegeFinder — Main Stylesheet
   ========================================= */

:root {
  --primary: #6C63FF;
  --primary-dark: #5A52E0;
  --secondary: #FF6B6B;
  --accent: #FFA500;
  --eng: #6C63FF;
  --med: #FF6B9D;
  --mgmt: #0984E3;
  --arts: #00B894;
  --bg: #F4F5FF;
  --white: #FFFFFF;
  --dark: #1A1A2E;
  --text: #4A4A6A;
  --light-text: #8B8BAE;
  --border: #E0E3FF;
  --card-shadow: 0 4px 20px rgba(108, 99, 255, 0.1);
  --card-shadow-hover: 0 12px 40px rgba(108, 99, 255, 0.2);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
  --nav-height: 70px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  color: var(--dark);
  line-height: 1.3;
}

a { text-decoration: none; color: inherit; }

/* ===== UTILITY CLASSES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: inherit;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(108,99,255,0.35); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; transform: translateY(-2px); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-govt { background: #E3FCEF; color: #00875A; }
.badge-private { background: #FFF3E0; color: #E65100; }
.badge-eng { background: #EEF0FF; color: #6C63FF; }
.badge-med { background: #FFF0F6; color: #FF6B9D; }
.badge-mgmt { background: #E3F4FF; color: #0984E3; }
.badge-arts { background: #E3FCF0; color: #00B894; }
.badge-women { background: #FCE4EC; color: #E91E63; }
.badge-open { background: #E3FCEF; color: #00875A; }
.badge-upcoming { background: #FFF8E1; color: #F57C00; }
.badge-closed { background: #FFEBEE; color: #C62828; }

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.section-sub {
  color: var(--light-text);
  font-size: 1rem;
  margin-bottom: 48px;
}
.tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary);
  color: white;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(108,99,255,0.1);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}
.nav-logo span { color: var(--dark); }
.nav-logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), #FF6B9D);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
  font-size: 0.9rem;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  background: #EEF0FF;
}
.nav-cta { display: flex; align-items: center; gap: 12px; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
  background: linear-gradient(135deg, #0D0D2B 0%, #1A1A4E 40%, #2D1B69 70%, #1A0E40 100%);
}
.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(108,99,255,0.3) 0%, transparent 70%);
  top: -100px; right: -100px;
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,107,157,0.2) 0%, transparent 70%);
  bottom: -50px; left: -50px;
  border-radius: 50%;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  padding: 60px 20px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108,99,255,0.2);
  border: 1px solid rgba(108,99,255,0.4);
  color: #A8A4FF;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  animation: fadeInDown 0.6s ease;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: white;
  margin-bottom: 20px;
  animation: fadeInDown 0.7s ease;
  line-height: 1.2;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, #A8A4FF, #FF6B9D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto 40px;
  animation: fadeInDown 0.8s ease;
}

/* Hero Search */
.hero-search {
  max-width: 680px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.9s ease;
}
.search-box {
  display: flex;
  background: white;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  border: 2px solid transparent;
  transition: var(--transition);
}
.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 20px 60px rgba(108,99,255,0.3);
}
.search-icon {
  padding: 0 20px;
  display: flex;
  align-items: center;
  color: var(--light-text);
  font-size: 1.1rem;
}
.search-box input {
  flex: 1;
  padding: 18px 0;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--dark);
  background: transparent;
  font-family: inherit;
}
.search-box input::placeholder { color: var(--light-text); }
.search-btn {
  background: linear-gradient(135deg, var(--primary), #FF6B9D);
  color: white;
  border: none;
  padding: 12px 28px;
  margin: 8px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
  transition: var(--transition);
  white-space: nowrap;
}
.search-btn:hover { transform: scale(1.03); opacity: 0.9; }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  animation: fadeInUp 1s ease;
}
.hero-tag {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}
.hero-tag:hover {
  background: rgba(108,99,255,0.4);
  border-color: rgba(108,99,255,0.6);
  color: white;
}

/* Floating cards */
.hero-float {
  position: absolute;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 12px 18px;
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  animation: float 4s ease-in-out infinite;
}
.hero-float-1 { top: 20%; left: 5%; animation-delay: 0s; }
.hero-float-2 { top: 60%; left: 3%; animation-delay: 1.5s; }
.hero-float-3 { top: 25%; right: 5%; animation-delay: 0.8s; }
.hero-float-4 { top: 65%; right: 4%; animation-delay: 2s; }
.hero-float .hf-num { font-size: 1.3rem; font-weight: 800; color: #A8A4FF; }

/* ===== STATS BAR ===== */
.stats-bar {
  background: white;
  padding: 32px 20px;
  box-shadow: 0 4px 30px rgba(108,99,255,0.08);
}
.stats-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-item .stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}
.stat-item .stat-label {
  font-size: 0.8rem;
  color: var(--light-text);
  font-weight: 500;
}

/* ===== CATEGORIES ===== */
.categories {
  padding: 80px 20px;
}
.categories .container { text-align: center; }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 0;
}
.cat-card {
  background: white;
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  border-radius: 0 0 var(--radius) var(--radius);
  opacity: 0;
  transition: var(--transition);
}
.cat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
}
.cat-card[data-cat="engineering"]::before { background: linear-gradient(90deg, #6C63FF, #A8A4FF); }
.cat-card[data-cat="medical"]::before { background: linear-gradient(90deg, #FF6B9D, #FFB3CC); }
.cat-card[data-cat="management"]::before { background: linear-gradient(90deg, #0984E3, #74B9FF); }
.cat-card[data-cat="arts"]::before { background: linear-gradient(90deg, #00B894, #55EFC4); }
.cat-card:hover::before { opacity: 1; }
.cat-card[data-cat="engineering"]:hover { border-color: rgba(108,99,255,0.2); }
.cat-card[data-cat="medical"]:hover { border-color: rgba(255,107,157,0.2); }
.cat-card[data-cat="management"]:hover { border-color: rgba(9,132,227,0.2); }
.cat-card[data-cat="arts"]:hover { border-color: rgba(0,184,148,0.2); }

.cat-icon {
  width: 80px; height: 80px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}
.cat-icon-eng { background: linear-gradient(135deg, #EEF0FF, #D4D0FF); }
.cat-icon-med { background: linear-gradient(135deg, #FFF0F6, #FFD6E7); }
.cat-icon-mgmt { background: linear-gradient(135deg, #E3F4FF, #B8DFFF); }
.cat-icon-arts { background: linear-gradient(135deg, #E3FCF0, #B8F5D8); }

.cat-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.cat-card p { font-size: 0.85rem; color: var(--light-text); margin-bottom: 16px; }
.cat-count {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
}
.cat-count-eng { background: #EEF0FF; color: #6C63FF; }
.cat-count-med { background: #FFF0F6; color: #FF6B9D; }
.cat-count-mgmt { background: #E3F4FF; color: #0984E3; }
.cat-count-arts { background: #E3FCF0; color: #00B894; }

/* ===== FEATURED COLLEGES ===== */
.featured {
  padding: 80px 20px;
  background: white;
}
.featured .container { text-align: center; }
.featured-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  margin-bottom: 40px;
}
.colleges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

/* ===== COLLEGE CARD ===== */
.college-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}
.college-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--primary);
}
.card-header {
  padding: 20px 20px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.card-logo {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.card-logo-eng { background: linear-gradient(135deg, #EEF0FF, #D4D0FF); }
.card-logo-med { background: linear-gradient(135deg, #FFF0F6, #FFD6E7); }
.card-logo-mgmt { background: linear-gradient(135deg, #E3F4FF, #B8DFFF); }
.card-logo-arts { background: linear-gradient(135deg, #E3FCF0, #B8F5D8); }
.card-badges { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.card-body { padding: 0 20px 16px; }
.card-name { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.card-location {
  font-size: 0.8rem;
  color: var(--light-text);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}
.card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.cs-item { text-align: center; }
.cs-val { font-size: 0.85rem; font-weight: 700; color: var(--dark); display: block; }
.cs-key { font-size: 0.7rem; color: var(--light-text); }
.card-divider { height: 1px; background: var(--border); margin-bottom: 14px; }
.card-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.highlight-tag {
  padding: 3px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.72rem;
  color: var(--text);
}
.card-footer {
  padding: 14px 20px;
  background: white;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-ranking {
  font-size: 0.8rem;
  color: var(--light-text);
}
.card-ranking span { font-weight: 700; color: var(--accent); }
.card-action-btns { display: flex; gap: 8px; }
.btn-compare {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  font-weight: 500;
}
.btn-compare:hover { border-color: var(--primary); color: var(--primary); }
.btn-compare.active { background: var(--primary); color: white; border-color: var(--primary); }
.btn-view {
  background: var(--primary);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  font-weight: 500;
}
.btn-view:hover { background: var(--primary-dark); }

/* ===== DEADLINES ===== */
.deadlines {
  padding: 80px 20px;
  background: linear-gradient(135deg, #0D0D2B 0%, #1A1A4E 100%);
  position: relative;
  overflow: hidden;
}
.deadlines::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(108,99,255,0.15) 0%, transparent 70%);
  top: -100px; right: -100px;
  border-radius: 50%;
}
.deadlines .section-title { color: white; }
.deadlines .section-sub { color: rgba(255,255,255,0.6); }
.deadlines-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.deadline-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.deadline-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(108,99,255,0.4);
  transform: translateY(-4px);
}
.dl-icon { font-size: 2rem; margin-bottom: 12px; }
.dl-exam { font-size: 1rem; font-weight: 700; color: white; margin-bottom: 4px; }
.dl-date { font-size: 0.85rem; color: #A8A4FF; margin-bottom: 8px; }
.dl-reg { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-bottom: 12px; }
.dl-for {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.dl-tag {
  font-size: 0.7rem;
  padding: 2px 8px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  border-radius: 50px;
}
.dl-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 12px;
}
.dl-status.open { background: rgba(0,184,148,0.25); color: #55EFC4; }
.dl-status.upcoming { background: rgba(255,165,0,0.25); color: #FFC107; }
.dl-status.reg-closed { background: rgba(255,107,107,0.25); color: #FF6B6B; }
.dl-status.completed { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.4); }

/* ===== FILTERS (Colleges Page) ===== */
.page-hero {
  background: linear-gradient(135deg, #0D0D2B, #1A1A4E);
  padding: calc(var(--nav-height) + 40px) 20px 40px;
  text-align: center;
}
.page-hero h1 { color: white; font-size: 2.2rem; margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,0.65); }

.colleges-page {
  padding: 40px 20px;
}
.colleges-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.filters-sidebar {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--card-shadow);
  height: fit-content;
  position: sticky;
  top: calc(var(--nav-height) + 20px);
}
.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.filter-header h3 { font-size: 1rem; font-weight: 700; }
.filter-clear {
  font-size: 0.8rem;
  color: var(--primary);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  font-weight: 600;
}

.filter-group { margin-bottom: 24px; }
.filter-group-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--light-text);
  margin-bottom: 12px;
}

.filter-options { display: flex; flex-direction: column; gap: 8px; }
.filter-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text);
}
.filter-opt input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}
.filter-opt:hover { color: var(--primary); }
.filter-count {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--light-text);
  background: var(--bg);
  padding: 1px 7px;
  border-radius: 50px;
}

.fees-range { margin-top: 8px; }
.fees-range input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
}
.fees-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--light-text);
  margin-top: 4px;
}
.fees-current {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 6px;
}

/* Results Header */
.results-header {
  background: white;
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  box-shadow: var(--card-shadow);
  flex-wrap: wrap;
  gap: 12px;
}
.results-count { font-size: 0.9rem; color: var(--text); }
.results-count strong { color: var(--dark); font-weight: 700; }
.sort-bar { display: flex; align-items: center; gap: 10px; }
.sort-bar label { font-size: 0.85rem; color: var(--light-text); }
.sort-bar select {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--dark);
  background: white;
  cursor: pointer;
  outline: none;
}
.view-toggle { display: flex; gap: 6px; }
.view-btn {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 0.9rem;
}
.view-btn.active, .view-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Results Grid */
.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.results-grid.list-view {
  grid-template-columns: 1fr;
}
.results-grid.list-view .college-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}
.results-grid.list-view .card-header { border-right: 1px solid var(--border); }
.results-grid.list-view .card-footer { border-top: none; border-left: 1px solid var(--border); }

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--light-text);
}
.no-results .nr-icon { font-size: 3rem; margin-bottom: 12px; }
.no-results h3 { color: var(--dark); margin-bottom: 8px; }

.load-more-wrap { text-align: center; margin-top: 32px; }

/* Search Bar (colleges page) */
.search-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.search-row .search-box {
  flex: 1;
  background: white;
  border-radius: var(--radius-sm);
  box-shadow: var(--card-shadow);
  border: 2px solid transparent;
}
.search-row .search-box:focus-within { border-color: var(--primary); }
.search-row .search-box input {
  padding: 14px 0;
  font-size: 0.95rem;
}
.search-row .search-btn {
  padding: 14px 24px;
  background: var(--primary);
  margin: 0;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

/* ===== COMPARE PAGE ===== */
.compare-page {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.compare-selectors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.compare-select-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--card-shadow);
  border: 2px dashed var(--border);
  transition: var(--transition);
}
.compare-select-card.has-selection { border-style: solid; border-color: var(--primary); }
.compare-select-card label { font-size: 0.85rem; font-weight: 700; color: var(--light-text); display: block; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.compare-select-card select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--dark);
  background: var(--bg);
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}
.compare-select-card select:focus { border-color: var(--primary); }
.compare-preview {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--light-text);
}
.compare-preview strong { color: var(--dark); display: block; font-size: 0.9rem; margin-bottom: 2px; }

.compare-table-wrap {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  overflow-x: auto;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
.compare-table th {
  background: linear-gradient(135deg, var(--primary), #8B85FF);
  color: white;
  padding: 18px 20px;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 700;
}
.compare-table th:first-child { background: #2D2D4E; width: 180px; }
.compare-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  vertical-align: top;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .row-label {
  font-weight: 700;
  color: var(--dark);
  background: var(--bg);
  font-size: 0.82rem;
}
.compare-table tr:hover td { background: #FAFBFF; }
.compare-table tr:hover .row-label { background: #F0F2FF; }
.best-value {
  background: rgba(0,184,148,0.1) !important;
  border-left: 3px solid var(--arts);
}
.best-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--arts);
  color: white;
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 700;
  margin-left: 6px;
  vertical-align: middle;
}

.compare-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--light-text);
}
.compare-empty .ce-icon { font-size: 3.5rem; margin-bottom: 16px; }
.compare-empty h3 { color: var(--dark); font-size: 1.2rem; margin-bottom: 8px; }

/* ===== COMPARE FLOATING BAR ===== */
.compare-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--dark);
  color: white;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 900;
  transform: translateY(100%);
  transition: var(--transition);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}
.compare-bar.visible { transform: translateY(0); }
.compare-bar-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.compare-bar-label { font-size: 0.9rem; font-weight: 600; }
.compare-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.compare-chip {
  background: rgba(255,255,255,0.15);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.compare-chip .remove-chip {
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition);
}
.compare-chip .remove-chip:hover { opacity: 1; }
.compare-bar-right { display: flex; gap: 10px; }

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--primary) 0%, #FF6B9D 100%);
  text-align: center;
}
.cta-section h2 { color: white; font-size: 2rem; margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,0.8); margin-bottom: 32px; font-size: 1rem; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-white { background: white; color: var(--primary); }
.btn-white:hover { background: #F0F0FF; transform: translateY(-2px); }
.btn-outline-white { border: 2px solid rgba(255,255,255,0.6); color: white; background: transparent; }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: white; }

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 20px 30px;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 14px;
}
.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  font-size: 0.9rem;
}
.social-btn:hover { background: var(--primary); color: white; }
.footer-col h4 { color: white; font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: white; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: var(--transition);
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal-header {
  padding: 24px 28px 0;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}
.modal-logo { width: 60px; height: 60px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; flex-shrink: 0; }
.modal-title h2 { font-size: 1.2rem; margin-bottom: 4px; }
.modal-title .modal-loc { font-size: 0.85rem; color: var(--light-text); }
.modal-close {
  margin-left: auto;
  background: var(--bg);
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
  flex-shrink: 0;
}
.modal-close:hover { background: #FFE5E5; }
.modal-body { padding: 24px 28px; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.modal-stat {
  background: var(--bg);
  border-radius: 10px;
  padding: 14px 16px;
}
.modal-stat .ms-key { font-size: 0.75rem; color: var(--light-text); font-weight: 600; text-transform: uppercase; margin-bottom: 4px; }
.modal-stat .ms-val { font-size: 1rem; font-weight: 700; color: var(--dark); }
.modal-section { margin-bottom: 20px; }
.modal-section h4 { font-size: 0.9rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.modal-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.modal-tag {
  padding: 4px 12px;
  background: #EEF0FF;
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}
.modal-footer { padding: 16px 28px 24px; display: flex; gap: 12px; }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 800;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: white;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37,211,102,0.5); }
.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: var(--dark);
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .colleges-grid { grid-template-columns: repeat(2, 1fr); }
  .deadlines-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .hero-float { display: none; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: white;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 1px solid var(--border);
    gap: 4px;
  }
  .nav-links.mobile-open a { display: block; padding: 12px 16px; }
  .colleges-layout { grid-template-columns: 1fr; }
  .filters-sidebar { position: static; }
  .results-grid { grid-template-columns: 1fr; }
  .colleges-grid { grid-template-columns: 1fr; }
  .compare-selectors { grid-template-columns: 1fr; }
  .modal-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 1.9rem; }
  .section-title { font-size: 1.6rem; }
  .deadlines-grid { grid-template-columns: 1fr; }
  .featured-header { flex-direction: column; align-items: flex-start; }
  .cta-btns { flex-direction: column; align-items: center; }
  .results-header { flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .search-box { flex-wrap: wrap; border-radius: var(--radius); }
  .search-btn { width: 100%; margin: 0 8px 8px; border-radius: 8px; text-align: center; justify-content: center; }
  .categories-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .card-stats { grid-template-columns: repeat(2, 1fr); }
}
