/* ============================================================
   UnivFind — design system (public site)
   Plain vanilla CSS, zero external dependencies.
   Brand: navy #102D55 + teal #18B6A4. No amber/gold anywhere.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --navy: #102d55;
  --navy-dark: #0b2140;
  --navy-ink: #0a1930;
  --teal: #18b6a4;
  --teal-dark: #0e9c8c;
  --teal-text: #0b7e70; /* darker teal for body/small text: 4.96:1 on white */
  --teal-tint: #e6f8f5;
  --ink: #1c2733;
  --muted: #5a6b7e;
  --bg: #ffffff;
  --bg-soft: #f3f6f9;
  --border: #e2e8f0;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 24px rgba(16, 45, 85, 0.08);
  --shadow-lg: 0 16px 40px rgba(16, 45, 85, 0.14);
  /* Premium redesign tokens */
  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow-xs: 0 1px 2px rgba(16, 45, 85, 0.06);
  --shadow-sm: 0 2px 8px rgba(16, 45, 85, 0.07);
  --shadow-md: 0 6px 18px rgba(16, 45, 85, 0.09);
  --shadow-xl: 0 24px 56px rgba(11, 33, 64, 0.16);
  --grad-teal: linear-gradient(135deg, #1fd6ba 0%, #18b6a4 45%, #0e9c8c 100%);
  --grad-navy: linear-gradient(135deg, #14386b 0%, #102d55 45%, #0b2140 100%);
  --ring-teal: 0 0 0 3px rgba(24, 182, 164, 0.18);
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-8: 3rem;
  --sp-10: 4rem;
  --header-h: 64px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip; /* safety net: nothing may exceed the viewport width */
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-ink);
  line-height: 1.2;
  margin: 0 0 var(--sp-3);
  font-weight: 800;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--teal-text); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25rem; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--teal-tint); color: var(--navy-ink); }

/* ---------- 3. Layout helpers ---------- */
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: var(--sp-4); padding-right: var(--sp-4); }
.wrap.narrow { max-width: 760px; }

.section { padding: var(--sp-8) 0; }
.section + .section { padding-top: 0; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}
.section-head h2 { margin-bottom: 0; }

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.big { font-size: 1.125rem; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 42rem; }
.center { text-align: center; }
/* Visually hidden but kept for screen readers and SEO (e.g. hero H1 when the hero shows only the finder) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(16, 45, 85, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
  flex-shrink: 0;
}
/* Official logo: navy+teal on white, 1600x520. Height fixed, width auto. */
.brand img { height: 40px; width: auto; display: block; }
.brand-name {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--navy);
}

/* Hamburger (mobile) */
.nav-toggle {
  margin-left: auto;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav (mobile-first) */
.main-nav {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: var(--sp-3) var(--sp-4) var(--sp-5);
  flex-direction: column;
  gap: var(--sp-1);
}
.main-nav.open { display: flex; }

.nav-item { position: relative; }
/* .has-dropdown marks nav items that own a .dropdown (JS hook in main.js). */
.has-dropdown { position: relative; }

.nav-link, .dropdown-toggle {
  display: block;
  width: 100%;
  text-align: left;
  padding: var(--sp-3) var(--sp-2);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
}
.nav-link:hover, .dropdown-toggle:hover { color: var(--teal-text); background: var(--bg-soft); }

.dropdown-toggle::after {
  content: "";
  display: inline-block;
  margin-left: 0.45em;
  vertical-align: middle;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  transition: transform 0.2s ease;
}
.nav-item.open > .dropdown-toggle::after { transform: rotate(180deg); }

.dropdown {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0 0 0 var(--sp-3);
}
.nav-item.open .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.dropdown li a:hover { color: var(--teal-text); background: var(--bg-soft); text-decoration: none; }
.dropdown-empty { color: var(--muted); font-size: 0.9rem; padding: var(--sp-2) var(--sp-3); display: block; }

.nav-cta { margin-top: var(--sp-3); align-self: flex-start; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.65rem 1.35rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  line-height: 1.4;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--teal); border-color: var(--teal); color: var(--navy); box-shadow: var(--shadow); }

.btn-outline { background: transparent; color: var(--teal-text); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: var(--navy); border-color: var(--teal); }

.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.875rem; min-height: 44px; }
.btn-lg { padding: 0.85rem 1.9rem; font-size: 1.1rem; }

.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: var(--sp-10) 0 var(--sp-8);
}
/* Subtle radial teal glow */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 320px at 82% 12%, rgba(24, 182, 164, 0.28), transparent 65%);
  pointer-events: none;
}
.hero > * { position: relative; }

.hero h1, .hero h2 { color: #fff; }
.hero .lead, .hero p.muted { color: rgba(255, 255, 255, 0.82); }

.hero-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 var(--sp-3);
}

.hero-home .hero-inner { max-width: 46rem; }
.hero-lead { font-size: 1.2rem; color: rgba(255, 255, 255, 0.85); margin: var(--sp-4) 0 0; max-width: 40rem; }

.hero-country { padding: var(--sp-8) 0 var(--sp-6); }

/* ---------- 7. Course finder ---------- */
.finder {
  position: relative;
  z-index: 5;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-5) 1.75rem;
  margin: var(--sp-6) 0 0;
}

.finder-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}
.finder-field { display: flex; flex-direction: column; gap: var(--sp-1); min-width: 0; }
.finder-field label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }

.finder-input, .finder-select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.finder-input::placeholder { color: var(--muted); }
.finder-input:focus, .finder-select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(16, 45, 85, 0.15);
}

.finder-submit {
  align-self: stretch;
  background: var(--teal);
  color: var(--navy);
  border: 2px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.6rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.finder-submit:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.finder-submit:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

.finder-results { margin-top: var(--sp-4); display: grid; gap: var(--sp-3); scroll-margin-top: calc(var(--header-h) + 12px); }
.finder-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); margin-top: var(--sp-3); }
.finder-row-actions .finder-submit { flex: 1 1 100%; }

/* No-IELTS checkbox row: 44px tap target */
.finder-check {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: 0.95rem; font-weight: 600; color: var(--ink);
  cursor: pointer; min-height: 44px; margin: 0;
}
.finder-check input[type="checkbox"] {
  width: 1.25rem; height: 1.25rem; accent-color: var(--teal-text); cursor: pointer; flex: none;
}

/* ---------- Stylish hero title above the finder ---------- */
.hero-title {
  color: #fff;
  font-size: clamp(1.5rem, 5.2vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}
.hero-title span { color: var(--teal); }

/* ---------- Degree-level pill radio group ---------- */
.finder-label {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted);
}
.finder-field-pills { display: flex; flex-direction: column; gap: var(--sp-1); }
.pill-group { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.pill { position: relative; margin: 0; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 0.4rem 0.9rem; border-radius: 999px;
  border: 1.5px solid var(--border); background: var(--bg);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted); cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.pill input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.pill input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ---------- Keyword autocomplete suggestions ---------- */
.finder-suggest-wrap { position: relative; }
.finder-suggest {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 300;
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow-lg);
  max-height: 320px; overflow-y: auto;
}
.finder-suggest[hidden] { display: none; }
.finder-suggest-item {
  display: grid; grid-template-columns: auto 1fr; gap: 0.1rem 0.6rem;
  width: 100%; text-align: left; padding: 0.55rem 0.8rem;
  background: none; border: 0; border-bottom: 1px solid var(--bg-soft);
  cursor: pointer; align-items: center;
}
.finder-suggest-item:last-child { border-bottom: 0; }
.finder-suggest-item:hover, .finder-suggest-item.active { background: var(--teal-tint); }
.finder-suggest-type {
  grid-row: span 2; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--teal-text); white-space: nowrap;
  border: 1px solid var(--teal); border-radius: 999px; padding: 0.12rem 0.45rem;
}
.finder-suggest-name { font-size: 0.88rem; font-weight: 700; color: var(--navy); line-height: 1.3; }
.finder-suggest-sub { font-size: 0.76rem; color: var(--muted); grid-column: 2; line-height: 1.3; }

/* ---------- Compact finder course cards ---------- */
.fc-count { color: var(--muted); font-size: 0.85rem; margin: 0; }
.fc-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: var(--sp-3) var(--sp-4);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  display: grid; gap: var(--sp-2);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.fc-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--teal));
  opacity: 0.85;
}
.fc-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
/* Scholarship highlight: gold strip across the top of the card */
.fc-card-scholar { border-color: #fcd34a; }
.fc-card-scholar::before { display: none; }
.fc-scholar-strip {
  margin: calc(-1 * var(--sp-3)) calc(-1 * var(--sp-4)) var(--sp-1);
  padding: 0.4rem var(--sp-4);
  background: linear-gradient(90deg, #fef3c7, #fde68a);
  border-bottom: 1px solid #fcd34a;
  color: #92400e;
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
}
.fc-title { margin: 0; font-size: 1rem; line-height: 1.35; }
.fc-title a { color: var(--navy); text-decoration: none; }
.fc-title a:hover { color: var(--teal-text); }
.fc-uni { margin: 0; font-size: 0.85rem; color: var(--muted); }
.fc-uni a { color: var(--muted); text-decoration: none; }
.fc-uni a:hover { color: var(--teal-text); text-decoration: underline; }
.fc-badges { display: flex; flex-wrap: wrap; gap: var(--sp-1); }
.fc-badge {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em;
  padding: 0.2rem 0.6rem; border-radius: 999px;
  background: var(--bg-soft); color: var(--navy); border: 1px solid var(--border);
  white-space: nowrap;
}
.fc-badge-ielts { background: var(--teal-tint); border-color: var(--teal); color: var(--teal-text); }
.fc-badge-open { background: var(--teal); border-color: var(--teal); color: #fff; }
.fc-badge-closed { background: #f1f5f9; border-color: #cbd5e1; color: #64748b; }
.fc-meta { margin: 0; font-size: 0.85rem; color: var(--muted); }
.fc-cta {
  justify-self: start; font-size: 0.9rem; font-weight: 700; color: var(--teal-text);
  text-decoration: none; padding: 0.35rem 0; min-height: 44px;
  display: inline-flex; align-items: center;
}
.fc-cta:hover { text-decoration: underline; }
/* ---------- In-finder pagination (1, 2, 3 …) ---------- */
.fc-pager {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2);
  margin-top: var(--sp-1);
}
.fc-page {
  min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.4rem 0.8rem;
  border: 1.5px solid var(--border); border-radius: 10px;
  background: var(--bg); color: var(--navy);
  font-size: 0.9rem; font-weight: 700; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.fc-page:hover:not(:disabled) { border-color: var(--teal); color: var(--teal-text); }
.fc-page-current, .fc-page-current:disabled {
  background: var(--navy); border-color: var(--navy); color: #fff; cursor: default;
  opacity: 1;
}
.fc-page:disabled:not(.fc-page-current) { cursor: default; opacity: 0.55; border-style: dashed; }
.finder-result {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--sp-4);
  background: var(--bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.finder-result:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.finder-result-title { margin: 0 0 var(--sp-1); font-size: 1.05rem; }
.finder-result-title a { color: var(--navy); text-decoration: none; }
.finder-result-title a:hover { color: var(--teal-text); }
.finder-result-meta { color: var(--muted); font-size: 0.9rem; margin: 0; }

.finder-empty, .finder-loading { color: var(--muted); padding: var(--sp-4); text-align: center; margin: 0; }

/* Generic search form (non-landing pages) */
.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin: var(--sp-5) 0;
}
.search-form input[type="search"],
.search-form input[type="text"] {
  flex: 1 1 240px;
  padding: 0.65rem 0.9rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
}
.search-form input[type="search"]:focus, .search-form input[type="text"]:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(16, 45, 85, 0.15);
}

/* ---------- 8. Cards & grids ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-5);
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-5);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--teal); }
.card h3 { margin: 0; font-size: 1.15rem; }
/* Long unbroken names must never force horizontal overflow */
.card h3, .uni-name, .finder-result-title, .dest-card h3 { overflow-wrap: break-word; }
.card p { margin: 0; }

a.card.card-link { text-decoration: none; color: inherit; display: block; }

.card-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-text);
  margin: 0;
}

.link-more {
  font-weight: 700;
  color: var(--teal-text);
  text-decoration: none;
  white-space: nowrap;
}
a.link-more:hover, span.link-more:hover { color: var(--navy); text-decoration: underline; }

/* ---------- 9. Stats band ---------- */
.stats-band {
  background: var(--navy);
  color: #fff;
  padding: var(--sp-8) 0;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
  text-align: center;
}
.stat-num {
  display: block;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
}
.stat-label {
  display: block;
  margin-top: var(--sp-1);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}
/* legacy inline stat (older pages) — professional stacked stat card */
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 0.75rem;
  text-align: center;
  min-height: 96px;
}
.stat strong {
  color: var(--navy);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}

/* ---------- 10. Destinations ---------- */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-5);
}
.dest-card {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  background: linear-gradient(135deg, var(--bg) 0%, #f0f9f8 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-5);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.dest-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--teal); text-decoration: none; }
.dest-left { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); min-width: 90px; }
.dest-flag { font-size: 2.5rem; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); }
.dest-name { font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.dest-divider { width: 1px; align-self: stretch; background: repeating-linear-gradient(to bottom, var(--border) 0 6px, transparent 6px 12px); }
.dest-right { display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.dest-stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-1) var(--sp-3); color: var(--muted); font-size: 0.9rem; }
.dest-explore { align-self: flex-start; }
.dest-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: var(--sp-3) 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.dest-facts span + span::before { content: "·"; margin-right: var(--sp-2); color: var(--teal); }

/* ---------- 11. University cards ---------- */
.uni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-5);
}
.uni-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-5);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.uni-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--teal); text-decoration: none; }
.uni-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: var(--sp-3);
}
.uni-initial {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-3);
}
.uni-name { margin: 0 0 var(--sp-1); font-size: 1.1rem; color: var(--navy); }
.uni-card:hover .uni-name { color: var(--teal-text); }
.uni-meta { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ---------- 12. Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}
.step {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-5);
}
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--navy);
  font-weight: 800;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-3);
}
.step h3 { margin: 0 0 var(--sp-2); }
.step p { margin: 0; color: var(--muted); }

/* ---------- 13. CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-dark) 70%, var(--teal-dark) 130%);
  color: #fff;
  border-radius: var(--radius);
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 220px at 85% 15%, rgba(24, 182, 164, 0.35), transparent 65%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: var(--sp-2); }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 38rem; margin: 0 auto var(--sp-5); }
.cta-band .btn { margin: var(--sp-1); }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
  margin-top: var(--sp-5);
}

/* ---------- 14. Country subnav (country pages) ---------- */
.country-nav { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }
.country-nav a {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  background: var(--bg);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.country-nav a:hover, .country-nav a.current { border-color: var(--teal); color: var(--teal-text); background: var(--teal-tint); text-decoration: none; }

/* ---------- 15. Tables ---------- */
.table { width: 100%; border-collapse: collapse; margin: var(--sp-5) 0; font-size: 0.98rem; }
.table th, .table td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.table th { color: var(--navy); font-weight: 700; white-space: nowrap; }
.table.facts { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.table.facts tbody tr:nth-child(even) { background: var(--bg-soft); }
.table.facts th { width: 38%; background: var(--bg-soft); }

/* ---------- 16. Prose (guides, legal pages) ---------- */
.prose { max-width: 46rem; }
.prose h2 { margin-top: var(--sp-6); }
.prose h3 { margin-top: var(--sp-5); }
.prose img { border-radius: var(--radius-sm); margin: var(--sp-4) 0; }
.prose blockquote {
  border-left: 4px solid var(--teal);
  margin: var(--sp-4) 0;
  padding: var(--sp-2) var(--sp-4);
  color: var(--muted);
  background: var(--bg-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose li { margin-bottom: var(--sp-1); }

/* ---------- 17. Breadcrumbs ---------- */
.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: var(--sp-4);
}
.crumb a { color: var(--navy); text-decoration: none; }
.crumb a:hover { color: var(--teal-text); text-decoration: underline; }
.crumb li { list-style: none; }
.crumb ol, .crumb ul { display: contents; margin: 0; padding: 0; }
.crumb [aria-current="page"] { color: var(--ink); font-weight: 600; }
.crumb .sep { color: var(--border); }

/* ---------- 18. Apply bar & tuition ---------- */
.apply-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  background: var(--teal-tint);
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-5);
  margin: var(--sp-5) 0;
}
.apply-bar .btn { margin-left: auto; }

.tuition {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
}
.tuition small { display: block; font-size: 0.85rem; font-weight: 500; color: var(--muted); }

.deadline { color: #7a271a; font-weight: 700; }

/* ---------- 19. Badges, link lists, group titles ---------- */
.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 999px;
  background: var(--teal-tint);
  color: var(--teal-text);
  border: 1px solid var(--teal);
}

.link-list { list-style: none; margin: 0 0 var(--sp-5); padding: 0; }
.link-list li { padding: 0.55rem 0; border-bottom: 1px solid var(--border); }
.link-list li:last-child { border-bottom: 0; }
.link-list a { text-decoration: none; font-weight: 600; color: var(--navy); }
.link-list a:hover { color: var(--teal-text); }

.group-title {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-text);
  margin: var(--sp-6) 0 var(--sp-3);
}

/* ---------- 20. Info grid / profile ---------- */
.info-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); margin-top: var(--sp-5); }
.info-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-5);
  background: var(--bg-soft);
}
.info-card h3 { margin-bottom: var(--sp-2); }

.profile-head { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: flex-start; margin-bottom: var(--sp-4); }
.profile-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  padding: 6px;
}

/* ---------- 21. Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-4) 0; }
.filters select, .filters input[type="search"] {
  padding: 0.55rem 0.8rem;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
}
.filters select:focus, .filters input[type="search"]:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(16, 45, 85, 0.15);
}

/* ---------- 22. Forms ---------- */
.form { max-width: 640px; }
.form-row { margin-bottom: var(--sp-4); }
.form-row label { display: block; font-weight: 600; margin-bottom: var(--sp-1); color: var(--navy-ink); }
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(16, 45, 85, 0.15);
}
.form-row .help { font-size: 0.85rem; color: var(--muted); margin-top: var(--sp-1); }

/* ---------- 23. Alerts ---------- */
.alert { border-radius: var(--radius); padding: var(--sp-4) var(--sp-5); margin: var(--sp-4) 0; border: 1px solid; }
.alert h1, .alert h2 { font-size: 1.25rem; }
.alert-success { background: #ecfdf3; border-color: #a6e9c5; color: #14532d; }
.alert-error { background: #fef3f2; border-color: #f5b8b1; color: #7a271a; }
.alert-info { background: #eff6ff; border-color: #bfd6f6; color: #1e3a8a; }
.alert ul { margin: var(--sp-2) 0; padding-left: 1.25rem; }

/* ---------- 24. Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-6) 0; align-items: center; }
.pagination a, .pagination .page {
  min-width: 2.5rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.8rem;
  text-align: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  background: var(--bg);
}
.pagination a:hover { border-color: var(--teal); color: var(--teal-text); }
.pagination .current { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination .prev, .pagination .next { font-weight: 700; }
.pagination .ellipsis { color: var(--muted); padding: 0.45rem 0.25rem; }

/* ---------- 25. Footer ---------- */
.site-footer { background: var(--navy-ink); color: rgba(255, 255, 255, 0.78); margin-top: var(--sp-8); }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  padding: var(--sp-8) 0 var(--sp-6);
}
.footer-col h4 { color: #fff; font-size: 0.95rem; letter-spacing: 0.04em; margin-bottom: var(--sp-3); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: var(--sp-2); }
.footer-col a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.footer-col a:hover { color: var(--teal); text-decoration: underline; }
.footer-tag { font-size: 0.95rem; max-width: 26rem; margin-top: var(--sp-3); }

/* Footer brand: the official logo has a white background — present it as a chip on the dark footer. */
.site-footer .brand-name { color: #fff; }
.site-footer .brand img {
  background: #fff;
  border-radius: 6px;
  padding: 4px 10px;
  height: 36px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: var(--sp-4) 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: space-between;
}

/* ---------- 26. FAQ accordion (main.js) ---------- */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: var(--sp-2); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: transparent;
  border: 0;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
}
.faq-question::after { content: "+"; color: var(--teal-text); font-size: 1.4rem; line-height: 1; }
.faq-item.open .faq-question::after { content: "–"; }
.faq-answer { display: none; padding: 0 var(--sp-4) var(--sp-4); color: var(--muted); }
.faq-item.open .faq-answer { display: block; }

/* ---------- 27. Live-filter note ---------- */
.live-filter-note { font-size: 0.85rem; color: var(--muted); margin-top: var(--sp-2); }

/* ---------- 28. Responsive ---------- */
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(4, 1fr); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
  .finder-row { grid-template-columns: repeat(3, 1fr); align-items: end; }
  .finder-field-wide { grid-column: span 3; }
  .finder-field-pills { grid-column: 1 / -1; }
  .finder-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); margin-top: var(--sp-3); }
  .finder-row-actions .finder-submit { margin-left: auto; flex: none; }
  .finder-submit { align-self: auto; }
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .main-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: var(--sp-1);
    margin-left: auto;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .nav-link, .dropdown-toggle {
    width: auto;
    padding: var(--sp-2) var(--sp-3);
    border-radius: 0;
    background-image: linear-gradient(var(--teal), var(--teal));
    background-size: 0% 2px;
    background-position: left calc(100% - 2px);
    background-repeat: no-repeat;
    transition: background-size 0.2s ease, color 0.15s ease, background-color 0.15s ease;
  }
  /* Teal underline grow on hover (desktop) */
  .nav-link:hover, .dropdown-toggle:hover { background-size: 100% 2px; background-color: transparent; color: var(--teal-text); }

  .nav-cta { margin-top: 0; margin-left: var(--sp-2); }

  /* Floating dropdown panel on desktop */
  .dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    padding: var(--sp-2);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 200;
  }
  .dropdown li a { padding: var(--sp-2) var(--sp-3); }
  .dropdown li a:hover { background: var(--bg-soft); }

  .steps { grid-template-columns: repeat(4, 1fr); }
  .footer-inner { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

@media (max-width: 480px) {
  /* NOTE: .section is combined with .wrap on most sections (<section class="wrap section">).
     Only shrink the VERTICAL padding here — a padding shorthand would wipe out
     .wrap's side padding and pin headings/cards to the viewport edge. */
  .section { padding-top: var(--sp-6); padding-bottom: var(--sp-6); }
  .hero { padding: var(--sp-6) 0 var(--sp-5); }
  /* Compact finder on phones: tighter card, 2-column fields, smaller inputs */
  .finder { padding: var(--sp-2); margin-top: var(--sp-3); }
  .finder-row { grid-template-columns: 1fr 1fr; gap: 0.4rem; }
  .finder-field-wide, .finder-field-pills { grid-column: span 2; }
  .finder-field { gap: 0.15rem; }
  .finder-field label, .finder-label { font-size: 0.58rem; }
  .finder-input, .finder-select { padding: 0.42rem 0.6rem; font-size: 0.85rem; border-radius: 7px; }
  .pill-group { gap: 0.3rem; }
  .pill span { min-height: 30px; padding: 0.25rem 0.65rem; font-size: 0.6rem; }
  .hero-title { font-size: 1.45rem; margin-bottom: var(--sp-3); }
  .finder-row-actions { grid-template-columns: 1fr; gap: var(--sp-1); margin-top: var(--sp-2); }
  .finder-check { min-height: 32px; font-size: 0.78rem; gap: var(--sp-2); }
  .finder-check input[type="checkbox"] { width: 1rem; height: 1rem; }
  .finder-submit { padding: 0.65rem 1.2rem; }
  /* Smaller course cards on phones */
  .fc-card { padding: var(--sp-2) var(--sp-3); gap: var(--sp-1); border-radius: 10px; }
  .fc-card::before { height: 2px; }
  .fc-scholar-strip { margin: calc(-1 * var(--sp-2)) calc(-1 * var(--sp-3)) var(--sp-1); padding: 0.3rem var(--sp-3); font-size: 0.66rem; }
  .fc-title { font-size: 0.9rem; }
  .fc-uni, .fc-meta { font-size: 0.78rem; }
  .fc-badge { font-size: 0.64rem; padding: 0.14rem 0.5rem; }
  .fc-cta { font-size: 0.82rem; min-height: 40px; padding: 0.25rem 0; }
  .fc-page { min-width: 40px; min-height: 40px; font-size: 0.85rem; }
  /* Autocomplete suggestions fit small screens */
  .finder-suggest-item { padding: 0.45rem 0.6rem; }
  .finder-suggest-name { font-size: 0.8rem; }
  .finder-suggest-sub { font-size: 0.7rem; }
  /* Full-bleed rounded band needs side margins on phones */
  .cta-band { margin-left: var(--sp-4); margin-right: var(--sp-4); }
  .apply-bar .btn { margin-left: 0; width: 100%; }
  .btn-lg { padding: 0.75rem 1.4rem; font-size: 1rem; }
  .table th, .table td { padding: 0.55rem 0.6rem; font-size: 0.92rem; }
}

/* Wide tables (English requirements, facts) scroll instead of overflowing */
@media (max-width: 720px) {
  .table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table th { white-space: normal; }
}

/* ---------- 29. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- 30. Custom searchable dropdowns (finder selects) ---------- */
/* The native <select> stays in the form as the data source; JS builds this
   styled button + searchable panel on top of it. */
.cselect { position: relative; width: 100%; }
.cselect-native { display: none; }
.cselect-btn {
  width: 100%;
  margin: 0;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
  padding: 0.7rem 0.9rem;
  font-size: 1rem; font-family: inherit; font-weight: 400; color: var(--ink); text-align: left;
  background: var(--bg);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cselect-btn:hover { border-color: var(--teal); }
.cselect-btn:focus-visible { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(16, 45, 85, 0.15); }
.cselect-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cselect-btn::after {
  content: ""; flex: none;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 6px solid var(--muted);
  transition: transform 0.18s ease;
}
.cselect.open .cselect-btn { border-color: var(--teal); }
.cselect.open .cselect-btn::after { transform: rotate(180deg); }
.cselect-panel {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 320;
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-lg); overflow: hidden;
  animation: cselect-pop 0.15s ease;
}
.cselect-panel[hidden] { display: none; }
@keyframes cselect-pop {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.cselect-search {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem; font-family: inherit; color: var(--ink);
  background: var(--bg);
  border: 0; border-bottom: 1px solid var(--border);
}
.cselect-search::placeholder { color: var(--muted); }
.cselect-search:focus { outline: none; border-bottom-color: var(--teal); box-shadow: inset 0 -2px 0 var(--teal); }
.cselect-list { max-height: 264px; overflow-y: auto; padding: 0.3rem; }
.cselect-opt {
  display: flex; align-items: center; gap: 0.6rem; width: 100%;
  min-height: 44px; padding: 0.55rem 0.8rem; margin: 0;
  background: none; border: 0; border-radius: 8px;
  font-family: inherit; font-size: 0.95rem; color: var(--ink); text-align: left;
  cursor: pointer;
}
.cselect-opt:hover { background: var(--teal-tint); }
.cselect-opt.selected { background: var(--teal-tint); font-weight: 700; color: var(--navy); }
.cselect-opt .tick { margin-left: auto; color: var(--teal-text); font-weight: 800; flex: none; }
.cselect-empty { padding: 0.9rem; color: var(--muted); font-size: 0.9rem; text-align: center; margin: 0; }
@media (max-width: 480px) {
  .cselect-btn { padding: 0.42rem 0.6rem; font-size: 0.85rem; border-radius: 7px; }
  .cselect-opt { font-size: 0.88rem; }
  .cselect-search { font-size: 0.88rem; padding: 0.55rem 0.75rem; }
}

/* ---------- 31. Finder card restyle: cooler, pixel-aligned ---------- */
.finder {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  border-radius: 18px;
  box-shadow: 0 24px 48px rgba(11, 33, 64, 0.18);
}
/* Labels: clean navy, letterspaced — no decorative markers. */
.finder-field label, .finder-label {
  color: var(--navy); font-size: 0.72rem; letter-spacing: 0.09em;
}
/* Inputs: soft tint resting, white + teal ring on focus */
.finder-input, .finder-select, .cselect-btn {
  background: var(--bg-soft);
  border-radius: 10px;
}
.finder-input:focus, .finder-select:focus {
  background: var(--bg);
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(24, 182, 164, 0.18);
}
.cselect.open .cselect-btn {
  background: var(--bg);
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(24, 182, 164, 0.18);
}
/* Submit: teal gradient, navy text, lift on hover */
.finder-submit {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  border: 0;
  border-radius: 10px;
  color: var(--navy);
  box-shadow: 0 10px 22px rgba(24, 182, 164, 0.35);
}
.finder-submit:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(11, 33, 64, 0.3);
}
/* Results jump target: stop just below the sticky header */
.finder-results { scroll-margin-top: calc(var(--header-h) + 12px); }
@media (max-width: 480px) {
  .hero-title { text-align: center; }
  .finder { border-radius: 16px; }
  .finder-field label, .finder-label { font-size: 0.58rem; letter-spacing: 0.07em; }
  /* The three tick boxes: smaller, stacked with no row gap */
  .finder-row-actions { gap: 0; margin-top: var(--sp-1); }
  .finder-check { min-height: 28px; font-size: 0.72rem; }
  .finder-check input[type="checkbox"] { width: 0.9rem; height: 0.9rem; }
  .finder-row-actions .finder-submit { margin-top: var(--sp-2); }
}

/* FIX 20261018-3: animated loading spinner for course search / pagination. */
.finder-loading {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.finder-loading::after {
  content: "";
  display: block;
  width: 32px; height: 32px;
  margin: 0.8rem auto 0;
  border: 3px solid var(--border);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: finder-spin 0.8s linear infinite;
}
@keyframes finder-spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   PREMIUM REDESIGN · 2026-10-18
   Layered on top of the design system above. Same cascade wins.
   Brand: navy #102D55 + teal #18B6A4. Mobile-first.
   ============================================================ */

/* ---------- P1. Kicker + premium section heads ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-text);
  margin: 0 0 0.6rem;
}
.kicker::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-teal);
}
.kicker.on-dark { color: #5eead4; }
.section-head.premium { flex-direction: column; align-items: flex-start; gap: 0.25rem; margin-bottom: var(--sp-6); }
.section-head.premium h2 { font-size: clamp(1.65rem, 3.4vw, 2.3rem); }
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 44rem; margin: 0.35rem 0 0; }

/* ---------- P2. Premium home hero ---------- */
.hero-home {
  padding: 3.6rem 0 3.4rem;
  background:
    radial-gradient(720px 380px at 88% -8%, rgba(24, 182, 164, 0.32), transparent 62%),
    radial-gradient(560px 420px at -10% 110%, rgba(24, 182, 164, 0.14), transparent 60%),
    linear-gradient(150deg, #163a6e 0%, var(--navy) 42%, #0a1e3d 100%);
}
/* Dotted world-map-ish texture */
.hero-home::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1.6px);
  background-size: 26px 26px;
  mask-image: radial-gradient(560px 340px at 78% 18%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(560px 340px at 78% 18%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-badge {
  display: flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 0.55rem;
  margin: 0 auto 1.1rem;
  padding: 0.42rem 0.95rem 0.42rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #eaf6f4;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(24, 182, 164, 0.55);
  animation: pulse-dot 2.2s ease-out infinite;
  flex: none;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(24, 182, 164, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(24, 182, 164, 0); }
  100% { box-shadow: 0 0 0 0 rgba(24, 182, 164, 0); }
}
.hero-title {
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-wrap: balance;
  max-width: 18ch;
}
.hero-title .grad {
  background: linear-gradient(92deg, #5eead4 0%, var(--teal) 55%, #7df0dd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead { font-size: clamp(1.02rem, 2.4vw, 1.22rem); color: rgba(255, 255, 255, 0.82); max-width: 42rem; }
/* Finder floats as a premium glass card on the hero */
.hero-home .finder {
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  box-shadow: var(--shadow-xl), 0 2px 0 rgba(255, 255, 255, 0.6) inset;
  padding: 1.6rem var(--sp-6);
}
/* Trust row under the finder */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 1.1rem;
  padding: 0;
  list-style: none;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}
.hero-trust li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #06251f;
  background: var(--grad-teal);
  border-radius: 50%;
  flex: none;
}

/* ---------- P3. Premium country hero ---------- */
.hero-country {
  padding: 3.4rem 0 2.8rem;
  background:
    radial-gradient(640px 320px at 90% 0%, rgba(24, 182, 164, 0.3), transparent 62%),
    linear-gradient(150deg, #163a6e 0%, var(--navy) 48%, #0a1e3d 100%);
  overflow: hidden;
}
.hero-country::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1.6px);
  background-size: 24px 24px;
  mask-image: radial-gradient(480px 300px at 85% 10%, #000 25%, transparent 72%);
  -webkit-mask-image: radial-gradient(480px 300px at 85% 10%, #000 25%, transparent 72%);
  pointer-events: none;
}
.hero-country h1 {
  font-size: clamp(2rem, 5.4vw, 3rem);
  letter-spacing: -0.025em;
  margin-bottom: 0.6rem;
}
.hero-country .crumb { color: rgba(255, 255, 255, 0.65); }
.hero-country .crumb a { color: #7df0dd; }
.country-nav { margin-top: 1.4rem; }
.country-nav a {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #eaf6f4;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.country-nav a:hover, .country-nav a.current {
  background: var(--grad-teal);
  border-color: transparent;
  color: #06251f;
}

/* ---------- P4. Premium stats band ---------- */
.stats-band {
  background: linear-gradient(180deg, #0d2547 0%, var(--navy-ink) 100%);
  border-top: 1px solid rgba(24, 182, 164, 0.25);
  border-bottom: 1px solid rgba(24, 182, 164, 0.25);
  padding: 2.6rem 0;
  position: relative;
  overflow: hidden;
}
.stats-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 200px at 50% 0%, rgba(24, 182, 164, 0.16), transparent 70%);
  pointer-events: none;
}
.stat-row { position: relative; }
.stat-row > div { position: relative; padding: 0.4rem 0.6rem; }
.stat-row > div + div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(24, 182, 164, 0.4), transparent);
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff 30%, #9fd8cf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { color: #7df0dd; font-size: 0.78rem; letter-spacing: 0.12em; }

/* ---------- P5. Premium destination cards (horizontal layout kept) ---------- */
.dest-grid { gap: 1.25rem; }
.dest-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
/* Teal top-edge accent that grows on hover */
.dest-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.25rem;
  right: 1.25rem;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--grad-teal);
  transform: scaleX(0.28);
  transform-origin: left center;
  transition: transform 0.28s ease;
}
.dest-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(24, 182, 164, 0.35);
  border-color: rgba(24, 182, 164, 0.5);
}
.dest-card:hover::before { transform: scaleX(1); }
.dest-left { min-width: 96px; }
.dest-flag {
  font-size: 2.9rem;
  width: 4.4rem;
  height: 4.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 32% 28%, #ffffff 0%, var(--teal-tint) 78%);
  border: 1px solid rgba(24, 182, 164, 0.3);
  border-radius: 50%;
  filter: none;
  box-shadow: var(--shadow-xs);
}
.dest-name { font-family: var(--font-display); font-size: 1.12rem; letter-spacing: -0.01em; }
.dest-divider {
  background: repeating-linear-gradient(to bottom, rgba(24, 182, 164, 0.45) 0 5px, transparent 5px 11px);
  width: 2px;
}
.dest-stats { font-size: 0.88rem; }
.dest-stats > span {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: var(--ink);
  font-weight: 500;
}
.dest-stats > span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad-teal);
  flex: none;
}
.dest-explore {
  border-width: 1.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.5rem 1.15rem;
  transition: all 0.2s ease;
}
.dest-card:hover .dest-explore {
  background: var(--grad-teal);
  border-color: transparent;
  color: #06251f;
  box-shadow: 0 8px 18px rgba(24, 182, 164, 0.35);
}

/* ---------- P6. Premium generic + university cards ---------- */
.card {
  border-radius: 16px;
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(24, 182, 164, 0.5);
}
a.card.card-link::after {
  content: "→";
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal-text);
  font-weight: 800;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
a.card.card-link:hover::after { opacity: 1; transform: translateX(0); }
.card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}
.card-kicker::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--grad-teal);
  flex: none;
}
/* University cards: logo in a soft tile */
.uni-card { border-radius: 16px; box-shadow: var(--shadow-xs); }
.uni-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: rgba(24, 182, 164, 0.5); }
.uni-initial, .uni-logo {
  width: 60px;
  height: 60px;
  border-radius: 16px;
}
.uni-initial {
  background: var(--grad-navy);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-display);
}
.uni-logo {
  object-fit: contain;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 6px;
}
.uni-name { font-weight: 800; letter-spacing: -0.01em; }

/* ---------- P7. Premium "How it works" steps ---------- */
.steps { gap: 1.25rem; position: relative; }
.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-xs);
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(24, 182, 164, 0.5); }
.step-num {
  width: 52px;
  height: 52px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  background: var(--grad-teal);
  color: #06251f;
  box-shadow: 0 10px 20px rgba(24, 182, 164, 0.35);
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.12rem; letter-spacing: -0.01em; }
@media (min-width: 1024px) {
  /* Dashed connector line behind the step numbers */
  .steps::before {
    content: "";
    position: absolute;
    top: 3.35rem;
    left: 12%;
    right: 12%;
    border-top: 2px dashed rgba(24, 182, 164, 0.45);
    pointer-events: none;
  }
  .step-num { position: relative; z-index: 1; }
}

/* ---------- P8. Premium CTA band ---------- */
.cta-band {
  border-radius: 24px;
  padding: 3.4rem 2rem;
  background:
    radial-gradient(480px 260px at 88% 8%, rgba(24, 182, 164, 0.4), transparent 65%),
    radial-gradient(380px 220px at 8% 95%, rgba(24, 182, 164, 0.16), transparent 60%),
    linear-gradient(130deg, #163a6e 0%, var(--navy) 50%, #0a1e3d 100%);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(24, 182, 164, 0.3);
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1.6px);
  background-size: 24px 24px;
  mask-image: radial-gradient(420px 220px at 85% 15%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(420px 220px at 85% 15%, #000 20%, transparent 70%);
  pointer-events: none;
}
.cta-band h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); letter-spacing: -0.02em; }
.cta-band p { font-size: 1.05rem; }

/* ---------- P9. Premium buttons ---------- */
.btn { border-radius: 12px; font-family: var(--font-display); letter-spacing: 0.01em; }
.btn-primary {
  background: var(--grad-navy);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 22px rgba(11, 33, 64, 0.35), 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}
.btn-primary:hover {
  background: var(--grad-teal);
  border-color: transparent;
  color: #06251f;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(24, 182, 164, 0.4);
}
.btn-outline { border-radius: 999px; }
.btn-lg { border-radius: 14px; padding: 0.95rem 2.1rem; }

/* ---------- P10. Premium header ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border), 0 8px 24px rgba(16, 45, 85, 0.06);
}
.nav-link, .dropdown-toggle { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; }
.nav-cta {
  background: var(--grad-teal);
  border: 1px solid transparent;
  color: #06251f;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(24, 182, 164, 0.35);
}
.nav-cta:hover {
  background: var(--grad-navy);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(11, 33, 64, 0.35);
}

/* ---------- P11. Premium footer ---------- */
.site-footer {
  background:
    radial-gradient(600px 240px at 12% 0%, rgba(24, 182, 164, 0.12), transparent 60%),
    linear-gradient(180deg, #0d2547 0%, #070f22 100%);
  border-top: 1px solid rgba(24, 182, 164, 0.25);
  margin-top: 4rem;
}
.footer-inner { padding: 3.4rem 0 2.4rem; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7df0dd;
  margin-bottom: 1rem;
}
.footer-col a { transition: color 0.15s ease, padding-left 0.15s ease; }
.footer-col a:hover { color: #7df0dd; text-decoration: none; padding-left: 3px; }
.footer-tag { color: rgba(255, 255, 255, 0.62); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); }

/* ---------- P12. Reveal-on-scroll (JS adds .js to <html>) ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.65s ease, transform 0.65s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: 0.08s; }
.js .reveal-d2 { transition-delay: 0.16s; }
.js .reveal-d3 { transition-delay: 0.24s; }

/* ---------- P13. Detail pages ---------- */
/* Course detail: premium apply bar */
.apply-bar {
  background: linear-gradient(120deg, #f2faf8 0%, #e6f8f5 100%);
  border: 1px solid rgba(24, 182, 164, 0.45);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 1.25rem 1.5rem;
}
/* Facts table: card-like */
.table.facts {
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.table.facts th {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.table.facts td { font-weight: 500; color: var(--navy-ink); }
/* University profile header as a premium card */
.profile-head {
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  align-items: center;
}
.profile-head h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.profile-logo {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
/* Breadcrumb pill on detail pages */
.crumb {
  display: inline-flex;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 1rem;
}
.hero-country .crumb { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); }

/* ---------- P14. Search + list pages ---------- */
.search-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 1rem;
  align-items: center;
}
.search-form input[type="search"] {
  border-radius: 12px;
  background: var(--bg-soft);
}
.search-form input[type="search"]:focus { background: #fff; border-color: var(--teal); box-shadow: var(--ring-teal); }
/* Filter pills on list pages */
.filters select, .filters input[type="search"] { border-radius: 999px; background: var(--bg-soft); }
.filters select:focus, .filters input[type="search"]:focus { background: #fff; border-color: var(--teal); box-shadow: var(--ring-teal); }

/* ---------- P15. Forms (consultation, portals) ---------- */
.form-row input, .form-row textarea, .form-row select { border-radius: 12px; background: var(--bg-soft); }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  background: #fff;
  border-color: var(--teal);
  box-shadow: var(--ring-teal);
}
/* Finder inputs share the premium focus */
.finder-input:focus, .cselect.open .cselect-btn {
  border-color: var(--teal);
  box-shadow: var(--ring-teal);
}

/* ---------- P16. Finder course cards: premium ---------- */
.fc-card {
  border-radius: 16px;
  box-shadow: var(--shadow-xs);
}
.fc-card:hover { box-shadow: var(--shadow-md); border-color: rgba(24, 182, 164, 0.55); }
.fc-title { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; }
.fc-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--teal-tint);
  border: 1px solid rgba(24, 182, 164, 0.4);
  border-radius: 999px;
  padding: 0.45rem 1.05rem;
  font-size: 0.85rem;
  min-height: 0;
  margin-top: 0.25rem;
  transition: all 0.18s ease;
}
.fc-cta:hover {
  background: var(--grad-teal);
  border-color: transparent;
  color: #06251f;
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(24, 182, 164, 0.3);
}
.fc-page { border-radius: 12px; }
.fc-page-current, .fc-page-current:disabled {
  background: var(--grad-navy);
  box-shadow: 0 6px 14px rgba(11, 33, 64, 0.3);
}

/* ---------- P17. Info cards, alerts, guides ---------- */
.info-card {
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.info-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.info-card h3 { font-size: 1.02rem; display: flex; align-items: center; gap: 0.5rem; }
.info-card h3::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--grad-teal);
  flex: none;
}
.alert { border-radius: 16px; box-shadow: var(--shadow-xs); }
.link-list li a { display: flex; align-items: center; gap: 0.6rem; }
.link-list li a::before {
  content: "→";
  color: var(--teal-text);
  font-weight: 800;
  transition: transform 0.15s ease;
}
.link-list li a:hover::before { transform: translateX(3px); }
.group-title { font-family: var(--font-display); }

/* ---------- P18. Premium mobile refinements ---------- */
@media (max-width: 720px) {
  .hero-home { padding: 2.3rem 0 2.4rem; }
  .hero-title { max-width: none; }
  .hero-badge { font-size: 0.74rem; }
  .hero-trust { gap: 0.45rem 1rem; }
  .hero-trust li { font-size: 0.8rem; }
  .dest-card { padding: 1rem; gap: 0.9rem; border-radius: 16px; }
  .dest-flag { width: 3.6rem; height: 3.6rem; font-size: 2.2rem; }
  .dest-left { min-width: 78px; }
  .dest-name { font-size: 1rem; }
  .dest-stats { font-size: 0.8rem; gap: 0.3rem 0.6rem; }
  .stat-row > div + div::before { display: none; }
  .profile-head { padding: 1.1rem; border-radius: 16px; }
  .cta-band { border-radius: 20px; padding: 2.4rem 1.4rem; }
  .step { padding: 1.4rem 1.2rem; }
}
@media (min-width: 720px) {
  .hero-home .hero-inner { max-width: 52rem; }
  .dest-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
}

/* ---------- P19. Print: hide decorative layers ---------- */
@media print {
  .hero-home::after, .hero-country::after, .cta-band::after { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* FIX 20261018-5: Finder button text visibility + mobile fit */
.finder-submit {
  color: var(--navy) !important;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%) !important;
  border: 0 !important;
  width: 100%;
  white-space: nowrap;
  overflow: visible;
}
@media (max-width: 480px) {
  .finder { width: 100%; max-width: 100%; box-sizing: border-box; overflow: hidden; }
  .finder-row { grid-template-columns: 1fr 1fr !important; gap: 0.5rem !important; }
  .finder-field-wide { grid-column: span 2 !important; }
  .finder-field-pills { grid-column: span 2 !important; }
  .finder-row-actions { grid-template-columns: 1fr !important; width: 100%; }
  .finder-submit { width: 100%; padding: 0.8rem 1rem; font-size: 1rem; }
  .finder-check { width: 100%; box-sizing: border-box; }
}

/* FIX 20261019-1: Hero title two-line layout */
.hero-br { display: inline; }
@media (max-width: 480px) {
  .hero-title { font-size: 1.6rem; line-height: 1.25; }
}

/* FIX 20261019-2: Destination cards polish per Wahid feedback */
/* Side spacing for cards */
.dest-grid { padding: 0 0.5rem; }
/* Stronger card shadows */
.dest-card {
  box-shadow: 0 4px 16px rgba(11, 33, 64, 0.08), 0 1px 4px rgba(11, 33, 64, 0.06);
  margin: 0 0.25rem;
}
.dest-card:hover {
  box-shadow: 0 12px 32px rgba(11, 33, 64, 0.15), 0 4px 12px rgba(24, 182, 164, 0.15);
}
/* Cooler, smaller Explore button */
.dest-explore {
  font-size: 0.82rem !important;
  padding: 0.42rem 1rem !important;
  background: linear-gradient(135deg, rgba(24,182,164,0.12) 0%, rgba(24,182,164,0.05) 100%);
  border: 1.5px solid var(--teal) !important;
  color: var(--teal-text) !important;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(24, 182, 164, 0.15);
}
.dest-card:hover .dest-explore {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(24, 182, 164, 0.4);
}
/* Explore all countries button */
.dest-all-wrap { text-align: center; margin-top: 1.5rem; padding: 0 0.5rem; }
.btn-explore-all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, #1a4a7a 100%);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(11, 33, 64, 0.25);
  transition: all 0.2s ease;
}
.btn-explore-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(11, 33, 64, 0.35);
  color: #fff;
  text-decoration: none;
}

/* FIX 20261019-3: Side spacing on country pages */
.hero-country .wrap, section.wrap { padding-left: 1.25rem; padding-right: 1.25rem; }
.info-card { margin-left: 0.25rem; margin-right: 0.25rem; }
.stat-row { padding-left: 0.25rem; padding-right: 0.25rem; }

/* FIX 20261019-4: Admission cards — logos, side spacing, actions */
.adm-grid { padding: 0 0.25rem; }
.adm-card {
  margin: 0 0.25rem;
  box-shadow: 0 4px 16px rgba(11, 33, 64, 0.08), 0 1px 4px rgba(11, 33, 64, 0.06);
}
.adm-logo { display: block; margin-bottom: 0.75rem; }
.adm-logo img {
  height: 3rem;
  width: auto;
  max-width: 11rem;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}
.adm-actions { display: flex; gap: 0.6rem; margin-top: 1rem; flex-wrap: wrap; }
.adm-actions .btn { flex: 1 1 auto; text-align: center; min-width: 7rem; }

/* FIX 20261019-5: Country page restructure — new sections */
/* University cards with logos */
.uni-grid { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.uni-card { display: flex; flex-direction: column; }
.uni-card-logo { display: block; margin-bottom: 0.6rem; }
.uni-card-logo img {
  height: 2.75rem; width: auto; max-width: 10rem;
  object-fit: contain; border-radius: 8px; background: #fff;
}
/* Process steps */
.process-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.process-steps li {
  display: flex; gap: 0.9rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 0.9rem 1.1rem;
  box-shadow: 0 2px 10px rgba(11, 33, 64, 0.06);
}
.step-num {
  flex: none; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--grad-teal); color: #06251f;
  font-weight: 800; font-size: 0.9rem;
  display: inline-flex; align-items: center; justify-content: center;
}
/* Scholarship cards */
.sch-grid { grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.sch-card { position: relative; overflow: hidden; }
.sch-badge {
  display: inline-block; font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #7a5b00; background: linear-gradient(135deg, #ffe9a8, #ffd35e);
  border-radius: 999px; padding: 0.22rem 0.7rem; margin-bottom: 0.6rem;
}
/* FAQ accordion */
.faq-list { display: grid; gap: 0.6rem; }
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 0 1.1rem; box-shadow: 0 2px 8px rgba(11, 33, 64, 0.05);
}
.faq-item summary {
  cursor: pointer; font-weight: 700; padding: 0.95rem 0;
  list-style: none; display: flex; align-items: center; gap: 0.6rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "+"; flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--teal-tint); color: var(--teal-text);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800;
}
.faq-item[open] summary::before { content: "–"; }
.faq-item .prose { padding-bottom: 1rem; }
/* Course cards with Apply now */
.course-grid { grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.course-card { display: flex; flex-direction: column; }
.course-card .adm-actions { margin-top: auto; padding-top: 0.75rem; }
/* Side spacing for country page sections */
.hero-country .wrap, section.wrap { padding-left: 1.25rem; padding-right: 1.25rem; }

/* FIX 20261019-6: Premium looks for country Universities / Courses / Scholarships cards */
/* --- Universities --- */
.uni-card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcfb 100%);
  border: 1px solid var(--border); border-radius: 18px;
  padding: 1.25rem 1.15rem;
  box-shadow: 0 4px 16px rgba(11, 33, 64, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.uni-card::before {
  content: ""; position: absolute; top: 0; left: 1.15rem; right: 1.15rem; height: 3px;
  border-radius: 0 0 3px 3px; background: var(--grad-teal);
  transform: scaleX(0.25); transform-origin: left center; transition: transform 0.28s ease;
}
.uni-card:hover { transform: translateY(-4px); border-color: rgba(24,182,164,0.5);
  box-shadow: 0 14px 30px rgba(11, 33, 64, 0.13), 0 4px 12px rgba(24,182,164,0.14); }
.uni-card:hover::before { transform: scaleX(1); }
.uni-card-logo {
  display: flex; align-items: center; justify-content: center;
  height: 4.2rem; margin-bottom: 0.8rem;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 0.5rem; box-shadow: var(--shadow-xs);
}
.uni-card-logo img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.uni-card h3 { font-size: 1.02rem; line-height: 1.35; }
/* --- Courses --- */
.course-card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  padding: 1.2rem 1.15rem;
  box-shadow: 0 4px 16px rgba(11, 33, 64, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.course-card:hover { transform: translateY(-4px); border-color: rgba(24,182,164,0.5);
  box-shadow: 0 14px 30px rgba(11, 33, 64, 0.13); }
.course-card h3 { font-size: 1rem; line-height: 1.4; }
.course-meta { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.55rem 0 0.2rem; }
.course-meta span {
  font-size: 0.72rem; font-weight: 600; color: var(--teal-text);
  background: var(--teal-tint); border-radius: 999px; padding: 0.18rem 0.6rem;
}
.course-card .adm-actions .btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border: none; font-weight: 700;
  box-shadow: 0 4px 12px rgba(24,182,164,0.3);
}
/* --- Scholarships --- */
.sch-card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #fffdf5 0%, #ffffff 60%);
  border: 1px solid #f0e2b6; border-radius: 18px;
  padding: 1.2rem 1.15rem;
  box-shadow: 0 4px 16px rgba(122, 91, 0, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.sch-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #ffd35e, #ff9d5c);
}
.sch-card:hover { transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(122, 91, 0, 0.16); }
.sch-card h3 { font-size: 1rem; line-height: 1.4; }

/* FIX 20261019-7: Flag images instead of emoji on destination cards */
.dest-flag { overflow: hidden; padding: 0; }
.dest-flag img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  display: block;
}

/* FIX 20261019-8: Eligibility checker page */
.elig-form { margin-bottom: 2rem; }
.elig-errors { background: #fef2f2; border: 1px solid #f5c2c2; border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.elig-errors h3 { margin-bottom: 0.5rem; }
.elig-errors ul { margin: 0; padding-left: 1.2rem; }
.elig-verdict { display: flex; gap: 1rem; align-items: flex-start; border-radius: 16px; padding: 1.25rem; margin-bottom: 1.25rem; }
.elig-yes { background: linear-gradient(135deg, #ecfdf5, #d1fae5); border: 1px solid #6ee7b7; }
.elig-warn { background: linear-gradient(135deg, #fffbeb, #fef3c7); border: 1px solid #fcd34d; }
.elig-no { background: linear-gradient(135deg, #fef2f2, #fee2e2); border: 1px solid #f5c2c2; }
.elig-icon {
  flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800; color: #fff;
}
.elig-yes .elig-icon { background: #10b981; }
.elig-warn .elig-icon { background: #f59e0b; }
.elig-no .elig-icon { background: #ef4444; }
.elig-verdict h2 { margin-bottom: 0.25rem; font-size: 1.3rem; }
.elig-verdict p { margin: 0; }
.elig-checks { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: 0.6rem; }
.elig-check {
  display: flex; gap: 0.8rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 0.85rem 1rem; box-shadow: 0 2px 8px rgba(11,33,64,0.05);
}
.elig-dot { flex: none; width: 0.85rem; height: 0.85rem; border-radius: 50%; margin-top: 0.25rem; }
.elig-pass .elig-dot { background: #10b981; }
.elig-warn .elig-dot { background: #f59e0b; }
.elig-fail .elig-dot { background: #ef4444; }
.elig-check strong { display: block; margin-bottom: 0.15rem; }
.elig-check p { margin: 0; font-size: 0.92rem; color: var(--muted); }
.elig-notes { margin-bottom: 1.25rem; }
.elig-courses-head { margin: 1.5rem 0 1rem; }

/* FIX 20261019-9: Reduce card side spacing (Wahid feedback) */
.dest-grid { padding: 0 0.15rem; }
.dest-card { margin: 0; }
.hero-country .wrap, section.wrap { padding-left: 1rem; padding-right: 1rem; }
.adm-grid { padding: 0; }
.adm-card { margin: 0; }
.info-card { margin-left: 0; margin-right: 0; }
.stat-row { padding-left: 0; padding-right: 0; }

/* FIX 20261019-10: Cooler eligibility results */
.elig-result { padding: 0 0.25rem; }
.elig-verdict {
  border-radius: 20px; padding: 1.5rem 1.35rem;
  box-shadow: 0 10px 28px rgba(11, 33, 64, 0.12);
  border: none; position: relative; overflow: hidden;
}
.elig-verdict::before {
  content: ""; position: absolute; top: 0; left: 1.35rem; right: 1.35rem; height: 4px;
  border-radius: 0 0 4px 4px; background: rgba(255,255,255,0.7);
}
.elig-yes { background: linear-gradient(135deg, #059669 0%, #10b981 55%, #34d399 100%); color: #fff; }
.elig-warn { background: linear-gradient(135deg, #d97706 0%, #f59e0b 60%, #fbbf24 100%); color: #fff; }
.elig-no { background: linear-gradient(135deg, #b91c1c 0%, #ef4444 60%, #f87171 100%); color: #fff; }
.elig-yes .elig-icon { background: rgba(255,255,255,0.25); }
.elig-warn .elig-icon { background: rgba(255,255,255,0.25); }
.elig-no .elig-icon { background: rgba(255,255,255,0.25); }
.elig-icon { width: 3.25rem; height: 3.25rem; font-size: 1.6rem; box-shadow: 0 4px 12px rgba(0,0,0,0.18); }
.elig-verdict h2 { color: #fff; font-size: 1.45rem; }
.elig-verdict p { color: rgba(255,255,255,0.92); }
.elig-checks { gap: 0.75rem; padding: 0 0.15rem; }
.elig-check {
  border-radius: 16px; padding: 1rem 1.1rem;
  box-shadow: 0 4px 14px rgba(11, 33, 64, 0.07);
  border: 1px solid var(--border); border-left-width: 4px;
}
.elig-pass { border-left-color: #10b981; }
.elig-warn.elig-check { border-left-color: #f59e0b; }
.elig-fail { border-left-color: #ef4444; }
.elig-dot { width: 1rem; height: 1rem; box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
.elig-check strong { font-size: 1rem; }
.elig-errors { margin-left: 0.25rem; margin-right: 0.25rem; border-radius: 16px; }

/* FIX 20261019-10b: Scope verdict gradients (elig-warn is shared with check items) */
.elig-verdict.elig-yes { background: linear-gradient(135deg, #059669 0%, #10b981 55%, #34d399 100%); color: #fff; }
.elig-verdict.elig-warn { background: linear-gradient(135deg, #d97706 0%, #f59e0b 60%, #fbbf24 100%); color: #fff; }
.elig-verdict.elig-no { background: linear-gradient(135deg, #b91c1c 0%, #ef4444 60%, #f87171 100%); color: #fff; }
.elig-verdict.elig-yes .elig-icon, .elig-verdict.elig-warn .elig-icon, .elig-verdict.elig-no .elig-icon { background: rgba(255,255,255,0.25); }
.elig-check.elig-warn { background: #fff; color: inherit; }
.elig-check.elig-warn strong { color: var(--ink); }
.elig-check.elig-warn p { color: var(--muted); }

/* FIX 20261019-11: Course comparison */
.cmp-toggle.cmp-on {
  background: var(--teal-tint) !important;
  border-color: var(--teal) !important;
  color: var(--teal-text) !important;
  font-weight: 700;
}
.cmp-bar {
  position: fixed; left: 50%; bottom: 1rem; transform: translate(-50%, 150%);
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--navy); color: #fff;
  border-radius: 999px; padding: 0.6rem 0.6rem 0.6rem 1.2rem;
  box-shadow: 0 12px 32px rgba(11, 33, 64, 0.4);
  z-index: 60; transition: transform 0.25s ease;
}
.cmp-bar.show { transform: translate(-50%, 0); }
.cmp-bar-label { font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.cmp-bar-clear {
  background: rgba(255,255,255,0.15); border: none; color: #fff;
  width: 2rem; height: 2rem; border-radius: 50%; cursor: pointer; font-size: 0.9rem;
}
/* Comparison table */
.cmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 16px; }
.cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff;
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden; min-width: 36rem; }
.cmp-table th, .cmp-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.cmp-table thead th { background: linear-gradient(135deg, var(--navy), #1a4a7a); color: #fff; }
.cmp-table thead th:first-child { background: transparent; border: none; }
.cmp-table tbody th { background: #f8fcfb; font-size: 0.85rem; color: var(--muted); white-space: nowrap; width: 11rem; }
.cmp-table tbody tr:last-child th, .cmp-table tbody tr:last-child td { border-bottom: none; }
.cmp-course-name { display: block; font-size: 1rem; }
.cmp-course-uni { display: block; font-size: 0.78rem; font-weight: 400; opacity: 0.85; margin-top: 0.2rem; }
.cmp-apply-row td { background: #f8fcfb; }

/* FIX 20261019-12: Rich course facts list */
.course-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.course-top .card-kicker { margin: 0; }
.course-facts { list-style: none; margin: 0.75rem 0 0.25rem; padding: 0; display: grid; gap: 0.4rem; }
.course-facts li { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.85rem;
  padding: 0.3rem 0; border-bottom: 1px dashed var(--border); }
.course-facts li:last-child { border-bottom: none; }
.course-facts span { color: var(--muted); flex: none; }
.course-facts strong { font-weight: 600; text-align: right; }
.sch-yes { color: #7a5b00; }

/* FIX 20261019-13: University page level headings */
.level-head { margin: 1.75rem 0 1rem; font-size: 1.25rem; }
.level-head:first-of-type { margin-top: 0.5rem; }
.on-dark-link { color: #7df0dd; font-weight: 600; }

/* FIX 20261019-14: Rectangular flag with rounded corners */
.dest-flag {
  width: 5rem !important; height: 3.35rem !important;
  border-radius: 10px !important; overflow: hidden; padding: 0;
  font-size: 0;
}
.dest-flag img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; display: block; }

/* FIX 20261019-15: Compare tray on university cards */
.card-title-link { color: inherit; text-decoration: none; }
.card-title-link:hover { color: var(--teal); }
.cmp-uni-logo { display: block; margin-bottom: 0.5rem; }
.cmp-uni-logo img { max-height: 48px; max-width: 120px; width: auto; object-fit: contain; }
.uni-card .adm-actions { margin-top: 0.9rem; }

/* FIX 20261019-16: Content protection — no text selection on PUBLIC pages only.
   .portal bodies (admin/agent/student) are excluded so portals keep working.
   Form fields stay usable so applications still work. */
body:not(.portal) {
  -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}
body:not(.portal) input, body:not(.portal) textarea, body:not(.portal) select, body:not(.portal) [contenteditable] {
  -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text;
  -webkit-touch-callout: default;
}
body:not(.portal) img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }
body:not(.portal) a img, body:not(.portal) .profile-logo, body:not(.portal) .uni-card-logo img, body:not(.portal) .cmp-uni-logo img { pointer-events: auto; }

/* Screen-reader-only label (kept for accessibility, hidden visually) */
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
