:root {
  --primary: #5638d8;
  --primary-dark: #35218d;
  --secondary: #0f726d;
  --accent: #ffcf4a;
  --coral: #ff7657;
  --mint: #dff8ef;
  --lavender: #eeeafd;
  --cream: #fff8e9;
  --surface: #ffffff;
  --background: #faf9ff;
  --text: #211d35;
  --muted: #6b667b;
  --border: #e5e1ef;
  --success: #16794f;
  --warning: #8a5a00;
  --danger: #b42318;
  --heading-font: "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --body-font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-sm: .75rem;
  --radius: 1.25rem;
  --radius-lg: 2rem;
  --shadow: 0 18px 55px rgba(54, 34, 120, .12);
  --section-space: clamp(4rem, 8vw, 7.5rem);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
body { margin: 0; color: var(--text); background: var(--background); font-family: var(--body-font); line-height: 1.65; overflow-x: hidden; }
img, video, iframe { max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { font-family: var(--heading-font); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; }
h1 { font-size: clamp(2.55rem, 7vw, 5.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
.container { width: min(calc(100% - 2rem), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.section-soft { background: var(--lavender); }
.section-mint { background: var(--mint); }
.section-cream { background: var(--cream); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; color: var(--primary); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; }
.eyebrow::before { content: ""; width: 1.7rem; height: .2rem; border-radius: 99px; background: var(--coral); }
.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.section-heading { max-width: 780px; margin-bottom: 2.5rem; }
.section-heading h2 { margin: .5rem 0 1rem; }
.center { text-align: center; margin-inline: auto; }
.skip-link { position: fixed; left: 1rem; top: -10rem; z-index: 9999; background: #fff; padding: .75rem 1rem; border-radius: .5rem; box-shadow: var(--shadow); }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; }

.btn { border: 0; border-radius: 999px; padding: .78rem 1.25rem; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: var(--primary); box-shadow: 0 8px 25px rgba(86, 56, 216, .25); }
.btn-primary:hover { color: #fff; background: var(--primary-dark); }
.btn-accent { color: #322400; background: var(--accent); }
.btn-coral { color: #fff; background: var(--coral); }
.btn-outline { color: var(--primary); background: transparent; border: 1px solid var(--primary); }
.btn-light { color: var(--text); background: #fff; }
.btn-danger { color: #fff; background: var(--danger); }
.btn-sm { min-height: 38px; padding: .45rem .85rem; font-size: .87rem; }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(250, 249, 255, .92); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(229, 225, 239, .85); }
.nav-shell { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { color: var(--text); display: inline-flex; align-items: center; gap: .65rem; font-family: var(--heading-font); font-weight: 900; font-size: 1.2rem; }
.brand:hover { color: var(--text); }
.brand-logo { position: relative; width: 3.6rem; aspect-ratio: 1119.07 / 1098.06; display: grid; place-items: center; overflow: hidden; border-radius: .7rem; background: #fff; isolation: isolate; }
.brand-logo img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; display: block; object-fit: contain; }
.brand-logo-fallback { position: relative; z-index: 1; padding: .25rem; color: #171528; font-size: .52rem; font-weight: 900; line-height: 1.05; text-align: center; }
.brand-logo-light { background: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.main-nav { display: flex; align-items: center; gap: clamp(.7rem, 2vw, 1.5rem); }
.main-nav > a:not(.btn) { color: var(--text); font-weight: 700; }
.nav-toggle { display: none; border: 0; background: transparent; font-size: 1.7rem; min-width: 44px; min-height: 44px; }

.hero { position: relative; min-height: 690px; display: grid; align-items: center; padding: clamp(4rem, 9vw, 8rem) 0; isolation: isolate; background: radial-gradient(circle at 85% 15%, #ffdda3 0 13%, transparent 13.2%), radial-gradient(circle at 6% 86%, #d8f5ec 0 14%, transparent 14.2%), linear-gradient(145deg, #f7f2ff, #fff 48%, #fff4df); }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 44% 56% 62% 38% / 55% 43% 57% 45%; filter: blur(.2px); }
.hero::before { width: 420px; height: 420px; right: -100px; top: 80px; background: linear-gradient(135deg, #7758e8, #5231cb); transform: rotate(18deg); }
.hero::after { width: 170px; height: 170px; left: -55px; bottom: 35px; background: var(--coral); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero-copy h1 { margin: .65rem 0 1.25rem; max-width: 10ch; }
.hero-copy h1 span { color: var(--primary); position: relative; }
.hero-copy h1 span::after { content: ""; position: absolute; height: .16em; left: 0; right: 0; bottom: -.04em; border-radius: 100%; background: var(--accent); transform: rotate(-2deg); z-index: -1; }
.hero-copy .lede { margin-bottom: 2rem; }
.hero-search { margin-top: 2rem; max-width: 620px; padding: .55rem; display: flex; background: #fff; border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow); }
.hero-search input { border: 0; background: transparent; flex: 1; min-width: 0; padding-inline: 1rem; }
.hero-search input:focus { outline: 0; }
.hero-visual { position: relative; min-height: 470px; }
.hero-visual img { width: 88%; height: 450px; object-fit: cover; border-radius: 48% 52% 30% 70% / 48% 30% 70% 52%; box-shadow: var(--shadow); position: absolute; right: 0; }
.float-card { position: absolute; z-index: 2; background: #fff; padding: 1rem 1.2rem; border-radius: var(--radius); box-shadow: var(--shadow); font-weight: 800; }
.float-card.one { top: 35px; left: -25px; }
.float-card.two { right: -10px; bottom: 20px; }
.float-icon { width: 2.3rem; height: 2.3rem; display: inline-grid; place-items: center; border-radius: .8rem; margin-right: .5rem; background: var(--mint); }

.trust-strip { margin-top: -2rem; position: relative; z-index: 3; }
.trust-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1.25rem 2rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.trust-item { display: flex; align-items: center; gap: .8rem; font-weight: 750; }
.trust-item span { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; flex: 0 0 auto; border-radius: 50%; background: var(--lavender); }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.course-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.course-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.course-image { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--lavender); }
.course-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.course-card:hover .course-image img { transform: scale(1.04); }
.course-badge { position: absolute; top: 1rem; left: 1rem; background: rgba(255,255,255,.94); padding: .4rem .75rem; border-radius: 999px; font-size: .75rem; font-weight: 850; }
.course-body { padding: 1.35rem; }
.course-body h3 { margin: .5rem 0 .65rem; }
.course-body h3 a { color: var(--text); }
.course-meta { color: var(--muted); font-size: .88rem; display: flex; flex-wrap: wrap; gap: .45rem 1rem; margin: .8rem 0; }
.course-footer { padding-top: 1rem; margin-top: 1rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: .75rem; align-items: center; }
.price { font-weight: 900; color: var(--primary); }
.tag { display: inline-flex; padding: .35rem .7rem; border-radius: 999px; font-size: .76rem; font-weight: 800; background: var(--lavender); color: var(--primary-dark); }

.catalogue-section { min-height: 70vh; padding: clamp(4rem, 8vw, 7rem) 0; color: #fff; background: #00715f; }
.catalogue-heading { max-width: 760px; margin: 0 auto 2.5rem; text-align: center; }
.catalogue-heading span { display: block; margin-bottom: .65rem; color: #baf4df; font-size: .78rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.catalogue-heading h1 { margin: 0; font-size: clamp(3rem, 7vw, 5.5rem); }
.catalogue-heading p { margin: 1rem auto 0; max-width: 56ch; color: rgba(255,255,255,.82); font-size: 1.08rem; }
.catalogue-filter { margin: 0 0 2rem; color: var(--text); }
.catalogue-results-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 1.5rem; }
.catalogue-results-heading p { margin: 0; color: rgba(255,255,255,.86); }
.catalogue-results-heading strong { color: #fff; font-size: 1.35rem; }
.catalogue-results-heading a { color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: .2em; }
.catalogue-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; align-items: stretch; }
.catalogue-card { min-width: 0; min-height: 480px; padding: clamp(1.65rem, 3vw, 2.35rem); display: flex; flex-direction: column; align-items: center; text-align: center; color: #fff; background: var(--catalogue-card-colour); border-radius: 2rem; box-shadow: 0 18px 45px rgba(0,0,0,.16); transition: transform .24s ease, box-shadow .24s ease; }
.catalogue-card:hover { transform: translateY(-8px); box-shadow: 0 26px 55px rgba(0,0,0,.23); }
.catalogue-card-icon { width: 5rem; height: 5rem; margin-bottom: 1.35rem; display: grid; place-items: center; color: #fff; }
.catalogue-card-icon svg { width: 100%; height: 100%; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.catalogue-card h3 { margin: 0 0 1rem; color: #fff; font-size: clamp(1.55rem, 2.5vw, 2.05rem); }
.catalogue-card p { margin: 0 0 1.75rem; color: rgba(255,255,255,.92); line-height: 1.7; overflow-wrap: anywhere; }
.catalogue-card-price { margin-top: auto; margin-bottom: .75rem; padding: .35rem .75rem; color: #fff; border: 1px solid rgba(255,255,255,.48); border-radius: 999px; font-size: .78rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.catalogue-card-button { min-height: 48px; padding: .78rem 1.6rem; display: inline-flex; align-items: center; justify-content: center; color: #17233b; background: #fff; border: 2px solid #fff; border-radius: 999px; font-size: .82rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; transition: transform .2s ease, background .2s ease, color .2s ease; }
.catalogue-card-button:hover { color: #17233b; background: #f3fff9; transform: translateY(-2px); }
.catalogue-card-button:focus-visible { outline-color: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.28); }
.catalogue-empty .empty-state { color: var(--text); }

.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.category-card { padding: 1.6rem 1.25rem; min-height: 175px; border-radius: var(--radius); color: var(--text); border: 1px solid rgba(0,0,0,.04); transition: transform .2s ease; }
.category-card:hover { color: var(--text); transform: rotate(-1deg) translateY(-4px); }
.category-card:nth-child(5n+1) { background: #fde5de; }
.category-card:nth-child(5n+2) { background: #e7e2ff; }
.category-card:nth-child(5n+3) { background: #ddf6ee; }
.category-card:nth-child(5n+4) { background: #fff0c5; }
.category-card:nth-child(5n) { background: #dfeeff; }
.category-icon { width: 3.25rem; height: 3.25rem; display: grid; place-items: center; background: rgba(255,255,255,.8); border-radius: 1rem; font-size: 1.45rem; margin-bottom: 1rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: step; }
.step { position: relative; background: #fff; border-radius: var(--radius-lg); padding: 2rem; border: 1px solid var(--border); counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; color: #fff; background: var(--primary); font-weight: 900; margin-bottom: 1.3rem; }
.step:nth-child(2)::before { background: var(--coral); }
.step:nth-child(3)::before { background: var(--secondary); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 6rem); align-items: center; }
.feature-visual { min-height: 470px; position: relative; }
.feature-visual img { width: 100%; height: 470px; object-fit: cover; border-radius: 40% 60% 55% 45% / 55% 35% 65% 45%; }
.check-list { padding: 0; list-style: none; display: grid; gap: .85rem; }
.check-list li { display: flex; gap: .8rem; align-items: flex-start; }
.check-list li::before { content: "✓"; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; flex: 0 0 auto; border-radius: 50%; color: var(--success); background: var(--mint); font-weight: 900; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat-card { padding: 1.75rem; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; }
.stat-value { font-family: var(--heading-font); font-size: clamp(2rem, 5vw, 3.4rem); color: var(--primary); font-weight: 900; line-height: 1; }
.stat-label { color: var(--muted); margin-top: .5rem; }

.page-hero { padding: clamp(3.5rem, 8vw, 7rem) 0; background: linear-gradient(135deg, var(--lavender), #fff 55%, var(--cream)); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; width: 240px; height: 240px; right: -70px; top: -70px; border-radius: 45% 55% 65% 35%; background: rgba(255, 118, 87, .18); }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); max-width: 13ch; margin: .5rem 0 1rem; }
.filter-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; margin: -2rem auto 2.5rem; position: relative; z-index: 2; box-shadow: var(--shadow); }
.filter-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr) auto; gap: .75rem; align-items: end; }
label { display: block; font-weight: 750; margin-bottom: .35rem; }
input, select, textarea { width: 100%; border: 1px solid #d9d4e6; border-radius: .8rem; min-height: 46px; padding: .7rem .8rem; background: #fff; color: var(--text); }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(86, 56, 216, .13); outline: 0; }
.form-group { margin-bottom: 1rem; }
.form-help, .text-muted { color: var(--muted); font-size: .9rem; }
.form-error { color: var(--danger); font-size: .88rem; }
.auth-shell { min-height: calc(100vh - 79px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, .8fr); }
.auth-art { background: linear-gradient(145deg, var(--primary), #926be9); color: #fff; padding: clamp(2rem, 7vw, 7rem); display: grid; align-content: center; position: relative; overflow: hidden; }
.auth-art::after { content: ""; position: absolute; width: 300px; height: 300px; right: -100px; bottom: -80px; border-radius: 50%; background: var(--accent); opacity: .8; }
.auth-art h1 { max-width: 8ch; }
.auth-panel { padding: clamp(2rem, 6vw, 6rem); display: grid; align-content: center; background: #fff; }
.auth-form { width: min(100%, 520px); margin-inline: auto; }
.auth-form h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 10px 30px rgba(54, 34, 120, .06); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }

.course-detail-hero { padding: clamp(3rem, 7vw, 6rem) 0; background: var(--primary-dark); color: #fff; }
.course-detail-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.course-detail-hero h1 { font-size: clamp(2.7rem, 6vw, 5rem); margin: .75rem 0 1rem; }
.course-detail-hero .lede { color: rgba(255,255,255,.78); }
.course-cover { border-radius: var(--radius-lg); overflow: hidden; background: var(--lavender); box-shadow: 0 25px 70px rgba(0,0,0,.25); }
.course-cover img { display: block; width: 100%; aspect-ratio: 16/11; object-fit: cover; }
.course-facts { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin: 1.5rem 0; }
.course-facts span { color: rgba(255,255,255,.85); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 2rem; align-items: start; }
.detail-sidebar { position: sticky; top: 105px; }
.curriculum { display: grid; gap: .8rem; }
.module { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.module summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 850; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.module summary::-webkit-details-marker { display: none; }
.lesson-row { padding: .85rem 1.2rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 1rem; }
.module summary small { display: block; margin-bottom: .2rem; color: var(--muted); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.course-map-row { align-items: center; }
.course-map-row.is-locked { background: #faf9fd; color: var(--muted); }
.course-map-item, .course-map-action { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.course-map-item strong, .course-map-item small { display: block; }
.course-map-item small { margin-top: .15rem; color: var(--muted); }
.course-map-action { flex: 0 0 auto; }
.course-map-action a { font-weight: 800; white-space: nowrap; }
.course-map-icon { width: 2.2rem; height: 2.2rem; flex: 0 0 2.2rem; display: inline-grid; place-items: center; border-radius: .65rem; color: #fff; background: #5a4b81; font-size: .78rem; font-weight: 900; }
.course-map-icon.theory { background: #276c8d; }
.course-map-icon.practical { background: #9a5b24; }
.course-map-icon.quiz { background: #6a4a9c; }
.course-map-icon.exam { background: #963d53; margin-bottom: .65rem; }
.faq-list { display: grid; gap: .8rem; }
.faq { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 1.1rem; }
.faq summary { cursor: pointer; padding: 1rem 0; font-weight: 850; }
.faq p { color: var(--muted); }
.empty-state { padding: 3rem 1.5rem; text-align: center; border: 2px dashed var(--border); border-radius: var(--radius); color: var(--muted); background: #fff; }
.alert { width: min(calc(100% - 2rem), var(--container)); margin: 1rem auto; border-radius: var(--radius-sm); padding: 1rem 1.2rem; border: 1px solid transparent; }
.alert-success { color: #0c5536; background: #dff8ef; border-color: #a9e1cd; }
.alert-warning { color: #674500; background: #fff2c8; border-color: #edd482; }
.alert-danger, .alert-error { color: #7a1711; background: #fee4e2; border-color: #f8b4b0; }
.alert-info { color: #174777; background: #e2f0ff; border-color: #b5d7f5; }
.status-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: .3rem .65rem; font-size: .74rem; font-weight: 850; background: var(--lavender); color: var(--primary-dark); }
.status-badge.active, .status-badge.paid, .status-badge.published, .status-badge.completed, .status-badge.approved, .status-badge.free { background: var(--mint); color: var(--success); }
.status-badge.pending, .status-badge.payment_required { background: #fff2c8; color: var(--warning); }
.status-badge.rejected, .status-badge.revoked, .status-badge.cancelled { background: #fee4e2; color: var(--danger); }

.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; }
.data-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.data-table th, .data-table td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #faf9fd; }
.data-table tr:last-child td { border-bottom: 0; }
.action-group { display: flex; flex-wrap: wrap; gap: .45rem; }

.dashboard-body { height: 100vh; overflow: hidden; background: #f6f5fb; }
.dashboard-shell { height: 100vh; min-height: 0; display: grid; grid-template-columns: 265px minmax(0, 1fr); overflow: hidden; }
.dashboard-sidebar { position: relative; height: 100%; min-height: 0; background: #24174d; color: #fff; padding: 1.5rem; display: flex; flex-direction: column; z-index: 100; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.dashboard-sidebar .brand-logo { width: 4.25rem; }
.brand-light { color: #fff; }
.brand-light:hover { color: #fff; }
.portal-label { color: rgba(255,255,255,.55); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; margin: 1.7rem .7rem .6rem; }
.dashboard-sidebar nav { display: grid; gap: .25rem; }
.dashboard-sidebar nav a, .sidebar-logout { color: rgba(255,255,255,.75); padding: .72rem .8rem; border-radius: .7rem; font-weight: 700; }
.dashboard-sidebar nav a:hover, .dashboard-sidebar nav a.active { color: #fff; background: rgba(255,255,255,.12); }
.sidebar-logout { margin-top: auto; }
.dashboard-main { height: 100vh; min-width: 0; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-gutter: stable; }
.dashboard-topbar { position: sticky; top: 0; z-index: 50; min-height: 76px; background: #fff; border-bottom: 1px solid var(--border); padding: 1rem clamp(1rem, 3vw, 2.25rem); display: flex; justify-content: flex-end; align-items: center; gap: 1rem; }
.dashboard-topbar div { display: grid; text-align: right; }
.dashboard-topbar small { color: var(--muted); }
.sidebar-toggle { display: none; margin-right: auto; border: 0; background: var(--lavender); border-radius: .7rem; min-height: 44px; padding: .5rem .8rem; font-weight: 800; }
.dashboard-content { min-width: 0; padding: clamp(1rem, 4vw, 2.5rem); }
.dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.dashboard-heading h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0; }
.dashboard-heading p { color: var(--muted); margin: .3rem 0 0; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.metric { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.metric-value { font-family: var(--heading-font); font-size: 2rem; font-weight: 900; color: var(--primary); }
.metric-label { color: var(--muted); font-size: .88rem; }
.dashboard-grid { display: grid; grid-template-columns: 1.45fr .8fr; gap: 1.5rem; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.35rem; margin-bottom: 1.5rem; }
.panel-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.panel-header h2 { font-size: 1.3rem; margin: 0; }
.progress-track { height: .65rem; background: var(--lavender); border-radius: 999px; overflow: hidden; }
.progress-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), #9271eb); border-radius: inherit; }

.player-shell { display: grid; grid-template-columns: minmax(250px,310px) minmax(0,1fr); align-items: start; gap: clamp(1rem,2vw,2rem); }
.player-nav { position: sticky; top: 92px; max-height: calc(100vh - 108px); background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.player-content { width: 100%; max-width: 900px; min-width: 0; margin-inline: auto; padding: clamp(.5rem,2vw,1.5rem) clamp(0rem,2vw,1.5rem) 4rem; }
.player-content > h1 { max-width: 15ch; font-size: clamp(2.5rem, 5vw, 4.6rem); }
.player-nav a { display: block; min-height: 44px; padding: .75rem; border-radius: .65rem; color: var(--text); }
.player-nav a.active { background: var(--lavender); color: var(--primary-dark); font-weight: 800; }
.player-nav h2 { margin: 1.2rem .75rem .35rem; color: var(--muted); font-family: var(--body-font); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.player-nav-toggle { display: none; margin: 1rem; }
.lesson-section { margin: 2rem 0; padding: clamp(1.2rem,3vw,2rem); background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.lesson-section h2 { font-size: clamp(1.45rem,3vw,2rem); }
.lesson-section h4 { margin: 1.5rem 0 .5rem; font-size: 1.15rem; }
.lesson-section pre { max-width: 100%; overflow-x: auto; padding: 1rem; color: #eeeafd; background: #171528; border-radius: .8rem; }
.worked-example { border-left: 5px solid var(--primary); }
.knowledge-check .form-card { margin-bottom: 1rem; box-shadow: none; }
.knowledge-check legend { float: none; font-size: 1rem; font-weight: 800; }
.learning-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.learning-action { display: flex; flex-direction: column; align-items: flex-start; padding: 1.2rem; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.learning-action .btn { margin-top: auto; }
.lesson-complete-form { margin: 2rem 0; }
.lesson-nav-buttons { margin-top: 2rem; }
.assessment-form { display: grid; gap: 1rem; }
.assessment-question { box-shadow: none; }
.assessment-question legend { float: none; width: auto; font-size: 1rem; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #141126; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.site-footer { color: rgba(255,255,255,.75); background: #1c1439; padding: 4.5rem 0 1.5rem; }
.site-footer .brand-logo { width: 4.4rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; }
.site-footer h2 { color: #fff; font-size: 1rem; letter-spacing: 0; }
.site-footer a:not(.brand):not(.btn) { color: rgba(255,255,255,.72); display: block; margin: .45rem 0; }
.site-footer label { color: #fff; }
.input-row { display: flex; gap: .5rem; }
.input-row input { min-width: 0; }
.footer-bottom { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; gap: 1rem; font-size: .85rem; }
.footer-copyright { display: inline-flex; align-items: center; gap: .65rem; }
.footer-copyright .brand-logo { width: 2.35rem; }
.certificate-verification-result { position: relative; padding-top: 2rem; }
.verification-result-brand { margin-bottom: 1rem; }
.verification-result-brand .brand-logo { width: 5rem; }

@media (max-width: 1024px) {
  .catalogue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-grid { grid-template-columns: repeat(3, 1fr); }
  .filter-grid > :first-child { grid-column: span 2; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .main-nav { display: none; position: absolute; left: 1rem; right: 1rem; top: 70px; padding: 1rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); align-items: stretch; flex-direction: column; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .45rem .6rem; }
  .hero-grid, .split, .course-detail-grid, .detail-layout { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-visual { min-height: 390px; }
  .hero-visual img { height: 380px; }
  .hero-copy h1 { max-width: 12ch; }
  .float-card.one { left: 0; }
  .trust-card { grid-template-columns: repeat(2,1fr); }
  .card-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .detail-sidebar { position: static; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-art { min-height: 320px; }
  .dashboard-shell { grid-template-columns: 1fr; }
  .dashboard-body { height: auto; min-height: 100vh; overflow: visible; }
  .dashboard-shell { height: auto; min-height: 100vh; overflow: visible; }
  .dashboard-main { height: auto; min-height: 100vh; overflow: visible; }
  .dashboard-sidebar { position: fixed; inset: 0 auto 0 0; width: min(82vw, 285px); height: 100dvh; transform: translateX(-105%); transition: transform .2s ease; box-shadow: var(--shadow); }
  .dashboard-sidebar.open { transform: translateX(0); }
  .sidebar-toggle { display: inline-flex; align-items: center; gap: .4rem; }
  .dashboard-topbar { justify-content: space-between; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .player-shell { grid-template-columns: 1fr; }
  .player-nav-toggle { display: inline-flex; }
  .player-nav { display: none; }
  .player-nav.open { display: block; position: fixed; inset: 76px auto 0 0; width: min(86vw, 330px); max-height: calc(100dvh - 76px); border-radius: 0; z-index: 60; box-shadow: var(--shadow); }
  .player-content { max-width: 760px; padding-top: 1rem; }
  .learning-actions { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .container { width: min(calc(100% - 1.25rem), var(--container)); }
  .section { padding-block: 4rem; }
  .hero { padding-top: 3.5rem; }
  .hero-visual { min-height: 320px; }
  .hero-visual img { width: 94%; height: 310px; }
  .float-card { font-size: .78rem; padding: .75rem; }
  .hero-search { border-radius: var(--radius); flex-direction: column; }
  .hero-search input { min-height: 48px; }
  .trust-strip { margin-top: -1rem; }
  .trust-card, .card-grid, .catalogue-grid, .steps, .category-grid, .stats, .metric-grid, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .catalogue-card { min-height: 0; padding: 1.7rem 1.35rem; }
  .catalogue-card-icon { width: 4.3rem; height: 4.3rem; }
  .catalogue-results-heading { align-items: flex-start; flex-direction: column; }
  .trust-item { font-size: .9rem; }
  .category-card { min-height: 145px; }
  .filter-grid { grid-template-columns: 1fr; }
  .filter-grid > :first-child { grid-column: auto; }
  .button-row .btn { width: 100%; }
  .course-footer { align-items: flex-start; flex-direction: column; }
  .auth-art { display: none; }
  .auth-panel { padding: 2.5rem 1rem; }
  .dashboard-heading { align-items: flex-start; flex-direction: column; }
  .dashboard-heading .btn { width: 100%; }
  .course-map-row, .course-map-action { align-items: flex-start; flex-direction: column; }
  .course-map-action { padding-left: 2.95rem; }
  .footer-bottom, .input-row { flex-direction: column; }
  .footer-bottom { text-align: center; }
  .footer-copyright { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
