/* Sir Charles Online School — site styles.
   Brand colours and fonts come from Admin → Appearance (injected as CSS variables in the page head);
   the values below are only fallbacks. */
:root {
  --brand: #0f57fb; --brand-600: #0c47cf; --brand-50: #eef3ff;
  --navy: #0b2454; --navy-900: #071737; --navy-700: #23396a;
  --gold: #c9a24a; --gold-300: #e0c88f; --gold-50: #fbf6ea;
  --ink: #131c33; --text: #424a5c; --muted: #6a7389; --line: #e3e8f2; --soft: #f4f7fd; --white: #fff;
  --ok: #0f8f58; --ok-50: #e6f6ee; --warn: #b26a00; --warn-50: #fff4e0; --bad: #c62f2f; --bad-50: #fdecec; --info-50: #e9f1ff;
  --radius: 18px; --radius-sm: 11px;
  --shadow-sm: 0 1px 2px rgba(11, 36, 84, .06), 0 2px 8px rgba(11, 36, 84, .05);
  --shadow: 0 2px 4px rgba(11, 36, 84, .04), 0 10px 30px rgba(11, 36, 84, .08);
  --shadow-lg: 0 24px 60px -12px rgba(11, 36, 84, .28);
  --shadow-glow: 0 10px 30px -8px color-mix(in srgb, var(--brand) 60%, transparent);
  --font-head: 'Poppins', system-ui, sans-serif; --font-body: 'Work Sans', system-ui, sans-serif;
  --wrap: 1200px; --topbar-h: 36px; --nav-h: 78px; --header-h: calc(var(--topbar-h) + var(--nav-h));
  --ease: cubic-bezier(.2, .7, .2, 1);
}
.has-announce { --header-h: calc(var(--topbar-h) + var(--nav-h) + 38px); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.68; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.hero-light main { padding-top: var(--header-h); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-600); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.18; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.45rem); }
h3 { font-size: 1.18rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }
::selection { background: var(--gold-300); color: var(--navy-900); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.section { padding: 64px 0; position: relative; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section-soft { background: var(--soft); }
.section-navy { background: var(--navy); color: #cfd8f3; }
.section-navy h2, .section-navy h3 { color: #fff; }
.dotted { background-image: radial-gradient(color-mix(in srgb, var(--navy) 9%, transparent) 1px, transparent 1px); background-size: 22px 22px; background-color: var(--soft); }
.section-head { max-width: 700px; margin-bottom: 40px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head-row { align-items: flex-end; margin-bottom: 34px; gap: 18px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.eyebrow::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: var(--gold); }
.section-head.center .eyebrow::after { content: ''; width: 22px; height: 2px; border-radius: 2px; background: var(--gold); }
.eyebrow.gold { color: var(--gold-300); }
.lead { font-size: 1.12rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 18px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grid { display: grid; gap: 24px; }
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.link-arrow { font-family: var(--font-head); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow svg { transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } *, *::before, *::after { animation: none !important; } }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent; font-family: var(--font-head); font-weight: 600; font-size: .95rem; line-height: 1.2; cursor: pointer; text-decoration: none !important; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .25s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-600)); color: #fff; box-shadow: 0 6px 18px -8px var(--brand); }
.btn-primary:hover { color: #fff; box-shadow: var(--shadow-glow); }
.btn-gold { background: linear-gradient(135deg, var(--gold-300), var(--gold)); color: var(--navy-900); box-shadow: 0 8px 24px -10px var(--gold); }
.btn-gold:hover { color: var(--navy-900); box-shadow: 0 14px 34px -10px var(--gold); }
.btn-glass { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-900); color: #fff; box-shadow: var(--shadow); }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand); color: #fff; box-shadow: var(--shadow-glow); }
.btn-light { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-light:hover { color: var(--navy); box-shadow: var(--shadow-lg); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); box-shadow: var(--shadow); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-ok:hover { background: #0b7a4b; color: #fff; box-shadow: 0 10px 24px -10px var(--ok); }
.btn-bad { background: #fff; color: var(--bad); border-color: #f0c4c4; }
.btn-bad:hover { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn-whatsapp { background: #1fae54; color: #fff; }
.btn-whatsapp:hover { background: #179447; color: #fff; box-shadow: 0 12px 28px -10px #1fae54; }
.btn-sm { padding: 8px 15px; font-size: .86rem; }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.linklike { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; cursor: pointer; }
.linklike:hover { text-decoration: underline; }

/* ---------- Header (transparent over dark banners → frosted glass on scroll) ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, box-shadow .3s, transform .3s; }
.announce { background: linear-gradient(90deg, var(--gold), var(--gold-300)); color: var(--navy-900); font-size: .88rem; font-weight: 600; text-align: center; height: 38px; display: flex; align-items: center; overflow: hidden; }
.announce a { color: var(--navy-900); }
.topbar { height: var(--topbar-h); display: flex; align-items: center; font-size: .82rem; color: rgba(255, 255, 255, .78); background: rgba(7, 23, 55, .35); border-bottom: 1px solid rgba(255, 255, 255, .08); overflow: hidden; transition: height .3s var(--ease), opacity .3s; }
.topbar .wrap { width: 100%; display: flex; justify-content: space-between; gap: 14px; }
.topbar a { color: inherit; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.tb-left, .tb-right { display: flex; gap: 18px; align-items: center; }
.tb-right .soc { opacity: .8; }
.hide-sm { display: none !important; }
@media (min-width: 760px) { .hide-sm { display: inline-flex !important; } }
.navbar { transition: background .3s, box-shadow .3s; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: var(--nav-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 52px; width: auto; transition: opacity .25s; }
.brand .logo-light { display: none; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav-links a { position: relative; display: block; padding: 10px 14px; color: var(--ink); font-family: var(--font-head); font-weight: 500; font-size: .95rem; }
.nav-links a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--brand); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-link { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); transition: background .2s; }
.icon-link:hover { background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); }
.cart-count { position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--gold); color: var(--navy-900); font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.btn-nav-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-nav-ghost:hover { color: var(--brand); border-color: var(--brand); }
.menu-btn { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .9); cursor: pointer; color: var(--ink); }
.nav-actions .btn { display: none; }
@media (min-width: 1040px) { .nav-links { display: flex; } .menu-btn { display: none; } .nav-actions .btn { display: inline-flex; } }

/* light pages: always frosted */
.hero-light .site-header, .site-header.scrolled { background: rgba(255, 255, 255, .78); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); box-shadow: 0 1px 0 rgba(11, 36, 84, .06), 0 10px 30px -18px rgba(11, 36, 84, .35); }
.hero-light .topbar, .site-header.scrolled .topbar { background: var(--navy); }
.site-header.scrolled .topbar { height: 0; opacity: 0; border: 0; }
/* over dark banner, before scrolling */
.hero-dark .site-header:not(.scrolled) .nav-links a, .hero-dark .site-header:not(.scrolled) .icon-link, .hero-dark .site-header:not(.scrolled) .btn-nav-ghost, .hero-dark .site-header:not(.scrolled) .user-menu summary { color: #fff; }
.hero-dark .site-header:not(.scrolled) .btn-nav-ghost, .hero-dark .site-header:not(.scrolled) .user-menu summary { border-color: rgba(255, 255, 255, .35); }
.hero-dark .site-header:not(.scrolled) .nav-links a:hover, .hero-dark .site-header:not(.scrolled) .nav-links a[aria-current="page"] { color: var(--gold-300); }
.hero-dark .site-header:not(.scrolled) .brand .logo-dark { display: none; }
.hero-dark .site-header:not(.scrolled) .brand .logo-light { display: block; }
.hero-dark .site-header:not(.scrolled) .menu-btn { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: #fff; }
.mobile-menu { display: none; padding: 8px 0 18px; }
.mobile-menu.open { display: block; background: #fff; border-radius: 16px; padding: 8px 16px 18px; box-shadow: var(--shadow-lg); margin-bottom: 12px; }
.mobile-menu a { display: block; padding: 12px 4px; color: var(--ink); font-family: var(--font-head); font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 14px; display: flex; color: #fff; border-bottom: 0; }
.mobile-menu .btn-ghost { color: var(--ink); }
@media (min-width: 1040px) { .mobile-menu, .mobile-menu.open { display: none; } }
.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line); font-family: var(--font-head); font-weight: 500; font-size: .9rem; color: var(--ink); transition: box-shadow .2s; }
.user-menu summary:hover { box-shadow: var(--shadow); }
.user-menu summary::-webkit-details-marker { display: none; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--brand)); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: .85rem; flex: none; }
.user-menu .menu { position: absolute; right: 0; top: calc(100% + 10px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); min-width: 230px; padding: 6px; z-index: 60; animation: pop .18s var(--ease); }
.user-menu .menu a, .user-menu .menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 9px; color: var(--ink); background: none; border: 0; font: inherit; cursor: pointer; }
.user-menu .menu a:hover, .user-menu .menu button:hover { background: var(--soft); color: var(--brand); }
.user-name { display: none; }
@media (min-width: 640px) { .user-name { display: inline; } }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Toast messages ---------- */
.toasts { position: fixed; z-index: 70; top: calc(var(--nav-h) + 14px); right: 16px; left: 16px; display: grid; gap: 10px; justify-items: end; pointer-events: none; }
.toast { pointer-events: auto; max-width: 460px; width: 100%; box-shadow: var(--shadow-lg); animation: slidein .35s var(--ease); justify-content: space-between; }
.toast-x { background: none; border: 0; font-size: 1.3rem; line-height: 1; cursor: pointer; color: inherit; opacity: .6; }
.toast-x:hover { opacity: 1; }
@keyframes slidein { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 10px; font-size: .95rem; border: 1px solid transparent; background: #fff; }
.toasts .alert { margin: 0; }
.alert-success { background: var(--ok-50); color: #0b5e3b; border-color: #bfe8d3; }
.alert-error { background: var(--bad-50); color: #8f1f1f; border-color: #f4c9c9; }
.alert-info { background: var(--info-50); color: #183f9a; border-color: #c9dafd; }
.alert-warn { background: var(--warn-50); color: #7a4a00; border-color: #f6dca9; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #d7e0fb; background: linear-gradient(140deg, var(--navy-900) 0%, var(--navy) 55%, color-mix(in srgb, var(--navy) 70%, var(--brand)) 100%); padding-top: var(--header-h); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.blob.b1 { width: 520px; height: 520px; right: -120px; top: -120px; background: var(--brand); animation: drift 14s ease-in-out infinite alternate; }
.blob.b2 { width: 380px; height: 380px; left: -140px; bottom: -160px; background: var(--gold); opacity: .25; animation: drift 18s ease-in-out infinite alternate-reverse; }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%); }
@keyframes drift { to { transform: translate(-40px, 40px) scale(1.08); } }
.hero-inner { position: relative; display: grid; gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 110px; }
@media (min-width: 1000px) { .hero-inner { grid-template-columns: 1.05fr .95fr; padding-top: 70px; padding-bottom: 140px; } }
.hero h1 { color: #fff; font-weight: 800; }
.hero .lead { color: #c4cff5; max-width: 560px; }
.pill-badge { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #e6ecff; font-size: .82rem; font-weight: 500; margin-bottom: 20px; backdrop-filter: blur(6px); }
.pill-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 30%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px transparent; } }
.rotator { display: inline-block; color: var(--gold-300); position: relative; }
.rotator span { display: inline-block; animation: rot-in .5s var(--ease); }
.rotator::after { content: ''; position: absolute; left: 0; right: 0; bottom: .02em; height: .12em; background: linear-gradient(90deg, var(--gold), transparent); border-radius: 4px; }
@keyframes rot-in { from { opacity: 0; transform: translateY(.4em); } to { opacity: 1; transform: none; } }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; font-size: .93rem; color: #c4cff5; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { color: var(--gold-300); flex: none; }
.hero-art img { border-radius: 26px; box-shadow: var(--shadow-lg); }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; }
.hero-wave svg { width: 100%; height: 100%; display: block; fill: var(--white); }

/* showcase composition */
.showcase { position: relative; height: 460px; max-width: 560px; width: 100%; margin: 0 auto; }
@media (max-width: 999px) { .showcase { height: 430px; } }
@media (max-width: 520px) { .showcase { height: 420px; transform: scale(.9); transform-origin: top center; margin-bottom: -40px; } }
.sc-card { position: absolute; background: rgba(255, 255, 255, .97); color: var(--ink); border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); padding: 14px 16px; font-size: .84rem; }
.sc-card small { display: block; color: var(--muted); font-size: .72rem; }
.sc-card strong { font-family: var(--font-head); }
.sc-main { left: 0; width: min(370px, 68%); top: 44px; padding: 0 0 12px; overflow: hidden; animation: float 7s ease-in-out infinite; }
.sc-head { display: flex; gap: 6px; align-items: center; padding: 11px 16px; background: var(--soft); border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.sc-head strong { margin-left: 8px; font-size: .82rem; }
.sc-dot { width: 9px; height: 9px; border-radius: 50%; }
.sc-dot.r { background: #ff6159; } .sc-dot.y { background: #ffbd2e; } .sc-dot.g { background: #28c941; }
.sc-row { display: flex; align-items: center; gap: 10px; padding: 7px 16px; border-bottom: 1px dashed var(--line); }
.sc-row span { flex: 1; color: var(--text); }
.sc-row b { font-family: var(--font-head); font-weight: 600; }
.sc-row .tick { width: 18px; height: 18px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; opacity: 0; animation: tick .4s var(--ease) forwards; }
.sc-row:nth-child(3) .tick { animation-delay: .8s; } .sc-row:nth-child(4) .tick { animation-delay: 1.3s; } .sc-row:nth-child(5) .tick { animation-delay: 1.8s; }
@keyframes tick { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
.sc-row.total { background: var(--gold-50); border-bottom: 0; }
.sc-row.total b { color: var(--navy); }
.sc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 16px 0; font-size: .74rem; }
.sc-badge { display: inline-flex; gap: 5px; align-items: center; padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.sc-badge.ok { background: var(--ok-50); color: var(--ok); }
.sc-payslip { right: 0; top: 0; width: 165px; animation: float 6s ease-in-out infinite .6s; z-index: 2; }
.sc-payslip strong { font-size: 1.2rem; color: var(--navy); }
.bars { display: flex; gap: 5px; align-items: flex-end; height: 44px; margin: 8px 0 6px; }
.bars span { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--brand) 40%, #fff)); animation: grow 1.2s var(--ease) both; }
@keyframes grow { from { height: 0; } }
.sc-mpesa { left: 24px; bottom: 0; display: flex; gap: 10px; align-items: center; width: 280px; animation: float 6.5s ease-in-out infinite 1.2s; z-index: 2; }
.mp-ic { width: 34px; height: 34px; border-radius: 10px; background: #1fae54; color: #fff; display: grid; place-items: center; flex: none; }
.sc-cert { right: -14px; top: 196px; width: 196px; display: flex; gap: 10px; align-items: center; background: linear-gradient(135deg, #fff, var(--gold-50)); border: 1px solid var(--gold-300); animation: float 7.5s ease-in-out infinite .3s; z-index: 2; }
.sc-cert img { width: 44px; height: 44px; object-fit: contain; }
.sc-progress { right: 18px; bottom: 26px; display: flex; gap: 10px; align-items: center; animation: float 8s ease-in-out infinite 2s; }
.sc-progress .trk { fill: none; stroke: var(--line); stroke-width: 4; }
.sc-progress .val { fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 97.4; stroke-dashoffset: calc(97.4 - 97.4 * var(--p) / 100); transform: rotate(-90deg); transform-origin: center; animation: ring 1.6s var(--ease) both; }
@keyframes ring { from { stroke-dashoffset: 97.4; } }
.sc-progress strong { font-size: 1.1rem; display: block; color: var(--navy); }
.sc-chip { position: absolute; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); color: #fff; font: 600 .78rem var(--font-head); backdrop-filter: blur(6px); animation: float 9s ease-in-out infinite; }
.sc-chip.c1 { left: 120px; top: 0; } .sc-chip.c2 { left: 190px; top: -8px; animation-delay: 1s; } .sc-chip.c3 { right: 190px; bottom: 104px; animation-delay: 2s; }
.sc-count { position: absolute; left: -28px; top: -6px; width: 92px; height: 92px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-300), var(--gold)); color: var(--navy-900); display: grid; place-content: center; text-align: center; box-shadow: 0 18px 40px -12px var(--gold); animation: float 6s ease-in-out infinite 1.5s; z-index: 3; }
.sc-count strong { font: 800 1.6rem/1 var(--font-head); }
.sc-count span { font-size: .62rem; font-weight: 600; line-height: 1.2; padding: 0 8px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Page heros ---------- */
.page-hero, .course-hero { position: relative; overflow: hidden; color: #c4cff5; background: linear-gradient(140deg, var(--navy-900), var(--navy) 70%, color-mix(in srgb, var(--navy) 75%, var(--brand))); padding: calc(var(--header-h) + 40px) 0 56px; }
.page-hero::after, .course-hero::after { content: ''; position: absolute; right: -120px; top: -80px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 55%, transparent), transparent 70%); pointer-events: none; }
.page-hero .wrap, .course-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: .3em; font-size: clamp(1.9rem, 4vw, 3rem); }
.page-hero p { margin: 0; max-width: 680px; }
.crumbs { font-size: .85rem; margin-bottom: 12px; color: #9fb0e6; }
.crumbs a { color: #d6defa; }
.crumbs a:hover { color: var(--gold-300); }

/* ---------- Stats ---------- */
.stats-section { padding: 0; margin-top: -46px; z-index: 2; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; padding: 26px 18px; text-align: center; transition: background .25s; }
.stat:hover { background: var(--gold-50); }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat > span { color: var(--muted); font-size: .9rem; }

/* ---------- Ribbon ---------- */
.ribbon { display: flex; align-items: center; gap: 18px; padding: 26px 0; margin-top: 40px; overflow: hidden; border-block: 1px solid var(--line); background: #fff; }
.ribbon-label { flex: none; padding-left: max(16px, calc((100vw - var(--wrap)) / 2 + 28px)); font: 600 .78rem var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.ribbon-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ribbon-move { display: flex; gap: 14px; width: max-content; animation: marquee 40s linear infinite; }
.ribbon:hover .ribbon-move { animation-play-state: paused; }
.ribbon-item { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); color: var(--navy); font: 600 .9rem var(--font-head); white-space: nowrap; }
.ribbon-item svg { color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 22px; }
@media (min-width: 720px) { .card-pad { padding: 30px; } }
.feature { position: relative; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); height: 100%; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.feature::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--brand), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature:hover::before { transform: scaleX(1); }
.feature .icon { width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(135deg, var(--brand-50), #fff); border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent); color: var(--brand); display: grid; place-items: center; margin-bottom: 18px; transition: transform .3s var(--ease), background .3s, color .3s; }
.feature:hover .icon { transform: rotate(-6deg) scale(1.06); background: var(--brand); color: #fff; }
.feature .feature-img { width: calc(100% + 56px); max-width: none; margin: -28px -28px 20px; aspect-ratio: 16/9; object-fit: cover; }
.feature .feature-img + .icon { margin-top: -46px; position: relative; background: #fff; box-shadow: var(--shadow); }
.feature h3 { margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); }
.feature .more { display: inline-flex; gap: 6px; align-items: center; margin-top: 14px; font: 600 .92rem var(--font-head); }

.course-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; color: inherit; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; color: inherit; }
.course-thumb { position: relative; aspect-ratio: 16/9; background: var(--soft); overflow: hidden; }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.course-card:hover .course-thumb img { transform: scale(1.06); }
.course-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7, 23, 55, .45)); opacity: 0; transition: opacity .3s; }
.course-card:hover .course-thumb::after { opacity: 1; }
.course-thumb .tag { position: absolute; top: 12px; left: 12px; z-index: 1; background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); }
.course-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.course-body h3 { font-size: 1.04rem; margin: 0; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.course-card:hover h3 { color: var(--brand); }
.course-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .84rem; color: var(--muted); }
.course-meta span { display: inline-flex; align-items: center; gap: 5px; }
.course-foot { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.course-foot .go { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--navy); transition: background .25s, color .25s, transform .25s; }
.course-card:hover .course-foot .go { background: var(--brand); color: #fff; transform: rotate(-45deg); }
.price { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.12rem; }
.price del { font-weight: 500; color: var(--muted); font-size: .85rem; margin-right: 6px; }
.price.free { color: var(--ok); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; font-family: var(--font-head); background: var(--soft); color: var(--navy); line-height: 1.4; }
.badge-brand { background: var(--brand); color: #fff; }
.badge-gold { background: var(--gold-50); color: color-mix(in srgb, var(--gold) 70%, #000); border: 1px solid var(--gold-300); }
.badge-ok { background: var(--ok-50); color: var(--ok); }
.badge-warn { background: var(--warn-50); color: var(--warn); }
.badge-bad { background: var(--bad-50); color: var(--bad); }
.badge-info { background: var(--info-50); color: var(--brand-600); }
.badge-muted { background: #eef0f4; color: var(--muted); }

/* ---------- Categories ---------- */
.cat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.cat-tile { position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--ink); }
.cat-tile .ic { grid-row: span 2; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-50); color: color-mix(in srgb, var(--gold) 75%, #000); transition: background .3s, color .3s; }
.cat-tile:hover .ic { background: var(--navy); color: var(--gold-300); }
.cat-tile .t { font: 600 1rem var(--font-head); }
.cat-tile .n { font-size: .82rem; color: var(--muted); grid-column: 2; }
.cat-tile .go { grid-row: 1 / span 2; grid-column: 3; color: var(--muted); transition: transform .25s, color .25s; }
.cat-tile:hover .go { transform: translateX(4px); color: var(--brand); }

/* ---------- About ---------- */
.about-split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .about-split { grid-template-columns: 1fr 1fr; gap: 70px; } .about-split.flip .about-media { order: 2; } }
.about-media { position: relative; }
.about-media > img { border-radius: 26px; box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 1; object-fit: cover; }
.about-media::before { content: ''; position: absolute; inset: 24px -18px -18px 24px; border-radius: 26px; border: 2px solid var(--gold-300); z-index: -1; }
.about-badge { position: absolute; right: -10px; bottom: 26px; display: flex; gap: 12px; align-items: center; padding: 12px 16px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); }
.about-badge img { width: 40px; height: 40px; object-fit: contain; }
.about-badge strong { display: block; font: 700 .95rem var(--font-head); color: var(--navy); }
.about-badge span { font-size: .78rem; color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { color: #fff; background: var(--ok); border-radius: 50%; padding: 3px; flex: none; margin-top: 3px; }

/* ---------- Founder ---------- */
.founder { background: linear-gradient(160deg, var(--navy-900), var(--navy)); color: #c4cff5; overflow: hidden; }
.founder::before { content: ''; position: absolute; left: -10%; top: 10%; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--gold) 22%, transparent), transparent 65%); }
.founder-grid { position: relative; display: grid; gap: 44px; align-items: start; }
@media (min-width: 960px) { .founder-grid { grid-template-columns: .9fr 1.1fr; gap: 70px; } }
.founder-card { position: relative; padding: 34px; border-radius: 26px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(6px); }
@media (min-width: 960px) { .founder-card { position: sticky; top: calc(var(--nav-h) + 30px); } }
.founder-crest { width: 120px; height: 120px; border-radius: 30px; background: #fff; display: grid; place-items: center; margin-bottom: 22px; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .5); }
.founder-crest img { width: 92px; height: 92px; object-fit: contain; }
.founder-photo { width: 140px; height: 140px; border-radius: 30px; object-fit: cover; margin-bottom: 22px; }
.founder-card blockquote { margin: 0 0 22px; font: 500 clamp(1.15rem, 2vw, 1.4rem)/1.5 var(--font-head); color: #fff; }
.signature { width: 230px; height: auto; max-width: 100%; background: #fff; border-radius: 12px; padding: 6px 12px; margin-bottom: 14px; }
.founder-name strong { display: block; color: #fff; font: 700 1.1rem var(--font-head); }
.founder-name span { color: var(--gold-300); font-size: .92rem; }
.founder-story { color: #c4cff5; max-width: none; }
.founder-story h2, .founder-story h3, .founder-story strong { color: #fff; }
.timeline { list-style: none; padding: 0; margin: 30px 0 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 47px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--gold), rgba(255, 255, 255, .1)); }
.timeline li { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 18px; padding: 0 0 26px; }
.timeline .yr { justify-self: start; padding: 5px 10px; border-radius: 999px; background: var(--gold); color: var(--navy-900); font: 700 .78rem var(--font-head); white-space: nowrap; z-index: 1; height: fit-content; }
.timeline strong { color: #fff; font-family: var(--font-head); }
.timeline p { margin: 4px 0 0; font-size: .93rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; position: relative; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(var(--n, 4), 1fr); } .steps::before { content: ''; position: absolute; top: 47px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--gold-300) 0 10px, transparent 10px 18px); } }
.step { position: relative; padding: 26px 22px 22px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); text-align: center; transition: transform .3s var(--ease), box-shadow .3s; }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.step::before { counter-increment: step; content: counter(step); width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--brand)); color: #fff; display: grid; place-items: center; font: 700 1.05rem var(--font-head); margin: 0 auto 14px; box-shadow: 0 0 0 6px var(--soft), 0 10px 20px -8px var(--brand); position: relative; }
.step h3 { font-size: 1.04rem; margin-bottom: 6px; }
.step p { margin: 0; font-size: .92rem; color: var(--muted); }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.testimonial { position: relative; margin: 0; padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.testimonial:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.testimonial .q { position: absolute; right: 22px; top: 6px; font: 800 4.5rem/1 Georgia, serif; color: var(--gold-300); }
.testimonial blockquote { margin: 0 0 20px; color: var(--ink); }
.testimonial figcaption { display: flex; gap: 12px; align-items: center; }
.testimonial figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testimonial strong { display: block; font-family: var(--font-head); color: var(--ink); }
.testimonial small { color: var(--muted); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; border-radius: 28px; padding: 40px 28px; background: linear-gradient(120deg, var(--navy) 0%, color-mix(in srgb, var(--navy) 40%, var(--brand)) 100%); color: #d7e0fb; display: grid; gap: 24px; align-items: center; box-shadow: var(--shadow-lg); }
.cta-glow { position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--gold) 55%, transparent), transparent 65%); pointer-events: none; }
.cta > * { position: relative; }
.cta h2 { color: #fff; margin: 0 0 8px; }
.cta p { margin: 0; max-width: 620px; }
@media (min-width: 860px) { .cta { grid-template-columns: 1fr auto; padding: 56px 60px; } }

/* ---------- FAQ ---------- */
.faq-split { display: grid; gap: 34px; }
@media (min-width: 900px) { .faq-split { grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; } }
.faq { border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-bottom: 12px; transition: box-shadow .25s, border-color .25s; }
.faq:hover { box-shadow: var(--shadow); }
.faq[open] { border-color: color-mix(in srgb, var(--brand) 30%, transparent); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 18px 56px 18px 20px; font-family: var(--font-head); font-weight: 600; color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-size: 1.2rem; transition: transform .25s, background .25s, color .25s; }
.faq[open] summary::after { content: '−'; background: var(--brand); color: #fff; transform: translateY(-50%) rotate(180deg); }
.faq .answer { padding: 0 20px 18px; }
.faq .answer > :last-child { margin-bottom: 0; }

/* ---------- Gallery / video ---------- */
.gallery { columns: 3 220px; column-gap: 16px; }
.gallery figure { margin: 0 0 16px; break-inside: avoid; border-radius: 16px; overflow: hidden; position: relative; }
.gallery img { width: 100%; transition: transform .5s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 10px 14px; color: #fff; font-size: .85rem; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); }
.video-split { display: grid; gap: 30px; align-items: center; }
@media (min-width: 900px) { .video-split { grid-template-columns: .8fr 1.2fr; } }

/* ---------- Prose ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: 14px; margin: 1em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose blockquote { margin: 1em 0; padding: 14px 20px; border-left: 4px solid var(--gold); background: var(--gold-50); border-radius: 0 12px 12px 0; }
.embed, .video { position: relative; aspect-ratio: 16/9; border-radius: 18px; overflow: hidden; background: #000; margin: 0 0 1em; box-shadow: var(--shadow-lg); }
.embed iframe, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.field label, .label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 6px; font-family: var(--font-head); }
.field .hint { font-size: .83rem; color: var(--muted); margin-top: 5px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=url], input[type=search], input[type=file], input[type=date], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #d6deec; border-radius: 12px; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
input[type=file] { padding: 9px; background: var(--soft); }
input[type=color] { width: 56px; height: 44px; padding: 3px; border: 1.5px solid #d6deec; border-radius: 10px; background: #fff; cursor: pointer; }
textarea { min-height: 120px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #b9c6e0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); flex: none; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute !important; left: -5000px !important; }
.auth-wrap { min-height: calc(100vh - 120px); display: grid; place-items: center; padding: 50px 16px; background: radial-gradient(800px 400px at 90% 0%, var(--brand-50), transparent 60%), radial-gradient(600px 400px at 0% 100%, var(--gold-50), transparent 60%), var(--soft); }
.auth-card { width: 100%; max-width: 480px; box-shadow: var(--shadow-lg); border: 0; }
.auth-card h1 { font-size: 1.8rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; padding: 12px 14px; background: var(--soft); color: var(--navy); font-family: var(--font-head); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.table tr { transition: background .15s; }
.table tbody tr:hover td { background: #f8faff; }
.table .num { text-align: right; white-space: nowrap; }
.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty svg { color: #b9c4dd; margin: 0 auto 10px; }

/* ---------- Pills ---------- */
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.pill { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 500 .9rem var(--font-head); transition: all .2s; }
.pill:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.pill.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.pill .n { opacity: .65; margin-left: 4px; font-size: .8rem; }
.searchbar { display: flex; gap: 8px; max-width: 540px; }
.searchbar input { border-radius: 999px; padding-left: 20px; }

/* ---------- Course page ---------- */
.course-hero h1 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.course-layout { display: grid; gap: 34px; padding-top: 40px; padding-bottom: 80px; }
@media (max-width: 979px) { .course-side { order: -1; } } /* phones: price & Enrol button first */
@media (min-width: 980px) { .course-layout { grid-template-columns: 1fr 370px; align-items: start; } .course-side { position: sticky; top: calc(var(--nav-h) + 20px); margin-top: -200px; } }
.buy-box { overflow: hidden; box-shadow: var(--shadow-lg); border: 0; }
.buy-box .inner { padding: 24px; display: grid; gap: 14px; }
.buy-box .price { font-size: 1.85rem; }
.includes { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: .93rem; }
.includes li { display: flex; gap: 10px; align-items: center; }
.includes svg { color: var(--brand); flex: none; }
.wish-btn { display: inline-flex; gap: 8px; align-items: center; justify-content: center; width: 100%; padding: 10px; border-radius: 999px; border: 1.5px dashed var(--line); background: none; color: var(--muted); font: 600 .9rem var(--font-head); cursor: pointer; transition: all .2s; }
.wish-btn:hover, .wish-btn.on { border-color: #e2557a; color: #e2557a; border-style: solid; }
.wish-btn.on svg { fill: #e2557a; }
.curriculum { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.curriculum details + details { border-top: 1px solid var(--line); }
.curriculum summary { cursor: pointer; padding: 16px 20px; background: var(--soft); font-family: var(--font-head); font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 12px; list-style: none; }
.curriculum summary::-webkit-details-marker { display: none; }
.curriculum summary .n { font-weight: 500; font-size: .85rem; color: var(--muted); white-space: nowrap; }
.curriculum ol { list-style: none; margin: 0; padding: 4px 0; }
.curriculum li { display: flex; align-items: center; gap: 12px; padding: 11px 20px; font-size: .95rem; transition: background .15s; }
.curriculum li:hover { background: #fafbff; }
.curriculum li + li { border-top: 1px dashed var(--line); }
.curriculum li .kind { width: 32px; height: 32px; border-radius: 9px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; }
.curriculum li .t { flex: 1; min-width: 0; }
.curriculum li .d { font-size: .82rem; color: var(--muted); white-space: nowrap; }
.instructor { display: flex; gap: 18px; align-items: flex-start; padding: 22px; }
.instructor .ph { width: 76px; height: 76px; border-radius: 22px; object-fit: cover; flex: none; background: var(--soft); display: grid; place-items: center; }
.instructor .ph.crest { padding: 10px; border: 1px solid var(--line); }
.instructor strong { display: block; font: 700 1.1rem var(--font-head); color: var(--ink); }
.instructor .pos { color: var(--gold); font-weight: 600; font-size: .9rem; }

/* ---------- Progress ---------- */
.progress { height: 8px; border-radius: 99px; background: #e5ebf7; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--gold)); border-radius: 99px; transition: width .6s var(--ease); }
.progress.ok > span { background: var(--ok); }

/* ---------- Dashboard ---------- */
.dash-head { background: linear-gradient(120deg, var(--soft), #fff); border-bottom: 1px solid var(--line); padding: 34px 0; }
.dash-head h1 { font-size: 1.8rem; margin: 0; }
.points-chip { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--gold-50); border: 1px solid var(--gold-300); color: var(--navy); font: 700 .95rem var(--font-head); }
.points-chip svg { color: var(--gold); }
.my-course { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 14px; transition: box-shadow .25s, transform .25s; }
.my-course:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
@media (min-width: 640px) { .my-course { grid-template-columns: 150px 1fr auto; } }
.my-course img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 12px; }
.my-course h3 { font-size: 1rem; margin: 0 0 8px; }
.my-course .actions { grid-column: 1 / -1; }
@media (min-width: 640px) { .my-course .actions { grid-column: auto; } }
.refbox { display: flex; gap: 8px; flex-wrap: wrap; }
.refbox input { flex: 1; min-width: 220px; font-family: monospace; }
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* ---------- Order / payment ---------- */
.paybill { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
.paybill div { background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.paybill small { display: block; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }
.paybill strong { font: 700 1.15rem var(--font-head); color: var(--ink); }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.summary-line.discount { color: var(--ok); }
.summary-line.total { border-bottom: 0; font: 700 1.18rem var(--font-head); color: var(--ink); }
.coupon-form { display: flex; gap: 8px; margin-top: 12px; }
.coupon-form input { text-transform: uppercase; }

/* ---------- Discussion ---------- */
.discussion { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.comment { display: flex; gap: 12px; padding: 14px 0; }
.comment + .comment { border-top: 1px dashed var(--line); }
.comment .body { flex: 1; min-width: 0; }
.comment .who { font: 600 .92rem var(--font-head); color: var(--ink); }
.comment .who .badge { margin-left: 6px; }
.comment .when { font-size: .8rem; color: var(--muted); margin-left: 8px; }
.comment p { margin: 4px 0 0; white-space: pre-wrap; }
.comment .replies { margin-top: 10px; padding-left: 16px; border-left: 2px solid var(--line); }
.comment.hidden-c { opacity: .55; }
.comment-form textarea { min-height: 90px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--navy-900); color: #a9b5dc; padding: 70px 0 28px; font-size: .94rem; margin-top: 0; }
.site-footer::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--brand), var(--gold), var(--brand)); }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #d5ddf7; }
.site-footer a:hover { color: var(--gold-300); }
.footer-grid { display: grid; gap: 34px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr .9fr 1fr 1.2fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-brand img { height: 58px; width: auto; margin-bottom: 16px; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: #fff; transition: background .2s, transform .2s; }
.socials a:hover { background: var(--gold); color: var(--navy-900); transform: translateY(-3px); }
.hours { width: 100%; border-collapse: collapse; font-size: .9rem; }
.hours td { padding: 5px 0; border-bottom: 1px dashed rgba(255, 255, 255, .1); }
.hours td + td { text-align: right; color: #fff; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list svg { color: var(--gold); flex: none; margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .85rem; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: #1fae54; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -6px rgba(31, 174, 84, .6); transition: transform .25s var(--ease); }
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1fae54; animation: ring-out 2.4s infinite; }
@keyframes ring-out { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.wa-float:hover { color: #fff; transform: scale(1.08); }
.wa-tip { position: absolute; right: 70px; white-space: nowrap; background: #fff; color: var(--ink); font: 600 .85rem var(--font-head); padding: 8px 12px; border-radius: 10px; box-shadow: var(--shadow); opacity: 0; transform: translateX(8px); transition: all .25s; pointer-events: none; }
.wa-float:hover .wa-tip { opacity: 1; transform: none; }

/* ---------- Learn player ---------- */
.learn { display: grid; min-height: 100vh; grid-template-rows: auto 1fr; background: #f6f8fd; }
.learn-top { position: sticky; top: 0; z-index: 30; background: var(--navy-900); color: #dbe3ff; display: flex; align-items: center; gap: 14px; padding: 10px 16px; min-height: 60px; }
.learn-top a { color: #fff; }
.learn-top .course-name { font-family: var(--font-head); font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.learn-top .progress { width: 140px; background: rgba(255, 255, 255, .15); display: none; }
@media (min-width: 720px) { .learn-top .progress { display: block; } }
.learn-top .pct { font-size: .85rem; white-space: nowrap; }
.learn-body { display: grid; }
@media (min-width: 1000px) { .learn-body { grid-template-columns: 340px 1fr; } }
.learn-side { background: #fff; border-right: 1px solid var(--line); display: none; max-height: calc(100vh - 60px); overflow-y: auto; position: sticky; top: 60px; }
.learn-side.open { display: block; position: fixed; inset: 60px 0 0 0; z-index: 25; max-height: none; }
@media (min-width: 1000px) { .learn-side { display: block; } .learn-side.open { position: sticky; inset: auto; } .toggle-outline { display: none !important; } }
.learn-side .sec-title { padding: 16px 18px 8px; font-family: var(--font-head); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.learn-side a.li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 18px; color: var(--ink); font-size: .92rem; border-left: 3px solid transparent; transition: background .15s; }
.learn-side a.li:hover { background: var(--soft); }
.learn-side a.li.current { background: var(--brand-50); border-left-color: var(--brand); font-weight: 600; }
.learn-side a.li .st { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #c6d0e4; flex: none; margin-top: 2px; display: grid; place-items: center; }
.learn-side a.li.done .st { background: var(--ok); border-color: var(--ok); color: #fff; }
.learn-side a.li .lock { color: var(--muted); margin-left: auto; flex: none; }
.learn-main { padding: 22px 16px 60px; min-width: 0; }
@media (min-width: 720px) { .learn-main { padding: 36px 44px 80px; } }
.learn-main .inner { max-width: 900px; margin: 0 auto; }
.lesson-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.files { display: grid; gap: 10px; margin: 20px 0; }
.file { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: box-shadow .2s; }
.file:hover { box-shadow: var(--shadow); }
.file .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--bad-50); color: var(--bad); display: grid; place-items: center; flex: none; font-size: .7rem; font-weight: 700; }
.file .nm { flex: 1; min-width: 0; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }

/* ---------- Quiz ---------- */
.quiz-q { padding: 22px; margin-bottom: 14px; }
.quiz-q .qn { font-family: var(--font-head); font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.quiz-q .prompt { font-weight: 600; color: var(--ink); margin: 4px 0 14px; }
.quiz-q .prompt p:last-child { margin: 0; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; background: #fff; transition: border-color .2s, background .2s; }
.opt:hover { border-color: #a9c0f7; }
.opt input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.opt:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.opt.right { border-color: var(--ok); background: var(--ok-50); }
.opt.wrong { border-color: var(--bad); background: var(--bad-50); }
.quiz-result { padding: 26px; text-align: center; margin-bottom: 20px; }
.quiz-result .score { font-family: var(--font-head); font-size: 3.2rem; font-weight: 800; line-height: 1; }
.quiz-result.pass .score { color: var(--ok); }
.quiz-result.fail .score { color: var(--bad); }
.timer { position: sticky; top: 72px; z-index: 5; display: inline-flex; gap: 8px; align-items: center; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 999px; font-family: var(--font-head); font-weight: 600; float: right; }
.timer.low { background: var(--bad); }

/* ---------- Misc ---------- */
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 10px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.pager .cur { background: var(--navy); color: #fff; border-color: var(--navy); }
.error-page { text-align: center; padding: 90px 16px; }
.error-page .code { font-family: var(--font-head); font-size: 6rem; font-weight: 800; background: linear-gradient(135deg, var(--brand), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.icon-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; padding: 0; transition: all .2s; }
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn.danger:hover { border-color: var(--bad); color: var(--bad); }
.thumb-sm { width: 72px; height: 46px; object-fit: cover; border-radius: 8px; background: var(--soft); }

/* ---------- Credentials card (about section without a photo) ---------- */
.cred { position: relative; padding: 30px 10px 40px; }
.cred-main { position: relative; z-index: 1; max-width: 430px; margin: 0 auto; padding: 36px 30px 30px; text-align: center; border-radius: 28px; background: linear-gradient(160deg, #fff, var(--gold-50)); border: 1px solid var(--gold-300); box-shadow: var(--shadow-lg); }
.cred-main::before { content: ''; position: absolute; inset: 10px; border-radius: 20px; border: 1px dashed color-mix(in srgb, var(--gold) 45%, transparent); pointer-events: none; }
.cred-main img { width: 96px; height: 96px; object-fit: contain; margin: 0 auto 14px; }
.cred-main strong { display: block; font: 800 1.5rem var(--font-head); color: var(--navy); }
.cred-main > span { color: var(--muted); font-size: .92rem; }
.cred-line { height: 1px; margin: 20px 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.cred-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cred-grid b { display: block; font: 800 1.3rem var(--font-head); color: var(--brand); }
.cred-grid small { display: block; font-size: .74rem; color: var(--muted); line-height: 1.3; }
.cred-chip { position: absolute; z-index: 2; display: inline-flex; gap: 7px; align-items: center; padding: 9px 14px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-lg); font: 600 .82rem var(--font-head); color: var(--navy); animation: float 7s ease-in-out infinite; }
.cred-chip svg { color: var(--ok); }
.cred-chip.ch1 { left: 0; top: 4px; }
.cred-chip.ch2 { right: 0; bottom: 0; animation-delay: 1.2s; } /* on the card edge, clear of the text */
.cred-chip.ch2 svg { color: var(--gold); }
.cred-chip.ch3 { left: 6%; bottom: 0; animation-delay: 2.4s; }
.cred-chip.ch3 svg { color: var(--brand); }
@media (max-width: 1180px) { .cred-chip.ch3 { left: -8px; } .cred-chip.ch2 { right: -18px; } }
@media (max-width: 520px) { .cred-chip { font-size: .74rem; padding: 7px 11px; } .cred-chip.ch2 { right: -6px; } }

.sc-mpesa small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.sc-mpesa > div { min-width: 0; }
@media (max-width: 520px) { .sc-payslip { width: 140px; } .sc-cert { top: 196px; } .sc-mpesa { left: 0; width: 250px; } .sc-chip.c3 { display: none; } }

/* Phone layout for the hero showcase: a tidy stack instead of floating cards */
@media (max-width: 640px) {
  .showcase { height: auto; transform: none; margin: 0; display: grid; gap: 12px; max-width: 420px; }
  .showcase .sc-card { position: relative; inset: auto; width: auto; animation: none; }
  .sc-payslip, .sc-progress, .sc-chip, .sc-count { display: none !important; }
  .sc-mpesa, .sc-cert { max-width: none; }
  .sc-row { padding: 7px 14px; }
  .cred-chip.ch2 { display: none; }
}

.dash-head .crumbs, .dash-head .crumbs a { color: var(--brand); }
