/* Fonts are stored on this site (assets/fonts), so pages do not depend on any other server. */
@font-face { font-family: "Figtree"; src: url("../fonts/Figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/Bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Kaushan Script"; src: url("../fonts/Kaushan.woff2") format("woff2"); font-weight: 400; font-display: swap; }
/* ===============================================================
   Danny's Computer Institute
   Colours come from the institute logo: gear blue, lettering orange.
   =============================================================== */
:root {
  --ink: #0c1d3a;
  --blue: #1259c3;
  --blue-deep: #0d459b;
  --blue-soft: #e8f0fc;
  --orange: #f47a1f;
  --orange-deep: #b9500a;
  --paper: #f5f8fd;
  --white: #fff;
  --line: #d6dfee;
  --text: #17233b;
  --muted: #55647e;
  --ok: #0f7a4a; --ok-soft: #e4f5ec;
  --bad: #b3261e; --bad-soft: #fdecea;
  --display: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", sans-serif;
  --body: Figtree, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --r-s: 8px; --r-m: 12px; --r-l: 18px;
  --shadow: 0 10px 30px -12px rgba(12, 29, 58, .28);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1rem/1.6 var(--body); color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
.sr { 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: 10px 16px; border-radius: var(--r-s); z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 760px; }
.narrow-s { max-width: 460px; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: .55em 1.15em; border: 2px solid transparent; border-radius: 10px; font: 600 1rem var(--body); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); color: #fff; }
.btn-accent { background: var(--orange); color: #21140a; }
.btn-accent:hover { background: #ff8d38; color: #21140a; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-deep); }
.btn-quiet { background: transparent; color: var(--blue-deep); padding-inline: .7em; }
.btn-quiet:hover { background: var(--blue-soft); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-lg { min-height: 52px; padding-inline: 1.5em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-danger { background: none; border: 0; padding: 0; font: inherit; color: var(--bad); text-decoration: underline; cursor: pointer; }

/* ---------- Public header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand b { display: block; font: 800 1.08rem/1.1 var(--display); }
.brand small { display: block; font-size: .8rem; color: var(--muted); }
.brand-light, .brand-light small { color: #fff; }
.brand-light small { opacity: .75; }
.site-nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.site-nav > a { padding: .5em .75em; border-radius: var(--r-s); color: var(--text); text-decoration: none; font-weight: 500; }
.site-nav > a:hover { background: var(--blue-soft); }
.site-nav > a[aria-current] { color: var(--blue-deep); box-shadow: inset 0 -3px 0 var(--orange); border-radius: 0; }
.nav-auth { display: flex; gap: .4rem; margin-left: .75rem; }
.nav-toggle { display: none; margin-left: auto; min-height: 44px; padding: 0 1em; background: var(--white); border: 2px solid var(--line); border-radius: 10px; font: 600 1rem var(--body); color: var(--ink); cursor: pointer; }
.flash-wrap { padding-top: 1rem; }

/* ---------- Alerts and badges ---------- */
.alert { padding: .85em 1.1em; border-radius: var(--r-m); margin-bottom: 1rem; border: 1px solid; }
.alert-ok { background: var(--ok-soft); border-color: #a9dcc0; color: #084d2e; }
.alert-error { background: var(--bad-soft); border-color: #f2b8b3; color: #7a1711; }
.alert-info { background: var(--blue-soft); border-color: #b9d0f5; color: #0b3a82; }
.badge { display: inline-block; padding: .15em .7em; border-radius: 99px; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.badge-pending { background: #fff1dd; color: #8a4a00; }
.badge-approved { background: var(--ok-soft); color: #084d2e; }
.badge-rejected { background: var(--bad-soft); color: #7a1711; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--blue); color: #fff; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 5.5rem); }
/* Gear teeth along the bottom edge, taken from the logo's cog outline */
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 18px; background: repeating-linear-gradient(90deg, var(--white) 0 26px, transparent 26px 52px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-approved { display: inline-block; margin-bottom: 1.4rem; padding: .35em .9em; border: 1px solid rgba(255, 255, 255, .45); border-radius: 99px; font-size: .9rem; font-weight: 500; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.6vw, 4.3rem); font-weight: 800; line-height: 1.02; letter-spacing: -.03em; margin-bottom: .45em; max-width: 13ch; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 46ch; }
.mizo { font-style: italic; opacity: .9; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.hero .btn-primary { background: #fff; color: var(--blue-deep); }
.hero .btn-primary:hover { background: var(--blue-soft); }
.hero .btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.hero .btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }

.slotboard { background: #fff; color: var(--text); border-radius: var(--r-l); padding: clamp(1.25rem, 2.5vw, 1.9rem); box-shadow: 0 30px 60px -25px rgba(4, 20, 55, .65); }
.slotboard h2 { font-size: 1.45rem; margin-bottom: .2em; }
.slotboard > p { color: var(--muted); margin-bottom: 1rem; }
.slotboard fieldset { border: 0; padding: 0; margin: 0 0 .9rem; }
.slotboard legend { padding: 0; margin-bottom: .4rem; font-size: .88rem; font-weight: 600; color: var(--muted); }
.slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .45rem; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.slot span { display: block; text-align: center; padding: .6em 0; border: 2px solid var(--line); border-radius: var(--r-s); font-weight: 600; font-variant-numeric: tabular-nums; transition: background-color .12s, border-color .12s; }
.slot input:hover + span { border-color: var(--blue); }
.slot input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.slot input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.slot-picked { display: block; margin: .4rem 0 1rem; padding: .6em .9em; background: var(--paper); border-radius: var(--r-s); font-weight: 600; color: var(--ink); }

/* ---------- Facts strip ---------- */
.facts { padding: 2.2rem 0 0; }
.facts-row { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.facts-row > div { padding: 1.3rem 1.4rem; border-left: 1px solid var(--line); }
.facts-row > div:first-child { border-left: 0; }
.facts-row b { display: block; font: 800 1.45rem/1.15 var(--display); color: var(--ink); }
.facts-row span { color: var(--muted); font-size: .95rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-tint { background: var(--paper); }
.section-ink { background: var(--ink); color: #dbe5f6; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-head { max-width: 60ch; margin-bottom: 2.2rem; }
.section-head h2, .about-grid h2, .visit h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -.025em; }
.section-head p { font-size: 1.1rem; color: var(--muted); margin: 0; }
.section-ink .section-head p { color: #b9c8e4; }
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); padding: clamp(2rem, 5vw, 3.5rem) 0; }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; letter-spacing: -.025em; }
.page-head p { color: var(--muted); font-size: 1.1rem; max-width: 62ch; margin: 0; }
.crumb { font-size: .92rem; color: var(--muted); margin-bottom: .8rem !important; }

/* ---------- Courses ---------- */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 1.25rem; }
.course-card { display: flex; flex-direction: column; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--r-l); background: #fff; }
.course-card:hover { border-color: var(--blue); }
.course-card h3 { font-size: 1.3rem; }
.course-card h3 a, .course-row h2 a { color: inherit; text-decoration: none; }
.course-card h3 a:hover, .course-row h2 a:hover { color: var(--blue-deep); text-decoration: underline; }
.course-card p { color: var(--muted); }
.course-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; font-size: .9rem; color: var(--muted); font-weight: 500; }
.code { background: var(--ink); color: #fff; padding: .2em .65em; border-radius: 6px; font-weight: 700; font-size: .82rem; letter-spacing: .03em; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 1.2rem; }
.chips li { padding: .2em .7em; background: var(--blue-soft); color: #0b3a82; border-radius: 99px; font-size: .86rem; font-weight: 500; }
.card-link { margin-top: auto; font-weight: 700; }
.course-list { display: grid; gap: 1.25rem; }
.course-row { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 2rem; padding: 1.7rem; border: 1px solid var(--line); border-radius: var(--r-l); }
.course-row h2 { font-size: 1.5rem; }
.course-row-main .course-meta { justify-content: flex-start; }
.course-row-side { display: flex; flex-direction: column; gap: .5rem; padding-left: 2rem; border-left: 1px solid var(--line); }
.course-row-side p { margin: 0 0 .4rem; }

/* ---------- Admission steps (a real sequence, so numbered) ---------- */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 0; margin: 0 0 2.5rem; }
.steps li { counter-increment: step; padding-top: 1.1rem; border-top: 3px solid var(--orange); }
.steps li::before { content: counter(step); display: block; font: 800 2.6rem/1 var(--display); color: var(--orange); margin-bottom: .6rem; }
.steps h3 { font-size: 1.2rem; }
.steps p { margin: 0; color: #b9c8e4; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about-grid p { max-width: 68ch; }
.about-grid h3 { margin-top: 1.8rem; font-size: 1.3rem; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding: .3em 0 .3em 1.9em; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 1.05em; height: .55em; border-left: 3px solid var(--orange); border-bottom: 3px solid var(--orange); transform: rotate(-45deg) translateY(-50%); }
.fee-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 1.6rem; }
.fee-box h3 { font-size: 1.3rem; }
.fee-box ul { margin: 0; padding-left: 1.2em; }
.fee-box li { margin-bottom: .5em; }

/* ---------- Notices ---------- */
.notice-list { display: grid; gap: .8rem; }
.notice { display: grid; grid-template-columns: 110px 1fr; gap: 1.2rem; padding: 1.1rem 1.3rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--r-m); }
.notice time { color: var(--muted); font-size: .9rem; font-weight: 600; padding-top: .15em; }
.notice h3 { font-size: 1.1rem; margin-bottom: .25em; }
.notice p { margin: 0; color: var(--muted); }

.visit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(1.6rem, 4vw, 2.8rem); background: var(--blue-soft); border-radius: var(--r-l); }
.visit p { max-width: 52ch; margin-bottom: .4em; }
.visit-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.visit .btn-ghost { border-color: #a9c3ee; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c5d2ea; padding: 3.5rem 0 0; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr .9fr; gap: 2.5rem; }
.site-footer h2 { color: #fff; font-size: 1.05rem; margin-bottom: .8em; }
.footer-note { font-size: .92rem; margin: .9rem 0 0; }
.footer-base { margin-top: 2.5rem; padding: 1.2rem 0; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .9rem; }

/* ---------- Detail pages ---------- */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.prose code { background: var(--blue-soft); padding: .1em .4em; border-radius: 4px; font-size: .95em; }
.prose li { margin-bottom: .35em; }
.lesson-preview { padding-left: 1.3em; }
.info-card { border: 1px solid var(--line); border-radius: var(--r-l); padding: 1.6rem; background: #fff; position: sticky; top: 90px; }
.info-card dl { margin: 0 0 1.2rem; }
.info-card dt { font-size: .86rem; font-weight: 600; color: var(--muted); margin-top: .9rem; }
.info-card dt:first-child { margin-top: 0; }
.info-card dd { margin: .1rem 0 0; font-weight: 600; color: var(--ink); }

/* ---------- Forms ---------- */
.form-wrap { max-width: 880px; }
.form-part { border: 1px solid var(--line); border-radius: var(--r-l); padding: 1.6rem; margin: 0 0 1.4rem; background: #fff; min-width: 0; }
.form-part legend { display: flex; align-items: center; gap: .65rem; padding: 0 .6rem; font: 700 1.25rem var(--display); color: var(--ink); }
.form-part legend span { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; background: var(--ink); color: #fff; border-radius: 50%; font-size: .95rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.4rem; }
.field { display: flex; flex-direction: column; min-width: 0; margin-bottom: 1rem; }
.fields .field { margin-bottom: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 600; margin-bottom: .35rem; color: var(--ink); }
.opt { font-weight: 400; font-size: .85rem; color: var(--muted); }
.field input:not([type=checkbox]):not([type=file]), .field select, .field textarea, .toolbar input, .toolbar select, .inline-form select {
  width: 100%; min-height: 46px; padding: .55em .8em; border: 2px solid var(--line); border-radius: 10px; background: #fff; font: inherit; color: var(--text); }
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus, .toolbar input:focus, .toolbar select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(18, 89, 195, .16); }
.field input[disabled], .field input[readonly] { background: var(--paper); color: var(--muted); }
.field input[type=file] { font: inherit; max-width: 100%; }
.hint { color: var(--muted); font-size: .88rem; margin-top: .3rem; }
.error { color: var(--bad); font-size: .9rem; font-weight: 600; margin-top: .3rem; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--bad) !important; }
.check label { display: flex; gap: .65rem; align-items: flex-start; font-weight: 500; cursor: pointer; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: .2rem; flex: none; accent-color: var(--blue); }
.declare { background: var(--paper); border-radius: var(--r-m); padding: 1.1rem; }
.declare label { font-weight: 400; font-size: .96rem; }
.upload-row { display: flex; gap: 1rem; align-items: center; }
.preview { border: 1px solid var(--line); border-radius: var(--r-s); object-fit: cover; background: var(--paper); flex: none; }
.preview-photo { width: 78px; height: 100px; }
.preview-signature { width: 120px; height: 56px; object-fit: contain; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; }
.form-actions p { margin: 0; color: var(--muted); max-width: 44ch; }
.card-form, .done-card, .result { border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(1.4rem, 3vw, 2.2rem); background: #fff; }
.card-form h1, .card-form h2 { font-size: 1.7rem; }
.card-form .fields { margin-bottom: 1.2rem; }
.form-foot { margin: 1.2rem 0 0; text-align: center; color: var(--muted); }
.auth { background: var(--paper); min-height: 70vh; }
.done-card h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.done-card h2 { font-size: 1.2rem; margin-top: 1.4rem; }
.app-no { display: inline-block; font: 800 clamp(1.5rem, 4vw, 2.1rem) var(--display); color: var(--ink); background: #fff3e6; border: 2px dashed var(--orange); border-radius: var(--r-m); padding: .3em .8em; letter-spacing: .02em; }
.plain-steps { padding-left: 1.3em; }
.plain-steps li { margin-bottom: .4em; }
.result { margin-top: 1.5rem; }
.result-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.result-top h2 { margin: 0; font-size: 1.4rem; }
.kv { display: grid; grid-template-columns: minmax(130px, 220px) 1fr; gap: .5rem 1.2rem; margin: 0 0 1.2rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

/* ===============================================================
   Logged-in area (student portal and admin panel)
   =============================================================== */
body.app { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; background: var(--paper); }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--ink); color: #c5d2ea; padding: 1.3rem 1rem; overflow-y: auto; }
.side .brand { margin: 0 .4rem 1.6rem; }
.side nav { display: grid; gap: .2rem; }
.side nav a { display: flex; align-items: center; justify-content: space-between; padding: .65em .85em; border-radius: var(--r-s); color: #d5dff1; text-decoration: none; font-weight: 500; }
.side nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.side nav a[aria-current] { background: var(--blue); color: #fff; }
.count { background: var(--orange); color: #21140a; border-radius: 99px; padding: 0 .55em; font-size: .8rem; font-weight: 700; }
.side-foot { margin-top: auto; display: grid; gap: .3rem; padding: 1rem .85rem 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.side-foot a { color: #c5d2ea; font-size: .94rem; }
.app-main { min-width: 0; }
.app-top { display: flex; align-items: center; gap: 1rem; padding: 1.1rem clamp(1rem, 3vw, 2.2rem); background: #fff; border-bottom: 1px solid var(--line); }
.app-top h1 { margin: 0; font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
.who { margin-left: auto; color: var(--muted); font-weight: 500; }
.side-toggle { margin-left: 0; }
.app-body { padding: clamp(1rem, 3vw, 2.2rem); max-width: 1280px; }
.greet { font-size: 1.15rem; color: var(--muted); }
.h-sub { font-size: 1.3rem; margin: 2rem 0 1rem; }
.h-sub:first-of-type { margin-top: .5rem; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: 1.5rem; margin-bottom: 1.3rem; }
.panel h2 { font-size: 1.2rem; }
.panel h3 { font-size: 1rem; margin: 1.6rem 0 .7rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.panel-head h2 { margin: 0; }
.panel-head time { color: var(--muted); font-size: .9rem; }
.panel.danger { border-color: #f2b8b3; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem; align-items: start; }
.two-col.wide-left { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.empty { text-align: center; padding: 3rem 1.5rem; background: #fff; border: 2px dashed var(--line); border-radius: var(--r-l); }
.empty p { color: var(--muted); max-width: 46ch; margin-inline: auto; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.3rem; }
.stat { padding: 1.2rem 1.3rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); text-decoration: none; color: var(--text); }
.stat:hover { border-color: var(--blue); }
.stat b { display: block; font: 800 2.1rem/1.1 var(--display); color: var(--ink); }
.stat:first-child { background: var(--ink); border-color: var(--ink); color: #c5d2ea; }
.stat:first-child b { color: #fff; }
.bars { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.bars li { display: grid; grid-template-columns: 70px 1fr 28px; align-items: center; gap: .7rem; font-size: .92rem; }
.bars i { height: 12px; background: var(--blue-soft); border-radius: 99px; position: relative; overflow: hidden; }
.bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--blue); border-radius: 99px; }
.bars b { text-align: right; }
.bars-slots li { grid-template-columns: 70px 1fr 28px; }

.tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.tabs a { padding: .5em 1em; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; }
.tabs a span { color: var(--muted); font-weight: 500; margin-left: .2em; }
.tabs a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabs a[aria-current] span { color: #c5d2ea; }
.toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1rem; }
.toolbar input[type=search] { flex: 1 1 240px; max-width: 380px; }
.toolbar select { width: auto; max-width: 260px; }
.push { margin-left: auto; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); }
.table { width: 100%; border-collapse: collapse; min-width: 640px; }
.table th { text-align: left; font-size: .86rem; color: var(--muted); font-weight: 600; padding: .8rem 1rem; border-bottom: 1px solid var(--line); background: var(--paper); white-space: nowrap; }
.table td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table small { color: var(--muted); }
.row-actions { display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; }
.row-actions form { display: inline; }
.table-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1rem; }
.pager { margin-left: auto; display: flex; gap: 1rem; }
.applicant { display: flex; gap: 1.3rem; align-items: flex-start; }
.applicant-photo { width: 110px; height: 142px; object-fit: cover; border-radius: var(--r-s); border: 1px solid var(--line); flex: none; }
.applicant h2 { font-size: 1.5rem; margin-bottom: .3em; }
.applicant p { margin-bottom: .5em; }
.applicant-sign { max-width: 220px; max-height: 90px; border: 1px solid var(--line); border-radius: var(--r-s); padding: .4rem; background: #fff; }
.btn-stack { display: grid; gap: .5rem; }
.inline-chip { display: inline-flex; align-items: center; gap: .3rem; margin: 0 .3rem .3rem 0; padding: .15em .3em .15em .7em; background: var(--blue-soft); border-radius: 99px; font-weight: 600; font-size: .9rem; }
.inline-chip button { border: 0; background: none; font-size: 1.1rem; line-height: 1; cursor: pointer; color: var(--bad); padding: .1em .35em; border-radius: 50%; }
.inline-chip button:hover { background: #fff; }
.inline-form { display: flex; gap: .4rem; align-items: center; }
.inline-form select { min-height: 40px; width: auto; padding-block: .3em; }
.lesson-admin { list-style: none; padding: 0; margin: 0; }
ol.lesson-admin { counter-reset: la; }
ol.lesson-admin li { counter-increment: la; }
ol.lesson-admin li > span:first-child::before { content: counter(la) ". "; color: var(--muted); }
.lesson-admin li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.lesson-admin li:last-child { border-bottom: 0; }
.message.is-unread { border-left: 4px solid var(--orange); }

/* ---------- Student learning ---------- */
.my-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }
.my-course { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: 1.5rem; }
.my-course h3 { font-size: 1.25rem; }
.progress { height: 10px; background: var(--blue-soft); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--orange); border-radius: 99px; }
.progress-text { color: var(--muted); font-size: .92rem; margin: .5rem 0 1rem; }
.learn { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1.3rem; align-items: start; }
.lesson-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: 1.2rem; position: sticky; top: 1rem; }
.lesson-nav ol { list-style: none; padding: 0; margin: 0; display: grid; gap: .2rem; }
.lesson-nav a { display: flex; gap: .7rem; align-items: flex-start; padding: .6em .6em; border-radius: var(--r-s); color: var(--text); text-decoration: none; font-weight: 500; line-height: 1.35; }
.lesson-nav a:hover { background: var(--paper); }
.lesson-nav a[aria-current] { background: var(--blue-soft); color: #0b3a82; font-weight: 700; }
.tick { flex: none; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 2px solid var(--line); font-size: .8rem; font-weight: 700; color: var(--muted); background: #fff; }
.is-done .tick { background: var(--ok); border-color: var(--ok); color: #fff; }
.lesson { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(1.3rem, 3vw, 2.4rem); }
.lesson > h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.lesson-body { font-size: 1.05rem; }
.video { position: relative; aspect-ratio: 16 / 9; margin-bottom: 1.5rem; border-radius: var(--r-m); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lesson-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.lesson-actions .btn-primary { margin-left: auto; }

/* ===============================================================
   Smaller screens
   =============================================================== */
@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.2rem; box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav > a { padding: .8em .4em; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav > a[aria-current] { box-shadow: inset 4px 0 0 var(--orange); padding-left: .9em; }
  .nav-auth { margin: 1rem 0 0; flex-direction: column; }
  .hero-grid, .about-grid, .detail-grid, .two-col, .two-col.wide-left, .learn { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 16ch; }
  .facts-row, .steps, .stat-row { grid-template-columns: repeat(2, 1fr); }
  .facts-row > div:nth-child(3) { border-left: 0; }
  .facts-row > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .info-card, .lesson-nav { position: static; }
  .course-row { grid-template-columns: minmax(0, 1fr); }
  .course-row-side { padding: 1.2rem 0 0; border-left: 0; border-top: 1px solid var(--line); }

  body.app { display: block; }
  .side { display: none; position: fixed; inset: 0 auto 0 0; width: min(280px, 85vw); z-index: 40; height: 100%; box-shadow: var(--shadow); }
  .side.is-open { display: flex; }
  .app-top { position: sticky; top: 0; z-index: 30; }
  .who { display: none; }
}
@media (min-width: 1001px) { .side-toggle { display: none; } }
@media (max-width: 640px) {
  .fields, .steps, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .facts-row { grid-template-columns: minmax(0, 1fr); }
  .facts-row > div { border-left: 0; border-top: 1px solid var(--line); }
  .facts-row > div:first-child { border-top: 0; }
  .notice { grid-template-columns: minmax(0, 1fr); gap: .3rem; }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .kv dd { margin-bottom: .7rem; }
  .brand small { display: none; }
  .form-part { padding: 1.1rem; }
  .applicant { flex-direction: column; }
  .hero-actions .btn, .visit-actions .btn { width: 100%; }
  .lesson-actions .btn { width: 100%; margin-left: 0; }
  .push { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media (max-width: 400px) { .slot span { font-size: .88rem; padding: .6em 0; } .slotboard { padding: 1.1rem; } }

/* ===============================================================
   Version 2: big header, home slides, Apply Now form, new blocks
   =============================================================== */
:root { --script: "Kaushan Script", "Brush Script MT", "Segoe Script", cursive; --wa: #128c4a; }
.wrap { width: min(1260px, 100% - 2.5rem); }
.narrow { max-width: 760px; }
.narrow-m { max-width: 860px; }
.narrow-s { max-width: 460px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.warn { color: var(--orange-deep); }
.lead-note { max-width: 80ch; }
.btn-sm { min-height: 40px; padding: .4em 1em; font-size: .96rem; }
.btn-xs { min-height: 34px; padding: .2em .75em; font-size: .88rem; border-width: 1.5px; border-radius: 8px; }
.btn-ok { background: var(--ok); color: #fff; }
.btn-ok:hover { background: #0b5f39; color: #fff; }
.btn-del { background: transparent; border-color: #f2b8b3; color: var(--bad); }
.btn-del:hover { background: var(--bad-soft); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #0d6f3a; color: #fff; }
.badge-new { background: #fff1dd; color: #8a4a00; }
.badge-completed { background: var(--blue-soft); color: #0b3a82; }
.avatar { border-radius: 50%; object-fit: cover; flex: none; }
.avatar-letter { display: inline-grid; place-items: center; background: var(--orange); color: #21140a; font: 800 1rem var(--display); }

/* ---------- Header: logo, name and slogan stand out ---------- */
.site-header { position: static; background: #fff; border-bottom: 4px solid var(--blue); }
.header-row { min-height: 0; padding: .9rem 0; gap: 1.5rem; }
.brand-big { gap: 1rem; min-width: 0; }
.brand-big img { width: 108px; height: auto; flex: none; }
.brand-big b { font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; color: var(--blue-deep); }
.brand em { display: block; font: 400 clamp(1.05rem, 1.7vw, 1.45rem)/1.25 var(--script); color: var(--orange-deep); margin-top: .2rem; }
.brand-light em { color: #ffc591; font-size: 1.1rem; }
.brand-light b { font-size: 1.25rem; }
.site-nav { gap: .1rem; flex: none; }
.site-nav > a:not(.btn) { padding: .5em .7em; font-weight: 600; }
.site-nav .btn { margin-left: .6rem; }

/* ---------- Home layout: 75% main, 25% side ---------- */
.home { display: grid; grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr); gap: 1.4rem 1.6rem; padding: 1.4rem 0 3rem; align-items: start; }
.home-main { min-width: 0; display: grid; gap: 1.8rem; }
.home-side { min-width: 0; display: grid; gap: 1.2rem; }
.home > .home-main:first-child, .home-side-apply { align-self: stretch; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.block-head h2 { font-size: 1.55rem; font-weight: 800; margin: 0; }
.block-head a { font-weight: 600; white-space: nowrap; }

/* ---------- Slides ---------- */
.slider { position: relative; height: 100%; min-height: 430px; border-radius: var(--r-l); overflow: hidden; background: var(--ink); isolation: isolate; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; z-index: 0; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.slide.is-leaving { opacity: 1; visibility: visible; z-index: 1; }
.slide-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 5rem clamp(1.2rem, 3vw, 2.4rem) 3.6rem; color: #fff; background: linear-gradient(to top, rgba(6, 18, 42, .92) 0%, rgba(6, 18, 42, .62) 55%, transparent 100%); }
.slide-text h2 { color: #fff; font-size: clamp(1.5rem, 3.3vw, 2.7rem); font-weight: 800; letter-spacing: -.025em; max-width: 20ch; margin-bottom: .3em; }
.slide-text p { font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 52ch; margin: 0; }
.fx-fade { animation: fx-fade 1s ease both; }
.fx-left { animation: fx-left .9s cubic-bezier(.2, .7, .2, 1) both; }
.fx-right { animation: fx-right .9s cubic-bezier(.2, .7, .2, 1) both; }
.fx-up { animation: fx-up .9s cubic-bezier(.2, .7, .2, 1) both; }
.fx-zoom { animation: fx-zoom 1s ease both; }
.fx-wipe { animation: fx-wipe 1s ease-in-out both; }
.fx-blinds { animation: fx-blinds 1s ease-in-out both; }
@keyframes fx-fade { from { opacity: 0; } }
@keyframes fx-left { from { transform: translateX(100%); } }
@keyframes fx-right { from { transform: translateX(-100%); } }
@keyframes fx-up { from { transform: translateY(100%); } }
@keyframes fx-zoom { from { opacity: 0; transform: scale(1.18); } }
@keyframes fx-wipe { from { clip-path: circle(0% at 50% 50%); } to { clip-path: circle(75% at 50% 50%); } }
@keyframes fx-blinds { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.slider-ui { position: absolute; z-index: 5; left: clamp(1.2rem, 3vw, 2.4rem); bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.slider-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .55); background: rgba(6, 18, 42, .45); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.slider-btn:hover { background: rgba(255, 255, 255, .22); }
.slider-pause { font-size: .6rem; margin-left: .3rem; }
.slider-dots { display: flex; gap: .45rem; padding: 0 .3rem; }
.slider-dots button { width: 11px; height: 11px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; }
.slider-dots button[aria-current] { background: var(--orange); border-color: var(--orange); width: 26px; border-radius: 99px; }

/* ---------- Apply Now form ---------- */
.qa-slot { height: 100%; }
.qa { position: relative; background: #fff; border: 2px solid var(--blue); border-radius: var(--r-l); overflow: hidden; }
.qa-head { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: .7rem 1.1rem; border: 0; background: var(--blue); color: #fff; font: 800 1.3rem var(--display); text-align: left; cursor: default; }
.qa-chevron { display: none; width: .7rem; height: .7rem; border-right: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(45deg); transition: transform .2s; margin-right: .3rem; }
.qa-close { position: absolute; top: .45rem; right: .6rem; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .2); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.qa-form { display: grid; gap: .25rem; padding: .9rem 1.1rem 1.1rem; }
.qa-form label { font-weight: 600; font-size: .9rem; color: var(--ink); margin-top: .35rem; }
.qa-form label small { font-weight: 400; color: var(--muted); margin-left: .3em; }
.qa-form input, .qa-form select { width: 100%; min-height: 40px; padding: .35em .65em; border: 2px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-size: .95rem; color: var(--text); }
.qa-form input:focus, .qa-form select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(18, 89, 195, .16); }
.qa-form .btn { margin-top: .8rem; }
.qa-form .alert { margin: 0 0 .3rem; padding: .5em .8em; font-size: .92rem; }
.qa-form .error { margin: 0; }
.qa.is-floating { position: fixed; right: 20px; bottom: 20px; width: 340px; max-height: calc(100vh - 40px); overflow-y: auto; z-index: 60; box-shadow: 0 24px 60px -12px rgba(6, 18, 42, .55); }
.apply-fab { position: fixed; right: 18px; bottom: 18px; z-index: 55; display: none; align-items: center; min-height: 52px; padding: 0 1.4rem; border-radius: 99px; background: var(--orange); color: #21140a; font: 800 1.05rem var(--display); text-decoration: none; box-shadow: 0 12px 30px -8px rgba(6, 18, 42, .55); }
.apply-fab:hover { background: #ff8d38; color: #21140a; }
.apply-fab.is-shown { display: inline-flex; }

/* ---------- Compact course boxes ---------- */
.mini-courses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.mini-course { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; color: var(--text); text-decoration: none; }
.mini-course:hover { border-color: var(--blue); color: var(--text); background: var(--paper); }
.mini-course .course-meta { margin-bottom: .2rem; font-size: .82rem; }
.mini-course b { font: 700 1.08rem/1.2 var(--display); color: var(--ink); }
.mini-sum { color: var(--muted); font-size: .9rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-fee { margin-top: auto; padding-top: .3rem; font-weight: 700; color: var(--blue-deep); font-size: .92rem; }

/* ---------- Side boxes ---------- */
.side-box { padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--paper); font-size: .95rem; }
.side-box h2 { font-size: 1.25rem; font-weight: 800; }
.side-box p { margin-bottom: .75em; }
.side-box-ink { background: var(--ink); border-color: var(--ink); color: #c9d6ee; }
.side-box-ink h2 { color: #fff; }
.process { list-style: none; counter-reset: p; padding: 0; margin: 0; }
.process li { counter-increment: p; position: relative; padding: 0 0 1.1rem 2.9rem; }
.process li::before { content: counter(p); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--orange); color: #21140a; font: 800 1rem var(--display); }
.process li:not(:last-child)::after { content: ""; position: absolute; left: calc(1rem - 1px); top: 2.1rem; bottom: .1rem; width: 2px; background: rgba(255, 255, 255, .25); }
.process li:last-child { padding-bottom: 0; }
.process b { display: block; color: #fff; font-size: 1.02rem; line-height: 2rem; }
.process span { display: block; margin-top: -.3rem; }

/* ---------- Notices ---------- */
.notice { grid-template-columns: auto 1fr; align-items: start; }
.notice > div { min-width: 0; grid-column: 2; }
.notice-thumb { grid-column: 1; }
.notice-thumb img { width: 110px; height: 82px; object-fit: cover; border-radius: var(--r-s); display: block; }
.notice:not(:has(.notice-thumb)) > div { grid-column: 1 / -1; }
.notice time { display: block; padding: 0; font-size: .84rem; }
.notice h3 a { color: var(--ink); text-decoration: none; }
.notice h3 a:hover { color: var(--blue-deep); text-decoration: underline; }
.notice-more { display: inline-block; margin-top: .3rem; font-weight: 600; font-size: .94rem; }
.notice-full h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; }
.notice-full img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--r-l); margin-bottom: 1.5rem; }
.notice-full .prose { margin-bottom: 1.5rem; font-size: 1.06rem; }
.pagination { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: 2rem; }
.pagination a { min-width: 42px; padding: .45em .8em; text-align: center; border: 1px solid var(--line); border-radius: var(--r-s); text-decoration: none; font-weight: 600; color: var(--text); }
.pagination a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Fees, map ---------- */
.fee-lines { display: grid; gap: .3rem; margin-bottom: .6rem; }
.fee-lines div { display: flex; justify-content: space-between; gap: 1rem; font-weight: 400; }
.fee-lines span { color: var(--muted); }
.fee-lines s { color: var(--muted); font-weight: 400; }
.map-box { margin: 0 0 1rem; }
.map-box iframe { width: 100%; height: 220px; border: 1px solid var(--line); border-radius: var(--r-m); display: block; margin-bottom: .6rem; }

/* ---------- Footer ---------- */
.site-footer { padding-top: 3rem; }
.footer-grid { grid-template-columns: 1.3fr 1.2fr 1.2fr .8fr; }
.site-footer b { color: #fff; }
.footer-base { margin-top: 2.5rem; padding: 0; background: #071428; border-top: 0; }
.footer-base-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; font-size: .9rem; }
.btn-footer { min-height: 38px; padding: .3em 1.2em; background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-footer:hover { background: #fff; color: var(--ink) !important; }

/* ---------- Dashboard additions ---------- */
.who { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--muted); }
.side-group summary { display: flex; align-items: center; justify-content: space-between; padding: .65em .85em; border-radius: var(--r-s); color: #d5dff1; font-weight: 500; cursor: pointer; list-style: none; }
.side-group summary::-webkit-details-marker { display: none; }
.side-group summary::after { content: ""; width: .5rem; height: .5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); margin-left: .6rem; transition: transform .15s; }
.side-group[open] summary::after { transform: rotate(45deg); }
.side-group summary:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.side-group summary .count { margin-left: auto; }
.side-group a { margin-left: .9rem; padding-block: .45em !important; font-size: .95rem; border-left: 2px solid rgba(255, 255, 255, .16); border-radius: 0 var(--r-s) var(--r-s) 0 !important; }
.table-wrap.flat { border: 0; border-radius: 0; }
.table-apps td { font-size: .95rem; }
.wa-cell { white-space: nowrap; }
.wa-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-left: .3rem; vertical-align: middle; border: 0; border-radius: 50%; background: var(--wa); color: #fff; cursor: pointer; }
.wa-btn:hover { background: #0d6f3a; }
.wa-dialog { width: min(560px, 100% - 2rem); border: 0; border-radius: var(--r-l); padding: 1.6rem; box-shadow: 0 30px 80px -20px rgba(6, 18, 42, .6); }
.wa-dialog::backdrop { background: rgba(6, 18, 42, .55); }
.wa-dialog h2 { font-size: 1.3rem; }
.wa-dialog textarea { width: 100%; padding: .7em .9em; border: 2px solid var(--line); border-radius: 10px; font: inherit; line-height: 1.5; margin-bottom: 1rem; resize: vertical; }
.wa-dialog .hint { display: block; margin-top: .8rem; }
.enrol-line { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; padding: .35rem 0; }
.enrol-line label { font-size: .9rem; color: var(--muted); }
.enrol-line input[type=number] { width: 64px; min-height: 34px; padding: .1em .4em; border: 2px solid var(--line); border-radius: 8px; font: inherit; }
.fields-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.file-now { display: flex; align-items: center; gap: .8rem; margin: 0 0 .5rem; font-size: .94rem; }
.file-now img { border-radius: var(--r-s); border: 1px solid var(--line); }
.inline-check { display: inline-flex !important; align-items: center; gap: .35rem; font-weight: 500 !important; margin: 0 !important; white-space: nowrap; }
.answer-row > div { display: flex; align-items: center; gap: .8rem; }
.quiz-admin { padding-left: 1.3em; }
.quiz-admin > li { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.quiz-admin ul { list-style: none; padding: 0; margin: .3rem 0 .5rem; color: var(--muted); font-size: .94rem; }
.quiz-admin .is-correct { color: var(--ok); font-weight: 700; }
.slide-admin { list-style: none; padding: 0; margin: 0; }
.slide-admin li { display: flex; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.slide-admin li:last-child { border-bottom: 0; }
.slide-admin img { width: 150px; height: 84px; object-fit: cover; border-radius: var(--r-s); flex: none; }
.slide-admin .row-actions { display: flex; margin-top: .4rem; }
.admin-row { display: flex; align-items: center; gap: .8rem; }
.avatar-row { display: flex; align-items: center; gap: 1.2rem; }
.avatar-row .field { flex: 1; }

/* ---------- Admission steps (wizard) ---------- */
.wizard { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 1.2rem; }
.wizard li, .wizard li a { display: inline-flex; align-items: center; gap: .5rem; }
.wizard li { padding: .45em .95em .45em .5em; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: .94rem; }
.wizard li a { color: inherit; text-decoration: none; }
.wizard li span { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--line); color: var(--ink); font-size: .85rem; }
.wizard .is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.wizard .is-current span { background: var(--orange); color: #21140a; }
.wizard .is-done { color: var(--ok); border-color: #a9dcc0; }
.wizard .is-done span { background: var(--ok); color: #fff; }
.wizard-form { max-width: 880px; }
.wizard-form > h2 { font-size: 1.5rem; }
.wizard-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.narrow-fields { max-width: 420px; grid-template-columns: minmax(0, 1fr); }
.plans { border: 0; padding: 0; margin: 1rem 0 1.5rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.plans legend { font-weight: 700; margin-bottom: .6rem; padding: 0; }
.plan { position: relative; display: block; cursor: pointer; }
.plan input { position: absolute; top: 1.1rem; left: 1.1rem; width: 1.2rem; height: 1.2rem; accent-color: var(--blue); }
.plan > span { display: block; height: 100%; padding: 1rem 1.1rem 1rem 3rem; border: 2px solid var(--line); border-radius: var(--r-m); }
.plan input:checked + span { border-color: var(--blue); background: var(--blue-soft); }
.plan b { display: block; font: 700 1.1rem var(--display); color: var(--ink); }
.plan-price { display: block; font: 800 1.6rem var(--display); color: var(--blue-deep); margin: .2rem 0; }
.plan-price s { font-size: 1.05rem; font-weight: 500; color: var(--muted); margin-right: .3rem; }
.plan-price small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.plan small { display: block; color: var(--muted); }
.plans .error { grid-column: 1 / -1; }
.instructions { padding-left: 1.3em; max-width: 72ch; }
.instructions li { margin-bottom: .45em; }
.qr-box { display: inline-block; margin-top: .8rem; padding: 1rem; border: 2px dashed var(--line); border-radius: var(--r-m); background: #fff; }
.qr-box img { display: block; max-width: 100%; }
.qr-box p { margin: 0; max-width: 40ch; }
.preview-receipt { width: 78px; height: 100px; }

/* ---------- Lessons: locks and quiz ---------- */
.lesson-nav a > span:nth-child(2), .locked > span:nth-child(2) { display: block; }
.lesson-nav small { display: block; font-weight: 400; font-size: .82rem; color: var(--muted); }
.locked { display: flex; gap: .7rem; align-items: flex-start; padding: .6em; color: var(--muted); line-height: 1.35; }
.is-locked .tick { border-style: dashed; font-size: .7rem; }
.quiz { margin-top: 2rem; padding: 1.4rem; border: 2px solid var(--blue); border-radius: var(--r-l); background: var(--paper); }
.quiz h3 { font-size: 1.3rem; }
.question { border: 0; padding: 0; margin: 0 0 1.3rem; }
.question legend { font-weight: 700; color: var(--ink); margin-bottom: .5rem; padding: 0; }
.question label { display: flex; gap: .6rem; align-items: flex-start; padding: .55em .8em; margin-bottom: .35rem; background: #fff; border: 2px solid var(--line); border-radius: var(--r-s); cursor: pointer; }
.question label:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.question input { margin-top: .3rem; accent-color: var(--blue); }
.question.is-wrong legend { color: var(--bad); }
.question.is-wrong legend::after { content: " (not right, try again)"; font-weight: 500; }

/* ---------- Smaller screens ---------- */
@media (max-width: 1150px) {
  .header-row { flex-wrap: wrap; }
  .site-nav { margin-left: auto; }
  .brand-big img { width: 76px; }
}
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header { position: relative; }
  .site-nav .btn { margin: 1rem 0 0; }
  .mini-courses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .home { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; padding-top: 1rem; }
  .slider { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .slide-text { padding: 3rem 1.1rem 3.3rem; }
  .qa-slot { height: auto; scroll-margin-top: 10px; }
  .qa-head { cursor: pointer; padding-block: .85rem; }
  .qa-chevron { display: block; }
  .qa.is-open .qa-chevron { transform: rotate(-135deg); }
  .qa-form { display: none; }
  .qa.is-open .qa-form { display: grid; }
  .plans, .fields-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .brand-big img { width: 58px; }
  .brand-big b { font-size: 1.25rem; }
  .brand em { font-size: .98rem; display: block !important; }
  .mini-courses { grid-template-columns: minmax(0, 1fr); }
  .notice-thumb img { width: 84px; height: 64px; }
  .footer-base-row { justify-content: center; text-align: center; }
  .apply-fab { right: 12px; bottom: 12px; }
  .avatar-row { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .slide { animation: none !important; } }
.brand img { flex: none; }
.mini-course .course-meta span:last-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1000px) {
  .header-row { flex-wrap: nowrap; gap: .8rem; }
  .brand-big { flex: 1; }
  .nav-toggle { flex: none; margin-left: 0; }
}
@media (max-width: 640px) {
  .brand-big { gap: .6rem; }
  .brand-big b { font-size: 1.12rem; }
  .brand em { font-size: .9rem; margin-top: .1rem; }
  .slide-text p { font-size: .92rem; }
  .slide-text h2 { font-size: 1.35rem; }
}

/* ---------- Version 3: clearer Login buttons, fee details ---------- */
.site-nav .btn-primary, .site-nav .btn-primary:hover { color: #fff; }
.site-nav .btn-login { background: var(--ink); border-color: var(--ink); color: #fff; min-height: 44px; padding: .45em 1.5em; font-weight: 700; letter-spacing: .01em; box-shadow: 0 2px 0 rgba(12, 29, 58, .25); }
.site-nav .btn-login:hover { background: var(--orange); border-color: var(--orange); color: #1a1005; }
.btn-footer { background: #fff; border-color: #fff; color: var(--ink) !important; font-weight: 700; min-height: 42px; padding: .35em 1.6em; }
.btn-footer:hover { background: var(--orange); border-color: var(--orange); color: #1a1005 !important; }
.fee-note { display: block; margin-top: .4rem; font-size: .88rem; font-weight: 400; color: var(--muted); line-height: 1.45; }
.free-strip { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; padding: 0; margin: 0 0 1.6rem; }
.free-strip li { position: relative; padding: .8rem 1rem .8rem 2.9rem; background: var(--ok-soft); border: 1px solid #a9dcc0; border-radius: var(--r-m); color: #084d2e; font-weight: 600; }
.free-strip li::before { content: ""; position: absolute; left: 1rem; top: 50%; width: 1rem; height: .5rem; border-left: 3px solid var(--ok); border-bottom: 3px solid var(--ok); transform: translateY(-70%) rotate(-45deg); }
.plans-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .free-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .plans-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .free-strip { grid-template-columns: minmax(0, 1fr); } }
