/* ==========================================================================
   Gateway Educonnect: THE brand file (Brand Guidelines v1.0, November 2026)
   --------------------------------------------------------------------------
   Every colour and font on the website comes from here. Do not write hex
   colours or font names in other CSS / Blade files: use these variables.
   Change a value here and the whole site follows.

   *-rgb variables hold "r, g, b" so a page can write  rgba(var(--gw-gold-rgb), .3)
   and still follow the theme (glows, shadows, soft tints).

   Ratio per page: 60% light (ice / white), 30% navy, 10% gold.
   Gold is never a full page background. Never gold text on white: use gold-dark.
   ========================================================================== */

:root {
    /* ---- Core brand colours ---- */
    --gw-navy: #0B1F4B;            /* headings, dark sections, logo */
    --gw-navy-rgb: 11, 31, 75;
    --gw-gold: #FFC629;            /* buttons, highlights */
    --gw-gold-rgb: 255, 198, 41;
    /* Gold needs a light-to-deep sweep to read as GOLD instead of flat yellow. Middle stop = the brand gold. */
    --gw-gold-shine: linear-gradient(135deg, #FFE69A 0%, #FFD04A 28%, #FFC629 52%, #E8A800 82%, #FFCF45 100%);
    --gw-gold-glow: 0 6px 18px rgba(var(--gw-gold-rgb), .45), inset 0 1px 0 rgba(255, 255, 255, .65), inset 0 -2px 0 rgba(138, 100, 0, .25);
    --gw-ice: #EEF3FB;             /* light backgrounds */
    --gw-ice-rgb: 238, 243, 251;
    --gw-white: #FFFFFF;

    /* ---- Helper colours ---- */
    --gw-navy-light: #173B63;      /* cards on navy, secondary dark */
    --gw-navy-light-rgb: 23, 59, 99;
    --gw-gold-dark: #8A6400;       /* gold used as TEXT on light backgrounds */
    --gw-gold-dark-rgb: 138, 100, 0;
    --gw-slate: #2D3E6B;           /* body text: soft navy-blue (no grey anywhere, 20 Nov 2026) */
    --gw-slate-rgb: 45, 62, 107;
    --gw-danger: #C62828;          /* errors only */
    --gw-danger-rgb: 198, 40, 40;

    /* ---- Functional colour (not brand): success ticks and confirmations ---- */
    --gw-success: #1E7B4A;
    --gw-success-rgb: 30, 123, 74;

    /* ---- Font: Poppins for everything. The accent word is Poppins too (no cursive / italic serif). ---- */
    --gw-font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --gw-font-accent: var(--gw-font);
    --gw-accent-style: normal;

    /* ---- Bootstrap follows the brand ---- */
    --bs-primary: var(--gw-navy);
    --bs-primary-rgb: var(--gw-navy-rgb);
    --bs-secondary: var(--gw-slate);
    --bs-secondary-rgb: var(--gw-slate-rgb);
    --bs-success: var(--gw-success);
    --bs-success-rgb: var(--gw-success-rgb);
    --bs-warning: var(--gw-gold);
    --bs-warning-rgb: var(--gw-gold-rgb);
    --bs-danger: var(--gw-danger);
    --bs-danger-rgb: var(--gw-danger-rgb);
    --bs-info: var(--gw-navy-light);
    --bs-info-rgb: var(--gw-navy-light-rgb);
    --bs-light: var(--gw-ice);
    --bs-light-rgb: var(--gw-ice-rgb);
    --bs-dark: var(--gw-navy);
    --bs-dark-rgb: var(--gw-navy-rgb);
    --bs-link-color: var(--gw-navy-light);
    --bs-body-color: var(--gw-slate);
    --bs-body-font-family: var(--gw-font);
}

/* Base typography: Poppins everywhere (the SF Pro Display classes were mapped to this font). */
body,
button,
input,
select,
textarea {
    font-family: var(--gw-font);
}

/* The accent word: Fraunces Italic, gold. Use on ONE word (2-3 for a short phrase) per headline. */
.gw-accent {
    font-family: var(--gw-font-accent);
    font-style: var(--gw-accent-style);
    font-weight: 600;
    color: var(--gw-gold-dark);   /* on light backgrounds */
}
.gw-on-navy .gw-accent,
.gw-accent--on-navy {
    color: var(--gw-gold);        /* on navy backgrounds */
}


/* Gold buttons: shine layer (gradient comes from --gw-gold-shine) + soft glow and a light top edge. */
.ag-page .ag-btn--primary,
.ag-page .ag-submit,
.fr-page .fr-btn--primary,
.ag-page .ag-sticky .ag-btn--primary {
    box-shadow: var(--gw-gold-glow);
}


/* Text selection: brand gold with navy text, so selected text never disappears (gradient headings keep a readable colour too). */
::selection {
    background: var(--gw-gold);
    color: var(--gw-navy);
    -webkit-text-fill-color: var(--gw-navy);
    text-shadow: none;
}
::-moz-selection {
    background: var(--gw-gold);
    color: var(--gw-navy);
}
/* Dark panels: selection stays gold with navy text, still readable. */
/* Headings with gradient text have a transparent text colour: force a readable fill while selected. */
h1::selection, h2::selection, h3::selection, h4::selection,
h1 *::selection, h2 *::selection, h3 *::selection, h4 *::selection {
    -webkit-text-fill-color: var(--gw-navy);
    color: var(--gw-navy);
    background: var(--gw-gold);
}

/* Header logo (Brand Guidelines): navy logo on light header, white logo on navy header. Bigger than before, but the
   negative margin keeps the header the same height (63px). No colour filter: the brand forbids a black logo. */
.navbar-brand img.gw-logo {
    height: 60px;
    width: auto;
    margin: -13px 0;
    filter: none !important;
    -webkit-filter: none !important;
}

/* Header logo: stacked like the original (icon on top, name below). The icon is the top part of the white logo PNG
   (the tiny word printed under it is cropped off) and the name is real Poppins text, so it is readable.
   Header is 80px tall, so the logo has room above and below. */
.gw-brand { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; line-height: 1; }
.gw-brand-icon { display: block; height: 41px; width: 46px; overflow: hidden; }
.gw-brand-icon img { display: block; width: 46px; height: auto; filter: none !important; }   /* 288x371 PNG: 46px wide = 59px tall; top 41px = icon only */
.gw-brand-name { display: flex; flex-direction: column; align-items: center; gap: 1px; font-family: var(--gw-font); font-size: 11px; line-height: 1; letter-spacing: .02em; color: var(--gw-white); white-space: nowrap; }
/* Centre everything vertically in the 80px bar: Bootstrap's navbar padding (8px) and the brand link padding (5px) pushed the logo down. */
.header-special .navbar { padding-top: 0; padding-bottom: 0; height: 80px; }
.header-special .navbar-brand { padding: 0; margin-top: 0; margin-bottom: 0; display: inline-flex; align-items: center; }
.gw-brand-name b { font-weight: 700; }
.gw-brand-name span { font-weight: 400; }

/* Brand name accent in headings on LIGHT sections: navy text + the same curved gold swoosh underline as the hero heading.
   (On navy sections the accent is Gold text instead: .gw-accent-gold in new_home.css.) */
.gw-swoosh { position: relative; display: inline-block; white-space: nowrap; }
.gw-swoosh::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -.12em;
    height: .22em;
    border-bottom: max(.1em, 3px) solid var(--gw-gold);   /* never thinner than 3px, even in small text */
    border-radius: 0 0 100% 100% / 0 0 100% 100%;
}

/* Brand name inside body text (added by user/js/gw-brand-name.js): soft gold marker on light backgrounds, Gold text on dark. */
.gw-name {
    font-weight: 600;
    /* 21 Nov 2026: was a thick marker block (58%..92%); now a thin, soft underline so the brand name stays readable and calm */
    background-image: linear-gradient(transparent 88%, rgba(var(--gw-gold-rgb), .55) 88%, rgba(var(--gw-gold-rgb), .55) 95%, transparent 95%);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    padding: 0 .1em;
}
.gw-name.gw-name--on-dark {
    background-image: none;
    color: var(--gw-gold);
    -webkit-text-fill-color: var(--gw-gold);
    padding: 0;
}

/* Long headings: slightly smaller so they stay on one or two lines (Poppins is wider than the old font). */
.institutions-title { font-size: 28px; }

/* Left-aligned section headings (e.g. "Study Abroad Programs At Our Partner Universities"): 3 lines, not 4. */
.new-banner-title.text-start { font-size: 50px; line-height: 1.15; }
@media (max-width: 1100px) { .new-banner-title.text-start { font-size: 42px; } }
@media (max-width: 600px) { .new-banner-title.text-start { font-size: 30px; } }

/* Header always stays on screen while scrolling (pages whose header was static get this class from header-testing). */
html.gw-hdr-fixed .header-special { position: fixed !important; top: 0 !important; left: 0; width: 100%; z-index: 1000; background: var(--gw-navy); }
html.gw-hdr-fixed body { padding-top: 80px; }

/* 20 Nov 2026: gold buttons always carry navy text (white on gold is unreadable). */
.btn-primary-main, a.btn-primary-main, .apply-btn,
.btn-primary-main :is(h1, h2, h3, h4, p, span) { color: var(--gw-navy) !important; -webkit-text-fill-color: var(--gw-navy); }
/* hover/focus: the button fills navy (style.css :after sweep), so the text turns gold. */
.btn-primary-main:hover, .btn-primary-main:focus-visible, a.btn-primary-main:hover, .apply-btn:hover,
.btn-primary-main:hover :is(h1, h2, h3, h4, p, span), .btn-primary-main:focus-visible :is(h1, h2, h3, h4, p, span) {
    color: var(--gw-gold) !important; -webkit-text-fill-color: var(--gw-gold);
}

/* swoosh under the brand name in this long-copy section: thinner and softer */
.about-us-section .gw-swoosh::after { border-bottom-width: 2px; opacity: .65; }
