/* ==========================================================================
   Home: phone polish (24 Nov 2026). Everything here is phones only (<= 767.98px); desktop and tablet are untouched.
   Aim: less "text, text, text". Short blocks, small details tucked behind a tap, tidy rows instead of long stacks.
   The "body" prefix on every rule makes sure these win over the section stylesheets that load later.
   Colours only from gateway-theme.css variables.
   ========================================================================== */
@media (max-width: 767.98px) {

    /* ---- Hero: the three little chips repeat the text above them ---- */
    body .gw-hero2-proof { display: none; }

    /* ---- Social: three compact tiles in one row instead of three tall cards ---- */
    body .gw-soc { padding: 34px 0; }
    body .gw-soc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    body .gw-soc-card { min-height: 0; height: 112px; padding: 12px 6px; border-radius: 18px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; }
    body .gw-soc-card .gw-soc-glyph { margin: 0; font-size: 26px; }
    body .gw-soc-card .gw-soc-label span { display: none; }
    body .gw-soc-card .gw-soc-label strong { font-size: 13.5px; }
    body .gw-soc-card .gw-soc-cta { display: none; }

    /* ---- FAQ: shorter photo banner ---- */
    body .faq-section { padding-top: 34px; padding-bottom: 34px; }
    body .faq-visual, body .faq-visual-main, body .faq-photo { max-height: 400px; }
    body .faq-photo img { height: 400px; object-fit: cover; object-position: 50% 4%; }   /* keep her whole face in view, text sits below it */

    /* ---- Tighter vertical rhythm for the home sections ---- */
    body .gw-hub, body .gw-jr, body .gw-num, body .gw-ai, body .gw-aw, body .gw-fr, body .gw-unis { padding-top: 38px; padding-bottom: 38px; }
    body .gw-hub-head { margin-bottom: 14px; }

    /* ---- Journey: compact steps; only the active one keeps its sentence ---- */
    body .gw-jr-stop:not(.is-active) .gw-jr-tile-body p { display: none; }
    body .gw-jr-step-label { display: none; }
    body .gw-jr-tile { padding-top: 10px; padding-bottom: 10px; }
    body .gw-jr-pic img { max-height: 54px; width: auto; }

    /* ---- Hub: two posts, not every post; smaller thumbnails ---- */
    body .gw-hub-posts > li:nth-child(n+3) { display: none; }
    body .gw-hub-post-img { max-width: 84px; }
    body .gw-hub-grid { gap: 12px; }

    /* ---- Gateway AI: titles and the preview; the longer description sits behind the preview's title ---- */
    body .gw-ai-cap p { display: none; }
    body .gw-ai-cap h3 { margin-bottom: 0; }

    /* ---- Awards: no sub-line under the heading ---- */
    body .gw-aw-sub { display: none; }

    /* ---- Why choose: short intro, five tap-to-open notes (title first, sentence on tap) ---- */
    body .gw-abt-card { padding: 22px 18px; }
    body .gw-abt-lead { display: none; }
    body .gw-st-list { gap: 34px; }
    body .gw-st { cursor: pointer; align-items: center; width: 100%; padding: 14px 14px 14px; }
    body .gw-st:nth-child(odd), body .gw-st:nth-child(even), body .gw-st--5 { justify-self: stretch; }
    body .gw-st > div { position: relative; flex: 1; min-width: 0; padding-right: 24px; }
    body .gw-st p { display: none; }
    body .gw-st.is-open p { display: block; margin-top: 4px; }
    body .gw-st > div::after { content: ""; position: absolute; right: 2px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--gw-navy); border-bottom: 2px solid var(--gw-navy); transform: rotate(45deg); transition: transform .25s ease; }
    body .gw-st.is-open > div::after { transform: rotate(225deg); margin-top: -2px; }
}

@media (max-width: 767.98px) {
    /* Journey: shorter header, tighter list */
    body .gw-jr-head p, body .gw-jr-sub { display: none; }
    body .gw-jr-road { gap: 9px; }
    body .gw-jr-tile { padding-top: 8px; padding-bottom: 8px; min-height: 0; }
    body .gw-jr-pic img { max-height: 44px; }
    body .gw-jr-tile-body h3 { font-size: 16px; margin-bottom: 0; }
}

@media (max-width: 767.98px) {
    /* Student and agent cards: "See how it works" and "Prefer to talk?" sit on the same left edge, icons the same size. */
    body .gw-split-video, body .gw-split-call { justify-content: flex-start; padding-left: 0; padding-right: 0; gap: 10px; text-align: left; }
    body .gw-split-video > span:first-child, body .gw-split-call > span:first-child { flex: 0 0 30px; width: 30px; height: 30px; font-size: 12px; }
    body .gw-split-video { background: none; box-shadow: none; }
}

@media (max-width: 767.98px) {
    /* the play icon had an extra halo ring; without it both icons are the same plain 30px circle on the same line */
    body .gw-split-video > span:first-child { box-shadow: none; outline: 0; border: 0; transform: none; animation: none; }
    body .gw-split-video > span:first-child::before, body .gw-split-video > span:first-child::after { display: none; }
}

@media (max-width: 767.98px) {
    /* Offers: the two arrows no longer get a row of their own. They sit small, top-right, on the kicker line. */
    body .offer-section.gw-offers-light { padding: 40px 0; }
    body .gw-offers-head { position: relative; margin-bottom: 18px; gap: 0; }
    body .gw-offers-kicker { margin-bottom: 12px; }
    body .gw-offers-nav { position: absolute; top: -9px; right: 0; gap: 8px; }
    body .gw-offers-arrow { width: 34px; height: 34px; }
    body .gw-offers-arrow svg { width: 16px; height: 16px; }
}

@media (max-width: 767.98px) {
    /* Success stories: arrows small, top-right on the kicker line; "Read all stories" is a quiet text link under the sub-line. */
    body .gw-stories-head { position: relative; margin-bottom: 14px; gap: 6px; }
    body .gw-stories-actions { display: contents; }
    body .gw-stories-arrows { position: absolute; top: -9px; right: 0; gap: 8px; }
    body .gw-stories-arrow { width: 34px; height: 34px; }
    body .gw-stories-arrow svg { width: 16px; height: 16px; }
    body .gw-stories-kicker { margin-bottom: 12px; }
    body .gw-stories-all { align-self: flex-start; padding: 0 0 2px; border: 0; border-bottom: 2px solid var(--gw-gold); border-radius: 0; background: none; font-size: 14px; font-weight: 700; color: var(--gw-navy); }
}
