/* Smart Vision Academy website
   Brand: deep navy, teal, warm orange. Fonts: Plus Jakarta Sans for Latin, Bornomala for Bangla. */

:root {
  --navy: #0f2a44;
  --navy-2: #12355a;
  --navy-3: #0a1e33;
  --ink: #0f1d2c;
  --text: #33465a;
  --muted: #6b7d90;
  --line: #e8e1d3;
  --soft: #f4efe5;
  --soft-2: #efe8da;
  --white: #fff;
  --teal: #0f766e;
  --teal-2: #14b8a6;
  --teal-soft: #e6f6f3;
  --orange: #f97316;
  --orange-2: #ea580c;
  --orange-soft: #fff1e6;
  --blue: #2563eb;
  --blue-soft: #e9f0ff;
  --green: #16a34a;
  --red: #dc2626;
  --amber: #d97706;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(15, 42, 68, .06), 0 1px 1px rgba(15, 42, 68, .04);
  --shadow: 0 10px 30px -12px rgba(15, 42, 68, .22);
  --shadow-lg: 0 30px 60px -24px rgba(15, 42, 68, .35);
  --font: "Bornomala", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bn: "Bornomala", "Plus Jakarta Sans", sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: #fbf8f2; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--navy); }
h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button { font: inherit; }
:focus-visible { outline: 3px solid rgba(20, 184, 166, .55); outline-offset: 2px; border-radius: 6px; }
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -.18em; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 999; }
.skip-link:focus { left: 1rem; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 860px; }
.bn, :lang(bn) { font-family: var(--bn); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.hide { display: none !important; }
.accent-word { font-style: normal; position: relative; white-space: nowrap; z-index: 0; }
.accent-word::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .02em; height: .48em; z-index: -1; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 30' preserveAspectRatio='none'%3E%3Cpath d='M3 18 C 70 10, 150 8, 297 15' fill='none' stroke='%23fcd34d' stroke-width='16' stroke-linecap='round' opacity='.85'/%3E%3C/svg%3E") no-repeat center / 100% 100%; }
.page-hero .accent-word::after, .section-dark .accent-word::after { bottom: -.1em; height: .4em; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 30' preserveAspectRatio='none'%3E%3Cpath d='M4 20 C 60 8, 130 6, 296 14 M 10 26 C 90 16, 180 15, 290 22' fill='none' stroke='%23f2711c' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E"); }
.page-hero h1, .section-head h2, .section-dark h1, .section-dark h2 { position: relative; z-index: 0; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }

/* ---------------- Buttons ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .78rem 1.35rem; border-radius: 14px; border: 1.5px solid transparent; font-weight: 700; font-size: .95rem; line-height: 1.2; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease; white-space: nowrap; text-decoration: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: .55rem .95rem; font-size: .86rem; border-radius: 12px; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.02rem; border-radius: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 4px 0 #0a5550; }
.btn-primary:hover { background: #0b5f58; color: #fff; }
.btn-accent { background: #f2711c; color: #fff; box-shadow: 0 5px 0 #b9520f; }
.btn-accent:hover { color: #fff; box-shadow: 0 7px 0 #b9520f; }
.footer-cta .btn-accent { background: #1b2533; box-shadow: none; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { color: var(--teal); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-ghost { background: rgba(15, 118, 110, .08); color: var(--teal); }
.btn-ghost:hover { background: rgba(15, 118, 110, .14); color: var(--teal); }
.btn-glass { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------------- Tags and badges (rectangular, no glowing dots) ---------------- */
.tag { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 700; padding: .28rem .6rem; border-radius: 8px; background: var(--soft-2); color: var(--navy); letter-spacing: .01em; }
.tag-teal { background: var(--teal-soft); color: var(--teal); }
.tag-orange { background: var(--orange-soft); color: var(--orange-2); }
.tag-blue { background: var(--blue-soft); color: var(--blue); }
.tag-red { background: #fde8e8; color: var(--red); }
.tag-green { background: #e5f7ec; color: var(--green); }
.tag-dark { background: var(--navy); color: #fff; }
.kicker { display: inline-block; font-family: "Caveat", "Bornomala", cursive; font-size: 1.5rem; font-weight: 700; line-height: 1; color: var(--orange-2); margin-bottom: .55rem; transform: rotate(-2deg); }
.kicker-light { color: #fcd34d; }

/* ---------------- Top bar and header ---------------- */
.topbar { background: var(--navy-3); color: rgba(255, 255, 255, .78); font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.topbar a { color: rgba(255, 255, 255, .8); display: inline-flex; align-items: center; gap: .35rem; }
.topbar a:hover { color: #fff; }
.topbar-contact, .topbar-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 24px -18px rgba(15, 42, 68, .5); }
.header-inner { display: flex; align-items: center; gap: 1.2rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand-logo { height: 44px; width: auto; }
.brand-mark { width: 42px; height: 42px; border-radius: 13px; background: var(--navy); display: inline-flex; align-items: center; justify-content: center; position: relative; box-shadow: 0 8px 18px -10px rgba(15, 42, 68, .9); }
.brand-mark span { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--teal-2); position: relative; }
.brand-mark span::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--orange); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 1.12rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.brand-text small { font-size: .7rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--teal); }
.brand-light .brand-text strong { color: #fff; }
.main-nav { display: flex; align-items: center; gap: .15rem; margin-left: auto; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .8rem; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: .93rem; background: none; border: 0; cursor: pointer; }
.nav-link:hover, .nav-link.active { color: var(--teal); background: var(--teal-soft); }
.nav-link .caret { width: .9em; height: .9em; transition: transform .2s; }
.nav-item:hover .caret, .nav-item:focus-within .caret { transform: rotate(180deg); }
.mega, .drop { position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px); background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; z-index: 70; }
.mega::before, .drop::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-item:hover .mega, .nav-item:focus-within .mega, .nav-item:hover .drop, .nav-item:focus-within .drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega { width: min(860px, 92vw); padding: 1.4rem; }
.mega-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.mega-head { display: flex; align-items: center; gap: .5rem; font-weight: 800; color: var(--ink); margin-bottom: .55rem; font-size: .95rem; }
.mega-head .icon { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: color-mix(in srgb, var(--c) 14%, white); color: var(--c); }
.mega-link { display: block; padding: .32rem 0; color: var(--text); font-size: .9rem; }
.mega-link:hover { color: var(--teal); }
.mega-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.drop { min-width: 260px; padding: .5rem; left: auto; right: 0; transform: translateY(6px); }
.nav-item:hover .drop, .nav-item:focus-within .drop { transform: translateY(0); }
.drop a { display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; border-radius: 12px; color: var(--ink); font-weight: 600; font-size: .92rem; }
.drop a:hover { background: var(--soft); color: var(--teal); }
.drop .icon { color: var(--teal); }
.header-actions { display: flex; align-items: center; gap: .4rem; margin-left: .6rem; }
.icon-btn { position: relative; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--teal); color: var(--teal); }
.cart-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--orange); color: #fff; font-size: .7rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.menu-btn { display: none; }
[hidden] { display: none !important; }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(10, 30, 51, .55); opacity: 0; transition: opacity .25s; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.drawer-nav { flex: 1; overflow-y: auto; padding: .6rem; }
.drawer-nav a, .drawer-nav summary { display: flex; align-items: center; gap: .7rem; padding: .78rem .8rem; border-radius: 12px; color: var(--ink); font-weight: 600; cursor: pointer; list-style: none; }
.drawer-nav summary::-webkit-details-marker { display: none; }
.drawer-nav summary .caret { margin-left: auto; }
.drawer-nav details[open] summary .caret { transform: rotate(180deg); }
.drawer-nav a:hover, .drawer-nav summary:hover { background: var(--soft); }
.drawer-nav .icon { color: var(--teal); }
.drawer-nav .sub { padding-left: 2.6rem; font-weight: 500; font-size: .93rem; }
.drawer-foot { padding: 1rem 1.2rem 1.4rem; display: grid; gap: .6rem; border-top: 1px solid var(--line); }
body.no-scroll { overflow: hidden; }

/* Flash and toast */
.flash { display: flex; align-items: center; gap: .6rem; margin: 1rem 0 0; padding: .85rem 1.1rem; border-radius: 14px; font-weight: 600; }
.flash-ok { background: var(--teal-soft); color: var(--teal); }
.flash-error { background: #fdecec; color: var(--red); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); opacity: 0; visibility: hidden; pointer-events: none; background: var(--navy); color: #fff; padding: .85rem 1.2rem; border-radius: 14px; font-weight: 600; box-shadow: var(--shadow-lg); z-index: 200; transition: transform .3s; max-width: 92vw; display: flex; gap: .6rem; align-items: center; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-cta { display: none; }
.course-hero { padding-bottom: 180px; }
.toast a { color: #5eead4; }

/* ---------------- Sections ---------------- */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-soft { background: #f6f1e7; }
.section-dark { background: #0d1b2e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E"); color: rgba(255, 255, 255, .8); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.6rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 720px; }
.section-head p { margin: .6rem 0 0; max-width: 620px; color: var(--muted); }
.section-dark .section-head p { color: rgba(255, 255, 255, .7); }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------------- Hero ---------------- */
.hero { position: relative; overflow: hidden; background: var(--navy-3); color: rgba(255, 255, 255, .8); padding: 72px 0 110px; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E"); z-index: -1; }
.hero-glow { display: none; }
.hero-glow.g1 { width: 520px; height: 520px; background: #0d9488; top: -180px; right: -120px; }
.hero-glow.g2 { width: 420px; height: 420px; background: #c2410c; bottom: -220px; left: -120px; opacity: .45; }
.hero-glow.g3 { width: 300px; height: 300px; background: #1d4ed8; top: 30%; left: 40%; opacity: .35; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.9rem); line-height: 1.08; margin-bottom: 1.2rem; }
.hero-text { font-size: 1.12rem; max-width: 560px; color: rgba(255, 255, 255, .76); margin-bottom: 1.8rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-search { margin-top: 2rem; display: flex; gap: .5rem; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; padding: .45rem; max-width: 560px; backdrop-filter: blur(8px); }
.hero-search input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; padding: .65rem .8rem; font: inherit; font-size: .98rem; }
.hero-search input::placeholder { color: rgba(255, 255, 255, .55); }
.hero-search input:focus { outline: none; }
.hero-proof { display: flex; gap: 2rem; margin-top: 2.2rem; flex-wrap: wrap; }
.hero-proof div strong { display: block; font-size: 1.7rem; color: #fff; font-weight: 800; letter-spacing: -.02em; }
.hero-proof div span { font-size: .86rem; color: rgba(255, 255, 255, .6); }
.hero-visual { position: relative; min-height: 520px; }
.hero-photo { position: absolute; inset: 0 30px 0 50px; border-radius: 32px; overflow: hidden; background: linear-gradient(160deg, #134e4a, #0f2a44); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); border: 1px solid rgba(255, 255, 255, .12); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo .hero-art { position: absolute; inset: 0; display: grid; place-items: center; }
.hero-art-ring { width: 72%; aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(94, 234, 212, .35); display: grid; place-items: center; animation: spin 60s linear infinite; }
.hero-art-ring::after { content: ""; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(20, 184, 166, .7), rgba(15, 42, 68, .2) 70%); box-shadow: inset 0 0 60px rgba(255, 255, 255, .08); }
.hero-art-icon { position: absolute; width: 120px; height: 120px; color: rgba(255, 255, 255, .92); }
@keyframes spin { to { transform: rotate(360deg); } }
.float-card { position: absolute; background: rgba(255, 255, 255, .96); color: var(--ink); border-radius: 18px; padding: .85rem 1rem; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .55); display: flex; gap: .75rem; align-items: center; max-width: 270px; }
.float-card .fc-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.float-card strong { display: block; font-size: .95rem; line-height: 1.25; }
.float-card span { font-size: .78rem; color: var(--muted); }
.fc-1 { top: 36px; left: 0; }
.fc-1 .fc-icon { background: var(--teal-soft); color: var(--teal); }
.fc-2 { bottom: 110px; right: 0; }
.fc-2 .fc-icon { background: var(--orange-soft); color: var(--orange-2); }
.fc-3 { bottom: 18px; left: 22px; }
.fc-3 .fc-icon { background: var(--blue-soft); color: var(--blue); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; display: inline-block; margin-right: .3rem; }
.avatar-stack { display: flex; }
.avatar-stack span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px; display: grid; place-items: center; font-size: .66rem; font-weight: 800; color: #fff; }
.avatar-stack span:first-child { margin-left: 0; }

/* Notice ticker */
.ticker { position: relative; margin-top: -34px; z-index: 5; }
.ticker-inner { display: flex; align-items: center; gap: 1rem; background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: .5rem .5rem .5rem .6rem; border: 1px solid var(--line); overflow: hidden; }
.ticker-label { flex-shrink: 0; display: inline-flex; align-items: center; gap: .45rem; background: var(--navy); color: #fff; font-weight: 800; font-size: .82rem; padding: .55rem .85rem; border-radius: 12px; }
.ticker-track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-move { display: inline-flex; gap: 2.4rem; padding-right: 2.4rem; white-space: nowrap; animation: ticker 45s linear infinite; }
.ticker:hover .ticker-move { animation-play-state: paused; }
.ticker-move a { color: var(--ink); font-weight: 600; font-size: .92rem; display: inline-flex; gap: .5rem; align-items: center; }
.ticker-move a:hover { color: var(--teal); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------------- Category tiles ---------------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.cat-card { position: relative; border-radius: 24px; padding: 1.6rem; background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; display: flex; flex-direction: column; }
.cat-card::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; right: -60px; top: -70px; background: color-mix(in srgb, var(--c) 12%, transparent); transition: transform .4s; }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 40%, white); }
.cat-card:hover::after { transform: scale(1.3); }
.cat-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--c); color: #fff; margin-bottom: 1.1rem; box-shadow: 0 12px 24px -12px var(--c); position: relative; z-index: 1; }
.cat-icon .icon { width: 26px; height: 26px; }
.cat-card h3 { margin-bottom: .35rem; position: relative; z-index: 1; }
.cat-card h3 a { color: var(--ink); }
.cat-card p { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; position: relative; z-index: 1; }
.cat-links { display: flex; flex-direction: column; gap: .15rem; margin-top: auto; position: relative; z-index: 1; }
.cat-links a { display: flex; align-items: center; justify-content: space-between; padding: .5rem 0; border-top: 1px dashed var(--line); color: var(--ink); font-weight: 600; font-size: .9rem; }
.cat-links a:hover { color: var(--c); }
.cat-links .icon { width: .9em; color: var(--muted); }

/* ---------------- Course card ---------------- */
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.course-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.course-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy); }
.course-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.course-card:hover .course-media img { transform: scale(1.05); }
.course-media .tags { position: absolute; top: 12px; left: 12px; display: flex; gap: .4rem; flex-wrap: wrap; }
.course-art { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.1rem 1.2rem; color: #fff; background: color-mix(in srgb, var(--c, #14b8a6) 30%, #12233a); }
.course-art::before { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E"); }
.course-art .art-icon { position: absolute; right: 16px; top: 16px; width: 64px; height: 64px; opacity: .9; }
.course-art strong { position: relative; font-size: 1.15rem; line-height: 1.25; font-weight: 800; max-width: 80%; }
.course-art small { position: relative; opacity: .75; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.course-body { padding: 1.2rem 1.25rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.course-cat { font-size: .78rem; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .35rem; }
.course-body h3 { font-size: 1.08rem; margin-bottom: .55rem; }
.course-body h3 a { color: var(--ink); }
.course-body h3 a:hover { color: var(--teal); }
.course-meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .83rem; color: var(--muted); margin-bottom: 1rem; }
.course-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.course-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }
.price { display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap; }
.price strong { font-size: 1.3rem; color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
.price del { color: var(--muted); font-size: .88rem; }
.price .free { color: var(--green); }

/* ---------------- Tests band ---------------- */
.test-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.test-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; padding: 1.4rem; color: rgba(255, 255, 255, .78); transition: transform .25s, background .25s; display: flex; flex-direction: column; }
.test-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, .1); }
.test-card h3 { font-size: 1.08rem; margin: .7rem 0 .4rem; }
.test-card h3 a { color: #fff; }
.test-stats { display: flex; gap: 1rem; font-size: .84rem; margin: .4rem 0 1.2rem; flex-wrap: wrap; }
.test-stats span { display: inline-flex; gap: .3rem; align-items: center; }
.test-card .btn { margin-top: auto; align-self: flex-start; }
.test-card-light { background: #fff; border-color: var(--line); color: var(--text); }
.test-card-light:hover { background: #fff; box-shadow: var(--shadow); }
.test-card-light h3 a { color: var(--ink); }

/* ---------------- Steps ---------------- */
.steps { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.2rem 1rem; text-align: center; }
.step-num { width: 44px; height: 44px; border-radius: 14px; margin: 0 auto .8rem; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--c, var(--teal)); box-shadow: 0 10px 20px -10px var(--c, var(--teal)); }
.step strong { display: block; color: var(--ink); font-size: .92rem; line-height: 1.3; }
.step small { display: block; color: var(--muted); font-size: .78rem; margin-top: .3rem; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 42px; right: -12px; width: 12px; height: 2px; background: var(--line); }
.note-box { margin-top: 1.6rem; display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: 16px; background: var(--orange-soft); color: #9a3412; font-weight: 600; font-size: .93rem; }

/* ---------------- Book card and generated cover ---------------- */
.book-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.book-card { display: flex; flex-direction: column; }
.book-cover { position: relative; aspect-ratio: 3 / 4.1; border-radius: 6px 16px 16px 6px; overflow: hidden; box-shadow: 0 20px 34px -18px rgba(15, 42, 68, .6), inset 6px 0 0 rgba(0, 0, 0, .18); transition: transform .3s, box-shadow .3s; background: var(--navy); }
.book-card:hover .book-cover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 30px 44px -18px rgba(15, 42, 68, .7); }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-art { position: absolute; inset: 0; padding: 1rem .95rem .9rem 1.2rem; display: flex; flex-direction: column; color: #fff; background: linear-gradient(160deg, hsl(var(--h) 62% 30%), hsl(calc(var(--h) + 30) 60% 16%)); }
.cover-art::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: rgba(0, 0, 0, .2); }
.cover-art::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 150px; height: 150px; border-radius: 50%; border: 14px solid rgba(255, 255, 255, .08); }
.cover-art .ca-top { max-width: 62%; line-height: 1.4; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; opacity: .8; }
.cover-art .ca-title { margin-top: auto; font-size: 1rem; font-weight: 800; line-height: 1.22; position: relative; z-index: 1; }
.cover-art .ca-sub { font-size: .7rem; opacity: .75; margin-top: .35rem; position: relative; z-index: 1; }
.cover-art .ca-bar { height: 4px; width: 46px; border-radius: 4px; background: var(--orange); margin: .7rem 0 .2rem; position: relative; z-index: 1; }
.book-flag { position: absolute; top: 10px; right: 10px; z-index: 2; }
.book-info { padding-top: .9rem; display: flex; flex-direction: column; flex: 1; }
.book-info h3 { font-size: .98rem; margin-bottom: .2rem; line-height: 1.35; }
.book-info h3 a { color: var(--ink); }
.book-info h3 a:hover { color: var(--teal); }
.book-info .by { font-size: .82rem; color: var(--muted); margin-bottom: .55rem; }
.book-buy { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; }
.book-buy .price strong { font-size: 1.08rem; }
.add-btn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--navy); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .2s; flex-shrink: 0; }
.add-btn:hover { background: var(--teal); transform: translateY(-2px); }
.add-btn[disabled] { background: var(--line); color: var(--muted); cursor: not-allowed; }

/* ---------------- QR explainer ---------------- */
.qr-band { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.phone-mock { position: relative; width: 270px; height: 540px; margin: 0 auto; border-radius: 44px; background: #0b1726; padding: 14px; box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, .08); }
.phone-screen { height: 100%; border-radius: 32px; background: linear-gradient(180deg, #f4f7fb, #fff); overflow: hidden; display: flex; flex-direction: column; }
.phone-top { background: var(--navy); color: #fff; padding: 1.4rem 1rem 1rem; font-size: .8rem; }
.phone-top strong { display: block; font-size: 1rem; }
.phone-video { margin: .9rem; aspect-ratio: 16/10; border-radius: 16px; background: var(--navy-2); display: grid; place-items: center; color: #fff; }
.phone-video .icon { width: 46px; height: 46px; }
.phone-line { height: 10px; border-radius: 6px; background: var(--soft-2); margin: .35rem .9rem; }
.phone-line.w60 { width: 60%; }
.phone-file { margin: .7rem .9rem; display: flex; gap: .6rem; align-items: center; padding: .65rem; border: 1px solid var(--line); border-radius: 12px; font-size: .78rem; color: var(--ink); font-weight: 600; background: #fff; }
.phone-file .icon { color: var(--orange-2); }
.qr-float { position: absolute; left: -70px; top: 60px; width: 132px; padding: 12px; border-radius: 20px; background: #fff; box-shadow: var(--shadow-lg); }
.qr-float svg { width: 100%; height: auto; display: block; }
.qr-steps { display: grid; gap: 1rem; margin-top: 1.8rem; }
.qr-step { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.qr-step .n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); font-weight: 800; flex-shrink: 0; }
.qr-step strong { color: var(--ink); display: block; }
.qr-step span { font-size: .9rem; color: var(--muted); }

/* ---------------- Why / features ---------------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { padding: 1.6rem; border-radius: 22px; background: #fff; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .f-icon { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 1rem; background: var(--teal-soft); color: var(--teal); }
.feature:nth-child(3n+2) .f-icon { background: var(--orange-soft); color: var(--orange-2); }
.feature:nth-child(3n) .f-icon { background: var(--blue-soft); color: var(--blue); }
.feature .f-icon .icon { width: 24px; height: 24px; }
.feature h3 { font-size: 1.08rem; }
.feature p { margin: 0; font-size: .93rem; color: var(--muted); }

/* Stats band */
.stats-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: #0d1b2e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E"); border-radius: 22px; overflow: hidden; box-shadow: 0 6px 0 #f2711c; }
.stat { padding: 2rem 1.6rem; color: rgba(255, 255, 255, .72); border-right: 1px solid rgba(255, 255, 255, .1); display: flex; gap: 1rem; align-items: center; }
.stat:last-child { border-right: 0; }
.stat .s-icon { width: 50px; height: 50px; border-radius: 14px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; color: #5eead4; flex-shrink: 0; }
.stat strong { display: block; font-size: 1.9rem; color: #fff; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.stat span { font-size: .88rem; }

/* Faculty */
.faculty-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.faculty { text-align: center; padding: 1.5rem 1.2rem; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.faculty-photo { width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 1rem; overflow: hidden; background: var(--teal); display: grid; place-items: center; color: #fff; font-size: 1.8rem; font-weight: 800; box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--line); }
.faculty-photo img { width: 100%; height: 100%; object-fit: cover; }
.faculty h3 { font-size: 1.02rem; margin-bottom: .2rem; }
.faculty .role { font-size: .85rem; color: var(--teal); font-weight: 700; }
.faculty .qual { font-size: .8rem; color: var(--muted); margin-top: .3rem; }

/* Testimonials */
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.story { padding: 1.7rem; border-radius: 22px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.story .stars { color: #f59e0b; display: flex; gap: 2px; margin-bottom: .9rem; }
.story .stars .icon { width: 16px; height: 16px; fill: currentColor; }
.story blockquote { margin: 0 0 1.2rem; color: var(--ink); font-size: .98rem; line-height: 1.7; }
.story .who { display: flex; gap: .8rem; align-items: center; margin-top: auto; }
.story .who .pic { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 800; }
.story .who .pic img { width: 100%; height: 100%; object-fit: cover; }
.story .who strong { display: block; color: var(--ink); font-size: .95rem; }
.story .who span { font-size: .82rem; color: var(--muted); }
.story .achieve { margin-bottom: .9rem; }

/* Notice list */
.notice-list { display: grid; gap: 12px; }
.notice-row { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.1rem; border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: border-color .2s, transform .2s; color: var(--text); }
.notice-row:hover { border-color: var(--teal); transform: translateX(3px); color: var(--text); }
.notice-date { width: 58px; flex-shrink: 0; text-align: center; border-radius: 12px; background: var(--soft); padding: .45rem 0; }
.notice-date strong { display: block; font-size: 1.25rem; color: var(--ink); line-height: 1; }
.notice-date span { font-size: .7rem; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.notice-row h3 { font-size: .98rem; margin: .25rem 0 0; color: var(--ink); line-height: 1.4; }
.notice-row .arrow { margin-left: auto; color: var(--muted); }

/* App band */
.app-band { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding: 3rem; border-radius: 24px; background: #0f5c56 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E"); color: rgba(255, 255, 255, .86); overflow: hidden; position: relative; }
.app-band h2 { color: #fff; }
.store-btns { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; }
.store-btn { display: inline-flex; align-items: center; gap: .65rem; padding: .7rem 1.15rem; border-radius: 14px; background: #0b1726; color: #fff; font-weight: 700; }
.store-btn:hover { color: #fff; background: #000; }
.store-btn small { display: block; font-size: .66rem; opacity: .7; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.store-btn.soon { opacity: .7; cursor: default; }
.app-visual { display: flex; justify-content: center; }
.app-visual .phone-mock { width: 220px; height: 400px; transform: rotate(6deg); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy-3); color: rgba(255, 255, 255, .65); padding-top: 70px; margin-top: 0; }
.footer-cta { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 2.2rem 2.4rem; border-radius: 22px; background: #f2711c; margin-bottom: 64px; flex-wrap: wrap; border: 1px solid rgba(255, 255, 255, .08); }
.footer-cta h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: .4rem; max-width: 640px; }
.footer-cta p { margin: 0; max-width: 620px; }
.footer-cta-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr; gap: 2rem; padding-bottom: 3rem; }
.site-footer h3 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.site-footer a { color: rgba(255, 255, 255, .7); display: block; padding: .26rem 0; font-size: .92rem; }
.site-footer a:hover { color: #5eead4; }
.footer-about p { font-size: .92rem; margin: 1rem 0 1.2rem; max-width: 340px; }
.socials { display: flex; gap: .5rem; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); padding: 0; }
.socials a:hover { background: var(--teal); color: #fff; }
.footer-contact p { display: flex; gap: .6rem; font-size: .92rem; margin-bottom: .7rem; }
.footer-contact p .icon { color: #5eead4; margin-top: .2rem; }
.footer-contact a { display: inline; padding: 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding: 1.4rem 0 1.8rem; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .86rem; flex-wrap: wrap; }
.footer-bottom a { display: inline; padding: 0; color: #5eead4; }

/* ---------------- Inner pages ---------------- */
.page-hero { position: relative; overflow: hidden; background: var(--navy-3); color: rgba(255, 255, 255, .74); padding: 56px 0 64px; isolation: isolate; }
.page-hero { background: #0d1b2e; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E"); z-index: -1; }
.page-hero::after { content: ""; position: absolute; right: 6%; bottom: -26px; width: 180px; height: 120px; z-index: -1; opacity: .5; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 120'%3E%3Cpath d='M0 70 H55 l10 -26 l12 52 l14 -80 l14 92 l12 -38 H180' fill='none' stroke='%23f2711c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: .6rem; max-width: 860px; }
.page-hero p { max-width: 720px; font-size: 1.05rem; margin: 0; }
.crumbs { display: flex; gap: .45rem; align-items: center; font-size: .84rem; margin-bottom: 1rem; flex-wrap: wrap; }
.crumbs a { color: rgba(255, 255, 255, .7); }
.crumbs a:hover { color: #fff; }
.crumbs .icon { width: .85em; opacity: .5; }
.page-body { padding: 56px 0 96px; }

/* Listing with filters */
.list-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.2rem; }
.filters h3 { font-size: .95rem; margin-bottom: .8rem; display: flex; align-items: center; justify-content: space-between; }
.filter-group { padding: .9rem 0; border-top: 1px solid var(--line); }
.filter-group:first-of-type { border-top: 0; padding-top: 0; }
.filter-group .label { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.filter-opt { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .38rem .55rem; border-radius: 10px; color: var(--ink); font-size: .9rem; font-weight: 500; }
.filter-opt:hover { background: var(--soft); color: var(--teal); }
.filter-opt.active { background: var(--teal-soft); color: var(--teal); font-weight: 700; }
.filter-opt small { color: var(--muted); font-weight: 600; }
.filter-sub { padding-left: .9rem; }
.list-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.list-toolbar .count { color: var(--muted); font-size: .92rem; }
.search-inline { display: flex; gap: .5rem; flex: 1; max-width: 460px; }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: .86rem; font-weight: 600; }
.chip:hover { border-color: var(--teal); color: var(--teal); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter-toggle { display: none; }
.empty { text-align: center; padding: 4rem 1rem; border: 1px dashed var(--line); border-radius: 22px; color: var(--muted); background: var(--soft); }
.empty .icon { width: 42px; height: 42px; color: var(--teal); margin-bottom: .8rem; }
.empty h3 { color: var(--ink); }

/* Pagination */
.pagination { display: flex; gap: .4rem; list-style: none; padding: 0; margin: 2rem 0 0; flex-wrap: wrap; justify-content: center; }
.pagination .page-link, .pagination span { display: inline-flex; min-width: 42px; height: 42px; padding: 0 .7rem; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); font-weight: 600; background: #fff; }
.pagination .active .page-link, .pagination .active span { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination .disabled .page-link, .pagination .disabled span { opacity: .45; }

/* Forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 2rem; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.1rem; }
.field label, .label-text { display: block; font-weight: 700; color: var(--ink); font-size: .9rem; margin-bottom: .4rem; }
.field label .req { color: var(--red); }
.input, .select, .textarea { width: 100%; padding: .78rem .95rem; border-radius: 13px; border: 1.5px solid var(--line); background: #fff; font: inherit; color: var(--ink); font-size: .96rem; transition: border-color .2s, box-shadow .2s; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--teal-2); box-shadow: 0 0 0 4px rgba(20, 184, 166, .14); }
.textarea { min-height: 120px; resize: vertical; }
.hint { font-size: .8rem; color: var(--muted); margin-top: .35rem; }
.error-text { font-size: .82rem; color: var(--red); margin-top: .3rem; font-weight: 600; }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--red); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { margin-top: .25rem; accent-color: var(--teal); width: 17px; height: 17px; }
.alert { padding: 1rem 1.15rem; border-radius: 14px; margin-bottom: 1.2rem; font-size: .93rem; }
.alert ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.alert-error { background: #fdecec; color: #991b1b; }
.alert-info { background: var(--blue-soft); color: #1e3a8a; }
.alert-ok { background: var(--teal-soft); color: #115e59; }
.alert-warn { background: var(--orange-soft); color: #9a3412; }
.pay-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; }
.pay-opt { position: relative; }
.pay-opt input { position: absolute; opacity: 0; }
.pay-opt label { display: flex; flex-direction: column; gap: .2rem; padding: .9rem 1rem; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .2s, background .2s; height: 100%; margin: 0; }
.pay-opt label img { height: 26px; width: auto; margin-bottom: .2rem; }
.pay-opt label strong { color: var(--ink); }
.pay-opt label span { font-size: .8rem; color: var(--muted); font-weight: 500; }
.pay-opt input:checked + label { border-color: var(--teal); background: var(--teal-soft); box-shadow: 0 0 0 3px rgba(20, 184, 166, .15); }
.pay-detail { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: 14px; background: var(--soft); border: 1px dashed #cbd5e1; font-size: .92rem; }
.pay-detail strong.acc { font-size: 1.15rem; color: var(--ink); letter-spacing: .02em; }

/* Auth */
.auth-page { min-height: calc(100vh - 110px); display: grid; place-items: center; padding: 48px 20px; background: #f6f1e7; }
.auth-card { width: 100%; max-width: 460px; }
.auth-card h1 { font-size: 1.8rem; margin-bottom: .3rem; }
.auth-card .sub { color: var(--muted); margin-bottom: 1.6rem; }
.auth-alt { text-align: center; margin-top: 1.2rem; font-size: .92rem; color: var(--muted); }

/* ---------------- Course detail ---------------- */
.detail-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.course-hero-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1.2rem; font-size: .92rem; }
.course-hero-meta span { display: inline-flex; gap: .4rem; align-items: center; }
.course-hero-meta .icon { color: #5eead4; }
.sticky-card { position: sticky; top: calc(var(--header-h) + 18px); background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.detail-hero-card { margin-top: -150px; }
.sticky-card .media { aspect-ratio: 16/9; position: relative; background: var(--navy); }
.sticky-card .media img { width: 100%; height: 100%; object-fit: cover; }
.sticky-card .body { padding: 1.4rem; }
.sticky-card .price strong { font-size: 1.8rem; }
.include-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .55rem; }
.include-list li { display: flex; gap: .6rem; font-size: .92rem; color: var(--ink); }
.include-list .icon { color: var(--teal); margin-top: .2rem; }
.content-block { margin-bottom: 2.6rem; }
.content-block > h2 { font-size: 1.45rem; margin-bottom: 1rem; }
.prose { color: var(--text); }
.prose h2 { font-size: 1.4rem; margin-top: 1.6rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.4rem; }
/* Tables in guides: scroll sideways inside the article on phones; colours come from the theme's table rules. */
.prose table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: .92rem; overflow-wrap: normal; }
.prose th, .prose td { padding: .55rem .75rem; border-width: 1px; border-style: solid; text-align: left; vertical-align: top; min-width: 8.5rem; }
.prose th { font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .35rem; }
.prose img { border-radius: 14px; margin: 1rem 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 1rem 0; padding: .8rem 1.2rem; border-left: 4px solid var(--teal); background: var(--soft); border-radius: 0 12px 12px 0; }
.fact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fact { padding: 1rem; border-radius: 16px; background: var(--soft); }
.fact small { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--muted); }
.fact strong { color: var(--ink); font-size: .98rem; }
.module-list { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.module-list details { border-top: 1px solid var(--line); }
.module-list details:first-child { border-top: 0; }
.module-list summary { list-style: none; cursor: pointer; padding: 1rem 1.2rem; display: flex; align-items: center; gap: .8rem; font-weight: 700; color: var(--ink); background: #fff; }
.module-list summary::-webkit-details-marker { display: none; }
.module-list summary .count { margin-left: auto; font-size: .82rem; color: var(--muted); font-weight: 600; }
.module-list summary .caret { transition: transform .2s; color: var(--muted); }
.module-list details[open] summary .caret { transform: rotate(180deg); }
.module-list .lessons { background: var(--soft); padding: .4rem 1.2rem .8rem; }
.lesson-row { display: flex; align-items: center; gap: .7rem; padding: .6rem 0; font-size: .92rem; color: var(--ink); border-bottom: 1px dashed var(--line); }
.lesson-row:last-child { border-bottom: 0; }
.lesson-row .icon { color: var(--teal); }
.lesson-row .meta { margin-left: auto; font-size: .8rem; color: var(--muted); display: inline-flex; gap: .5rem; align-items: center; }
.lesson-row.done .icon { color: var(--green); }
.lesson-row a { color: var(--ink); }
.lesson-row a:hover { color: var(--teal); }
.batch-list { display: grid; gap: .7rem; }
.batch { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: .9rem 1.1rem; border-radius: 16px; border: 1px solid var(--line); flex-wrap: wrap; }
.batch strong { color: var(--ink); }
.faq-list details { border: 1px solid var(--line); border-radius: 16px; margin-bottom: .7rem; background: #fff; }
.faq-list summary { list-style: none; cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; gap: 1rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { transition: transform .2s; color: var(--teal); }
.faq-list details[open] summary .icon { transform: rotate(45deg); }
.faq-list .answer { padding: 0 1.2rem 1.1rem; color: var(--text); }
.instructor-card { display: flex; gap: 1rem; align-items: center; padding: 1.2rem; border: 1px solid var(--line); border-radius: 18px; }
.instructor-card .pic { width: 72px; height: 72px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; overflow: hidden; flex-shrink: 0; }
.instructor-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.video-frame { position: relative; aspect-ratio: 16/9; border-radius: 18px; overflow: hidden; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Book detail */
.book-detail { display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: start; }
.book-detail .book-cover { max-width: 380px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; }
.qty button { width: 42px; height: 46px; border: 0; background: #fff; cursor: pointer; color: var(--ink); display: grid; place-items: center; }
.qty button:hover { background: var(--soft); }
.qty input { width: 52px; height: 46px; text-align: center; border: 0; font: inherit; font-weight: 700; color: var(--ink); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.spec-table th, .spec-table td { text-align: left; padding: .65rem .2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { color: var(--muted); font-weight: 600; width: 38%; }
.spec-table td { color: var(--ink); font-weight: 600; }
.stock-ok { color: var(--green); font-weight: 700; display: inline-flex; gap: .3rem; align-items: center; }
.stock-low { color: var(--amber); font-weight: 700; }
.stock-out { color: var(--red); font-weight: 700; }

/* Cart and checkout */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cart-item .thumb { width: 76px; }
.cart-item .thumb .book-cover { border-radius: 4px 10px 10px 4px; }
.cart-item .cover-art { padding: .5rem; }
.cart-item .cover-art .ca-title { font-size: .62rem; }
.cart-item .cover-art .ca-top, .cart-item .cover-art .ca-sub, .cart-item .cover-art .ca-bar { display: none; }
.cart-item h3 { font-size: .98rem; margin-bottom: .2rem; }
.cart-item h3 a { color: var(--ink); }
.summary-card { position: sticky; top: calc(var(--header-h) + 18px); background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1.4rem; box-shadow: var(--shadow-sm); }
.summary-card h3 { margin-bottom: 1rem; }
.sum-row { display: flex; justify-content: space-between; padding: .45rem 0; font-size: .95rem; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .9rem; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.zone-opts { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.coupon-form { display: flex; gap: .5rem; margin-top: 1rem; }
.order-success { text-align: center; max-width: 640px; margin: 0 auto; }
.order-success .big-icon { width: 84px; height: 84px; border-radius: 26px; margin: 0 auto 1.4rem; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); }
.order-success .big-icon .icon { width: 42px; height: 42px; }
.order-id { display: inline-block; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.4rem; font-weight: 800; color: var(--navy); background: var(--soft); padding: .55rem 1.1rem; border-radius: 14px; letter-spacing: .04em; margin: .4rem 0 1rem; }
.track-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 1.6rem 0; }
.track-step { text-align: center; font-size: .82rem; font-weight: 700; color: var(--muted); }
.track-step .dot { width: 40px; height: 40px; border-radius: 50%; margin: 0 auto .5rem; display: grid; place-items: center; background: var(--soft-2); color: var(--muted); }
.track-step.done { color: var(--teal); }
.track-step.done .dot { background: var(--teal); color: #fff; }

/* ---------------- Exam taking ---------------- */
.exam-shell { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.exam-top { position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff; }
.exam-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.exam-top h1 { font-size: 1rem; color: #fff; margin: 0; }
.timer { display: inline-flex; align-items: center; gap: .5rem; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.25rem; font-weight: 800; padding: .45rem .9rem; border-radius: 12px; background: rgba(255, 255, 255, .1); }
.timer.warn { background: var(--orange); }
.timer.danger { background: var(--red); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .65; } }
.q-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1.5rem; margin-bottom: 1.1rem; scroll-margin-top: 90px; }
.q-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.q-num { font-weight: 800; color: var(--teal); font-size: .85rem; }
.q-text { font-size: 1.06rem; color: var(--ink); font-weight: 600; line-height: 1.6; white-space: pre-line; }
.q-img { margin: 1rem 0; border-radius: 14px; max-height: 320px; width: auto; }
.opts { display: grid; gap: .6rem; margin-top: 1rem; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; }
.opt label { display: flex; gap: .8rem; align-items: center; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .15s, background .15s; color: var(--ink); font-weight: 500; }
.opt label .l { width: 32px; height: 32px; border-radius: 10px; background: var(--soft-2); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; color: var(--navy); }
.opt label:hover { border-color: #99d8cf; }
.opt input:checked + label { border-color: var(--teal); background: var(--teal-soft); }
.opt input:checked + label .l { background: var(--teal); color: #fff; }
.opt.correct label { border-color: var(--green); background: #e9f9ef; }
.opt.correct label .l { background: var(--green); color: #fff; }
.opt.wrong label { border-color: var(--red); background: #fdecec; }
.opt.wrong label .l { background: var(--red); color: #fff; }
.palette { position: sticky; top: 84px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1.2rem; }
.palette-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 1rem 0; }
.palette-grid a { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; font-size: .82rem; font-weight: 700; background: var(--soft-2); color: var(--ink); }
.palette-grid a.answered { background: var(--teal); color: #fff; }
.palette-legend { display: flex; gap: 1rem; font-size: .78rem; color: var(--muted); flex-wrap: wrap; }
.palette-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .3rem; vertical-align: -1px; background: var(--soft-2); }
.palette-legend .a::before { background: var(--teal); }
.save-state { font-size: .8rem; color: var(--muted); margin-top: .6rem; }
.result-hero { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; }
.score-ring { width: 210px; height: 210px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--teal-2) calc(var(--p) * 1%), rgba(255, 255, 255, .12) 0); position: relative; }
.score-ring::before { content: ""; position: absolute; inset: 16px; border-radius: 50%; background: var(--navy); }
.score-ring div { position: relative; text-align: center; color: #fff; }
.score-ring strong { display: block; font-size: 2.6rem; line-height: 1; }
.score-ring span { font-size: .85rem; opacity: .7; }
.result-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; }
.result-stats div { background: rgba(255, 255, 255, .07); border-radius: 16px; padding: 1rem; }
.result-stats strong { display: block; font-size: 1.5rem; color: #fff; }
.result-stats span { font-size: .8rem; }
.explain { margin-top: .9rem; padding: .85rem 1rem; border-radius: 12px; background: var(--blue-soft); color: #1e3a8a; font-size: .92rem; }
.merit-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.merit-table th, .merit-table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); font-size: .93rem; }
.merit-table th { background: var(--soft); color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.merit-table tr.me td { background: var(--teal-soft); font-weight: 700; }
.medal { width: 32px; height: 32px; border-radius: 10px; display: inline-grid; place-items: center; font-weight: 800; background: var(--soft-2); color: var(--ink); }
.medal.m1 { background: #fde68a; color: #92400e; }
.medal.m2 { background: #e5e7eb; color: #374151; }
.medal.m3 { background: #fed7aa; color: #9a3412; }

/* ---------------- Student area ---------------- */
.dash { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; padding: 32px 0 80px; }
.dash-nav { position: sticky; top: calc(var(--header-h) + 16px); background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: .8rem; }
.dash-user { display: flex; gap: .75rem; align-items: center; padding: .6rem .6rem 1rem; border-bottom: 1px solid var(--line); margin-bottom: .5rem; }
.dash-user .pic { width: 46px; height: 46px; border-radius: 14px; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 800; overflow: hidden; flex-shrink: 0; }
.dash-user .pic img { width: 100%; height: 100%; object-fit: cover; }
.dash-user strong { display: block; color: var(--ink); line-height: 1.2; }
.dash-user span { font-size: .8rem; color: var(--muted); }
.dash-nav a, .dash-nav button { display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; border-radius: 12px; color: var(--ink); font-weight: 600; font-size: .93rem; width: 100%; background: none; border: 0; cursor: pointer; text-align: left; }
.dash-nav a:hover, .dash-nav button:hover { background: var(--soft); }
.dash-nav a.active { background: var(--teal-soft); color: var(--teal); }
.dash-nav .icon { color: var(--teal); }
.dash-nav .badge-n { margin-left: auto; background: var(--orange); color: #fff; font-size: .7rem; padding: .1rem .45rem; border-radius: 8px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.dash-head h1 { font-size: 1.7rem; margin: 0; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1.4rem; margin-bottom: 1.4rem; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.panel-head h2 { font-size: 1.12rem; margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 1.4rem; }
.kpi { padding: 1.2rem; border-radius: 20px; background: #fff; border: 1px solid var(--line); display: flex; gap: .9rem; align-items: center; }
.kpi .k-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); flex-shrink: 0; }
.kpi:nth-child(2) .k-icon { background: var(--orange-soft); color: var(--orange-2); }
.kpi:nth-child(3) .k-icon { background: var(--blue-soft); color: var(--blue); }
.kpi:nth-child(4) .k-icon { background: #f3e8ff; color: #7c3aed; }
.kpi strong { display: block; font-size: 1.5rem; color: var(--ink); line-height: 1.1; }
.kpi span { font-size: .82rem; color: var(--muted); }
.my-course { display: grid; grid-template-columns: 180px 1fr auto; gap: 1.2rem; align-items: center; padding: 1rem; border: 1px solid var(--line); border-radius: 20px; margin-bottom: .9rem; background: #fff; }
.my-course .course-media { border-radius: 14px; }
.my-course h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.progress { height: 8px; border-radius: 99px; background: var(--soft-2); overflow: hidden; margin: .6rem 0 .3rem; }
.progress span { display: block; height: 100%; border-radius: 99px; background: var(--teal); }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { padding: .8rem .7rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table th { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.notif { display: flex; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.notif:last-child { border-bottom: 0; }
.notif .n-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--soft-2); color: var(--navy); flex-shrink: 0; }
.notif.unread .n-icon { background: var(--teal-soft); color: var(--teal); }
.notif strong { color: var(--ink); display: block; }
.notif p { margin: .15rem 0 .2rem; font-size: .92rem; }
.notif time { font-size: .78rem; color: var(--muted); }
.schedule-item { display: flex; gap: 1rem; align-items: center; padding: .85rem 0; border-bottom: 1px dashed var(--line); }
.schedule-item:last-child { border-bottom: 0; }
.schedule-item .when { width: 70px; text-align: center; flex-shrink: 0; padding: .4rem; border-radius: 12px; background: var(--navy); color: #fff; }
.schedule-item .when strong { display: block; font-size: 1.1rem; line-height: 1.1; }
.schedule-item .when span { font-size: .7rem; opacity: .75; }

/* Lesson viewer */
.lesson-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.player { position: relative; border-radius: 22px; overflow: hidden; background: #000; aspect-ratio: 16/9; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.watermark { position: absolute; z-index: 3; pointer-events: none; color: rgba(255, 255, 255, .28); font-weight: 700; font-size: .85rem; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); animation: wm 24s linear infinite; white-space: nowrap; }
@keyframes wm { 0% { top: 8%; left: 6%; } 25% { top: 70%; left: 55%; } 50% { top: 20%; left: 60%; } 75% { top: 80%; left: 10%; } 100% { top: 8%; left: 6%; } }
.pdf-frame { position: relative; height: 78vh; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--soft); }
.pdf-frame iframe { width: 100%; height: 100%; border: 0; }
.no-copy { -webkit-user-select: none; user-select: none; }
.playlist { position: sticky; top: calc(var(--header-h) + 16px); background: #fff; border: 1px solid var(--line); border-radius: 22px; max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; }
.playlist h3 { padding: 1rem 1.1rem; margin: 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.playlist .pl-module { padding: .8rem 1.1rem .3rem; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.playlist a { display: flex; gap: .6rem; padding: .6rem 1.1rem; font-size: .88rem; color: var(--ink); align-items: flex-start; }
.playlist a:hover { background: var(--soft); }
.playlist a.current { background: var(--teal-soft); color: var(--teal); font-weight: 700; }
.playlist a .icon { margin-top: .15rem; color: var(--muted); }
.playlist a.done .icon { color: var(--green); }
.discussion-item { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.discussion-item .head { display: flex; gap: .6rem; align-items: center; font-size: .86rem; margin-bottom: .35rem; }
.discussion-item .head strong { color: var(--ink); }
.discussion-item .replies { margin: .7rem 0 0 1.4rem; padding-left: 1rem; border-left: 2px solid var(--line); }
.staff-tag { background: var(--navy); color: #fff; font-size: .68rem; padding: .1rem .4rem; border-radius: 6px; font-weight: 700; }

/* Resource cards */
.res-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.res-card { display: flex; gap: 1rem; padding: 1.2rem; border-radius: 20px; background: #fff; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; color: var(--text); }
.res-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--text); }
.res-icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-2); flex-shrink: 0; }
.res-icon.video { background: #fde8e8; color: var(--red); }
.res-icon.test { background: var(--blue-soft); color: var(--blue); }
.res-icon .icon { width: 24px; height: 24px; }
.res-card h3 { font-size: 1rem; margin: .1rem 0 .35rem; color: var(--ink); }
.res-card p { font-size: .86rem; margin: 0; color: var(--muted); }

/* Generic cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 16/10; overflow: hidden; background: #e9e2d3; position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .art-icon { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; color: rgba(255, 255, 255, .9); }
.card-body { padding: 1.3rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.08rem; margin: .5rem 0 .4rem; }
.card-body h3 a { color: var(--ink); }
.card-body p { font-size: .92rem; color: var(--muted); }
.card-body .link-arrow { margin-top: auto; }
.service-card { padding: 1.6rem; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.service-card .f-icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); margin-bottom: 1rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.media-frame { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); background: #e9e2d3; aspect-ratio: 4/3.2; position: relative; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame .art-icon { position: absolute; inset: 0; margin: auto; width: 90px; height: 90px; color: rgba(255, 255, 255, .85); }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mv { padding: 1.6rem; border-radius: 22px; background: var(--soft); }
.mv h3 { display: flex; gap: .6rem; align-items: center; }
.mv .icon { color: var(--teal); }
.chairman { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: center; padding: 2rem; border-radius: 28px; background: #fff; border: 1px solid var(--line); }
.chairman .pic { aspect-ratio: 1; border-radius: 24px; overflow: hidden; background: var(--navy); display: grid; place-items: center; color: #fff; font-size: 2.6rem; font-weight: 800; }
.chairman .pic img { width: 100%; height: 100%; object-fit: cover; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: start; }
.contact-tile { display: flex; gap: 1rem; padding: 1.2rem; border-radius: 18px; background: #fff; border: 1px solid var(--line); margin-bottom: .9rem; }
.contact-tile .f-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); flex-shrink: 0; }
.contact-tile strong { display: block; color: var(--ink); }
.map-frame { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; margin-top: 1rem; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.dept-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.dept { font-size: .86rem; padding: .7rem .85rem; border-radius: 12px; background: var(--soft); }
.dept strong { display: block; color: var(--ink); font-size: .88rem; }
.dept a { word-break: break-all; }
.result-lookup { max-width: 520px; margin: 0 auto; }

/* Print invoice */
.invoice { max-width: 820px; margin: 0 auto; background: #fff; padding: 2.4rem; border: 1px solid var(--line); border-radius: 18px; }
.invoice-head { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 2px solid var(--navy); padding-bottom: 1.2rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.invoice table { width: 100%; border-collapse: collapse; }
.invoice th, .invoice td { padding: .65rem .5rem; border-bottom: 1px solid var(--line); text-align: left; font-size: .93rem; }
.invoice .num { text-align: right; }
@media print {
  .topbar, .site-header, .site-footer, .no-print, .drawer, .toast { display: none !important; }
  body { background: #fff; }
  .invoice { border: 0; padding: 0; }
  .page-body { padding: 0; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1180px) {
  .main-nav .nav-link { padding: .5rem .55rem; font-size: .88rem; }
  .book-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step::after { display: none; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; }
  .footer-contact h3 { grid-column: 1 / -1; }
}
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 440px; max-width: 560px; width: 100%; margin: 0 auto; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-grid, .test-grid, .story-grid, .feature-grid, .res-grid, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faculty-grid, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .qr-band, .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .app-band { grid-template-columns: 1fr; }
  .app-visual { display: none; }
  .list-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .filter-toggle { display: inline-flex; }
  .detail-layout, .book-detail, .cart-layout, .exam-shell, .lesson-layout { grid-template-columns: 1fr; }
  .detail-hero-card { margin-top: 0; }
  .course-hero { padding-bottom: 56px; }
  .mobile-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; gap: .8rem; align-items: center; justify-content: space-between; padding: .7rem 16px calc(.7rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -20px rgba(15,42,68,.5); }
  .mobile-cta .price strong { font-size: 1.15rem; }
  body.has-mobile-cta .site-footer { padding-bottom: 80px; }
  .sticky-card, .summary-card, .palette, .playlist { position: static; }
  .palette { order: -1; }
  .book-detail .book-cover { max-width: 300px; margin: 0 auto; }
  .dash { grid-template-columns: 1fr; padding-top: 20px; }
  .dash-nav { position: static; display: flex; overflow-x: auto; gap: .3rem; padding: .5rem; -webkit-overflow-scrolling: touch; }
  .dash-user { display: none; }
  .dash-nav a, .dash-nav button, .dash-nav form { flex-shrink: 0; width: auto; white-space: nowrap; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .chairman { grid-template-columns: 1fr; text-align: center; }
  .chairman .pic { max-width: 200px; margin: 0 auto; }
}
@media (max-width: 760px) {
  .section { padding: 68px 0; }
  .section-sm { padding: 48px 0; }
  .hide-sm { display: none !important; }
  .topbar-links a:not(:first-child) { display: none; }
  .hero { padding: 48px 0 90px; }
  .hero-visual { min-height: 380px; }
  .hero-photo { inset: 0 10px 0 20px; }
  .float-card { max-width: 220px; padding: .7rem .8rem; }
  .fc-2 { bottom: 90px; }
  .hero-proof { gap: 1.2rem; }
  .hero-proof div strong { font-size: 1.35rem; }
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .course-grid, .test-grid, .story-grid, .feature-grid, .res-grid, .grid-2, .grid-3, .mv-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .footer-contact { grid-template-columns: 1fr; }
  .footer-cta { padding: 1.6rem; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .form-card { padding: 1.4rem; }
  .fact-grid { grid-template-columns: 1fr 1fr; }
  .my-course { grid-template-columns: 1fr; }
  .result-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .track-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); font-size: .7rem; }
  .track-step .dot { width: 32px; height: 32px; }
  .qr-float { left: -10px; top: 20px; width: 104px; }
  .phone-mock { width: 240px; height: 480px; }
  .app-band { padding: 2rem 1.4rem; }
  .dept-grid { grid-template-columns: 1fr; }
  .invoice { padding: 1.2rem; }
  .page-hero { padding: 40px 0 48px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hide-xs { display: none !important; }
  .brand-text strong { font-size: 1rem; }
  .brand-mark { width: 38px; height: 38px; }
  .icon-btn { width: 40px; height: 40px; }
  .hero-actions .btn { flex: 1; }
  .float-card.fc-3 { display: none; }
  .stats-band { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: .9rem; flex-direction: column; align-items: flex-start; gap: .5rem; }
  .cart-item { grid-template-columns: 60px 1fr; }
  .cart-item .item-actions { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
  .palette-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .zone-opts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Footer: keep buttons and brand intact against footer link styles */
.site-footer a.btn { display: inline-flex; padding: .78rem 1.35rem; font-size: .95rem; }
.site-footer a.btn-light { color: var(--navy); }
.site-footer a.btn-light:hover { color: var(--teal); }
.site-footer a.btn-accent { color: #fff; }
.site-footer a.brand { display: inline-flex; padding: 0; }
.filters .filter-group .filter-opt .icon + * { margin-left: .4rem; }

/* ===================================================================
   Site-wide look: clean white header and footer, navy and red accents,
   flat buttons, plain section headings (no handwriting, grain or doodles).
   =================================================================== */
:root {
  --font: "Bornomala", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --navy: #13235f; --navy-2: #1a2b6d; --navy-3: #0c1845;
  --teal: #0f766e; --teal-2: #14b8a6; --teal-soft: #e6f6f3;
  --orange: #b51d21; --orange-2: #9e1b1c;
  --soft: #f2f2f2; --soft-2: #ebebeb; --line: #e5e7eb;
}
body { background: #fff; }
h1, h2, h3, h4, h5 { letter-spacing: 0; font-weight: 700; }
.section-soft { background: #f2f2f2; }
.section-dark { background: #0f1a3a; }

.kicker { display: block; font-family: var(--font); font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); transform: none; line-height: 1.4; margin-bottom: .5rem; }
.kicker-light { color: #ffc2c4; }
.accent-word { color: var(--orange); white-space: normal; }
.accent-word::after { display: none; }
.page-hero .accent-word, .section-dark .accent-word { color: inherit; }

.page-hero { background: var(--navy); padding: 46px 0 50px; }
.page-hero::before, .page-hero::after { display: none; }

.btn { border-radius: 6px; }
.btn-accent { background: var(--orange); color: #fff; box-shadow: none; }
.btn-accent:hover { background: var(--orange-2); color: #fff; box-shadow: none; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: none; }
.btn-primary:hover { background: var(--navy-3); color: #fff; }

/* Header */
.site-header { background: #fff; backdrop-filter: none; border-bottom: 1px solid #eee; }
.main-nav { margin: 0 auto; }
.nav-link { color: var(--navy); font-weight: 600; border-radius: 6px; }
.nav-link:hover, .nav-link.active { color: var(--orange); background: transparent; }
.icon-btn { border: 0; border-radius: 50%; background: transparent; color: var(--navy); }
.icon-btn:hover { color: var(--orange); background: #f2f2f2; }
.cart-count { background: var(--orange); }
.login-link { color: var(--navy); font-weight: 600; font-size: .93rem; white-space: nowrap; padding: 0 .3rem; }
.login-link:hover { color: var(--orange); }
.header-actions .btn-primary { border-radius: 6px; }

/* Footer */
.site-footer { background: #fff; color: #4b5563; padding-top: 56px; border-top: 1px solid var(--line); }
.site-footer h3 { color: #111827; font-size: .95rem; font-weight: 600; margin-bottom: .8rem; }
.site-footer a { color: #4b5563; font-size: .9rem; }
.site-footer a:hover { color: var(--orange); }
.footer-grid { grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr 1.1fr; gap: 1.6rem; padding-bottom: 2rem; }
.footer-contact { list-style: none; margin: 1.1rem 0 0; padding: 0; }
.footer-contact li { display: flex; gap: .55rem; align-items: flex-start; font-size: .9rem; margin-bottom: .55rem; }
.footer-contact li .icon { color: var(--navy); margin-top: .2rem; flex-shrink: 0; }
.footer-contact a { display: inline; padding: 0; }
.socials a { background: #f2f2f2; color: var(--navy); border-radius: 8px; }
.socials a:hover { background: var(--orange); color: #fff; }
.footer-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 16px 0 22px; border-top: 1px solid var(--line); }
.footer-pay .lbl { font-size: .8rem; color: #6b7280; margin-right: .4rem; }
.footer-pay .pm { border: 1px solid var(--line); border-radius: 4px; padding: .25rem .65rem; font-size: .78rem; font-weight: 700; color: #1f2937; background: #fff; }
.footer-bottom { display: block; background: #111; color: #e5e7eb; border-top: 0; padding: 0; font-size: .85rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: .6rem 1rem; flex-wrap: wrap; padding: 14px 20px; }
.footer-bottom a { color: #ff6b70; display: inline; padding: 0; }
.footer-bottom a:hover { color: #fff; }

/* Course card */
.course-card { border-radius: 10px; box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }
.course-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .25); }
.course-card:hover .course-media img { transform: none; }
.course-media { aspect-ratio: 16 / 10; background: #e5e7eb; }
.course-body { padding: 14px 16px 16px; }
.course-body h3 { font-size: 1.02rem; line-height: 1.35; min-height: 2.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-body h3 a { color: #111827; }
.course-body h3 a:hover { color: var(--orange); }
.course-meta { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem .6rem; font-size: .82rem; color: #4b5563; margin-bottom: .9rem; }
.course-meta .icon { color: var(--orange); width: 15px; height: 15px; flex-shrink: 0; }
.course-foot { padding-top: .8rem; border-top: 1px solid #eee; }
.course-foot .price { flex-direction: column; align-items: flex-start; gap: 0; }
.course-foot .price strong { color: var(--orange); font-size: 1.12rem; }
.course-foot .price del { font-size: .8rem; }
.price .free { color: #15803d; }
.btn-enroll { display: inline-flex; align-items: center; justify-content: center; background: var(--orange); color: #fff; border-radius: 6px; padding: .55rem 1rem; font-weight: 700; font-size: .85rem; white-space: nowrap; transition: background .2s; }
.btn-enroll:hover { background: var(--orange-2); color: #fff; }

.book-cover { border-radius: 4px 10px 10px 4px; }
.stats-band { background: var(--navy); box-shadow: none; }
.app-band { background: var(--navy); }

@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-social { grid-column: 1 / -1; }
}

/* Footer payment strip */
.footer-pay { gap: 0; padding: 14px 0 18px; }
.footer-pay .lbl { font-size: .85rem; font-weight: 700; color: var(--navy); margin: 0; padding-right: 16px; border-right: 2px solid var(--line); align-self: stretch; display: flex; align-items: center; white-space: nowrap; }
.pay-logos { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 16px; }
.footer-pay .pm { width: 84px; height: 44px; padding: 2px 3px; border: 1px solid var(--line); border-radius: 6px; background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; text-align: center; line-height: 1.1; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.footer-pay .pm img { width: 100%; height: 100%; object-fit: contain; }
.pay-banner { width: 100%; height: auto; display: block; }
@media (max-width: 760px) {
  .footer-pay { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-pay .lbl { border-right: 0; padding: 0; }
  .pay-logos { padding-left: 0; }
  .footer-pay .pm { width: 64px; height: 36px; }
}

/* Inner page hero: collage of course banners under a navy overlay */
.page-hero { text-align: center; padding: 58px 0 62px; background: var(--navy); }
.page-hero::before { display: block; content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(19, 35, 95, .86), rgba(12, 24, 69, .9)); }
.hero-mosaic { position: absolute; inset: -30px -40px; z-index: -2; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; transform: rotate(-3deg); opacity: .9; }
.hero-mosaic img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }
.page-hero h1 { margin-left: auto; margin-right: auto; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.page-hero p { margin-left: auto; margin-right: auto; color: rgba(255, 255, 255, .86); }
.page-hero .crumbs { justify-content: center; }
@media (max-width: 760px) {
  .page-hero { padding: 40px 0 44px; }
  .hero-mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Course detail */
.cd-hero { padding-bottom: 96px; }
.cd-hero h1 { max-width: 900px; }
.cd-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: .4rem; }
.cd-tags span { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); color: #fff; padding: .3rem .75rem; border-radius: 6px; font-size: .82rem; font-weight: 600; }
.cd-body { padding-bottom: 64px; }
.cd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.cd-main { min-width: 0; }
.cd-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: -40px; position: relative; z-index: 2; }
.cd-stats > div { display: flex; gap: .7rem; align-items: center; background: #fff; border: 1.5px solid var(--navy); border-radius: 10px; padding: 12px 14px; box-shadow: 0 8px 20px -14px rgba(19, 35, 95, .6); }
.cd-stats .icon { width: 26px; height: 26px; color: var(--navy); flex-shrink: 0; }
.cd-stats small { display: block; font-size: .72rem; color: #6b7280; }
.cd-stats strong { display: block; font-size: .98rem; color: #111827; line-height: 1.25; }
.cd-tabs { position: sticky; top: var(--header-h); z-index: 5; background: #fff; display: flex; gap: 1.4rem; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin: 24px 0 26px; padding: 0 2px; }
.cd-tabs a { padding: .9rem 0 .75rem; font-size: .88rem; font-weight: 600; color: #374151; white-space: nowrap; border-bottom: 2px solid transparent; }
.cd-tabs a:hover, .cd-tabs a.is-active { color: var(--orange); border-color: var(--orange); }
.cd-block { scroll-margin-top: calc(var(--header-h) + 60px); }
.cd-media { border-radius: 14px; overflow: hidden; margin-bottom: 1.6rem; box-shadow: 0 14px 34px -20px rgba(0, 0, 0, .5); }
.cd-media img { width: 100%; height: auto; display: block; }
.cd-h { font-size: 1.3rem; margin: 0 0 .8rem; color: #111827; }
.cd-lead { color: #4b5563; font-size: 1rem; line-height: 1.75; }
.cd-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 1.2rem; }
.cd-facts > div { background: #f2f2f2; border-radius: 8px; padding: 12px 14px; }
.cd-facts small { display: block; font-size: .72rem; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .05em; }
.cd-facts strong { color: #111827; font-size: .95rem; }
.cd-div { display: flex; align-items: center; gap: 12px; margin: 34px 0; color: #9ca3af; }
.cd-div::before, .cd-div::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cd-div .icon { width: 18px; height: 18px; }
.cd-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cd-card { border: 1px solid var(--line); border-radius: 10px; padding: 22px 16px; text-align: center; background: #fff; transition: transform .2s, box-shadow .2s; }
.cd-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .3); }
.cd-card .ic { width: 52px; height: 52px; margin: 0 auto .8rem; border-radius: 12px; display: grid; place-items: center; background: #fdecec; color: var(--orange); }
.cd-card:nth-child(3n+2) .ic { background: #eef1f9; color: var(--navy); }
.cd-card:nth-child(3n) .ic { background: #e8f7ee; color: #15803d; }
.cd-card .ic .icon { width: 26px; height: 26px; }
.cd-card strong { display: block; font-size: .95rem; color: #111827; line-height: 1.4; }
.cd-who { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.cd-who li { display: flex; gap: .7rem; align-items: flex-start; color: #374151; }
.cd-who .icon { width: 22px; height: 22px; color: var(--orange); flex-shrink: 0; }
.cd-why { margin: 40px 0 10px; background: #0b0f19; border-radius: 12px; padding: 26px 28px; color: rgba(255, 255, 255, .78); }
.cd-why h2 { color: #fff; font-size: 1.2rem; margin: 0 0 1.2rem; }
.cd-why .nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cd-why .nums > div { text-align: center; }
.cd-why .nums .icon { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #c4b5fd; margin: 0 auto .4rem; display: block; }
.cd-why strong { display: block; color: #fff; font-size: 1.5rem; }
.cd-why span { font-size: .8rem; }
.cd-side { position: sticky; top: calc(var(--header-h) + 16px); margin-top: -150px; z-index: 3; }
.cd-buy { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 44px -22px rgba(0, 0, 0, .45); }
.cd-buy .media { aspect-ratio: 16 / 10; position: relative; background: #e5e7eb; }
.cd-buy .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd-buy .body { padding: 18px 20px 20px; }
.cd-buy h3 { font-size: 1.05rem; margin: 0 0 .5rem; color: #111827; }
.cd-price { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; margin-bottom: 1rem; }
.cd-price strong { font-size: 1.6rem; color: var(--orange); font-weight: 800; }
.cd-price del { color: #6b7280; }
.cd-price .off { background: var(--orange); color: #fff; font-size: .75rem; font-weight: 700; padding: .2rem .5rem; border-radius: 4px; }
.cd-price .free { color: #15803d; }
.cd-buy .include-list { margin-top: 1.1rem; }
.cd-help { display: flex; gap: .5rem; align-items: center; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .86rem; color: #6b7280; }
.cd-help .icon { color: var(--orange); }
@media (max-width: 1024px) {
  .cd-layout { grid-template-columns: 1fr; }
  .cd-side { position: static; margin-top: 0; order: -1; display: none; }
  .cd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cd-hero { padding-bottom: 72px; }
}
@media (max-width: 760px) {
  .cd-cards, .cd-facts { grid-template-columns: 1fr 1fr; }
  .cd-why .nums { grid-template-columns: 1fr 1fr; }
  .cd-stats > div { padding: 10px; }
  .cd-stats strong { font-size: .88rem; }
}

/* Course fees */
.fees-page { padding: 24px 0 64px; }
.fees-wrap { max-width: 1060px; }
.fees-banner { position: relative; border-radius: 28px; overflow: hidden; background: var(--orange); min-height: 200px; display: flex; align-items: center; padding: 0 56px; isolation: isolate; }
.fees-banner img { position: absolute; right: 0; top: 0; width: 55%; height: 100%; object-fit: cover; z-index: -2; }
.fees-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--orange) 45%, rgba(181, 29, 33, .55) 75%, rgba(181, 29, 33, .25)); }
.fees-banner h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 .3rem; }
.fees-banner p { color: rgba(255, 255, 255, .9); margin: 0; }
.fees-tabs { display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; margin: 18px 0 8px; }
.fees-tabs a { color: #111827; font-size: .9rem; font-weight: 500; padding: .4rem 0; border-bottom: 1.5px solid #d1d5db; }
.fees-tabs a:hover { color: var(--orange); border-color: var(--orange); }
.fees-group { scroll-margin-top: calc(var(--header-h) + 16px); margin-top: 28px; }
.fees-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.fees-head h2 { font-size: 1.35rem; margin: 0; }
.fees-head .btn-enroll { border-radius: 30px; font-size: .8rem; padding: .45rem 1rem; }
.fee-row { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 26px; margin-bottom: 14px; box-shadow: 0 2px 8px rgba(0, 0, 0, .04); transition: box-shadow .2s, border-color .2s; color: inherit; }
.fee-row:hover { border-color: #f3c3c4; box-shadow: 0 12px 26px -16px rgba(181, 29, 33, .45); color: inherit; }
.fee-row h3 { font-size: 1.12rem; margin: 0 0 .25rem; color: #111827; }
.fee-row p { margin: 0; color: #4b5563; font-size: .88rem; }
.fee-row .fee { text-align: left; min-width: 150px; flex-shrink: 0; }
.fee-row .mode { display: flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 700; color: #111827; }
.fee-row .mode .icon { width: 15px; height: 15px; }
.fee-row .was { display: block; font-size: .75rem; color: #6b7280; margin-top: .2rem; }
.fee-row .was b { background: #fdecec; color: var(--orange); padding: .05rem .35rem; border-radius: 3px; font-size: .7rem; }
.fee-row strong { display: block; color: var(--orange); font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.fee-row small { display: block; color: #6b7280; font-size: .72rem; }
.fees-note { display: flex; gap: .5rem; align-items: center; color: #4b5563; margin-top: 24px; font-size: .92rem; }
.fees-note .icon { color: #15803d; }
@media (max-width: 760px) {
  .fees-banner { padding: 0 24px; min-height: 150px; border-radius: 18px; }
  .fees-banner img { width: 70%; }
  .fee-row { flex-direction: column; align-items: flex-start; gap: .8rem; padding: 18px; }
  .fee-row .fee { border-top: 1px dashed var(--line); padding-top: .7rem; width: 100%; }
}

/* Test cards (thumbnail drawn in CSS, so every new exam gets one automatically) */
.test-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.test-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; padding: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, .06); color: inherit; transition: transform .2s, box-shadow .2s; }
.test-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .3); }
.test-thumb { position: relative; display: flex; flex-direction: column; justify-content: center; aspect-ratio: 16 / 9; padding: 14px 16px; background: var(--c); color: #fff; overflow: hidden; isolation: isolate; }
.test-thumb::before { content: ""; position: absolute; right: -40px; top: -40px; width: 170px; height: 170px; border-radius: 50%; border: 22px solid rgba(255, 255, 255, .12); z-index: -1; }
.test-thumb::after { content: ""; position: absolute; left: 0; bottom: 0; width: 46%; height: 8px; background: #fcd34d; }
.test-thumb .lbl { align-self: flex-start; background: #fff; color: #111827; font-size: .62rem; font-weight: 800; letter-spacing: .06em; padding: .2rem .45rem; border-radius: 3px; margin-bottom: .4rem; }
.test-thumb strong { font-size: 1.35rem; font-weight: 800; line-height: 1.05; letter-spacing: .01em; max-width: 72%; }
.test-thumb em { font-style: normal; font-weight: 800; color: #fcd34d; font-size: .9rem; letter-spacing: .04em; }
.test-thumb .inc { position: absolute; right: 12px; bottom: 14px; display: flex; gap: 6px; }
.test-thumb .inc > span { background: #fff; color: var(--c); border-radius: 6px; padding: 4px 6px; font-size: .5rem; font-weight: 800; text-align: center; min-width: 46px; }
.test-thumb .inc b { display: block; color: #111827; font-size: 1rem; line-height: 1.1; }
.test-thumb .flag { position: absolute; top: 0; right: 0; background: var(--orange); color: #fff; font-size: .7rem; font-weight: 700; padding: .25rem .6rem; }
.test-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.test-body h3 { font-size: 1rem; margin: 0 0 .4rem; line-height: 1.35; }
.test-body h3 a { color: #111827; }
.test-body h3 a:hover { color: var(--orange); }
.test-card .test-stats { display: flex; flex-wrap: wrap; gap: .3rem .8rem; font-size: .8rem; color: #4b5563; margin-bottom: .9rem; }
.test-card .test-stats span { display: inline-flex; gap: .25rem; align-items: center; }
.test-card .test-stats .icon { width: 14px; height: 14px; color: var(--orange); }
.test-btn { margin-top: auto; display: block; text-align: center; background: var(--orange); color: #fff; font-weight: 700; font-size: .85rem; padding: .6rem; border-radius: 4px; border: 1px solid var(--orange); }
.test-btn:hover { background: var(--orange-2); color: #fff; }
.test-btn.line { background: #fff; color: var(--orange); }

/* Tests hub */
.tx-hero-wrap { padding: 16px 0 0; }
.tx-hero { position: relative; overflow: hidden; isolation: isolate; border-radius: 22px; background: var(--navy-3); padding: 64px 56px 34px; color: rgba(255, 255, 255, .85); }
.tx-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 24, 69, .97) 40%, rgba(12, 24, 69, .7)); }
.tx-hero .hero-mosaic { opacity: .7; }
.tx-text { max-width: 620px; }
.tx-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.8vw, 2.9rem); line-height: 1.3; margin: 0 0 1rem; }
.tx-hero h1 span { color: #ff6b70; }
.tx-hero h1::after { content: ""; display: block; width: 220px; height: 5px; margin-top: 14px; border-radius: 4px; background: linear-gradient(90deg, #fff, rgba(255, 255, 255, .1)); }
.tx-hero p { line-height: 1.75; margin: 0 0 1.4rem; }
.tx-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 40px; }
.tx-chips a { display: inline-flex; align-items: center; gap: .45rem; color: #fff; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); border-radius: 8px; padding: .55rem 1rem; font-size: .9rem; font-weight: 600; }
.tx-chips a:hover { background: #fff; color: var(--navy); }
.tx-how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tx-how > div { background: #fff; border-radius: 12px; padding: 26px 20px; text-align: center; border: 1px solid var(--line); }
.tx-how .n { width: 64px; height: 64px; border-radius: 50%; background: #f2f2f2; color: var(--orange); font-size: 1.8rem; display: grid; place-items: center; margin: -54px auto 12px; border: 4px solid #f2f2f2; }
.tx-how h3 { font-size: 1.02rem; margin: 0 0 .4rem; }
.tx-how p { font-size: .88rem; color: #4b5563; margin: 0; }
.tx-how { margin-top: 30px; }
@media (max-width: 1080px) {
  .test-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tx-how { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 50px; }
}
@media (max-width: 760px) {
  .test-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tx-hero { padding: 36px 22px 24px; border-radius: 16px; }
  .tx-chips { justify-content: flex-start; margin-top: 26px; }
  .test-thumb strong { font-size: 1.1rem; }
}
@media (max-width: 480px) {
  .test-grid { grid-template-columns: 1fr; }
}

/* Contact */
.ct-sec { background: #f6f7f9; padding: 26px 0 50px; }
.ct-box { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .35); }
.ct-info { background: var(--orange); color: #fff; padding: 40px 36px; display: flex; flex-direction: column; gap: 22px; }
.ct-small { font-size: .88rem; margin: 0 0 6px; opacity: .9; }
.ct-line { display: flex; gap: 14px; align-items: flex-start; }
.ct-line .ic { width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .14); display: grid; place-items: center; flex-shrink: 0; }
.ct-line .ic .icon { width: 20px; height: 20px; }
.ct-line small { display: block; opacity: .75; font-size: .82rem; }
.ct-line a, .ct-line b { display: block; color: #fff; font-weight: 700; font-size: .95rem; }
.ct-line a:hover { text-decoration: underline; }
.ct-line span { display: block; font-size: .82rem; opacity: .85; margin-top: .2rem; }
.ct-social { margin-top: auto; }
.ct-social div { display: flex; gap: 8px; }
.ct-social a { width: 36px; height: 36px; border-radius: 6px; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; }
.ct-social a:hover { background: #fff; color: var(--orange); }
.ct-form .form-card { border: 0; box-shadow: none; border-radius: 0; padding: 32px 34px; margin: 0; }
.ct-form .form-card h2 { text-align: center; font-size: 1rem !important; font-weight: 600; color: #374151; }
.ct-form .btn-primary { width: 100%; background: var(--orange); }
.ct-form .btn-primary:hover { background: var(--orange-2); }
.ct-depts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.ct-dept { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; color: inherit; }
.ct-dept:hover { border-color: var(--orange); color: inherit; }
.ct-dept .ic { width: 40px; height: 40px; border-radius: 8px; background: #fdecec; color: var(--orange); display: grid; place-items: center; flex-shrink: 0; }
.ct-dept strong { display: block; font-size: .9rem; color: #111827; }
.ct-dept small { display: block; font-size: .78rem; color: #6b7280; word-break: break-all; }
.ct-map { padding: 0 0 50px; background: #f6f7f9; }

/* Login and register: form left, collage panel right */
.auth-split { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--header-h)); padding: 0; background: #fff; place-items: stretch; }
.auth-split .auth-card { align-self: center; justify-self: center; width: 100%; max-width: 440px; padding: 48px 20px; background: transparent; border: 0; box-shadow: none; }
.auth-split .auth-card h1 { font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: 1.2; color: #000; }
.auth-split .btn-primary, .auth-split .btn-accent { background: var(--orange); }
.auth-split .btn-primary:hover, .auth-split .btn-accent:hover { background: var(--orange-2); }
.auth-art { position: relative; overflow: hidden; isolation: isolate; background: var(--navy); clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); display: flex; align-items: center; justify-content: center; padding: 40px 40px 40px 18%; }
.auth-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(19, 35, 95, .8); }
.auth-art .hero-mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.auth-art-text { display: flex; gap: 28px; align-items: center; }
.auth-art-text .bar { width: 4px; height: 150px; background: #fff; transform: rotate(14deg); border-radius: 4px; flex-shrink: 0; }
.auth-art-text p { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; line-height: 1.2; margin: 0; max-width: 340px; }
.auth-art-text b { color: #ff6b70; }
@media (max-width: 900px) {
  .ct-box { grid-template-columns: 1fr; }
  .ct-depts { grid-template-columns: 1fr 1fr; }
  .auth-split { grid-template-columns: 1fr; min-height: 0; }
  .auth-art { display: none; }
}
@media (max-width: 520px) {
  .ct-info, .ct-form .form-card { padding: 26px 20px; }
  .ct-depts { grid-template-columns: 1fr; }
}

/* Blog-style listings (career, notices) */
.blog-bar { display: flex; flex-wrap: wrap; gap: 6px; background: #e9eaec; border-radius: 8px; padding: 6px; margin-bottom: 22px; }
.blog-bar a, .blog-bar .chip { background: transparent; border: 0; color: #4b5563; font-size: .84rem; font-weight: 600; padding: .35rem .8rem; border-radius: 6px; }
.blog-bar a:hover { color: var(--orange); }
.blog-bar a.active, .blog-bar .chip.active { background: var(--orange); color: #fff; }
.blog-top { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 20px; }
.blog-lead { position: relative; border-radius: 12px; overflow: hidden; min-height: 380px; display: flex; align-items: flex-end; background: var(--navy); color: #fff; isolation: isolate; }
.blog-lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s; }
.blog-lead:hover img { transform: scale(1.04); }
.blog-lead::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .82)); }
.blog-lead .txt { padding: 26px; display: block; }
.blog-lead strong { display: block; font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.3; margin: .5rem 0; color: #fff; }
.blog-lead span span, .blog-lead .txt > span:last-child { font-size: .9rem; color: rgba(255, 255, 255, .85); }
.tg { display: inline-block; background: #e5e7eb; color: #374151; font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 4px; }
.blog-lead .tg { background: rgba(255, 255, 255, .2); color: #fff; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; }
.blog-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; color: inherit; box-shadow: 0 2px 10px rgba(0, 0, 0, .05); transition: transform .2s, box-shadow .2s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px -16px rgba(0, 0, 0, .3); color: inherit; }
.blog-card .ph { aspect-ratio: 16 / 8; background: #e5e7eb; display: block; overflow: hidden; }
.blog-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .bd { padding: 16px 18px 18px; display: block; }
.blog-card .meta { display: flex; gap: .8rem; align-items: center; font-size: .78rem; color: #6b7280; }
.blog-card .meta .icon { width: 14px; height: 14px; }
.blog-card strong { display: block; color: #111827; font-size: 1.02rem; line-height: 1.4; margin: .6rem 0 .4rem; }
.blog-card:hover strong { color: var(--orange); }
.blog-card .ex { display: block; font-size: .86rem; color: #4b5563; line-height: 1.6; }
@media (max-width: 1000px) {
  .blog-top { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-lead { min-height: 300px; }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* WhatsApp button */
.wa-float { position: fixed; right: 18px; bottom: 22px; z-index: 56; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(37, 211, 102, .7); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float .icon { width: 28px; height: 28px; }
@media (max-width: 1024px) { body.has-mobile-cta .wa-float { bottom: 92px; } }

/* Filter chips: red active like the rest of the site */
.chip.active, .chip:hover.active { background: var(--orange); border-color: var(--orange); color: #fff; }
.hero-mosaic { align-content: start; }
.auth-split { min-height: 640px; }
.chairman .pic .icon { width: 40%; height: 40%; opacity: .8; }

/* PNG brand logo */
.brand-logo-full { display: block; height: 48px; width: auto; max-width: 100%; }
.site-footer .brand-logo-full { height: 54px; }
.drawer-head .brand-logo-full { height: 38px; }
@media (max-width: 640px) { .site-header .brand-logo-full { height: 40px; } }
.site-header .brand-logo-full { height: 58px; margin-left: -6px; }
@media (max-width: 640px) { .site-header .brand-logo-full { height: 46px; } }

/* Text only screen readers announce, e.g. labels on icon-led search fields. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* Test card: access tier and schedule line. */
.test-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-bottom: .45rem; font-size: .76rem; color: #4b5563; }
.test-tier { display: inline-block; font-weight: 700; font-size: .72rem; line-height: 1.5; padding: 0 6px; border: 1px solid currentColor; border-radius: 4px; }
.test-tier.tier-free { color: #047857; }
.test-tier.tier-member { color: #1d4ed8; }
.test-tier.tier-premium { color: #b45309; }

/* Page change loader: the logo covers the switch between pages. Transform and opacity only. */
.page-loader { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; background: var(--ph-bg, #0A0118); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .22s ease-out, visibility 0s linear .22s; }
html[data-theme="light"] .page-loader { background: #fff; }
.page-loader-mark { display: grid; justify-items: center; gap: 1.1rem; transform: scale(.94); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.page-loader-mark img { width: 180px; max-width: 60vw; height: auto; animation: page-loader-breathe 1.4s ease-in-out infinite; }
.page-loader .pl-on-light { display: none; }
html[data-theme="light"] .page-loader .pl-on-light { display: block; }
html[data-theme="light"] .page-loader .pl-on-dark { display: none; }
.page-loader-bar { position: relative; display: block; width: 96px; height: 3px; overflow: hidden; border-radius: 2px; background: rgba(196, 140, 255, .18); }
.page-loader-bar > span { position: absolute; inset: 0; width: 40%; border-radius: inherit; background: linear-gradient(90deg, #E11CF2, #8A2BF5); animation: page-loader-slide 1s cubic-bezier(.6, 0, .4, 1) infinite; }
html[data-theme="light"] .page-loader-bar { background: rgba(100, 0, 115, .12); }
html.is-leaving .page-loader, html.is-arriving .page-loader { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .22s ease-out, visibility 0s; }
html.is-leaving .page-loader-mark, html.is-arriving .page-loader-mark { transform: scale(1); }
/* Arrival: already covered when the page paints, so no fade in. */
html.is-arriving .page-loader { transition: none; }
@keyframes page-loader-breathe { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.96); opacity: .8; } }
@keyframes page-loader-slide { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
@media (prefers-reduced-motion: reduce) {
  .page-loader-mark img, .page-loader-bar > span { animation: none; }
  .page-loader-mark { transform: none; transition: none; }
}

