/* ==========================================================================
   Scholar Axis theme
   1. Fonts and tokens   2. Base   3. Layout   4. Buttons, badges, chips
   5. Header and navigation   6. Hero   7. Homepage sections   8. Cards
   9. Inner pages   10. Forms   11. Footer   12. Responsive   13. Motion
   ========================================================================== */

/* 1. Fonts and tokens ------------------------------------------------------ */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }

:root {
	--navy: #0a1f44;
	--blue: #0b4a9e;
	--accent: #f7901e;
	--accent-text: #c95a05;
	--ink: #0e1a33;
	--muted: #4a5873;
	--line: #e2e8f2;
	--tint: #f4f7fb;
	--tint-2: #e9f0fa;
	--white: #fff;
	--ok: #0d7a49; --ok-bg: #e2f5eb;
	--wait: #8a5200; --wait-bg: #fff1d9;
	--shut: #586174; --shut-bg: #eceff4;
	--member: #6a3d9e; --member-bg: #f1eafb;
	--r: 16px; --r-lg: 24px; --r-xl: 32px;
	--shadow: 0 1px 2px rgba(10, 31, 68, .05), 0 10px 28px -16px rgba(10, 31, 68, .22);
	--shadow-lg: 0 30px 70px -32px rgba(10, 31, 68, .42);
	--font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--container: 1200px;
	--bar-h: 78px;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font: 400 1rem/1.7 var(--font); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; font-weight: 800; letter-spacing: -.015em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.icon { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.22em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.skip-link:focus { position: fixed !important; top: 10px; left: 10px; width: auto; height: auto; clip: auto; clip-path: none; z-index: 1000; padding: 12px 18px; background: var(--white); color: var(--navy); border-radius: 10px; box-shadow: var(--shadow-lg); font-weight: 700; }
.muted { color: var(--muted); }
.site-main:focus { outline: none; }

/* 3. Layout ---------------------------------------------------------------- */
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.narrow { max-width: 820px; }
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--flush { padding-top: clamp(32px, 4vw, 48px); }
.section--tint { background: var(--tint); }
.section--navy { background: radial-gradient(800px 400px at 10% 0%, rgba(11, 74, 158, .55), transparent 70%), var(--navy); color: #dbe5f5; }
.section--navy .section-title { color: var(--white); }
.grid { display: grid; gap: 24px; }
.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)); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head > div { max-width: 720px; }
.section-head--center { justify-content: center; text-align: center; }
.section-head--center > div { margin-inline: auto; }
.section-title { font-size: clamp(1.75rem, 3.2vw, 2.5rem); margin-bottom: .35em; }
.section-lead { color: var(--muted); font-size: 1.075rem; margin: 0; }
.section--navy .section-lead { color: #c8d5ea; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.kicker::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--accent); }
.kicker .icon { display: none; }
.kicker--light { color: #ffd29c; }
.subhead { font-size: clamp(1.25rem, 2vw, 1.5rem); margin: 0 0 18px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--blue); white-space: nowrap; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow--small { font-size: .9rem; }
.link-arrow--light { color: #ffd29c; }
.admin-hint { margin: 24px 0; padding: 14px 18px; border-radius: 12px; background: #fff6e5; border: 1px dashed #e8a64a; color: #6b4a10; font-size: .95rem; }
.empty { display: grid; justify-items: center; gap: 8px; padding: 48px 20px; text-align: center; color: var(--muted); background: var(--tint); border-radius: var(--r-lg); }
.empty .icon { width: 40px; height: 40px; color: var(--blue); }
.note { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 16px; border-radius: 12px; background: var(--member-bg); color: var(--member); font-size: .93rem; margin: 0 0 24px; }
.note a { color: inherit; font-weight: 700; }

/* 4. Buttons, badges, chips ----------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent; font: 700 .97rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: var(--white); box-shadow: 0 12px 24px -14px rgba(11, 74, 158, .9); }
.btn--primary:hover { background: var(--navy); color: var(--white); }
.btn--accent { background: var(--accent); color: var(--navy); box-shadow: 0 12px 24px -14px rgba(247, 144, 30, .95); }
.btn--accent:hover { background: #ffa641; color: var(--navy); }
.btn--outline { border-color: var(--blue); color: var(--blue); background: var(--white); }
.btn--outline:hover { background: var(--blue); color: var(--white); }
.btn--ghost { color: var(--blue); background: var(--tint-2); }
.btn--ghost:hover { background: var(--blue); color: var(--white); }
.btn--light-outline { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn--light-outline:hover { background: var(--white); color: var(--navy); }
.btn--small { padding: 9px 16px; font-size: .9rem; }
.btn--large { padding: 15px 28px; font-size: 1.03rem; }
.btn--block { display: flex; width: 100%; margin-top: 12px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px 4px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.badge .icon { width: 14px; height: 14px; }
.badge--open { background: var(--ok-bg); color: var(--ok); }
.badge--coming { background: var(--wait-bg); color: var(--wait); }
.badge--closed { background: var(--shut-bg); color: var(--shut); }
.badge--members { background: var(--member-bg); color: var(--member); }
.chips, .link-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.chips li { padding: 3px 10px; border-radius: 999px; background: var(--tint-2); color: var(--blue); font-size: .78rem; font-weight: 700; }
.chips .chips__more { background: var(--tint); color: var(--muted); }
.link-chips { gap: 8px; margin-bottom: 18px; }
.link-chips a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); font-size: .9rem; font-weight: 600; text-decoration: none; transition: border-color .2s, color .2s, background .2s; }
.link-chips a:hover { border-color: var(--blue); color: var(--blue); background: var(--tint-2); }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .icon { color: var(--ok); margin-top: .2em; }

/* 5. Header and navigation ------------------------------------------------- */
.topbar { background: var(--navy); color: #c9d6ec; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar__text { margin: 0; }
.topbar__links { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.topbar__links a { display: inline-flex; align-items: center; gap: 6px; color: #e5edf9; text-decoration: none; }
.topbar__links a:hover { color: var(--white); text-decoration: underline; }
.site-header { position: sticky; top: calc(-1 * var(--bar-h)); z-index: 100; overflow-x: clip; background: var(--white); box-shadow: 0 1px 0 var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(10, 31, 68, .35); }
.site-header__inner { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "brand actions" "nav nav"; align-items: center; }
.site-brand { grid-area: brand; height: var(--bar-h); display: flex; align-items: center; }
.site-logo img, .custom-logo { display: block; width: auto; max-height: 58px; max-width: 230px; }
.site-nav { display: contents; }
.nav-actions { grid-area: actions; display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--navy); cursor: pointer; }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { border-color: var(--blue); color: var(--blue); }
.primary-nav { grid-area: nav; position: relative; border-top: 1px solid var(--line); }
.primary-nav::before { content: ""; position: absolute; inset: -1px -100vmax 0; border-top: 1px solid var(--line); z-index: -1; }
.menu, .menu .sub-menu { list-style: none; margin: 0; padding: 0; }
.primary-nav > .menu { display: flex; flex-wrap: wrap; gap: 2px; }
.primary-nav .menu > li { position: relative; display: flex; align-items: center; }
.primary-nav .menu > li > a { display: block; padding: 15px 12px; color: var(--ink); font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.primary-nav .menu > li > a:hover, .primary-nav .menu > .current-menu-item > a, .primary-nav .menu > .current-menu-ancestor > a, .primary-nav .menu > .current_page_item > a { color: var(--blue); }
.primary-nav .menu > .current-menu-item > a, .primary-nav .menu > .current-menu-ancestor > a { box-shadow: inset 0 -3px 0 var(--accent); }
.sub-toggle { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-left: -8px; margin-right: 4px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 6px; }
.sub-toggle .icon { width: 16px; height: 16px; transition: transform .2s; }
.is-open > .sub-toggle .icon { transform: rotate(180deg); }
.primary-nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 250px; padding: 10px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 10; }
.primary-nav .menu > li:hover > .sub-menu, .primary-nav .menu > li:focus-within > .sub-menu, .primary-nav .menu > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem; }
.primary-nav .sub-menu a:hover { background: var(--tint-2); color: var(--blue); }
.primary-nav .sub-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0; min-width: 0; }
/* Mega menu: add the CSS class "mega" to a top-level item; its children become column headings. */
.primary-nav .menu > li.mega > .sub-menu { display: grid; grid-template-columns: repeat(3, minmax(190px, 1fr)); gap: 8px 18px; width: min(760px, 90vw); padding: 18px; }
.primary-nav li.mega > .sub-menu > li > a { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); pointer-events: none; padding-bottom: 6px; }
.primary-nav li.mega > .sub-menu > li > a:hover { background: none; }
.nav-toggle { display: none; }
.nav-search { display: none; }
.header-search { border-top: 1px solid var(--line); background: var(--tint); padding: 16px 0; }
.search-form { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 18px; max-width: 720px; }
.search-form__icon { color: var(--muted); }
.search-field { flex: 1; min-width: 0; border: 0; font: inherit; padding: 8px 4px; background: none; color: var(--ink); }
.search-field:focus { outline: none; }
.search-form:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11, 74, 158, .15); }

/* 6. Hero ------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 100px); background: radial-gradient(700px 420px at 0% 0%, rgba(247, 144, 30, .10), transparent 70%), radial-gradient(800px 500px at 100% 10%, rgba(11, 74, 158, .12), transparent 70%), linear-gradient(180deg, var(--tint), var(--white)); }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--navy); font-size: .85rem; font-weight: 700; box-shadow: var(--shadow); margin-bottom: 22px; }
.eyebrow .icon { color: var(--accent); }
.hero__title { font-size: clamp(2.3rem, 4.8vw, 3.8rem); line-height: 1.08; letter-spacing: -.03em; margin-bottom: 20px; }
.hero__title .hl { color: var(--accent-text); background: linear-gradient(transparent 70%, rgba(247, 144, 30, .25) 0); }
.hero__text { font-size: clamp(1.05rem, 1.4vw, 1.18rem); color: var(--muted); max-width: 600px; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 38px 0 0; padding-top: 26px; border-top: 1px solid var(--line); }
.hero__stats div { display: flex; flex-direction: column-reverse; }
.hero__stats dd { margin: 0; font-size: 1.9rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.hero__stats dt { color: var(--muted); font-size: .9rem; font-weight: 600; }
.hero__photo { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.hero-art { position: relative; aspect-ratio: 1 / .92; }
.hero-art__panel { position: absolute; inset: 6% 4% 6% 8%; border-radius: 40px; background: radial-gradient(circle at 30% 20%, #2a6cc6, transparent 60%), linear-gradient(145deg, var(--blue), var(--navy)); box-shadow: var(--shadow-lg); display: grid; place-items: center; overflow: hidden; }
.hero-art__panel::before, .hero-art__panel::after { content: ""; position: absolute; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .12); }
.hero-art__panel::before { width: 120%; aspect-ratio: 1; left: -60%; top: 30%; }
.hero-art__panel::after { width: 70%; aspect-ratio: 1; right: -25%; top: -25%; border-color: rgba(247, 144, 30, .4); }
.hero-art__mark { position: relative; z-index: 1; width: 46%; max-width: 230px; padding: 18px; background: var(--white); border-radius: 50%; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5); }
.hero-art__ring { position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; border: 10px solid rgba(247, 144, 30, .85); border-left-color: transparent; border-bottom-color: transparent; transform: rotate(-20deg); }
.float-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--white); box-shadow: var(--shadow-lg); max-width: 70%; }
.float-card small { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ok); }
.float-card strong { display: block; font-size: .95rem; line-height: 1.3; color: var(--navy); }
.float-card em { display: block; font-style: normal; font-size: .8rem; color: var(--muted); }
.float-card__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--tint-2); color: var(--blue); flex: none; }
.float-card__icon--gold { background: #fff1d9; color: #c46d00; }
.float-card--exam { top: 0; left: 0; }
.float-card--subjects { right: 0; top: 40%; gap: 8px; padding: 10px; }
.float-card--award { bottom: 0; left: 10%; }
.float-card--award small { color: #c46d00; }
.subject-dot { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--tint-2); color: var(--blue); }
.subject-dot:nth-child(2) { background: #fff1d9; color: #c46d00; }
.subject-dot:nth-child(3) { background: #e2f5eb; color: var(--ok); }
.subject-dot:nth-child(4) { background: var(--member-bg); color: var(--member); }

/* 7. Homepage sections ----------------------------------------------------- */
.intro__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.intro__copy { position: sticky; top: 90px; }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pillar { padding: 22px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pillar:last-child:nth-child(odd) { grid-column: span 2; }
.pillar__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--tint-2); color: var(--blue); margin-bottom: 14px; }
.pillar:nth-child(2) .pillar__icon, .pillar:nth-child(5) .pillar__icon { background: #fff1d9; color: #c46d00; }
.pillar h3 { font-size: 1.1rem; margin-bottom: 6px; }
.pillar p { margin: 0; color: var(--muted); font-size: .95rem; }

.class-finder { background: var(--white); border-radius: var(--r-xl); border: 1px solid var(--line); box-shadow: var(--shadow); padding: clamp(18px, 3vw, 32px); }
.class-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px; margin: -4px -4px 24px; scrollbar-width: thin; }
.class-tab { flex: none; padding: 11px 20px; border-radius: 999px; background: var(--tint); color: var(--navy); font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.class-tab:hover { border-color: var(--blue); color: var(--blue); }
.class-tab[aria-selected="true"] { background: var(--navy); color: var(--white); }
.class-panel + .class-panel { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.is-tabbed .class-panel + .class-panel { margin-top: 0; padding-top: 0; border: 0; }
.is-tabbed .class-panel__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.class-panel__title { font-size: 1.2rem; }
.class-panel__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; margin-bottom: 20px; }
.class-col h4 { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin-bottom: 12px; }
.class-col h4 .icon { color: var(--accent-text); }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mini-list li { padding: 12px 14px; border-radius: 12px; background: var(--tint); }
.mini-list a { font-weight: 700; color: var(--navy); text-decoration: none; }
.mini-list a:hover { color: var(--blue); text-decoration: underline; }
.mini-list__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; font-size: .85rem; color: var(--muted); }

.subject-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 16px; }
.subject-tile { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 22px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.subject-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--ink); }
.subject-tile__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; margin-bottom: 8px; }
.subject-tile__icon .icon { width: 26px; height: 26px; }
.subject-tile__name { font-weight: 800; font-size: 1.08rem; color: var(--navy); }
.subject-tile__meta { font-size: .84rem; color: var(--muted); }
.subject-tile--0 .subject-tile__icon { background: var(--tint-2); color: var(--blue); }
.subject-tile--1 .subject-tile__icon { background: #e2f5eb; color: var(--ok); }
.subject-tile--2 .subject-tile__icon { background: #fff1d9; color: #c46d00; }
.subject-tile--3 .subject-tile__icon { background: var(--member-bg); color: var(--member); }
.subject-tile--4 .subject-tile__icon { background: #e0f4f6; color: #0b7285; }
.subject-tile--5 .subject-tile__icon { background: #fde8ec; color: #b02a4a; }

.feature { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(28px, 5vw, 64px); border-radius: var(--r-xl); background: radial-gradient(600px 360px at 100% 0%, rgba(247, 144, 30, .28), transparent 65%), radial-gradient(700px 420px at 0% 100%, rgba(42, 108, 198, .5), transparent 70%), var(--navy); color: #d6e1f3; }
.feature__title { color: var(--white); font-size: clamp(1.7rem, 3vw, 2.4rem); }
.feature__text { font-size: 1.06rem; color: #cbd8ee; }
.feature__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.feature__note { margin: 20px 0 0; font-size: .9rem; color: #a9bbd9; }
.feature__img { width: 100%; border-radius: var(--r-lg); aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 16px; }
.feature__box { padding: 24px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(6px); }
.feature__box h3 { display: flex; align-items: center; gap: 8px; color: var(--white); font-size: 1.05rem; }
.feature__box ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.feature__box li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.feature__box li a { color: var(--white); font-weight: 600; text-decoration: none; }
.feature__box li a:hover { text-decoration: underline; }
.feature__box li .icon { color: #ffd29c; }
.feature__badge { display: grid; place-items: center; aspect-ratio: 1; max-width: 260px; margin-inline: auto; border-radius: 50%; background: var(--white); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; margin-bottom: 28px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.filters__label { display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; font-weight: 800; color: var(--navy); }
.filters select { appearance: none; min-width: 160px; padding: 10px 36px 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5873' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; font: 600 .92rem var(--font); color: var(--ink); cursor: pointer; }
.filters select:focus { border-color: var(--blue); outline: 3px solid rgba(11, 74, 158, .2); outline-offset: 0; }
.filters__clear { font-size: .9rem; font-weight: 700; }
.js .filters__go { display: none; }
.course-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.course-strip a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 16px; padding: 16px 20px; border-radius: var(--r); background: var(--tint); text-decoration: none; transition: background .2s; }
.course-strip a:hover { background: var(--tint-2); }
.course-strip__title { font-weight: 800; color: var(--navy); }
.course-strip__meta { grid-row: 2; font-size: .87rem; color: var(--muted); }
.course-strip .icon { grid-row: span 2; color: var(--blue); }
#upcoming .subhead { margin-top: 44px; }

.why-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.why-card { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: var(--white); font-weight: 700; font-size: 1.05rem; line-height: 1.4; }
.why-card__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--accent); color: var(--navy); flex: none; }

.resources { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.resources__intro { position: sticky; top: 90px; }
.resources__label { margin: 22px 0 10px; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.schools { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 3vw, 40px); align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-xl); background: linear-gradient(135deg, var(--tint-2), #fff4e6); border: 1px solid var(--line); }
.schools__icon { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 28px; background: var(--white); color: var(--blue); box-shadow: var(--shadow); }
.schools__icon .icon { width: 44px; height: 44px; }
.schools .ticks { margin: 18px 0 0; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 20px; font-weight: 600; font-size: .95rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.step a { position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 24px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--muted); transition: transform .2s, box-shadow .2s; }
.step a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--muted); }
.step strong { color: var(--navy); font-size: 1.08rem; }
.step__num { position: absolute; top: 18px; right: 20px; font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--tint-2); }
.step__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--blue); color: var(--white); margin-bottom: 10px; }
.quote { margin: 0; padding: 28px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.quote__mark { width: 36px; height: 36px; color: var(--accent); }
.quote blockquote { margin: 10px 0 16px; font-size: 1.02rem; color: var(--ink); }
.quote figcaption strong { display: block; color: var(--navy); }
.quote figcaption span { font-size: .9rem; color: var(--muted); }

/* 8. Cards ----------------------------------------------------------------- */
.card { display: flex; flex-direction: column; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .22s, box-shadow .22s, border-color .22s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__media { position: relative; display: block; aspect-ratio: 16 / 9; background: linear-gradient(145deg, var(--blue), var(--navy)); overflow: hidden; }
.card__media--short { aspect-ratio: 16 / 7; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__art { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .92); background: radial-gradient(circle at 80% 10%, rgba(247, 144, 30, .45), transparent 45%), radial-gradient(circle at 10% 100%, rgba(255, 255, 255, .12), transparent 50%); }
.card__art .icon { width: 64px; height: 64px; stroke-width: 1.4; }
.card__art--alt { background: linear-gradient(145deg, #fff1d9, #fde2bd); color: #c46d00; }
.card--course .card__media { background: #fde9cc; }
.ribbon { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: var(--navy); font-size: .78rem; font-weight: 800; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .5); }
.ribbon .icon { width: 14px; height: 14px; }
.card.is-flagship { border-color: rgba(247, 144, 30, .55); box-shadow: 0 0 0 1px rgba(247, 144, 30, .25), var(--shadow); }
.card__body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 16px; }
.card__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.card__program, .card__type { font-size: .82rem; font-weight: 700; color: var(--muted); }
.card__kicker { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .8rem; font-weight: 800; color: var(--accent-text); letter-spacing: .02em; }
.card__title { margin: 0; font-size: 1.17rem; line-height: 1.3; }
.card__title a { color: var(--navy); text-decoration: none; }
.card__title a:hover { color: var(--blue); }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card__foot a, .card__media { position: relative; z-index: 1; }
.card__text { margin: 0; color: var(--muted); font-size: .95rem; }
.card__meta { margin: 0; color: var(--muted); font-size: .88rem; }
.card__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 22px 18px; border-top: 1px solid var(--line); }
.card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.card--exam { border-top: 4px solid var(--line); }
.card--open { border-top-color: var(--ok); }
.card--coming { border-top-color: var(--accent); }
.res-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--tint-2); color: var(--blue); }
.res-icon--gold { background: #fff1d9; color: #c46d00; }
.details { margin: 4px 0 0; display: grid; gap: 8px; }
.details__row { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 10px; align-items: baseline; }
.details dt { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .85rem; font-weight: 600; }
.details dt .icon { width: 16px; height: 16px; color: var(--blue); }
.details dd { margin: 0; font-weight: 700; font-size: .92rem; color: var(--ink); }
.details--compact .details__row { grid-template-columns: 112px 1fr; }
.details--light dt { color: #a9bbd9; }
.details--light dt .icon { color: #ffd29c; }
.details--light dd { color: var(--white); }
.details--light dd a { color: var(--white); }
.details--light { margin: 22px 0 26px; padding: 18px 0; border-block: 1px solid rgba(255, 255, 255, .14); }

/* 9. Inner pages ----------------------------------------------------------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(36px, 5vw, 64px) 0 clamp(40px, 5vw, 64px); background: radial-gradient(520px 300px at 100% 0%, rgba(247, 144, 30, .28), transparent 70%), radial-gradient(600px 360px at 0% 100%, rgba(42, 108, 198, .45), transparent 70%), var(--navy); color: #cbd8ee; }
.page-hero__title { color: var(--white); font-size: clamp(1.9rem, 4vw, 3rem); margin: 0 0 10px; max-width: 900px; }
.page-hero__intro { max-width: 760px; font-size: 1.08rem; margin: 0; }
.page-hero__extra { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: #dce6f6; }
.page-hero__extra a { color: #ffd29c; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; font-size: .87rem; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: rgba(255, 255, 255, .4); }
.breadcrumbs a { color: #dce6f6; text-decoration: none; }
.breadcrumbs a:hover { color: var(--white); text-decoration: underline; }
.breadcrumbs [aria-current] { color: #9fb2d3; }
.listing-group + .listing-group { margin-top: 48px; }
.listing-group__title { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; }
.listing-group__title .count { padding: 2px 10px; border-radius: 999px; background: var(--tint-2); color: var(--blue); font-size: .85rem; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 4vw, 52px); align-items: start; }
.detail-aside { position: sticky; top: 90px; }
.aside-card { padding: 24px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.aside-card > .badge { margin-bottom: 14px; }
.aside-card .details { margin-bottom: 6px; }
.aside-card .details__row { padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.aside-note { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--tint); color: var(--muted); font-weight: 600; font-size: .93rem; }
.aside-note--small { font-weight: 500; font-size: .85rem; background: none; padding: 0; }
.detail-block { margin-bottom: 32px; }
.detail-block h2 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; }
.detail-block h2 .icon { color: var(--accent-text); }
.related { margin-top: 56px; }
.related__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.entry-figure { margin: 0 0 28px; }
.entry-figure img { border-radius: var(--r-lg); width: 100%; }
.entry-content { font-size: 1.05rem; }
.entry-content > * { max-width: 760px; }
.entry-content--wide > * { max-width: none; }
.entry-content h2 { font-size: 1.6rem; margin-top: 1.6em; }
.entry-content h3 { font-size: 1.25rem; margin-top: 1.4em; }
.entry-content blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); font-size: 1.1rem; color: var(--navy); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content details { margin: 0 0 12px; padding: 16px 20px; border-radius: var(--r); background: var(--tint); border: 1px solid var(--line); }
.entry-content summary { cursor: pointer; font-weight: 800; color: var(--navy); }
.entry-content details[open] summary { margin-bottom: 8px; }
.entry-content img { border-radius: 12px; }
.wp-block-button__link { border-radius: 999px; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-weight: 700; }
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
.with-sidebar.no-sidebar { grid-template-columns: 1fr; }
.sidebar .widget { margin-bottom: 28px; padding: 22px; border-radius: var(--r); background: var(--tint); }
.widget-title { font-size: 1.05rem; }
.nav-links { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.nav-links .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; color: var(--navy); }
.nav-links .current, .nav-links a:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.search-again { margin-bottom: 24px; }
.actions-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-cards { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.contact-cards li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--r); background: var(--tint); }
.contact-cards small { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.contact-cards a, .contact-cards address { font-style: normal; font-weight: 700; color: var(--navy); text-decoration: none; }
.contact-cards__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blue); color: var(--white); flex: none; }
.form-card { padding: clamp(22px, 3vw, 36px); border-radius: var(--r-xl); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.form-card h2 { font-size: 1.5rem; }
.comments { margin-top: 48px; }

/* 10. Forms ---------------------------------------------------------------- */
.sa-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sa-field { display: flex; flex-direction: column; gap: 6px; }
.sa-field--wide { grid-column: 1 / -1; }
.sa-field label { font-weight: 700; font-size: .93rem; color: var(--navy); }
.sa-req { color: var(--accent-text); }
.sa-field input, .sa-field select, .sa-field textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); font: inherit; color: var(--ink); }
.sa-field input:focus, .sa-field select:focus, .sa-field textarea:focus { border-color: var(--blue); outline: 3px solid rgba(11, 74, 158, .15); outline-offset: 0; }
.sa-field [aria-invalid="true"] { border-color: #c0392b; }
.sa-field-error { margin: 0; color: #b42318; font-size: .87rem; font-weight: 600; }
.sa-field--consent { margin: 18px 0; }
.sa-field--consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--muted); }
.sa-field--consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.sa-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sa-form-notice { margin-bottom: 18px; padding: 14px 18px; border-radius: 12px; font-weight: 600; }
.sa-form-notice ul { margin: 6px 0 0; }
.sa-form-notice--ok { background: var(--ok-bg); color: var(--ok); }
.sa-form-notice--error { background: #fdecea; color: #8a1c12; }

/* 11. Footer --------------------------------------------------------------- */
.site-footer { background: var(--navy); color: #b9c8e2; padding: clamp(48px, 6vw, 80px) 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer-brand .logo-img { max-width: 220px; margin-bottom: 18px; }
.footer-brand p { color: #b9c8e2; }
.footer-col__title { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a, .footer-contact a { color: #d4def0; text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: var(--white); text-decoration: underline; }
.footer-contact { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: var(--accent); margin-top: .25em; }
.social { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--white); }
.social a:hover { background: var(--accent); color: var(--navy); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-note { color: #ffd29c; font-weight: 600; }

/* 12. Responsive ----------------------------------------------------------- */
@media (max-width: 1180px) {
	:root { --bar-h: 70px; }
	.site-header { top: 0; }
	.site-header__inner { display: flex; justify-content: space-between; height: var(--bar-h); }
	.site-brand { height: auto; }
	.site-logo img, .custom-logo { max-height: 48px; max-width: 190px; }
	.nav-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--navy); font: 700 .95rem var(--font); cursor: pointer; }
	.nav-toggle__close, .nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: block; }
	.site-nav { display: flex; flex-direction: column; position: fixed; top: var(--nav-top, var(--bar-h)); left: 0; right: 0; bottom: 0; padding: 12px 20px 28px; background: var(--white); overflow-y: auto; border-top: 1px solid var(--line); transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s; z-index: 99; }
	.nav-open .site-nav { transform: none; visibility: visible; }
	.nav-open { overflow: hidden; }
	.primary-nav { border: 0; }
	.primary-nav::before { display: none; }
	.primary-nav > .menu { flex-direction: column; flex-wrap: nowrap; gap: 0; }
	.primary-nav .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
	.primary-nav .menu > li > a { flex: 1; padding: 15px 4px; font-size: 1.02rem; }
	.primary-nav .menu > .current-menu-item > a, .primary-nav .menu > .current-menu-ancestor > a { box-shadow: none; }
	.sub-toggle { width: 44px; height: 44px; margin: 0; border-radius: 10px; background: var(--tint); }
	.primary-nav .sub-menu, .primary-nav .menu > li.mega > .sub-menu { position: static; display: none; width: 100%; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 12px; padding: 4px 0 12px; background: transparent; grid-template-columns: 1fr; }
	.primary-nav .menu > li:hover > .sub-menu, .primary-nav .menu > li:focus-within > .sub-menu { display: none; }
	.primary-nav .menu > li.is-open > .sub-menu { display: block; }
	.primary-nav .menu > li.mega.is-open > .sub-menu { display: grid; }
	.primary-nav .sub-menu .sub-menu { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 10px 12px; }
	.primary-nav .sub-menu .sub-menu a { padding: 6px 12px; border-radius: 999px; background: var(--tint); font-size: .88rem; }
	.nav-search { display: block; margin: 8px 0 6px; }
	.nav-search .search-form { max-width: none; }
	.nav-search .search-form .btn { display: none; }
	.nav-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
	.nav-actions .search-toggle { display: none; }
	.nav-actions .btn { justify-content: center; }
	.header-search { position: relative; z-index: 101; }
	.hero__grid, .intro__grid, .resources, .feature, .contact-grid, .detail-layout { grid-template-columns: 1fr; }
	.intro__copy, .resources__intro, .detail-aside { position: static; }
	.hero-art { max-width: 520px; margin-inline: auto; width: 100%; }
	.class-panel__grid { grid-template-columns: 1fr 1fr; }
	.class-panel__grid .class-col:first-child { grid-column: 1 / -1; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
	.with-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
	.grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.why-grid, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.schools { grid-template-columns: 1fr; }
	.schools .ticks { grid-template-columns: 1fr; }
	.section-head { flex-direction: column; align-items: flex-start; }
	.section-head--center { align-items: center; }
	.topbar__text { display: none; }
	.topbar--textonly { display: none; }
	.topbar__inner { justify-content: center; }
}
@media (max-width: 640px) {
	.container { width: min(100% - 32px, var(--container)); }
	.grid--2, .grid--3, .grid--4, .pillars, .why-grid, .steps, .course-strip, .sa-form-grid, .class-panel__grid { grid-template-columns: 1fr; }
	.pillar:last-child:nth-child(odd) { grid-column: auto; }
	.subject-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.subject-tile { padding: 16px; }
	.hero__actions .btn { flex: 1 1 100%; }
	.hero__stats { gap: 14px 24px; }
	.hero__stats dd { font-size: 1.5rem; }
	.float-card { max-width: 82%; padding: 10px 12px; }
	.float-card--subjects { display: none; }
	.footer-grid { grid-template-columns: 1fr; }
	.filters select { flex: 1 1 100%; }
	.nav-toggle__label { display: none; }
	.nav-toggle { padding: 10px; }
	.nav-actions { grid-template-columns: 1fr; }
	.topbar__links { gap: 14px; font-size: .8rem; }
	.details__row, .details--compact .details__row { grid-template-columns: 1fr; gap: 0; }
	.card__foot { padding: 14px 18px 16px; }
	.card__body { padding: 18px 18px 14px; }
}

/* 13. Motion --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
	.card:hover, .subject-tile:hover, .step a:hover, .btn:hover { transform: none; }
}

/* Student accounts (Scholar Axis Core) */
.sa-acct-form { max-width: 760px; }
.sa-acct-form .sa-field { margin-bottom: 14px; }
.sa-acct-form .sa-form-grid { margin-bottom: 6px; }
.sa-hint { margin: 0; color: var(--muted); font-size: .85rem; }
.sa-switch { margin-top: 16px; color: var(--muted); }
.sa-acct-context { padding: 12px 16px; border-radius: 12px; background: var(--tint-2); color: var(--navy); font-weight: 600; }
.sa-pass { position: relative; }
.sa-pass input { padding-right: 48px; }
.sa-pass__toggle { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; cursor: pointer; font-size: 1rem; }
.sa-pass__toggle[aria-pressed="true"] { background: var(--tint-2); }
.sa-account__hello { font-size: 1.2rem; font-weight: 800; color: var(--navy); }
.sa-account__hello span { font-weight: 500; color: var(--muted); font-size: 1rem; }
.sa-account__block { margin: 0 0 36px; padding: clamp(18px, 3vw, 28px); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.sa-account__block h2 { font-size: 1.3rem; }
.sa-programs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sa-programs__item { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--r); background: var(--tint); }
.sa-programs__item strong { display: block; color: var(--navy); }
.sa-programs__item span { display: block; color: var(--muted); font-size: .92rem; }
.sa-programs__item form { margin: 0; }
.sa-account__logout { font-weight: 700; }
.sa-join-card { max-width: 640px; margin: 0 auto; }
.sa-join-card h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
@media (max-width: 640px) { .sa-programs__item { flex-direction: column; align-items: stretch; } }

/* Four-across listings (Examinations) */
.grid--4 { gap: 20px; }
.grid--4 .card__body { padding: 18px 18px 14px; }
.grid--4 .card__foot { padding: 12px 18px 16px; }
.grid--4 .card__title { font-size: 1.05rem; }
.grid--4 .details--compact { gap: 10px; }
.grid--4 .details--compact .details__row { grid-template-columns: 1fr; gap: 1px; }   /* label above its value in narrow cards */
.grid--4 .details--compact dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }
.grid--4 .details--compact dt .icon { width: 14px; height: 14px; }
.grid--4 .details--compact dd { font-size: .9rem; padding-left: 21px; }
@media (max-width: 1180px) { .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--4 { grid-template-columns: 1fr; } }

/* Footer contact column */
.footer-col--contact .footer-contact { margin-bottom: 16px; }
.footer-col--contact .footer-contact a, .footer-col--contact .footer-contact span { word-break: break-word; }
.footer-cta { margin-top: 4px; }
.footer-hint { font-size: .85rem; color: #ffd29c; border: 1px dashed rgba(255, 210, 156, .5); border-radius: 10px; padding: 10px 12px; }

/* Hero box: your own picture */
.hero-art__mark { aspect-ratio: 1; height: auto; object-fit: contain; }
.hero-art--fill .hero-art__panel::before, .hero-art--fill .hero-art__panel::after { display: none; }
.hero-art__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
a.float-card { color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
a.float-card:hover, a.float-card:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
@media (prefers-reduced-motion: reduce) { a.float-card { transition: none; } }

/* Whole-box photo with the cards around it */
.hero-art--photo { aspect-ratio: auto; padding: 30px 0 34px 22px; }
.hero-art--photo .hero__photo { display: block; width: 100%; height: auto; aspect-ratio: auto; }
.hero-art--photo .float-card--exam { max-width: 60%; }
@media (max-width: 640px) { .hero-art--photo { padding: 24px 0 28px 12px; } }

/* Subject icons: position (Customizer) */
.hero-art--icons-right .float-card--subjects { right: 0; top: 40%; left: auto; transform: none; }
.hero-art--icons-corner .float-card--subjects { top: 0; right: 0; left: auto; transform: none; }
.hero-art--icons-below .float-card--subjects { top: 70%; left: 50%; right: auto; transform: translateX(-50%); }
.hero-art--icons-logo .float-card--subjects { top: 62%; left: calc(4% + 22px); right: auto; transform: none; }
.hero-art--photo.hero-art--icons-below .float-card--subjects { top: 66%; }

/* ---------- Partner With Scholar Axis ---------- */
.partner-page { max-width: 880px; margin: 0 auto; }
.partner-page > p:first-child { font-size: 1.15rem; line-height: 1.75; }
.partner-page .wp-block-buttons { margin: 22px 0 8px; }
.partner-page .wp-block-button__link { display: inline-flex; align-items: center; padding: 14px 26px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; text-decoration: none; box-shadow: var(--shadow); }
.partner-page .wp-block-button__link:hover { background: var(--navy); }
.partner-page ul.wp-block-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.partner-page ul.wp-block-list > li { position: relative; padding: 14px 16px 14px 48px; border-radius: var(--r); background: var(--tint); }
.partner-page ul.wp-block-list > li::before { content: ""; position: absolute; left: 16px; top: 17px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.partner-steps { counter-reset: step; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.partner-steps > li { counter-increment: step; position: relative; padding: 18px 18px 18px 64px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.partner-steps > li::before { content: counter(step); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 800; }
.sa-program-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.sa-program-list li { padding: 12px 16px; border-left: 4px solid var(--accent); background: var(--tint); border-radius: 0 var(--r) var(--r) 0; }
.sa-program-list span { color: var(--muted); }
.partner-form-card { margin: 40px 0; padding: clamp(22px, 3.5vw, 40px); border-radius: var(--r-xl); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg); scroll-margin-top: 120px; }
.partner-form-card > h2 { margin-top: 0; }
.sa-form-grid .sa-form-section { grid-column: 1 / -1; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 1.1rem; color: var(--navy); }
.sa-form-grid .sa-form-section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.sa-checks { border: 0; padding: 0; margin: 0; }
.sa-checks legend { font-weight: 700; color: var(--navy); margin-bottom: 8px; padding: 0; }
.sa-checks__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.sa-check { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); cursor: pointer; font-weight: 500; }
.sa-check input { margin-top: 3px; accent-color: var(--blue); width: 18px; height: 18px; flex: none; }
.sa-check:has(input:checked) { border-color: var(--blue); background: var(--tint-2); }
.partner-page details.wp-block-details { border: 1px solid var(--line); border-radius: var(--r); padding: 0 18px; margin: 0 0 10px; background: var(--white); }
.partner-page details.wp-block-details summary { cursor: pointer; padding: 16px 0; font-weight: 700; color: var(--navy); }
.partner-page details.wp-block-details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
@media (max-width: 640px) { .partner-steps { grid-template-columns: 1fr; } }

/* ---------- Legal pages and footer legal links ---------- */
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.footer-legal a { color: inherit; opacity: .85; text-decoration: none; font-size: .9rem; }
.footer-legal a:hover, .footer-legal a:focus-visible { opacity: 1; text-decoration: underline; }
.entry-content .legal-updated { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--tint); color: var(--navy); font-size: .95rem; }
.entry-content .legal-toc { margin: 22px 0 30px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.entry-content .legal-toc p { margin: 0 0 10px; }
.entry-content .legal-toc ul { margin: 0; padding-left: 18px; columns: 2; column-gap: 32px; }
.entry-content .legal-toc li { break-inside: avoid; margin: 0 0 6px; }
.entry-content .legal-related { padding: 14px 18px; border-radius: var(--r); background: var(--tint); }
.entry-content h2[id], .entry-content h3[id] { scroll-margin-top: 120px; }
@media (max-width: 640px) { .entry-content .legal-toc ul { columns: 1; } }
