/*
 * Home hero (Nov 2026 redesign): "Study abroad. Grow beyond borders." + student / agent buttons,
 * navy globe illustration, and the "What is Gateway Educonnect?" portal popup (opens from the logo circle).
 * Layout taken from the reference design; every colour and font comes from gateway-theme.css (--gw-*).
 */

/* Motion tokens for the hero popups (exit faster than enter). */
:root {
    --gw-motion-enter: 200ms;
    --gw-motion-exit: 150ms;
    --gw-motion-portal: 450ms;
    --gw-motion-portal-exit: 250ms;
    --gw-ease-out: cubic-bezier(.2, .8, .2, 1);
    --gw-ease-in: cubic-bezier(.4, 0, 1, 1);
}

/* =====================================================================
   Hero
   ===================================================================== */
.gw-hero2 {
    position: relative;
    overflow: hidden;
    margin-top: 80px;                       /* fixed site header height */
    background:
        radial-gradient(ellipse at 78% 50%, rgba(var(--gw-navy-rgb), .10) 0%, transparent 52%),
        radial-gradient(ellipse at 90% 92%, rgba(var(--gw-gold-rgb), .18) 0%, transparent 40%),
        linear-gradient(125deg, var(--gw-white) 18%, var(--gw-ice) 88%);
    border-bottom: 1px solid rgba(var(--gw-navy-rgb), .08);
    font-family: var(--gw-font);
}
.gw-hero2::before {                         /* faint grid */
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--gw-navy-rgb), .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--gw-navy-rgb), .045) 1px, transparent 1px);
    background-size: 59px 59px;
    pointer-events: none;
}

.gw-hero2-inner {
    position: relative;
    width: min(1260px, calc(100% - 88px));
    margin-inline: auto;
    padding: 72px 0 84px;
    display: grid;
    grid-template-columns: 1fr .94fr;
    gap: 30px;
    align-items: center;
}

.gw-hero2-title {
    font-family: var(--gw-font);
    font-size: clamp(42px, 4.7vw, 72px);
    line-height: 1.12;
    letter-spacing: -.035em;
    font-weight: 700;
    color: var(--gw-navy);
    margin: 0 0 24px;
    max-width: 700px;
}

.gw-hero2-sub {
    font-size: 17px;
    line-height: 1.7;
    color: var(--gw-slate);
    max-width: 660px;
    margin: 0 0 8px;
}
.gw-hero2-sub strong { color: var(--gw-navy); font-weight: 600; }

.gw-hero2-actions {
    margin-top: 30px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.gw-hero2-btn {
    min-height: 52px;
    border-radius: 999px;
    padding: 13px 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--gw-font);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s, color .2s;
    border: 1.5px solid var(--gw-navy);
    background: transparent;
    color: var(--gw-navy);
}
.gw-hero2-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(var(--gw-navy-rgb), .14); }
.gw-hero2-btn--gold {
    background: var(--gw-gold-shine);
    border-color: var(--gw-gold);
    box-shadow: var(--gw-gold-glow);
}
.gw-hero2-btn--navy { background: var(--gw-navy); color: var(--gw-white); }
.gw-hero2-btn--navy:hover { background: var(--gw-navy-light); }
.gw-hero2-btn:focus-visible { outline: 3px solid var(--gw-gold); outline-offset: 3px; }

.gw-hero2-proof {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 28px;
}
.gw-hero2-proof span {
    font-size: 13px;
    font-weight: 500;
    color: var(--gw-navy);
    background: rgba(var(--gw-navy-rgb), .05);
    border: 1px solid rgba(var(--gw-navy-rgb), .10);
    border-radius: 999px;
    padding: 7px 13px;
}
.gw-hero2-proof b { color: var(--gw-gold-dark); padding-right: 6px; }

/* ---- Right-hand illustration: navy globe ---- */
.gw-hero2-art { height: 540px; position: relative; min-width: 0; }
.gw-hero2-world {
    position: absolute;
    width: 435px;
    height: 435px;
    right: 35px;
    top: 29px;
    border-radius: 50%;
    overflow: hidden;
    background: radial-gradient(circle at 32% 28%, var(--gw-navy-light) 0%, var(--gw-navy) 62%, #071434 100%);
    border: 1px solid rgba(var(--gw-gold-rgb), .45);
    box-shadow:
        0 0 0 30px rgba(var(--gw-navy-rgb), .06),
        0 0 0 68px rgba(var(--gw-navy-rgb), .035),
        0 30px 70px rgba(var(--gw-navy-rgb), .35),
        inset -30px -40px 80px rgba(0, 0, 0, .35);
}
.gw-hero2-grid {                            /* gold latitude / longitude lines */
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        repeating-linear-gradient(90deg, transparent 0 65px, rgba(var(--gw-gold-rgb), .16) 66px 67px),
        repeating-linear-gradient(0deg, transparent 0 65px, rgba(var(--gw-gold-rgb), .12) 66px 67px);
}
.gw-hero2-land {
    position: absolute;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 35% 55% 42% 59%;
}
.gw-hero2-land.one { left: 60px; top: 90px; width: 110px; height: 90px; transform: rotate(-20deg); }
.gw-hero2-land.two { right: 69px; top: 74px; width: 133px; height: 115px; transform: rotate(17deg); }
.gw-hero2-land.three { left: 180px; bottom: 42px; width: 105px; height: 130px; transform: rotate(20deg); }
.gw-hero2-flight {
    position: absolute;
    top: 164px;
    left: 64px;
    width: 280px;
    height: 145px;
    border: 2px dashed rgba(var(--gw-gold-rgb), .85);
    border-top-color: transparent;
    border-left-color: transparent;
    border-radius: 50%;
    transform: rotate(-23deg);
}
.gw-hero2-plane {
    position: absolute;
    right: 82px;
    top: 136px;
    font-size: 30px;
    transform: rotate(35deg);
    color: var(--gw-gold);
    text-shadow: 0 0 12px rgba(var(--gw-gold-rgb), .7);
}

/* Logo circle = button that opens the portal popup. */
.gw-hero2-hub {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    transform: translate(-50%, -50%);
    width: 192px;
    height: 192px;
    padding: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, var(--gw-navy-light), var(--gw-navy) 70%);
    border: 9px solid var(--gw-gold);
    box-shadow: 0 0 0 6px rgba(var(--gw-gold-rgb), .22), 0 0 40px rgba(var(--gw-gold-rgb), .55), 0 18px 50px rgba(0, 0, 0, .35);
    color: var(--gw-white);
    font-family: var(--gw-font);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform .25s, box-shadow .25s;
}
.gw-hero2-hub img { width: 96px; height: auto; }
.gw-hero2-hub:hover {
    transform: translate(-50%, -50%) scale(1.06);
    box-shadow: 0 0 0 8px rgba(var(--gw-gold-rgb), .3), 0 0 60px rgba(var(--gw-gold-rgb), .75), 0 18px 50px rgba(0, 0, 0, .35);
}
.gw-hero2-hub:focus-visible { outline: 3px solid var(--gw-white); outline-offset: 5px; }
.gw-hero2-hub::before {                     /* pulsing ring: "click me" */
    content: "";
    position: absolute;
    inset: -9px;
    border-radius: 50%;
    border: 2px solid var(--gw-gold);
    animation: gwHubPulse 2.4s ease-out infinite;
    pointer-events: none;
}
@keyframes gwHubPulse {
    0% { transform: scale(1); opacity: .9; }
    100% { transform: scale(1.32); opacity: 0; }
}
/* Tapping cursor: glides in, presses on "Click me" with a ripple, glides out. Loops, so the circle reads as clickable. */
.gw-hero2-cursor {
    position: absolute;
    left: 100%;
    top: 100%;
    width: 28px;
    height: 28px;
    z-index: 4;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 2l7.6 19 2.6-7.8L21 10.6z' fill='%23ffffff' stroke='%230B1F4B' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat 0 0 / contain;
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .45));
    transform-origin: 3px 2px;
    animation: gwHubCursor 3.6s cubic-bezier(.4, 0, .2, 1) infinite;
}
.gw-hero2-cursor::after {                    /* tap ripple at the cursor tip */
    content: "";
    position: absolute;
    left: -9px;
    top: -9px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--gw-gold);
    opacity: 0;
    animation: gwHubTap 3.6s ease-out infinite;
}
@keyframes gwHubCursor {
    0%   { left: 112%; top: 112%; opacity: 0; transform: scale(1); }
    12%  { opacity: 1; }
    40%  { left: 60%; top: 84%; opacity: 1; transform: scale(1); }
    48%  { left: 60%; top: 84%; transform: scale(.82); }
    56%  { left: 60%; top: 84%; transform: scale(1); }
    80%  { left: 60%; top: 84%; opacity: 1; }
    100% { left: 112%; top: 112%; opacity: 0; transform: scale(1); }
}
@keyframes gwHubTap {
    0%, 44% { transform: scale(.3); opacity: 0; }
    48%     { transform: scale(.6); opacity: .95; }
    66%     { transform: scale(2.4); opacity: 0; }
    100%    { transform: scale(2.4); opacity: 0; }
}
.gw-hero2-hub-hint {
    margin-top: 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gw-gold);
}

/* Cards: shiny gold border all round + soft gold glow. */
.gw-hero2-card {
    position: absolute;
    z-index: 2;
    border: 2px solid transparent;
    background:
        linear-gradient(var(--gw-white), var(--gw-white)) padding-box,
        var(--gw-gold-shine) border-box;
    border-radius: 19px;
    padding: 17px 18px;
    box-shadow:
        0 0 0 4px rgba(var(--gw-gold-rgb), .16),
        0 0 22px rgba(var(--gw-gold-rgb), .45),
        0 20px 50px rgba(var(--gw-navy-rgb), .18);
    overflow: hidden;
}
.gw-hero2-card::after {                     /* light sweep across the card every few seconds */
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .75), transparent);
    animation: gwCardShine 5s ease-in-out infinite;
    pointer-events: none;
}
.gw-hero2-card.agent::after { animation-delay: 2.5s; }
@keyframes gwCardShine {
    0%, 70% { left: -60%; }
    100% { left: 130%; }
}
.gw-hero2-card .gw-hero2-chip { font-size: 10px; letter-spacing: .1em; font-weight: 700; color: var(--gw-gold-dark); }
.gw-hero2-card h3 { margin: 7px 0 6px; font-size: 19px; font-weight: 600; color: var(--gw-navy); font-family: var(--gw-font); }
.gw-hero2-card p { margin: 0; color: var(--gw-slate); font-size: 11.5px; line-height: 1.6; }
.gw-hero2-card.student { top: 46px; left: 0; width: 210px; transform: rotate(-5deg); }
.gw-hero2-card.agent { right: -10px; bottom: -6px; width: 222px; transform: rotate(4deg); }
.gw-hero2-icon {
    width: 35px;
    height: 35px;
    border-radius: 12px;
    background: var(--gw-navy);
    display: grid;
    place-items: center;
    font-size: 17px;
    color: var(--gw-gold);
    margin-bottom: 6px;
}
.gw-hero2-orbit {
    position: absolute;
    top: 9px;
    right: 55px;
    z-index: 2;
    background: var(--gw-navy);
    color: var(--gw-gold);
    border: 1px solid rgba(var(--gw-gold-rgb), .5);
    border-radius: 99px;
    padding: 9px 16px;
    font-weight: 600;
    font-size: 11px;
    box-shadow: 0 9px 22px rgba(var(--gw-navy-rgb), .25);
}

/* =====================================================================
   Student counselling popup (holds the existing #homeEnquiryForm)
   ===================================================================== */
.gw-hm {
    position: fixed;
    inset: 0;
    z-index: 10500;                          /* below the OTP popup (20000) so it can open on top */
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(var(--gw-navy-rgb), .72);
    backdrop-filter: blur(6px);
    display: flex;
    opacity: 0;
    visibility: hidden;
    /* exit (150ms) is faster than enter (200ms) */
    transition: opacity var(--gw-motion-exit) var(--gw-ease-in), visibility 0s linear var(--gw-motion-exit);
}
.gw-hm.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity var(--gw-motion-enter) var(--gw-ease-out), visibility 0s;
}
.gw-hm-dialog {
    position: relative;
    width: min(520px, 100%);
    max-height: min(92dvh, 860px);
    overflow: auto;
    border-radius: 14px;
    transform: translateY(8px);
    transition: transform var(--gw-motion-exit) var(--gw-ease-in);
}
.gw-hm.is-open .gw-hm-dialog { transform: none; transition: transform var(--gw-motion-enter) var(--gw-ease-out); }
.gw-hm-close {
    position: absolute;
    right: 14px;
    top: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(var(--gw-navy-rgb), .12);
    background: var(--gw-white);
    color: var(--gw-navy);
    font-size: 22px;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
}
.gw-hm .form-height { margin: 0; min-height: 0; padding: 0; }
.gw-hm .banner-form-border { margin: 0; max-width: none; box-shadow: none; border-radius: 14px; }
/* Scroll lock. JS sets --gw-scrollbar to the scrollbar width so the page does not shift sideways. */
body.gw-hm-open { overflow: hidden; padding-right: var(--gw-scrollbar, 0px); }

/* =====================================================================
   "What is Gateway Educonnect?" portal popup
   The navy overlay grows out of the logo circle (clip-path circle from --gw-x / --gw-y, set in JS),
   then the card rises in and its pieces appear one after another.
   ===================================================================== */
.gw-about {
    --gw-x: 50%;
    --gw-y: 50%;
    position: fixed;
    inset: 0;
    z-index: 10600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: var(--gw-font);
    background:
        radial-gradient(circle at var(--gw-x) var(--gw-y), rgba(var(--gw-gold-rgb), .22) 0%, transparent 38%),
        radial-gradient(circle at 50% 50%, rgba(var(--gw-navy-light-rgb), .96), rgba(var(--gw-navy-rgb), .97) 70%);
    clip-path: circle(0 at var(--gw-x) var(--gw-y));
    visibility: hidden;
    /* Portal reveal: 450ms in, 250ms out (exit faster than enter). */
    transition: clip-path var(--gw-motion-portal-exit) var(--gw-ease-in), visibility 0s linear var(--gw-motion-portal-exit);
}
.gw-about.is-open {
    clip-path: circle(150vmax at var(--gw-x) var(--gw-y));
    visibility: visible;
    transition: clip-path var(--gw-motion-portal) var(--gw-ease-out), visibility 0s;
}
.gw-about::before {                         /* faint gold star field */
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(var(--gw-gold-rgb), .55) 1px, transparent 1.5px),
        radial-gradient(rgba(255, 255, 255, .35) 1px, transparent 1.5px);
    background-size: 90px 90px, 140px 140px;
    background-position: 0 0, 45px 70px;
    opacity: .35;
    pointer-events: none;
}

.gw-about-dialog {
    position: relative;
    width: min(980px, 100%);
    max-height: min(92dvh, 740px);
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    border-radius: 26px;
    overflow: hidden;
    background: var(--gw-white);
    border: 2px solid transparent;
    background:
        linear-gradient(var(--gw-white), var(--gw-white)) padding-box,
        var(--gw-gold-shine) border-box;
    box-shadow: 0 0 0 6px rgba(var(--gw-gold-rgb), .14), 0 0 60px rgba(var(--gw-gold-rgb), .25), 0 40px 100px rgba(0, 0, 0, .45);
    /* Modal: 200ms opacity + 8px rise, starting while the portal is still opening. */
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--gw-motion-exit) var(--gw-ease-in), transform var(--gw-motion-exit) var(--gw-ease-in);
}
.gw-about-dialog:focus { outline: none; }  /* focused only so screen readers start at the title */
.gw-about.is-open .gw-about-dialog {
    opacity: 1;
    transform: none;
    transition: opacity var(--gw-motion-enter) var(--gw-ease-out) .2s, transform var(--gw-motion-enter) var(--gw-ease-out) .2s;
}

.gw-about-close {
    position: absolute;
    right: 16px;
    top: 14px;
    z-index: 3;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(var(--gw-navy-rgb), .14);
    background: var(--gw-white);
    color: var(--gw-navy);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: transform .2s, background .2s;
}
.gw-about-close:hover { transform: rotate(90deg); background: var(--gw-ice); }
.gw-about-close:focus-visible { outline: 3px solid var(--gw-gold); outline-offset: 2px; }

/* ---- Left: navy story panel ---- */
.gw-about-side {
    position: relative;
    padding: 36px 34px 34px;
    color: var(--gw-white);
    background:
        radial-gradient(circle at 20% 0%, rgba(var(--gw-gold-rgb), .18), transparent 45%),
        linear-gradient(160deg, var(--gw-navy-light) 0%, var(--gw-navy) 70%);
    overflow: auto;
}
.gw-about-orbit {
    position: relative;
    width: 132px;
    height: 132px;
    margin-bottom: 22px;
}
.gw-about-orbit-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px dashed rgba(var(--gw-gold-rgb), .6);
    animation: gwSpin 18s linear infinite;
}
.gw-about-orbit-ring::before,
.gw-about-orbit-ring::after {                /* two gold "planets" riding the ring */
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gw-gold);
    box-shadow: 0 0 12px rgba(var(--gw-gold-rgb), .9);
}
.gw-about-orbit-ring::before { top: -6px; left: calc(50% - 6px); }
.gw-about-orbit-ring::after { bottom: 12px; right: 4px; width: 8px; height: 8px; background: var(--gw-white); }
@keyframes gwSpin { to { transform: rotate(360deg); } }
.gw-about-core {
    position: absolute;
    inset: 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--gw-navy);
    border: 4px solid var(--gw-gold);
    box-shadow: 0 0 30px rgba(var(--gw-gold-rgb), .55);
}
.gw-about-core img { width: 58px; height: auto; }
.gw-about-kicker {
    display: inline-block;
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--gw-gold);
}
.gw-about-side h2 {
    margin: 8px 0 14px;
    font-family: var(--gw-font);
    font-size: clamp(26px, 2.6vw, 34px);
    line-height: 1.2;
    font-weight: 600;
    color: var(--gw-white);
}
.gw-about-side h2 .gw-gold { color: var(--gw-gold); }
.gw-about-lead { margin: 0 0 20px; font-size: 14.5px; line-height: 1.75; color: rgba(255, 255, 255, .82); }
.gw-about-values { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.gw-about-values li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .88);
}
.gw-about-values li b { color: var(--gw-white); font-weight: 600; }
.gw-about-values li::before {
    content: "";
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--gw-gold);
    box-shadow: 0 0 8px rgba(var(--gw-gold-rgb), .8);
}
.gw-about-promise {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(var(--gw-gold-rgb), .4);
    font-size: 13.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .9);
}
.gw-about-promise strong { color: var(--gw-gold); font-weight: 600; }

/* ---- Right: tabs + journey ---- */
.gw-about-main {
    padding: 34px 34px 30px;
    overflow: auto;
    display: flex;
    flex-direction: column;
}
.gw-about-tabs {
    display: inline-flex;
    align-self: flex-start;
    gap: 4px;
    padding: 5px;
    margin-right: 48px;                     /* keep clear of the close button */
    border-radius: 999px;
    background: var(--gw-ice);
    border: 1px solid rgba(var(--gw-navy-rgb), .08);
}
.gw-about-tab {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    font-family: var(--gw-font);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--gw-slate);
    background: transparent;
    cursor: pointer;
    transition: background .25s, color .25s, box-shadow .25s;
}
.gw-about-tab[aria-selected="true"] {
    background: var(--gw-navy);
    color: var(--gw-white);
    box-shadow: 0 6px 16px rgba(var(--gw-navy-rgb), .25);
}
.gw-about-tab:focus-visible { outline: 3px solid var(--gw-gold); outline-offset: 2px; }

.gw-about-panel { margin-top: 22px; display: flex; flex-direction: column; flex: 1; }
.gw-about-panel[hidden] { display: none; }
.gw-about-panel h3 {
    margin: 0 0 6px;
    font-family: var(--gw-font);
    font-size: 22px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--gw-navy);
}
.gw-about-panel > p { margin: 0 0 18px; font-size: 14px; line-height: 1.65; color: var(--gw-slate); }

.gw-about-steps { list-style: none; margin: 0 0 24px; padding: 0; position: relative; }
.gw-about-steps::before {                   /* gold line joining the steps */
    content: "";
    position: absolute;
    left: 19px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(var(--gw-gold), rgba(var(--gw-gold-rgb), .15));
}
.gw-about-steps li {
    position: relative;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 0 0 16px;
}
.gw-about-steps li:last-child { padding-bottom: 0; }
.gw-about-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--gw-navy);
    background: var(--gw-gold-shine);
    box-shadow: 0 0 0 4px var(--gw-white), 0 4px 12px rgba(var(--gw-gold-rgb), .45);
}
.gw-about-steps strong { display: block; font-size: 15px; font-weight: 600; color: var(--gw-navy); margin: 2px 0 2px; }
.gw-about-steps li > div > span { display: block; font-size: 13px; line-height: 1.55; color: var(--gw-slate); }

/* Steps slide in one by one each time a panel is shown. The steps are visible by default: the animation
   only adds the entrance (fill-mode both), so if an animation never runs the content is still there. */
.gw-about.is-open .gw-about-panel.is-shown .gw-about-steps li,
.gw-about.is-open .gw-about-panel.is-switched .gw-about-steps li { animation: gwStepIn var(--gw-motion-enter) var(--gw-ease-out) both; }
/* Stagger: 30ms per step (4 steps = 90ms spread, well under the 200ms budget). Opacity only, no per-item
   translate. On first open the steps start once the card is in (.35s); on a tab switch they start at once. */
.gw-about-steps li { --gw-i: 0; }
.gw-about-steps li:nth-child(2) { --gw-i: 1; }
.gw-about-steps li:nth-child(3) { --gw-i: 2; }
.gw-about-steps li:nth-child(4) { --gw-i: 3; }
.gw-about.is-open .gw-about-panel.is-shown .gw-about-steps li { animation-delay: calc(.35s + min(var(--gw-i) * 30ms, 200ms)); }
.gw-about.is-open .gw-about-panel.is-switched .gw-about-steps li { animation-delay: min(calc(var(--gw-i) * 30ms), 200ms); }
@keyframes gwStepIn { from { opacity: 0; } to { opacity: 1; } }

/* Shorter laptop screens (e.g. 1366x768): tighten the popup so the button stays in view. */
@media (min-width: 901px) and (max-height: 860px) {
    .gw-about { padding: 16px; }
    .gw-about-dialog { max-height: calc(100dvh - 32px); }
    .gw-about-side { padding: 26px 28px 24px; }
    .gw-about-orbit { width: 104px; height: 104px; margin-bottom: 14px; }
    .gw-about-core { inset: 12px; }
    .gw-about-core img { width: 46px; }
    .gw-about-side h2 { font-size: 26px; margin-bottom: 10px; }
    .gw-about-lead { font-size: 13.5px; line-height: 1.65; margin-bottom: 14px; }
    .gw-about-values { gap: 7px; margin-bottom: 16px; }
    .gw-about-values li { font-size: 12.5px; }
    .gw-about-promise { padding: 11px 14px; font-size: 12.5px; }
    .gw-about-main { padding: 26px 28px 24px; }
    .gw-about-panel { margin-top: 16px; }
    .gw-about-panel h3 { font-size: 19px; }
    .gw-about-panel > p { font-size: 13px; margin-bottom: 14px; }
    .gw-about-steps { margin-bottom: 18px; }
    .gw-about-steps li { padding-bottom: 11px; }
    .gw-about-num { width: 34px; height: 34px; font-size: 12px; }
    .gw-about-steps::before { left: 16px; }
}

.gw-about-cta { margin-top: auto; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.gw-about-cta small { font-size: 12px; color: var(--gw-slate); }

/* ---------------------------------------------------------------------
   Visual hierarchy: the question "What is Gateway Educonnect?" must be the first thing the eye lands on.
   A white panel on a navy overlay is the brightest area and steals attention, so the whole card is navy:
   - left: the title, largest and highest contrast (white + gold)
   - right: a quieter, slightly lighter navy surface; white step titles, dimmed descriptions
   - gold is kept for the title, the step numbers and the one CTA button
   --------------------------------------------------------------------- */
.gw-about-dialog {
    background:
        linear-gradient(var(--gw-navy), var(--gw-navy)) padding-box,
        var(--gw-gold-shine) border-box;
}
.gw-about-side {
    background:
        radial-gradient(circle at 15% 0%, rgba(var(--gw-gold-rgb), .20), transparent 50%),
        linear-gradient(160deg, var(--gw-navy-light) 0%, var(--gw-navy) 75%);
}
.gw-about-side h2 {
    font-size: clamp(32px, 3.4vw, 44px);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 10px 0 16px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}
.gw-about-side h2 .gw-gold { text-shadow: 0 0 28px rgba(var(--gw-gold-rgb), .35); }
.gw-about-lead { font-size: 15.5px; color: rgba(255, 255, 255, .86); }

.gw-about-main {
    background: rgba(255, 255, 255, .035);
    border-left: 1px solid rgba(var(--gw-gold-rgb), .18);
}
.gw-about-close {
    border-color: rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .06);
    color: var(--gw-white);
}
.gw-about-close:hover { background: rgba(255, 255, 255, .14); }

/* Audience switch: two clear card-buttons (not a faint segmented pill) so they read as choices to click.
   Selected = solid white with navy text (unmistakable, and not gold, so it never competes with the CTA).
   Not selected = outlined button that lifts and turns gold-edged on hover. */
.gw-about-ask {
    display: block;
    margin: 0 48px 10px 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gw-gold);
}
.gw-about-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-self: stretch;
    margin-right: 48px;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
}
.gw-about-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 12px 14px;
    text-align: left;
    border-radius: 14px;
    border: 1.5px solid rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .04);
    color: var(--gw-white);
    box-shadow: none;
    transition: transform var(--gw-motion-exit) var(--gw-ease-out), border-color var(--gw-motion-enter) var(--gw-ease-out),
        background var(--gw-motion-enter) var(--gw-ease-out), color var(--gw-motion-enter) var(--gw-ease-out);
}
.gw-about-tab:hover {
    color: var(--gw-white);
    border-color: var(--gw-gold);
    background: rgba(var(--gw-gold-rgb), .08);
    transform: translateY(-2px);
}
.gw-about-tab[aria-selected="true"] {
    background: var(--gw-white);
    border-color: var(--gw-white);
    color: var(--gw-navy);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
    transform: none;
    cursor: default;
}
.gw-about-tab-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .10);
    color: var(--gw-gold);
}
.gw-about-tab-icon svg { width: 22px; height: 22px; }
.gw-about-tab[aria-selected="true"] .gw-about-tab-icon { background: var(--gw-navy); color: var(--gw-gold); }
.gw-about-tab-text { display: flex; flex-direction: column; min-width: 0; }
.gw-about-tab-text b { font-size: 14.5px; font-weight: 600; line-height: 1.25; }
.gw-about-tab-text small { font-size: 12px; font-weight: 500; line-height: 1.3; margin-top: 2px; color: rgba(255, 255, 255, .6); }
.gw-about-tab[aria-selected="true"] .gw-about-tab-text small { color: var(--gw-slate); }
.gw-about-tab:focus-visible { outline: 3px solid var(--gw-gold); outline-offset: 3px; }
@media (max-width: 900px) {
    .gw-about-ask, .gw-about-tabs { margin-right: 0; }
}
@media (max-width: 600px) {
    .gw-about-tab { min-height: 58px; padding: 10px; gap: 8px; }
    .gw-about-tab-icon { width: 32px; height: 32px; border-radius: 9px; }
    .gw-about-tab-icon svg { width: 18px; height: 18px; }
    .gw-about-tab-text b { font-size: 13px; }
    .gw-about-tab-text small { font-size: 11px; }
}

.gw-about-panel h3 { color: var(--gw-white); font-size: 20px; }
.gw-about-panel > p { color: rgba(255, 255, 255, .66); }
.gw-about-steps strong { color: var(--gw-white); }
.gw-about-steps li > div > span { color: rgba(255, 255, 255, .62); }
.gw-about-steps::before { background: linear-gradient(rgba(var(--gw-gold-rgb), .7), rgba(var(--gw-gold-rgb), .1)); }
.gw-about-num { box-shadow: 0 0 0 4px var(--gw-navy), 0 4px 14px rgba(var(--gw-gold-rgb), .35); }
.gw-about-cta small { color: rgba(255, 255, 255, .6); }
.gw-about-cta .gw-hero2-btn--navy {           /* agent CTA: navy on navy would vanish, use the gold outline style */
    background: transparent;
    border-color: var(--gw-gold);
    color: var(--gw-gold);
}
.gw-about-cta .gw-hero2-btn--navy:hover { background: rgba(var(--gw-gold-rgb), .12); }

@media (min-width: 901px) and (max-height: 860px) {
    .gw-about-side h2 { font-size: 34px; margin-bottom: 12px; }
    .gw-about-lead { font-size: 14px; }
    .gw-about-panel h3 { font-size: 18px; }
}
@media (max-width: 900px) {
    .gw-about-main { border-left: 0; border-top: 1px solid rgba(var(--gw-gold-rgb), .18); }
}
@media (max-width: 600px) {
    .gw-about-side h2 { font-size: 30px; }
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1120px) {
    .gw-hero2-inner { grid-template-columns: 1fr .87fr; }
    .gw-hero2-world { width: 360px; height: 360px; right: 20px; top: 60px; }
    .gw-hero2-art { height: 480px; }
    .gw-hero2-card.student { left: -15px; top: 70px; }
    .gw-hero2-card.agent { right: -10px; bottom: 12px; }
}
@media (max-width: 900px) {
    .gw-about-dialog { grid-template-columns: 1fr; max-height: 92dvh; overflow: auto; }
    .gw-about-side, .gw-about-main { overflow: visible; }
    .gw-about-side { padding: 28px 24px 24px; }
    .gw-about-orbit { width: 100px; height: 100px; margin-bottom: 14px; }
    .gw-about-core { inset: 12px; }
    .gw-about-core img { width: 44px; }
    .gw-about-close { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .12); color: var(--gw-white); }
    .gw-about-main { padding: 24px; }
    .gw-about-tabs { margin-right: 0; }
}
@media (max-width: 850px) {
    .gw-hero2-inner { width: calc(100% - 42px); grid-template-columns: 1fr; padding: 56px 0 40px; gap: 4px; }
    .gw-hero2-art { height: 385px; max-width: 520px; width: 100%; margin: auto; }
    .gw-hero2-world { right: 45px; top: 5px; width: 346px; height: 346px; }
    .gw-hero2-hub { width: 161px; height: 161px; }
    .gw-hero2-hub img { width: 80px; }
    .gw-hero2-card.student { left: 0; top: 29px; }
    .gw-hero2-card.agent { right: 0; bottom: 0; }
    .gw-hero2-orbit { top: 0; right: 25px; }
}
@media (max-width: 600px) {
    .gw-hero2 { margin-top: 70px; }
    .gw-hero2-inner { width: calc(100% - 34px); padding: 40px 0 28px; }
    .gw-hero2-title { font-size: clamp(38px, 10vw, 52px); margin-bottom: 16px; }
    .gw-hero2-sub { font-size: 14px; line-height: 1.7; }
    .gw-hero2-actions { flex-direction: column; margin-top: 22px; gap: 10px; }
    .gw-hero2-btn { width: 100%; }
    .gw-hero2-proof { margin-top: 20px; gap: 8px; }
    .gw-hero2-proof span { font-size: 11px; padding: 6px 10px; }
    .gw-hero2-art { height: 370px; margin-top: 20px; }
    .gw-hero2-world {
        width: 265px;
        height: 265px;
        right: calc(50% - 133px);
        top: 52px;
        box-shadow: 0 0 0 18px rgba(var(--gw-navy-rgb), .06), 0 20px 50px rgba(var(--gw-navy-rgb), .3), inset -20px -30px 60px rgba(0, 0, 0, .35);
    }
    .gw-hero2-hub { width: 112px; height: 112px; border-width: 6px; }
    .gw-hero2-hub img { width: 54px; }
    .gw-hero2-hub-hint { font-size: 8px; margin-top: 2px; }
    .gw-hero2-cursor { width: 20px; height: 20px; }
    .gw-hero2-land.one { left: 28px; top: 49px; }
    .gw-hero2-land.two { right: 26px; top: 36px; }
    .gw-hero2-land.three { left: 105px; bottom: 10px; }
    .gw-hero2-flight { width: 160px; left: 35px; top: 94px; }
    .gw-hero2-plane { right: 40px; top: 80px; font-size: 22px; }
    .gw-hero2-card { padding: 11px 12px; border-radius: 12px; }
    .gw-hero2-card.student { top: 0; left: -2px; width: 148px; }
    .gw-hero2-card.agent { right: -2px; bottom: 0; width: 156px; }
    .gw-hero2-card h3 { font-size: 13px; margin: 5px 0 3px; }
    .gw-hero2-card p { font-size: 9px; }
    .gw-hero2-card .gw-hero2-chip { font-size: 8px; }
    .gw-hero2-icon { width: 26px; height: 26px; font-size: 13px; border-radius: 9px; }
    .gw-hero2-orbit { display: none; }

    .gw-hm { padding: 9px; align-items: flex-end; }

    .gw-about { padding: 0; align-items: flex-end; }
    .gw-about-dialog { border-radius: 24px 24px 0 0; max-height: 94dvh; }
    .gw-about-side h2 { font-size: 24px; }
    .gw-about-close { position: fixed; top: 12px; right: 12px; background: var(--gw-navy); border-color: var(--gw-gold); }
    .gw-about-values { display: none; }       /* phone: keep the intro + promise, reach the tabs sooner */
    .gw-about-lead { font-size: 14px; }
    .gw-about-tabs { display: flex; align-self: stretch; }
    .gw-about-tab { flex: 1; padding: 10px 8px; font-size: 12.5px; }
    .gw-about-panel h3 { font-size: 19px; }
    .gw-about-cta .gw-hero2-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    /* Reduced motion: no portal or slide. The overlays simply appear (backdrop static), focus moves at once. */
    .gw-hero2-btn, .gw-hero2-hub, .gw-about, .gw-about.is-open, .gw-about-dialog, .gw-about-close, .gw-about-tab,
    .gw-hm, .gw-hm.is-open, .gw-hm-dialog, .gw-hm.is-open .gw-hm-dialog { transition: none !important; }
    .gw-about, .gw-about.is-open { clip-path: none; }
    .gw-about-dialog, .gw-hm-dialog { transform: none; }
    .gw-hero2-card::after, .gw-hero2-hub::before, .gw-about-orbit-ring { animation: none; }
    .gw-hero2-cursor { display: none; }
    .gw-about.is-open .gw-about-panel .gw-about-steps li { animation: none; }
}

/* "Study Abroad" in the hero heading: crisp navy letters with the gold swoosh underneath
   (same treatment as the previous hero; brand rule: no gold text on white, gold is the accent line). */
.gw-hero2-title .gw-marker { position: relative; display: inline-block; white-space: nowrap; }
.gw-hero2-title .gw-marker::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -.12em;
    height: .22em;
    border-bottom: .1em solid var(--gw-gold);
    border-radius: 0 0 100% 100% / 0 0 100% 100%;
    pointer-events: none;
}

/* 20 Nov 2026: hero sub-lines in brand navy, not grey (labels bold navy, sentence navy at a softer weight). */
.gw-hero2-sub { color: var(--gw-navy); }
.gw-hero2-sub strong { font-weight: 700; }
