/* ==========================================================================
   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: #5A6478;           /* body text */
    --gw-slate-rgb: 90, 100, 120;
    --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;
}

/* 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: 63px; }
