:root {
    --bg: #f5f8fb;
    --ink: #102033;
    --muted: #5d6c7b;
    --line: #d7e1ea;
    --brand: #00a9e8;
    --brand-dark: #075e9a;
    --panel: #ffffff;
    --dark: #07111f;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
}

a { color: var(--brand-dark); }

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(18px, 4vw, 56px);
    background: var(--dark);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.brand img {
    display: block;
    width: 210px;
    max-width: 46vw;
    height: auto;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

nav a {
    color: #e9f5fb;
    font-size: 14px;
    text-decoration: none;
}

main { min-height: 70vh; }

.hero {
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: clamp(28px, 5vw, 80px);
    align-items: center;
    padding: clamp(48px, 7vw, 96px) clamp(18px, 6vw, 72px);
    background:
        radial-gradient(circle at 80% 20%, rgba(0,169,232,.28), transparent 32%),
        linear-gradient(135deg, #07111f 0%, #10233c 52%, #eaf7fc 52%, #f7fbff 100%);
    color: #fff;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 18% 45% auto auto;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 50%;
    animation: orbitPulse 8s ease-in-out infinite;
}

.hero-copy,
.hero-panel {
    position: relative;
    z-index: 1;
    animation: heroRise .7s ease-out both;
}

.hero-copy { max-width: 760px; }

.eyebrow {
    margin: 0 0 12px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

h1, h2, h3 { margin: 0; line-height: 1.08; }
h1 { font-size: clamp(42px, 6vw, 78px); }
h2 { font-size: clamp(28px, 3vw, 44px); }
h3 { font-size: clamp(22px, 2.5vw, 32px); }

.lead {
    max-width: 680px;
    margin: 24px 0 0;
    color: #d7e9f3;
    font-size: 20px;
}

.hero-actions,
.final-cta,
.admin-actions,
.certificate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-actions { margin-top: 34px; }

.access-note {
    margin: 18px 0 0;
    color: #bed6e7;
    font-size: 14px;
    font-weight: 700;
}

.button,
.mini-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.button {
    min-height: 46px;
    padding: 12px 20px;
    border: 0;
}

.button.primary { background: var(--brand); color: #06111d; }
.button.secondary { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.24); }
.button.light, .dark-text { color: var(--ink) !important; background: #fff !important; border: 1px solid var(--line) !important; }

.mini-button {
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid #bdd2e1;
    background: #fff;
    color: var(--brand-dark);
    white-space: nowrap;
}

.hero-panel {
    display: grid;
    gap: 14px;
    padding: 28px;
    background: rgba(255,255,255,.95);
    color: var(--ink);
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0,0,0,.18);
}

.hero-panel strong { font-size: 44px; line-height: 1; }
.panel-label, .muted { color: var(--muted); }

.section,
.page-intro,
.certificate-actions {
    max-width: 1120px;
    margin: 0 auto;
    padding: clamp(38px, 5vw, 72px) clamp(18px, 4vw, 28px);
}

.page-intro p {
    max-width: 760px;
    font-size: 18px;
    color: var(--muted);
}

.lesson-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: clamp(24px, 5vw, 56px);
    align-items: end;
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(42px, 6vw, 78px) clamp(18px, 4vw, 28px) 28px;
}

.lesson-hero p:not(.eyebrow) {
    max-width: 820px;
    color: var(--muted);
    font-size: 19px;
}

.lesson-hero-meta {
    display: grid;
    gap: 8px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.lesson-hero-meta strong {
    color: var(--brand-dark);
    font-size: 30px;
    line-height: 1;
}

.lesson-hero-meta span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.lesson-nav-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 1180px;
    margin: 0 auto 24px;
    padding: 0 clamp(18px, 4vw, 28px);
}

.section-heading {
    max-width: 780px;
    margin-bottom: 28px;
}

.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.line-item {
    padding: 18px 0;
    border-top: 1px solid var(--line);
    font-weight: 700;
}

.keyword-trigger-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.keyword-chip {
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid #b9d5e5;
    border-radius: 999px;
    background: #fff;
    color: var(--brand-dark);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.keyword-chip:hover,
.keyword-chip.active {
    transform: translateY(-2px);
    background: var(--brand-dark);
    color: #fff;
}

.public-module-list,
.module-list,
.hub-main,
.submission-review-list {
    display: grid;
    gap: 16px;
}

.public-module,
.module {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 22px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
    transition: opacity .22s ease, transform .22s ease, background .22s ease, padding .22s ease;
}

.public-module:hover,
.public-module.is-highlighted {
    transform: translateX(8px);
    padding-left: 14px;
    background: linear-gradient(90deg, rgba(0,169,232,.1), transparent);
}

.public-module.is-muted { opacity: .32; }

.module-count,
.module-number {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 8px;
    background: #dff5ff;
    color: var(--brand-dark);
    font-size: 22px;
    font-weight: 900;
}

.module-duration {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.public-module p:not(.module-duration) {
    max-width: 840px;
    margin: 8px 0 0;
    color: #33485c;
    font-size: 17px;
}

.opportunity-section {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, 1fr);
    gap: clamp(28px, 5vw, 70px);
}

.opportunity-copy { position: sticky; top: 24px; }
.opportunity-copy p:not(.eyebrow), .opportunity-points span { color: var(--muted); font-size: 17px; }
.opportunity-points { display: grid; gap: 16px; }
.opportunity-points div { display: grid; gap: 6px; padding: 20px 0; border-top: 1px solid var(--line); }
.opportunity-points strong { font-size: 22px; }

.section.dark {
    max-width: none;
    background: var(--dark);
    color: #fff;
}

.section.dark > * {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

.section.dark p:not(.eyebrow) { color: #d8e5ee; font-size: 18px; }

.form-card,
.verify-form,
.hub-sidebar,
.hub-panel,
.lesson-content,
.lesson-sidebar,
.review-card,
.verification {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.form-card,
.verify-form,
.verification {
    max-width: 760px;
    margin: 0 auto 72px;
    padding: 28px;
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    max-width: 960px;
    margin: 0 auto 72px;
    padding: 0 clamp(18px, 4vw, 28px);
}

.access-grid .form-card {
    width: 100%;
    max-width: none;
    margin: 0;
}

.form-card label,
.submission-form label,
.review-form label {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-weight: 800;
}

input, select, textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #bccbd8;
    border-radius: 6px;
    font: inherit;
    color: var(--ink);
    background: #fff;
}

input { min-height: 46px; }
textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.notice {
    max-width: 760px;
    margin: 0 auto 18px;
    padding: 14px 16px;
    border-radius: 7px;
    font-weight: 800;
}

.notice.error,
.verification.invalid { background: #fff1f1; color: #8b1e1e; }
.notice.success,
.verification.valid { background: #effff6; color: #116337; border-color: #b8efd0; }

.hub-shell,
.lesson-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    max-width: 1180px;
    margin: 0 auto 72px;
    padding: 0 clamp(18px, 4vw, 28px);
}

.lesson-layout { grid-template-columns: minmax(0, 1fr) 320px; }
.hub-sidebar, .hub-panel, .lesson-sidebar, .lesson-content { padding: 24px; }
.hub-sidebar img { width: 190px; max-width: 100%; height: auto; margin-bottom: 22px; }

.progress-ring {
    display: grid;
    gap: 4px;
    margin-top: 22px;
    padding: 22px;
    border-radius: 8px;
    background: #e9f8ff;
    color: var(--brand-dark);
    text-align: center;
}

.progress-ring strong { font-size: 40px; line-height: 1; }
.panel-heading, .module-check, .certificate-card, .admin-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.module-check,
.certificate-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f9fcff;
    color: var(--ink);
    text-decoration: none;
}

.module-check.complete { border-color: #a7e2c1; background: #effff6; }
.module-check span, .certificate-card span { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }

.module-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.lesson-sidebar { align-self: start; position: sticky; top: 18px; }
.lesson-content p, .lesson-content li { color: #26394d; font-size: 17px; }
.lesson-content h1, .lesson-content h2, .lesson-content h3 { margin-top: 26px; }

.learning-panel {
    margin: 0 0 34px;
    padding: 24px;
    border: 1px solid #c5dfec;
    border-radius: 8px;
    background: #f3fbff;
    animation: heroRise .55s ease-out both;
}

.learning-panel .section-heading {
    margin-bottom: 18px;
}

.video-resource-grid {
    display: grid;
    gap: 18px;
    margin-bottom: 18px;
}

.video-resource {
    display: grid;
    gap: 10px;
}

.video-resource h3 {
    margin-top: 0;
}

.video-resource p {
    margin: 0;
}

.video-frame {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #081525;
    aspect-ratio: 16 / 9;
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-link-card {
    display: grid;
    gap: 8px;
    padding: 22px;
    border-radius: 8px;
    background: #07111f;
    color: #d7e9f3;
}

.video-link-card span {
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.video-link-card a {
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    text-decoration: none;
}

.resource-link-list {
    display: grid;
    gap: 10px;
    margin-bottom: 22px;
}

.resource-link {
    display: grid;
    gap: 4px;
    padding: 14px 0;
    border-top: 1px solid #c5dfec;
    text-decoration: none;
}

.resource-link span {
    color: var(--muted);
}

.course-resource-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.course-resource {
    display: grid;
    align-content: start;
    gap: 9px;
    padding: 18px;
    border: 1px solid #c5dfec;
    border-radius: 8px;
    background: #fff;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.course-resource:hover {
    transform: translateY(-3px);
    border-color: #8fc7df;
    box-shadow: 0 12px 28px rgba(16,32,51,.08);
}

.course-resource span {
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.course-resource h3 {
    margin: 0;
    font-size: 21px;
}

.course-resource p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.course-resource strong {
    color: #20374c;
    font-size: 14px;
}

.lesson-path-panel {
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.lesson-path-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.lesson-path-grid span {
    display: grid;
    place-items: center;
    min-height: 42px;
    border-radius: 7px;
    background: #e9f8ff;
    color: var(--brand-dark);
    font-weight: 900;
    text-align: center;
}

.worksheet-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    max-width: 1180px;
    margin: 0 auto 72px;
    padding: 0 clamp(18px, 4vw, 28px);
}

.worksheet-content {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.worksheet-content h2 {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.worksheet-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.worksheet-content h3 {
    margin-top: 24px;
    font-size: 24px;
}

.worksheet-content li,
.worksheet-content p {
    color: #26394d;
    font-size: 17px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    max-width: 1120px;
    margin: 0 auto 18px;
    padding: 0 clamp(18px, 4vw, 28px);
}

.admin-stats > div {
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-stats span { display: block; color: var(--muted); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.admin-stats strong { display: block; margin-top: 8px; font-size: 34px; }

.admin-section, .admin-actions, .table-wrap {
    max-width: 1120px;
    margin: 0 auto 28px;
    padding: 0 clamp(18px, 4vw, 28px);
}

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
th, td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #edf6fb; color: #25384d; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }

.review-card { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; padding: 22px; }
.review-card.approved { border-color: #a7e2c1; background: #f4fff8; }
.review-card.revision_requested { border-color: #f0cf7b; background: #fffaf0; }
.review-card.rejected { border-color: #efb3b3; background: #fff7f7; }

.certificate {
    width: min(1120px, calc(100vw - 36px));
    min-height: 760px;
    margin: 32px auto 72px;
    padding: 62px;
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--brand), #0b2540, var(--brand)) border-box;
    border: 12px solid transparent;
    border-radius: 10px;
    color: var(--ink);
    text-align: center;
    box-shadow: 0 26px 70px rgba(12,23,36,.18);
}

.certificate-logo { width: 260px; max-width: 70%; height: auto; margin-bottom: 34px; }
.certificate h1 { color: #0b2540; font-size: clamp(38px, 5vw, 62px); }
.certificate h2 { margin: 24px 0 4px; color: var(--brand-dark); font-size: clamp(40px, 6vw, 72px); }
.certificate-text { max-width: 800px; margin: 22px auto 0; color: #334456; font-size: 19px; }
.certificate-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 44px 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.signature-row { display: flex; justify-content: space-between; gap: 28px; margin-top: 42px; color: var(--muted); font-size: 13px; text-align: left; }

.site-footer {
    padding: 28px clamp(18px, 4vw, 56px);
    background: var(--dark);
    color: #bfd2df;
    font-size: 13px;
}

.site-footer a { color: #fff; }

@keyframes heroRise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes orbitPulse {
    0%, 100% { opacity: .35; transform: scale(1); }
    50% { opacity: .75; transform: scale(1.08); }
}

@media (max-width: 820px) {
    .site-header, .hero, .module, .public-module, .opportunity-section, .signature-row, .lesson-hero { display: block; }
    nav { margin-top: 16px; }
    .hero { min-height: auto; background: linear-gradient(145deg, #07111f, #10233c); }
    .hero-panel { margin-top: 34px; }
    .grid.two, .form-grid, .hub-shell, .lesson-layout, .admin-stats, .review-card, .certificate-meta, .lesson-path-grid, .course-resource-grid, .worksheet-shell, .access-grid { grid-template-columns: 1fr; }
    .lesson-sidebar, .opportunity-copy { position: static; }
    .module-count, .module-number { margin-bottom: 14px; }
    .lesson-hero-meta {
        margin-top: 22px;
    }
    .certificate { padding: 32px 22px; border-width: 8px; }
}

@media print {
    .no-print, .site-header, .site-footer { display: none !important; }
    body { background: #fff; }
    .certificate { width: 100%; min-height: 7.5in; margin: 0; box-shadow: none; border-radius: 0; page-break-inside: avoid; }
    .worksheet-shell { display: block; margin: 0; padding: 0; }
    .worksheet-content { border: 0; padding: 0; }
}
