/* =========================================================
   StudyFrame — shared design system
   ========================================================= */
:root {
  --ink: #0b1733;
  --ink-2: #263b63;
  --muted: #64748b;
  --navy: #0b2a55;
  --navy-2: #071d3d;
  --accent: #3b82f6;
  --accent-strong: #1d4ed8;
  --cream: #f3f1e9;
  --paper: #fbfcf8;
  --white: #ffffff;
  --line: rgba(11, 23, 51, 0.13);
  --line-light: rgba(255, 255, 255, 0.14);
  --danger: #a33d3d;
  --success: #1d4ed8;
  --shadow-sm: 0 12px 30px rgba(11, 23, 51, 0.09);
  --shadow-lg: 0 30px 90px rgba(11, 23, 51, 0.18);
  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 38px;
  --container: 1240px;
  --header-height: 78px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 18px); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.menu-open, body.dialog-open { overflow: hidden; }
img, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4 { margin-top: 0; }
button { color: inherit; }
::selection { background: var(--accent); color: var(--ink); }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: clamp(86px, 10vw, 144px) 0; position: relative; }
.section-light { background: var(--paper); }
.section-cream { background: var(--cream); }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-150%);
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 800;
}
.skip-link:focus { transform: none; }

.eyebrow {
  margin-bottom: 16px;
  color: #235f9f;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow-light { color: rgba(255,255,255,.76); }
.eyebrow-accent { color: var(--accent); }

h1, h2, h3 { letter-spacing: -0.045em; }
h1 { font-size: clamp(3rem, 6.3vw, 6.4rem); line-height: 0.94; font-weight: 850; }
h2 { font-size: clamp(2.6rem, 5vw, 5.25rem); line-height: 0.96; font-weight: 840; }
h3 { font-size: clamp(1.25rem, 2vw, 1.72rem); line-height: 1.08; font-weight: 810; }

.section-heading { margin-bottom: clamp(42px, 6vw, 76px); }
.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .62fr);
  gap: clamp(34px, 7vw, 110px);
  align-items: end;
}
.split-heading h2 { margin-bottom: 0; max-width: 850px; }
.split-heading > p { color: var(--muted); font-size: 1.05rem; margin-bottom: 4px; max-width: 520px; }
.split-heading-light h2 { color: white; }
.split-heading-light > p { color: rgba(255,255,255,.68); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 790;
  line-height: 1;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(37,99,235,.55);
  outline-offset: 3px;
}
.button-accent { background: var(--accent); color: var(--ink); box-shadow: 0 12px 30px rgba(37,99,235,.22); }
.button-accent:hover { background: #6fb0ff; box-shadow: 0 16px 34px rgba(37,99,235,.29); }
.button-dark { background: var(--navy); color: white; }
.button-dark:hover { background: #173d76; }
.button-small { min-height: 44px; padding: 12px 17px; font-size: .88rem; }
.button-wide { width: 100%; }
.button-outline { border-color: var(--line); background: transparent; }
.button-outline:hover { border-color: var(--ink); }
.button-ghost-light { border-color: rgba(255,255,255,.32); color: white; background: rgba(255,255,255,.06); backdrop-filter: blur(12px); }
.button-ghost-light:hover { background: rgba(255,255,255,.13); }
.button-ghost-dark { border-color: var(--line); background: transparent; }
.text-button { padding: 0; border: 0; background: none; cursor: pointer; font-weight: 800; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  background: rgba(250, 251, 247, .88);
  border-bottom: 1px solid rgba(11,23,51,.08);
  backdrop-filter: blur(18px);
  transition: background .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(11,36,75,.08); background: rgba(250,251,247,.96); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; width: 150px; flex: 0 0 auto; }
.brand img { width: 100%; height: 54px; object-fit: contain; object-position: left center; }
.desktop-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(15px, 1.8vw, 28px); }
.desktop-nav a { position: relative; font-size: .86rem; font-weight: 720; color: var(--ink-2); white-space: nowrap; }
.desktop-nav a::after { content:""; position:absolute; left:0; right:100%; bottom:-8px; height:2px; background:var(--accent-strong); transition:right .2s ease; }
.desktop-nav a:hover::after { right:0; }
.header-cta { margin-left: 4px; }
.quick-access { position: relative; flex: 0 0 auto; }
.quick-access summary { min-height: 44px; padding: 0 14px; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(11,35,70,.13); border-radius: 999px; color: var(--ink); background: rgba(255,255,255,.7); font-size: .82rem; font-weight: 800; list-style: none; white-space: nowrap; cursor: pointer; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.quick-access summary::-webkit-details-marker { display: none; }
.quick-access summary:hover, .quick-access[open] summary { border-color: rgba(37,99,235,.32); background: #fff; box-shadow: 0 9px 24px rgba(11,36,75,.09); }
.quick-access-chevron { font-size: 1rem; transition: transform .2s ease; }
.quick-access[open] .quick-access-chevron { transform: rotate(180deg); }
.quick-access-panel { position: absolute; top: calc(100% + 12px); right: 0; width: 340px; padding: 12px; border: 1px solid rgba(11,35,70,.11); border-radius: 20px; background: rgba(255,255,255,.98); box-shadow: 0 24px 60px rgba(5,23,51,.18); }
.quick-access-panel::before { content: ""; position: absolute; top: -7px; right: 28px; width: 12px; height: 12px; border-left: 1px solid rgba(11,35,70,.11); border-top: 1px solid rgba(11,35,70,.11); background: #fff; transform: rotate(45deg); }
.quick-access-panel > p { margin: 2px 8px 9px; color: var(--muted); font-size: .68rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.quick-access-panel > a { min-height: 72px; padding: 12px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 12px; align-items: center; border-radius: 14px; color: var(--ink); transition: background .18s ease, transform .18s ease; }
.quick-access-panel > a:hover { background: #f1f5ff; transform: translateX(2px); }
.quick-access-panel > a + a { border-top: 1px solid var(--line); }
.quick-access-panel > a > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.quick-access-panel strong, .quick-access-panel small { display: block; }
.quick-access-panel strong { font-size: .87rem; }
.quick-access-panel small { color: var(--muted); font-size: .72rem; }
.quick-access-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--navy); font-style: normal; font-weight: 900; }
.quick-access-icon-portal { background: var(--accent-strong); }
.quick-access-arrow { color: var(--accent-strong); font-size: 1.1rem; }
.mobile-quick-access { display: none; }
.menu-button { display: none; margin-left: auto; width: 46px; height: 46px; border:0; border-radius:50%; background:var(--navy); cursor:pointer; padding:13px; }
.menu-button span { display:block; height:2px; margin:4px 0; background:white; border-radius:4px; }
.mobile-menu { position: fixed; z-index: 200; inset:0; background:rgba(5,16,38,.54); opacity:0; visibility:hidden; transition:.25s ease; }
.mobile-menu.is-open { opacity:1; visibility:visible; }
.mobile-menu-panel { width:min(92vw, 420px); min-height:100%; margin-left:auto; padding:22px; background:#071d3d; color:white; transform:translateX(100%); transition:transform .3s ease; display:flex; flex-direction:column; }
.mobile-menu.is-open .mobile-menu-panel { transform:none; }
.mobile-menu-head { display:flex; align-items:center; justify-content:space-between; }
.brand-mobile { filter:brightness(0) invert(1); }
.menu-close { width:44px; height:44px; border:1px solid rgba(255,255,255,.15); border-radius:50%; background:none; color:white; font-size:1.7rem; cursor:pointer; }
.mobile-menu nav { display:flex; flex-direction:column; padding:52px 0 34px; }
.mobile-menu nav a { padding:14px 2px; border-bottom:1px solid rgba(255,255,255,.1); font-size:1.26rem; font-weight:700; }
.mobile-socials, .footer-socials { display:flex; gap:10px; margin-top:22px; }
.social-link { width:42px; height:42px; display:grid; place-items:center; border-radius:50%; border:1px solid currentColor; opacity:.84; font-weight:800; transition:.2s ease; }
.social-link:hover { opacity:1; transform:translateY(-2px); }

/* Hero */
.hero { min-height: 100svh; padding-top: var(--header-height); position:relative; display:grid; align-items:center; overflow:hidden; color:white; background:var(--navy); }
.hero-media, .hero-overlay { position:absolute; inset:0; }
.hero-media img { width:100%; height:100%; object-fit:cover; object-position:center 48%; }
.hero-overlay { background: linear-gradient(90deg, rgba(4,17,40,.92) 0%, rgba(4,17,40,.75) 47%, rgba(4,17,40,.25) 100%), linear-gradient(0deg, rgba(4,17,40,.62), transparent 43%); }
.hero-grid { position:relative; z-index:2; display:grid; grid-template-columns:minmax(0,1.15fr) minmax(320px,.5fr); gap:clamp(50px,8vw,120px); align-items:center; padding-block:clamp(70px,9vw,130px); }
.hero-copy { max-width:850px; }
.hero h1 { margin-bottom:28px; text-wrap:balance; }
.hero-lead { max-width:740px; margin-bottom:34px; color:rgba(255,255,255,.76); font-size:clamp(1.02rem,1.5vw,1.24rem); }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; }
.hero-proof { display:flex; flex-wrap:wrap; gap:10px 28px; margin-top:42px; color:rgba(255,255,255,.72); font-size:.86rem; font-weight:660; }
.hero-proof span::before { content:"✓"; color:var(--accent); margin-right:8px; }
.hero-card { padding:26px; border:1px solid rgba(255,255,255,.15); border-radius:30px; background:rgba(7,29,61,.67); backdrop-filter:blur(22px); box-shadow:var(--shadow-lg); }
.hero-card-top { display:flex; align-items:center; gap:10px; color:rgba(255,255,255,.78); font-size:.82rem; }
.status-dot { width:8px; height:8px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 6px rgba(79,156,255,.12); }
.profile-visual { display:grid; grid-template-columns:110px 1fr; gap:22px; align-items:center; margin:32px 0; }
.profile-score { width:110px; aspect-ratio:1; border-radius:50%; border:10px solid rgba(79,156,255,.18); display:grid; place-items:center; align-content:center; box-shadow:inset 0 0 0 1px rgba(79,156,255,.45); }
.profile-score span { font-size:.72rem; color:rgba(255,255,255,.63); }
.profile-score strong { font-size:2.55rem; line-height:1; color:var(--accent); }
.profile-lines { display:grid; gap:14px; }
.profile-lines div, .mini-bars div { display:grid; gap:6px; }
.profile-lines span, .mini-bars span { color:rgba(255,255,255,.67); font-size:.71rem; }
.profile-lines b, .mini-bars b { height:6px; border-radius:9px; background:linear-gradient(90deg,var(--accent) var(--value),rgba(255,255,255,.12) var(--value)); }
.hero-card > p { margin:0; color:rgba(255,255,255,.69); font-size:.91rem; }
.hero-scroll { position:absolute; z-index:3; bottom:24px; left:50%; width:46px; height:46px; margin-left:-23px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.25); border-radius:50%; animation:bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform:translateY(5px); } }

/* Feature section */
.feature-grid { display:grid; grid-template-columns:repeat(12,1fr); gap:18px; }
.feature-card { min-height:330px; grid-column:span 4; position:relative; overflow:hidden; padding:28px; border:1px solid var(--line); border-radius:var(--radius); background:white; box-shadow:0 1px 0 rgba(255,255,255,.8) inset; }
.feature-card-large { grid-column:span 6; }
.feature-card-dark { grid-column:span 6; color:white; background:var(--navy); border-color:transparent; }
.feature-index { position:absolute; top:24px; right:26px; color:#7b879d; font-size:.72rem; font-weight:850; }
.feature-card-dark .feature-index { color:rgba(255,255,255,.45); }
.feature-kicker { margin-bottom:50px; color:#2b69a8; font-size:.69rem; font-weight:840; letter-spacing:.12em; text-transform:uppercase; }
.feature-card-dark .feature-kicker { color:var(--accent); }
.feature-card h3 { max-width:440px; margin-bottom:16px; }
.feature-card > p:last-of-type { max-width:510px; color:var(--muted); font-size:.92rem; }
.feature-card-dark > p:last-of-type { color:rgba(255,255,255,.66); }
.feature-stat { position:absolute; right:28px; bottom:25px; display:flex; flex-direction:column; align-items:flex-end; }
.feature-stat strong { font-size:3.2rem; line-height:1; }
.feature-stat span { max-width:150px; text-align:right; color:var(--muted); font-size:.72rem; }
.mini-bars { position:absolute; left:28px; right:28px; bottom:28px; display:grid; gap:11px; }
.device-preview { position:absolute; right:-10px; bottom:-22px; width:180px; height:200px; transform:rotate(8deg); border:8px solid var(--ink); border-radius:24px; background:#eef4ff; box-shadow:var(--shadow-sm); padding:20px 14px; }
.device-preview span { display:block; height:18px; margin-bottom:12px; border-radius:7px; background:white; }
.device-preview span:nth-child(2) { height:55px; background:#dbeafe; }
.feature-portrait { position:absolute; right:20px; bottom:-25px; width:128px; height:165px; object-fit:cover; object-position:center 16%; border-radius:50px 50px 22px 22px; filter:saturate(.82); }

/* Journey */
.journey-section { color:white; background:var(--navy); overflow:hidden; }
.journey-section::before { content:""; position:absolute; width:600px; height:600px; top:-330px; right:-180px; border-radius:50%; background:radial-gradient(circle,rgba(79,156,255,.16),transparent 65%); }
.journey-steps { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(6,1fr); gap:14px; }
.journey-steps li { position:relative; min-height:220px; padding:18px; border:1px solid rgba(255,255,255,.11); border-radius:20px; background:rgba(255,255,255,.035); }
.journey-steps li:not(:last-child)::after { content:"→"; position:absolute; z-index:2; top:27px; right:-14px; color:var(--accent); }
.journey-steps li > span { width:32px; height:32px; display:grid; place-items:center; margin-bottom:46px; border-radius:50%; background:var(--accent); color:var(--ink); font-weight:850; }
.journey-steps h3 { margin-bottom:11px; font-size:1.1rem; letter-spacing:-.02em; }
.journey-steps p { margin:0; color:rgba(255,255,255,.59); font-size:.8rem; }

/* University catalog */
.university-toolbar { display:flex; align-items:center; gap:12px; margin-bottom:28px; flex-wrap:wrap; }
.country-all, .university-toolbar select, .university-toolbar input { height:48px; border:1px solid var(--line); border-radius:999px; background:white; color:var(--ink); }
.country-all { padding:0 18px; cursor:pointer; font-weight:760; }
.country-all.is-active { color:white; background:var(--navy); }
.university-toolbar select { min-width:230px; padding:0 42px 0 17px; cursor:pointer; }
.university-toolbar input { min-width:260px; margin-left:auto; padding:0 18px; }
.country-select-label, .search-label { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.university-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.university-card { display:flex; flex-direction:column; min-height:220px; padding:24px; border:1px solid var(--line); border-radius:var(--radius); background:white; transition:.25s ease; }
.university-card:hover { transform:translateY(-5px); box-shadow:var(--shadow-sm); border-color:rgba(11,23,51,.22); }
.university-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; }
.university-mark { width:48px; height:48px; display:grid; place-items:center; border-radius:14px; color:white; background:var(--navy); font-size:.76rem; font-weight:850; }
.university-flag { font-size:1.6rem; }
.university-location { margin:26px 0 8px; color:var(--muted); font-size:.76rem; }
.university-card h3 { margin-bottom:7px; font-size:1.4rem; }
.university-program { color:#1f67b1; font-size:.88rem; font-weight:790; }
.university-tags { display:flex; flex-wrap:wrap; gap:7px; margin:20px 0; }
.university-tags span { padding:5px 9px; border-radius:999px; background:#f1f5f9; color:#5f6f89; font-size:.68rem; }
.university-price { margin-top:auto; padding:15px; border-radius:15px; background:#eaf3ff; }
.university-price span { display:block; color:#64748b; font-size:.68rem; }
.university-price strong { display:block; margin-top:2px; font-size:1.15rem; }
.university-meta { display:flex; justify-content:space-between; gap:12px; margin:17px 0; font-size:.72rem; color:var(--muted); }
.university-actions { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.university-actions button { border:0; background:none; padding:0; cursor:pointer; color:#1d5fa8; font-weight:790; }
.university-actions .calculate-link { color:#24558f; }
.empty-state { padding:28px; border:1px dashed var(--line); border-radius:var(--radius); text-align:center; color:var(--muted); }

/* Match */
.match-section { background:linear-gradient(180deg,#f7f9fc,#eef5ff); }
.demo-notice { display:flex; gap:14px; align-items:center; margin:-34px 0 26px; padding:15px 18px; border:1px solid #dfca7e; border-radius:14px; background:#fff8d9; color:#655713; font-size:.84rem; }
.demo-notice strong { flex:0 0 auto; }
.match-layout { display:grid; grid-template-columns:minmax(310px,.78fr) minmax(0,1.5fr); gap:24px; align-items:start; }
.card { border:1px solid var(--line); border-radius:var(--radius); background:rgba(255,255,255,.93); box-shadow:var(--shadow-sm); }
.match-form { position:sticky; top:calc(var(--header-height) + 20px); padding:24px; }
.card-heading { display:flex; justify-content:space-between; gap:16px; align-items:baseline; margin-bottom:24px; }
.card-heading span { font-weight:830; font-size:1.25rem; }
.card-heading small { color:var(--muted); font-size:.7rem; }
.field-grid { display:grid; gap:16px; }
.field-grid-two { grid-template-columns:repeat(2,minmax(0,1fr)); }
.field-full { grid-column:1/-1; }
.field { display:grid; gap:7px; }
.field > span { font-size:.78rem; font-weight:760; }
.field input, .field select, .field textarea { width:100%; border:1px solid var(--line); border-radius:12px; background:#fbfcff; color:var(--ink); padding:12px 13px; transition:.2s ease; }
.field input, .field select { min-height:47px; }
.field textarea { resize:vertical; min-height:112px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color:rgba(11,23,51,.3); }
.match-form .button { margin-top:22px; }
.match-results { min-height:620px; }
.match-placeholder { min-height:620px; display:grid; place-items:center; align-content:center; text-align:center; padding:50px; border:1px dashed rgba(11,23,51,.18); border-radius:var(--radius); background:rgba(255,255,255,.45); }
.match-placeholder-icon { width:68px; height:68px; display:grid; place-items:center; margin-bottom:22px; border-radius:20px; background:var(--navy); color:var(--accent); font-size:2rem; }
.match-placeholder h3 { margin-bottom:10px; }
.match-placeholder p { max-width:510px; margin:0; color:var(--muted); }
.match-summary { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-bottom:16px; }
.match-metric { padding:18px; border:1px solid var(--line); border-radius:18px; background:white; }
.match-metric span { display:block; color:var(--muted); font-size:.72rem; }
.match-metric strong { display:block; margin-top:8px; font-size:1.9rem; line-height:1; }
.match-ranking { display:grid; gap:12px; }
.match-result-card { padding:20px; border:1px solid var(--line); border-radius:20px; background:white; box-shadow:0 8px 24px rgba(11,23,51,.045); }
.match-result-head { display:flex; justify-content:space-between; gap:20px; }
.match-result-location { color:var(--muted); font-size:.72rem; }
.match-result-card h3 { margin:5px 0 4px; font-size:1.22rem; }
.match-result-program { color:var(--muted); font-size:.8rem; }
.tier { display:inline-flex; height:28px; align-items:center; padding:0 10px; border-radius:999px; font-size:.68rem; font-weight:820; white-space:nowrap; }
.tier-realistic { background:#e8f1ff; color:#174a8b; }
.tier-balanced { background:#e6efff; color:#284e82; }
.tier-ambitious { background:#fff0d3; color:#7d4f0a; }
.tier-review { background:#f8e1e1; color:#843232; }
.match-score-row { display:grid; grid-template-columns:1fr auto; align-items:end; gap:18px; margin-top:18px; }
.match-score-label { display:flex; justify-content:space-between; margin-bottom:7px; font-size:.72rem; }
.progress { height:9px; overflow:hidden; border-radius:999px; background:#e6edf7; }
.progress span { display:block; width:var(--value); height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--accent),#2563eb); }
.admission-estimate { text-align:right; }
.admission-estimate span { display:block; color:var(--muted); font-size:.67rem; }
.admission-estimate strong { font-size:1.35rem; }
.match-reason { margin-top:14px; color:var(--muted); font-size:.75rem; }
.match-result-actions { display:flex; gap:9px; margin-top:15px; }
.match-result-actions button { padding:8px 12px; border:1px solid var(--line); border-radius:999px; background:white; cursor:pointer; font-size:.72rem; font-weight:780; }
.match-result-actions button:last-child { background:var(--navy); color:white; border-color:var(--navy); }

/* Packages */
.package-selector { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-bottom:18px; }
.package-tab { position:relative; min-height:118px; padding:20px; border:1px solid var(--line); border-radius:20px; background:white; text-align:left; cursor:pointer; transition:.2s ease; }
.package-tab:hover { transform:translateY(-2px); }
.package-tab.is-active { color:white; background:var(--navy); border-color:var(--navy); box-shadow:var(--shadow-sm); }
.package-tab-badge { position:absolute; top:13px; right:13px; padding:5px 8px; border-radius:999px; background:var(--accent); color:var(--ink); font-size:.62rem; font-weight:850; }
.package-tab small { display:block; margin-bottom:11px; color:#47709c; font-size:.68rem; font-weight:800; letter-spacing:.09em; text-transform:uppercase; }
.package-tab.is-active small { color:var(--accent); }
.package-tab strong { display:block; font-size:1.42rem; letter-spacing:-.03em; }
.package-tab span:last-child { display:block; margin-top:6px; color:var(--muted); font-size:.74rem; }
.package-tab.is-active span:last-child { color:rgba(255,255,255,.58); }
.package-detail { display:grid; grid-template-columns:.72fr 1.28fr; gap:30px; padding:clamp(26px,4vw,54px); border-radius:var(--radius-lg); background:var(--navy); color:white; }
.package-overview { display:flex; flex-direction:column; }
.package-overview .eyebrow { color:var(--accent); }
.package-overview h3 { margin-bottom:16px; font-size:clamp(2.2rem,4vw,4.5rem); }
.package-overview > p { color:rgba(255,255,255,.64); }
.package-price { margin:28px 0 18px; }
.package-price strong { display:block; font-size:2.9rem; line-height:1; letter-spacing:-.05em; }
.package-price span { display:block; margin-top:7px; color:rgba(255,255,255,.58); font-size:.8rem; }
.package-overview .button { margin-top:auto; align-self:flex-start; }
.package-benefits { padding:24px; border:1px solid rgba(255,255,255,.11); border-radius:24px; background:rgba(255,255,255,.045); }
.package-benefits h4 { margin-bottom:18px; font-size:.86rem; color:rgba(255,255,255,.62); text-transform:uppercase; letter-spacing:.1em; }
.package-benefit-list { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(2,1fr); gap:10px 20px; }
.package-benefit-list li { display:grid; grid-template-columns:24px 1fr; gap:9px; align-items:start; padding:10px 0; border-bottom:1px solid rgba(255,255,255,.08); font-size:.84rem; }
.package-benefit-list li::before { content:"✓"; width:22px; height:22px; display:grid; place-items:center; border-radius:50%; background:var(--accent); color:var(--ink); font-size:.68rem; font-weight:900; }
.package-benefit-list small { display:block; color:var(--accent); font-size:.62rem; margin-bottom:2px; text-transform:uppercase; letter-spacing:.07em; }

.package-note { margin-top:18px; padding:15px 17px; border:1px solid rgba(255,255,255,.16); border-radius:16px; background:rgba(255,255,255,.08); display:grid; gap:5px; }
.package-note strong { color:var(--accent); font-size:.7rem; letter-spacing:.09em; text-transform:uppercase; }
.package-note span { color:rgba(255,255,255,.86); font-size:.86rem; font-weight:700; }
.package-compare-wrap { margin-top:20px; text-align:center; }
.package-compare-toggle { display:inline-flex; gap:8px; align-items:center; }
.package-compare { margin-top:18px; overflow-x:auto; text-align:left; border:1px solid var(--line); border-radius:20px; background:white; }
.package-compare table { width:100%; min-width:760px; border-collapse:collapse; }
.package-compare th, .package-compare td { padding:15px 18px; border-bottom:1px solid var(--line); text-align:center; font-size:.8rem; }
.package-compare th:first-child, .package-compare td:first-child { text-align:left; }
.package-compare th { background:#f4f5f1; }
.compare-yes { color:var(--success); font-weight:900; }
.compare-no { color:#a1aaa5; }

/* Platform */
.platform-section { overflow:hidden; background:var(--navy); color:white; }
.platform-section::after { content:""; position:absolute; width:720px; height:720px; right:-260px; bottom:-450px; border-radius:50%; background:rgba(79,156,255,.08); }
.platform-grid { display:grid; grid-template-columns:.8fr 1.2fr; gap:clamp(60px,9vw,130px); align-items:center; }
.platform-copy h2 { margin-bottom:24px; }
.platform-copy > p { max-width:550px; color:rgba(255,255,255,.64); }
.check-list { list-style:none; margin:28px 0 34px; padding:0; display:grid; gap:12px; }
.check-list li { display:flex; gap:11px; align-items:center; }
.check-list li::before { content:"✓"; width:23px; height:23px; display:grid; place-items:center; border-radius:50%; background:var(--accent); color:var(--ink); font-size:.7rem; font-weight:900; }
.platform-visual { position:relative; z-index:2; }
.dashboard-shell { display:grid; grid-template-columns:80px 1fr; min-height:470px; overflow:hidden; border:1px solid rgba(255,255,255,.2); border-radius:30px; background:#f5f8ff; box-shadow:0 40px 90px rgba(0,0,0,.26); transform:rotate(1deg); }
.dashboard-sidebar { padding:24px 18px; background:#0b2a55; }
.dashboard-sidebar i { display:block; height:30px; margin-bottom:15px; border-radius:9px; background:rgba(255,255,255,.1); }
.dashboard-sidebar i:first-child { background:var(--accent); }
.dashboard-main { padding:28px; }
.dashboard-head { display:flex; justify-content:space-between; margin-bottom:28px; }
.dashboard-head span { width:40%; height:18px; border-radius:8px; background:#173b70; }
.dashboard-head b { width:42px; height:42px; border-radius:50%; background:#dce5da; }
.dashboard-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.dashboard-stats i { height:98px; border-radius:17px; background:white; box-shadow:0 8px 20px rgba(11,23,51,.07); }
.dashboard-stats i:first-child { background:#e5f0ff; }
.dashboard-chart { height:170px; margin:18px 0; padding:22px; display:flex; align-items:flex-end; gap:14px; border-radius:17px; background:white; }
.dashboard-chart b { flex:1; height:40%; border-radius:6px 6px 0 0; background:#7db4f4; }
.dashboard-chart b:nth-child(2) { height:64%; }
.dashboard-chart b:nth-child(3) { height:45%; }
.dashboard-chart b:nth-child(4) { height:82%; background:var(--accent-strong); }
.dashboard-chart b:nth-child(5) { height:68%; }
.dashboard-list { display:grid; gap:9px; }
.dashboard-list span { height:32px; border-radius:9px; background:#e7eef8; }

/* Stories */
.featured-stories { display:grid; grid-template-columns:1.4fr .6fr; grid-template-rows:repeat(2,minmax(210px,1fr)); gap:16px; }
.story-card { position:relative; min-height:220px; overflow:hidden; border-radius:var(--radius); background:var(--navy); color:white; }
.story-card:first-child { grid-row:1/3; min-height:500px; }
.story-media, .story-media img, .story-media video { width:100%; height:100%; object-fit:cover; }
.story-media { position:absolute; inset:0; }
.story-card::after { content:""; position:absolute; inset:0; background:linear-gradient(0deg,rgba(5,18,42,.9),rgba(5,18,42,.06) 70%); }
.story-content { position:absolute; z-index:2; left:24px; right:24px; bottom:24px; }
.story-meta { color:var(--accent); font-size:.68rem; font-weight:820; text-transform:uppercase; letter-spacing:.08em; }
.story-content h3 { margin:7px 0 7px; font-size:1.35rem; }
.story-content p { margin:0; color:rgba(255,255,255,.65); font-size:.8rem; }
.story-play { position:absolute; z-index:3; inset:24px 24px auto auto; width:52px; height:52px; display:grid; place-items:center; border:0; border-radius:50%; background:var(--accent); color:var(--ink); cursor:pointer; font-weight:900; }
.section-actions { margin-top:28px; text-align:center; }

/* Team */
.team-section { background:#081f42; color:white; }
.team-grid { display:grid; grid-template-columns:.75fr 1.25fr; gap:clamp(50px,9vw,130px); align-items:center; }
.team-image { position:relative; }
.team-image::before { content:""; position:absolute; inset:12% -9% -7% 13%; border-radius:44% 44% 25px 25px; background:var(--accent); }
.team-image img { position:relative; z-index:1; width:100%; max-height:650px; object-fit:cover; object-position:center 15%; border-radius:180px 180px 26px 26px; filter:saturate(.84); }
.team-copy h2 { margin-bottom:16px; }
.team-copy > p { max-width:680px; color:rgba(255,255,255,.64); }
.team-role { font-size:1.16rem; color:white !important; }
.team-facts { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:36px; }
.team-facts div { padding:18px; border:1px solid rgba(255,255,255,.12); border-radius:17px; }
.team-facts strong, .team-facts span { display:block; }
.team-facts strong { color:var(--accent); }
.team-facts span { margin-top:5px; color:rgba(255,255,255,.54); font-size:.72rem; }

/* FAQ */
.faq-section { background:var(--cream); }
.faq-grid { display:grid; grid-template-columns:.5fr 1fr; gap:clamp(50px,9vw,130px); align-items:start; }
.faq-intro { position:sticky; top:calc(var(--header-height) + 30px); }
.faq-intro h2 { margin-bottom:22px; }
.faq-intro > p { color:var(--muted); margin-bottom:28px; }
.faq-list { display:grid; }
.faq-item { border-top:1px solid var(--line); }
.faq-item:last-child { border-bottom:1px solid var(--line); }
.faq-question { width:100%; display:grid; grid-template-columns:1fr auto; gap:24px; align-items:center; padding:22px 0; border:0; background:none; text-align:left; cursor:pointer; font-size:1.02rem; font-weight:780; }
.faq-question span:last-child { width:30px; height:30px; display:grid; place-items:center; border-radius:50%; background:white; transition:transform .2s ease; }
.faq-item.is-open .faq-question span:last-child { transform:rotate(45deg); }
.faq-answer { display:grid; grid-template-rows:0fr; transition:grid-template-rows .25s ease; }
.faq-answer > div { overflow:hidden; }
.faq-answer p { max-width:760px; margin:0; padding:0 50px 22px 0; color:var(--muted); }
.faq-item.is-open .faq-answer { grid-template-rows:1fr; }

/* Consultation */
.consultation-section { background:#f7f9fc; }
.consultation-shell { display:grid; grid-template-columns:.75fr 1.1fr; overflow:hidden; border-radius:var(--radius-lg); background:var(--navy); color:white; box-shadow:var(--shadow-lg); }
.consultation-copy { padding:clamp(32px,5vw,70px); background:linear-gradient(150deg,#0b3268,#1d4ed8); }
.consultation-copy h2 { margin-bottom:22px; font-size:clamp(2.7rem,5vw,5.3rem); }
.consultation-copy > p { color:rgba(255,255,255,.66); }
.consultation-summary { margin-top:42px; padding:18px; border:1px solid rgba(255,255,255,.15); border-radius:17px; background:rgba(255,255,255,.07); }
.consultation-summary span, .consultation-summary strong { display:block; }
.consultation-summary span { color:rgba(255,255,255,.56); font-size:.69rem; text-transform:uppercase; letter-spacing:.08em; }
.consultation-summary strong { margin-top:6px; }
.consultation-form { padding:clamp(30px,5vw,64px); background:white; color:var(--ink); }
.honeypot { position:absolute !important; left:-10000px !important; width:1px !important; height:1px !important; }
.form-step[hidden] { display:none; }
.form-progress { display:flex; align-items:center; gap:16px; margin-bottom:28px; }
.form-progress span { flex:0 0 auto; color:var(--muted); font-size:.72rem; font-weight:760; }
.form-progress b { flex:1; height:5px; overflow:hidden; border-radius:999px; background:#e6edf7; }
.form-progress i { display:block; height:100%; border-radius:inherit; background:var(--accent-strong); }
.field-error { min-height:1em; color:var(--danger); font-size:.68rem; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color:var(--danger); background:#fff7f7; }
.character-count { justify-self:end; margin-top:-3px; color:var(--muted); font-size:.66rem; }
.consent-check { display:grid; grid-template-columns:19px 1fr; gap:10px; margin:20px 0; color:var(--muted); font-size:.75rem; }
.consent-check input { width:18px; height:18px; accent-color:var(--accent-strong); }
.form-actions { display:flex; justify-content:space-between; gap:10px; }
.form-status { min-height:24px; margin-top:18px; font-size:.8rem; }
.form-status.is-error { color:var(--danger); }
.form-status.is-success { padding:13px; border-radius:12px; background:#eaf3ff; color:var(--success); }

/* Footer */
.site-footer { padding:66px 0 24px; background:#06162f; color:white; }
.footer-main { display:grid; grid-template-columns:1.5fr .6fr 1fr; gap:70px; padding-bottom:54px; }
.footer-brand img { width:150px; height:80px; object-fit:contain; object-position:left; filter:brightness(0) invert(1); }
.footer-brand p { max-width:310px; color:rgba(255,255,255,.52); font-size:.86rem; }
.footer-column { display:flex; flex-direction:column; gap:10px; }
.footer-column h2 { margin-bottom:9px; color:rgba(255,255,255,.45); font-size:.68rem; letter-spacing:.12em; text-transform:uppercase; }
.footer-column > a { color:rgba(255,255,255,.75); font-size:.87rem; }
.footer-bottom { display:flex; justify-content:space-between; gap:20px; padding-top:22px; border-top:1px solid rgba(255,255,255,.1); color:rgba(255,255,255,.42); font-size:.7rem; }

/* Dialogs */
dialog { padding:0; border:0; background:transparent; }
dialog::backdrop { background:rgba(5,16,37,.73); backdrop-filter:blur(8px); }
.university-dialog { width:min(920px,calc(100% - 28px)); max-height:calc(100svh - 28px); border-radius:28px; background:white; color:var(--ink); box-shadow:var(--shadow-lg); }
.dialog-inner { padding:clamp(24px,4vw,48px); }
.dialog-close { position:absolute; top:18px; right:18px; width:42px; height:42px; border:0; border-radius:50%; background:#eef3f9; cursor:pointer; font-size:1.35rem; }
.dialog-university-head { display:grid; grid-template-columns:1fr auto; gap:30px; padding-right:44px; }
.dialog-university-head h2 { margin:8px 0; font-size:clamp(2rem,4vw,3.7rem); }
.dialog-university-head p { color:var(--muted); }
.dialog-score { width:108px; height:108px; display:grid; place-items:center; align-content:center; border-radius:50%; background:var(--navy); color:white; }
.dialog-score strong { font-size:2rem; color:var(--accent); }
.dialog-score span { font-size:.62rem; }
.dialog-programs { display:grid; gap:14px; margin:28px 0; }
.dialog-program { padding:20px; border:1px solid var(--line); border-radius:18px; }
.dialog-program h3 { margin-bottom:8px; }
.dialog-program-meta { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px; }
.dialog-program-meta span { padding:6px 9px; border-radius:999px; background:#eff4fa; font-size:.7rem; }
.dialog-details-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.dialog-detail { padding:14px; border-radius:14px; background:#edf5ff; }
.dialog-detail span, .dialog-detail strong { display:block; }
.dialog-detail span { color:var(--muted); font-size:.66rem; }
.dialog-detail strong { margin-top:4px; }
.dialog-notice { margin-top:20px; padding:13px; border-radius:12px; background:#fff7d9; color:#66550e; font-size:.74rem; }
.dialog-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }
.reviews-dialog { width:min(1160px,calc(100% - 24px)); height:min(820px,calc(100svh - 24px)); border-radius:28px; background:var(--paper); box-shadow:var(--shadow-lg); }
.reviews-dialog-head { height:100px; display:flex; align-items:center; justify-content:space-between; padding:22px 28px; border-bottom:1px solid var(--line); }
.reviews-dialog-head h2 { margin:0; font-size:2rem; }
.reviews-dialog-head .eyebrow { margin-bottom:4px; }
.reviews-dialog-head button { width:44px; height:44px; border:0; border-radius:50%; background:white; cursor:pointer; font-size:1.5rem; }
.reviews-dialog iframe { width:100%; height:calc(100% - 100px); border:0; }

/* Reveals */
.reveal { opacity:0; transform:translateY(24px); transition:opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity:1; transform:none; }
.reveal-delay { transition-delay:.12s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
  .reveal { opacity:1; transform:none; }
}

/* Reviews page */
.reviews-page { min-height:100vh; background:var(--cream); }
.reviews-page main { padding:34px; }
.reviews-toolbar { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:24px; }
.reviews-toolbar button { height:42px; padding:0 15px; border:1px solid var(--line); border-radius:999px; background:white; cursor:pointer; }
.reviews-toolbar button.is-active { background:var(--navy); color:white; }
.reviews-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:15px; }
.review-card { overflow:hidden; border:1px solid var(--line); border-radius:20px; background:white; }
.review-card-media { aspect-ratio:16/10; background:var(--navy); overflow:hidden; }
.review-card-media img, .review-card-media video { width:100%; height:100%; object-fit:cover; }
.review-card-copy { padding:18px; }
.review-card-copy h2 { margin-bottom:7px; font-size:1.08rem; }
.review-card-copy p { margin:0; color:var(--muted); font-size:.78rem; }
.review-card-copy blockquote { margin:15px 0 0; padding-left:12px; border-left:3px solid var(--accent-strong); font-size:.8rem; }
.load-more { display:block; margin:28px auto 0; }

/* Responsive */
@media (max-width: 1120px) {
  .desktop-nav { display:none; }
  .header-cta { margin-left:auto; }
  .menu-button { display:block; margin-left:0; }
  .hero-grid { grid-template-columns:1fr .48fr; gap:40px; }
  .journey-steps { grid-template-columns:repeat(3,1fr); }
  .journey-steps li:nth-child(3)::after { display:none; }
  .university-grid { grid-template-columns:repeat(2,1fr); }
  .feature-card { grid-column:span 6; }
  .package-detail { grid-template-columns:.82fr 1.18fr; }
}

@media (max-width: 860px) {
  :root { --header-height: 70px; }
  .container { width:min(calc(100% - 28px),var(--container)); }
  .section { padding:80px 0; }
  .split-heading, .hero-grid, .match-layout, .platform-grid, .team-grid, .faq-grid, .consultation-shell { grid-template-columns:1fr; }
  .hero { min-height:auto; }
  .hero-grid { padding:100px 0 80px; }
  .hero-card { max-width:540px; }
  .hero-scroll { display:none; }
  .feature-card, .feature-card-large, .feature-card-dark { grid-column:span 6; }
  .journey-steps { grid-template-columns:repeat(2,1fr); }
  .journey-steps li:nth-child(3)::after { display:block; }
  .journey-steps li:nth-child(2n)::after { display:none; }
  .match-form, .faq-intro { position:static; }
  .package-detail { grid-template-columns:1fr; }
  .package-overview .button { margin-top:20px; }
  .platform-visual { max-width:680px; }
  .team-image { max-width:520px; }
  .featured-stories { grid-template-columns:1fr 1fr; grid-template-rows:auto; }
  .story-card:first-child { grid-column:1/-1; grid-row:auto; min-height:450px; }
  .consultation-copy, .consultation-form { padding:40px; }
  .footer-main { grid-template-columns:1fr 1fr; }
  .footer-brand { grid-column:1/-1; }
  .quick-access { display: none; }
  .mobile-quick-access { display: grid; gap: 8px; width: min(100%, 760px); margin: -14px 0 24px; }
  .mobile-quick-access > p { margin: 0 0 4px; color: rgba(255,255,255,.48); font-size: .68rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
  .mobile-quick-access > a { min-height: 58px; padding: 9px 12px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 11px; align-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.06); }
  .mobile-quick-access > a > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--navy); background: #fff; font-weight: 900; }
  .mobile-quick-access strong { font-size: .92rem; }
  .mobile-quick-access i { color: var(--accent); font-style: normal; font-size: 1.05rem; }
}

@media (max-width: 620px) {
  .container { width:min(calc(100% - 22px),var(--container)); }
  .header-cta { display:none; }
  .brand { width:136px; }
  h1 { font-size:clamp(2.75rem,13vw,4.2rem); }
  h2 { font-size:clamp(2.35rem,11vw,3.8rem); }
  .hero-overlay { background:linear-gradient(0deg,rgba(5,18,42,.96) 0%,rgba(5,18,42,.66) 70%,rgba(5,18,42,.46) 100%); }
  .hero-grid { padding-top:86px; }
  .hero-actions { display:grid; }
  .hero-actions .button { width:100%; }
  .hero-proof { display:grid; gap:8px; }
  .hero-card { padding:20px; }
  .profile-visual { grid-template-columns:90px 1fr; }
  .profile-score { width:90px; border-width:7px; }
  .profile-score strong { font-size:2rem; }
  .feature-grid { display:grid; grid-template-columns:1fr; }
  .feature-card, .feature-card-large, .feature-card-dark { grid-column:auto; min-height:300px; }
  .feature-stat { position:static; align-items:flex-start; margin-top:30px; }
  .feature-stat span { text-align:left; }
  .journey-steps { grid-template-columns:1fr; }
  .journey-steps li { min-height:170px; }
  .journey-steps li::after { display:none !important; }
  .journey-steps li > span { margin-bottom:27px; }
  .university-toolbar { display:grid; grid-template-columns:1fr; }
  .university-toolbar > * { width:100%; min-width:0 !important; margin:0 !important; }
  .university-grid { grid-template-columns:1fr; }
  .field-grid-two { grid-template-columns:1fr; }
  .field-full { grid-column:auto; }
  .demo-notice { align-items:flex-start; flex-direction:column; margin-top:-24px; }
  .match-summary { grid-template-columns:1fr; }
  .match-result-head, .match-score-row { grid-template-columns:1fr; }
  .admission-estimate { text-align:left; }
  .package-selector { grid-template-columns:1fr; }
  .package-tab { min-height:auto; }
  .package-detail { padding:25px; }
  .package-benefits { padding:15px; }
  .package-benefit-list { grid-template-columns:1fr; }
  .dashboard-shell { grid-template-columns:52px 1fr; min-height:390px; }
  .dashboard-sidebar { padding:20px 10px; }
  .dashboard-main { padding:18px; }
  .dashboard-stats { grid-template-columns:1fr 1fr; }
  .dashboard-stats i:last-child { display:none; }
  .featured-stories { grid-template-columns:1fr; }
  .story-card:first-child { grid-column:auto; min-height:410px; }
  .story-card { min-height:270px; }
  .team-facts { grid-template-columns:1fr; }
  .faq-question { font-size:.92rem; }
  .consultation-copy, .consultation-form { padding:28px 22px; }
  .form-actions { display:grid; grid-template-columns:1fr; }
  .form-actions .button { width:100%; }
  .footer-main { grid-template-columns:1fr; gap:34px; }
  .footer-brand { grid-column:auto; }
  .footer-bottom { flex-direction:column; }
  .dialog-university-head { grid-template-columns:1fr; }
  .dialog-score { width:90px; height:90px; }
  .dialog-details-grid { grid-template-columns:1fr; }
  .reviews-dialog-head { height:86px; padding:16px 18px; }
  .reviews-dialog iframe { height:calc(100% - 86px); }
  .reviews-page main { padding:18px; }
  .reviews-grid { grid-template-columns:1fr; }
}

/* =========================================================
   Revision: blue accent, readable decorations and filters
   ========================================================= */
[hidden] { display: none !important; }

::selection { background: var(--accent-strong); color: #fff; }
.skip-link { background: var(--accent-strong); color: #fff; }
.button:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline-color: rgba(37, 99, 235, .48);
}
.button-accent {
  background: var(--accent-strong);
  color: #fff;
  box-shadow: 0 12px 30px rgba(37, 99, 235, .22);
}
.button-accent:hover { background: #1d4ed8; box-shadow: 0 16px 34px rgba(37, 99, 235, .3); }
.eyebrow { color: #235f9f; }
.eyebrow-accent { color: var(--accent); }

/* Full-screen mobile navigation and a reliably right-aligned trigger. */
.menu-button { margin-left: auto !important; }
.mobile-menu { background: #071d2c; }
.mobile-menu-panel {
  width: 100%;
  min-height: 100dvh;
  margin: 0;
  padding: clamp(18px, 4vw, 34px);
  background: #071d2c;
  transform: translateY(-24px);
  opacity: 0;
}
.mobile-menu.is-open .mobile-menu-panel { transform: none; opacity: 1; }
.mobile-menu nav {
  width: min(100%, 760px);
  margin: auto 0;
  padding: clamp(32px, 7vh, 70px) 0;
}
.mobile-menu nav a { font-size: clamp(1.35rem, 5vw, 2.3rem); }
.mobile-socials { margin-top: 22px; }
.social-link svg { width: 21px; height: 21px; display: block; }

/* The hero intentionally contains only the title. */
.hero-grid { grid-template-columns: minmax(0, 1fr); }
.hero-copy { max-width: 1050px; }
.hero h1 { margin: 0; max-width: 1050px; text-shadow: 0 2px 28px rgba(0,0,0,.28); }
.hero-overlay {
  background: linear-gradient(90deg, rgba(4,20,30,.94) 0%, rgba(4,20,30,.74) 58%, rgba(4,20,30,.28) 100%),
              linear-gradient(0deg, rgba(4,20,30,.55), transparent 48%);
}

/* Decorative visuals now have reserved areas and cannot cover text. */
.feature-card { isolation: isolate; }
.feature-card > h3,
.feature-card > p,
.feature-card > .feature-kicker,
.feature-card > .feature-stat { position: relative; z-index: 2; }
.feature-kicker { margin-bottom: 30px; }
.feature-stat {
  position: static;
  align-items: flex-start;
  margin-top: 38px;
}
.feature-stat span { text-align: left; }
.feature-card-visual { padding-bottom: 192px; }
.device-preview {
  right: 26px;
  bottom: 22px;
  width: 160px;
  height: 148px;
  transform: rotate(4deg);
}
.feature-portrait {
  right: 26px;
  bottom: 22px;
  width: 128px;
  height: 145px;
  border-radius: 28px;
}

.journey-steps li > span,
.package-tab-badge,
.package-benefit-list li::before,
.check-list li::before { color: #fff; }

/* University toolbar */
.language-filter {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 740;
}
.language-filter input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent-strong); }
.university-program, .university-actions button { color: #1f67b1; }
.university-actions .calculate-link { color: #234f87; }
.university-price { background: #eaf3ff; }

/* Model controls and output */
.model-notice {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: -34px 0 26px;
  padding: 15px 18px;
  border: 1px solid #9fc4f5;
  border-radius: 14px;
  background: #edf5ff;
  color: #164b85;
  font-size: .84rem;
}
.model-notice strong { flex: 0 0 auto; }
.toggle-field {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7faff;
  cursor: pointer;
  font-size: .8rem;
  font-weight: 720;
}
.toggle-field input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent-strong); }
.progress span { background: linear-gradient(90deg, var(--accent), var(--accent-strong)); }
.match-model-source {
  margin-bottom: 12px;
  color: #47709c;
  font-size: .72rem;
  font-weight: 760;
}
.match-disclaimer {
  margin: 16px 2px 0;
  color: var(--muted);
  font-size: .74rem;
}

/* Long words and decorative media must never reduce text legibility. */
p, li, a, button, label, span {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}
h1, h2, h3, h4 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}
.feature-card p, .platform-copy p, .team-copy p, .consultation-copy p { max-width: 68ch; }

@media (max-width: 1120px) {
  .header-cta { margin-left: auto; }
  .menu-button { margin-left: 0 !important; }
}

@media (max-width: 620px) {
  .header-cta { display: none; }
  .menu-button { margin-left: auto !important; }
  .mobile-menu-head { width: 100%; }
  .hero-grid { padding: 112px 0 96px; }
  .hero h1 { font-size: clamp(2.75rem, 13vw, 4.2rem); line-height: .98; }
  .feature-card-visual { padding-bottom: 170px; }
  .device-preview { width: 138px; height: 128px; right: 20px; }
  .feature-portrait { right: 20px; }
  .model-notice { align-items: flex-start; flex-direction: column; margin-top: -24px; }
  .language-filter { width: 100%; }
}


/* =========================================================
   Revision v1.2: centered hero and reliable university filters
   ========================================================= */
.hero {
  min-height: 100svh;
  background: var(--navy-2);
}
.hero-overlay {
  background:
    linear-gradient(180deg, rgba(4, 15, 36, .55), rgba(4, 15, 36, .72)),
    radial-gradient(circle at 50% 48%, rgba(29, 78, 216, .08), transparent 56%);
}
.hero-grid {
  min-height: calc(100svh - var(--header-height));
  display: grid;
  place-items: center;
  padding-block: clamp(96px, 12vw, 160px);
}
.hero-copy {
  width: min(100%, 1120px);
  max-width: none;
  margin-inline: auto;
  text-align: center;
}
.hero h1 {
  max-width: 1080px;
  margin-inline: auto;
  font-size: clamp(3.35rem, 7.3vw, 7.4rem);
  line-height: .93;
  text-wrap: balance;
  text-shadow: 0 4px 36px rgba(0, 0, 0, .4);
}
.hero-actions {
  justify-content: center;
  margin-top: clamp(30px, 4vw, 44px);
}
.hero-actions .button {
  min-width: 220px;
}
.button-accent {
  background: var(--accent-strong);
  color: #fff;
}
.button-dark,
.menu-button,
.country-all.is-active {
  background: var(--navy);
}
.button-dark:hover { background: #123d78; }

/* The university filter is one synchronized control group. */
.university-toolbar {
  display: grid;
  grid-template-columns: minmax(190px, .72fr) minmax(250px, .95fr) minmax(280px, 1.25fr) auto;
  align-items: end;
  gap: 14px;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 12px 35px rgba(11, 23, 51, .06);
}
.university-filter-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--ink-2);
  font-size: .72rem;
  font-weight: 780;
}
.university-filter-field > span {
  padding-left: 4px;
}
.university-toolbar select,
.university-toolbar input[type="search"] {
  width: 100%;
  min-width: 0;
  height: 50px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
}
.university-toolbar select {
  padding-right: 42px;
}
.language-filter {
  min-height: 50px;
  border-radius: 14px;
  justify-content: flex-start;
  align-self: end;
  background: #fff;
}
.language-filter input {
  flex: 0 0 auto;
  accent-color: var(--accent-strong);
}
.university-filter-reset {
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #eef4ff;
  color: #1d4ed8;
  cursor: pointer;
  font-size: .8rem;
  font-weight: 790;
}
.university-filter-reset:hover { background: #dbeafe; }
.university-result-count {
  min-height: 24px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: .82rem;
}
.university-card.is-filtered-out { display: none !important; }
.university-card {
  border-color: rgba(11, 23, 51, .12);
}
.university-card:hover { border-color: rgba(29, 78, 216, .35); }
.university-mark { background: var(--navy); }
.university-tags span { background: #f1f5f9; color: #52627d; }
.university-price { background: #eaf3ff; }
.university-actions button,
.university-program { color: #1d4ed8; }
.university-actions .calculate-link { color: #164b85; }

/* Remove residual green appearance from large dark surfaces. */
.journey-section,
.package-section,
.platform-section,
.site-footer,
.mobile-menu,
.mobile-menu-panel { background-color: var(--navy-2); }
.consultation-copy {
  background: linear-gradient(145deg, #0b2a55 0%, #1d4ed8 100%);
}
.dashboard-sidebar { background: var(--navy); }
.dashboard-head span { background: #173b70; }
.story-card::after {
  background: linear-gradient(0deg, rgba(5, 18, 42, .92), rgba(5, 18, 42, .05) 72%);
}

@media (max-width: 1000px) {
  .university-toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .university-search-field { grid-column: 1 / -1; }
  .university-filter-reset { width: 100%; }
}

@media (max-width: 620px) {
  .hero-grid {
    min-height: calc(100svh - var(--header-height));
    padding: 90px 0 74px;
  }
  .hero h1 {
    font-size: clamp(2.65rem, 12vw, 4.1rem);
    line-height: .96;
  }
  .hero-actions {
    display: grid;
    width: min(100%, 360px);
    margin-inline: auto;
  }
  .hero-actions .button { width: 100%; min-width: 0; }
  .university-toolbar { grid-template-columns: 1fr; padding: 14px; }
  .university-search-field { grid-column: auto; }
}

/* Final hero scale adjustment: centered without dominating the entire viewport. */
.hero h1 {
  max-width: 1000px;
  font-size: clamp(3.2rem, 6.35vw, 6.35rem);
}

/* Checkbox normalization: the generic toolbar input rule must not size checkboxes like search fields. */
.language-filter input[type="checkbox"] {
  width: 18px !important;
  min-width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
}
.language-filter span {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
}


/* =========================================================
   Revision v1.3: readable typography in narrow layout columns
   ========================================================= */

/* Never split normal words merely to preserve an oversized display style. */
.section h2,
.consultation-copy h2,
.faq-intro h2,
.platform-copy h2 {
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

/* Give content-heavy headings enough horizontal space and keep their scale
   subordinate to the available column instead of the viewport alone. */
.platform-grid {
  grid-template-columns: minmax(430px, .92fr) minmax(0, 1.08fr);
  gap: clamp(48px, 7vw, 104px);
}
.platform-copy h2 {
  font-size: clamp(2.8rem, 4.35vw, 4.7rem);
  line-height: .98;
}

.faq-grid {
  grid-template-columns: minmax(390px, .72fr) minmax(0, 1.28fr);
  gap: clamp(52px, 7vw, 108px);
}
.faq-intro h2 {
  max-width: 560px;
  font-size: clamp(2.8rem, 4.35vw, 4.75rem);
  line-height: .98;
}
.faq-intro > p {
  max-width: 480px;
}

.consultation-shell {
  grid-template-columns: minmax(500px, .92fr) minmax(0, 1.08fr);
}
.consultation-copy h2 {
  font-size: clamp(2.75rem, 4.15vw, 4.55rem);
  line-height: .98;
  letter-spacing: -.04em;
}
.consultation-copy > p {
  max-width: 540px;
}

/* Form labels and controls remain readable without stealing width from the copy. */
.consultation-form,
.consultation-copy,
.faq-intro,
.platform-copy {
  min-width: 0;
}
.field > span,
.faq-question,
.button {
  overflow-wrap: normal;
  word-break: normal;
}

@media (max-width: 1080px) {
  .platform-grid,
  .faq-grid,
  .consultation-shell {
    grid-template-columns: 1fr;
  }
  .platform-copy,
  .faq-intro,
  .consultation-copy {
    max-width: 760px;
  }
  .faq-intro { position: static; }
  .consultation-copy h2,
  .faq-intro h2,
  .platform-copy h2 {
    max-width: 720px;
  }
}

@media (max-width: 620px) {
  .consultation-copy h2,
  .faq-intro h2,
  .platform-copy h2 {
    font-size: clamp(2.25rem, 11vw, 3.35rem);
    line-height: 1;
    letter-spacing: -.035em;
  }
  .faq-question {
    gap: 14px;
  }
}

/* =========================================================
   Revision v1.4: real platform imagery and richer feature cards
   ========================================================= */
.feature-card-focus .feature-stat {
  margin-left: 14px;
}
.feature-card-focus .feature-stat strong {
  letter-spacing: -.055em;
}
.feature-card-focus .feature-stat span {
  max-width: 176px;
  line-height: 1.35;
}

.feature-card-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}
.feature-card-copy .feature-kicker {
  margin-bottom: 30px;
}
.feature-card-copy h3 {
  margin-bottom: 16px;
}
.feature-card-copy > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .92rem;
}

.feature-card-platform {
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(230px, 1.1fr);
  gap: 24px;
  align-items: center;
  background:
    radial-gradient(circle at 92% 88%, rgba(59, 130, 246, .12), transparent 42%),
    #fff;
}
.feature-platform-shot {
  min-width: 0;
  height: 248px;
  margin: 0 -14px -4px 0;
  overflow: hidden;
  border: 1px solid rgba(11, 23, 51, .13);
  border-radius: 20px;
  background: #eef4ff;
  box-shadow: 0 18px 42px rgba(11, 23, 51, .16);
  transform: rotate(1.5deg);
}
.feature-platform-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.feature-card-with-media {
  min-height: 360px;
  padding-bottom: 158px;
  background:
    radial-gradient(circle at 92% 94%, rgba(59, 130, 246, .1), transparent 38%),
    #fff;
}
.feature-photo {
  position: absolute;
  right: 22px;
  bottom: 20px;
  width: 162px;
  height: 128px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(11, 23, 51, .12);
  border-radius: 24px;
  background: #e8eef5;
  box-shadow: 0 16px 34px rgba(11, 23, 51, .14);
}
.feature-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.feature-illustration {
  position: absolute;
  right: 8px;
  bottom: 2px;
  width: 218px;
  height: 145px;
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
}
.feature-card-support .feature-illustration {
  width: 210px;
  right: 6px;
}

.platform-visual {
  min-width: 0;
}
.platform-shot-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 30px;
  background: #f8fafc;
  box-shadow: 0 38px 90px rgba(0, 0, 0, .3);
  transform: rotate(1deg);
}
.platform-shot-toolbar {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 17px;
  border-bottom: 1px solid rgba(11, 23, 51, .1);
  background: #f8fafc;
  color: #53637b;
}
.platform-shot-toolbar span {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #cbd5e1;
}
.platform-shot-toolbar span:nth-child(2) { background: #b7c8dc; }
.platform-shot-toolbar span:nth-child(3) { background: #9eb5d0; }
.platform-shot-toolbar b {
  margin-left: 8px;
  font-size: .72rem;
  font-weight: 780;
  letter-spacing: .02em;
}
.platform-shot-frame > img {
  width: 100%;
  aspect-ratio: 1.52 / 1;
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 1120px) {
  .feature-card-platform {
    grid-template-columns: minmax(0, .86fr) minmax(200px, 1.14fr);
    gap: 18px;
  }
  .feature-platform-shot {
    height: 228px;
  }
}

@media (max-width: 860px) {
  .feature-card-platform {
    min-height: 480px;
    grid-template-columns: 1fr;
    align-content: start;
  }
  .feature-platform-shot {
    width: 100%;
    height: 235px;
    margin: 4px 0 0;
  }
  .feature-card-with-media {
    min-height: 370px;
  }
  .platform-shot-frame {
    max-width: 760px;
  }
}

@media (max-width: 620px) {
  .feature-card-focus .feature-stat {
    margin-left: 10px;
  }
  .feature-card-platform {
    min-height: 455px;
    padding: 24px;
  }
  .feature-platform-shot {
    height: 220px;
    border-radius: 17px;
  }
  .feature-card-with-media {
    min-height: 350px;
    padding-bottom: 142px;
  }
  .feature-photo {
    right: 18px;
    bottom: 18px;
    width: 148px;
    height: 116px;
  }
  .feature-illustration,
  .feature-card-support .feature-illustration {
    right: 2px;
    width: 196px;
    height: 132px;
  }
  .platform-shot-frame {
    border-radius: 22px;
    transform: none;
  }
  .platform-shot-toolbar {
    min-height: 39px;
    padding-inline: 13px;
  }
  .platform-shot-toolbar b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .platform-shot-frame > img {
    aspect-ratio: 1.18 / 1;
  }
}


/* =========================================================
   Revision v1.5: corrected focus statistic and teacher profile
   ========================================================= */
.feature-card-focus {
  min-height: 360px;
}
.feature-card-focus .feature-stat {
  position: absolute;
  left: 48px;
  right: auto;
  bottom: 40px;
  margin: 0;
  align-items: flex-start;
}
.feature-card-focus .feature-stat span {
  text-align: left;
}

.teacher-profile-section {
  overflow: hidden;
  background: #f6f4ec;
}
.teacher-profile-grid {
  display: grid;
  grid-template-columns: minmax(330px, .72fr) minmax(0, 1.48fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.teacher-profile-photo {
  min-width: 0;
  margin: 0;
}
.teacher-profile-photo img {
  width: 100%;
  aspect-ratio: .92 / 1;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 34px;
  background: #dbe4e9;
  box-shadow: 0 24px 60px rgba(11, 23, 51, .13);
}
.teacher-profile-copy {
  min-width: 0;
}
.teacher-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  margin: 0 0 12px;
  padding: 7px 14px;
  border: 1px solid rgba(11, 23, 51, .13);
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  color: #09213c;
  font-size: .78rem;
  font-weight: 820;
}
.teacher-profile-badge span {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #c7f05a;
  box-shadow: 0 0 0 4px rgba(199, 240, 90, .12);
}
.teacher-profile-copy h2 {
  margin-bottom: 14px;
  color: #06223a;
  font-size: clamp(3.35rem, 5.7vw, 5.8rem);
  line-height: .92;
  letter-spacing: -.055em;
}
.teacher-profile-lead {
  max-width: 850px;
  margin-bottom: 24px;
  color: #6d7c82;
  font-size: clamp(1rem, 1.55vw, 1.24rem);
  line-height: 1.48;
}
.teacher-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
}
.teacher-profile-stats div {
  min-width: 0;
  min-height: 92px;
  padding: 17px 16px;
  border: 1px solid rgba(11, 23, 51, .13);
  border-radius: 18px;
  background: rgba(255, 255, 255, .74);
}
.teacher-profile-stats strong,
.teacher-profile-stats span {
  display: block;
}
.teacher-profile-stats strong {
  margin-bottom: 5px;
  color: #09213c;
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
  line-height: 1;
}
.teacher-profile-stats span {
  color: #7b8b8e;
  font-size: .76rem;
  line-height: 1.35;
}
.teacher-profile-summary {
  max-width: 900px;
  margin: 0;
  color: #10253a;
  font-size: .98rem;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .teacher-profile-grid {
    grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr);
    gap: 34px;
  }
  .teacher-profile-copy h2 {
    font-size: clamp(3rem, 7vw, 4.7rem);
  }
  .teacher-profile-stats {
    grid-template-columns: 1fr;
  }
  .teacher-profile-stats div {
    min-height: 0;
  }
}

@media (max-width: 700px) {
  .feature-card-focus {
    min-height: 340px;
  }
  .feature-card-focus .feature-stat {
    left: 36px;
    bottom: 34px;
  }
  .teacher-profile-grid {
    grid-template-columns: 1fr;
  }
  .teacher-profile-photo {
    max-width: 480px;
  }
  .teacher-profile-copy h2 {
    font-size: clamp(3rem, 14vw, 4.75rem);
  }
  .teacher-profile-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .feature-card-focus {
    min-height: 320px;
  }
  .feature-card-focus .feature-stat {
    position: static;
    margin: 32px 0 0 12px;
  }
  .teacher-profile-stats {
    grid-template-columns: 1fr;
  }
  .teacher-profile-photo img {
    border-radius: 26px;
  }
}

/* =========================================================
   Revision v1.6: pricing leads, chat support, concise Match
   ========================================================= */
.university-price-cta {
  width: 100%;
  margin-top: auto;
  padding: 15px;
  border: 1px solid rgba(29, 78, 216, .16);
  border-radius: 15px;
  background: #eaf3ff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.university-price-cta:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 78, 216, .34);
  box-shadow: 0 12px 24px rgba(29, 78, 216, .1);
}
.university-price-cta span,
.university-price-cta strong { display: block; }
.university-price-cta span { color: #64748b; font-size: .68rem; }
.university-price-cta strong { margin-top: 3px; color: #164b85; font-size: 1.02rem; }

.feature-card-support {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  padding-bottom: 28px;
  background:
    radial-gradient(circle at 92% 94%, rgba(59, 130, 246, .12), transparent 40%),
    #fff;
}
.after-admission-chat {
  width: min(100%, 360px);
  display: grid;
  gap: 8px;
  margin: auto 0 0 auto;
  padding-top: 22px;
}
.chat-bubble {
  width: fit-content;
  max-width: 90%;
  padding: 11px 14px;
  border-radius: 17px;
  font-size: .76rem;
  line-height: 1.4;
  box-shadow: 0 10px 24px rgba(11, 23, 51, .08);
}
.chat-bubble-student {
  justify-self: end;
  border-bottom-right-radius: 5px;
  background: #eaf3ff;
  color: #123d78;
}
.chat-bubble-studyframe {
  justify-self: start;
  border-bottom-left-radius: 5px;
  background: var(--navy);
  color: white;
}
.chat-bubble-studyframe span {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-size: .58rem;
  font-weight: 900;
  vertical-align: middle;
}
.chat-status {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-left: 6px;
  color: var(--muted);
  font-size: .66rem;
}
.chat-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .1);
}

.match-results { min-height: 0; }
.match-summary-panel {
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 18px 46px rgba(11, 23, 51, .06);
}
.match-summary-panel > h3 {
  max-width: 720px;
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3.4vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: -.04em;
}
.match-summary-panel > p:not(.eyebrow):not(.match-disclaimer) {
  max-width: 680px;
  margin: 0 0 26px;
  color: var(--muted);
}
.match-summary-note {
  display: grid;
  gap: 4px;
  margin: 4px 0 22px;
  padding: 18px;
  border-radius: 18px;
  background: #eef5ff;
}
.match-summary-note span { color: var(--muted); font-size: .78rem; }
.match-summary-panel > .button { align-self: flex-start; width: auto; min-width: 240px; }
.match-summary-panel .match-disclaimer { margin-bottom: 0; }

.package-payment-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  flex-wrap: wrap;
  margin: -4px 0 18px;
  padding: 15px 20px;
  border: 1px solid rgba(29, 78, 216, .14);
  border-radius: 18px;
  background: #eaf3ff;
  color: #123d78;
  text-align: center;
}
.package-payment-banner strong { font-size: 1.05rem; }
.package-payment-banner span { color: #55708f; font-size: .82rem; }
.package-payment-highlight {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  align-items: center;
  margin: 24px 0 0;
  padding: 17px;
  border: 1px solid rgba(199, 240, 90, .3);
  border-radius: 18px;
  background: rgba(199, 240, 90, .09);
}
.package-payment-highlight strong {
  grid-row: 1 / span 2;
  color: var(--accent);
  font-size: 2.45rem;
  line-height: 1;
  letter-spacing: -.055em;
}
.package-payment-highlight span { font-weight: 820; }
.package-payment-highlight small { color: rgba(255, 255, 255, .62); }
.package-price { margin-top: 20px; }

.form-step [data-form-next] { margin-top: 30px; }

@media (max-width: 620px) {
  .after-admission-chat { width: 100%; }
  .match-summary-panel { min-height: 0; padding: 26px 20px; }
  .match-summary-panel > .button { width: 100%; min-width: 0; }
  .package-payment-highlight { grid-template-columns: 1fr; }
  .package-payment-highlight strong { grid-row: auto; }
}

/* =========================================================
   Revision v1.7: expandable university catalog
   ========================================================= */
.university-grid-shell {
  position: relative;
}
.university-grid-shell.is-collapsed,
.university-grid-shell.is-expanding {
  overflow: hidden;
  transition: max-height .42s ease;
}
.university-more-overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  display: flex;
  min-height: 190px;
  align-items: flex-end;
  justify-content: center;
  padding: 72px 20px 22px;
  background: linear-gradient(
    to bottom,
    rgba(243, 241, 233, 0) 0%,
    rgba(243, 241, 233, .78) 48%,
    var(--cream) 82%
  );
  pointer-events: none;
}
.university-more-overlay[hidden] {
  display: none;
}
.university-show-more {
  position: relative;
  z-index: 1;
  min-width: min(280px, 100%);
  min-height: 52px;
  border: 0;
  box-shadow: 0 16px 36px rgba(7, 29, 61, .2);
  pointer-events: auto;
}
.university-actions {
  margin-top: auto;
  padding-top: 4px;
}

@media (max-width: 700px) {
  .university-more-overlay {
    min-height: 170px;
    padding: 58px 12px 16px;
  }
}

.field-hint {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted, #6b6f66);
  font-size: 0.82rem;
  line-height: 1.35;
}

/* Match form UI polish: keep calculator behavior unchanged while making the form feel deliberate. */
.match-layout {
  grid-template-columns: minmax(390px, .94fr) minmax(0, 1.36fr);
  gap: 28px;
}
.match-form {
  padding: 28px;
}
.match-form .card-heading {
  margin-bottom: 22px;
}
.match-form .field-grid-two {
  column-gap: 14px;
  row-gap: 17px;
  align-items: start;
}
.match-form .field {
  min-width: 0;
  align-self: start;
  align-content: start;
}
.match-form .field > span {
  display: flex;
  min-height: 2.55em;
  align-items: flex-end;
  line-height: 1.28;
}
.match-form .field input,
.match-form .field select {
  height: 52px;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 13px;
  background: #fff;
  font-variant-numeric: tabular-nums;
}
.match-form .field input:focus,
.match-form .field select:focus {
  border-color: rgba(37, 99, 235, .52);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .08);
}
.match-form .match-country-field select[multiple] {
  height: 154px;
  min-height: 154px;
  padding: 7px;
  background: #fff;
}
.match-form .match-country-field select[multiple] option {
  padding: 7px 9px;
  border-radius: 7px;
}
.match-form .match-country-field .field-hint {
  margin-top: 5px;
}
.match-form .button-wide {
  min-height: 54px;
}

@media (max-width: 980px) and (min-width: 861px) {
  .match-layout {
    grid-template-columns: minmax(360px, .95fr) minmax(0, 1.05fr);
    gap: 20px;
  }
  .match-form {
    padding: 22px;
  }
}

@media (max-width: 620px) {
  .match-form {
    padding: 20px;
  }
  .match-form .field > span {
    min-height: auto;
  }
  .match-form .field-grid-two {
    row-gap: 15px;
  }
}

@media (max-width: 860px) {
  .match-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}