/* ==========================================================================
   ILEAD ACADEMY — Public Design System
   A single, hand-built, dependency-free stylesheet.
   Replaces the legacy 1MB template bundle (bootstrap + main.css + fontawesome).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
    /* Brand */
    --brand-900: #012a63;
    --brand-800: #013c8f;
    --brand-700: #01449c;
    --brand-600: #0149ad;
    --brand-500: #0a5fd6;
    --brand-400: #3d86f0;
    --brand-300: #7cb0f7;
    --brand-100: #e6effc;
    --brand-50:  #f3f8ff;

    --accent-700: #b81613;
    --accent-600: #e01f1c;
    --accent-500: #ff302d;
    --accent-400: #ff6259;
    --accent-100: #ffe9e8;

    --gold-500: #f9b81d;
    --gold-100: #fdf3d8;

    /* Ink / neutrals */
    --ink-900: #060b18;
    --ink-800: #0b1226;
    --ink-700: #131c36;
    --ink-600: #1e2a4a;
    --slate-600: #46536f;
    --slate-500: #5a6785;
    --slate-400: #8a95ae;
    --slate-300: #c3cadb;
    --slate-200: #e2e6f0;
    --slate-100: #f1f4fa;
    --slate-50:  #f8fafd;
    --white: #ffffff;

    /* Semantic */
    --bg: var(--white);
    --bg-soft: var(--slate-50);
    --bg-muted: var(--slate-100);
    --text: var(--ink-800);
    --text-soft: var(--slate-500);
    --text-faint: var(--slate-400);
    --border: var(--slate-200);
    --border-soft: #edf0f7;

    /* Gradients */
    --grad-brand: linear-gradient(135deg, #0149ad 0%, #0a5fd6 45%, #3d86f0 100%);
    --grad-accent: linear-gradient(135deg, #ff302d 0%, #ff6259 100%);
    --grad-hero: radial-gradient(1200px 600px at 15% -10%, #0a5fd6 0%, transparent 60%),
                 radial-gradient(900px 500px at 100% 0%, #013c8f 0%, transparent 55%),
                 linear-gradient(160deg, #060b18 0%, #0b1226 55%, #012a63 100%);
    --grad-ink: linear-gradient(160deg, #0b1226 0%, #060b18 100%);
    --grad-text: linear-gradient(100deg, #0149ad, #3d86f0 40%, #ff302d 100%);

    /* Radii */
    --r-xs: 8px;
    --r-sm: 12px;
    --r-md: 18px;
    --r-lg: 26px;
    --r-xl: 34px;
    --r-pill: 999px;

    /* Shadows */
    --sh-xs: 0 1px 2px rgba(11, 18, 38, .06);
    --sh-sm: 0 4px 14px rgba(11, 18, 38, .06);
    --sh-md: 0 14px 40px rgba(11, 18, 38, .09);
    --sh-lg: 0 30px 70px rgba(11, 18, 38, .14);
    --sh-brand: 0 18px 40px rgba(1, 73, 173, .28);
    --sh-accent: 0 18px 40px rgba(255, 48, 45, .26);

    /* Typography */
    --font-display: 'Sora', 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    /* Motion */
    --ease-out: cubic-bezier(.22, 1, .36, 1);
    --ease-io: cubic-bezier(.65, .05, .36, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

    /* Layout */
    --container: 1200px;
    --container-wide: 1340px;
    --header-h: 84px;
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 20px);
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

/* Default size for every sprite icon; components override with more specific rules */
.ico {
    width: 1.15em;
    height: 1.15em;
    flex: none;
    display: inline-block;
    vertical-align: -0.18em;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
    outline: 3px solid var(--brand-400);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection { background: var(--brand-600); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--slate-100); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--brand-500), var(--brand-700));
    border-radius: 999px;
    border: 3px solid var(--slate-100);
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -.02em;
    color: var(--ink-900);
}

.display-1 { font-size: clamp(2.1rem, 6.4vw, 4.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.06; }
.display-2 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.display-3 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; letter-spacing: -.025em; }

.h-xl { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; }
.h-lg { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; }
.h-md { font-size: 1.15rem; font-weight: 700; }

.lead { font-size: clamp(1.02rem, 1.4vw, 1.16rem); line-height: 1.75; color: var(--text-soft); }
.text-gradient {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.text-muted { color: var(--text-soft); }
.text-faint { color: var(--text-faint); }
.text-center { text-align: center; }
.text-white { color: #fff; }

/* --------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}
.container-wide {
    width: 100%;
    max-width: var(--container-wide);
    margin-inline: auto;
    padding-inline: 24px;
}
.container-narrow { max-width: 860px; }

.section { position: relative; padding: clamp(64px, 9vw, 130px) 0; }
.section-sm { padding: clamp(44px, 6vw, 80px) 0; }
.section-soft { background: var(--bg-soft); }
.section-muted { background: var(--bg-muted); }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); }

/* Two-column detail layout (article / course / team) — collapses on tablet */
.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
    gap: 44px;
    align-items: start;
}
.detail-grid--reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { flex-direction: column; }
.gap-sm { gap: 12px; } .gap-md { gap: 20px; } .gap-lg { gap: 32px; }
.flex-wrap { flex-wrap: wrap; }

/* Prevent min-content blowouts from pushing layouts wider than the viewport */
.grid, .flex, .grid > *, .flex > * { min-width: 0; }

.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; } .mb-5 { margin-bottom: 48px; }

/* --------------------------------------------------------------------------
   5. SECTION HEADINGS
   -------------------------------------------------------------------------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--brand-600);
    margin-bottom: 18px;
}
.eyebrow::before {
    content: "";
    width: 30px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad-accent);
}
.eyebrow--center { justify-content: center; }
.eyebrow--light { color: #a8c6f7; }

.section-head { max-width: 720px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { margin-top: 16px; }

/* --------------------------------------------------------------------------
   6. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
    --btn-bg: var(--brand-600);
    --btn-fg: #fff;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .01em;
    color: var(--btn-fg);
    background: var(--btn-bg);
    border-radius: var(--r-pill);
    border: 1px solid transparent;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease-out), color .3s;
    will-change: transform;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease-out); }
.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--grad-accent);
    opacity: 0;
    transition: opacity .4s var(--ease-out);
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--sh-brand); }
.btn:hover::after { opacity: 1; }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(-1px) scale(.99); }

.btn--accent { --btn-bg: var(--accent-500); }
.btn--accent:hover { box-shadow: var(--sh-accent); }
.btn--accent::after { background: var(--grad-brand); }

.btn--light { --btn-bg: #fff; --btn-fg: var(--ink-900); box-shadow: var(--sh-sm); }
.btn--light::after { background: var(--grad-brand); }
.btn--light:hover { --btn-fg: #fff; box-shadow: var(--sh-brand); }

.btn--ghost {
    --btn-bg: transparent;
    --btn-fg: var(--ink-900);
    border-color: var(--border);
}
.btn--ghost::after { background: var(--grad-brand); }
.btn--ghost:hover { --btn-fg: #fff; border-color: transparent; }

.btn--outline-light {
    --btn-bg: transparent;
    --btn-fg: #fff;
    border-color: rgba(255, 255, 255, .35);
}
.btn--outline-light:hover { border-color: transparent; }

.btn--sm { padding: 11px 22px; font-size: .86rem; }
.btn--lg { padding: 18px 38px; font-size: 1rem; }
.btn--block { width: 100%; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .92rem;
    color: var(--brand-600);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .35s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   7. HEADER / NAV
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid transparent;
    transition: background .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s;
}
.site-header.is-stuck {
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 10px 40px rgba(11, 18, 38, .08);
    border-bottom-color: var(--border-soft);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand img { max-height: 46px; width: auto; object-fit: contain; }
/* Keeps any uploaded logo legible on dark surfaces */
.logo-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 8px 16px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.logo-chip img { display: block; }

.brand__mark {
    width: 44px; height: 44px;
    border-radius: 13px;
    background: var(--grad-brand);
    color: #fff;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.15rem;
    box-shadow: var(--sh-brand);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--ink-900); letter-spacing: -.02em; }
.brand__tag { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brand-600); font-weight: 600; }

/* Top-level list only — the scoped child combinator keeps the dropdown <ul> vertical */
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 15px;
    font-family: var(--font-display);
    font-size: .93rem;
    font-weight: 600;
    color: var(--ink-700);
    border-radius: var(--r-pill);
    transition: color .3s, background .3s;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.current > a { color: var(--brand-600); background: var(--brand-50); }
.main-nav .caret { width: 12px; height: 12px; opacity: .6; transition: transform .3s; }
.main-nav > ul > li:hover .caret,
.main-nav > ul > li:focus-within .caret { transform: rotate(180deg); }

/* ---- Dropdown (About / News & Media) — vertical, keyboard accessible ---- */
.submenu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translate(-50%, 10px);
    min-width: 232px;
    display: block;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--r-md);
    box-shadow: var(--sh-lg);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .26s var(--ease-out), transform .32s var(--ease-out), visibility .26s;
}
/* Invisible bridge: keeps the panel open while the pointer crosses the gap */
.submenu::before {
    content: "";
    position: absolute;
    left: -12px;
    right: -12px;
    top: -18px;
    height: 20px;
}
/* Pointer connecting the panel to its trigger */
.submenu::after {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    width: 11px;
    height: 11px;
    background: #fff;
    border-left: 1px solid var(--border-soft);
    border-top: 1px solid var(--border-soft);
    border-radius: 2px 0 0 0;
    transform: translateX(-50%) rotate(45deg);
}
.main-nav > ul > li:hover > .submenu,
.main-nav > ul > li:focus-within > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}
.submenu li + li { margin-top: 2px; }
.submenu li a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 14px;
    border-radius: 11px;
    font-family: var(--font-body);
    font-size: .9rem;
    font-weight: 500;
    color: var(--slate-600);
    transition: background .22s, color .22s, padding-left .22s;
}
.submenu li a::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-300);
    flex: none;
    transition: background .22s, transform .22s;
}
.submenu li a:hover {
    background: var(--brand-50);
    color: var(--brand-700);
    padding-left: 18px;
}
.submenu li a:hover::before { background: var(--brand-600); transform: scale(1.3); }

.header-cta { display: flex; align-items: center; gap: 12px; flex: none; }
.burger {
    display: none;
    width: 46px; height: 46px;
    border-radius: 13px;
    background: var(--brand-50);
    color: var(--brand-700);
    place-items: center;
}
.burger svg { width: 22px; height: 22px; }

/* Mobile drawer */
.drawer {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(88vw, 380px);
    background: #fff;
    z-index: 120;
    transform: translateX(105%);
    transition: transform .5s var(--ease-out);
    display: flex;
    flex-direction: column;
    box-shadow: -30px 0 80px rgba(11, 18, 38, .22);
    overflow-y: auto;
}
.drawer.is-open { transform: translateX(0); }
.drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid var(--border-soft);
}
.drawer__close {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--slate-100);
    display: grid; place-items: center;
    color: var(--ink-700);
}
.drawer__nav { padding: 14px 16px; }
.drawer__nav a {
    display: block;
    padding: 14px 16px;
    border-radius: var(--r-sm);
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink-700);
    transition: background .25s, color .25s;
}
.drawer__nav a:hover { background: var(--brand-50); color: var(--brand-600); }
/* Grouped sub-links mirroring the desktop dropdowns */
.drawer__nav .drawer__group {
    display: block;
    padding: 18px 16px 6px;
    font-family: var(--font-display);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--slate-400);
}
.drawer__nav .sub { display: grid; gap: 2px; margin-bottom: 4px; }
.drawer__nav .sub a {
    position: relative;
    padding: 11px 16px 11px 32px;
    font-family: var(--font-body);
    font-size: .92rem;
    font-weight: 500;
    color: var(--slate-500);
}
.drawer__nav .sub a::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 50%;
    width: 5px;
    height: 5px;
    margin-top: -2.5px;
    border-radius: 50%;
    background: var(--brand-300);
    transition: background .2s, transform .2s;
}
.drawer__nav .sub a:hover { color: var(--brand-700); }
.drawer__nav .sub a:hover::before { background: var(--brand-600); transform: scale(1.35); }
.drawer__foot { margin-top: auto; padding: 22px 24px 30px; border-top: 1px solid var(--border-soft); }
.drawer__contact { display: grid; gap: 12px; margin-bottom: 18px; }
.drawer__contact a { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--slate-600); }
.drawer__contact svg { width: 17px; height: 17px; color: var(--brand-600); flex: none; }

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 11, 24, .55);
    backdrop-filter: blur(3px);
    z-index: 110;
    opacity: 0;
    visibility: hidden;
    transition: all .4s;
}
.overlay.is-open { opacity: 1; visibility: visible; }

/* Scroll progress */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0;
    background: var(--grad-text);
    z-index: 200;
    transition: width .1s linear;
}

/* --------------------------------------------------------------------------
   8. HERO
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    background: var(--grad-hero);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
    z-index: -1;
}
.hero__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .5;
    z-index: -1;
    animation: blob 18s var(--ease-io) infinite;
}
.hero__blob--1 { width: 480px; height: 480px; background: #0a5fd6; top: -160px; left: -120px; }
.hero__blob--2 { width: 420px; height: 420px; background: #ff302d; bottom: -180px; right: -80px; opacity: .32; animation-delay: -6s; }
.hero__blob--3 { width: 360px; height: 360px; background: #3d86f0; top: 30%; right: 22%; opacity: .3; animation-delay: -11s; }

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    gap: 56px;
    padding: clamp(56px, 8vw, 110px) 0 clamp(70px, 9vw, 120px);
}
.hero__title { color: #fff; margin-bottom: 22px; }
.hero__title .accent {
    background: linear-gradient(100deg, #7cb0f7, #ff6259);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    border-bottom: 3px solid rgba(255, 48, 45, .55);
    padding-bottom: 2px;
}
.hero__text { color: #b9c8e6; font-size: clamp(1.02rem, 1.5vw, 1.18rem); max-width: 560px; margin-bottom: 34px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

.hero__stats {
    display: flex;
    gap: 34px;
    margin-top: 52px;
    flex-wrap: wrap;
}
.hero__stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.hero__stat span { font-size: .84rem; color: #8fa4cc; letter-spacing: .04em; }

.hero__media { position: relative; }
.hero__frame {
    position: relative;
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0, 0, 0, .45);
    border: 1px solid rgba(255, 255, 255, .14);
    aspect-ratio: 4 / 3.4;
    background: linear-gradient(160deg, #0b1226, #013c8f);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__float {
    position: absolute;
    background: rgba(255, 255, 255, .96);
    color: var(--ink-900);
    border-radius: var(--r-md);
    padding: 16px 20px;
    box-shadow: var(--sh-lg);
    display: flex;
    align-items: center;
    gap: 13px;
    animation: floaty 6s ease-in-out infinite;
}
.hero__float strong { font-family: var(--font-display); font-size: 1.05rem; display: block; line-height: 1.2; }
.hero__float small { color: var(--text-soft); font-size: .78rem; }
.hero__float--a { left: -26px; top: 16%; }
.hero__float--b { right: -20px; bottom: 12%; animation-delay: -3s; }
.hero__float .ico {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: grid; place-items: center;
    background: var(--brand-100);
    color: var(--brand-600);
    flex: none;
}
.hero__float .ico svg { width: 22px; height: 22px; }
.hero__float--b .ico { background: var(--accent-100); color: var(--accent-600); }

.hero__scroll {
    position: absolute;
    left: 50%; bottom: 26px;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: #7d90b8;
    font-size: .72rem;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.hero__scroll i {
    width: 22px; height: 36px;
    border: 2px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    position: relative;
}
.hero__scroll i::after {
    content: "";
    position: absolute;
    top: 7px; left: 50%;
    width: 4px; height: 7px;
    border-radius: 999px;
    background: #fff;
    transform: translateX(-50%);
    animation: scrolldot 1.8s infinite;
}

/* Page hero (inner pages) */
.page-hero {
    position: relative;
    background: var(--grad-hero);
    color: #fff;
    padding: clamp(64px, 9vw, 118px) 0 clamp(56px, 7vw, 92px);
    overflow: hidden;
    isolation: isolate;
}
.page-hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 90px;
    background: linear-gradient(to top, var(--bg), transparent);
    z-index: -1;
}
.page-hero__title { color: #fff; margin-bottom: 18px; }
.page-hero__text { color: #b9c8e6; max-width: 640px; }
.crumbs { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: #8fa4cc; flex-wrap: wrap; }
.crumbs a { color: #cbd6ee; }
.crumbs a:hover { color: #fff; }
.crumbs svg { width: 14px; height: 14px; opacity: .6; }
.crumbs [aria-current] { color: #fff; font-weight: 600; }

/* --------------------------------------------------------------------------
   9. CARDS
   -------------------------------------------------------------------------- */
.card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .5s;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--sh-lg); border-color: transparent; }

/* Course card */
.course-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(160deg, var(--slate-100), var(--brand-100));
}
.course-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease-out);
}
.card:hover .course-card__media img { transform: scale(1.08); }
.course-card__badge {
    position: absolute;
    top: 14px; left: 14px;
    background: rgba(255, 255, 255, .95);
    color: var(--brand-700);
    font-family: var(--font-display);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 7px 14px;
    border-radius: var(--r-pill);
    box-shadow: var(--sh-sm);
    backdrop-filter: blur(6px);
}
.course-card__price {
    position: absolute;
    top: 14px; right: 14px;
    background: var(--grad-accent);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .92rem;
    padding: 8px 16px;
    border-radius: var(--r-pill);
    box-shadow: var(--sh-accent);
}
.course-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.course-card__meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: .82rem;
    color: var(--text-soft);
    margin-bottom: 14px;
}
.course-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.course-card__meta svg { width: 15px; height: 15px; color: var(--brand-500); }
.course-card__title {
    font-size: 1.14rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 16px;
}
.course-card__title a { transition: color .3s; }
.course-card__title a:hover { color: var(--brand-600); }
.course-card__foot {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.stars { display: inline-flex; gap: 3px; }
.stars svg { width: 15px; height: 15px; color: var(--gold-500); }
.rating-text { font-size: .82rem; color: var(--text-soft); margin-left: 7px; }

/* Team card */
.team-card { text-align: center; }
.team-card__media {
    position: relative;
    aspect-ratio: 1 / 1.12;
    overflow: hidden;
    border-radius: var(--r-lg);
    background: var(--slate-100);
}
.team-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.card:hover .team-card__media img { transform: scale(1.07); }
.team-card__social {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 18px;
    background: linear-gradient(to top, rgba(6, 11, 24, .86), transparent);
    transform: translateY(100%);
    opacity: 0;
    transition: all .45s var(--ease-out);
}
.card:hover .team-card__social { transform: translateY(0); opacity: 1; }
.team-card__social a {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    display: grid; place-items: center;
    backdrop-filter: blur(6px);
    transition: background .3s, transform .3s;
}
.team-card__social a:hover { background: var(--brand-500); transform: translateY(-3px); }
.team-card__social svg { width: 17px; height: 17px; }
.team-card__body { padding: 20px 8px 6px; }
.team-card__name { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.team-card__role { font-size: .86rem; color: var(--brand-600); font-weight: 600; }

/* Post / article card */
.post-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    background: var(--slate-100);
}
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.card:hover .post-card__media img { transform: scale(1.07); }
.post-card__date {
    position: absolute;
    bottom: 14px; left: 14px;
    background: rgba(255, 255, 255, .96);
    border-radius: var(--r-sm);
    padding: 8px 13px;
    text-align: center;
    line-height: 1.1;
    box-shadow: var(--sh-sm);
}
.post-card__date b { display: block; font-family: var(--font-display); font-size: 1.1rem; color: var(--brand-700); }
.post-card__date span { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-soft); }
.post-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { display: flex; gap: 16px; font-size: .8rem; color: var(--text-soft); margin-bottom: 12px; flex-wrap: wrap; }
.post-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-card__meta svg { width: 14px; height: 14px; color: var(--brand-500); }
.post-card__title { font-size: 1.1rem; font-weight: 700; line-height: 1.42; margin-bottom: 14px; }
.post-card__title a:hover { color: var(--brand-600); }
.post-card__excerpt { font-size: .92rem; color: var(--text-soft); margin-bottom: 18px; }
.post-card__body .link-arrow { margin-top: auto; }

/* Event card */
.event-card { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 0; }
.event-card__date {
    background: var(--grad-brand);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 20px 10px;
    text-align: center;
}
.event-card__date b { font-family: var(--font-display); font-size: 2rem; font-weight: 800; line-height: 1; }
.event-card__date span { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; opacity: .9; }
.event-card__body { padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.event-card__title { font-size: 1.08rem; font-weight: 700; line-height: 1.4; }
.event-card__meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: .82rem; color: var(--text-soft); }
.event-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-card__meta svg { width: 14px; height: 14px; color: var(--accent-500); }

/* Generic icon feature card */
.feature-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    padding: 34px 30px;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.feature-card::before {
    content: "";
    position: absolute;
    inset: auto auto 0 0;
    height: 4px; width: 100%;
    background: var(--grad-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s var(--ease-out);
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--sh-lg); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-card__ico {
    width: 66px; height: 66px;
    border-radius: 20px;
    display: grid; place-items: center;
    background: var(--brand-50);
    color: var(--brand-600);
    margin-bottom: 22px;
    transition: background .45s, color .45s, transform .45s var(--ease-spring);
}
.feature-card:hover .feature-card__ico { background: var(--grad-brand); color: #fff; transform: rotate(-6deg) scale(1.06); }
.feature-card__ico svg { width: 30px; height: 30px; }
.feature-card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-soft); font-size: .95rem; }

/* --------------------------------------------------------------------------
   10. STATS / COUNTERS
   -------------------------------------------------------------------------- */
.stats-band {
    background: var(--grad-ink);
    color: #fff;
    border-radius: var(--r-xl);
    padding: clamp(40px, 5vw, 62px) clamp(24px, 4vw, 56px);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.stats-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 300px at 15% 0%, rgba(61, 134, 240, .35), transparent 65%),
                radial-gradient(500px 260px at 95% 100%, rgba(255, 48, 45, .22), transparent 60%);
    z-index: -1;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.stat { text-align: center; position: relative; }
.stat + .stat::before {
    content: "";
    position: absolute;
    left: -15px; top: 12%;
    height: 76%;
    width: 1px;
    background: rgba(255, 255, 255, .13);
}
.stat__ico {
    width: 56px; height: 56px;
    margin: 0 auto 16px;
    border-radius: 16px;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .08);
    color: var(--brand-300);
}
.stat__ico svg { width: 26px; height: 26px; }
.stat__num {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -.03em;
}
.stat__label { font-size: .88rem; color: #9fb2d6; margin-top: 8px; letter-spacing: .03em; }

/* --------------------------------------------------------------------------
   11. TESTIMONIALS
   -------------------------------------------------------------------------- */
.testimonial-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    padding: 32px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.testimonial-card:hover { transform: translateY(-8px); box-shadow: var(--sh-lg); }
.testimonial-card__quote {
    position: absolute;
    top: 24px; right: 28px;
    font-family: var(--font-display);
    font-size: 4.4rem;
    line-height: 1;
    color: var(--brand-100);
    font-weight: 800;
    pointer-events: none;
}
.testimonial-card__text { font-size: 1rem; line-height: 1.8; color: var(--slate-600); position: relative; z-index: 1; }
.testimonial-card__foot { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 6px; }
.testimonial-card__avatar {
    width: 54px; height: 54px;
    border-radius: 50%;
    object-fit: cover;
    flex: none;
    border: 2px solid var(--brand-100);
}
.testimonial-card__name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.testimonial-card__role { font-size: .82rem; color: var(--brand-600); font-weight: 600; }

/* --------------------------------------------------------------------------
   12. ACCORDION / FAQ
   -------------------------------------------------------------------------- */
.accordion { display: grid; gap: 14px; }
.acc-item {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: box-shadow .4s, border-color .4s;
}
.acc-item.is-open { box-shadow: var(--sh-md); border-color: var(--brand-300); }
.acc-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 26px;
    text-align: left;
    font-family: var(--font-display);
    font-size: 1.04rem;
    font-weight: 600;
    color: var(--ink-800);
}
.acc-head__ico {
    width: 34px; height: 34px;
    border-radius: 10px;
    flex: none;
    display: grid; place-items: center;
    background: var(--brand-50);
    color: var(--brand-600);
    transition: all .4s var(--ease-out);
}
.acc-head__ico svg { width: 18px; height: 18px; transition: transform .4s var(--ease-out); }
.acc-item.is-open .acc-head__ico { background: var(--grad-brand); color: #fff; }
.acc-item.is-open .acc-head__ico svg { transform: rotate(45deg); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease-out); }
.acc-panel__inner { padding: 0 26px 24px; color: var(--text-soft); line-height: 1.8; }

/* --------------------------------------------------------------------------
   13. MARQUEE
   -------------------------------------------------------------------------- */
.marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; gap: 64px; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--slate-400);
    white-space: nowrap;
    transition: color .3s, filter .3s;
    filter: grayscale(1);
    opacity: .72;
}
.marquee__item:hover { color: var(--brand-700); filter: none; opacity: 1; }
.marquee__item img { max-height: 46px; width: auto; object-fit: contain; }

/* --------------------------------------------------------------------------
   14. FORMS
   -------------------------------------------------------------------------- */
.field { position: relative; margin-bottom: 20px; }
.field label {
    display: block;
    font-family: var(--font-display);
    font-size: .86rem;
    font-weight: 600;
    color: var(--ink-700);
    margin-bottom: 8px;
}
.field input, .field textarea, .field select {
    width: 100%;
    padding: 15px 18px;
    background: var(--slate-50);
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    font-size: .95rem;
    transition: border-color .3s, background .3s, box-shadow .3s;
}
.field textarea { min-height: 148px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none;
    background: #fff;
    border-color: var(--brand-400);
    box-shadow: 0 0 0 4px rgba(61, 134, 240, .14);
}
.field--icon input, .field--icon textarea { padding-left: 48px; }
.field__ico {
    position: absolute;
    left: 17px;
    top: 43px;
    color: var(--slate-400);
    pointer-events: none;
}
.field__ico svg { width: 18px; height: 18px; }
.field__err { display: block; color: var(--accent-600); font-size: .82rem; margin-top: 6px; }

.alert {
    padding: 16px 20px;
    border-radius: var(--r-sm);
    font-size: .93rem;
    margin-bottom: 22px;
    border: 1px solid transparent;
}
.alert--ok { background: #e9f9ef; color: #0a7a3d; border-color: #b7ebc9; }
.alert--err { background: var(--accent-100); color: var(--accent-700); border-color: #ffc9c6; }

/* --------------------------------------------------------------------------
   15. CTA
   -------------------------------------------------------------------------- */
.cta-band {
    position: relative;
    background: var(--grad-brand);
    border-radius: var(--r-xl);
    padding: clamp(40px, 5vw, 66px) clamp(26px, 4vw, 60px);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto;
    align-items: center;
    gap: 34px;
}
.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(500px 260px at 90% 10%, rgba(255, 48, 45, .35), transparent 60%),
                radial-gradient(400px 240px at 5% 90%, rgba(255, 255, 255, .16), transparent 60%);
    z-index: -1;
}
.cta-band::after {
    content: "";
    position: absolute;
    right: -60px; top: -60px;
    width: 260px; height: 260px;
    border-radius: 50%;
    border: 40px solid rgba(255, 255, 255, .07);
    z-index: -1;
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.cta-band p { color: rgba(255, 255, 255, .85); margin-top: 10px; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   16. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--grad-ink);
    color: #b9c8e6;
    padding-top: clamp(56px, 7vw, 90px);
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(122, 176, 247, .5), transparent);
}
.site-footer h4 {
    color: #fff;
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
}
.site-footer h4::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 34px; height: 3px;
    border-radius: 3px;
    background: var(--grad-accent);
}
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 44px;
    padding-bottom: 52px;
}
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__tag { color: var(--brand-300); }
.footer-about { margin: 22px 0; font-size: .92rem; line-height: 1.8; color: #9fb2d6; }
.footer-contact { display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 12px; font-size: .9rem; color: #9fb2d6; line-height: 1.6; }
.footer-contact svg { width: 17px; height: 17px; color: var(--brand-300); flex: none; margin-top: 3px; }
.footer-contact a:hover { color: #fff; }
.footer-links { display: grid; gap: 12px; }
.footer-links a { font-size: .92rem; color: #9fb2d6; display: inline-flex; align-items: center; gap: 9px; transition: color .3s, transform .3s; }
.footer-links a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-500); transition: transform .3s; }
.footer-links a:hover { color: #fff; transform: translateX(4px); }
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social a {
    width: 42px; height: 42px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .07);
    color: #cbd6ee;
    display: grid; place-items: center;
    transition: all .35s var(--ease-out);
}
.footer-social a:hover { background: var(--grad-brand); color: #fff; transform: translateY(-4px); }
.footer-social svg { width: 18px; height: 18px; }

.newsletter-form { display: grid; gap: 12px; margin-top: 8px; }
.newsletter-form__row {
    display: flex;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--r-pill);
    padding: 5px;
    transition: border-color .3s;
}
.newsletter-form__row:focus-within { border-color: var(--brand-400); }
.newsletter-form input {
    flex: 1;
    background: none;
    border: 0;
    padding: 12px 18px;
    color: #fff;
    font-size: .9rem;
}
.newsletter-form input::placeholder { color: #7d90b8; }
.newsletter-form input:focus { outline: none; }
.newsletter-form button {
    border-radius: var(--r-pill);
    padding: 12px 22px;
    background: var(--grad-accent);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .88rem;
    transition: transform .3s var(--ease-spring), box-shadow .3s;
}
.newsletter-form button:hover { transform: translateY(-2px); box-shadow: var(--sh-accent); }
.newsletter-consent { display: flex; align-items: flex-start; gap: 10px; font-size: .8rem; color: #8fa4cc; }
.newsletter-consent input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--brand-500); }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    font-size: .86rem;
    color: #8fa4cc;
}
.footer-bottom a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   17. BREADCRUMB STRIP / MISC
   -------------------------------------------------------------------------- */
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
    padding: 10px 20px;
    border-radius: var(--r-pill);
    background: #fff;
    border: 1.5px solid var(--border);
    font-family: var(--font-display);
    font-size: .88rem;
    font-weight: 600;
    color: var(--slate-600);
    transition: all .3s var(--ease-out);
    cursor: pointer;
}
.pill:hover { border-color: var(--brand-400); color: var(--brand-600); transform: translateY(-2px); }
.pill.is-active { background: var(--grad-brand); border-color: transparent; color: #fff; box-shadow: var(--sh-brand); }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    border-radius: var(--r-pill);
    background: var(--brand-50);
    color: var(--brand-700);
    font-size: .82rem;
    font-weight: 600;
}
.chip--accent { background: var(--accent-100); color: var(--accent-700); }

.divider-wave { display: block; width: 100%; height: auto; }

.empty-state { text-align: center; padding: 70px 20px; }
.empty-state__ico {
    width: 84px; height: 84px;
    margin: 0 auto 22px;
    border-radius: 26px;
    display: grid; place-items: center;
    background: var(--brand-50);
    color: var(--brand-500);
}
.empty-state__ico svg { width: 38px; height: 38px; }
.empty-state h3 { margin-bottom: 10px; }
.empty-state p { color: var(--text-soft); max-width: 420px; margin: 0 auto 24px; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 9px; flex-wrap: wrap; margin-top: 44px; }
.pagination a, .pagination span {
    min-width: 46px; height: 46px;
    padding: 0 14px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 13px;
    border: 1.5px solid var(--border);
    background: #fff;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .92rem;
    color: var(--slate-600);
    transition: all .3s var(--ease-out);
}
.pagination a:hover { border-color: var(--brand-400); color: var(--brand-600); transform: translateY(-2px); }
.pagination .is-current { background: var(--grad-brand); border-color: transparent; color: #fff; box-shadow: var(--sh-brand); }
.pagination svg { width: 18px; height: 18px; }

/* Detail content (article / course body) */
.prose { font-size: 1.04rem; line-height: 1.85; color: var(--slate-600); }
.prose > * + * { margin-top: 20px; }
.prose h2 { font-size: 1.5rem; margin-top: 40px; color: var(--ink-900); }
.prose h3 { font-size: 1.22rem; margin-top: 32px; color: var(--ink-900); }
.prose ul { display: grid; gap: 10px; padding-left: 4px; }
.prose ul li { position: relative; padding-left: 28px; }
.prose ul li::before {
    content: "";
    position: absolute; left: 0; top: .62em;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--grad-brand);
}
.prose img { border-radius: var(--r-md); }
.prose blockquote {
    border-left: 4px solid var(--brand-500);
    padding: 8px 0 8px 24px;
    font-style: italic;
    color: var(--ink-700);
}

/* Sticky sidebar card */
.side-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    padding: 28px;
    box-shadow: var(--sh-sm);
}
.side-card + .side-card { margin-top: 26px; }
.side-card__title { font-size: 1.06rem; font-weight: 700; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border-soft); }
.spec-list { display: grid; gap: 4px; }
.spec-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px dashed var(--border);
    font-size: .92rem;
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list .k { display: inline-flex; align-items: center; gap: 10px; color: var(--text-soft); }
.spec-list .k svg { width: 17px; height: 17px; color: var(--brand-500); }
.spec-list .v { font-family: var(--font-display); font-weight: 600; color: var(--ink-800); text-align: right; }
.side-price {
    background: var(--grad-ink);
    color: #fff;
    border-radius: var(--r-lg);
    padding: 28px;
    margin-bottom: 26px;
}
.side-price .amount { font-family: var(--font-display); font-size: 2.3rem; font-weight: 800; line-height: 1; }
.side-price .amount small { font-size: .95rem; font-weight: 500; color: #9fb2d6; }

.mini-post { display: flex; gap: 14px; align-items: center; }
.mini-post + .mini-post { margin-top: 18px; }
.mini-post img { width: 70px; height: 70px; border-radius: var(--r-sm); object-fit: cover; flex: none; }
.mini-post h5 { font-size: .94rem; font-weight: 600; line-height: 1.4; }
.mini-post h5 a:hover { color: var(--brand-600); }
.mini-post time { font-size: .78rem; color: var(--text-faint); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 9px; }
.tag-cloud a {
    padding: 8px 15px;
    border-radius: var(--r-pill);
    background: var(--slate-100);
    font-size: .82rem;
    font-weight: 600;
    color: var(--slate-600);
    transition: all .3s;
}
.tag-cloud a:hover { background: var(--grad-brand); color: #fff; }

/* Progress bars (course reviews) */
.bar-row { display: flex; align-items: center; gap: 14px; font-size: .86rem; color: var(--text-soft); }
.bar-row + .bar-row { margin-top: 12px; }
.bar { flex: 1; height: 8px; border-radius: 999px; background: var(--slate-100); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 999px; background: var(--grad-brand); width: 0; transition: width 1.2s var(--ease-out); }

/* Map */
.map-frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border-soft); box-shadow: var(--sh-md); line-height: 0; }
.map-frame iframe { width: 100%; height: 440px; border: 0; }

/* --------------------------------------------------------------------------
   18. SCROLL REVEAL ANIMATIONS
   -------------------------------------------------------------------------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(38px);
    transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
    will-change: opacity, transform;
}
[data-reveal="left"] { transform: translateX(-46px); }
[data-reveal="right"] { transform: translateX(46px); }
[data-reveal="scale"] { transform: scale(.92); }
[data-reveal="fade"] { transform: none; }
[data-reveal].is-visible { opacity: 1; transform: none; }

[data-stagger] > * {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
[data-stagger].is-visible > * { opacity: 1; transform: none; }
[data-stagger].is-visible > *:nth-child(1) { transition-delay: .05s; }
[data-stagger].is-visible > *:nth-child(2) { transition-delay: .14s; }
[data-stagger].is-visible > *:nth-child(3) { transition-delay: .23s; }
[data-stagger].is-visible > *:nth-child(4) { transition-delay: .32s; }
[data-stagger].is-visible > *:nth-child(5) { transition-delay: .41s; }
[data-stagger].is-visible > *:nth-child(6) { transition-delay: .5s; }
[data-stagger].is-visible > *:nth-child(7) { transition-delay: .59s; }
[data-stagger].is-visible > *:nth-child(8) { transition-delay: .68s; }

@keyframes blob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.08); }
    66% { transform: translate(-30px, 25px) scale(.94); }
}
@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@keyframes scrolldot {
    0% { transform: translate(-50%, 0); opacity: 1; }
    70% { transform: translate(-50%, 12px); opacity: 0; }
    100% { transform: translate(-50%, 0); opacity: 0; }
}
@keyframes spin { to { transform: rotate(360deg); } }

.spin-slow { animation: spin 26s linear infinite; }

/* --------------------------------------------------------------------------
   19. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 46px; }
    .hero__media { max-width: 560px; }
    .hero__float--a { left: 0; }
    .hero__float--b { right: 0; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
    .stat:nth-child(3)::before { display: none; }
    .cta-band { grid-template-columns: minmax(0, 1fr); text-align: center; }
    .cta-band__actions { justify-content: center; }
}

@media (max-width: 991px) {
    :root { --header-h: 72px; }
    .main-nav, .header-cta .btn { display: none; }
    .burger { display: grid; }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .section-head { max-width: 100%; }
    .detail-grid, .detail-grid--reverse { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .detail-grid > aside { position: static !important; }
}

@media (max-width: 767px) {
    body { font-size: 15.5px; }
    .container, .container-wide { padding-inline: 18px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
    .grid-auto { grid-template-columns: minmax(0, 1fr); }
    .footer-grid { grid-template-columns: minmax(0, 1fr); }
    .stats-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
    .stat::before { display: none !important; }
    .hero__stats { gap: 24px; }
    .event-card { grid-template-columns: minmax(0, 1fr); }
    .event-card__date { flex-direction: row; gap: 12px; padding: 14px; }
    .event-card__date b { font-size: 1.5rem; }
    .hero__float { display: none; }
}

/* --------------------------------------------------------------------------
   20. ACCESSIBILITY
   -------------------------------------------------------------------------- */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute;
    left: 16px; top: -60px;
    z-index: 300;
    background: var(--brand-600);
    color: #fff;
    padding: 12px 22px;
    border-radius: var(--r-sm);
    font-weight: 600;
    transition: top .3s;
}
.skip-link:focus { top: 16px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    [data-reveal], [data-stagger] > * { opacity: 1 !important; transform: none !important; }
}

@media print {
    .site-header, .site-footer, .drawer, .overlay, .scroll-progress, .cta-band { display: none !important; }
}
