/*
 * "Your study abroad journey" component (home + About Us). Colours: gateway-theme.css tokens only.
 * Navy section; a gold flight path down the middle that fills on scroll with a plane at its tip;
 * steps alternate left/right (desktop) and stack beside a left-hand line (phones).
 */
.gw-jr {
    position: relative;
    padding: 96px 0 100px;
    background:
        radial-gradient(ellipse at 10% 0%, rgba(var(--gw-gold-rgb), .10), transparent 40%),
        radial-gradient(ellipse at 95% 60%, rgba(var(--gw-navy-light-rgb), .9), transparent 55%),
        var(--gw-navy);
    color: var(--gw-white);
    font-family: var(--gw-font);
    border-radius: 24px;
    overflow: hidden;
}
.gw-jr-wrap { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }

/* ---- Heading ---- */
.gw-jr-head { text-align: center; margin: 0 auto 56px; max-width: 720px; }
.gw-jr-kicker { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gw-gold); }
.gw-jr-title {
    margin: 12px 0 12px;
    font-family: var(--gw-font);
    font-size: clamp(32px, 3.6vw, 50px);
    line-height: 1.12;
    letter-spacing: -.02em;
    font-weight: 700;
    color: var(--gw-white);
    background: none;
    -webkit-text-fill-color: currentColor;
}
.gw-jr-title span { color: var(--gw-gold); -webkit-text-fill-color: var(--gw-gold); }
.gw-jr-sub { margin: 0; font-size: 16px; color: rgba(255, 255, 255, .72); }

/* ---- Two ways to start (About Us) ---- */
.gw-jr-start { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 18px; margin: 0 0 72px; }
.gw-jr-way {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 22px;
    border-radius: 22px;
    text-decoration: none;
    color: var(--gw-navy);
    background: var(--gw-white);
    border: 2px solid transparent;
    box-shadow: 0 20px 44px rgba(0, 0, 0, .25);
    transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.gw-jr-way:hover { transform: translateY(-3px); border-color: var(--gw-gold); box-shadow: 0 0 0 4px rgba(var(--gw-gold-rgb), .25), 0 24px 50px rgba(0, 0, 0, .3); color: var(--gw-navy); }
.gw-jr-way:focus-visible { outline: 3px solid var(--gw-gold); outline-offset: 4px; }
.gw-jr-way-icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--gw-navy); color: var(--gw-gold); }
.gw-jr-way-icon svg { width: 26px; height: 26px; }
.gw-jr-way-text { flex: 1; min-width: 0; }
.gw-jr-way-text b { display: block; font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.gw-jr-way-text small { display: block; font-size: 13.5px; line-height: 1.5; color: var(--gw-slate); }
.gw-jr-way-arrow { flex-shrink: 0; font-size: 20px; color: var(--gw-gold-dark); transition: transform 200ms ease; }
.gw-jr-way:hover .gw-jr-way-arrow { transform: translateX(4px); }
.gw-jr-or {
    align-self: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--gw-gold-shine);
    color: var(--gw-navy);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 0 0 6px rgba(var(--gw-gold-rgb), .15), 0 0 24px rgba(var(--gw-gold-rgb), .45);
}

/* ---- Track: the flight path ---- */
/* ---- End ---- */
.gw-jr-end { margin-top: 48px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.gw-jr-end p { margin: 0; font-size: 16px; color: rgba(255, 255, 255, .8); }
.gw-jr-cta {
    display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 14px 30px;
    border-radius: 999px; border: 1px solid var(--gw-gold); background: var(--gw-gold-shine); box-shadow: var(--gw-gold-glow);
    color: var(--gw-navy); font-family: var(--gw-font); font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
    transition: transform 200ms ease;
}
.gw-jr-cta:hover { transform: translateY(-2px); color: var(--gw-navy); }
.gw-jr-cta span { transition: transform 200ms ease; }
.gw-jr-cta:hover span { transform: translateX(4px); }
.gw-jr-cta:focus-visible { outline: 3px solid var(--gw-white); outline-offset: 3px; }

/* ==========================================================================
   v3 (Nov 2026): serpentine roadmap. 3 steps per row, rows run left->right, then right->left,
   joined by a dashed gold road that U-turns at the row ends. No plane, no scroll-linked path.
   Phones: one column with the road on the left.
   ========================================================================== */
.gw-jr { padding: 80px 0 84px; }
.gw-jr-head { margin-bottom: 48px; }

.gw-jr-road {
    --jr-gap-x: 72px;
    --jr-gap-y: 64px;
    --jr-road: rgba(var(--gw-gold-rgb), .55);
    list-style: none; margin: 0; padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    column-gap: var(--jr-gap-x);
    row-gap: var(--jr-gap-y);
    counter-reset: none;
}
.gw-jr-stop { position: relative; min-width: 0; grid-column: var(--jr-col); grid-row: var(--jr-row); }

/* The card */
.gw-jr-tile {
    position: relative; z-index: 1; height: 100%;
    display: flex; flex-direction: column;
    padding: 18px 20px 20px;
    background: var(--gw-white);
    color: var(--gw-navy);
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
    transition: transform 200ms ease, box-shadow 200ms ease;
}
.gw-jr-tile:hover { transform: translateY(-4px); box-shadow: 0 0 0 3px var(--gw-gold), 0 24px 48px rgba(0, 0, 0, .32); }
.gw-jr-tile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.gw-jr-bignum {
    font-size: 44px; line-height: .9; font-weight: 800; letter-spacing: -.04em;
    color: transparent; -webkit-text-stroke: 1.5px var(--gw-gold-dark);
}
.gw-jr-pic {
    flex: 0 0 auto; width: 86px; height: 86px; margin: -34px -6px 0 0;
    border-radius: 50%; background: var(--gw-ice);
    border: 4px solid var(--gw-white); box-shadow: 0 10px 24px rgba(var(--gw-navy-rgb), .18);
    display: grid; place-items: center; overflow: hidden;
}
.gw-jr-pic img { width: 82%; height: 82%; object-fit: contain; }
.gw-jr-tile h3 {
    margin: 12px 0 6px; font-family: var(--gw-font); font-size: 18px; line-height: 1.3; font-weight: 700;
    color: var(--gw-navy); -webkit-text-fill-color: var(--gw-navy); background: none; text-align: left;
}
.gw-jr-tile p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--gw-slate); }
.gw-jr-stop.is-last .gw-jr-tile { background: var(--gw-gold-shine); }
.gw-jr-stop.is-last .gw-jr-bignum { -webkit-text-stroke-color: var(--gw-navy); }
.gw-jr-stop.is-last .gw-jr-tile p { color: var(--gw-navy); }

/* The road: straight dashes between cards of a row ... */
.gw-jr-stop::after {
    content: ""; position: absolute; top: 50%; height: 0; width: var(--jr-gap-x);
    border-top: 3px dashed var(--jr-road);
    transform: scaleX(0); transition: transform 450ms ease 150ms;
}
.gw-jr-stop.dir-r::after { left: 100%; transform-origin: left; }
.gw-jr-stop.dir-l::after { right: 100%; transform-origin: right; }
/* ... and a U-turn at the end of each row */
.gw-jr-stop.turn-r::after, .gw-jr-stop.turn-l::after {
    top: 50%; width: calc(var(--jr-gap-x) / 2 + 8px); height: calc(100% + var(--jr-gap-y));
    border: 3px dashed var(--jr-road); transform: none; opacity: 0; transition: opacity 450ms ease 150ms;
}
.gw-jr-stop.turn-r::after { left: calc(100% - 8px); border-left: 0; border-radius: 0 999px 999px 0; }
.gw-jr-stop.turn-l::after { right: calc(100% - 8px); border-right: 0; border-radius: 999px 0 0 999px; }
.gw-jr-stop.is-last::after { content: none; }

/* Reveal (fill-mode friendly: visible without JS) */
.gw-jr-road.js-ready .gw-jr-stop .gw-jr-tile { opacity: 0; transform: translateY(18px); }
.gw-jr-road.js-ready .gw-jr-stop.is-in .gw-jr-tile { opacity: 1; transform: none; transition: opacity 400ms ease var(--jr-delay, 0ms), transform 400ms ease var(--jr-delay, 0ms), box-shadow 200ms ease; }
.gw-jr-road.js-ready .gw-jr-stop.is-in .gw-jr-tile:hover { transform: translateY(-4px); }
.gw-jr-road:not(.js-ready) .gw-jr-stop::after,
.gw-jr-stop.is-in::after { transform: none; opacity: 1; }

/* Tablet: tighter road */
@media (max-width: 1100px) {
    .gw-jr-road { --jr-gap-x: 48px; --jr-gap-y: 56px; padding: 0 26px; }
    .gw-jr-pic { width: 72px; height: 72px; }
    .gw-jr-bignum { font-size: 36px; }
}

/* Phones: one column, the road runs down the left */
@media (max-width: 767.98px) {
    .gw-jr { padding: 56px 0 60px; border-radius: 18px; }
    .gw-jr-wrap { width: calc(100% - 32px); }
    .gw-jr-head { margin-bottom: 32px; }
    .gw-jr-start { grid-template-columns: 1fr; gap: 12px; margin-bottom: 40px; }
    .gw-jr-or { justify-self: center; }
    .gw-jr-road { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; row-gap: 14px; padding: 0 0 0 26px; position: relative; }
    .gw-jr-road::before { content: ""; position: absolute; left: 8px; top: 20px; bottom: 20px; border-left: 3px dashed var(--jr-road); }
    .gw-jr-stop { grid-column: 1; grid-row: auto; }
    .gw-jr-stop::after { content: none !important; }
    .gw-jr-stop::before {
        content: ""; position: absolute; left: -24px; top: 30px; width: 14px; height: 14px; border-radius: 50%;
        background: var(--gw-gold); box-shadow: 0 0 0 4px rgba(var(--gw-gold-rgb), .25);
    }
    .gw-jr-tile { flex-direction: row; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; }
    .gw-jr-tile-top { flex-direction: row-reverse; }
    .gw-jr-pic { width: 60px; height: 60px; margin: 0; border-width: 0; box-shadow: none; }
    .gw-jr-bignum { display: none; }
    .gw-jr-tile-body { min-width: 0; }
    .gw-jr-tile h3 { margin: 0 0 3px; font-size: 16px; }
    .gw-jr-tile p { font-size: 13px; }
    .gw-jr-step-label { display: block; }
}
.gw-jr-step-label { display: none; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gw-gold-dark); }

@media (prefers-reduced-motion: reduce) {
    .gw-jr-tile, .gw-jr-stop::after, .gw-jr-way, .gw-jr-cta { transition: none !important; }
    .gw-jr-road.js-ready .gw-jr-stop .gw-jr-tile { opacity: 1; transform: none; }
    .gw-jr-tile:hover { transform: none; }
}

/* ---- Live journey (20 Nov 2026): active stop highlighted, finished stops gold, road solid behind you ---- */
.gw-jr-sub { color: var(--gw-white); }
.gw-jr-tile p { color: var(--gw-slate); font-size: 14.5px; }
.gw-jr-status {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px;
    width: max-content; max-width: 100%; margin: -24px auto 44px; padding: 10px 18px;
    border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(var(--gw-gold-rgb), .35);
    color: var(--gw-white); font-size: 15px; font-weight: 500;
}
.gw-jr-status b { color: var(--gw-gold); font-weight: 700; }
.gw-jr-status-name { color: var(--gw-gold); font-weight: 600; min-width: 0; }
.gw-jr-status-sep { opacity: .5; }
.gw-jr-status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gw-gold); animation: gwJrPulse 1.6s ease-out infinite; }
.gw-jr-status-bar { width: 90px; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.gw-jr-status-bar i { display: block; height: 100%; width: 11%; background: var(--gw-gold-shine); border-radius: inherit; transition: width 450ms ease; }
@keyframes gwJrPulse { 0% { box-shadow: 0 0 0 0 rgba(var(--gw-gold-rgb), .7); } 100% { box-shadow: 0 0 0 10px rgba(var(--gw-gold-rgb), 0); } }

/* Upcoming stops sit back; done and active come forward */
.gw-jr-road.is-live .gw-jr-tile { transition: transform 220ms ease, box-shadow 220ms ease, opacity 220ms ease; }
.gw-jr-road.is-live .gw-jr-stop:not(.is-done):not(.is-active) .gw-jr-tile { opacity: .82; }
.gw-jr-road.is-live .gw-jr-stop.is-done .gw-jr-bignum { color: var(--gw-gold-dark); -webkit-text-stroke-color: var(--gw-gold-dark); }
.gw-jr-road.is-live .gw-jr-stop.is-active .gw-jr-tile {
    opacity: 1; transform: translateY(-6px) scale(1.04);
    box-shadow: 0 0 0 3px var(--gw-gold), 0 0 34px rgba(var(--gw-gold-rgb), .45), 0 24px 48px rgba(0, 0, 0, .35);
}
.gw-jr-road.is-live .gw-jr-stop.is-active .gw-jr-bignum { color: var(--gw-navy); -webkit-text-stroke-color: var(--gw-navy); }
.gw-jr-road.is-live .gw-jr-stop.is-active .gw-jr-pic { animation: gwJrBob 1.8s ease-in-out infinite; }
@keyframes gwJrBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* "You are here" flag on the active stop */
.gw-jr-here {
    position: absolute; left: 50%; top: -13px; z-index: 2; transform: translate(-50%, 6px); opacity: 0;
    padding: 4px 12px; border-radius: 999px; background: var(--gw-navy); color: var(--gw-gold);
    border: 1px solid var(--gw-gold); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
    transition: opacity 200ms ease, transform 200ms ease; pointer-events: none;
}
.gw-jr-stop.is-active .gw-jr-here { opacity: 1; transform: translate(-50%, 0); }

/* The road: solid gold behind you, dashed ahead */
.gw-jr-road.is-live .gw-jr-stop::after { transform: none; opacity: 1; transition: border-color 400ms ease; }
.gw-jr-road.is-live .gw-jr-stop.is-done::after { border-style: solid; border-color: var(--gw-gold); }
.gw-jr-tile:focus-visible { outline: 3px solid var(--gw-gold); outline-offset: 4px; }

@media (max-width: 767.98px) {
    .gw-jr-status { margin: -12px auto 28px; font-size: 13.5px; padding: 8px 14px; }
    .gw-jr-status-bar { display: none; }
    .gw-jr-road.is-live .gw-jr-stop.is-active .gw-jr-tile { transform: scale(1.02); }
    .gw-jr-road.is-live .gw-jr-stop:not(.is-done):not(.is-active)::before { background: rgba(255, 255, 255, .3); box-shadow: none; }
    .gw-jr-here { left: auto; right: 14px; transform: none; }
    .gw-jr-stop.is-active .gw-jr-here { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .gw-jr-status-dot, .gw-jr-road.is-live .gw-jr-stop.is-active .gw-jr-pic { animation: none; }
    .gw-jr-road.is-live .gw-jr-stop .gw-jr-tile { opacity: 1 !important; transform: none !important; }
}

/* Active stop: the round icon gets the gold ring + glow (same treatment as elsewhere on the site); done stops keep a soft gold ring. */
.gw-jr-pic { transition: border-color 220ms ease, box-shadow 220ms ease; }
.gw-jr-road.is-live .gw-jr-stop.is-done .gw-jr-pic { border-color: rgba(var(--gw-gold-rgb), .6); }
.gw-jr-road.is-live .gw-jr-stop.is-active .gw-jr-pic { border-color: var(--gw-gold); box-shadow: 0 0 0 3px rgba(var(--gw-gold-rgb), .35), 0 0 22px rgba(var(--gw-gold-rgb), .55), 0 10px 24px rgba(var(--gw-navy-rgb), .2); }
/* keep the "You are here" flag clear of the icon */
@media (min-width: 768px) { .gw-jr-here { left: 22px; transform: translateY(6px); } .gw-jr-stop.is-active .gw-jr-here { transform: none; } }

/* ---- Compact stops (20 Nov 2026): icon left, small STEP label, title + one line. Section ~40% shorter. ---- */
@media (min-width: 768px) {
    .gw-jr { padding: 64px 0 68px; }
    .gw-jr-head { margin-bottom: 36px; }
    .gw-jr-status { margin: -16px auto 34px; }
    .gw-jr-road { --jr-gap-x: 44px; --jr-gap-y: 30px; max-width: 1040px; margin: 0 auto; padding: 0 30px; }
    .gw-jr-tile {
        display: grid; grid-template-columns: 58px minmax(0, 1fr); column-gap: 14px; row-gap: 0;
        align-items: center; padding: 14px 16px; border-radius: 18px;
    }
    .gw-jr-tile-top { display: contents; }
    .gw-jr-pic { grid-column: 1; grid-row: 1 / span 2; width: 58px; height: 58px; margin: 0; border-width: 3px; }
    .gw-jr-bignum {
        grid-column: 2; grid-row: 1; align-self: end;
        font-size: 11.5px; line-height: 1.2; font-weight: 800; letter-spacing: .14em;
        color: var(--gw-gold-dark); -webkit-text-stroke: 0;
    }
    .gw-jr-bignum::before { content: "STEP "; }
    .gw-jr-tile-body { grid-column: 2; grid-row: 2; min-width: 0; }
    .gw-jr-tile h3 { margin: 2px 0 2px; font-size: 16px; }
    .gw-jr-tile p { font-size: 13px; line-height: 1.45; }
    .gw-jr-road.is-live .gw-jr-stop.is-done .gw-jr-bignum { color: var(--gw-gold-dark); -webkit-text-stroke: 0; }
    .gw-jr-road.is-live .gw-jr-stop.is-active .gw-jr-bignum { color: var(--gw-navy); -webkit-text-stroke: 0; }
    .gw-jr-stop.is-last .gw-jr-bignum { color: var(--gw-navy); }
    .gw-jr-road.is-live .gw-jr-stop.is-active .gw-jr-tile { transform: translateY(-4px) scale(1.03); }
    .gw-jr-here { top: -11px; left: auto; right: 16px; font-size: 10px; padding: 3px 10px; }
    .gw-jr-stop.turn-r::after, .gw-jr-stop.turn-l::after { width: calc(var(--jr-gap-x) / 2 + 10px); }
}
