﻿/* ═══════════════════════════════════════════════════════════════════════════
   ClassHud - Main Stylesheet
   ═══════════════════════════════════════════════════════════════════════════ */

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

:root {
  --primary:   #DC2626;
  --primary-d: #B91C1C;
  --primary-l: #FEF2F2;
  --accent:    #DC2626;
  --accent-d:  #B91C1C;
  --success:   #10b981;
  --danger:    #ef4444;
  --star:      #f59e0b;
  --gray-50:   #f8fafc;
  --gray-100:  #f1f5f9;
  --gray-200:  #e2e8f0;
  --gray-300:  #cbd5e1;
  --gray-500:  #64748b;
  --gray-700:  #334155;
  --gray-900:  #0f172a;
  --radius:    0.75rem;
  --ch-radius-pill: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow:    0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--gray-900);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}
body.page-inner {
  padding-top: 70px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
html, body { overflow-x: hidden; max-width: 100%; }

/* ─── LAYOUT ────────────────────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section-sm { padding: 2rem 0; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────────────────────────── */
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
.text-sm  { font-size: 0.875rem; }
.text-xs  { font-size: 0.75rem; }
.text-lg  { font-size: 1.125rem; }
.text-muted { color: var(--gray-500); }
.text-primary { color: var(--primary); }
.text-accent  { color: var(--accent); }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }

/* ─── BUTTONS ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1.4rem; border-radius: 0.5rem;
  font-weight: 600; font-size: 0.9rem;
  transition: all .18s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-accent  { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-d); }
.btn-success { background: var(--success); color: #fff; }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1da851; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; border-radius: 0.75rem; }
.btn-block { width: 100%; justify-content: center; }

/* ─── NAV ────────────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 50% !important;
  transform: translateX(-50%);
  width: 100% !important;
  max-width: 100% !important;
  z-index: 100;
  background: rgba(255, 255, 255, 0);
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 1rem;
}
.navbar-scrolled {
  top: 16px;
  width: 90% !important;
  max-width: 1200px !important;
  background: rgba(255, 255, 255, 0.93) !important;
  backdrop-filter: blur(16px);
  border: 1px solid var(--gray-200) !important;
  border-radius: var(--ch-radius-pill) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03) !important;
  padding: 0 24px !important;
}
.navbar-scrolled .container {
  padding: 0 !important;
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; gap: 1rem;
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.navbar-scrolled .navbar-inner {
  height: 60px;
}
.navbar-brand img { height: 44px; width: auto; object-fit: contain; }
.navbar-links { display: flex; gap: 2rem; align-items: center; }
.navbar-links a { font-weight: 500; font-size: .95rem; color: var(--gray-700); transition: color .15s; }
.navbar-links a:hover { color: var(--primary); }
.navbar-cta { display: flex; gap: 0.75rem; align-items: center; }
.btn-login { font-weight: 600; color: var(--gray-700); font-size: .9rem; padding: .45rem .75rem; }
.btn-register { background: var(--accent); color: #fff; border-radius: .5rem; padding: .5rem 1.1rem; font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: .35rem; transition: background .15s; }
.btn-register:hover { background: var(--accent-d); color: #fff; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { width: 22px; height: 2px; background: var(--gray-700); display: block; border-radius: 2px; transition: all .2s; }
.mobile-menu-wrap {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  z-index: 99;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  /* slide animation */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu-wrap.open {
  max-height: 80vh;
  opacity: 1;
  pointer-events: auto;
  overflow-y: auto;
}
.mobile-menu { display: flex; flex-direction: column; padding: 0.4rem 0 0.6rem; }
.mobile-menu > a {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 20px;
  font-size: 15px; font-weight: 500; color: #1f2937; text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
  transition: background .15s ease, color .15s ease, padding-left .15s ease;
}
.mobile-menu > a:hover, .mobile-menu > a:active { background: #fef2f2; color: var(--primary, #DC2626); padding-left: 24px; }
.mobile-menu > a i { width: 20px; text-align: center; font-size: 15px; color: #9ca3af; flex-shrink: 0; }
.mobile-menu > a:hover i { color: var(--primary, #DC2626); }
.mobile-menu > a[style*="var(--primary)"], .mobile-menu > a[style*="var(--ch-red)"] { color: var(--primary, #DC2626) !important; font-weight: 600; }
.mobile-menu > a[style*="var(--primary)"] i, .mobile-menu > a[style*="var(--ch-red)"] i { color: var(--primary, #DC2626); }
.mobile-menu .btn-register {
  margin: 12px 20px 4px; padding: 12px; justify-content: center;
  background: var(--primary, #DC2626); color: #fff !important;
  border-radius: 10px; font-weight: 600; border-bottom: none;
}
.mobile-menu .btn-register:hover { background: #b91c1c; color: #fff !important; padding-left: 12px; }
/* Hamburger → X animation */
.hamburger span { transition: transform .25s cubic-bezier(.16,1,.3,1), opacity .2s ease; transform-origin: center; }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO ───────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 130px 0 80px;
  background: linear-gradient(135deg, #F0F4FA 0%, #FFFFFF 65%);
  overflow: visible;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.hero-main-row {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.hero-left {
  flex: 0 0 55%;
  max-width: 650px;
}
.hero-right {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 540px;
}
.hero-illustration {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  z-index: 2;
}

/* Floating badge cards */
.hero-float-card {
  position: absolute;
  z-index: 5;
  background: #fff;
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-float-card.card-ai {
  top: 10%;
  right: -5%;
  animation: floatCard 3s ease-in-out infinite alternate;
}
.hero-float-card.card-students {
  bottom: 5%;
  right: -5%;
  animation: floatCard-reverse 3.5s ease-in-out infinite alternate;
}

.float-icon {
  width: 40px;
  height: 40px;
  background: #F5F3FF;
  color: #7C3AED;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.float-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 500;
  line-height: 1.2;
}
.float-val {
  font-size: 0.875rem;
  font-weight: 700;
  color: #10B981;
}
.match-bar {
  height: 4px;
  background: var(--gray-200);
  border-radius: var(--ch-radius-pill);
  overflow: hidden;
  margin-top: 4px;
  width: 80px;
}
.match-fill {
  height: 100%;
  background: #10B981;
  border-radius: var(--ch-radius-pill);
}

@keyframes floatCard {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}
@keyframes floatCard-reverse {
  0% { transform: translateY(0); }
  100% { transform: translateY(8px); }
}

.hero-ill-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Hero text */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #15803d;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: #0F172A;
  letter-spacing: -.03em;
  margin-bottom: .875rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
  display: inline-block;
}
.hero h1 em::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0,7 C30,2 70,2 100,7' stroke='%23DC2626' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center bottom;
  background-size: 100% 100%;
}
.hero-sub {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 1.75rem;
  max-width: 580px;
}

/* Stats row */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 56px !important;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 15px;
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-700);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.stat-content {
  display: flex;
  flex-direction: column;
  margin-top: 3px;
}
.stat-val {
  font-size: 1.35rem;
  font-weight: 850;
  color: var(--gray-900);
  line-height: 1.2;
}
.stat-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-500);
  margin-top: 0;
}
.stat-v-divider {
  width: 1px;
  height: 36px;
  background-color: var(--gray-200);
}

/* ─── SEARCH BAR ──────────────────────────────────────────────────────────────── */
.search-container {
  background: #fff;
  padding: 10px;
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.08), 0 1px 3px rgb(0 0 0 / 0.02);
  border: 1px solid var(--gray-200);
  margin-top: 10px;
}
.search-form {
  display: flex;
  align-items: center;
  width: 100%;
}
.search-field {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  flex: 1;
  min-width: 0;
}
.search-divider {
  width: 1px;
  height: 40px;
  background-color: var(--gray-200);
}
.search-icon-box {
  width: 42px;
  height: 42px;
  background: var(--gray-100);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  flex-shrink: 0;
  margin-right: 12px;
}
.search-input-wrap {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.search-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-500);
  margin-bottom: 2px;
  text-transform: none;
  letter-spacing: normal;
}
.search-input {
  border: none !important;
  outline: none !important;
  background: transparent !important;
  padding: 0 !important;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-900);
  width: 100%;
}
.search-input::placeholder {
  color: var(--gray-300);
}
.search-select {
  border: none !important;
  outline: none !important;
  background: transparent !important;
  padding: 0 20px 0 0 !important;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-900);
  width: 100%;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 14px;
}
.btn-search-new {
  border-radius: 1rem !important;
  padding: 14px 28px !important;
  font-size: 1rem;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-left: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  transition: all 0.2s ease;
}
.btn-search-new:hover {
  background: var(--primary-d);
}
.geo-btn-wrapper {
  margin-top: 25px;
  margin-bottom: 0px;
  display: flex;
  justify-content: flex-start;
  width: 100%;
}
.geo-btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  outline: none;
}
.geo-btn-pill:hover {
  background: var(--primary-l);
  color: var(--primary);
}

/* Custom Dropdown select */
.custom-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  max-height: 280px;
  overflow-y: auto;
  margin-top: 8px;
  opacity: 1;
  transition: opacity 0.2s ease;
}
.custom-dropdown-item {
  padding: 12px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-align: left;
}
.custom-dropdown-item:hover {
  background: var(--primary-l);
  color: var(--primary);
}
.custom-dropdown-item.active {
  background: var(--primary);
  color: #fff;
}
.geo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--primary);
  transition: all .15s;
}
.geo-btn:hover { background: var(--primary); color: #fff; }

/* ─── INSTITUTE CARD ──────────────────────────────────────────────────────────── */
.institute-card {
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.03);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.institute-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 10px 10px -5px rgba(15, 23, 42, 0.03);
  border-color: rgba(220, 38, 38, 0.25);
}
.card-cover {
  height: 150px;
  background: var(--gray-100);
  overflow: hidden;
  position: relative;
}
.card-cover-img-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.institute-card:hover .card-cover img {
  transform: scale(1.08);
}
.card-cover-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-300);
  font-size: 2.5rem;
}
/* Logo overlay on cover image */
.card-logo-overlay {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #fff;
  border: 2px solid rgba(255,255,255,0.95);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.card-logo-overlay img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.institute-card:hover .card-logo-overlay {
  transform: scale(1.08);
}
/* ── Premium verified badge on search/listing cards ──────────────── */
.card-verified-badge {
  position: absolute; top: 10px; right: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px 4px 6px;
  border-radius: 999px;
  font-size: 10px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  color: #fff; z-index: 5; white-space: nowrap;
  overflow: hidden;
}
/* Shimmer sweep */
.card-verified-badge::after {
  content: '';
  position: absolute; top: 0; left: -70%;
  width: 45%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.32), transparent);
  transform: skewX(-18deg);
  transition: left .5s ease;
}
.card-verified-badge:hover::after { left: 125%; }

.cvb--blue  { background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%); box-shadow: 0 2px 10px rgba(37,99,235,.40); }
.cvb--green { background: linear-gradient(135deg, #15803d 0%, #22c55e 100%); box-shadow: 0 2px 10px rgba(22,163,74,.38); }
.card-distance {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 5;
}
.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card-logo-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}
.card-logo {
  width: 52px;
  height: 52px;
  border-radius: 0.75rem;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  object-fit: contain;
  background: #fff;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.institute-card:hover .card-logo {
  transform: scale(1.05);
}
.card-logo-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 0.75rem;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.35rem;
  flex-shrink: 0;
}
.card-title {
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.4;
  margin-bottom: 0.3rem;
  color: var(--gray-900);
  letter-spacing: -0.01eem;
}
.card-title a {
  transition: color 0.2s ease;
}
.card-title a:hover {
  color: var(--primary);
}
.card-subtitle {
  font-size: 0.8rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 500;
  margin-top: 1px;
}
.card-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
  margin-bottom: 0.85rem;
  line-height: 1;
}
.stars {
  color: var(--star);
  font-size: 0.9rem;
  letter-spacing: -0.5px;
}
.rating-val {
  font-weight: 750;
  font-size: 0.88rem;
  color: var(--gray-900);
  margin-left: 2px;
}
.rating-cnt {
  color: var(--gray-400);
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}
.rating-cnt::before {
  content: "•";
  margin-right: 6px;
  color: var(--gray-300);
  font-size: 0.85rem;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.tag {
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.tag-primary {
  background: rgba(220, 38, 38, 0.06);
  color: var(--primary);
}
.tag-success {
  background: #e6fbf2;
  color: #047857;
}
.tag-accent {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.15);
}
.card-fees {
  font-size: 0.85rem;
  color: var(--gray-700);
  margin-bottom: 0.75rem;
}
.card-fees strong {
  color: var(--primary);
}
.card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  align-items: center;
}
.card-actions .btn {
  flex: 1;
  font-size: 0.8rem;
  font-weight: 700;
  height: 36px;
  padding: 0 0.5rem;
  border-radius: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: none;
  white-space: nowrap;
}
.card-actions .btn-primary {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: #fff;
}
.card-actions .btn-primary:hover {
  background: var(--primary-d);
  border-color: var(--primary-d);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}
.card-actions .btn-wa {
  background: #e6fbf2;
  border: 1px solid #a7f3d0;
  color: #047857;
}
.card-actions .btn-wa:hover {
  background: #d1fae5;
  border-color: #34d399;
  color: #065f46;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}
.compare-btn {
  width: 36px;
  height: 36px;
  border-radius: 0.6rem;
  border: 1px solid var(--gray-200);
  background: #fff;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
  cursor: pointer;
}
.compare-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-l);
  transform: translateY(-2px);
}
.compare-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ─── SECTION HEADER ──────────────────────────────────────────────────────────── */
.section-header { margin-bottom: 2rem; }
.section-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); margin-bottom: 0.5rem; }
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p  { color: var(--gray-500); }
.section-header-row { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }

/* ─── CATEGORY GRID ──────────────────────────────────────────────────────────── */
.category-card {
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.02), 0 2px 4px -2px rgb(0 0 0 / 0.02);
}
.category-card:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 20px -8px rgba(220, 38, 38, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
  transform: translateY(-5px);
  background: #FFF5F5;
}
.cat-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  transition: transform 0.3s ease;
}
.category-card:hover .cat-icon {
  transform: scale(1.15) rotate(3deg);
}
.cat-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gray-900);
  transition: color 0.2s ease;
}
.category-card:hover .cat-name {
  color: var(--primary);
}

/* ─── CITY CHIPS ──────────────────────────────────────────────────────────────── */
.city-chips { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.city-chip {
  display: flex; flex-direction: column; align-items: center;
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 0.75rem 1.25rem; min-width: 90px; transition: all .15s;
}
.city-chip:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.city-chip-name { font-weight: 600; font-size: 0.85rem; }
.city-chip-state { font-size: 0.7rem; color: var(--gray-500); }

/* ─── FILTERS SIDEBAR ────────────────────────────────────────────────────────── */
.search-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
.filter-panel { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.25rem; position: sticky; top: 80px; }
.filter-section { margin-bottom: 1.5rem; }
.filter-section h4 { margin-bottom: 0.75rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: .5px; color: var(--gray-500); }
.filter-section label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; margin-bottom: 0.5rem; cursor: pointer; }
.filter-section input[type=checkbox], .filter-section input[type=radio] { accent-color: var(--primary); }
.range-row { display: flex; gap: 0.5rem; }
.range-row input { width: 100%; border: 1px solid var(--gray-300); border-radius: 0.4rem; padding: 0.4rem 0.5rem; font-size: 0.85rem; }
.range-row input:focus { outline: none; border-color: var(--primary); }
.filter-select { width: 100%; border: 1px solid var(--gray-300); border-radius: 0.4rem; padding: 0.5rem; font-size: 0.9rem; }
.filter-select:focus { outline: none; border-color: var(--primary); }
.star-filter label { cursor: pointer; }
.star-filter label:hover .stars { color: var(--accent); }
.results-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem; flex-wrap: wrap; gap: 0.5rem;
}
.results-count { color: var(--gray-500); font-size: 0.9rem; }
.view-toggle { display: flex; gap: 0.25rem; }
.view-btn {
  padding: 0.4rem 0.6rem; border: 1px solid var(--gray-300); border-radius: 0.4rem;
  color: var(--gray-500); transition: all .15s;
}
.view-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ─── MAP ─────────────────────────────────────────────────────────────────────── */
#map { height: 560px; border-radius: var(--radius); border: 1px solid var(--gray-200); }
.map-hidden { display: none; }

/* ─── INSTITUTE PROFILE ──────────────────────────────────────────────────────── */
.profile-hero {
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  padding: 2rem 0;
  border-bottom: 1px solid var(--gray-200);
}
.profile-hero-inner { display: flex; gap: 1.5rem; align-items: flex-start; }
.profile-logo { width: 80px; height: 80px; border-radius: 1rem; border: 3px solid #fff; object-fit: contain; background: #fff; box-shadow: var(--shadow); flex-shrink: 0; }
.profile-logo-placeholder { width: 80px; height: 80px; border-radius: 1rem; border: 3px solid #fff; background: #eef2ff; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--primary); flex-shrink: 0; }
.profile-name { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.35rem; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.badge-verified { background: var(--success); color: #fff; padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; display: inline-flex; align-items: center; gap: 0.3rem; }
.profile-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.profile-body { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; padding-top: 2rem; }
.profile-main { min-width: 0; }
.profile-sidebar { position: sticky; top: 80px; }
.sticky-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm); }
.profile-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--gray-200); margin-bottom: 1.5rem; overflow-x: auto; }
.tab-btn { padding: 0.75rem 1.25rem; font-weight: 600; font-size: 0.9rem; color: var(--gray-500); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .15s; white-space: nowrap; }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ─── GALLERY ─────────────────────────────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; border-radius: var(--radius); overflow: hidden; }
.gallery-grid img { width: 100%; height: 180px; object-fit: cover; cursor: pointer; transition: opacity .15s; }
.gallery-grid img:hover { opacity: .85; }

/* ─── REVIEWS ─────────────────────────────────────────────────────────────────── */
.review-card { padding: 1.25rem; border: 1px solid var(--gray-200); border-radius: var(--radius); margin-bottom: 1rem; }
.review-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.reviewer-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-d)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.reviewer-name { font-weight: 600; }
.review-date { font-size: 0.75rem; color: var(--gray-500); }
.review-text { color: var(--gray-700); font-size: 0.9rem; line-height: 1.6; }
.review-photo img { max-width: 200px; border-radius: 0.5rem; margin-top: 0.75rem; }
.rating-bar-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.4rem; }
.rating-bar-label { width: 20px; font-size: 0.8rem; font-weight: 600; text-align: right; }
.rating-bar-track { flex: 1; height: 8px; background: var(--gray-200); border-radius: 999px; overflow: hidden; }
.rating-bar-fill { height: 100%; background: var(--accent); border-radius: 999px; }
.rating-summary-big { font-size: 3rem; font-weight: 800; color: var(--gray-900); line-height: 1; }

/* ─── SUBMIT REVIEW FORM ─────────────────────────────────────────────────────── */
.star-picker { display: flex; gap: 0.25rem; flex-direction: row-reverse; justify-content: flex-end; }
.star-picker input { display: none; }
.star-picker label { font-size: 1.75rem; color: var(--gray-300); cursor: pointer; transition: color .1s; }
.star-picker input:checked ~ label,
.star-picker label:hover,
.star-picker label:hover ~ label { color: var(--accent); }

/* ─── COURSE CARD ─────────────────────────────────────────────────────────────── */
.course-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 0.75rem; transition: all .15s; }
.course-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.course-name { font-weight: 700; margin-bottom: 0.25rem; }
.course-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }
.course-fees { color: var(--primary); font-weight: 700; }

/* ─── COMPARE TABLE ──────────────────────────────────────────────────────────── */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--gray-200); text-align: left; vertical-align: top; }
.compare-table th:first-child, .compare-table td:first-child { color: var(--gray-500); font-size: 0.85rem; font-weight: 600; width: 160px; background: var(--gray-50); }
.compare-table thead th { font-size: 0.95rem; font-weight: 700; background: var(--gray-50); }
.compare-winner { color: var(--success); font-weight: 700; }
.compare-empty { text-align: center; padding: 3rem; color: var(--gray-500); }

/* ─── AI MATCH ────────────────────────────────────────────────────────────────── */
.ai-form { background: #fff; border: 1px solid var(--gray-200); border-radius: 1rem; padding: 2rem; max-width: 680px; margin: 0 auto; box-shadow: var(--shadow); }
.ai-form .form-group { margin-bottom: 1.25rem; }
.ai-form label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.9rem; }
.ai-form input, .ai-form select { width: 100%; border: 1px solid var(--gray-300); border-radius: 0.5rem; padding: 0.6rem 0.875rem; font-size: 0.95rem; transition: border-color .15s; }
.ai-form input:focus, .ai-form select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.12); }
.ai-results { margin-top: 2rem; }
.match-score-badge { background: linear-gradient(135deg, var(--primary), var(--primary-d)); color: #fff; border-radius: 999px; padding: 0.25rem 0.75rem; font-size: 0.8rem; font-weight: 700; }

/* ─── SEO PAGE ────────────────────────────────────────────────────────────────── */
.seo-hero { background: linear-gradient(135deg, #eef2ff, #f5f3ff); padding: 3rem 0 2rem; text-align: center; border-bottom: 1px solid var(--gray-200); }
.seo-hero h1 { margin-bottom: 0.75rem; }
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--gray-500); flex-wrap: wrap; margin-bottom: 1rem; }
.breadcrumb a { color: var(--primary); }
.breadcrumb-sep { color: var(--gray-300); }
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius); margin-bottom: 0.5rem; overflow: hidden; }
.faq-q { padding: 1rem 1.25rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none; }
.faq-q::after { content: '+'; font-size: 1.25rem; color: var(--primary); transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { padding: 0 1.25rem 1rem; color: var(--gray-700); font-size: 0.9rem; display: none; }
.faq-item.open .faq-a { display: block; }

/* ─── FORMS ──────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.9rem; }
.form-control {
  width: 100%; border: 1px solid var(--gray-300); border-radius: 0.5rem;
  padding: 0.6rem 0.875rem; font-size: 0.95rem; transition: border-color .15s;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.12); }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-error { color: var(--danger); font-size: 0.8rem; margin-top: 0.25rem; }
.alert { padding: 0.875rem 1.25rem; border-radius: 0.5rem; margin-bottom: 1rem; font-size: 0.9rem; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger  { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ─── MAP CARD POPUP ──────────────────────────────────────────────────────────── */
/* ── Map popup card ─────────────────────────────────────────── */
.mp-wrap .leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.18); padding: 0; overflow: hidden; }
.mp-wrap .leaflet-popup-content { margin: 0; }
.mp-wrap .leaflet-popup-tip { box-shadow: 0 12px 32px rgba(0,0,0,.18); }
.map-popup { padding: 14px 14px 13px; font-family: inherit; }
.map-popup .mp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.map-popup .mp-ico {
  width: 40px; height: 40px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #DC2626, #b91c1c); color: #fff; font-size: 17px;
  box-shadow: 0 4px 10px -2px rgba(220,38,38,.5);
}
.map-popup .mp-verified { font-size: 11px; font-weight: 700; color: #2563eb; display: inline-flex; align-items: center; gap: 4px; }
.map-popup .mp-name { font-size: 14.5px; font-weight: 700; color: #111827; line-height: 1.3; margin: 0 0 5px; }
.map-popup .mp-meta { font-size: 12px; color: #6b7280; display: flex; align-items: center; gap: 5px; margin-bottom: 8px; }
.map-popup .mp-meta i { color: #DC2626; }
.map-popup .mp-rating { font-size: 12.5px; color: #374151; display: flex; align-items: center; gap: 5px; margin-bottom: 11px; }
.map-popup .mp-stars { color: #f59e0b; letter-spacing: 1px; }
.map-popup .mp-stars-off { color: #e5e7eb; }
.map-popup .mp-reviews { color: #9ca3af; }
.map-popup .mp-new { color: #9ca3af; font-style: italic; margin-bottom: 11px; }
.map-popup .mp-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: #DC2626; color: #fff; font-size: 13px; font-weight: 600;
  padding: 9px 12px; border-radius: 9px; text-decoration: none; transition: background .15s;
}
.map-popup .mp-btn:hover { background: #b91c1c; }
.map-popup .mp-btn i { font-size: 11px; }

/* ─── PAGINATION ────────────────────────────────────────────────────────────── */
.pagination { display: flex; gap: 0.25rem; flex-wrap: wrap; align-items: center; justify-content: center; margin-top: 2rem; }
.page-nav { font-weight: 600; }
.page-ellipsis { padding: 0.45rem 0.5rem; color: var(--gray-400); font-size: 0.875rem; }
.page-btn {
  padding: 0.45rem 0.875rem; border: 1px solid var(--gray-200); border-radius: 0.4rem;
  font-size: 0.875rem; color: var(--gray-700); transition: all .15s;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-btn.disabled { opacity: 0.4; pointer-events: none; }

/* ─── FOOTER ──────────────────────────────────────────────────────────────────── */
.footer {
  background: #fbfbfb;
  color: var(--gray-700);
  padding: 5rem 0 2.5rem;
  border-top: 1px solid var(--gray-200);
}
.footer-grid {
  display: grid;
  grid-template-columns: 320px 1fr 1fr 1fr 340px;
  gap: 2rem;
  margin-bottom: 3.5rem;
}
.footer-brand-col {
  display: flex;
  flex-direction: column;
}
.footer-logo-wrap {
  margin-bottom: 1rem;
}
.footer-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.footer-tagline {
  font-size: 0.72rem;
  color: var(--gray-500);
  font-weight: 600;
  margin-top: 4px;
}
.footer-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}

/* Feature badges on left */
.footer-feature-badges {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}
.footer-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}
.footer-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e293b;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}
.footer-badge-label {
  font-size: 0.62rem;
  font-weight: 650;
  color: var(--gray-500);
  line-height: 1.2;
}

/* Link columns */
.footer-link-col {
  display: flex;
  flex-direction: column;
}
.footer-title-red {
  color: #1e293b;
  font-size: 0.95rem;
  font-weight: 750;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 6px;
  text-transform: none;
  letter-spacing: normal;
}
.footer-title-red::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2.5px;
  background-color: var(--primary);
  border-radius: 99px;
}
.footer-link-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-link-col ul li {
  margin-bottom: 0.75rem;
}
.footer-link-col ul a {
  color: var(--gray-500);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
.footer-link-col ul a:hover {
  color: var(--primary);
  padding-left: 3px;
}

/* Newsletter Card */
.footer-newsletter-col {
  display: flex;
  justify-content: flex-end;
}
.newsletter-card {
  background: #f9fafb;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  width: 100%;
  max-width: 340px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.02);
}
.newsletter-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.newsletter-mail-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(220, 38, 38, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.05);
}
.newsletter-title {
  font-size: 1.05rem;
  font-weight: 750;
  color: #1e293b;
  margin-bottom: 2px;
}
.newsletter-subtitle {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--gray-500);
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}
.newsletter-input {
  width: 100%;
  height: 40px;
  border-radius: 0.5rem;
  border: 1px solid var(--gray-200);
  background: #fff;
  padding: 0 0.875rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-900);
  outline: none;
  transition: border-color 0.2s ease;
}
.newsletter-input:focus {
  border-color: var(--primary);
}
.newsletter-btn {
  width: 100%;
  height: 40px;
  border-radius: 0.5rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.newsletter-btn:hover {
  background: var(--primary-d);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}
.newsletter-disclaimer {
  font-size: 0.72rem;
  color: var(--gray-400);
  text-align: center;
}

/* Middle Footer Row */
.footer-mid-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-stats-badges {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-stat-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.stat-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fef2f2;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}
.footer-stat-badge strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 750;
  color: #1e293b;
  line-height: 1.2;
}
.footer-stat-badge span {
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* Social icons */
.footer-social-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.follow-us-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
}
.social-circles {
  display: flex;
  gap: 0.6rem;
}
.social-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.social-circle:hover {
  transform: translateY(-2px);
  opacity: 0.9;
  color: #fff;
}
.social-circle.fb { background: #1877f2; }
.social-circle.ig { background: #e4405f; }
.social-circle.ln { background: #0a66c2; }
.social-circle.yt { background: #cd201f; }

/* Bottom Footer Row */
.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--gray-500);
  font-weight: 500;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom-links a {
  color: var(--gray-500);
  transition: color 0.15s ease;
  font-weight: 500;
}
.footer-bottom-links a:hover {
  color: var(--primary);
}

/* ─── HOW IT WORKS FLOW ───────────────────────────────────────────────────────── */
.how-it-works-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 3rem;
}
.how-step {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex: 1;
  min-width: 0;
}
.how-icon-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #fcfcfc;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  flex-shrink: 0;
  border: 1px solid var(--gray-100);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.how-step:hover .how-icon-wrap {
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 15px 30px rgba(220, 38, 38, 0.06);
  border-color: rgba(220, 38, 38, 0.15);
}
.how-content {
  display: flex;
  flex-direction: column;
}
.how-num {
  font-size: 0.88rem;
  font-weight: 850;
  color: var(--primary);
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.how-step-title {
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.how-step-desc {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--gray-500);
}
.how-arrow {
  color: var(--gray-300);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ─── CITIES SECTION ─────────────────────────────────────────────────────────── */
.cities-section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}
.cities-text-col {
  flex: 1.35;
}
.cities-media-col {
  flex: 0.65;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cities-illustration-svg {
  width: 100%;
  max-width: 480px;
  height: auto;
}
.new-city-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.new-city-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.15rem;
  border-radius: 50px;
  background: #fdfdfd;
  border: 1px solid var(--gray-200);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-700);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.01);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}
.new-city-chip i {
  font-size: 0.9rem;
  color: var(--gray-400);
  transition: color 0.25s ease;
}
.new-city-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(220, 38, 38, 0.02);
}
.new-city-chip:hover i {
  color: var(--primary);
}
.new-city-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 8px 16px rgba(220, 38, 38, 0.15);
}
.new-city-chip.active i {
  color: #fff;
}
.new-city-chip.view-all-pill {
  border-style: dashed;
  background: var(--gray-50);
}

/* ─── AI MATCH BANNER ────────────────────────────────────────────────────────── */
.ai-match-banner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  background: linear-gradient(103.3deg, rgba(255, 243, 243, 0.65) 0%, rgba(255, 255, 255, 0.95) 100%);
  border: 1px solid rgba(220, 38, 38, 0.08);
  border-radius: 1.5rem;
  padding: 3.5rem;
  align-items: center;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.03);
}
.ai-match-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
}
.ai-robot-svg {
  width: 100%;
  max-width: 320px;
  height: auto;
}
.ai-match-content {
  display: flex;
  flex-direction: column;
}
.ai-match-features {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 0.5rem;
}
.ai-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ai-feature-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--primary);
  flex-shrink: 0;
}
.ai-feature-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.ai-feature-text strong {
  font-size: 0.85rem;
  font-weight: 750;
  color: var(--gray-900);
}
.ai-feature-text span {
  font-size: 0.78rem;
  color: var(--gray-500);
}

/* ─── NEW CATEGORY CARDS ─────────────────────────────────────────────────────── */
.category-card-new {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: 1.25rem;
  padding: 1.5rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.01);
  overflow: hidden;
}
.category-card-new:hover {
  transform: translateY(-5px);
  border-color: rgba(220, 38, 38, 0.1);
  box-shadow: 0 20px 30px rgba(220, 38, 38, 0.05);
}
.cat-badge-new {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
.cat-illustration-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.cat-emoji-span {
  font-size: 5rem;
  line-height: 1;
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.05));
}
.category-card-new:hover .cat-emoji-span {
  transform: scale(1.2) rotate(3deg);
}
.cat-footer-new {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.cat-details-new {
  display: flex;
  flex-direction: column;
}
.cat-details-new strong {
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--gray-900);
  margin-bottom: 2px;
}
.cat-details-new span {
  font-size: 0.82rem;
  color: var(--gray-500);
}
.cat-btn-new {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--gray-500);
  transition: all 0.25s ease;
}
.category-card-new:hover .cat-btn-new {
  background: var(--primary);
  color: #fff;
  transform: scale(1.05);
}

/* ─── CATEGORIES FOOTER STATS ────────────────────────────────────────────────── */
.categories-stats-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  background: #fff;
  border: 1px solid var(--gray-100);
  padding: 0.85rem 2.5rem;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.02);
  margin: 0 auto;
  display: flex;
  width: max-content;
}
.cat-stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--gray-600);
}
.cat-stat-item i {
  font-size: 1.1rem;
}
.cat-stat-item strong {
  color: var(--gray-900);
}
.cat-stat-divider {
  width: 1px;
  height: 18px;
  background: var(--gray-200);
}

/* ─── UTILITY ─────────────────────────────────────────────────────────────────── */
.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 0.75rem; } .mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 0.75rem; } .mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; }
.p-4 { padding: 1rem; } .p-6 { padding: 1.5rem; }
.rounded { border-radius: var(--radius); }
.border { border: 1px solid var(--gray-200); }
.bg-white { background: #fff; }
.bg-light { background: var(--gray-50); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skeleton { background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 0.4rem; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.loading-overlay { position: fixed; inset: 0; background: rgba(255,255,255,.7); display: flex; align-items: center; justify-content: center; z-index: 999; }
.spinner { width: 40px; height: 40px; border: 3px solid var(--gray-200); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.5rem; }
.toast { background: var(--gray-900); color: #fff; padding: 0.75rem 1.25rem; border-radius: 0.5rem; font-size: 0.875rem; box-shadow: var(--shadow-lg); animation: slideUp .3s ease; min-width: 260px; }
.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }
.toast.warning { background: #d97706; }

/* ── Compare floating pill ───────────────────────────────────────── */
.compare-pill {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(90px);
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 0;
  background: #0f172a;
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(0,0,0,.28), 0 2px 8px rgba(0,0,0,.18), 0 0 0 1px rgba(255,255,255,.07);
  padding: 6px 6px 6px 16px;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .25s ease;
  opacity: 0;
  pointer-events: none;
  min-width: 260px;
  white-space: nowrap;
}
.compare-pill.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.compare-pill.hidden { display: none; }

/* Left section */
.cp-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  color: #fff;
}
.cp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  color: #fff;
  flex-shrink: 0;
}
.cp-label {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.cp-label-text { color: rgba(255,255,255,.6); font-weight: 400; }

/* Selection indicator dots */
.cp-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}
.cp-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  transition: background .2s, transform .2s;
}
.cp-dot.active {
  background: var(--primary);
  transform: scale(1.2);
  box-shadow: 0 0 6px rgba(220,38,38,.7);
}

/* Actions */
.cp-actions { display: flex; align-items: center; gap: 6px; margin-left: 14px; }

.cp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.cp-btn-primary {
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  padding: 8px 16px;
  box-shadow: 0 2px 10px rgba(220,38,38,.45);
}
.cp-btn-primary:hover {
  background: var(--primary-d);
  color: #fff;
  box-shadow: 0 4px 16px rgba(220,38,38,.55);
  transform: translateY(-1px);
}
.cp-btn-ghost {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  width: 32px; height: 32px;
  padding: 0;
  justify-content: center;
}
.cp-btn-ghost:hover {
  background: rgba(255,255,255,.2);
  color: #fff;
}

@media (max-width: 480px) {
  .compare-pill { bottom: 16px; min-width: calc(100vw - 32px); }
  .cp-label-text { display: none; }
}
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ─── RESPONSIVE ──────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-newsletter-col { justify-content: flex-start; grid-column: span 2; }
  .footer-newsletter-col .newsletter-card { max-width: 100%; }
  .profile-body { grid-template-columns: 1fr; }
  .profile-sidebar { position: static; }
  .how-it-works-flow {
    flex-wrap: wrap;
    gap: 2rem 1.5rem;
  }
  .how-step {
    flex: 0 0 calc(50% - 0.75rem);
  }
  .how-arrow {
    display: none;
  }
  .cities-section-row {
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
  }
  .cities-text-col, .cities-media-col {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .cities-media-col {
    order: -1;
  }
  .new-city-chips {
    justify-content: center;
  }
  .ai-match-banner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.5rem;
  }
  .ai-match-illustration {
    order: -1;
  }
  .categories-stats-pill {
    flex-wrap: wrap;
    gap: 1.25rem 1rem;
    border-radius: 1.5rem;
    width: 100%;
    max-width: 500px;
    padding: 1.25rem;
  }
  .cat-stat-divider {
    display: none;
  }
}
@media (max-width: 768px) {
  .how-step {
    flex: 0 0 100%;
  }
  .categories-stats-pill {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 320px;
    border-radius: 1rem;
    padding: 1rem;
  }
  .ai-match-features {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
  .ai-feature-item {
    width: 100%;
  }
  /* ── Mobile Hero ── */
  .hero { padding: 90px 0 24px !important; }
  .hero h1 { font-size: 2.35rem !important; line-height: 1.18 !important; margin-bottom: 0.75rem !important; text-align: center !important; }
  .hero-sub { font-size: 1rem !important; line-height: 1.6 !important; margin-bottom: 1.25rem !important; text-align: center !important; }
  .hero-badge { margin-bottom: 1rem; font-size: 0.78rem; }
  .hero-content { padding: 1rem !important; box-sizing: border-box; width: 100% !important; max-width: 100% !important; text-align: center; }
  .hero-main-row { flex-direction: column; gap: 15px; }
  .hero-left { flex: 0 0 100%; max-width: 100%; }
  .hero-right { display: none !important; }
  .geo-btn-wrapper { display: flex; justify-content: center; margin-top: 16px !important; margin-bottom: 4px !important; }
  .search-container, .search-container * { text-align: left; }
  .search-container { border-radius: 1rem; margin-top: 14px !important; width: 100%; box-sizing: border-box; }
  .search-form { flex-direction: column; align-items: stretch; width: 100%; }
  .search-field { padding: 10px 12px; border-bottom: 1px solid var(--gray-200); width: 100%; box-sizing: border-box; text-align: left; }
  .search-label { text-align: left; }
  .search-input { text-align: left; }
  .search-input-wrap { text-align: left; align-items: flex-start; }
  .search-field:last-of-type { border-bottom: none; }
  .search-divider { display: none; }
  .btn-search-new { margin: 10px 0 0 0; width: 100%; height: 48px !important; padding: 12px 20px !important; box-sizing: border-box; font-size: 1rem !important; }
  .hero-stats { flex-direction: row; justify-content: center; gap: 18px !important; margin-top: 28px !important; padding: 18px 12px !important; background: rgba(255,255,255,0.8); border-radius: 16px; border: 1px solid var(--gray-100); box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
  .stat-v-divider { display: block; width: 1px; height: 28px; background-color: var(--gray-200); }
  .stat-item { gap: 6px; }
  .stat-icon { display: none; }
  .stat-val { font-size: 1.05rem; }
  .stat-label { font-size: 0.72rem; }
  .search-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .navbar-links, .navbar-cta { display: none; }
  .hamburger { display: flex; }
  .navbar-scrolled { top: 8px !important; width: 94% !important; border-radius: var(--ch-radius-pill) !important; }
  .mobile-menu-wrap { top: 70px; }
  .container { padding: 0 1rem; }
  /* ── Cards: hide WhatsApp, keep View Profile + Compare side by side ── */
  .card-actions .btn-wa { display: none !important; }
  .card-actions .compare-btn { display: flex !important; }
  .card-actions { flex-direction: row; gap: 0.4rem; }
  .card-actions .btn { flex: 1; font-size: 0.8rem; height: 38px; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-newsletter-col { justify-content: flex-start; grid-column: span 1; }
  .footer-mid-row { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-bottom-row { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .compare-table { display: block; overflow-x: auto; }
}
@media (max-width: 480px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .profile-hero-inner { flex-direction: column; }
  .profile-actions { flex-direction: column; }
}

/* ─── MOBILE: tighten section gaps so no big blank areas ───────────── */
@media (max-width: 768px) {
  /* sections that use inline padding:5rem 0 */
  .section-categories-new,
  .section-how-it-works,
  .section-cities,
  .section-ai-banner { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
  .section { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
  /* section headings - text stacks above, but toggle+See All stay side-by-side */
  .section-header-row { margin-bottom: 1.5rem !important; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .section-header-row > div:last-child { display: flex; flex-direction: row; align-items: center; gap: 0.75rem; flex-wrap: nowrap; width: 100%; }
  .section-header-row > div:last-child .btn { white-space: nowrap; flex-shrink: 0; padding: 8px 18px !important; font-size: 0.85rem !important; }
  /* how-it-works steps go vertical */
  .how-it-works-flow { flex-direction: column; gap: 1.25rem; }
  .how-arrow { transform: rotate(90deg); }
  /* cities section stacks */
  .cities-section-row { flex-direction: column; }
  .cities-media-col { display: none; }
  /* ai banner stacks */
  .ai-match-banner { flex-direction: column; }
  .ai-match-illustration { display: none; }
}

/* ─── LAPTOP VIEWPORT OPTIMIZATIONS (e.g. 1366x768) ─────────────────── */
@media (max-height: 800px) and (min-width: 992px) {
  .hero {
    padding: 100px 0 35px !important;
  }
  .hero h1 {
    font-size: 2.7rem !important;
    margin-bottom: 0.35rem !important;
    line-height: 1.2 !important;
  }
  .hero-sub {
    font-size: 0.95rem !important;
    margin-bottom: 0.85rem !important;
    max-width: 480px !important;
    line-height: 1.5 !important;
  }
  .hero-illustration {
    max-width: 340px !important;
  }
  .geo-btn-wrapper {
    margin-top: 10px !important;
  }
  .search-container {
    margin-top: 5px !important;
  }
  .hero-stats {
    margin-top: 25px !important;
  }
  .hero-float-card.card-ai {
    top: 5%;
    right: -2%;
  }
  .hero-float-card.card-students {
    bottom: 2%;
    right: -2%;
  }
}

/* ─── TYPEWRITER ANIMATION CURSOR ───────────────────────────────────── */
.typewriter-cursor {
  color: var(--primary);
  font-weight: 300;
  animation: blinkCursor 0.8s infinite;
  display: inline-block;
  margin-left: 4px;
}
@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}


/* ─── NAV PROFILE DROPDOWN ────────────────────────────────────────────── */
.nav-profile-wrap { position: relative; }

.nav-profile-btn {
  display: flex; align-items: center; gap: .5rem;
  background: #fff; border: 1.5px solid var(--gray-200, #e5e7eb);
  cursor: pointer; font-family: inherit;
  padding: .28rem .48rem .28rem .28rem;
  border-radius: 999px;
  transition: border-color .15s, background .15s;
}
.nav-profile-btn:hover,
.nav-profile-btn[aria-expanded="true"] {
  border-color: var(--accent, #DC2626);
  background: #fff5f5;
}

.nav-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent, #DC2626); color: #fff;
  font-size: .8rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-avatar-lg {
  width: 42px; height: 42px; font-size: 1rem; flex-shrink: 0;
}

.nav-profile-name {
  font-size: .875rem; font-weight: 600;
  color: var(--gray-800, #1f2937); max-width: 110px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.nav-chevron {
  font-size: .65rem; color: var(--gray-500, #6b7280);
  transition: transform .2s;
}
.nav-profile-btn[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute; right: 0; top: calc(100% + 10px);
  background: #fff; border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.13), 0 2px 8px rgba(0,0,0,.07);
  border: 1px solid var(--gray-100, #f3f4f6);
  min-width: 220px; z-index: 999;
  opacity: 0; transform: translateY(-6px) scale(.97);
  pointer-events: none;
  transition: opacity .17s ease, transform .17s ease;
}
.nav-dropdown.open {
  opacity: 1; transform: translateY(0) scale(1);
  pointer-events: auto;
}

.nav-dropdown-header {
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem 1rem .75rem;
  border-bottom: 1px solid var(--gray-100, #f3f4f6);
}
.nav-dd-name { font-size: .9rem; font-weight: 700; color: var(--gray-900, #111827); }
.nav-dd-role { font-size: .75rem; color: var(--accent, #DC2626); font-weight: 600; margin-top: 1px; }

.nav-dropdown-body { padding: .5rem 0; }

.nav-dd-item {
  display: flex; align-items: center; gap: .65rem;
  padding: .6rem 1rem; font-size: .875rem; font-weight: 500;
  color: var(--gray-700, #374151); border-radius: 0;
  transition: background .12s, color .12s;
  text-decoration: none;
}
.nav-dd-item i { width: 16px; text-align: center; color: var(--gray-400, #9ca3af); }
.nav-dd-item:hover { background: var(--gray-50, #f9fafb); color: var(--gray-900, #111827); }
.nav-dd-item:hover i { color: var(--accent, #DC2626); }

.nav-dd-divider { height: 1px; background: var(--gray-100, #f3f4f6); margin: .35rem 0; }

.nav-dd-logout { color: var(--accent, #DC2626) !important; }
.nav-dd-logout i { color: var(--accent, #DC2626) !important; }
.nav-dd-logout:hover { background: #fff5f5 !important; }

/* Mobile profile strip */
.mobile-profile-strip {
  display: flex; align-items: center; gap: .75rem;
  padding: .9rem 20px;
  margin-top: .3rem;
  background: #f9fafb;
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
}
.mobile-profile-strip strong { font-size: .95rem; color: var(--gray-900, #111827); display: block; }
.mobile-profile-strip small { font-size: .75rem; color: var(--accent, #DC2626); font-weight: 600; }

