/* ═══════════════════════════════════════════════════════
   MY COLLEGE — Design System v1
   Education-focused, mobile-first, production-ready
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ── RESET & BASE ────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ── DESIGN TOKENS ───────────────────────── */
:root {
  /* Brand — deep indigo / teal accent */
  --primary:        #4F46E5;
  --primary-dark:   #3730A3;
  --primary-light:  #EEF2FF;
  --primary-mid:    #818CF8;
  --secondary:      #0F172A;
  --secondary-mid:  #1E293B;
  --accent:         #0EA5E9;
  --accent-dark:    #0284C7;
  --gold:           #F59E0B;
  --gold-light:     #FEF3C7;
  --success:        #10B981;
  --success-light:  #ECFDF5;
  --error:          #EF4444;
  --error-light:    #FEF2F2;
  --govt:           #059669;

  /* Text */
  --text:           #0F172A;
  --text-2:         #1E293B;
  --text-muted:     #64748B;
  --text-hint:      #94A3B8;
  --text-on-dark:   rgba(255,255,255,.88);

  /* Backgrounds */
  --bg:             #F8FAFC;
  --bg-2:           #F1F5F9;
  --bg-white:       #FFFFFF;
  --bg-card:        #FFFFFF;

  /* Borders */
  --border:         #E2E8F0;
  --border-2:       #CBD5E1;

  /* Radius */
  --r-xs:  4px;
  --r-sm:  8px;
  --r:     12px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow:    0 4px 16px rgba(0,0,0,.07), 0 1px 4px rgba(0,0,0,.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,.09), 0 2px 8px rgba(0,0,0,.05);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.12), 0 4px 16px rgba(0,0,0,.07);
  --shadow-primary: 0 8px 24px rgba(79,70,229,.25);

  /* Typography */
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-display: 'Sora', system-ui, sans-serif;

  /* Transitions */
  --ease: cubic-bezier(.4,0,.2,1);
  --t-fast: 120ms;
  --t: 200ms;
  --t-slow: 350ms;

  /* Layout */
  --max-w: 1200px;
  --nav-h: 64px;
}

/* ── LAYOUT ──────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
@media(min-width:640px)  { .container { padding: 0 28px; } }
@media(min-width:1280px) { .container { padding: 0 40px; } }
.page-wrap { min-height: 60vh; overflow-x: hidden; }

/* ── TYPOGRAPHY ──────────────────────────── */
h1,h2,h3,h4,h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--text); letter-spacing: -0.02em; }

/* ── TOPBAR ──────────────────────────────── */
.topbar {
  background: var(--secondary);
  color: rgba(255,255,255,.6);
  font-size: 12px;
  padding: 7px 0;
}
.topbar-inner { display: flex; gap: 20px; align-items: center; }
.topbar-inner i { margin-right: 4px; color: var(--primary-mid); }
.topbar-right { margin-left: auto; }
@media(max-width:768px) { .topbar { display: none; } }

/* ── NAVBAR ──────────────────────────────── */
.navbar {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 500;
  transition: box-shadow var(--t) var(--ease);
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }
.nav-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--nav-h);
}

/* Logo */
.logo-text { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.logo-my { color: var(--secondary); }
.logo-accent { color: var(--primary); }

/* Nav search */
.nav-search-wrap { flex: 1; max-width: 380px; }
.nav-search {
  display: flex; align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  padding: 0 14px; gap: 8px;
  transition: border-color var(--t) var(--ease);
}
.nav-search:focus-within { border-color: var(--primary); background: #fff; }
.nav-search i { color: var(--text-hint); font-size: 13px; }
.nav-search input {
  border: none; background: transparent;
  padding: 9px 0; font-size: 13px; color: var(--text); width: 100%; outline: none;
}
.nav-search input::placeholder { color: var(--text-hint); }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-location {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--text-muted); cursor: pointer;
  padding: 6px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  transition: all var(--t) var(--ease);
}
.nav-location:hover { border-color: var(--primary); color: var(--primary); }

.nav-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px; cursor: pointer;
}
.nav-hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; display: block; }
@media(max-width:768px) {
  .nav-hamburger { display: flex; }
  .nav-search-wrap { display: none; }
  .nav-actions .btn:not(.nav-location) { display: none; }
  .nav-location { display: none; }
}

/* Mobile menu */
.mobile-menu {
  display: none; flex-direction: column;
  background: #fff; border-top: 1px solid var(--border);
  padding: 12px 20px 20px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 0; border-bottom: 1px solid var(--border);
  font-size: 15px; font-weight: 600; color: var(--text-2);
}
.mobile-menu a:last-child { border-bottom: none; }

/* Category nav bar */
.cat-nav-bar {
  border-top: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
}
.cat-nav-inner {
  display: flex; align-items: center; gap: 4px;
  overflow-x: auto; padding: 8px 0;
  scrollbar-width: none;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-nav-item {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: 13px; font-weight: 600;
  white-space: nowrap;
  color: var(--text-muted);
  transition: all var(--t) var(--ease);
  flex-shrink: 0;
}
.cat-nav-item:hover { background: var(--primary-light); color: var(--primary); }
.cat-nav-item.active { background: var(--primary); color: #fff; }
.cat-nav-icon { font-size: 16px; }
.cat-nav-count {
  background: rgba(0,0,0,.08); border-radius: 99px;
  padding: 0 6px; font-size: 11px; font-weight: 700;
}
.cat-nav-item.active .cat-nav-count { background: rgba(255,255,255,.25); }

/* ── BUTTONS ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px; border-radius: var(--r-full);
  font-weight: 700; font-size: 14px; font-family: inherit;
  cursor: pointer; transition: all var(--t) var(--ease);
  border: 2px solid transparent; line-height: 1; white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 12px 28px rgba(79,70,229,.35); }
.btn-ghost { background: transparent; color: var(--text-2); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-enquire {
  display: inline-flex; align-items: center;
  background: var(--primary); color: #fff;
  padding: 8px 16px; border-radius: var(--r-full);
  font-size: 13px; font-weight: 700;
  transition: all var(--t) var(--ease);
  white-space: nowrap;
}
.btn-enquire:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ── BADGES ──────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 700; line-height: 1.4;
}
.badge-featured { background: #fff; color: var(--gold); box-shadow: var(--shadow-sm); }
.badge-verified  { background: var(--success); color: #fff; }
.badge-govt      { background: var(--govt); color: #fff; }
.badge-naac      { background: var(--primary); color: #fff; }

/* ── HERO ────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #1A1040 0%, #2D1B69 45%, #1E3A8A 100%);
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12); color: rgba(255,255,255,.9);
  padding: 6px 14px; border-radius: var(--r-full);
  font-size: 13px; font-weight: 600; margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.hero h1 em { color: var(--primary-mid); font-style: normal; }
.hero-sub { color: rgba(255,255,255,.75); font-size: 16px; max-width: 520px; margin-bottom: 32px; }

/* Hero Search Box */
.hero-search-box {
  display: flex; align-items: center;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  padding: 6px;
  gap: 0;
  max-width: 780px;
  position: relative;
}
.hsb-field {
  flex: 1; position: relative; min-width: 0;
}
.hsb-trigger {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; cursor: pointer;
  border-radius: var(--r);
  transition: background var(--t-fast) var(--ease);
}
.hsb-trigger:hover { background: var(--bg); }
.hsb-icon { color: var(--primary); font-size: 15px; flex-shrink: 0; }
.hsb-inner { flex: 1; min-width: 0; }
.hsb-value { font-size: 14px; font-weight: 600; color: var(--text); display: block; }
.hsb-value.placeholder { color: var(--text-hint); font-weight: 400; }
.hsb-caret { color: var(--text-hint); font-size: 11px; flex-shrink: 0; }
.hsb-divider { width: 1px; height: 36px; background: var(--border); flex-shrink: 0; }
.hsb-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff;
  border: none; border-radius: var(--r);
  padding: 12px 22px; font-size: 15px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  font-family: inherit;
  transition: all var(--t) var(--ease);
  flex-shrink: 0;
}
.hsb-btn:hover { background: var(--primary-dark); }

/* HSB Dropdown */
.hsb-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  background: #fff; border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  min-width: 260px; z-index: 1000;
  overflow: hidden;
}
.hsb-dropdown.open { display: block; }
.hsb-search-wrap {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.hsb-search-wrap i { color: var(--text-hint); font-size: 13px; }
.hsb-search {
  border: none; outline: none; background: transparent;
  font-size: 13px; color: var(--text); width: 100%;
}
.hsb-list { max-height: 260px; overflow-y: auto; padding: 6px; }
.hsb-option {
  padding: 9px 12px; border-radius: var(--r-sm);
  cursor: pointer; font-size: 14px; font-weight: 500;
  display: flex; align-items: center; justify-content: space-between;
  transition: background var(--t-fast);
}
.hsb-option:hover { background: var(--primary-light); color: var(--primary); }
.hsb-meta { font-size: 11px; color: var(--text-hint); font-weight: 400; }

/* Area pills */
.area-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.area-pill {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
  padding: 6px 14px; border-radius: var(--r-full);
  font-size: 13px; font-weight: 500;
  transition: all var(--t) var(--ease);
  border: 1px solid rgba(255,255,255,.15);
}
.area-pill:hover { background: rgba(255,255,255,.22); }

@media(max-width:768px) {
  .hero { padding: 48px 0 40px; }
  .hero-search-box { flex-wrap: wrap; }
  .hsb-field { min-width: 100%; }
  .hsb-divider { width: 100%; height: 1px; }
  .hsb-btn { width: 100%; justify-content: center; }
}

/* ── HOW IT WORKS ────────────────────────── */
.how-section { padding: 64px 0; background: var(--bg); }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-top: 40px; }
.how-card {
  background: #fff; border-radius: var(--r-lg);
  padding: 28px 24px; text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--t) var(--ease);
}
.how-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.how-icon {
  width: 56px; height: 56px;
  background: var(--primary-light);
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
  color: var(--primary);
}
.how-step { font-size: 11px; font-weight: 700; color: var(--primary); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.how-card h3 { font-size: 16px; margin-bottom: 8px; }
.how-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ── SECTION ─────────────────────────────── */
.section { padding: 64px 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.section-header h2 { font-size: clamp(20px, 3vw, 28px); font-weight: 800; }
.section-header a { font-size: 14px; color: var(--primary); font-weight: 600; }

/* ── COLLEGE CARD ────────────────────────── */
.college-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--t) var(--ease);
  display: flex; flex-direction: column;
}
.college-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.cc-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg-2);
  overflow: hidden;
}
.cc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.college-card:hover .cc-thumb img { transform: scale(1.04); }
.cc-thumb-placeholder {
  display: flex; align-items: center; justify-content: center;
  height: 100%; font-size: 48px; color: var(--text-hint);
}
.cc-badge { position: absolute; top: 10px; left: 10px; display: flex; gap: 5px; flex-wrap: wrap; }
.cc-wishlist {
  position: absolute; top: 10px; right: 10px;
  width: 34px; height: 34px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(4px);
  border-radius: 50%; border: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-hint); font-size: 14px;
  cursor: pointer; transition: all var(--t) var(--ease);
  box-shadow: var(--shadow-sm);
}
.cc-wishlist:hover, .cc-wishlist.wishlisted { color: var(--primary); background: #fff; }

.cc-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.cc-name { font-weight: 800; font-size: 15px; line-height: 1.3; margin-bottom: 4px; }
.cc-name a:hover { color: var(--primary); }
.cc-affiliation, .cc-location {
  font-size: 12px; color: var(--text-muted);
  display: flex; align-items: flex-start; gap: 5px; margin-bottom: 4px;
}
.cc-affiliation i, .cc-location i { color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.cc-meta {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-muted);
  margin: 8px 0;
}
.cc-rating { display: flex; align-items: center; gap: 4px; }
.cc-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.cc-fee-main { font-size: 17px; font-weight: 800; color: var(--text); line-height: 1.2; }
.cc-fee-sub  { font-size: 11px; color: var(--text-muted); }

/* Grids */
.college-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.college-grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }

/* ── LISTING LAYOUT ──────────────────────── */
.listing-layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
@media(max-width:900px) { .listing-layout { grid-template-columns: 1fr; } }

/* Sidebar */
.filters-sidebar {
  background: #fff; border-radius: var(--r-lg);
  border: 1px solid var(--border);
  padding: 20px; position: sticky; top: calc(var(--nav-h) + 16px);
}
.filters-sidebar h3 { font-size: 15px; font-weight: 800; margin-bottom: 16px; }
.filter-group { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.filter-group:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.filter-group-title { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 10px; }
.filter-check { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; padding: 4px 0; }
.filter-check input { accent-color: var(--primary); }
.filter-range-inputs { display: flex; gap: 8px; }
.filter-range-inputs input {
  flex: 1; border: 1.5px solid var(--border); border-radius: var(--r-sm);
  padding: 7px 10px; font-size: 13px; outline: none;
  transition: border-color var(--t-fast);
}
.filter-range-inputs input:focus { border-color: var(--primary); }
.filter-apply { width: 100%; margin-top: 16px; }
@media(max-width:900px) { .filters-sidebar { position: static; } }

/* Listing header */
.listing-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.listing-count { font-size: 14px; color: var(--text-muted); }
.listing-count strong { color: var(--text); font-weight: 700; }
.sort-select {
  border: 1.5px solid var(--border); border-radius: var(--r-full);
  padding: 7px 14px; font-size: 13px; font-family: inherit;
  background: #fff; outline: none; cursor: pointer;
}

/* ── COLLEGE DETAIL ──────────────────────── */
.college-hero {
  background: var(--secondary);
  padding: 32px 0 0;
  position: relative;
}
.college-hero-inner { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
@media(max-width:900px) { .college-hero-inner { grid-template-columns: 1fr; } }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 6px; border-radius: var(--r-lg); overflow: hidden;
}
.gallery-main { grid-row: 1 / 3; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; transition: opacity var(--t); }
.gallery-grid img:hover { opacity: .85; }

.college-title-bar { padding: 24px 0; }
.college-title-bar h1 { color: #fff; font-size: clamp(20px, 3vw, 32px); margin-bottom: 8px; }
.college-meta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 12px 0; }
.college-meta-pill {
  display: flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.8);
  padding: 5px 12px; border-radius: var(--r-full); font-size: 12px; font-weight: 600;
}
.college-meta-pill i { color: var(--primary-mid); }

/* Sticky enquiry card */
.enquiry-card {
  background: #fff; border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  padding: 24px; position: sticky; top: calc(var(--nav-h) + 16px);
}
.enquiry-card .fee-display { text-align: center; padding: 16px; background: var(--primary-light); border-radius: var(--r); margin-bottom: 20px; }
.enquiry-card .fee-amount { font-size: 26px; font-weight: 800; color: var(--primary); }
.enquiry-card .fee-note { font-size: 12px; color: var(--text-muted); }
.enquiry-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 16px; }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 12px; font-weight: 700; color: var(--text-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .05em; }
.form-control {
  width: 100%; border: 1.5px solid var(--border); border-radius: var(--r-sm);
  padding: 10px 12px; font-size: 14px; font-family: inherit;
  outline: none; transition: border-color var(--t-fast);
  background: var(--bg);
}
.form-control:focus { border-color: var(--primary); background: #fff; }
textarea.form-control { resize: vertical; min-height: 80px; }
.btn-block { width: 100%; justify-content: center; }

/* Detail tabs */
.detail-tabs {
  background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: var(--nav-h); z-index: 100;
}
.detail-tabs-inner { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.detail-tabs-inner::-webkit-scrollbar { display: none; }
.tab-link {
  padding: 14px 20px; font-size: 14px; font-weight: 600;
  color: var(--text-muted); white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all var(--t-fast);
}
.tab-link:hover { color: var(--primary); }
.tab-link.active { color: var(--primary); border-bottom-color: var(--primary); }

/* Detail layout */
.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; padding: 32px 0; }
@media(max-width:900px) { .detail-layout { grid-template-columns: 1fr; } }

/* Info sections */
.info-section { background: #fff; border-radius: var(--r-lg); border: 1px solid var(--border); padding: 24px; margin-bottom: 20px; }
.info-section h2 { font-size: 18px; font-weight: 800; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.info-section p { font-size: 14px; color: var(--text-muted); line-height: 1.8; }

/* Courses table */
.courses-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.courses-table th { background: var(--bg); padding: 10px 12px; text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 700; }
.courses-table td { padding: 11px 12px; border-bottom: 1px solid var(--border); }
.courses-table tr:last-child td { border-bottom: none; }
.courses-table tr:hover td { background: var(--bg); }
.course-level { padding: 2px 8px; border-radius: var(--r-full); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.level-ug { background: var(--primary-light); color: var(--primary); }
.level-pg { background: var(--gold-light); color: var(--gold); }
.level-diploma { background: var(--success-light); color: var(--success); }
.level-phd { background: #F3E8FF; color: #7C3AED; }

/* Facilities grid */
.facility-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.facility-group h4 { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 10px; }
.facility-list { display: flex; flex-direction: column; gap: 6px; }
.facility-item { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.facility-item .fi { width: 28px; height: 28px; background: var(--primary-light); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 14px; }

/* Stats bar */
.stats-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; background: var(--border); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 20px; }
.stat-item { background: #fff; padding: 20px 16px; text-align: center; }
.stat-value { font-size: 22px; font-weight: 800; color: var(--primary); font-family: var(--font-display); }
.stat-label { font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }

/* Accreditation badges */
.accreditation-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.accr-badge {
  background: var(--primary-light); color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 6px 14px; border-radius: var(--r-full);
  font-size: 13px; font-weight: 700;
}

/* Reviews */
.review-card { padding: 20px 0; border-bottom: 1px solid var(--border); }
.review-card:last-child { border-bottom: none; }
.review-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.reviewer-info { display: flex; align-items: center; gap: 10px; }
.reviewer-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.reviewer-name { font-weight: 700; font-size: 14px; }
.reviewer-meta { font-size: 12px; color: var(--text-muted); }
.review-stars { color: var(--gold); font-size: 14px; }
.review-title { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.review-body { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.review-date { font-size: 12px; color: var(--text-hint); margin-top: 8px; }

/* Rating summary */
.rating-summary { display: flex; gap: 24px; padding: 20px; background: var(--bg); border-radius: var(--r-lg); margin-bottom: 24px; }
.rating-big { text-align: center; flex-shrink: 0; }
.rating-big-num { font-size: 48px; font-weight: 800; color: var(--text); font-family: var(--font-display); line-height: 1; }
.rating-big-stars { color: var(--gold); font-size: 18px; margin: 4px 0; }
.rating-big-count { font-size: 12px; color: var(--text-muted); }
.rating-bars { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.rating-bar-row { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.rating-bar-label { width: 16px; text-align: right; color: var(--text-muted); font-weight: 600; }
.rating-bar-track { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.rating-bar-fill { height: 100%; background: var(--gold); border-radius: 3px; }
.rating-bar-count { width: 24px; color: var(--text-muted); }

/* Q&A */
.qna-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.qna-question { font-weight: 700; font-size: 14px; display: flex; gap: 10px; }
.qna-question::before { content: 'Q'; background: var(--primary); color: #fff; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.qna-answer { display: flex; gap: 10px; margin-top: 10px; font-size: 13px; color: var(--text-muted); }
.qna-answer::before { content: 'A'; background: var(--success); color: #fff; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }

/* ── CATEGORIES GRID ─────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.cat-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px 16px;
  text-align: center; cursor: pointer;
  transition: all var(--t) var(--ease);
}
.cat-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.cat-card .cat-icon { font-size: 32px; margin-bottom: 10px; }
.cat-card .cat-name { font-weight: 700; font-size: 14px; color: var(--text); margin-bottom: 4px; }
.cat-card .cat-count { font-size: 12px; color: var(--text-muted); }

/* ── BREADCRUMB ──────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-muted);
  padding: 16px 0; flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb i { font-size: 10px; }

/* ── TESTIMONIALS / STATS BAR (homepage) ─── */
.trust-bar { background: var(--primary); padding: 32px 0; }
.trust-bar-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; text-align: center; }
.trust-item .trust-num { font-size: 32px; font-weight: 800; color: #fff; font-family: var(--font-display); }
.trust-item .trust-label { font-size: 13px; color: rgba(255,255,255,.75); margin-top: 4px; }

/* ── FOOTER ──────────────────────────────── */
.footer { background: var(--secondary); color: rgba(255,255,255,.7); padding: 60px 0 0; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
@media(max-width:900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-logo { font-family: var(--font-display); font-size: 24px; font-weight: 800; display: inline-block; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.7; max-width: 280px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: rgba(255,255,255,.7);
  transition: all var(--t);
}
.footer-social a:hover { background: var(--primary); color: #fff; }

.footer-col-title { font-weight: 700; color: #fff; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { display: flex; flex-direction: column; gap: 8px; }
.footer ul li a { font-size: 13px; transition: color var(--t-fast); }
.footer ul li a:hover { color: var(--primary-mid); }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; font-size: 12px; flex-wrap: wrap; gap: 12px; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a:hover { color: var(--primary-mid); }

/* ── MISC ────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

/* Alert */
.alert { padding: 12px 16px; border-radius: var(--r); font-size: 14px; margin-bottom: 16px; }
.alert-success { background: var(--success-light); color: var(--success); border: 1px solid #BBF7D0; }
.alert-error { background: var(--error-light); color: var(--error); border: 1px solid #FECACA; }

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: var(--text-muted); }

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp .45s var(--ease) both; }
.fade-in-up-2 { animation: fadeInUp .45s .1s var(--ease) both; }
.fade-in-up-3 { animation: fadeInUp .45s .2s var(--ease) both; }
