/* ==========================================================================
   CBC-TUTOR public website - base
   Palette is taken from the logo and posters: navy + royal blue + sky + gold,
   with the four pillar colours (blue, green, purple, orange).
   ========================================================================== */
:root {
    --navy: #0a2472;
    --navy-2: #06184f;
    --blue: #0b4fc4;
    --sky: #1aa7ff;
    --sky-soft: #e6f3ff;
    --gold: #ffc20e;
    --orange: #ff9f0a;
    --green: #19b36b;
    --purple: #6d3ff0;
    --pink: #ff5fa2;
    --ink: #0d1b3d;
    --muted: #4c5c85;
    --bg: #f5f9ff;
    --card: #ffffff;
    --line: #dce8fb;
    --grad-brand: linear-gradient(135deg, #0a2472 0%, #0b4fc4 55%, #1aa7ff 100%);
    --grad-gold: linear-gradient(135deg, #ffd43b 0%, #ffc20e 45%, #ff9f0a 100%);
    --radius: 24px;
    --radius-sm: 16px;
    --shadow: 0 14px 40px rgba(11, 79, 196, .14);
    --shadow-lg: 0 26px 70px rgba(10, 36, 114, .24);
    --font-head: 'Fredoka', 'Nunito', system-ui, sans-serif;
    --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.site {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.06rem;
    line-height: 1.7;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.site.sidebar-open { overflow: hidden; }
body.site img { max-width: 100%; height: auto; }
body.site a { color: var(--blue); text-decoration: none; }
body.site a:hover { color: var(--navy); }
body.site h1, body.site h2, body.site h3, body.site h4, body.site h5 {
    font-family: var(--font-head);
    font-weight: 600;
    line-height: 1.18;
    color: var(--navy);
    letter-spacing: .1px;
}
body.site :focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.skip-link {
    position: fixed; left: 12px; top: -60px; z-index: 5000; background: var(--gold); color: var(--navy);
    padding: .6rem 1rem; border-radius: 12px; font-weight: 800; transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--navy); }

/* ---------- sections ---------- */
.s-section { position: relative; padding: 5.5rem 0; overflow-x: clip; }
/* Bootstrap's g-5 gutter (3rem) is wider than the container padding on phones and would overflow the screen. */
@media (max-width: 575.98px) { .row.g-5 { --bs-gutter-x: 1.5rem; } }
.s-section.tight { padding: 3.5rem 0; }
.s-section.alt { background: #fff; }
.s-section.sky { background: linear-gradient(180deg, var(--sky-soft) 0%, #f5f9ff 100%); }
.s-section.navy { background: var(--grad-brand); color: #fff; overflow: hidden; }
.s-section.navy h2, .s-section.navy h3, .s-section.navy h4 { color: #fff; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    background: #fff; color: var(--blue); border: 2px solid var(--line);
    padding: .3rem 1rem; border-radius: 999px; font-weight: 800; font-size: .86rem; letter-spacing: .3px;
    box-shadow: 0 6px 18px rgba(11, 79, 196, .08);
}
.eyebrow i { color: var(--orange); }
.navy .eyebrow { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); color: #fff; box-shadow: none; }
.s-title { font-size: clamp(1.9rem, 4.2vw, 3rem); margin: .9rem 0 .7rem; }
.hl { color: var(--blue); position: relative; display: inline-block; z-index: 0; }
.hl::after {
    content: ''; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .32em;
    background: var(--gold); opacity: .55; border-radius: 99px; z-index: -1; transform: rotate(-1.2deg);
}
.navy .hl { color: var(--gold); }
.navy .hl::after { background: rgba(255, 255, 255, .22); }
.s-lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.navy .s-lead { color: rgba(255, 255, 255, .86); }
.s-head { text-align: center; margin-bottom: 3rem; }
.s-head .s-lead { margin-left: auto; margin-right: auto; }
