/* ═══════════════════════════════════════════════════════════════════
   UNIVERSITYWEBSITES.CO.ZA — GLOBAL STYLESHEET
   Clean White + Royal Blue | Mobile-first | Lightweight
   ═══════════════════════════════════════════════════════════════════ */

/* ── Variables ────────────────────────────────────────────────────── */
:root {
  --blue:        #1a3c8f;
  --blue-mid:    #2251b8;
  --blue-light:  #e8f0fe;
  --blue-border: #c5d4f8;
  --gold:        #f5a623;
  --gold-light:  #fef3dc;
  --white:       #ffffff;
  --off-white:   #f7f9fc;
  --text:        #1a1a2e;
  --text-mid:    #444466;
  --text-muted:  #6b7280;
  --border:      #e2e8f0;
  --shadow-sm:   0 1px 4px rgba(26,60,143,.08);
  --shadow-md:   0 4px 16px rgba(26,60,143,.12);
  --shadow-lg:   0 8px 32px rgba(26,60,143,.16);
  --radius:      10px;
  --radius-lg:   16px;
  --transition:  0.22s ease;
  --max-w:       1140px;
  --nav-h:       64px;
}

/* ── Reset ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--off-white);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-mid); text-decoration: none; }
a:hover { color: var(--blue); text-decoration: underline; }
ul { list-style: none; }

/* ── Container ────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Topbar ───────────────────────────────────────────────────────── */
.topbar {
  background: var(--blue);
  color: rgba(255,255,255,.75);
  font-size: .78rem;
  letter-spacing: .3px;
  padding: 5px 0;
  text-align: center;
}
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: #fff; text-decoration: none; }

/* ── Header / Nav ─────────────────────────────────────────────────── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 3px solid var(--blue);
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px 0;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 6px;
}
.site-brand img { width: 36px; height: 36px; border-radius: 6px; }
.site-brand span {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -.3px;
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
  padding-bottom: 6px;
}
.site-nav > a,
.nav-dropdown > .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.site-nav > a:hover,
.nav-dropdown > .nav-link:hover,
.site-nav > a.active,
.nav-dropdown.active > .nav-link {
  background: var(--blue-light);
  color: var(--blue);
  text-decoration: none;
}
.site-nav > a i, .nav-link i { font-size: .82rem; }

/* ── Dropdown nav ──────────────────────────────────────────────────── */
.nav-dropdown { position: relative; }
.nav-link { border: none; background: none; font-family: inherit; }
.nav-link .arrow {
  font-size: .7rem;
  margin-left: 2px;
  transition: transform var(--transition);
}
.nav-dropdown:hover .arrow,
.nav-dropdown.open .arrow { transform: rotate(180deg); }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 230px;
  padding: 8px 0;
  z-index: 999;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 9px 18px;
  font-size: .9rem;
  color: var(--text-mid);
  transition: background var(--transition);
}
.dropdown-menu a:hover {
  background: var(--blue-light);
  color: var(--blue);
  text-decoration: none;
}

/* ── Hero / Slideshow ─────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 60%, #1e5bd4 100%);
  color: var(--white);
  text-align: center;
  padding: 70px 20px 50px;
  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.04'%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; max-width: 750px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero p {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  opacity: .9;
  margin-bottom: 30px;
}
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Slideshow */
.slideshow-wrap {
  position: relative;
  background: var(--blue);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: center;
}
.slide {
  display: none;
  padding: 60px 20px;
  text-align: center;
  color: var(--white);
  width: 100%;
  animation: fadeSlide .5s ease;
}
.slide.active { display: block; }
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.slide-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  color: var(--gold);
}
.slide h2 { font-size: 1.5rem; margin-bottom: 10px; }
.slide p  { font-size: .95rem; opacity: .85; max-width: 560px; margin: 0 auto 20px; }
.slide-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
}
.dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: background var(--transition);
  border: none;
}
.dot.active { background: var(--white); }
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: none;
  color: var(--white);
  font-size: 1.2rem;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 6px;
  transition: background var(--transition);
  z-index: 2;
}
.slide-arrow:hover { background: rgba(255,255,255,.3); }
.slide-arrow.prev { left: 12px; }
.slide-arrow.next { right: 12px; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 8px;
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--blue);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: #e6941a;
  border-color: #e6941a;
  color: var(--blue);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  color: var(--white);
  text-decoration: none;
}
.btn-blue {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-blue:hover {
  background: var(--blue-mid);
  border-color: var(--blue-mid);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-sm { padding: 7px 16px; font-size: .84rem; }

/* ── Section headings ──────────────────────────────────────────────── */
.section-head {
  text-align: center;
  margin-bottom: 40px;
}
.section-head h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
}
.section-head p {
  color: var(--text-muted);
  font-size: .97rem;
  max-width: 560px;
  margin: 0 auto;
}
.section-label {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue-mid);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 10px;
}
.divider {
  width: 48px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: 12px auto 0;
}

/* ── Sections ──────────────────────────────────────────────────────── */
.section { padding: 64px 0; }
.section-alt { background: var(--white); }
.section-blue { background: var(--blue-light); }

/* ── University Cards (tile grid) ─────────────────────────────────── */
.uni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.uni-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.uni-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.uni-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.uni-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 4px;
  flex-shrink: 0;
  background: var(--white);
}
.uni-logo-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 1.3rem;
  flex-shrink: 0;
}
.uni-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.uni-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .74rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 100px;
  margin-top: 4px;
}
.badge-open  { background: #dcfce7; color: #166534; }
.badge-closed{ background: #fee2e2; color: #991b1b; }
.badge-info  { background: var(--blue-light); color: var(--blue); }
.uni-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: .85rem;
  color: var(--text-muted);
}
.uni-meta-item { display: flex; flex-direction: column; gap: 1px; }
.uni-meta-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .8px;
  font-weight: 600;
  color: var(--text-mid);
}
.uni-meta-value { color: var(--text); font-weight: 500; }
.uni-card-footer {
  margin-top: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Stat cards ──────────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-card i {
  font-size: 1.7rem;
  color: var(--blue-mid);
  margin-bottom: 10px;
}
.stat-number {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: .82rem; color: var(--text-muted); }

/* ── Feature cards ────────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-mid);
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.feature-card p { font-size: .88rem; color: var(--text-muted); }

/* ── Country tiles (homepage) ────────────────────────────────────── */
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.country-tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 14px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: block;
}
.country-tile:hover {
  border-color: var(--blue-mid);
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.country-tile .flag { font-size: 2.2rem; margin-bottom: 8px; }
.country-tile .cname {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
}
.country-tile .ccount {
  font-size: .76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Programs Accordion ───────────────────────────────────────────── */
.accordion { display: flex; flex-direction: column; gap: 10px; }
.accordion-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: .97rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
}
.accordion-btn:hover { background: var(--blue-light); }
.accordion-btn.open { background: var(--blue-light); color: var(--blue); }
.accordion-icon {
  width: 36px;
  height: 36px;
  background: var(--blue-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: .95rem;
  flex-shrink: 0;
}
.accordion-btn.open .accordion-icon { background: var(--blue); color: var(--white); }
.accordion-arrow {
  margin-left: auto;
  font-size: .85rem;
  transition: transform var(--transition);
  color: var(--text-muted);
}
.accordion-btn.open .accordion-arrow { transform: rotate(180deg); }
.accordion-body {
  display: none;
  padding: 0 20px 20px 70px;
}
.accordion-body.open { display: block; }
.accordion-body p { font-size: .9rem; color: var(--text-muted); margin-bottom: 12px; }
.accordion-body ul { list-style: disc; padding-left: 18px; }
.accordion-body ul li { font-size: .88rem; color: var(--text-muted); margin-bottom: 5px; }
.accordion-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag {
  background: var(--blue-light);
  color: var(--blue-mid);
  font-size: .76rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
}
.tag-gold { background: var(--gold-light); color: #92400e; }

/* ── Qualification page ───────────────────────────────────────────── */
.qual-hero {
  background: linear-gradient(135deg, var(--blue) 0%, #2251b8 100%);
  color: var(--white);
  padding: 50px 20px;
  text-align: center;
}
.qual-hero .level-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--blue);
  font-weight: 700;
  font-size: .82rem;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
  letter-spacing: .5px;
}
.qual-hero h1 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); font-weight: 800; margin-bottom: 10px; }
.qual-hero p  { opacity: .87; font-size: 1rem; max-width: 560px; margin: 0 auto; }
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.info-card h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-card p, .info-card li {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.info-card ul { list-style: disc; padding-left: 16px; }
.info-card li { margin-bottom: 4px; }

/* ── Finance & Tech callout ───────────────────────────────────────── */
.fintech-banner {
  background: linear-gradient(135deg, #0a1628 0%, var(--blue) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.fintech-banner h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.fintech-banner p { font-size: .9rem; opacity: .85; }
@media (max-width: 600px) {
  .fintech-banner { grid-template-columns: 1fr; }
}

/* ── Breadcrumb ────────────────────────────────────────────────────── */
.breadcrumb {
  padding: 12px 0;
  font-size: .83rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.breadcrumb a { color: var(--blue-mid); }
.breadcrumb i { font-size: .7rem; }

/* ── Page hero (inner pages) ──────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
  color: var(--white);
  padding: 48px 20px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 10px;
}
.page-hero p { opacity: .88; font-size: 1rem; max-width: 560px; margin: 0 auto; }
.page-hero .flag { font-size: 2.8rem; margin-bottom: 14px; }

/* ── Content prose ────────────────────────────────────────────────── */
.prose h2 { font-size: 1.25rem; color: var(--blue); margin: 24px 0 10px; font-weight: 700; }
.prose h3 { font-size: 1rem; color: var(--text); margin: 18px 0 8px; font-weight: 600; }
.prose p  { font-size: .92rem; color: var(--text-muted); margin-bottom: 12px; line-height: 1.7; }
.prose ul { list-style: disc; padding-left: 20px; margin-bottom: 12px; }
.prose li { font-size: .9rem; color: var(--text-muted); margin-bottom: 5px; }

/* ── Table ────────────────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  margin-bottom: 24px;
}
.data-table th {
  background: var(--blue);
  color: var(--white);
  padding: 11px 14px;
  text-align: left;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .3px;
}
.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.data-table tr:nth-child(even) td { background: var(--off-white); }
.data-table tr:hover td { background: var(--blue-light); }

/* ── Contact / Forms ──────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--blue-mid); box-shadow: 0 0 0 3px rgba(34,81,184,.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.alert {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: .9rem;
  display: none;
  margin-top: 12px;
}
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* ── Advert placeholder ────────────────────────────────────────────── */
.ad-slot {
  background: var(--off-white);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .78rem;
  margin: 24px 0;
}

/* ── Footer ───────────────────────────────────────────────────────── */
#site-footer {
  background: var(--blue);
  color: rgba(255,255,255,.8);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-brand-col .site-brand { margin-bottom: 14px; }
.footer-brand-col .site-brand span { color: var(--white); }
.footer-brand-col p { font-size: .87rem; line-height: 1.6; }
.footer-col h4 {
  font-size: .85rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: .85rem;
  color: rgba(255,255,255,.72);
  margin-bottom: 8px;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); text-decoration: none; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: .9rem;
  transition: background var(--transition);
  text-decoration: none;
}
.social-btn:hover { background: rgba(255,255,255,.25); color: var(--white); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .8rem;
}
.footer-bottom a { color: rgba(255,255,255,.7); }
.footer-bottom a:hover { color: var(--white); text-decoration: none; }

/* ── Back to top ────────────────────────────────────────────────────── */
#back-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--blue);
  color: var(--white);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  display: none;
  z-index: 900;
  box-shadow: var(--shadow-md);
  transition: background var(--transition);
}
#back-top:hover { background: var(--blue-mid); }
#back-top.show { display: flex; align-items: center; justify-content: center; }

/* ── Mobile nav override ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .site-nav { gap: 0; }
  .site-nav > a,
  .nav-dropdown > .nav-link {
    padding: 6px 10px;
    font-size: .82rem;
  }
  .site-brand span { font-size: 1.05rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .uni-grid { grid-template-columns: 1fr; }
  .hero { padding: 50px 16px 36px; }
}
@media (max-width: 480px) {
  .site-nav > a,
  .nav-dropdown > .nav-link { padding: 5px 8px; font-size: .78rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .country-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Utilities ─────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.text-blue   { color: var(--blue); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.gap-8  { gap: 8px; }
.flex   { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.overflow-auto { overflow-x: auto; }



/* ── Cross-Document View Transitions ─────────────────────────────
   Requires Chrome 126+ / Edge 126+. Falls back gracefully in other
   browsers (instant navigation, no errors).
   ─────────────────────────────────────────────────────────────── */

@view-transition {
  navigation: auto;
}

/* Keep the header locked in place — no animation */
#site-header {
  view-transition-name: site-header;
}

::view-transition-old(site-header),
::view-transition-new(site-header) {
  animation: none;
  mix-blend-mode: normal;
}

/* Slide the page content out to the LEFT (old page) */
::view-transition-old(root) {
  animation: 500ms cubic-bezier(0.4, 0, 0.2, 1) both slide-out-left;
}

/* Slide the new page content in FROM the right */
::view-transition-new(root) {
  animation: 500ms cubic-bezier(0.4, 0, 0.2, 1) both slide-in-right;
}

@keyframes slide-out-left {
  from { transform: translateX(0);     opacity: 1; }
  to   { transform: translateX(-6%);   opacity: 0; }
}

@keyframes slide-in-right {
  from { transform: translateX(6%);    opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}


