/* ==========================================================================
   EDUMINATTI CLONE - VANTAGEHALL MODERN CSS SYSTEM
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #1e3a8a;
  --primary-dark: #0f172a;
  --primary-light: #3b82f6;
  --accent: #ff6b35;
  --accent-hover: #e85620;
  --secondary: #0d9488;
  --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #1e3a8a 100%);
  --surface-light: #f8fafc;
  --surface-white: #ffffff;
  --card-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08);
  --card-shadow-hover: 0 20px 40px -10px rgba(30, 58, 138, 0.2);
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background-color: var(--surface-light);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ================= CUSTOM SITE & DROPDOWN SCROLLBAR ================= */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff6b35 0%, #ff4500 100%);
  border-radius: 10px;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff4500 0%, #d93800 100%);
}

/* Specific Dropdown Custom Scrollbar */
.live-search-dropdown::-webkit-scrollbar,
.custom-dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.live-search-dropdown::-webkit-scrollbar-track,
.custom-dropdown-menu::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  margin: 6px 0;
}

.live-search-dropdown::-webkit-scrollbar-thumb,
.custom-dropdown-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 107, 53, 0.7);
  border-radius: 10px;
}

.live-search-dropdown::-webkit-scrollbar-thumb:hover,
.custom-dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Firefox Scrollbar Standard Syntax */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 107, 53, 0.7) rgba(15, 23, 42, 0.6);
}

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

ul {
  list-style: none;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ================= TOP ANNOUNCEMENT BAR ================= */
.top-bar {
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
  color: #94a3b8;
  font-size: 0.84rem;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.top-bar-info i {
  color: var(--accent);
  margin-right: 4px;
}
.top-bar-info strong {
  color: #f8fafc;
}
.top-bar-divider {
  color: rgba(255, 255, 255, 0.2);
}
.top-bar-links {
  display: flex;
  align-items: center;
  gap: 12px;
}
.top-bar-links a {
  color: #e2e8f0;
  font-weight: 500;
  font-size: 0.82rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}
.top-bar-links a i {
  color: var(--accent);
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}
.top-bar-links a:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}
.top-bar-links a:hover i {
  color: white;
  transform: scale(1.15);
}

/* ================= MAIN NAVIGATION BAR & RESPONSIVE LAYOUT ================= */
.navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 25px rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.brand-logo i {
  color: white;
  background: linear-gradient(135deg, var(--accent) 0%, #ff8c5a 100%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.25rem;
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.35);
  flex-shrink: 0;
}
.brand-logo span {
  color: var(--accent);
}

.nav-menu-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  font-weight: 700;
  color: #334155;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 12px;
  white-space: nowrap;
  position: relative;
  transition: all 0.2s ease;
}
.nav-link:hover {
  color: var(--accent);
  background: rgba(255, 107, 53, 0.06);
}
.nav-link.active {
  color: var(--accent);
  background: rgba(255, 107, 53, 0.1);
  font-weight: 800;
}

.nav-drawer-cta .btn {
  padding: 10px 20px;
  font-size: 0.88rem;
  white-space: nowrap;
  border-radius: 12px;
}

.mobile-toggle,
.mobile-close,
.nav-drawer-header,
.mobile-nav-overlay {
  display: none;
}

/* TABLET & MOBILE RESPONSIVE DRAWER (< 1150px) */
@media (max-width: 1150px) {
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 107, 53, 0.08);
    border: 1px solid rgba(255, 107, 53, 0.2);
    color: var(--accent);
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
  }
  .nav-menu-wrapper {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    z-index: 2000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 20px;
    overflow-y: auto;
  }
  .nav-menu-wrapper.active {
    right: 0;
  }
  .nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
  }
  .mobile-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f1f5f9;
    border: none;
    color: #0f172a;
    font-size: 1.1rem;
    cursor: pointer;
  }
  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .nav-link {
    font-size: 1rem;
    padding: 12px 16px;
    border-radius: 12px;
  }
  .mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1999;
    display: none;
  }
  .mobile-nav-overlay.active {
    display: block;
  }
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #ff521b 100%);
  color: white;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #ff521b 0%, #e0400b 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 107, 53, 0.5);
}
.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
}
.btn-secondary {
  background: var(--primary);
  color: white;
}
.btn-secondary:hover {
  background: var(--primary-dark);
}

/* ================= REDESIGNED HERO SECTION ================= */
.hero {
  background: linear-gradient(135deg, rgba(11, 19, 42, 0.92) 0%, rgba(15, 23, 42, 0.86) 50%, rgba(10, 15, 30, 0.94) 100%), 
              url('https://images.unsplash.com/photo-1541829070764-84a7d30dd3f3?w=1920&auto=format&fit=crop&q=80') center center / cover no-repeat;
  color: white;
  padding: 100px 0 120px 0;
  position: relative;
  overflow: visible;
  z-index: 100;
}
.hero-glow-1 {
  position: absolute;
  top: -150px;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.22) 0%, rgba(255, 107, 53, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
}
.hero-glow-2 {
  position: absolute;
  bottom: -150px;
  right: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, rgba(56, 189, 248, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(50px);
}
.hero-content {
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  z-index: 100;
  overflow: visible;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  color: #f8fafc;
}
.badge-pulse {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulseGreen 2s infinite;
}
@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero h1 {
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1.18;
  margin-bottom: 22px;
  letter-spacing: -1px;
  color: #ffffff;
}
.hero-highlight {
  background: linear-gradient(135deg, #ff6b35 0%, #ff9f43 50%, #ff521b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
}
.hero-subtext {
  font-size: 1.2rem;
  color: #cbd5e1;
  max-width: 820px;
  margin: 0 auto 44px auto;
  line-height: 1.65;
  font-weight: 400;
}

/* REDESIGNED FLOATING SEARCH BOX CARD */
.search-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 12px 14px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.9);
  display: grid;
  grid-template-columns: 2.2fr 1.6fr 1.6fr 140px;
  gap: 8px;
  align-items: center;
  color: var(--text-main);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: visible;
  z-index: 1000;
}
.search-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 30px 70px -15px rgba(255, 107, 53, 0.25), 0 0 0 2px var(--accent);
  z-index: 1100;
}
.search-field {
  display: flex;
  flex-direction: column;
  padding: 10px 18px;
  border-right: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: background 0.2s ease;
  position: relative;
  overflow: visible;
}
.search-field:focus-within {
  z-index: 1200;
}
.search-field:hover {
  background: #f8fafc;
}
.search-field:last-of-type {
  border-right: none;
}
.search-field label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.search-field input, .search-field select {
  border: none;
  outline: none;
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  background: transparent;
  width: 100%;
  cursor: pointer;
}
.search-field input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.search-btn-wrapper {
  height: 100%;
}
.btn-hero-search {
  height: 100%;
  width: 100%;
  min-height: 56px;
  background: linear-gradient(135deg, #ff6b35 0%, #ff4500 100%);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-hero-search:hover {
  background: linear-gradient(135deg, #ff4500 0%, #d93800 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 107, 53, 0.6);
}
.btn-hero-search i {
  transition: transform 0.25s ease;
}
.btn-hero-search:hover i {
  transform: translateX(4px);
}

/* POPULAR CITIES CHIPS */
.popular-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}
.popular-label {
  font-weight: 700;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 18px;
  border-radius: 30px;
  color: #f1f5f9;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.35);
}

/* HERO TRUST METRICS ROW */
.hero-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 50px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  flex-wrap: wrap;
}
.trust-item {
  font-size: 0.95rem;
  font-weight: 700;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.trust-divider {
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

/* ================= FEATURED CATEGORIES ================= */
.section {
  padding: 80px 0;
}
.section-title {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px auto;
}
.section-title h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 12px;
}
.section-title p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.category-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}
.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--primary-light);
}
.category-icon {
  width: 65px;
  height: 65px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px auto;
  transition: var(--transition);
}
.category-card:hover .category-icon {
  background: var(--accent);
  color: white;
}
.category-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.category-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ================= SCHOOL CARDS GRID & PREMIUM CARD UI ================= */
.school-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}
.school-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
}
.school-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.12);
  border-color: rgba(255, 107, 53, 0.35);
}
.school-img-wrapper {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #0f172a;
}
.school-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.school-card:hover .school-img-wrapper img {
  transform: scale(1.06);
}
.school-badge-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #f8fafc;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.school-rating {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: #fbbf24;
  color: #78350f;
  padding: 5px 12px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.school-card-body {
  padding: 22px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.school-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
  line-height: 1.35;
  min-height: 3.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.school-location {
  font-size: 0.85rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.school-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.meta-pill {
  background: #f1f5f9;
  color: #475569;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  border: 1px solid #e2e8f0;
}
.school-fee-box {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #e2e8f0;
}
.fee-label {
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.fee-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}
.school-card-footer {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 10px;
}
.school-card-footer .btn {
  padding: 10px 12px;
  font-size: 0.85rem;
  white-space: nowrap;
  justify-content: center;
  border-radius: 10px;
}
.btn-secondary {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}
.btn-secondary:hover {
  background: linear-gradient(135deg, var(--accent) 0%, #ff521b 100%);
  color: white;
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.35);
}
.btn-compare {
  border: 1px solid #cbd5e1;
  color: #334155;
  background: #ffffff;
  font-weight: 600;
  transition: all 0.25s ease;
}
.btn-compare:hover {
  background: rgba(255, 107, 53, 0.08);
  border-color: var(--accent);
  color: var(--accent);
}
.btn-compare.btn-primary,
.btn-compare.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border-color: #059669 !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

/* Compare button for dark hero banner (school-details header) */
.btn-compare-hero {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 18px !important;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.25s ease;
}
.btn-compare-hero:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}
.btn-compare-hero.btn-primary,
.btn-compare-hero.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border-color: #059669 !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* --- 6TH GRID SLOT CTA CARD DESIGN --- */
.browse-all-grid-card {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 36px 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 420px;
}
.browse-all-grid-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.3) 0%, transparent 70%);
  pointer-events: none;
}
.browse-all-grid-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 45px rgba(15, 23, 42, 0.25);
  border-color: rgba(255, 107, 53, 0.4);
}
.browse-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 2;
}
.browse-card-badge {
  background: rgba(255, 107, 53, 0.15);
  color: var(--accent);
  border: 1px solid rgba(255, 107, 53, 0.3);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.browse-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #ff521b 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
  transition: transform 0.3s ease;
  margin: 6px 0;
}
.browse-all-grid-card:hover .browse-card-icon {
  transform: scale(1.1) rotate(12deg);
}
.browse-card-inner h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin: 0;
}
.browse-card-inner p {
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
  max-width: 280px;
}
.btn-browse-all {
  width: 100%;
  margin-top: 10px;
  padding: 14px 24px;
  font-size: 0.98rem;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
}

/* ================= PREMIUM SERVICES SECTION DESIGN ================= */
.services-section {
  padding: 85px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
  position: relative;
}
.services-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 55px auto;
}
.services-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 107, 53, 0.1);
  color: var(--accent);
  border: 1px solid rgba(255, 107, 53, 0.25);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

/* ================= TOP SCHOOLS GRID REDESIGN ================= */
.top-schools-section {
  padding: 85px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}
.top-schools-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px auto;
}
.top-schools-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.top-schools-header p {
  font-size: 1.02rem;
  color: #64748b;
}

.top-schools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.top-school-card {
  background: #ffffff;
  border: 1.5px solid #e8eef6;
  border-radius: 20px;
  padding: 28px 20px 22px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  gap: 0;
}
.top-school-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 48px rgba(255, 107, 53, 0.14), 0 6px 20px rgba(15, 23, 42, 0.08);
  border-color: rgba(255, 107, 53, 0.35);
}

.top-school-logo-ring {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #f8fafc;
  border: 2px solid #f1f5f9;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}
.top-school-card:hover .top-school-logo-ring {
  transform: scale(1.06);
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(255,107,53,0.15);
}
.top-school-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.top-school-name {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
  line-height: 1.4;
  min-height: 2.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.top-school-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-top: auto;
}
.top-school-city {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.top-school-type-pill {
  font-size: 0.74rem;
  font-weight: 700;
  color: #0284c7;
  background: rgba(56, 189, 248, 0.1);
  padding: 3px 12px;
  border-radius: 20px;
  border: 1px solid rgba(56,189,248,0.2);
  white-space: nowrap;
}

@media (max-width: 1200px) {
  .top-schools-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}
@media (max-width: 991px) {
  .top-schools-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}
@media (max-width: 640px) {
  .top-schools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .top-school-card {
    padding: 16px 12px;
  }
  .top-school-name {
    font-size: 0.88rem;
  }
}
.services-header h2 {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.services-header p {
  font-size: 1.05rem;
  color: #64748b;
  line-height: 1.6;
}

.services-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-item-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 34px 28px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
}
.service-item-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  transition: background 0.3s ease;
}
.service-item-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.1);
  border-color: rgba(255, 107, 53, 0.3);
}
.service-item-card:hover::before {
  background: linear-gradient(90deg, var(--accent), #ff8c5a);
}

.service-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: white;
  margin-bottom: 22px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}
.service-item-card:hover .service-icon-box {
  transform: scale(1.1) rotate(5deg);
}

.icon-blue { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.icon-emerald { background: linear-gradient(135deg, #10b981 0%, #047857 100%); }
.icon-amber { background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%); }
.icon-cyan { background: linear-gradient(135deg, #06b6d4 0%, #0e7490 100%); }
.icon-purple { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); }
.icon-rose { background: linear-gradient(135deg, #ff6b35 0%, #e0400b 100%); }

.service-item-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}
.service-item-card p {
  font-size: 0.93rem;
  color: #64748b;
  line-height: 1.65;
  margin-bottom: 24px;
}
.service-link-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  transition: gap 0.2s ease;
}
.service-item-card:hover .service-link-btn {
  gap: 12px;
  color: var(--primary-dark);
}

@media (max-width: 991px) {
  .services-grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media (max-width: 576px) {
  .services-grid-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .service-item-card {
    padding: 26px 20px;
  }
}

/* ================= FAMOUS LANDMARK CITIES PHOTO CARDS DESIGN ================= */
.cities-section {
  padding: 80px 0;
  background: #ffffff;
}
.cities-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px auto;
}
.cities-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.cities-header p {
  font-size: 1.02rem;
  color: #64748b;
}

.cities-grid-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.city-photo-card {
  height: 210px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.city-photo-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
  border-color: var(--accent);
}

.city-badge {
  align-self: flex-start;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #f8fafc;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.city-card-content {
  z-index: 2;
}
.city-card-content h4 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 2px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.city-card-content span {
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 500;
}

@media (max-width: 1200px) {
  .cities-grid-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 991px) {
  .cities-grid-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}
@media (max-width: 640px) {
  .cities-grid-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .city-photo-card {
    height: 180px;
    padding: 12px;
  }
  .city-card-content h4 {
    font-size: 1.1rem;
  }
}

/* --- FLOATING ACTION BUTTONS (WHATSAPP & QUICK INQUIRY) --- */
.floating-actions-stack {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1020;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}
.float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white !important;
  text-decoration: none;
  font-size: 1.6rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.float-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  animation: whatsappPulse 2.5s infinite;
}
.float-inquiry {
  background: linear-gradient(135deg, var(--accent) 0%, #ff521b 100%);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}
.float-btn:hover {
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.float-tooltip {
  position: absolute;
  right: 66px;
  background: #0f172a;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.float-btn:hover .float-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@keyframes whatsappPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 768px) {
  .floating-actions-stack {
    bottom: 84px;
    right: 16px;
    gap: 10px;
  }
  .float-btn {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }
  .float-tooltip {
    display: none;
  }
}

/* ================= COUNSELING BANNER ================= */
.counsel-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #0d9488 100%);
  border-radius: var(--radius-lg);
  padding: 50px;
  color: white;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--card-shadow-hover);
}
.counsel-banner h2 {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.counsel-form-card {
  background: white;
  padding: 28px;
  border-radius: var(--radius-md);
  color: var(--text-main);
}
.counsel-form-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary-dark);
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition);
}
.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

/* ================= EMI CALCULATOR ================= */
.calculator-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.calc-result-box {
  background: var(--primary-dark);
  color: white;
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
}
.calc-emi-val {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent);
  margin: 16px 0;
}

/* ================= STICKY COMPARE BAR ================= */
.compare-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--primary-dark);
  color: white;
  padding: 14px 0;
  z-index: 999;
  box-shadow: 0 -5px 25px rgba(0,0,0,0.3);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.compare-bar.active {
  transform: translateY(0);
}
.compare-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.compare-items {
  display: flex;
  gap: 12px;
}
.compare-chip {
  background: rgba(255,255,255,0.15);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.compare-chip i {
  cursor: pointer;
}

/* ================= FOOTER ================= */
.footer {
  background: var(--primary-dark);
  color: #94a3b8;
  padding: 70px 0 30px 0;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
}
.footer-col h4 {
  color: white;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  font-size: 0.88rem;
  color: #94a3b8;
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}


/* ================= TOP SCHOOLS GRID SECTION ================= */
.top-schools-section {
  background: #ffffff;
  padding: 50px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.top-schools-header {
  text-align: center;
  margin-bottom: 35px;
}

.top-schools-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0284c7;
  position: relative;
  display: inline-block;
}

.top-schools-header h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: #0284c7;
  margin: 8px auto 0 auto;
  border-radius: 2px;
}

/* top-schools-grid — defined above, no duplicate needed */

/* --- RESPONSIVE LAYOUT GRIDS & FORM ROWS --- */
.schools-layout-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
}
.school-details-layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
}
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* --- MOBILE STICKY BOTTOM NAVIGATION BAR --- */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 12px 10px 12px;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.2);
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  transition: all 0.2s ease;
  position: relative;
}
.bottom-nav-item i {
  font-size: 1.15rem;
  transition: transform 0.2s ease;
}
.bottom-nav-item.active {
  color: var(--accent);
  font-weight: 700;
}
.bottom-nav-item.active i {
  transform: translateY(-2px) scale(1.1);
  color: var(--accent);
}
.bottom-nav-call {
  background: linear-gradient(135deg, var(--accent) 0%, #ff521b 100%);
  color: white !important;
  border-radius: 12px;
  padding: 6px 0;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.35);
}

/* --- MOBILE HORIZONTAL QUICK FILTER CHIPS BAR --- */
.mobile-chip-scroll {
  display: none;
  background: #0b132a;
  padding: 10px 16px;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-chip-scroll::-webkit-scrollbar {
  display: none;
}
.mobile-chip-scroll::after {
  content: '';
  padding-right: 12px;
  flex-shrink: 0;
}
.chip-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.chip-item:active {
  transform: scale(0.94);
  background: var(--accent);
  color: white;
}

/* Tactile Mobile Touch Feedback */
@media (max-width: 991px) {
  .btn:active,
  .card:active,
  .top-search-card:active,
  .school-card:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
  }
}


/* ================= RESPONSIVE DESIGN & MOBILE OPTIMIZATIONS ================= */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Tablet & Mobile Navigation Drawer (< 991px) */
@media (max-width: 991px) {
  .mobile-toggle {
    display: inline-flex;
  }
  .nav-menu-wrapper {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    z-index: 1050;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.18);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav-menu-wrapper.active {
    transform: translateX(-320px);
  }
  .nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
  }
  .nav-drawer-header .brand-logo {
    font-size: 1.35rem;
  }
  .mobile-close {
    display: inline-flex;
  }
  .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 20px;
    margin-bottom: auto;
  }
  .nav-link {
    font-size: 1rem;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .nav-link.active::after {
    display: none;
  }
  .nav-drawer-cta {
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
  }
  .btn-block-mobile {
    width: 100%;
    justify-content: center;
  }
  .mobile-nav-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }
  .search-card {
    grid-template-columns: 1fr 1fr;
  }
  .counsel-banner, .calculator-card {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .schools-layout-grid,
  .school-details-layout-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 576px) {
  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}


/* Mobile Devices (< 768px) */
@media (max-width: 768px) {
  body {
    padding-bottom: 70px;
  }
  .mobile-bottom-nav,
  .mobile-chip-scroll {
    display: flex;
  }
  .container {
    padding: 0 16px;
  }
  .top-bar {
    padding: 8px 0;
  }
  .top-bar .container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .top-bar-info {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    font-size: 0.78rem;
  }
  .top-bar-divider {
    display: none;
  }
  .top-bar-links {
    justify-content: center;
    width: 100%;
  }
  .navbar .container {
    height: 68px;
  }
  .hero {
    padding: 40px 0 55px 0;
  }
  .hero h1 {
    font-size: 1.95rem;
    line-height: 1.3;
  }
  .hero p {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }
  .search-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 14px;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 30px;
  }
  .stat-card {
    padding: 14px 10px;
  }
  .top-schools-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .schools-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .top-searches-grid {
    grid-template-columns: 1fr;
  }
  .compare-hero-banner {
    padding: 40px 16px 70px 16px;
  }
  .compare-hero-banner h1 {
    font-size: 1.85rem;
  }
  .compare-hero-banner p {
    font-size: 0.92rem;
  }
  .compare-select-wrapper {
    margin-top: -40px;
    margin-bottom: 35px;
  }
  .compare-select-card {
    padding: 20px 14px;
  }
  
  /* Touch-scrollable Comparison Table Wrapper */
  .compare-table-wrapper, 
  .compare-matrix-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px;
    padding: 0 16px;
  }
  .compare-table {
    min-width: 650px;
  }
  
  /* Floating Sticky Compare Bar Mobile Layout */
  .compare-bar .container {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    text-align: center;
  }
  .compare-bar .container > div {
    justify-content: center;
    width: 100%;
  }
  .compare-bar .btn {
    flex: 1;
    justify-content: center;
  }
}

/* Small Smartphone Screen Adjustments (< 480px) */
@media (max-width: 480px) {
  .brand-logo {
    font-size: 1.3rem;
  }
  .brand-logo i {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
    border-radius: 9px;
  }
  .hero h1 {
    font-size: 1.7rem;
  }
  .btn {
    padding: 10px 18px;
    font-size: 0.88rem;
  }
  .compare-scale-watermark {
    font-size: 8rem;
  }
}


/* ================= COMPARE SCHOOL SELECTOR UI (MATCHING SCREENSHOT) ================= */
.compare-hero-banner {
  background: linear-gradient(rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.82)), url('https://images.unsplash.com/photo-1541829070764-84a7d30dd3f3?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 60px 0 90px 0;
  text-align: center;
  position: relative;
}

.compare-hero-banner h1 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.compare-hero-banner p {
  color: #cbd5e1;
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.compare-scale-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14rem;
  opacity: 0.08;
  color: white;
  pointer-events: none;
}

.compare-select-wrapper {
  margin-top: -60px;
  position: relative;
  z-index: 10;
  margin-bottom: 50px;
}

.compare-select-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  padding: 30px 24px;
  border: 1px solid #e2e8f0;
}

.compare-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 992px) {
  .compare-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .compare-cards-grid {
    grid-template-columns: 1fr;
  }
}

.compare-card-box {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 24px 16px;
  text-align: center;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 220px;
}

.add-circle-icon {
  width: 54px;
  height: 54px;
  border: 1.5px dashed #cbd5e1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #64748b;
  margin-bottom: 6px;
  transition: all 0.2s ease;
}

.compare-card-box:hover .add-circle-icon {
  border-color: #0284c7;
  color: #0284c7;
}

.compare-select-field {
  width: 100%;
  margin-top: 10px;
}

.compare-select-field select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #334155;
  background: #ffffff;
  font-weight: 500;
  outline: none;
}

.btn-compare-now {
  background: #28394c;
  color: #ffffff;
  font-weight: 700;
  padding: 12px 36px;
  border-radius: 4px;
  border: none;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-compare-now:hover {
  background: #1e293b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ================= SCHOOL DETAILS TABBED NAVIGATION ================= */
.school-details-tabs-bar {
  background: #ffffff;
  border-bottom: 2px solid #e2e8f0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 78px;
  z-index: 95;
}
.school-tabs-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.school-tabs-nav::-webkit-scrollbar {
  display: none;
}
.tab-item {
  font-size: 1.05rem;
  font-weight: 600;
  color: #475569;
  padding: 16px 4px;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.tab-item:hover {
  color: #ef4444;
}
.tab-item.active {
  color: #ef4444;
  font-weight: 700;
}
.tab-item.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #ef4444;
  border-radius: 3px 3px 0 0;
}

.school-tab-content {
  display: none;
}
.school-tab-content.active {
  display: block;
  animation: tabFadeIn 0.3s ease;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-item:hover img {
  transform: scale(1.08);
}

/* ================= CUSTOM DROPDOWN UI ================= */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}
.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  padding: 4px 0;
  user-select: none;
}
.custom-select-trigger .custom-arrow {
  font-size: 0.8rem;
  color: #94a3b8;
  transition: transform 0.25s ease;
}
.custom-select-wrapper.open .custom-arrow {
  transform: rotate(180deg);
  color: var(--accent);
}

.custom-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: -14px;
  right: -14px;
  min-width: 250px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(15, 23, 42, 0.08);
  padding: 8px;
  z-index: 999;
  display: none;
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.custom-dropdown-menu.show {
  display: block;
  animation: dropdownSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownSlideIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.custom-option {
  padding: 10px 14px;
  font-size: 0.93rem;
  font-weight: 600;
  color: #334155;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.18s ease;
}
.custom-option:hover {
  background: rgba(255, 107, 53, 0.08);
  color: var(--accent);
  transform: translateX(3px);
}
.custom-option.selected {
  background: linear-gradient(135deg, var(--accent) 0%, #ff521b 100%);
  color: #ffffff;
  font-weight: 700;
}
.custom-option.selected i {
  color: #ffffff !important;
}

/* ================= 1. OUR SERVICES SECTION (MATCHING SCREENSHOT 1) ================= */
.services-section {
  padding: 85px 0;
  background: #ffffff;
  text-align: center;
}
.services-header {
  margin-bottom: 50px;
}
.services-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0076a8;
  margin-bottom: 8px;
}
.services-header p {
  font-size: 1rem;
  color: #64748b;
  font-weight: 500;
}
.services-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 30px;
}
@media (max-width: 992px) {
  .services-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .services-grid-3 { grid-template-columns: 1fr; }
}
.service-item-card {
  padding: 24px;
  background: #ffffff;
  border-radius: 16px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.service-item-card:hover {
  transform: translateY(-5px);
}
.service-item-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #0076a8;
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}
.service-item-card:hover .service-item-icon {
  transform: scale(1.1);
}
.service-item-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0076a8;
  margin-bottom: 10px;
}
.service-item-card p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
  max-width: 320px;
}

/* ================= 2. SCHOOLS BY CITIES SECTION (MATCHING SCREENSHOT 2) ================= */
.cities-section {
  padding: 85px 0;
  background: #f8fafc;
  text-align: center;
}
.cities-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0076a8;
  margin-bottom: 36px;
}
.cities-grid-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
@media (max-width: 1200px) {
  .cities-grid-cards { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .cities-grid-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .cities-grid-cards { grid-template-columns: repeat(2, 1fr); }
}
.city-white-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
.city-white-box:hover {
  border-color: #0076a8;
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 118, 168, 0.12);
}
.city-white-box i {
  font-size: 2.4rem;
  color: #0076a8;
  margin-bottom: 14px;
}
.city-white-box h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}
.city-white-box span {
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
}

/* ================= 3. SCHOOLS BY CATEGORIES SECTION REDESIGN ================= */
.categories-section {
  padding: 85px 0;
  background: #ffffff;
}
.categories-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px auto;
}
.categories-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.categories-header p {
  font-size: 1.02rem;
  color: #64748b;
}

.categories-grid-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.cat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 28px 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
}
.cat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.card-coed:hover { border-color: #38bdf8; }
.card-girls:hover { border-color: #f472b6; }
.card-boys:hover { border-color: #3b82f6; }
.card-day:hover { border-color: #10b981; }
.card-intl:hover { border-color: #a855f7; }

.cat-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
  transition: transform 0.3s ease;
}
.cat-card:hover .cat-icon-box {
  transform: scale(1.1);
}

.card-coed .cat-icon-box { background: rgba(56, 189, 248, 0.12); color: #0284c7; }
.card-girls .cat-icon-box { background: rgba(244, 114, 182, 0.12); color: #db2777; }
.card-boys .cat-icon-box { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.card-day .cat-icon-box { background: rgba(16, 185, 129, 0.12); color: #059669; }
.card-intl .cat-icon-box { background: rgba(168, 85, 247, 0.12); color: #9333ea; }

.cat-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.card-coed .cat-badge { background: #e0f2fe; color: #0369a1; }
.card-girls .cat-badge { background: #fce7f3; color: #be185d; }
.card-boys .cat-badge { background: #dbeafe; color: #1d4ed8; }
.card-day .cat-badge { background: #d1fae5; color: #047857; }
.card-intl .cat-badge { background: #f3e8ff; color: #6b21a8; }

.cat-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}
.cat-card p {
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 22px;
  flex-grow: 1;
}

.cat-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
  transition: all 0.2s ease;
}
.cat-card:hover .cat-link-btn {
  color: var(--accent);
  transform: translateX(4px);
}

@media (max-width: 1200px) {
  .categories-grid-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .categories-grid-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (max-width: 480px) {
  .categories-grid-cards {
    grid-template-columns: 1fr;
  }
}

/* ================= 4. EXPERIENCE OF PARENTS WITH US (INFINITE CAROUSEL SLIDER) ================= */
.parents-experience-section {
  padding: 90px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.parents-exp-header h2 {
  font-size: 2.3rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}
.parents-exp-header p {
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 40px;
}

.testimonial-carousel-container {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 50px;
}

.testimonial-carousel-viewport {
  overflow: hidden;
  border-radius: 24px;
  padding: 10px 4px;
}

.testimonial-carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 calc(33.333% - 16px);
  min-width: calc(33.333% - 16px);
}

@media (max-width: 1024px) {
  .carousel-slide {
    flex: 0 0 calc(50% - 12px);
    min-width: calc(50% - 12px);
  }
}

@media (max-width: 640px) {
  .testimonial-carousel-container {
    padding: 0 10px;
  }
  .carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
  }
}

.parent-story-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  height: 100%;
}
.parent-story-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  border-color: rgba(255, 107, 53, 0.3);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: var(--primary-dark);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: all 0.25s ease;
  z-index: 10;
}
.carousel-prev { left: 0; }
.carousel-next { right: 0; }

.carousel-arrow:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.1);
}

.carousel-controls-bar {
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-counter-badge {
  background: #ffffff;
  color: var(--primary-dark);
  padding: 8px 22px;
  border-radius: 30px;
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.parent-stars {
  color: #fbbf24;
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.parent-quote {
  font-size: 0.98rem;
  color: #334155;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 24px;
}
.parent-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid #f1f5f9;
  padding-top: 18px;
}
.parent-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}
.parent-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}
.parent-detail {
  font-size: 0.84rem;
  color: #64748b;
  font-weight: 500;
}

/* ================= REAL-TIME LIVE SEARCH AUTOCOMPLETE UI ================= */
.live-search-container {
  position: relative;
}
.live-search-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  right: 0;
  width: 100%;
  max-height: 440px;
  overflow-y: auto;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  z-index: 1300;
  padding: 12px;
  display: none;
  scrollbar-width: thin;
}
.live-search-dropdown.show {
  display: block;
  animation: liveSearchSlideDown 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes liveSearchSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.live-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  text-decoration: none;
  color: white;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.live-search-item:last-child {
  border-bottom: none;
}
.live-search-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

.live-item-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  background: #ffffff;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.live-item-info {
  flex: 1;
  min-width: 0;
}
.live-item-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}
.live-item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: #cbd5e1;
  flex-wrap: wrap;
}
.live-meta-badge {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid rgba(56, 189, 248, 0.25);
}
.live-rating-badge {
  background: #fbbf24;
  color: #78350f;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.78rem;
  white-space: nowrap;
}

.live-item-fee {
  text-align: right;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.live-search-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  width: 100%;
  max-height: 480px;
  background: rgba(11, 19, 42, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
  z-index: 2500;
  overflow-y: auto;
  padding: 10px;
  display: none;
}
.live-search-dropdown.show {
  display: block;
  animation: liveSearchSlideDown 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.live-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-radius: 16px;
  text-decoration: none;
  color: white;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.live-search-item:last-child {
  border-bottom: none;
}
.live-search-item:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateX(6px);
  border-color: rgba(255, 107, 53, 0.3);
}

.live-item-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.live-item-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: contain;
  background: #ffffff;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}
.live-search-item:hover .live-item-logo {
  transform: scale(1.08);
}

.live-item-info {
  flex: 1;
  min-width: 0;
}
.live-item-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.3px;
}
.live-item-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
  color: #94a3b8;
}

.live-meta-city {
  color: #cbd5e1;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.live-meta-category {
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.76rem;
  font-weight: 700;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.live-item-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.live-rating-badge {
  background: #fbbf24;
  color: #78350f;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.82rem;
  box-shadow: 0 4px 10px rgba(251, 191, 36, 0.25);
  white-space: nowrap;
}

.live-fee-box {
  text-align: right;
}
.live-fee-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.live-fee-val {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--accent);
}

.live-arrow-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.25s ease;
}
.live-search-item:hover .live-arrow-icon {
  background: var(--accent);
  color: #ffffff;
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .live-search-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 12px 14px !important;
  }
  .live-item-left {
    width: 100% !important;
  }
  .live-item-right {
    width: 100% !important;
    justify-content: space-between !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-top: 8px !important;
  }
  .live-fee-box {
    text-align: left !important;
  }
}

.live-search-loading,
.live-search-empty {
  padding: 28px 20px;
  text-align: center;
  color: #cbd5e1;
  font-size: 0.92rem;
}

@media (max-width: 768px) {
  .search-card {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 16px !important;
    border-radius: 22px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3) !important;
  }
  .search-field {
    border-right: none !important;
    background: #f8fafc !important;
    padding: 12px 14px !important;
    border-radius: 14px !important;
    border: 1px solid #e2e8f0 !important;
  }
  .search-field input {
    font-size: 0.95rem !important;
  }
  .btn-hero-search {
    min-height: 52px !important;
    font-size: 1.05rem !important;
    border-radius: 14px !important;
  }
  .live-search-dropdown {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-height: 360px !important;
  }
}

/* ================= CAMPUS PHOTO GALLERY & LIGHTBOX MODAL ================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-item {
  position: relative;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  border: 1px solid #e2e8f0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #ffffff;
  font-size: 2rem;
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* LIGHTBOX MODAL */
.gallery-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.gallery-lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 19, 0.92);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}
.lightbox-container {
  position: relative;
  z-index: 3001;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
}
.lightbox-content img {
  max-width: 85vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.15);
  animation: lightboxZoomIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes lightboxZoomIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.lightbox-caption {
  margin-top: 16px;
  color: #f8fafc;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 20px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-close-btn {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 3002;
}
.lightbox-close-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.1);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 3002;
}
.lightbox-prev { left: -70px; }
.lightbox-next { right: -70px; }

@media (max-width: 900px) {
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}
.lightbox-nav-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.1);
}

/* ================= 52 PARENT TESTIMONIALS BATCH LOADER ================= */
.testimonial-hidden {
  display: none !important;
}

.testimonial-fade-in {
  animation: testimonialFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes testimonialFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.load-more-testimonials-wrapper {
  margin-top: 45px;
  text-align: center;
}
.btn-load-more {
  padding: 14px 32px;
  border-radius: 40px;
  font-size: 1rem;
  font-weight: 800;
  border: 2px solid var(--accent);
  color: var(--accent);
  background: white;
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-load-more:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(255, 107, 53, 0.35);
}

.reviews-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 14px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* ==========================================================================
   COMPREHENSIVE FRONTEND MOBILE RESPONSIVE OVERHAUL
   Covers all pages: index, schools, school-details, compare, blog, articles
   ========================================================================== */

/* ── TABLET (≤ 991px) ────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .section { padding: 55px 0; }
  .section-title h2 { font-size: 1.85rem; }

  /* Hero */
  .hero { padding: 55px 0 70px; }
  .hero h1 { font-size: 2.4rem; letter-spacing: -0.5px; }
  .hero-subtext { font-size: 1.05rem; }
  .hero-trust-bar { gap: 14px; margin-top: 36px; }
  .trust-divider { display: none; }

  /* Search card — 2 cols on tablet */
  .search-card { grid-template-columns: 1fr 1fr !important; gap: 10px; padding: 14px; }
  .search-field { border-right: none; border-bottom: 1px solid #e2e8f0; padding: 10px 14px; }
  .search-field:last-of-type { border-bottom: none; }
  .search-btn-wrapper { grid-column: span 2; }

  /* School grid */
  .school-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  /* Category grid */
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* Sidebar layouts */
  .schools-layout-grid { grid-template-columns: 1fr; gap: 20px; }
  .school-details-layout-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ── MOBILE (≤ 768px) ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }
  .section-title { margin-bottom: 28px; }
  .section-title h2 { font-size: 1.6rem; line-height: 1.3; }
  .section-title p { font-size: 0.93rem; }

  /* Top bar — stack on mobile */
  .top-bar .container { flex-direction: column; gap: 8px; text-align: center; }
  .top-bar-info { flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 0.78rem; }
  .top-bar-divider { display: none; }
  .top-bar-links { justify-content: center; }

  /* Navbar height */
  .navbar .container { height: 64px; }

  /* Hero */
  .hero { padding: 40px 0 55px; }
  .hero h1 { font-size: 1.95rem; line-height: 1.28; }
  .hero-subtext { font-size: 0.95rem; margin-bottom: 24px; }
  .hero-badge { font-size: 0.82rem; padding: 6px 16px; margin-bottom: 20px; }
  .popular-chips { gap: 8px; margin-top: 22px; }
  .chip { padding: 6px 14px; font-size: 0.84rem; }
  .hero-trust-bar { flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; padding-top: 18px; }

  /* Search card — single column */
  .search-card { grid-template-columns: 1fr !important; gap: 10px; padding: 16px 14px; border-radius: 16px; }
  .search-field { border-right: none; border-bottom: 1px solid #e2e8f0; border-radius: 10px; }
  .search-field:last-of-type { border-bottom: none; }
  .search-btn-wrapper { grid-column: unset; }
  .btn-hero-search { min-height: 52px; font-size: 1rem; border-radius: 12px; }

  /* Top schools grid */
  .top-schools-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .top-school-card { padding: 18px 14px 14px; border-radius: 14px; }
  .top-school-logo-ring { width: 56px; height: 56px; margin-bottom: 12px; }
  .top-school-name { font-size: 0.88rem; min-height: 2.4rem; }

  /* School cards */
  .school-grid { grid-template-columns: 1fr !important; gap: 18px; }
  .school-card-footer { grid-template-columns: 1fr 1fr; gap: 8px; }
  .browse-all-grid-card { min-height: 260px; }

  /* Category grid */
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .category-card { padding: 20px 12px; }
  .category-icon { width: 50px; height: 50px; font-size: 1.4rem; }
  .category-card h3 { font-size: 0.98rem; }

  /* Services */
  .services-section { padding: 50px 0; }

  /* School detail tabs — horizontal scroll */
  .school-tab-nav { overflow-x: auto; flex-wrap: nowrap !important; white-space: nowrap; gap: 6px; padding-bottom: 4px; }
  .school-tab-nav::-webkit-scrollbar { height: 3px; }
  .tab-btn { padding: 10px 16px !important; font-size: 0.84rem !important; flex-shrink: 0; }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }

  /* Compare */
  .compare-select-cards-row { grid-template-columns: 1fr !important; gap: 16px; }

  /* Footer */
  .footer { padding: 44px 0 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; margin-bottom: 30px; }
  .footer-brand h3 { font-size: 1.3rem; }
  .footer-bottom { font-size: 0.8rem; padding-top: 18px; }

  /* Forms */
  .form-row-2col { grid-template-columns: 1fr !important; gap: 12px; }

  /* Article pages */
  .article-layout-grid { grid-template-columns: 1fr !important; }
  .article-sidebar { display: none; }

  /* Counseling banner */
  .counsel-banner { grid-template-columns: 1fr !important; text-align: center; gap: 20px; }

  /* School specs */
  .specs-grid-4col { grid-template-columns: 1fr 1fr !important; gap: 14px; }

  /* Buttons */
  .btn { padding: 11px 20px; font-size: 0.9rem; }
}

/* ── SMALL PHONES (≤ 480px) ──────────────────────────────────────────────── */
@media (max-width: 480px) {
  .hero h1 { font-size: 1.68rem; }
  .hero-subtext { font-size: 0.88rem; }

  /* Top schools — single column on tiny screens */
  .top-schools-grid { grid-template-columns: 1fr !important; gap: 10px !important; }

  /* Category grid */
  .category-grid { grid-template-columns: 1fr; }

  /* Gallery */
  .gallery-grid { grid-template-columns: 1fr !important; }

  /* Specs grid */
  .specs-grid-4col { grid-template-columns: 1fr !important; }

  /* School card footer buttons stack */
  .school-card-footer { grid-template-columns: 1fr !important; gap: 8px; }

  /* Brand logo */
  .brand-logo { font-size: 1.22rem; }
  .brand-logo i { width: 34px; height: 34px; font-size: 1.1rem; border-radius: 9px; }

  /* Section titles */
  .section-title h2 { font-size: 1.4rem; }

  /* Buttons */
  .btn { padding: 10px 16px; font-size: 0.86rem; }

  /* Footer */
  .footer-brand h3 { font-size: 1.15rem; }

  /* Bottom nav */
  .bottom-nav-item { font-size: 0.66rem; }
  .bottom-nav-item i { font-size: 1.08rem; }
}

/* ── TOUCH DEVICE IMPROVEMENTS ───────────────────────────────────────────── */
@media (hover: none) and (pointer: coarse) {
  /* Disable hover lift effects on touch — use :active instead */
  .school-card:hover,
  .top-school-card:hover,
  .category-card:hover,
  .browse-all-grid-card:hover { transform: none; }

  /* Larger minimum tap targets (WCAG 2.5.5) */
  .nav-link, .btn, .bottom-nav-item, .tab-btn, .chip, .admin-nav-item {
    min-height: 44px;
    min-width: 44px;
  }

  /* Satisfying press feedback */
  .school-card:active { transform: scale(0.98); transition: transform 0.1s ease; }
  .top-school-card:active { transform: scale(0.96); transition: transform 0.1s ease; }
  .btn:active { transform: scale(0.97); transition: transform 0.1s ease; }
  .chip:active { transform: scale(0.94); background: var(--accent); color: white; }
  .category-card:active { transform: scale(0.97); }
}




