/* ==========================================================================
   components.css — reusable pieces used on 2+ pages (mobile-first).
   Buttons = "Style 1 — Solid" (flat navy, white text, tiny shadow, 10px).
   Extra hues exist ONLY on .icon-badge. Teal exists ONLY on the active nav item.
   ========================================================================== */

/* ---- Icons (inline sprite block at the top of every page body) ---- */
.icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }
.globe-art { fill: none; stroke: currentColor; stroke-width: 1; }
.grad-a { stop-color: var(--color-blue-light); }
.grad-b { stop-color: var(--color-primary); }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: 0 1.5rem; border: 1.5px solid transparent; border-radius: var(--radius-sm); font-size: var(--fs-sm); font-weight: 700; line-height: 1; white-space: nowrap; transition: background var(--speed) var(--ease), color var(--speed) var(--ease), border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease), transform var(--speed) var(--ease); }
.btn .icon { width: 16px; height: 16px; stroke-width: 2.6; transition: transform var(--speed) var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--color-primary); color: var(--color-text-inverse); box-shadow: 0 1px 2px rgba(11,31,77,.25), 0 4px 10px rgba(30,58,138,.18); }
.btn--primary:hover { background: var(--color-primary-deep); box-shadow: 0 2px 4px rgba(11,31,77,.25), 0 8px 18px rgba(30,58,138,.28); }
.btn--ondark { background: var(--color-surface); color: var(--color-primary); box-shadow: 0 4px 12px rgba(7,18,52,.22); }
.btn--ondark:hover { background: var(--color-wash); }
.btn--outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn--outline:hover { background: var(--color-wash); }
.btn--outline-light { background: rgba(255,255,255,.08); color: var(--color-text-inverse); border-color: rgba(255,255,255,.65); }
.btn--outline-light:hover { background: rgba(255,255,255,.18); border-color: #fff; }
.btn--sm { min-height: 40px; padding: 0 1.1rem; font-size: var(--fs-xs); }
.btn--block { width: 100%; }
.btn--link { min-height: 0; padding: .3rem 0; border: 0; border-radius: 0; background: none; color: var(--color-primary); box-shadow: none; justify-content: flex-start; }
.btn--link:hover { background: none; }
.btn--link:active { transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* ---- Icon badge: the ONLY place the extra hues appear ---- */
.icon-badge { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; color: #fff; background: linear-gradient(135deg, var(--a), var(--b)); }
.icon-badge .icon { width: 21px; height: 21px; }
.icon-badge--sm { width: 36px; height: 36px; }
.icon-badge--sm .icon { width: 17px; height: 17px; }
.icon-badge--teal   { --a: var(--icon-teal-a);   --b: var(--icon-teal-b); }
.icon-badge--blue   { --a: var(--icon-blue-a);   --b: var(--icon-blue-b); }
.icon-badge--orange { --a: var(--icon-orange-a); --b: var(--icon-orange-b); }
.icon-badge--purple { --a: var(--icon-purple-a); --b: var(--icon-purple-b); }
.icon-badge--pink   { --a: var(--icon-pink-a);   --b: var(--icon-pink-b); }
.icon-badge--navy   { --a: var(--icon-navy-a);   --b: var(--icon-navy-b); }

/* ---- Cards ---- */
.card { position: relative; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card--link { display: flex; flex-direction: column; transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease); }
.card--link:active { transform: scale(.98); }

/* ---- Tag (sits on images) ---- */
.tag { display: inline-block; padding: .3rem .7rem; border-radius: 999px; background: rgba(255,255,255,.96); color: var(--color-primary); font-size: .65rem; font-weight: 800; letter-spacing: .01em; box-shadow: var(--shadow-sm); }
.tag--abs { position: absolute; top: var(--sp-3); left: var(--sp-3); z-index: 2; }

/* ---- Eyebrow: small label above a section heading (same on every page) ---- */
.eyebrow { display: inline-block; margin-bottom: var(--sp-2); padding: .28rem .75rem; border-radius: 999px; background: var(--color-wash); color: var(--color-primary); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow--light { background: rgba(255,255,255,.14); color: var(--color-blue-pale); }

/* ---- Stat ---- */
.stat__num { font-size: 1.7rem; font-weight: 800; color: var(--color-primary); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { font-size: var(--fs-xs); color: var(--color-text-muted); margin-top: .3rem; }

/* ---- Destination card (simple + neat; detailed travel info lives on the Countries page) ---- */
.dest-card { overflow: hidden; }
.dest-card .img-slot { border-radius: 0; --ratio: 3 / 2; }
.dest-card__body { display: flex; flex-direction: column; gap: .2rem; flex: 1; padding: var(--sp-4); }
.dest-card__body h3 { font-size: 1.05rem; }
.dest-card__body p { font-size: var(--fs-xs); color: var(--color-text-muted); line-height: 1.45; }
.dest-card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); margin-top: auto; padding-top: var(--sp-3); border-top: 1px solid var(--color-border); font-size: var(--fs-xs); font-weight: 700; }
.dest-card__body p + .dest-card__foot { margin-top: var(--sp-3); }
.dest-card__fee { color: var(--color-text-muted); font-weight: 600; }
.dest-card__go { display: inline-flex; align-items: center; gap: .3rem; color: var(--color-primary); }
.dest-card__go .icon { width: 14px; height: 14px; stroke-width: 2.6; transition: transform var(--speed) var(--ease); }
.dest-card:hover .dest-card__go .icon { transform: translateX(4px); }

/* ---- Tall destination card (home + Countries page): one photo, one tag, one line, one fee ---- */
.dest-tall { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; color: #fff; box-shadow: var(--shadow-md); transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease); }
.dest-tall .img-slot { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.dest-tall .img-slot img { transition: transform .6s var(--ease); }
.dest-tall::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(12,29,78,.94) 0%, rgba(12,29,78,.25) 55%, transparent 80%); }
.dest-tall > .tag, .dest-tall__body { z-index: 2; }
.dest-tall__body { position: relative; padding: var(--sp-4); }
.dest-tall h3 { color: #fff; font-size: 1.4rem; }
.dest-tall p { margin-top: .15rem; min-height: 2.9em; /* two lines, so every card's title and fee line up */ font-size: var(--fs-sm); color: var(--color-text-inverse-muted); line-height: 1.45; }
.dest-tall__foot { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid rgba(255,255,255,.25); font-size: var(--fs-xs); font-weight: 700; }
.dest-tall__go { display: inline-flex; align-items: center; gap: .3rem; }
.dest-tall__go .icon { width: 14px; height: 14px; stroke-width: 2.6; transition: transform var(--speed) var(--ease); }
.dest-tall:hover .dest-tall__go .icon { transform: translateX(4px); }
@media (hover: hover) { .dest-tall:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); } .dest-tall:hover .img-slot img { transform: scale(1.06); } }
.dest-tall:active { transform: scale(.98); }

/* ---- Floating WhatsApp (desktop only; mobile uses the bottom tab bar) ---- */
.whatsapp-float { display: none; position: fixed; right: var(--sp-4); bottom: var(--sp-4); z-index: var(--z-widget); width: 54px; height: 54px; border-radius: 50%; background: var(--color-whatsapp); color: #fff; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.22); }
.whatsapp-float { animation: wa-pulse 2.6s ease-out infinite; }
.whatsapp-float .icon { width: 28px; height: 28px; transform-origin: 50% 85%; animation: wa-wiggle 6s ease-in-out infinite; }

/* ---- Segmented choice (home quick planner + Find Your University): real radio buttons styled as chips,
        so keyboard and screen readers work with no extra code. Markup:
        <fieldset class="seg"><legend class="seg__legend">…</legend><label class="seg__opt"><input type="radio" …><span>…</span></label>…</fieldset> ---- */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.seg__legend { padding: 0; margin-bottom: .3rem; font-size: var(--fs-xs); font-weight: 700; }
.seg__opt { position: relative; min-width: 0; }
.seg__opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.seg__opt span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 .4rem; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface); font-size: var(--fs-sm); font-weight: 700; color: var(--color-text-muted); white-space: nowrap; transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease), color var(--speed) var(--ease); }
.seg__opt:hover span { border-color: var(--color-blue-pale); }
.seg__opt input:checked + span { border-color: var(--color-primary); background: var(--color-wash); color: var(--color-primary); }
.seg__opt input:focus-visible + span { box-shadow: 0 0 0 3px rgba(30,58,138,.18); }
.seg--sm .seg__opt span { min-height: 38px; font-size: var(--fs-xs); }

/* ---- Range slider (home quick planner + Find Your University). The filled part of the track follows --fill,
        which the page script sets as the thumb moves. Markup: <input type="range" class="slider" …> ---- */
.slider { --fill: 50%; display: block; width: 100%; height: 28px; margin: 0; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; }
.slider::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--color-primary) var(--fill), var(--color-wash-deep) var(--fill)); }
.slider::-moz-range-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--color-primary) var(--fill), var(--color-wash-deep) var(--fill)); }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -8px; border-radius: 50%; background: var(--color-surface); border: 3px solid var(--color-primary); box-shadow: var(--shadow-sm); transition: box-shadow var(--speed) var(--ease); }
.slider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--color-surface); border: 3px solid var(--color-primary); box-shadow: var(--shadow-sm); }
.slider:focus-visible { outline: none; }
.slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(30,58,138,.2); }
.slider:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 5px rgba(30,58,138,.2); }
.slider__scale { display: flex; justify-content: space-between; font-size: .66rem; font-weight: 600; color: var(--color-text-muted); }

/* ---- Form error outline (shared by every tool form) ---- */
.field input.is-invalid { border-color: var(--icon-pink-b); box-shadow: 0 0 0 3px rgba(244,63,94,.12); }

/* ---- Pill: small status label on a dark hero (home, about, country + university pages) ---- */
.pill { display: inline-flex; align-items: center; gap: .55rem; padding: .35rem .85rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); font-size: var(--fs-xs); font-weight: 700; }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse-dot 2s ease-in-out infinite; }

/* ---- Closing CTA: blue card at the end of a page (home, about, country + university pages) ---- */
.cta { position: relative; overflow: hidden; display: grid; gap: var(--sp-4); padding: var(--sp-6) var(--sp-5); border-radius: var(--radius-xl); color: var(--color-text-inverse); background: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.6px) 0 0 / 22px 22px, var(--grad-hero); }
.cta__globe { position: absolute; right: -90px; top: -90px; width: 300px; height: 300px; color: rgba(255,255,255,.14); pointer-events: none; }
.cta > *:not(.cta__globe) { position: relative; }
.cta h2 { color: var(--color-text-inverse); }
.cta p { color: var(--color-text-inverse-muted); font-size: var(--fs-sm); margin-top: var(--sp-1); }
.cta .btn-row .btn { flex: 1 1 100%; }
@media (min-width: 768px) { .cta { padding: var(--sp-6); } }
@media (min-width: 1024px) {
  .cta { grid-template-columns: 1.4fr 1fr; align-items: center; }
  .cta .btn-row { justify-content: flex-end; }
  .cta .btn-row .btn { flex: 0 0 auto; }
}

/* ---- Country tile: the photo fills it; the name, one line and the yearly cost sit on a dark fade at the bottom.
        Markup: <a class="dx-tile" href="…"><div class="img-slot dx-tile__img"><img …></div>
                <div class="dx-tile__body"><h3>…</h3><p class="dx-tile__why">…</p>
                <div class="dx-tile__foot"><span class="dx-tile__cost"><b>₹8 L</b> a year</span><span class="dx-tile__go">→</span></div></div></a>
        Phones: 2 per row, square, name + cost only. Tablets: 3 per row, the line appears. Computers: 4 per row. ---- */
.dx-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
.dx-tile { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radius-lg); color: var(--color-text-inverse); box-shadow: var(--shadow-sm); transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease); }
.dx-tile__img { position: absolute; inset: 0; z-index: -2; aspect-ratio: auto; border-radius: 0; }
.dx-tile__img img { transition: transform .6s var(--ease); }
.dx-tile__img.is-empty::after { align-items: flex-start; padding: var(--sp-3); font-size: .55rem; letter-spacing: 0; white-space: pre-wrap; overflow-wrap: anywhere; border: 0; }
.dx-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(to top, rgba(12,29,78,.92) 0%, rgba(12,29,78,.45) 45%, rgba(12,29,78,0) 75%); }
.dx-tile__body { padding: var(--sp-3); }
.dx-tile h3 { color: var(--color-text-inverse); font-size: 1.02rem; line-height: 1.2; }
.dx-tile__why { display: none; }
.dx-tile__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); margin-top: .25rem; }
.dx-tile__cost { font-size: .72rem; font-weight: 600; color: var(--color-text-inverse-muted); }
.dx-tile__cost b { font-size: .86rem; font-weight: 800; color: var(--color-text-inverse); }
.dx-tile__go { width: 28px; height: 28px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--color-surface); color: var(--color-primary); transition: transform var(--speed) var(--ease); }
.dx-tile__go .icon { width: 14px; height: 14px; stroke-width: 2.6; }
/* Phones (2 columns): a tile left alone on the last row stretches across it instead of leaving a hole */
@media (max-width: 639px) { .dx-tile:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 2 / 1; } }
.dx-tile:active { transform: scale(.98); }
.dx-tile:focus-visible { outline: 3px solid var(--color-blue-light); outline-offset: 3px; }
@media (hover: hover) {
  .dx-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .dx-tile:hover .dx-tile__img img { transform: scale(1.06); }
  .dx-tile:hover .dx-tile__go { transform: translateX(3px); }
}
@media (min-width: 640px) {
  .dx-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dx-tile { aspect-ratio: 4 / 5; }
  .dx-tile__body { padding: var(--sp-4); }
  .dx-tile h3 { font-size: 1.2rem; }
  .dx-tile__why { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; min-height: 2.9em; /* two lines, so every name lines up */ margin-top: .2rem; font-size: var(--fs-xs); line-height: 1.45; color: var(--color-text-inverse-muted); }
  .dx-tile__foot { margin-top: var(--sp-3); padding-top: var(--sp-2); border-top: 1px solid rgba(255,255,255,.22); }
}
@media (min-width: 1024px) {
  .dx-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); }
  .dx-tile { aspect-ratio: 5 / 6; }
}
/* --four: exactly four tiles (Home). Tablets get two wide tiles per row instead of three-plus-one. */
@media (min-width: 640px) and (max-width: 1023px) {
  .dx-tiles--four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
  .dx-tiles--four .dx-tile { aspect-ratio: 16 / 10; }
}
@media (prefers-reduced-motion: reduce) {
  .dx-tile, .dx-tile__img img, .dx-tile__go { transition: none; }
}

/* ---- App install banner (_includes/app-banner.html; shown by js/pwa.js on Android phones only) ----
   A white card floating just above the bottom tab bar; slides up, closes with the X. */
.app-banner { position: fixed; left: 12px; right: 12px; bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 12px); z-index: calc(var(--z-bottom-nav) + 1);
  display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 18px; background: var(--color-surface); border: 1px solid var(--color-border);
  box-shadow: 0 14px 34px rgba(11,31,77,.22); opacity: 0; transform: translateY(24px); transition: opacity .35s var(--ease), transform .45s cubic-bezier(.2,.8,.2,1); }
.app-banner.is-in { opacity: 1; transform: none; }
.app-banner[hidden] { display: none; }
.app-banner__icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; box-shadow: 0 4px 10px rgba(30,58,138,.25); }
.app-banner__text { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.app-banner__text b { font-size: .92rem; font-weight: 800; color: var(--color-primary-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-banner__text span { font-size: var(--fs-xs); color: var(--color-text-muted); }
.app-banner__btn { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: var(--radius-sm); background: var(--color-primary); color: var(--color-text-inverse); font-size: var(--fs-sm); font-weight: 800; }
.app-banner__btn:active { background: var(--color-primary-deep); }
.app-banner__close { position: absolute; top: -9px; right: -5px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--color-primary-ink); color: var(--color-text-inverse); border: 2px solid var(--color-surface); }
.app-banner__close .icon { width: 12px; height: 12px; stroke-width: 3; }
.is-app .app-banner { display: none; }
@media (min-width: 1024px) { .app-banner { display: none; } }
@media (prefers-reduced-motion: reduce) { .app-banner { transition: none; } }

/* ---- Alerts card (_includes/push-prompt.html; shown by js/push.js on the website only) ----
   Phones: floats above the tab bar, like the app banner. Computers: a card at the bottom-left. */
.push-prompt { position: fixed; left: 12px; right: 12px; bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 12px); z-index: calc(var(--z-bottom-nav) + 1);
  display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: center; padding: 12px; border-radius: 18px;
  background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: 0 14px 34px rgba(11,31,77,.22);
  opacity: 0; transform: translateY(24px); transition: opacity .35s var(--ease), transform .45s cubic-bezier(.2,.8,.2,1); }
.push-prompt.is-in { opacity: 1; transform: none; }
.push-prompt[hidden] { display: none; }
.push-prompt__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: #fff;
  background: linear-gradient(135deg, var(--icon-orange-a), var(--icon-orange-b)); }
.push-prompt__ico .icon { width: 21px; height: 21px; animation: push-ring 2.4s ease-in-out 1s 2; transform-origin: 50% 10%; }
@keyframes push-ring { 0%, 60%, 100% { transform: rotate(0); } 10%, 30%, 50% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-14deg); } }
.push-prompt__text { display: grid; line-height: 1.3; min-width: 0; }
.push-prompt__text b { font-size: .92rem; font-weight: 800; color: var(--color-primary-ink); }
.push-prompt__text span { font-size: var(--fs-xs); color: var(--color-text-muted); }
.push-prompt__actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.push-prompt__actions button { height: 40px; border-radius: var(--radius-sm); font-size: var(--fs-sm); font-weight: 800; }
.push-prompt__later { background: var(--color-wash); color: var(--color-primary); }
.push-prompt__allow { background: var(--color-primary); color: var(--color-text-inverse); }
@media (min-width: 1024px) {
  .push-prompt { left: 24px; right: auto; bottom: 24px; width: 380px; }
}

/* ---- Alerts bell button (NEET updates page) ---- */
.push-toggle[hidden] { display: none; }
.push-toggle .icon { transition: transform var(--speed) var(--ease); }
.push-toggle:hover .icon { transform: rotate(-12deg); }
.push-toggle.is-on { background: rgba(255,255,255,.12); color: var(--color-text-inverse); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.push-toggle:disabled { opacity: .75; cursor: default; }

/* ---- "Turn off alerts?" confirm (built by js/push.js when the bell is tapped while alerts are on) ----
   Phones: a sheet from the bottom. Computers: a card in the middle. */
body.confirm-open { overflow: hidden; }
.mo-confirm { position: fixed; inset: 0; z-index: calc(var(--z-menu) + 10); display: grid; align-items: end; }
.mo-confirm__scrim { position: absolute; inset: 0; background: rgba(11,31,77,.55); opacity: 0; transition: opacity .25s var(--ease); }
.mo-confirm__card { position: relative; display: grid; gap: var(--sp-3); max-height: 92svh; overflow-y: auto; padding: var(--sp-6) var(--sp-5) calc(var(--sp-5) + var(--safe-bottom)); border-radius: var(--radius-xl) var(--radius-xl) 0 0; background: var(--color-surface); box-shadow: 0 -20px 50px rgba(7,18,52,.35); transform: translateY(105%); transition: transform .32s var(--ease); }
.mo-confirm__card:focus { outline: none; }
.mo-confirm.is-in .mo-confirm__scrim { opacity: 1; }
.mo-confirm.is-in .mo-confirm__card { transform: none; }
.mo-confirm__ico { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: var(--color-text-inverse); background: linear-gradient(135deg, var(--icon-orange-a), var(--icon-orange-b)); box-shadow: 0 10px 22px rgba(245,158,11,.3); }
.mo-confirm__ico .icon { width: 24px; height: 24px; }
.mo-confirm__ico::after { content: ""; position: absolute; width: 34px; height: 2.5px; border-radius: 2px; background: var(--color-text-inverse); transform: rotate(-45deg); box-shadow: 0 0 0 2px var(--icon-orange-b); }   /* a line through the bell */
.mo-confirm h2 { font-size: 1.3rem; color: var(--color-primary-ink); }
.mo-confirm p { font-size: var(--fs-sm); color: var(--color-text-muted); }
.mo-confirm__list { display: grid; gap: .55rem; padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-md); background: var(--color-wash); }
.mo-confirm__list li { display: flex; align-items: flex-start; gap: .6rem; font-size: var(--fs-sm); font-weight: 600; line-height: 1.4; color: var(--color-text); }
.mo-confirm__list .icon { flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; color: var(--color-primary); }
.mo-confirm .mo-confirm__fine { font-size: var(--fs-xs); }
.mo-confirm__actions { display: grid; gap: var(--sp-2); margin-top: var(--sp-1); }
.mo-confirm__off { min-height: 44px; border-radius: var(--radius-sm); font-size: var(--fs-sm); font-weight: 700; color: var(--color-text-muted); transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease); }
.mo-confirm__off:hover, .mo-confirm__off:focus-visible { background: var(--color-wash); color: var(--color-primary-ink); }
@media (min-width: 640px) {
  .mo-confirm { align-items: center; justify-items: center; padding: var(--sp-5); }
  .mo-confirm__card { width: 100%; max-width: 420px; border-radius: var(--radius-xl); padding-bottom: var(--sp-5); transform: translateY(16px) scale(.97); opacity: 0; transition: transform .28s var(--ease), opacity .28s var(--ease); }
  .mo-confirm.is-in .mo-confirm__card { opacity: 1; }
}

/* ---- App welcome screen (_includes/app-welcome.html; first open of the Android app only) ---- */
.app-welcome { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; overflow: hidden;
  padding: calc(var(--safe-top) + 24px) 24px calc(var(--safe-bottom) + 24px); color: var(--color-text-inverse);
  background: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.6px) 0 0 / 22px 22px, var(--grad-night);
  opacity: 0; transition: opacity .35s var(--ease); }
.app-welcome.is-in { opacity: 1; }
/* leaving: the whole screen lifts up like a curtain (rounded bottom edge) and the home page rises into place under it */
.app-welcome.is-leaving { opacity: 1; transform: translateY(-104%); border-radius: 0 0 44px 44px; box-shadow: 0 30px 60px rgba(4,12,40,.45);
  transition: transform .68s cubic-bezier(.76,0,.24,1), border-radius .68s cubic-bezier(.76,0,.24,1); }
html.app-entering main { animation: app-rise .8s .12s cubic-bezier(.2,.8,.2,1) both; }
/* the header only fades: moving it would drag the hidden menu drawer (fixed inside it) into view and widen the page */
html.app-entering .app-header { animation: app-fade .6s .2s ease-out both; }
@keyframes app-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes app-rise { from { opacity: .3; transform: translateY(48px) scale(.97); } to { opacity: 1; transform: none; } }
.app-welcome[hidden] { display: none; }
body.has-welcome { overflow: hidden; }
.app-welcome__glow { position: absolute; width: 520px; height: 520px; left: 50%; top: -180px; margin-left: -260px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(58,99,209,.55), transparent); pointer-events: none; }
.app-welcome__inner { position: relative; width: 100%; max-width: 400px; display: grid; justify-items: center; text-align: center; }
.app-welcome__inner > * { animation: page-in .5s cubic-bezier(.2,.8,.2,1) both; }
.app-welcome__inner > :nth-child(2) { animation-delay: .08s; }
.app-welcome__inner > :nth-child(3) { animation-delay: .12s; }
.app-welcome__inner > :nth-child(4) { animation-delay: .16s; }
.app-welcome__inner > :nth-child(n+5) { animation-delay: .22s; }
.app-welcome__mark { position: relative; width: 150px; height: 150px; margin-bottom: var(--sp-5); }
.app-welcome__orbit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: group-orbit 24s linear infinite; }
.app-welcome__orbit circle:first-child { fill: none; stroke: rgba(255,255,255,.25); stroke-width: 1.2; stroke-dasharray: 3 6; }
.app-welcome__dot { fill: var(--color-blue-pale); }
.app-welcome__dot--soft { fill: rgba(255,255,255,.55); }
@keyframes group-orbit { to { transform: rotate(360deg); } }
.app-welcome__logo { position: absolute; inset: 0; margin: auto; width: 56%; height: 56%; display: grid; place-items: center; border-radius: 28%;
  color: var(--color-primary); background: var(--color-surface); box-shadow: 0 12px 34px rgba(7,18,52,.5); }
.app-welcome__logo svg { width: 62%; height: 62%; fill: currentColor; }
.app-welcome__hello { font-size: var(--fs-sm); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-blue-pale); }
.app-welcome__title { margin-top: 2px; font-size: 2rem; line-height: 1.1; color: var(--color-text-inverse); }
.app-welcome__lead { margin-top: var(--sp-2); color: var(--color-text-inverse-muted); }
.app-welcome__list { width: 100%; display: grid; gap: 10px; margin: var(--sp-5) 0 0; padding: 0; list-style: none; text-align: left; }
.app-welcome__list li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.app-welcome__list b { display: block; font-size: .95rem; color: var(--color-text-inverse); }
.app-welcome__list li > span:last-child { font-size: var(--fs-xs); color: var(--color-text-inverse-muted); line-height: 1.35; }
.app-welcome__actions { width: 100%; display: grid; gap: 6px; margin-top: var(--sp-6); }
.app-welcome__allow { min-height: 54px; border-radius: 14px; font-size: 1rem; }
.app-welcome__skip { padding: 12px; font-size: var(--fs-sm); font-weight: 700; color: var(--color-text-inverse-muted); }
.app-welcome__skip[hidden], .app-welcome__allow[hidden], .app-welcome__go[hidden], .app-welcome__auto[hidden], .app-welcome__list[hidden] { display: none; }
.app-welcome__cap { transform-box: fill-box; transform-origin: 50% 80%; }
.app-welcome__cap { animation: cap-drop .7s .15s var(--ease) both; }

/* ================= OPENING FROM THE APP ICON (_includes/app-welcome.html + js/push.js) =================
   1. SPLASH: the white logo tile alone in the middle, exactly where Android's own splash left it. While the page
      loads, the tile "breathes", a light sweeps across it and soft rings ripple out over a slowly drifting glow.
   2. UNFOLD: the logo glides up, MATHURA OVERSEAS rises in letter by letter, then the rest cascades in.
   3. EXIT (Start my journey / 5 s): the screen lifts away like a curtain (see .is-leaving above).
   Only transform and opacity are animated (smooth on low-end phones); nothing moves with reduced motion. */
.app-welcome__orbit { display: none; }                                  /* replaced by the ripple rings */
.app-welcome__mark { transition: transform .8s cubic-bezier(.65,0,.25,1); }
.app-welcome__logo { overflow: hidden; z-index: 1; }
/* light sweep across the tile */
.app-welcome__logo::after { content: ""; position: absolute; inset: -20%; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.0) 40%, rgba(184,204,255,.75) 50%, rgba(255,255,255,0) 60%, transparent 65%); transform: translateX(-120%); }
.app-welcome.is-splash .app-welcome__logo::after { animation: tile-shine 1.1s .35s cubic-bezier(.4,0,.2,1) both; }
@keyframes tile-shine { to { transform: translateX(120%); } }
.app-welcome.is-splash .app-welcome__logo { animation: tile-breathe 1s cubic-bezier(.34,1.4,.5,1) both; }
@keyframes tile-breathe { 0% { transform: scale(1); } 35% { transform: scale(.9); } 70% { transform: scale(1.06); } 100% { transform: scale(1); } }
/* ripple rings */
.app-welcome__ripple { position: absolute; inset: 22%; pointer-events: none; }
.app-welcome__ripple i { position: absolute; inset: 0; border-radius: 30%; border: 1.5px solid rgba(184,204,255,.55); opacity: 0; animation: ripple 2.8s cubic-bezier(.2,.6,.3,1) infinite; }
.app-welcome__ripple i:nth-child(2) { animation-delay: .9s; }
.app-welcome__ripple i:nth-child(3) { animation-delay: 1.8s; border-color: rgba(45,212,191,.45); }
@keyframes ripple { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); border-radius: 50%; } }
/* drifting glow: two big soft blobs (navy-blue and teal) that slowly wander behind everything */
.app-welcome__aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.app-welcome__aurora i { position: absolute; width: 560px; height: 560px; border-radius: 50%; opacity: .9; }
.app-welcome__aurora i:first-child { left: -240px; bottom: -220px; background: radial-gradient(closest-side, rgba(20,184,166,.32), transparent); animation: drift-a 9s ease-in-out infinite alternate; }
.app-welcome__aurora i:last-child { right: -260px; top: 18%; background: radial-gradient(closest-side, rgba(58,99,209,.5), transparent); animation: drift-b 11s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(120px, -140px) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-130px, 90px) scale(.9); } }
.app-welcome__glow { transition: opacity 1s .2s var(--ease); }
.app-welcome.is-splash .app-welcome__glow { opacity: .35; }
/* splash: only the tile; the rest waits */
.app-welcome.is-splash .app-welcome__inner > :not(.app-welcome__mark) { animation: none; opacity: 0; }
.app-welcome.is-splash .app-welcome__mark, .app-welcome.is-unfolding .app-welcome__mark { animation: none; }
.app-welcome.is-splash .app-welcome__cap, .app-welcome.is-unfolding .app-welcome__cap { animation: none; }
/* the name, letter by letter */
.app-welcome__word { display: inline-block; white-space: nowrap; }
.app-welcome__word--2 { color: var(--color-blue-pale); }
.app-welcome__ch { display: inline-block; }
.app-welcome.is-unfolding .app-welcome__title { animation: none; }
.app-welcome.is-unfolding .app-welcome__ch { animation: ch-rise .6s calc(.62s + var(--i) * .028s) cubic-bezier(.2,.9,.25,1.15) both; }
@keyframes ch-rise { from { opacity: 0; transform: translateY(.7em) rotate(6deg); } to { opacity: 1; transform: none; } }
/* everything else cascades in */
.app-welcome.is-unfolding .app-welcome__inner > :not(.app-welcome__mark):not(.app-welcome__title) { animation: cascade-in .7s cubic-bezier(.2,.8,.2,1) both; }
.app-welcome.is-unfolding .app-welcome__hello { animation-delay: .56s !important; }
.app-welcome.is-unfolding .app-welcome__lead { animation-delay: 1.02s !important; }
.app-welcome.is-unfolding .app-welcome__list { animation-delay: 1.08s !important; }
.app-welcome.is-unfolding .app-welcome__list li { animation: cascade-in .6s cubic-bezier(.2,.8,.2,1) both; }
.app-welcome.is-unfolding .app-welcome__list li:nth-child(1) { animation-delay: 1.12s; }
.app-welcome.is-unfolding .app-welcome__list li:nth-child(2) { animation-delay: 1.2s; }
.app-welcome.is-unfolding .app-welcome__list li:nth-child(3) { animation-delay: 1.28s; }
.app-welcome.is-unfolding .app-welcome__actions { animation-delay: 1.38s !important; }
@keyframes cascade-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .app-welcome__ripple, .app-welcome__aurora i, .app-welcome__logo::after { animation: none !important; display: none; }
  .app-welcome__ch, .app-welcome.is-unfolding .app-welcome__inner > *, .app-welcome.is-unfolding .app-welcome__list li, .app-welcome.is-splash .app-welcome__logo { animation: none !important; }
  .app-welcome.is-leaving { transform: none; opacity: 0; transition: opacity .3s; }
}

/* Every later opening: live rows you can tap, "Start my journey", and a small 5-second auto-open line */
.app-welcome__live li { padding: 0; }
.app-welcome__live a { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: inherit; color: inherit; text-align: left; transition: background var(--speed) var(--ease); }
.app-welcome__live a:active { background: rgba(255,255,255,.08); }
.app-welcome__live a > span:nth-child(2) { flex: 1; min-width: 0; font-size: var(--fs-xs); color: var(--color-text-inverse-muted); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.app-welcome__live b { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--color-blue-pale); margin-bottom: 2px; }
.app-welcome__live li:first-child a > span:nth-child(2) { font-size: .92rem; font-weight: 700; color: var(--color-text-inverse); }
.app-welcome__go-row { width: 16px; height: 16px; flex-shrink: 0; color: var(--color-text-inverse-muted); }
/* Later openings: only the live rows, the main button and the countdown (set before drawing, see the include) */
.app-welcome.is-launch [data-welcome-first], .app-welcome.is-launch .app-welcome__allow, .app-welcome.is-launch .app-welcome__skip { display: none; }
.app-welcome.is-launch .app-welcome__live, .app-welcome.is-launch .app-welcome__go { display: flex; }
.app-welcome.is-launch .app-welcome__live { flex-direction: column; }
.app-welcome.is-launch .app-welcome__auto { display: grid; }
.app-welcome__live .is-skeleton { height: 66px; padding: 0; overflow: hidden;
  background: linear-gradient(100deg, rgba(255,255,255,.06) 30%, rgba(255,255,255,.14) 50%, rgba(255,255,255,.06) 70%) 0 0 / 300% 100%; animation: welcome-shimmer 1.2s linear infinite; }
@keyframes welcome-shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.app-welcome__go { min-height: 56px; border-radius: 16px; font-size: 1.05rem; gap: 10px; box-shadow: 0 10px 28px rgba(4,12,40,.45), 0 0 0 4px rgba(255,255,255,.08); }
.app-welcome__go .icon { width: 18px; height: 18px; }
.app-welcome__go .icon { animation: welcome-nudge 1.6s 1s ease-in-out infinite; }
@keyframes welcome-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
/* The small "Opening in 5s" line under the main button: a thin bar empties over 5 seconds */
.app-welcome__auto { justify-self: center; display: grid; justify-items: center; gap: 7px; margin-top: 6px; padding: 8px 16px; font-size: var(--fs-xs); font-weight: 700; color: var(--color-text-inverse-muted); }
.app-welcome__auto-bar { width: 92px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.16); overflow: hidden; }
.app-welcome__auto-bar i { display: block; height: 100%; border-radius: 3px; background: var(--color-blue-pale); transform-origin: left; }
.app-welcome.is-in .app-welcome__auto-bar i { animation: welcome-drain 5s .45s linear forwards; }
.app-welcome.is-splash .app-welcome__auto-bar i { animation: none; }
.app-welcome.is-unfolding .app-welcome__auto-bar i { animation-delay: 1.5s; }   /* the 5 s starts once the screen has unfolded */
.app-welcome.is-paused .app-welcome__auto-bar { visibility: hidden; }
@keyframes welcome-drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-height: 680px) { .app-welcome__mark { width: 116px; height: 116px; margin-bottom: var(--sp-3); } .app-welcome__list { margin-top: var(--sp-4); } .app-welcome__actions { margin-top: var(--sp-4); } }
/* Installed on a computer: a roomier card in the middle of the window */
@media (min-width: 900px) and (min-height: 880px) {
  .app-welcome__inner { max-width: 460px; padding: var(--sp-7) var(--sp-6); border-radius: var(--radius-xl); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 80px rgba(4,12,40,.45); }
  .app-welcome__mark { width: 160px; height: 160px; }
  .app-welcome__title { font-size: 2.4rem; }
}
/* ---- App opening (each time the app opens from its icon; _includes/app-welcome.html) ----
   While <html> has "app-launch", the opening screen is drawn from the very first frame and the page waits
   invisibly underneath (opacity only, never movement, so nothing shifts). Entering removes the class. */
html.app-launch, html.app-launch body { overflow: hidden; background: var(--color-night); }   /* navy from the very first frame, like Android's own loading screen */
html.app-launch body > :not(.app-welcome) { opacity: 0; }
html.app-launch .app-welcome, html.app-launch .app-welcome[hidden] { display: grid; opacity: 1; }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .push-prompt, .app-welcome, .app-welcome__inner > * { transition: none; }
  .push-prompt__ico .icon, .app-welcome__orbit, .app-welcome__cap, .app-welcome__inner > *, .app-welcome__go .icon, .app-welcome__live .is-skeleton { animation: none !important; }
}

/* ---- Side-scroll "more" button (js/main.js, any element with data-scroll-hint) ----
   The row and a small round button sit side by side: the button has its own slot at the end, so it never covers
   a pill, and nothing is faded. At the end of the row the arrow turns around ("back to the start"). */
.scroll-hint { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; }
.scroll-hint > [data-scroll-hint] { flex: 1; min-width: 0; }
.scroll-hint__more { display: none; flex-shrink: 0; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--color-primary); color: var(--color-text-inverse); box-shadow: 0 6px 14px rgba(30,58,138,.28); transition: transform .25s var(--ease), background-color var(--speed) var(--ease); }
.scroll-hint__more .icon { width: 16px; height: 16px; stroke-width: 2.8; transition: transform .3s var(--ease); }
.scroll-hint.has-more .scroll-hint__more { display: grid; animation: more-in .3s var(--ease); }
.scroll-hint.has-more:not(.at-end) .scroll-hint__more .icon { animation: hint-nudge 1.6s ease-in-out .6s 3; }
.scroll-hint.at-end .scroll-hint__more { background: var(--color-surface); color: var(--color-primary); box-shadow: inset 0 0 0 1.5px var(--color-border); }
.scroll-hint.at-end .scroll-hint__more .icon { transform: rotate(180deg); }
.scroll-hint__more:active { transform: scale(.9); }
@keyframes more-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes hint-nudge { 0%, 100% { translate: 0; } 50% { translate: 3px; } }
/* rows that bleed into the page margin on the left keep doing so; on the right they stop at the button */
.scroll-hint > .upd-groups, .scroll-hint > .uni-filter { margin-right: 0; padding-right: 2px; }
.scroll-hint > .uni-filter { margin-bottom: 0; }
.scroll-hint:has(> .uni-filter) { margin-bottom: var(--sp-4); }   /* the city row's own space moves to the wrapper, so the button lines up with the pills */
@media (max-width: 767.98px) {
  .cty-tabs .scroll-hint, .udir-bar .scroll-hint { padding-right: var(--gutter); }
  .cty-tabs .scroll-hint.has-more > .cty-tabs__track, .udir-bar .scroll-hint.has-more > .udir-bar__track { padding-right: 2px; }
}
@media (min-width: 768px) { .scroll-hint--mobile { display: block; } .scroll-hint--mobile .scroll-hint__more { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .scroll-hint__more, .scroll-hint__more .icon { animation: none !important; } }

/* ==========================================================================
   RELATED ARTICLES (_includes/related-reads.html) — short links to blog posts,
   on country pages and university pages. Shows only when a post is tagged with that country / university.
   ========================================================================== */
.related-reads { max-width: 820px; }
.related-reads__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--sp-2); margin-bottom: var(--sp-2); }
.related-reads__head h2 { font-size: var(--fs-h3); }
.related-reads__list { border-top: 1px solid var(--color-border); }
.related-reads__list li { border-bottom: 1px solid var(--color-border); }
.related-reads__list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title go" "meta go"; align-items: center; gap: .15rem var(--sp-3); padding: var(--sp-3) 0; }
.related-reads__title { grid-area: title; font-weight: 700; line-height: 1.4; color: var(--color-primary-ink); transition: color var(--speed) var(--ease); }
.related-reads__meta { grid-area: meta; font-size: var(--fs-xs); color: var(--color-text-muted); }
.related-reads__go { grid-area: go; width: 18px; height: 18px; color: var(--color-primary); transition: transform var(--speed) var(--ease); }
@media (hover: hover) {
  .related-reads__list a:hover .related-reads__title { color: var(--color-blue); }
  .related-reads__list a:hover .related-reads__go { transform: translateX(3px); }
}
