/* =========================================================
   Al-Mujtahid in Malaysia — Bilingual Design System
   Version 3.0 — Comprehensive Educational Consultancy
   ========================================================= */

:root {
  /* Brand palette */
  --bg: #ffffff;
  --paper: #ffffff;
  --soft: #f6f5f1;
  --soft-2: #f0efe9;
  --soft-3: #ebeae3;
  --ink: #17191b;
  --ink-soft: #3b3f43;
  --muted: #71757a;
  --faint: #9aa0a4;
  --line: #e9e8e2;
  --line-strong: #d9d8d1;
  --accent: #9f1d2d;
  --accent-dark: #7c1421;
  --accent-soft: #f6ebec;
  --accent-tint: #fdf5f6;
  --gold: #a9854c;
  --gold-soft: #f5efe6;
  --gold-dark: #8a6d3a;
  --green: #2d7a4f;
  --green-soft: #ecf6f0;
  --blue: #1a567a;
  --blue-soft: #ebf3f8;

  /* Layout */
  --radius: 6px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --container: 1200px;
  --container-wide: 1400px;
  --gutter: 24px;
  --header-h: 72px;

  /* Typography */
  --font-ar: "IBM Plex Sans Arabic", "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-en: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font: var(--font-ar);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html[lang="en"] { --font: var(--font-en); }
html[dir="ltr"] { --font: var(--font-en); }

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.8;
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Container ---------- */
.container {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}
.container-wide {
  width: min(var(--container-wide), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }

.hero-copy h1, .page-hero h1 {
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 700;
  line-height: 1.1;
  margin: 20px 0 0;
  max-width: 16ch;
}

.section-head h2, .page-section h2 {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.18;
}

h3 { font-size: clamp(20px, 1.8vw, 26px); }
h4 { font-size: 18px; font-weight: 600; }

.lead, .hero-copy p, .page-hero p, .section-lead, .section-head > p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15.5px, 1.3vw, 18px);
  font-weight: 400;
  line-height: 1.75;
  max-width: 58ch;
}

/* ---------- Eyebrow / Kicker ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}
.section-head.center .eyebrow { justify-content: center; }
.eyebrow.center { justify-content: center; }

/* ---------- Buttons ---------- */
.button, .button-secondary, .button-outline, .button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: all 200ms var(--ease);
}
.button { background: var(--accent); color: #fff; }
.button:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(159,29,45,0.25); }
.button-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button-secondary:hover { border-color: var(--ink); background: var(--soft); }
.button-outline { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.2); }
.button-outline:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.4); }
.button-link {
  min-height: auto; padding: 6px 0; background: transparent; color: var(--ink);
  position: relative; font-weight: 600;
}
.button-link::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2px;
  background: currentColor; transform: scaleX(0.3); transform-origin: right;
  transition: transform 240ms var(--ease);
}
html[dir="ltr"] .button-link::after { transform-origin: left; }
.button-link:hover::after { transform: scaleX(1); }
.button .arrow, .button-link .arrow { transition: transform 220ms var(--ease); }
.button:hover .arrow { transform: translateX(-4px); }
html[dir="ltr"] .button:hover .arrow { transform: translateX(4px); }
.button:active { transform: translateY(0); }

.btn-sm { min-height: 38px; padding: 8px 16px; font-size: 13px; }
.btn-lg { min-height: 56px; padding: 16px 32px; font-size: 16px; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-shell {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: var(--radius);
  background: var(--accent);
  overflow: hidden;
  padding: 6px;
  flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand strong { display: block; font-size: 15px; font-weight: 700; line-height: 1.2; }
.brand span span { display: block; color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.3; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 9px 13px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: var(--radius);
  transition: all 180ms var(--ease);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); background: var(--accent-soft); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  transition: all 180ms var(--ease);
  color: var(--ink-soft);
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }
.lang-toggle svg { width: 16px; height: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: all 200ms var(--ease);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 55;
  padding: calc(var(--header-h) + 20px) var(--gutter) 40px;
  transform: translateY(-100%);
  transition: transform 350ms var(--ease-out);
  overflow-y: auto;
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav a {
  display: block;
  padding: 16px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

/* ---------- Section ---------- */
.section { padding: 80px 0; }
.section.soft { background: var(--soft); }
.section.tight { padding: 60px 0; }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head.center .section-lead { margin-inline: auto; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-stats > div { display: flex; flex-direction: column; gap: 4px; }
.hero-stats strong { font-size: 32px; font-weight: 700; color: var(--accent); line-height: 1; }
.hero-stats span { font-size: 13px; color: var(--muted); max-width: 22ch; line-height: 1.4; }

.hero-media { position: relative; }
.hero-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-tag {
  position: absolute;
  bottom: 20px;
  inset-inline-start: 20px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 14px 18px;
  max-width: 280px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.hero-tag strong { display: block; font-size: 14px; margin-bottom: 2px; }
.hero-tag span { font-size: 12px; color: var(--muted); }

.hero-seal {
  position: absolute;
  top: -20px;
  inset-inline-end: -20px;
  z-index: 2;
}
.hero-seal .coin {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(159,29,45,0.3);
  animation: float 4s ease-in-out infinite;
}
.hero-seal .coin img { width: 40px; height: 40px; object-fit: contain; filter: brightness(0) invert(1); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Trust Strip ---------- */
.trust-strip {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-inner > span:first-child {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.trust-marks { display: flex; gap: 28px; flex-wrap: wrap; }
.trust-marks span {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* ---------- Service Cards ---------- */
.service-list { display: grid; gap: 16px; }
.service-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all 240ms var(--ease);
}
.service-row:hover { border-color: var(--line-strong); box-shadow: 0 8px 30px rgba(0,0,0,0.05); transform: translateY(-2px); }
.service-lead { display: flex; align-items: center; gap: 16px; }
.icon-chip {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  border-radius: var(--radius);
  flex-shrink: 0;
}
.icon-chip .ico { width: 22px; height: 22px; stroke: var(--accent); stroke-width: 1.5; fill: none; }
.service-lead .number { font-size: 28px; font-weight: 800; color: var(--line-strong); }
.service-row h3 { margin-bottom: 4px; }
.service-row p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.service-row ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.service-row ul li {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  padding-inline-start: 18px;
  position: relative;
}
.service-row ul li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Service Grid (cards) ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.service-card {
  padding: 32px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all 240ms var(--ease);
}
.service-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.06); }
.service-card .icon-chip { margin-bottom: 20px; width: 56px; height: 56px; }
.service-card .icon-chip .ico { width: 26px; height: 26px; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.service-card .step-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}

/* ---------- University Cards ---------- */
.uni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.uni-card {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all 240ms var(--ease);
  cursor: pointer;
  position: relative;
}
.uni-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.06); }
.uni-card .kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.uni-card h3 { margin-bottom: 8px; font-size: 22px; }
.uni-card p { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.uni-card .uni-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.uni-card .uni-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}
.uni-card .uni-meta .ico { width: 15px; height: 15px; stroke: var(--muted); stroke-width: 1.5; fill: none; }
.uni-card .icon-chip { margin-bottom: 16px; }

/* ---------- University Detail Modal/Page ---------- */
.uni-detail {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-top: 32px;
}
.uni-detail-main { }
.uni-detail-side {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  align-self: start;
}
.uni-info-card {
  background: var(--soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
}
.uni-info-card h4 { margin-bottom: 16px; font-size: 16px; }
.uni-info-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.uni-info-row:last-child { border-bottom: none; }
.uni-info-row span:first-child { color: var(--muted); }
.uni-info-row span:last-child { font-weight: 600; }

.fee-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.fee-table th, .fee-table td {
  text-align: start;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.fee-table th { font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.fee-table td:last-child { font-weight: 600; text-align: end; white-space: nowrap; }

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.testimonial-card {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.testimonial-card .stars { color: var(--gold); font-size: 16px; letter-spacing: 2px; margin-bottom: 14px; }
.testimonial-card blockquote {
  margin: 0 0 20px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.testimonial-meta { display: flex; align-items: center; gap: 12px; }
.testimonial-meta .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 18px;
  flex-shrink: 0;
}
.testimonial-meta strong { display: block; font-size: 14px; }
.testimonial-meta span { font-size: 12.5px; color: var(--muted); }

/* ---------- Image Stack ---------- */
.image-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.image-stack .image-frame.large { grid-column: 1 / -1; }
.image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--soft);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Split Section ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse { direction: rtl; }
html[dir="ltr"] .split.reverse { direction: ltr; }
.split.reverse > * { direction: ltr; }
html[dir="rtl"] .split.reverse > * { direction: rtl; }

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  align-items: center;
}

/* ---------- Lead Form / Consult Panel ---------- */
.consult-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 48px;
}
.consult-panel .eyebrow { color: rgba(255,255,255,0.7); }
.consult-panel .eyebrow::before { background: rgba(255,255,255,0.4); }
.consult-panel h2 { color: #fff; }
.consult-panel p { color: rgba(255,255,255,0.85); }

.lead-form {
  display: grid;
  gap: 14px;
  background: rgba(255,255,255,0.1);
  padding: 28px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 14.5px;
}
.lead-form input::placeholder, .lead-form textarea::placeholder { color: rgba(255,255,255,0.5); }
.lead-form select { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.9); }
.lead-form select option { color: #000; }
.lead-form textarea { resize: vertical; min-height: 80px; }
.lead-form button { background: #fff; color: var(--accent); border: none; }
.lead-form button:hover { background: rgba(255,255,255,0.92); }

/* ---------- Page Hero ---------- */
.page-hero {
  padding: 60px 0 40px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { max-width: 60ch; margin-top: 16px; }

.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--line-strong); }

/* ---------- Page Section ---------- */
.page-section { padding: 64px 0; }
.page-section.alt { background: var(--soft); }

/* ---------- Filter Bar ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
  align-items: center;
}
.filter-bar .search-box {
  flex: 1;
  min-width: 200px;
  position: relative;
}
.filter-bar .search-box input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 14.5px;
  background: var(--paper);
}
html[dir="ltr"] .filter-bar .search-box input { padding: 12px 16px 12px 44px; }
.filter-bar .search-box .search-ico {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  inset-inline-start: 14px;
  width: 18px; height: 18px;
  stroke: var(--muted); stroke-width: 1.5; fill: none;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: var(--paper);
  color: var(--ink-soft);
  transition: all 180ms var(--ease);
  white-space: nowrap;
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- Stats Band ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.stats-band > div {
  padding: 36px 28px;
  text-align: center;
  border-inline-end: 1px solid rgba(255,255,255,0.08);
}
.stats-band > div:last-child { border-inline-end: none; }
.stats-band strong { display: block; font-size: 40px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.stats-band span { font-size: 13.5px; color: rgba(255,255,255,0.6); }
.stats-band .gold { color: var(--gold); }

/* ---------- Pricing Table ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.pricing-card {
  padding: 32px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all 240ms var(--ease);
}
.pricing-card.featured {
  border-color: var(--accent);
  border-width: 2px;
  position: relative;
}
.pricing-card.featured::before {
  content: attr(data-badge);
  position: absolute;
  top: -12px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
html[dir="ltr"] .pricing-card.featured::before { transform: translateX(-50%); }
.pricing-card .plan-name { font-size: 14px; font-weight: 700; color: var(--accent); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.1em; }
.pricing-card .plan-price { font-size: 36px; font-weight: 700; margin-bottom: 4px; }
.pricing-card .plan-price small { font-size: 16px; font-weight: 500; color: var(--muted); }
.pricing-card .plan-desc { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.pricing-card ul { margin: 0 0 24px; padding: 0; list-style: none; }
.pricing-card ul li {
  padding: 8px 0;
  font-size: 14.5px;
  color: var(--ink-soft);
  padding-inline-start: 24px;
  position: relative;
}
.pricing-card ul li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Comparison Table ---------- */
.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}
.compare-table th, .compare-table td {
  padding: 14px 16px;
  text-align: start;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.compare-table th {
  background: var(--soft);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  position: sticky;
  top: 0;
}
.compare-table tbody tr:hover { background: var(--soft); }
.compare-table td strong { font-weight: 600; }
.compare-table .num { text-align: end; font-weight: 600; white-space: nowrap; }
.compare-table .uni-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.compare-table .uni-logo .dot {
  width: 28px; height: 28px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

/* ---------- Cost Calculator ---------- */
.calculator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--soft);
  border-radius: var(--radius-xl);
  padding: 40px;
}
.calc-controls { display: grid; gap: 20px; }
.calc-control label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink-soft);
}
.calc-control select, .calc-control input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 14.5px;
  background: var(--paper);
}
.calc-results {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.calc-results h3 { color: #fff; margin-bottom: 20px; }
.calc-line {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 14.5px;
}
.calc-line span:first-child { color: rgba(255,255,255,0.7); }
.calc-line span:last-child { font-weight: 600; }
.calc-total {
  display: flex;
  justify-content: space-between;
  padding: 16px 0 0;
  font-size: 18px;
  font-weight: 700;
  margin-top: 8px;
}
.calc-total span:last-child { color: var(--gold); font-size: 24px; }
.calc-note {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 16px;
}

/* ---------- FAQ Accordion ---------- */
.faq-list { display: grid; gap: 12px; max-width: 800px; margin-inline: auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 200ms var(--ease);
}
.faq-item.open { border-color: var(--accent); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  gap: 16px;
  user-select: none;
}
.faq-q .faq-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  transition: transform 240ms var(--ease);
  color: var(--accent);
}
.faq-item.open .faq-q .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms var(--ease);
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner { padding: 0 24px 20px; color: var(--muted); font-size: 15px; line-height: 1.7; }

/* ---------- Blog Cards ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.blog-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 240ms var(--ease);
  background: var(--paper);
}
.blog-card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.06); }
.blog-card-img {
  aspect-ratio: 16/9;
  background: var(--soft-2);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.blog-card-img .blog-emoji { font-size: 48px; }
.blog-card-body { padding: 24px; }
.blog-card .blog-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.blog-card h3 { font-size: 18px; margin-bottom: 8px; line-height: 1.3; }
.blog-card p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 14px; }
.blog-card .blog-meta { font-size: 12.5px; color: var(--faint); display: flex; gap: 12px; }

/* ---------- Program Grid ---------- */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.program-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all 240ms var(--ease);
  cursor: pointer;
  background: var(--paper);
}
.program-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.05); }
.program-card .prog-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: grid; place-items: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.program-card h3 { font-size: 17px; margin-bottom: 6px; }
.program-card p { color: var(--muted); font-size: 13.5px; margin: 0 0 12px; line-height: 1.5; }
.program-card .prog-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: var(--ink);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.cta-section h2 { color: #fff; font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.7); max-width: 50ch; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-logo { max-width: 200px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-grid > div:first-child p { font-size: 14px; line-height: 1.6; max-width: 32ch; }
.footer-grid h4 { color: #fff; font-size: 14px; margin-bottom: 16px; font-weight: 600; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.6); transition: color 180ms; }
.footer-links a:hover { color: #fff; }
.footer-skyline {
  width: 100%;
  height: auto;
  opacity: 0.15;
  margin-top: 20px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-social { display: flex; gap: 16px; }
.footer-social a { color: rgba(255,255,255,0.5); transition: color 180ms; }
.footer-social a:hover { color: #fff; }

/* ---------- Timeline ---------- */
.timeline { display: grid; gap: 0; }
.timeline-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding-bottom: 32px;
  position: relative;
}
.timeline-item::before {
  content: "";
  position: absolute;
  inset-inline-start: 29px;
  top: 50px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: grid; place-items: center;
  font-size: 22px;
  flex-shrink: 0;
  z-index: 1;
}
.timeline-item h3 { margin-bottom: 6px; }
.timeline-item p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ---------- Feature List ---------- */
.feature-list { display: grid; gap: 16px; }
.feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
}
.feature-item .feature-ico {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--accent);
  font-weight: 700;
}
.feature-item h4 { margin: 0 0 4px; font-size: 15.5px; }
.feature-item p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ---------- Contact Info ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info { display: grid; gap: 20px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all 200ms var(--ease);
}
.contact-item:hover { border-color: var(--line-strong); background: var(--soft); }
.contact-item .contact-ico {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.contact-item .contact-ico .ico { width: 20px; height: 20px; stroke: var(--accent); stroke-width: 1.5; fill: none; }
.contact-item h4 { margin: 0 0 4px; font-size: 15px; }
.contact-item p { margin: 0; color: var(--muted); font-size: 14px; }
.contact-item a { color: var(--accent); font-weight: 600; }

.contact-form {
  display: grid;
  gap: 14px;
  padding: 32px;
  background: var(--soft);
  border-radius: var(--radius-lg);
}
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 14.5px;
  background: var(--paper);
}
.contact-form textarea { resize: vertical; min-height: 120px; }

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 24px;
  overflow-x: auto;
}
.tab {
  padding: 12px 20px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
  transition: color 180ms;
  white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--accent); }
.tab.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  inset-inline-start: 0;
  inset-inline-end: 0;
  height: 2px;
  background: var(--accent);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Badge / Pill ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge.accent { background: var(--accent-soft); color: var(--accent); }
.badge.gold { background: var(--gold-soft); color: var(--gold-dark); }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.blue { background: var(--blue-soft); color: var(--blue); }
.badge.gray { background: var(--soft-2); color: var(--ink-soft); }

/* ---------- Info Box ---------- */
.info-box {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  display: grid;
  gap: 8px;
}
.info-box.accent { background: var(--accent-soft); border-color: rgba(159,29,45,0.15); }
.info-box.gold { background: var(--gold-soft); border-color: rgba(169,133,76,0.15); }
.info-box h4 { margin: 0; }
.info-box p { margin: 0; font-size: 14px; color: var(--muted); }

/* ===== Tab Bar (Universities page) ===== */
.tab-bar {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--line, #e8e6e0);
  margin-bottom: 8px;
  padding-bottom: 0;
}
.tab-btn {
  padding: 14px 28px;
  border: none;
  background: none;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: var(--muted, #6b6862);
  cursor: pointer;
  position: relative;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
  border-radius: 8px 8px 0 0;
}
.tab-btn:hover { color: var(--ink, #1a1a1a); }
.tab-btn.active {
  color: var(--accent, #9f1d2d);
  border-bottom-color: var(--accent, #9f1d2d);
  background: var(--accent-soft, rgba(159,29,45,0.06));
}

/* ---------- Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

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

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.full-width { width: 100%; }
.hidden { display: none !important; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .consult-panel { grid-template-columns: 1fr; gap: 32px; padding: 36px; }
  .uni-detail { grid-template-columns: 1fr; gap: 28px; }
  .uni-detail-side { position: static; }
  .calculator { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions .button { display: none; }
}

@media (max-width: 768px) {
  :root { --gutter: 18px; }
  .section { padding: 56px 0; }
  .hero { padding: 32px 0 48px; }
  .hero-stats { gap: 20px; }
  .hero-stats strong { font-size: 26px; }
  .service-row { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .service-row ul { flex-direction: row; flex-wrap: wrap; gap: 10px; }
  .image-stack { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .stats-band > div:nth-child(2) { border-inline-end: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .pricing-card.featured::before { font-size: 11px; padding: 3px 12px; }
  .timeline-item { grid-template-columns: 48px 1fr; gap: 16px; }
  .timeline-dot { width: 48px; height: 48px; font-size: 18px; }
  .timeline-item::before { inset-inline-start: 23px; }
  .page-hero { padding: 40px 0 28px; }
  .consult-panel { padding: 28px 20px; }
  .calculator { padding: 24px; }
  .contact-form { padding: 24px; }
}

@media (max-width: 480px) {
  .hero-stats { flex-wrap: wrap; }
  .hero-stats > div { flex: 1 1 45%; }
  .filter-chips { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .stats-band { grid-template-columns: 1fr; }
  .stats-band > div { border-inline-end: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
}

/* =========================================================
   Print
   ========================================================= */
@media print {
  .site-header, .nav-actions, .nav-toggle, .mobile-nav, .cta-section, .site-footer { display: none; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   v5 Additions — Step Flow, Logo Badges, Program Careers
   ========================================================= */

/* ===== Step Flow (Home page — circled numbers in one line) ===== */
.step-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 40px;
  position: relative;
}
.step-node {
  flex: 1;
  text-align: center;
  padding: 0 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.step-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-en);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(159,29,45,0.25);
  position: relative;
  z-index: 2;
  transition: transform 0.3s;
}
.step-node:hover .step-circle { transform: scale(1.08); }
.step-ico {
  width: 28px;
  height: 28px;
  color: var(--gold);
  margin-top: 14px;
}
.step-node h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 14px 0 8px;
  color: var(--ink);
  line-height: 1.4;
}
.step-node p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  max-width: 260px;
}
.step-connector {
  flex: 0 0 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: 2px;
  align-self: flex-start;
  margin-top: 27px;
  position: relative;
  z-index: 1;
  opacity: 0.3;
}
@media (max-width: 768px) {
  .step-flow { flex-direction: column; gap: 24px; }
  .step-connector { width: 3px; height: 40px; align-self: center; margin: 0; background: linear-gradient(180deg, var(--accent), var(--gold)); }
  .step-node p { max-width: 400px; }
}

/* ===== University Logo Badge ===== */
.uni-logo-badge {
  width: 56px; height: 56px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 14px;
  font-family: var(--font-en); letter-spacing: 0.5px;
  flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  text-transform: uppercase;
}
.uni-logo-badge.lg { width: 72px; height: 72px; font-size: 18px; border-radius: 16px; }

/* ===== Program Cards with Career Info ===== */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.prog-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 28px;
  transition: box-shadow 0.3s, transform 0.3s;
  display: flex; flex-direction: column;
}
.prog-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.08); transform: translateY(-3px); }
.prog-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.prog-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.prog-icon svg { width: 24px; height: 24px; fill: none; stroke-width: 1.5; }
.prog-head h3 { margin: 0; font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.prog-section { margin-bottom: 16px; }
.prog-section-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--accent);
  margin-bottom: 6px; display: flex; align-items: center; gap: 6px;
}
.prog-section-title::before { content: ''; width: 3px; height: 14px; border-radius: 2px; background: var(--accent); }
.prog-study { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; }
.prog-careers { display: flex; flex-wrap: wrap; gap: 8px; }
.career-badge {
  display: inline-flex; align-items: center;
  padding: 5px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 600; color: #fff;
}
.prog-work {
  font-size: 14px; color: var(--muted); line-height: 1.6;
  margin: 0; padding-top: 14px; border-top: 1px solid var(--line); margin-top: auto;
}

/* ===== SVG Icon Helpers ===== */
.eyebrow-ico { vertical-align: middle; margin-inline-end: 4px; }
.ico-btn { vertical-align: middle; margin-inline-end: 6px; }

/* ===== Blog emoji badge ===== */
.blog-emoji-badge {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #fff; margin: 0 auto;
}
.blog-card-img { display: flex; align-items: center; justify-content: center; padding: 28px 0; }

/* ===== FAQ icon CSS ===== */
.faq-icon {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--accent); display: flex;
  align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--accent);
  flex-shrink: 0; transition: transform 0.3s, background 0.3s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--accent); color: #fff; }

/* ===== Program Card (matching main.js class names) ===== */
.program-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  transition: box-shadow 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.program-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.program-card .prog-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.program-card .prog-icon svg {
  width: 26px;
  height: 26px;
}
.program-card h3 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.program-card .badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* =========================================================
   v6 — Dark Mode
   ========================================================= */
html[data-theme="dark"] {
  --bg: #141618;
  --paper: #1c1f22;
  --soft: #1f2326;
  --soft-2: #252a2e;
  --soft-3: #2c3236;
  --ink: #f0f0f2;
  --ink-soft: #c4c7ca;
  --muted: #9ca0a4;
  --faint: #6a6e72;
  --line: #33383c;
  --line-strong: #3e4448;
  --accent: #c9293f;
  --accent-dark: #9f1d2d;
  --accent-soft: #2a1a1d;
  --accent-tint: #211417;
  --gold: #c9a55c;
  --gold-soft: #2a2418;
  --gold-dark: #a9854c;
  --green: #3da068;
  --green-soft: #16291f;
  --blue: #4a9bc7;
  --blue-soft: #0f1f2a;
}

/* Dark mode component overrides */
html[data-theme="dark"] body { background: var(--bg); color: var(--ink); }
html[data-theme="dark"] .site-header { background: rgba(28,31,34,0.92); border-bottom-color: var(--line); }
html[data-theme="dark"] .nav-links a { color: var(--ink-soft); }
html[data-theme="dark"] .nav-links a:hover { color: var(--accent); }
html[data-theme="dark"] .nav-toggle span { background: var(--ink-soft); }
html[data-theme="dark"] .mobile-nav { background: var(--paper); border-bottom-color: var(--line); }
html[data-theme="dark"] .mobile-nav a { color: var(--ink-soft); border-bottom-color: var(--line); }
html[data-theme="dark"] .hero { background: linear-gradient(160deg, #1a1d20, #141618); }
html[data-theme="dark"] .hero h1 { color: var(--ink); }
html[data-theme="dark"] .hero .lead { color: var(--muted); }
html[data-theme="dark"] .trust-strip { background: var(--soft); border-color: var(--line); }
html[data-theme="dark"] .trust-marks span { color: var(--muted); }
html[data-theme="dark"] .section.soft { background: var(--soft); }
html[data-theme="dark"] .section.tight { background: var(--bg); }
html[data-theme="dark"] .stats-band { background: linear-gradient(135deg, #1f2326, #252a2e); }
html[data-theme="dark"] .stats-band strong { color: var(--gold); }
html[data-theme="dark"] .uni-card,
html[data-theme="dark"] .prog-card,
html[data-theme="dark"] .program-card,
html[data-theme="dark"] .blog-card,
html[data-theme="dark"] .testimonial-card,
html[data-theme="dark"] .faq-item {
  background: var(--paper);
  border-color: var(--line);
}
html[data-theme="dark"] .uni-card:hover,
html[data-theme="dark"] .prog-card:hover,
html[data-theme="dark"] .program-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
html[data-theme="dark"] .uni-card h3,
html[data-theme="dark"] .prog-card h3,
html[data-theme="dark"] .program-card h3,
html[data-theme="dark"] .blog-card h3,
html[data-theme="dark"] .faq-q {
  color: var(--ink);
}
html[data-theme="dark"] .uni-card p,
html[data-theme="dark"] .prog-card p,
html[data-theme="dark"] .program-card p,
html[data-theme="dark"] .blog-card p,
html[data-theme="dark"] .faq-a {
  color: var(--muted);
}
html[data-theme="dark"] .eyebrow { color: var(--accent); }
html[data-theme="dark"] .section-head h2 { color: var(--ink); }
html[data-theme="dark"] .section-lead { color: var(--muted); }
html[data-theme="dark"] .consult-panel { background: var(--paper); }
html[data-theme="dark"] .lead-form input,
html[data-theme="dark"] .lead-form select,
html[data-theme="dark"] .lead-form textarea {
  background: var(--soft-2);
  border-color: var(--line);
  color: var(--ink);
}
html[data-theme="dark"] .lead-form input::placeholder,
html[data-theme="dark"] .lead-form textarea::placeholder { color: var(--faint); }
html[data-theme="dark"] .lead-form input:focus,
html[data-theme="dark"] .lead-form select:focus,
html[data-theme="dark"] .lead-form textarea:focus { border-color: var(--accent); }
html[data-theme="dark"] .cta-section { background: linear-gradient(135deg, var(--accent-dark), #2a1a1d); }
html[data-theme="dark"] .site-footer { background: #0f1113; border-top-color: var(--line); }
html[data-theme="dark"] .image-frame { background: var(--soft-2); }
html[data-theme="dark"] .filter-chip { background: var(--soft-2); border-color: var(--line); color: var(--ink-soft); }
html[data-theme="dark"] .filter-chip.active { background: var(--accent); color: #fff; }
html[data-theme="dark"] .tab-bar { border-bottom-color: var(--line); }
html[data-theme="dark"] .tab-btn { color: var(--muted); }
html[data-theme="dark"] .tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
html[data-theme="dark"] .page-hero { background: var(--soft); }
html[data-theme="dark"] .page-hero h1 { color: var(--ink); }
html[data-theme="dark"] .page-hero p { color: var(--muted); }
html[data-theme="dark"] .modal-content { background: var(--paper); }
html[data-theme="dark"] .modal-body { color: var(--ink); }
html[data-theme="dark"] .modal-close { background: var(--soft-2); color: var(--ink-soft); }
html[data-theme="dark"] .uni-detail-section { border-color: var(--line); }
html[data-theme="dark"] .uni-detail-section h3 { color: var(--ink); }
html[data-theme="dark"] .uni-fee-table { background: var(--soft); }
html[data-theme="dark"] .uni-fee-table th { background: var(--soft-3); color: var(--ink-soft); }
html[data-theme="dark"] .uni-fee-table td { border-color: var(--line); color: var(--muted); }
html[data-theme="dark"] .hero-tag { background: rgba(20,22,24,0.85); }
html[data-theme="dark"] .hero-seal .coin { background: rgba(255,255,255,0.05); }
html[data-theme="dark"] .breadcrumb a { color: var(--muted); }
html[data-theme="dark"] .breadcrumb span { color: var(--ink); }
html[data-theme="dark"] .timeline-item { border-color: var(--line); }
html[data-theme="dark"] .timeline-content { background: var(--paper); border-color: var(--line); }
html[data-theme="dark"] .timeline-content h3 { color: var(--ink); }
html[data-theme="dark"] .timeline-content p { color: var(--muted); }
html[data-theme="dark"] .service-card { background: var(--paper); border-color: var(--line); }
html[data-theme="dark"] .service-card h3 { color: var(--ink); }
html[data-theme="dark"] .service-card p { color: var(--muted); }
html[data-theme="dark"] .value-card { background: var(--paper); border-color: var(--line); }
html[data-theme="dark"] .about-story { background: var(--soft); }
html[data-theme="dark"] .contact-info-card { background: var(--paper); border-color: var(--line); }
html[data-theme="dark"] .contact-info-card h3 { color: var(--ink); }
html[data-theme="dark"] .contact-info-card p { color: var(--muted); }
html[data-theme="dark"] .contact-form { background: var(--paper); border-color: var(--line); }
html[data-theme="dark"] .contact-form input,
html[data-theme="dark"] .contact-form textarea {
  background: var(--soft-2);
  border-color: var(--line);
  color: var(--ink);
}
html[data-theme="dark"] .blog-tag { background: var(--accent-soft); color: var(--accent); }
html[data-theme="dark"] .testimonial-card blockquote { color: var(--ink-soft); }
html[data-theme="dark"] .testimonial-avatar { background: var(--accent); }
html[data-theme="dark"] .faq-item.open .faq-q { color: var(--accent); }
html[data-theme="dark"] .step-node h3 { color: var(--ink); }
html[data-theme="dark"] .step-node p { color: var(--muted); }
html[data-theme="dark"] .prog-section-title { color: var(--accent); }
html[data-theme="dark"] .prog-study { color: var(--muted); }
html[data-theme="dark"] .prog-work { border-top-color: var(--line); color: var(--muted); }

/* Dark mode toggle button */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: all 0.3s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
html[data-theme="dark"] .theme-toggle .sun { display: block; }
html[data-theme="dark"] .theme-toggle .moon { display: none; }

/* Theme transition smoothness */
body, .site-header, .section, .uni-card, .prog-card, .program-card,
.blog-card, .testimonial-card, .faq-item, .consult-panel, .modal-content,
.service-card, .contact-info-card, .contact-form, .timeline-content {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* =========================================================
   v6 — Visa Timeline
   ========================================================= */
.visa-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}
.visa-timeline::before {
  content: '';
  position: absolute;
  inset-inline-start: 27px;
  top: 28px;
  bottom: 28px;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--gold));
  border-radius: 2px;
  opacity: 0.2;
}
.visa-step {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  position: relative;
  align-items: flex-start;
}
.visa-step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-en);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(159,29,45,0.2);
  transition: transform 0.3s;
}
.visa-step:hover .visa-step-num { transform: scale(1.08); }
.visa-step-body {
  flex: 1;
  padding-top: 6px;
}
.visa-step-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ink);
}
.visa-step-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 8px;
}
.visa-duration {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--gold-soft);
  color: var(--gold-dark);
}
html[data-theme="dark"] .visa-duration {
  background: var(--gold-soft);
  color: var(--gold);
}
@media (max-width: 640px) {
  .visa-timeline::before { inset-inline-start: 23px; }
  .visa-step-num { width: 48px; height: 48px; font-size: 17px; }
  .visa-step { gap: 14px; }
  .visa-step-body h3 { font-size: 15px; }
  .visa-step-body p { font-size: 13px; }
}

/* ===== Timeline dot with SVG icon ===== */
.timeline-dot {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent-soft);
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--accent);
}
.timeline-dot svg { width: 20px; height: 20px; }

/* ===== v9 — Modal Dark Mode ===== */
html[data-theme="dark"] #uni-modal > div {
  background: var(--paper) !important;
  color: var(--ink);
}

/* ===== v9 — Loading Skeletons ===== */
.skeleton {
  background: linear-gradient(90deg, var(--soft) 25%, var(--soft-2) 50%, var(--soft) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skel-card { height: 220px; }
.skel-title { height: 28px; width: 60%; margin-bottom: 12px; }
.skel-text { height: 16px; margin-bottom: 8px; }
.skel-text.short { width: 40%; }
.skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }

/* ===== v9 — OS Dark Mode Detection ==== */
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    --bg: #0f1115;
    --soft: #1a1c21;
    --soft-2: #22242a;
    --paper: #17191e;
    --line: #2a2c33;
    --line-strong: #383b44;
    --ink: #ebe9e3;
    --ink-soft: #c4c0b9;
    --muted: #99958e;
    --faint: #6b6760;
    --accent-tint: rgba(159,29,45,0.18);
    --gold-soft: rgba(169,133,76,0.15);
    --accent-dark: #c1293b;
    --green: #3aac6d;
    --green-soft: rgba(58,172,109,0.15);
  }
  html:not([data-theme]) .site-header { background: #1a1c21; }
  html:not([data-theme]) .button-secondary { border-color: #555; color: #c4c0b9; }
  html:not([data-theme]) .button-secondary:hover { border-color: #888; color: #ebe9e3; }
}

/* ===== Apply Page — Multi-step Form ===== */
.apply-hero { padding: 56px 0 24px; background: linear-gradient(180deg, var(--soft) 0, var(--bg) 100%); }
.apply-hero .section-head { margin-bottom: 0; }
.apply-wrap { padding: 32px 0 80px; }
.apply-card {
  max-width: 820px; margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: 0 18px 50px -28px rgba(23,25,27,.18);
  overflow: hidden;
}

/* Progress indicator */
.apply-progress {
  display: flex; align-items: stretch;
  background: var(--soft-2);
  border-bottom: 1px solid var(--line);
}
.progress-step {
  flex: 1; position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 18px 8px 16px;
  background: transparent; border: 0; cursor: pointer;
  color: var(--muted); font-family: var(--font);
  transition: color .25s var(--ease), background .25s var(--ease);
}
.progress-step + .progress-step::before {
  content: ""; position: absolute; inset-block-start: 30px; inset-inline-start: -1px;
  width: 2px; height: 28px; background: var(--line-strong);
}
.progress-step .ps-dot {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; border: 2px solid var(--line-strong);
  color: var(--muted); font-weight: 700; font-size: 14px;
  transition: all .25s var(--ease);
}
.progress-step .ps-label { font-size: 12.5px; font-weight: 500; text-align: center; line-height: 1.3; }
.progress-step:hover { color: var(--ink-soft); }
.progress-step.active { color: var(--accent); }
.progress-step.active .ps-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.progress-step.done { color: var(--green); }
.progress-step.done .ps-dot { background: var(--green); border-color: var(--green); color: #fff; }
.progress-step[disabled] { cursor: not-allowed; opacity: .55; }
.progress-bar-track {
  height: 4px; background: var(--line); position: relative;
}
.progress-bar-fill {
  position: absolute; inset-block: 0; inset-inline-start: 0;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  width: 25%; transition: width .4s var(--ease-out);
}

/* Form body */
.apply-body { padding: 36px clamp(20px, 5vw, 48px) 28px; }
.step-pane { display: none; animation: stepIn .35s var(--ease-out); }
.step-pane.active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.step-title {
  margin: 0 0 6px; font-size: 22px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.step-title .st-num {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 14px; font-weight: 700;
}
.step-sub { margin: 0 0 28px; color: var(--muted); font-size: 14.5px; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.field label .req { color: var(--accent); margin-inline-start: 2px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: #fff; color: var(--ink); font-size: 15px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.field.invalid input, .field.invalid select { border-color: var(--accent); background: var(--accent-tint); }
.field-err { color: var(--accent); font-size: 12px; display: none; }
.field.invalid .field-err { display: block; }

/* University checkbox grid */
.uni-check-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px; margin-block-start: 4px;
}
.uni-check {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  cursor: pointer; background: #fff; transition: all .2s var(--ease);
}
.uni-check:hover { border-color: var(--gold); background: var(--gold-soft); }
.uni-check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.uni-check .uc-badge {
  width: 30px; height: 30px; border-radius: 6px; flex: none;
  display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700;
}
.uni-check .uc-name { font-size: 13.5px; font-weight: 500; color: var(--ink-soft); line-height: 1.3; }
.uni-check .uc-box {
  margin-inline-start: auto; width: 20px; height: 20px; border-radius: 5px;
  border: 2px solid var(--line-strong); flex: none;
  display: grid; place-items: center; transition: all .2s var(--ease);
}
.uni-check .uc-box svg { opacity: 0; width: 13px; height: 13px; color: #fff; transition: opacity .15s; }
.uni-check input:checked ~ .uc-box,
.uni-check:has(input:checked) .uc-box { background: var(--accent); border-color: var(--accent); }
.uni-check:has(input:checked) .uc-box svg { opacity: 1; }
.uni-check:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }

/* Review summary */
.review-grid { display: grid; gap: 14px; }
.review-section {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--soft); padding: 18px 20px;
}
.review-section h4 {
  margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--accent);
  display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .03em;
}
.review-row {
  display: flex; justify-content: space-between; gap: 16px; padding: 6px 0;
  border-bottom: 1px dashed var(--line); font-size: 14.5px;
}
.review-row:last-child { border-bottom: 0; }
.review-row .rr-key { color: var(--muted); flex: none; }
.review-row .rr-val { color: var(--ink); font-weight: 600; text-align: inline-end; }
.review-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.review-chips .chip {
  font-size: 12px; padding: 3px 9px; border-radius: 20px;
  background: var(--accent-soft); color: var(--accent); font-weight: 600;
}
.review-empty { color: var(--faint); font-style: italic; }

/* Nav buttons */
.apply-nav {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 20px clamp(20px,5vw,48px) 32px;
  border-top: 1px solid var(--line); background: var(--soft);
}
.apply-nav .spacer { flex: 1; }
.btn-prev, .btn-next, .btn-submit {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: all .2s var(--ease);
}
.btn-prev { background: #fff; border-color: var(--line-strong); color: var(--ink-soft); }
.btn-prev:hover { border-color: var(--ink-soft); color: var(--ink); }
.btn-next, .btn-submit { background: var(--accent); color: #fff; }
.btn-next:hover, .btn-submit:hover { background: var(--accent-dark); }
.btn-prev:disabled, .btn-next:disabled { opacity: .4; cursor: not-allowed; }
.arrow-step { font-size: 13px; }
html[dir="ltr"] .arrow-step.flip { transform: scaleX(-1); }

@media (max-width: 640px) {
  .field-grid { grid-template-columns: 1fr; }
  .progress-step .ps-label { display: none; }
  .apply-nav { flex-wrap: wrap; }
}
