/* ============================================
   AUSTRALIAN SCHOOL FINDER - MAIN STYLESHEET
   ============================================ */

/* --- Variables & Reset --- */
:root {
  --gold: #FFCD00;
  --gold-dark: #E6B800;
  --navy: #003087;
  --navy-dark: #001F5B;
  --navy-light: #0050BB;
  --green: #00A651;
  --green-dark: #007A3D;
  --red: #E8112D;
  --white: #ffffff;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-500: #64748B;
  --gray-700: #334155;
  --gray-900: #0F172A;
  --font-main: 'Inter', sans-serif;
  --font-head: 'Poppins', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
  --shadow-xl: 0 16px 64px rgba(0,0,0,0.2);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-main);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  /* Por encima de controles Leaflet / mapas (hasta ~9999); debajo del menú móvil (10050+) */
  z-index: 10020;
  padding: 0.75rem 0;
  transition: var(--transition);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(0, 48, 135, 0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  padding: 0.5rem 0;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.nav-logo img { border-radius: 50%; border: 2px solid var(--gold); filter: drop-shadow(0 2px 8px rgba(255,205,0,0.4)); }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-main { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--white); }
.logo-sub { font-size: 0.65rem; color: rgba(255,255,255,0.7); letter-spacing: 0.03em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.9);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--gold);
  background: rgba(255,205,0,0.1);
}
.nav-arrow { font-size: 0.6rem; margin-left: 2px; transition: transform 0.25s; }

/* Dropdown (desktop / wide: hover to open) */
.nav-dropdown { position: relative; }
@media (min-width: 769px) {
  .nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-dropdown:hover .nav-arrow { transform: rotate(180deg); }
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 10025;
  transform: translateY(-8px);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  border: 1px solid var(--gray-100);
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--gray-700);
  font-size: 0.85rem;
  transition: var(--transition);
}
.dropdown-item:hover { background: var(--gray-50); color: var(--navy); }
.dropdown-item img { border-radius: 4px; object-fit: contain; flex-shrink: 0; }
.dropdown-item small { color: var(--gray-500); font-size: 0.75rem; }

/* Tools dropdown */
.dropdown-menu-tools { min-width: 280px; right: 0; left: auto; }
.dropdown-item-tool { align-items: flex-start; gap: 0.85rem; padding: 0.75rem; }
.dropdown-item-tool:hover { background: linear-gradient(135deg, rgba(0,48,135,0.04), rgba(0,80,187,0.06)); }
.tool-item-icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1rem; flex-shrink: 0;
  transition: var(--transition);
}
.dropdown-item-tool:hover .tool-item-icon { transform: scale(1.08); }
.tool-item-name { display: block; font-weight: 600; font-size: 0.875rem; color: var(--gray-900); }
.tool-item-desc { display: block; font-size: 0.75rem; color: var(--gray-500); margin-top: 1px; line-height: 1.4; }
.nav-link-tools { background: rgba(255,205,0,0.08); border: 1px solid rgba(255,205,0,0.2); border-radius: var(--radius-sm); }
.nav-link-tools:hover, .nav-link-tools.active { background: rgba(255,205,0,0.18); border-color: rgba(255,205,0,0.4); color: var(--gold); }

/* Mobile menu toggle (Finde Schule–style drawer) */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.35rem;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  margin-left: auto;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.menu-toggle:hover {
  color: var(--gold);
  background: rgba(255, 205, 0, 0.1);
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 15, 40, 0.72);
  /* Por encima del .navbar (z-index: 10020) */
  z-index: 10050;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.mobile-overlay.open {
  display: block;
}

.mobile-drawer {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  width: min(300px, 92vw);
  height: 100vh;
  height: 100dvh;
  background: var(--white);
  border-left: 1px solid var(--gray-200);
  z-index: 10051;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: -8px 0 40px rgba(0, 30, 87, 0.18);
}

.mobile-drawer.open {
  transform: translateX(0);
  z-index: 10051;
}

.drawer-strip {
  display: flex;
  height: 3px;
  flex-shrink: 0;
}
.drawer-strip-navy { flex: 1; background: var(--navy); }
.drawer-strip-gold { flex: 1; background: var(--gold); }
.drawer-strip-green { flex: 1; background: #00a651; }

.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--gray-200);
  flex-shrink: 0;
}

.drawer-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.2;
  max-width: calc(100% - 44px);
}

.drawer-logo img {
  border-radius: 50%;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}

.drawer-close {
  background: var(--gray-100);
  border: none;
  color: var(--gray-700);
  font-size: 1.15rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.drawer-close:hover {
  background: var(--gray-200);
  color: var(--navy);
}

.drawer-links {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0.65rem 1rem;
  flex: 1;
}

.drawer-links > li > a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--gray-800);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.drawer-links > li > a:hover,
.drawer-links > li > a:focus-visible {
  color: var(--navy);
  background: var(--gray-50);
}

.drawer-links > li > a i {
  color: var(--navy);
  width: 1.1rem;
  text-align: center;
  opacity: 0.9;
}

.drawer-submenu {
  border-top: 1px solid var(--gray-100);
  margin-top: 0.35rem;
  padding-top: 0.35rem;
}

.drawer-submenu-trigger {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: none;
  background: none;
  color: var(--gray-800);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-main);
  text-align: left;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}

.drawer-submenu-trigger:hover,
.drawer-submenu-trigger:focus-visible {
  color: var(--navy);
  background: var(--gray-50);
}

.drawer-submenu-trigger i:first-of-type {
  color: var(--navy);
  width: 1.1rem;
  text-align: center;
}

.drawer-submenu-arrow {
  margin-left: auto;
  font-size: 0.65rem;
  transition: transform 0.25s ease;
  opacity: 0.7;
}

.drawer-submenu.open .drawer-submenu-arrow {
  transform: rotate(180deg);
}

.drawer-submenu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.drawer-submenu.open .drawer-submenu-list {
  max-height: min(70vh, 560px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.drawer-submenu-list li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem 0.55rem 2rem;
  font-size: 0.85rem;
  color: var(--gray-700);
  text-decoration: none;
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.drawer-submenu-list li a:hover,
.drawer-submenu-list li a:focus-visible {
  color: var(--navy);
  background: rgba(0, 48, 135, 0.06);
  border-left-color: var(--gold);
}

.drawer-submenu-list li a img {
  flex-shrink: 0;
}

.drawer-footer {
  padding: 1rem;
  text-align: center;
  font-size: 0.72rem;
  color: var(--gray-500);
  border-top: 1px solid var(--gray-200);
  flex-shrink: 0;
}

@media (min-width: 769px) {
  .mobile-overlay,
  .mobile-drawer {
    display: none !important;
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,30,87,0.88) 0%, rgba(0,48,135,0.75) 50%, rgba(0,80,187,0.65) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,205,0,0.15);
  border: 1px solid rgba(255,205,0,0.4);
  color: var(--gold);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-highlight {
  color: var(--gold);
  -webkit-text-stroke: 1px rgba(255,205,0,0.3);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.88);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-subtitle strong { color: var(--gold); font-weight: 700; }

/* Search Bar — z-index above .hero-stats (both use transform from .animate-slide-up, so later sibling painted on top otherwise) */
.hero-search {
  margin-bottom: 3rem;
  position: relative;
  z-index: 10;
}
.search-form {
  display: flex;
  gap: 0.75rem;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-xl);
  padding: 0.5rem;
  flex-wrap: wrap;
}
.search-input-wrap {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.95);
  border-radius: calc(var(--radius-xl) - 4px);
  padding: 0.75rem 1.25rem;
}
.search-icon { color: var(--navy); font-size: 1rem; flex-shrink: 0; }
.search-input {
  border: none;
  background: transparent;
  font-size: 0.95rem;
  width: 100%;
  outline: none;
  color: var(--gray-900);
  font-family: var(--font-main);
}
.search-input::placeholder { color: var(--gray-500); }

.search-select {
  flex-shrink: 0;
  background: rgba(255,255,255,0.95);
  border: none;
  border-radius: calc(var(--radius-xl) - 4px);
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  color: var(--gray-700);
  font-family: var(--font-main);
  outline: none;
  cursor: pointer;
  min-width: 180px;
}

.btn-search {
  background: var(--gold);
  color: var(--navy-dark);
  border: none;
  border-radius: calc(var(--radius-xl) - 4px);
  padding: 0.75rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.btn-search:hover { background: var(--gold-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,205,0,0.4); }

/* Stats Row */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number {
  display: block;
  font-family: var(--font-head);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.25rem; display: block; }
.stat-divider { width: 1px; height: 48px; background: rgba(255,255,255,0.25); }

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  animation: bounce 2s infinite;
  transition: var(--transition);
}
.hero-scroll a:hover { border-color: var(--gold); color: var(--gold); }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ============================================
   SECTION COMMONS
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,48,135,0.08);
  color: var(--navy);
  border: 1px solid rgba(0,48,135,0.15);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--gray-500);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}
.subsection-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  text-align: center;
  margin: 3rem 0 1.75rem;
}

/* ============================================
   EDUCATION GUIDE
   ============================================ */
.education-guide {
  padding: 5rem 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}

/* Timeline */
.edu-timeline {
  display: flex;
  align-items: stretch;
  gap: 0;
  position: relative;
  margin-bottom: 4rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}
.edu-phase {
  flex: 1;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.edu-phase:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.phase-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px rgba(0,48,135,0.3);
}
.phase-badge {
  display: inline-block;
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.edu-phase h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.25rem; }
.phase-age { font-size: 0.8rem; font-weight: 600; color: var(--navy); margin-bottom: 0.75rem; }
.edu-phase p { font-size: 0.875rem; color: var(--gray-500); line-height: 1.6; }

.edu-connector {
  flex-shrink: 0;
  align-self: center;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  position: relative;
  z-index: 2;
}
.edu-connector::after {
  content: '';
  position: absolute;
  right: -6px;
  top: -4px;
  width: 0;
  height: 0;
  border-left: 8px solid var(--gold);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* Sectors Grid */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.sector-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.sector-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.sector-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: white;
  font-size: 1.75rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.sector-card h4 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--gray-900); }
.sector-card p { font-size: 0.875rem; color: var(--gray-500); line-height: 1.6; margin-bottom: 1rem; }
.sector-pct {
  display: inline-block;
  background: var(--gray-100);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.85rem;
  border-radius: 50px;
}

/* Facts */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.fact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.fact-item:hover { box-shadow: var(--shadow-md); border-color: rgba(0,48,135,0.2); }
.fact-icon { font-size: 1.5rem; color: var(--navy); flex-shrink: 0; margin-top: 2px; }
.fact-item strong { font-weight: 700; color: var(--gray-900); display: block; margin-bottom: 0.25rem; font-family: var(--font-head); }
.fact-item p { font-size: 0.875rem; color: var(--gray-500); line-height: 1.6; margin: 0; }

/* ============================================
   STATES SECTION
   ============================================ */
.states-section { padding: 5rem 0; background: var(--white); }

.regions-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.region-tab {
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  border: 2px solid var(--gray-200);
  background: transparent;
  color: var(--gray-700);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-main);
}
.region-tab:hover { border-color: var(--navy); color: var(--navy); }
.region-tab.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ── States / Territories group header ─────────────────── */
.states-group-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .25rem 0;
  transition: opacity .3s, max-height .35s;
}
.sgh-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
}
.states-group-header.territories-header .sgh-line {
  background: linear-gradient(90deg, transparent, rgba(255,205,0,.5), transparent);
}
.sgh-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #64748b;
  white-space: nowrap;
  background: #f8faff;
  padding: .35rem 1rem;
  border-radius: 99px;
  border: 1px solid #e2e8f0;
}
.sgh-label i { font-size: .75rem; color: var(--navy); }
.territories-header .sgh-label {
  color: #92400e;
  border-color: rgba(255,205,0,.5);
  background: #fffbeb;
}
.territories-header .sgh-label i { color: #b45309; }
.sgh-count {
  background: var(--navy);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: .1rem .45rem;
  border-radius: 99px;
  line-height: 1.5;
}
.territories-header .sgh-count {
  background: #b45309;
}
.states-group-header.hidden {
  display: none;
}

.states-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem;
}
.states-grid .state-card {
  flex: 0 1 calc(33.333% - 1.75rem);
  min-width: 280px;
  max-width: 420px;
}

.state-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  will-change: transform;
  transform: translateZ(0);
}
.state-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: transparent; }
.state-card[data-type="territory"] { border-top: 3px solid var(--gold); }

.state-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}
.state-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  border-radius: 20px 20px 0 0;
}
.state-card:hover .state-card-img img { transform: scale(1.06); }
.state-card-overlay {
  position: absolute;
  top: 1rem; right: 1rem;
}
.state-type-badge {
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
}

.state-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.state-card-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.state-coat { object-fit: contain; border-radius: 4px; flex-shrink: 0; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.15)); }
.state-card-name { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--gray-900); line-height: 1.2; }
.state-card-abbr { font-size: 0.75rem; color: var(--gray-500); font-weight: 500; }
.state-card-desc { font-size: 0.875rem; color: var(--gray-500); line-height: 1.6; margin-bottom: 1.25rem; flex: 1; }

.state-card-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
  font-size: 0.8rem;
  color: var(--gray-500);
}
.state-schools-count { display: flex; align-items: center; gap: 0.4rem; }
.state-schools-count strong { color: var(--navy); font-weight: 700; }
.state-capital { display: flex; align-items: center; gap: 0.4rem; }
.state-explore-btn {
  margin-left: auto;
  color: var(--navy);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  transition: var(--transition);
}
.state-card:hover .state-explore-btn { color: var(--gold-dark); }
.state-card:hover .state-explore-btn .fa-arrow-right { transform: translateX(3px); }

/* ============================================
   SCHOOL TYPES
   ============================================ */
.school-types-section { padding: 5rem 0; background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%); }
.school-types-section .section-tag { background: rgba(255,205,0,0.1); color: var(--gold); border-color: rgba(255,205,0,0.25); }
.school-types-section .section-title { color: var(--white); }

.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}
.type-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  color: var(--white);
}
.type-card:hover { background: rgba(255,255,255,0.15); transform: translateY(-4px); border-color: var(--gold); }
.type-icon {
  width: 68px; height: 68px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.75rem;
  color: white;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.type-card h4 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.type-card p { font-size: 0.83rem; color: rgba(255,255,255,0.65); }

/* ============================================
   MAP CTA
   ============================================ */
.map-cta-section { padding: 5rem 0; background: var(--gray-50); }
.map-cta-card {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  border-radius: var(--radius-xl);
  padding: 4rem;
  display: flex;
  align-items: center;
  gap: 3rem;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-xl);
}
.map-cta-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 60%; height: 200%;
  background: radial-gradient(ellipse, rgba(255,205,0,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.map-cta-content { flex: 1; }
.map-cta-icon { font-size: 3rem; color: var(--gold); margin-bottom: 1rem; }
.map-cta-content h2 { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--white); margin-bottom: 1rem; }
.map-cta-content p { color: rgba(255,255,255,0.75); font-size: 1rem; line-height: 1.7; margin-bottom: 2rem; }

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(255,205,0,0.35);
}
.btn-gold:hover { background: white; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,205,0,0.4); }

.map-cta-visual { flex-shrink: 0; }
.map-preview {
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}
.map-dots { margin-top: 1rem; display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.map-dots span {
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
  opacity: 0.7;
}
.map-dots span:nth-child(2) { animation-delay: 0.3s; }
.map-dots span:nth-child(3) { animation-delay: 0.6s; }
.map-dots span:nth-child(4) { animation-delay: 0.9s; }
.map-dots span:nth-child(5) { animation-delay: 1.2s; }
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.4); opacity: 1; }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer { background: var(--gray-900); color: rgba(255,255,255,0.75); }
.footer-top { padding: 4rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}
.footer-logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-logo img { border-radius: 50%; border: 2px solid rgba(255,205,0,0.4); }
.footer-logo-name { display: block; font-family: var(--font-head); font-weight: 700; color: white; font-size: 1.1rem; }
.footer-logo-tagline { display: block; font-size: 0.7rem; color: rgba(255,255,255,0.5); }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; margin-bottom: 1.5rem; }
.footer-stats { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-stats span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.07);
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  font-size: 0.78rem;
  color: var(--gold);
}
.footer-links-group h4 { color: white; font-weight: 700; font-size: 0.9rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-links-group ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links-group a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}
.footer-links-group a:hover { color: var(--gold); }
.footer-links-group a i { font-size: 0.6rem; color: var(--gold); }

.footer-search {
  display: flex;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.footer-search input {
  flex: 1;
  padding: 0.6rem 0.85rem;
  background: transparent;
  border: none;
  color: white;
  font-size: 0.85rem;
  font-family: var(--font-main);
  outline: none;
}
.footer-search input::placeholder { color: rgba(255,255,255,0.4); }
.footer-search button {
  padding: 0.6rem 1rem;
  background: var(--gold);
  border: none;
  color: var(--navy-dark);
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-search button:hover { background: var(--gold-dark); }

.edu-level-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.edu-level-tags a {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7) !important;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.78rem;
  transition: var(--transition);
}
.edu-level-tags a:hover { background: rgba(255,205,0,0.15); border-color: var(--gold); color: var(--gold) !important; }

.footer-bottom {
  padding: 1.25rem 0;
  font-size: 0.8rem;
}
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom p { color: rgba(255,255,255,0.45); }
.footer-bottom-links { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-bottom-links a { color: rgba(255,255,255,0.5); font-size: 0.8rem; transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--gold); }

/* ============================================
   ANIMATIONS
   ============================================ */
.animate-fade-in { opacity: 0; animation: fadeIn 0.8s ease forwards; }
.animate-slide-up { opacity: 0; animation: slideUp 0.8s ease forwards; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

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

/* Scroll reveal */
[data-aos] { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }
[data-aos="zoom-in"] { transform: scale(0.9); }
[data-aos="zoom-in"].aos-animate { transform: scale(1); }
[data-aos="fade-right"] { transform: translateX(-20px); }
[data-aos="fade-right"].aos-animate { transform: translateX(0); }

/* ============================================
   STATE PAGE
   ============================================ */
.state-hero {
  padding-top: 80px;
  min-height: 420px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.state-hero-bg { position: absolute; inset: 0; }
.state-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.state-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%); }
.state-hero-content {
  position: relative;
  z-index: 1;
  padding: 3rem 1.5rem;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.65); font-size: 0.85rem; margin-bottom: 1rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--gold); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb i { font-size: 0.6rem; }
.state-hero-title { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; color: white; margin-bottom: 0.75rem; }
.state-hero-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.state-hero-meta span { display: flex; align-items: center; gap: 0.4rem; color: rgba(255,255,255,0.8); font-size: 0.9rem; }
.state-hero-meta i { color: var(--gold); }

.state-main { padding: 3rem 0; }
.state-content-grid { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }

.state-info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  margin-bottom: 2rem;
}
.state-info-card h3 { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--gray-900); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.75rem; }
.state-info-card h3 i { color: var(--navy); }

/* Schools Listing */
.schools-controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.5rem;
}
.control-search {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 0.6rem 1rem;
  transition: var(--transition);
}
.control-search:focus-within { border-color: var(--navy); }
.control-search input { border: none; padding: 0; background: transparent; font-size: 0.875rem; outline: none; width: 100%; font-family: var(--font-main); }
.control-search i { color: var(--gray-500); }

.control-filter {
  padding: 0.65rem 1rem;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--gray-700);
  font-family: var(--font-main);
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}
.control-filter:focus { border-color: var(--navy); }

.schools-count-info { font-size: 0.875rem; color: var(--gray-500); }
.schools-count-info strong { color: var(--navy); }

.schools-list { display: flex; flex-direction: column; gap: 1rem; }

/* Whole row is one link — valid HTML5, better tap targets on mobile */
a.school-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 48, 135, 0.12);
  box-sizing: border-box;
}
a.school-item:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
@media (hover: hover) {
  a.school-item:hover {
    border-color: var(--navy);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
  }
}
.school-item-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.school-item-body { flex: 1; min-width: 0; }
.school-item-name {
  font-weight: 700;
  color: var(--gray-900);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
a.school-item .school-item-name mark { background: rgba(255, 205, 0, 0.45); color: inherit; padding: 0 0.1em; border-radius: 2px; }
.school-item-meta { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.school-item-meta span { font-size: 0.78rem; color: var(--gray-500); display: flex; align-items: center; gap: 0.3rem; }
.school-item-meta i { color: var(--navy); font-size: 0.65rem; }
.school-item-badges { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-gov { background: rgba(0,48,135,0.1); color: var(--navy); }
.badge-cath { background: rgba(139,0,0,0.1); color: #8B0000; }
.badge-ind { background: rgba(184,134,11,0.1); color: #8B6914; }
.badge-pri { background: rgba(0,166,81,0.1); color: var(--green-dark); }
.badge-sec { background: rgba(0,48,135,0.1); color: var(--navy); }
.badge-sp { background: rgba(204,68,0,0.1); color: #CC4400; }

/* Sidebar */
.state-sidebar { display: block; }
.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  margin-bottom: 1.5rem;
}
.sidebar-widget h4 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.6rem; }
.sidebar-widget h4 i { color: var(--navy); }

.sidebar-stat-list { display: flex; flex-direction: column; gap: 0.75rem; }
.sidebar-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}
.sidebar-stat-label { color: var(--gray-500); display: flex; align-items: center; gap: 0.5rem; }
.sidebar-stat-label i { font-size: 0.75rem; color: var(--navy); }
.sidebar-stat-value { font-weight: 700; color: var(--gray-900); }

.edu-quick-facts { display: flex; flex-direction: column; gap: 0.6rem; }
.edu-quick-fact { display: flex; gap: 0.75rem; font-size: 0.85rem; }
.edu-quick-fact i { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.edu-quick-fact p { color: var(--gray-600); margin: 0; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.page-btn {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.page-btn:hover { border-color: var(--navy); color: var(--navy); }
.page-btn.active { background: var(--navy); border-color: var(--navy); color: white; }
.page-btn.disabled { opacity: 0.4; cursor: not-allowed; }

/* ============================================
   SEARCH PAGE
   ============================================ */
.search-page { padding-top: 80px; min-height: 100vh; background: var(--gray-50); }
.search-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 3rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.search-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.search-hero-content { position: relative; z-index: 1; }
.search-hero h1 { font-family: var(--font-head); font-size: 2.25rem; font-weight: 800; color: white; margin-bottom: 0.5rem; }
.search-hero p { color: rgba(255,255,255,0.7); margin-bottom: 2rem; }

.search-bar-main {
  display: flex;
  gap: 0.75rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-xl);
  padding: 0.5rem;
  flex-wrap: wrap;
  backdrop-filter: blur(8px);
}
.search-bar-main .search-input-wrap { background: white; }
.search-bar-main .search-select { background: rgba(255,255,255,0.95); }

.search-body { padding: 2rem 0; }
.search-grid { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; }

.search-filters {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  height: fit-content;
  position: sticky;
  top: 90px;
}
.filter-title { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 1.25rem; }
.filter-group { margin-bottom: 1.5rem; }
.filter-group-title { font-size: 0.8rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem; }
.filter-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--gray-700);
  cursor: pointer;
  padding: 0.35rem 0;
}
.filter-option input[type="checkbox"] { accent-color: var(--navy); width: 16px; height: 16px; }
.filter-btn-apply {
  width: 100%;
  padding: 0.75rem;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-main);
}
.filter-btn-apply:hover { background: var(--navy-light); }

.search-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.results-count { font-size: 0.9rem; color: var(--gray-500); }
.results-count strong { color: var(--navy); font-weight: 700; }

.results-list { display: flex; flex-direction: column; gap: 0.85rem; }
.result-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.result-card:hover { border-color: var(--navy); box-shadow: var(--shadow-md); }
.result-icon {
  width: 50px; height: 50px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.25rem;
  flex-shrink: 0;
}
.result-body { flex: 1; min-width: 0; }
.result-name { font-weight: 700; color: var(--gray-900); font-size: 1rem; margin-bottom: 0.25rem; }
.result-name mark { background: rgba(255,205,0,0.3); padding: 0 2px; border-radius: 2px; }
.result-meta { display: flex; gap: 1rem; flex-wrap: wrap; }
.result-meta span { font-size: 0.8rem; color: var(--gray-500); display: flex; align-items: center; gap: 0.3rem; }
.result-meta i { color: var(--navy); font-size: 0.65rem; }

/* MAP PAGE */
.map-page { padding-top: 80px; }
.map-container { position: relative; height: calc(100vh - 80px); }
#schoolMap { width: 100%; height: 100%; }
.map-sidebar {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 800;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-xl);
  width: 300px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .state-content-grid { grid-template-columns: 1fr; }
  .state-sidebar { position: static; }
  .sidebar-widget { position: static; }
  .search-grid { grid-template-columns: 1fr; }
  .search-filters { position: static; }
  .map-cta-card { flex-direction: column; }
}

@media (max-width: 768px) {
  /* Desktop nav hidden — mobile uses .mobile-drawer */
  .nav-links.desktop-nav {
    display: none !important;
  }
  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 10052;
  }

  /* State pages: forzar bloque para evitar desbordamiento */
  .state-content-grid {
    display: block !important;
  }
  .state-sidebar {
    margin-top: 1.5rem;
  }

  /* Lista de colegios (estado): icono izquierda — cuerpo + badges derecha (menos alto) */
  a.school-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.75rem;
    row-gap: 0.35rem;
    align-items: start;
    padding: 0.85rem 0.95rem;
  }
  a.school-item .school-item-icon {
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: start;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  a.school-item .school-item-body {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }
  a.school-item .school-item-name {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    font-size: 0.92rem;
  }
  a.school-item .school-item-meta {
    gap: 0;
    column-gap: 0.75rem;
  }
  a.school-item .school-item-badges {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-start;
    align-self: start;
    width: auto;
    max-width: 100%;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
  }
  @media (hover: none) {
    a.school-item:active {
      border-color: var(--navy);
      background: var(--gray-50);
    }
  }

  /* Home: sectors grid — bloque en móvil */
  .sectors-grid {
    display: block;
  }
  .sectors-grid .sector-card {
    margin-bottom: 1rem;
  }
  .sectors-grid .sector-card:last-child {
    margin-bottom: 0;
  }
  /* Hero: stats — rejilla 2 columnas; número y etiqueta alineados a la izquierda */
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 0.75rem;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 0.15rem 0;
  }
  .hero-stats .stat-divider {
    display: none;
  }
  .hero-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.2rem;
    text-align: left;
    padding: 0.55rem 0.5rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  .hero-stats .stat-number {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: left;
    color: var(--gold);
  }
  .hero-stats .stat-label {
    display: block;
    margin-top: 0;
    font-size: 0.68rem;
    line-height: 1.2;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.78);
  }

  /* Hero: búsqueda — input wrap con la misma “caja” que el select (altura/padding tipográficos) */
  .search-form {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .search-input-wrap,
  .search-select {
    width: 100%;
    box-sizing: border-box;
    min-height: 2.75rem;
    padding: 0.65rem 1rem;
    border-radius: calc(var(--radius-xl) - 4px);
  }
  .search-input-wrap {
    flex: 1 1 auto;
  }
  .search-icon {
    font-size: 0.85rem;
  }
  .search-input {
    font-size: 0.875rem;
    line-height: 1.25;
  }
  .search-select {
    font-size: 0.875rem;
    min-width: 0;
  }
  .btn-search {
    width: 100%;
    justify-content: center;
    padding: 0.7rem 1.25rem;
    font-size: 0.88rem;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .edu-timeline { flex-direction: column; align-items: stretch; overflow-x: visible; padding-bottom: 0; }
  .edu-connector { width: 2px; height: 24px; background: linear-gradient(180deg, var(--navy), var(--gold)); margin: 0 auto; align-self: center; z-index: 2; }
  .edu-connector::after { display: none; }
  .states-grid { flex-direction: column; align-items: stretch; }
  .states-grid .state-card { flex: 1 1 100%; max-width: 100%; }
  .map-cta-visual { display: none; }
  .facts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .map-cta-card { padding: 2rem; }
}

/* ============================================
   HERO AJAX SEARCH SUGGESTIONS
   ============================================ */
.hero-search-wrapper {
  position: relative;
  width: 100%;
}

.hero-suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-height: 420px;
  overflow-y: auto;
  z-index: 500;
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.hero-suggestion-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: background 0.18s;
  color: var(--gray-900);
  text-decoration: none;
  text-align: left;
}
.hero-suggestion-item:last-of-type { border-bottom: none; }
.hero-suggestion-item:hover,
.hero-suggestion-item.suggestion-active {
  background: var(--gray-50);
}

.suggestion-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
}

.suggestion-body { flex: 1; min-width: 0; }
.suggestion-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.suggestion-name mark {
  background: rgba(255,205,0,0.35);
  padding: 0 2px;
  border-radius: 2px;
  color: var(--gray-900);
}
.suggestion-meta { font-size: 0.77rem; color: var(--gray-500); margin-top: 1px; }

.suggestion-arrow {
  color: var(--gray-300);
  font-size: 0.75rem;
  flex-shrink: 0;
  transition: color 0.15s, transform 0.15s;
}
.hero-suggestion-item:hover .suggestion-arrow { color: var(--navy); transform: translateX(3px); }

.hero-suggestion-all {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.1rem;
  background: var(--gray-50);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  border-top: 1px solid var(--gray-200);
  text-decoration: none;
  transition: background 0.18s;
}
.hero-suggestion-all:hover,
.hero-suggestion-all.suggestion-active { background: var(--gray-100); }
.hero-suggestion-all i { color: var(--navy); }
.hero-suggestion-all strong { color: var(--navy-dark); font-weight: 700; }

/* ============================================
   ABOUT / TERMS / PRIVACY PAGES
   ============================================ */
.info-page {
  padding-top: 80px;
  min-height: 100vh;
  background: var(--gray-50);
}
.info-page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.info-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.info-page-hero-content { position: relative; z-index: 1; }
.info-page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.info-page-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  max-width: 560px;
}
.info-page-hero .info-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,205,0,0.15);
  border: 1px solid rgba(255,205,0,0.35);
  color: var(--gold);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.info-page-body { padding: 3.5rem 0 5rem; }

.info-content-wrap {
  max-width: 860px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.info-section {
  padding: 2.5rem 3rem;
  border-bottom: 1px solid var(--gray-100);
}
.info-section:last-child { border-bottom: none; }
.info-section h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.info-section h2 i { color: var(--navy); }
.info-section h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 1.5rem 0 0.75rem;
}
.info-section p {
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.info-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.info-section ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--gray-500);
  font-size: 0.95rem;
  line-height: 1.7;
}
.info-section ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy);
  flex-shrink: 0;
  margin-top: 0.55rem;
}
.info-section a { color: var(--navy); font-weight: 600; }
.info-section a:hover { color: var(--navy-light); text-decoration: underline; }

/* About images grid */
.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}
.about-img-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}
.about-img-card img { width: 100%; height: 260px; object-fit: cover; display: block; }
.about-img-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,30,87,0.85), transparent);
  color: white;
  padding: 1.25rem 1rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
}

/* Values grid */
.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.about-value-card {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.about-value-card:hover { box-shadow: var(--shadow-md); border-color: rgba(0,48,135,0.2); }
.about-value-card i {
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: 0.85rem;
}
.about-value-card h4 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}
.about-value-card p { font-size: 0.82rem; color: var(--gray-500); line-height: 1.6; margin: 0; }

/* Privacy tool highlights */
.privacy-tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
.privacy-tool-card {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: var(--transition);
}
.privacy-tool-card:hover { box-shadow: var(--shadow-md); }
.privacy-tool-card i { font-size: 1.5rem; color: var(--navy); display: block; margin-bottom: 0.65rem; }
.privacy-tool-card strong { display: block; font-size: 0.88rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.35rem; }
.privacy-tool-card span { font-size: 0.78rem; color: var(--gray-500); line-height: 1.5; }

@media (max-width: 768px) {
  .info-section { padding: 2rem 1.5rem; }
  .about-images { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .privacy-tools { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .facts-grid { grid-template-columns: 1fr 1fr; }
}

/* ================================================
   SHARED HERO BANNER (from Comparator)
   ================================================ */
:root {
  --comp-gold: #FFCD00;
}
.compare-hero {
  background: linear-gradient(135deg, #001F5B 0%, #003087 55%, #0050BB 100%);
  padding: calc(80px + 2.5rem) 0 5rem;
  position: relative;
  overflow: hidden;
}
.compare-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 50%, rgba(255,205,0,0.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 20%, rgba(0,80,187,0.3) 0%, transparent 45%);
}
.compare-hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(160deg, #f0f4ff 0%, #ffffff 60%, #f8faff 100%);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.compare-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.compare-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,205,0,0.15);
  border: 1px solid rgba(255,205,0,0.35);
  color: var(--comp-gold);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.compare-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.compare-hero h1 span { color: var(--comp-gold); }
.compare-hero p {
  color: rgba(255,255,255,0.72);
  font-size: 1rem;
  max-width: 480px;
  line-height: 1.7;
}
.compare-hero-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.compare-stat {
  text-align: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  backdrop-filter: blur(8px);
  min-width: 110px;
}
.compare-stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--comp-gold);
  line-height: 1;
}
.compare-stat-label {
  display: block;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.3rem;
}
