:root {
    --ink: #102032;
    --muted: #657283;
    --line: #dce7ee;
    --surface: #ffffff;
    --soft: #f4f8fb;
    --navy: #08284a;
    --blue: #0b78be;
    --teal: #00a7b5;
    --green: #0a9f69;
    --amber: #d9901f;
    --danger: #b42318;
    --shadow: 0 16px 40px rgba(8, 40, 74, .12);
    --shadow-soft: 0 10px 28px rgba(8, 40, 74, .08);
    --ring: 0 0 0 4px rgba(11, 120, 190, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(180deg, #f8fbfd 0%, #eef5f8 44%, #ffffff 100%);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
}
a { color: inherit; }
input, select, textarea, button { font: inherit; }

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px clamp(18px, 5vw, 64px);
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(220, 231, 238, .9);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(8, 40, 74, .06);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.brand img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    border: 2px solid #d8e8f0;
    box-shadow: 0 8px 18px rgba(8, 40, 74, .12);
}
.brand strong {
    color: #102033;
    font-size: 16px;
}
.site-header nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.site-header nav a {
    padding: 8px 10px;
    color: #32465b;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border-radius: 8px;
    transition: background .2s ease, color .2s ease;
}
.site-header nav a:hover { background: #edf6fb; color: var(--navy); }
.site-header .nav-cta {
    background: #e7f8f2;
    color: #047653;
    border: 1px solid #bce8d8;
    border-radius: 8px;
}

.hero {
    position: relative;
    min-height: 720px;
    display: grid;
    align-items: center;
    overflow: hidden;
    color: #fff;
}
.hero-media,
.hero-media img,
.hero-overlay {
    position: absolute;
    inset: 0;
}
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 900ms ease;
}
.hero-media img.active { opacity: 1; }
.hero-overlay {
    background:
        radial-gradient(circle at 18% 45%, rgba(0, 167, 181, .20), transparent 30%),
        linear-gradient(90deg, rgba(4, 20, 38, .96) 0%, rgba(4, 20, 38, .80) 42%, rgba(4, 20, 38, .28) 74%, rgba(4, 20, 38, .10) 100%),
        linear-gradient(0deg, rgba(4, 20, 38, .48), rgba(4, 20, 38, .08));
}
.hero-content {
    position: relative;
    max-width: 820px;
    padding: 120px clamp(18px, 6vw, 78px) 70px;
}
.eyebrow {
    margin: 0 0 12px;
    color: var(--teal);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.hero h1 {
    margin: 0;
    max-width: 720px;
    font-size: 68px;
    line-height: 1.02;
    letter-spacing: 0;
    text-shadow: 0 10px 32px rgba(0, 0, 0, .32);
}
.hero p:not(.eyebrow) {
    max-width: 650px;
    margin: 20px 0 0;
    color: #d9eaf5;
    font-size: 21px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}
.button,
button {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    padding: 11px 16px;
    cursor: pointer;
    font-weight: 800;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover,
button:hover { transform: translateY(-1px); }
.button.primary,
button.primary {
    background: linear-gradient(135deg, var(--blue), #035d9a);
    color: #fff;
    box-shadow: 0 12px 24px rgba(11, 120, 190, .25);
}
.button.secondary {
    background: rgba(255, 255, 255, .14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .34);
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 10px;
    max-width: 560px;
    margin: 42px 0 0;
}
.hero-stats div {
    padding: 16px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
    backdrop-filter: blur(10px);
}
.hero-stats dt { font-weight: 900; font-size: 20px; }
.hero-stats dd { margin: 4px 0 0; color: #d8e7f0; font-size: 13px; }

.section,
.motivation,
.active-classes {
    max-width: 1180px;
    margin: 0 auto;
    padding: 72px clamp(18px, 4vw, 36px);
}
.section {
    position: relative;
}
.section::before {
    content: "";
    position: absolute;
    top: 0;
    left: clamp(18px, 4vw, 36px);
    right: clamp(18px, 4vw, 36px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(11,120,190,.20), transparent);
}
.alert-wrap { max-width: 1180px; margin: 24px auto 0; padding: 0 clamp(18px, 4vw, 36px); }
.alert {
    border-radius: 8px;
    padding: 14px 16px;
    border: 1px solid;
    background: #fff;
    font-weight: 700;
}
.alert.success { color: #075f46; border-color: #a7dbc8; }
.alert.error { color: var(--danger); border-color: #f1b8b4; }

.intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 40px;
    align-items: start;
    background: #ffffff;
    border: 1px solid #dbe9f0;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    margin-top: 34px;
}
.section h2,
.motivation h2 {
    margin: 0;
    font-size: 42px;
    line-height: 1.08;
    letter-spacing: 0;
}
.section p,
.motivation p {
    color: var(--muted);
    font-size: 17px;
}
.notice {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
    border: 1px solid #cfe0ea;
    border-radius: 8px;
    padding: 22px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.notice::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--blue), var(--green));
}
.notice strong { font-size: 18px; }
.notice a { color: var(--green); font-weight: 900; }
.live-counts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 16px 0;
}
.live-counts span {
    display: grid;
    gap: 2px;
    padding: 12px;
    background: #f3f9fc;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    font-size: 13px;
}
.live-counts strong {
    color: var(--navy);
    font-size: 24px;
}

.trainers {
    padding-top: 20px;
}

.active-classes {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(280px, 430px) minmax(0, 780px);
    gap: 28px;
    justify-content: center;
    background:
        linear-gradient(135deg, #ffffff 0%, #eef7fb 54%, #f7fbfd 100%);
    border-bottom: 1px solid var(--line);
}
.active-copy {
    align-self: center;
}
.active-copy h2 {
    margin: 0;
    font-size: 40px;
    line-height: 1.08;
}
.active-copy p:not(.eyebrow) {
    color: var(--muted);
    font-size: 17px;
}
.active-class-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.active-class-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 22px;
    background: #fff;
    border: 1px solid #cfe1eb;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.active-class-card:hover {
    transform: translateY(-3px);
    border-color: #9ac8df;
    box-shadow: 0 18px 42px rgba(8, 40, 74, .14);
}
.active-class-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--blue), var(--green), var(--amber));
}
.active-class-card span,
.active-class-card p {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}
.active-class-card h3 {
    margin: 14px 0 10px;
    font-size: 25px;
    line-height: 1.16;
}
.active-class-card button {
    width: 100%;
    margin-top: 18px;
    background: var(--navy);
    color: #fff;
}
.section-head {
    display: grid;
    gap: 8px;
    margin-bottom: 26px;
}
.section-head p { max-width: 760px; margin: 0; }
.trainer-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.trainer-list article {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 5px solid var(--blue);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 8px 22px rgba(8, 40, 74, .07);
}
.trainer-list span {
    display: block;
    color: var(--amber);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.trainer-list strong { display: block; margin-top: 6px; font-size: 19px; }

.motivation {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 680px) minmax(280px, 440px);
    justify-content: center;
    gap: 48px;
    background: #08284a;
    color: #fff;
}
.motivation p { color: #d3e6f3; }
.motivation ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}
.motivation li {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    padding: 16px;
    color: #eef7fb;
}

.courses { background: var(--soft); }
.courses .section-head {
    background: #fff;
    border: 1px solid #dce9f0;
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
}
.course-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px;
    margin: 0 0 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}
.course-tabs button {
    background: transparent;
    color: #40556a;
    border: 1px solid transparent;
}
.course-tabs button.active {
    background: var(--navy);
    color: #fff;
}
.course-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 12px;
    margin-bottom: 18px;
    position: sticky;
    top: 74px;
    z-index: 5;
    padding: 10px;
    background: rgba(244, 248, 251, .90);
    border: 1px solid rgba(220, 231, 238, .82);
    border-radius: 8px;
    backdrop-filter: blur(12px);
}
input, select, textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid #cbdbe5;
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
    color: var(--ink);
    transition: border-color .18s ease, box-shadow .18s ease;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: var(--ring);
}
textarea { resize: vertical; }
.featured-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 8px;
}
.course-chip {
    flex: 0 0 auto;
    background: #e6f4fb;
    color: #075b90;
    border: 1px solid #b9dff3;
    box-shadow: 0 6px 15px rgba(8, 40, 74, .06);
}
.course-chip:hover {
    background: #d7effb;
}
.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.course-card {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow-soft);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.course-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #cfe2ec;
}
.course-card.is-active::before { background: var(--green); }
.course-card.is-exam::before { background: var(--amber); }
.course-card:hover {
    transform: translateY(-2px);
    border-color: #b5d6e8;
    box-shadow: 0 16px 34px rgba(8, 40, 74, .12);
}
.course-card.is-active {
    border-color: rgba(10, 159, 105, .42);
    background: linear-gradient(180deg, #ffffff 0%, #f2fbf7 100%);
}
.active-switch {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #e1f8ef;
    color: #08734d;
    border: 1px solid #b9ead7;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(10, 159, 105, .16);
}
.active-switch i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(10, 159, 105, .55);
    animation: activePulse 1.45s ease-in-out infinite;
}
@keyframes activePulse {
    0% { box-shadow: 0 0 0 0 rgba(10, 159, 105, .55); opacity: 1; }
    70% { box-shadow: 0 0 0 8px rgba(10, 159, 105, 0); opacity: .72; }
    100% { box-shadow: 0 0 0 0 rgba(10, 159, 105, 0); opacity: 1; }
}
.course-card.is-exam {
    background: linear-gradient(180deg, #ffffff 0%, #fff8ed 100%);
    border-color: #eed6ab;
}
.course-card .course-meta {
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
    max-width: calc(100% - 78px);
    line-height: 1.45;
}
.course-card h3 {
    margin: 10px 0 18px;
    font-size: 18px;
    line-height: 1.25;
    padding-right: 42px;
}
.course-card button {
    background: #f3f8fb;
    color: var(--navy);
    border: 1px solid var(--line);
    margin-top: auto;
}
.course-card.is-active button {
    background: #0a9f69;
    color: #fff;
    border-color: #0a9f69;
}
.course-card.hidden { display: none; }

.enroll {
    display: grid;
    grid-template-columns: 370px minmax(0, 1fr);
    gap: 38px;
    align-items: start;
    background: linear-gradient(135deg, #f8fbfd 0%, #ffffff 100%);
}
.enroll-form,
.admin-section,
.login-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.enroll-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 24px;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, rgba(11,120,190,.35), rgba(10,159,105,.22), rgba(217,144,31,.22)) border-box;
    border: 1px solid transparent;
}
.course-select-label {
    padding: 14px;
    border: 1px solid #dceaf1;
    border-radius: 8px;
    background: #f8fbfd;
}
.course-combobox {
    position: relative;
}
.course-select-search {
    background: #fff;
    border-color: #bcd7e6;
}
.course-search-list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 30;
    display: none;
    max-height: 310px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #bad7e7;
    border-radius: 8px;
    box-shadow: 0 20px 46px rgba(8, 40, 74, .18);
    padding: 8px;
}
.course-combobox.open .course-search-list {
    display: grid;
    gap: 6px;
}
.course-search-list button {
    width: 100%;
    min-height: auto;
    display: grid;
    gap: 3px;
    text-align: left;
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
}
.course-search-list button:hover,
.course-search-list button.is-highlighted {
    background: #eef8fd;
    border-color: #bfdeef;
    transform: none;
}
.course-search-list button.is-selected {
    background: #e5f8ef;
    border-color: #afe5cf;
}
.course-search-list strong {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}
.course-search-list strong em {
    flex: 0 0 auto;
    padding: 3px 8px;
    border-radius: 999px;
    background: #e4f8ee;
    color: #08734d;
    border: 1px solid #afe5cf;
    font-size: 10px;
    font-style: normal;
    font-weight: 1000;
    text-transform: uppercase;
}
.course-search-list button.is-active-option {
    border-color: #afe5cf;
    background: #f5fdf9;
}
.course-search-list span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}
.course-search-list .no-results {
    padding: 13px 12px;
    color: var(--muted);
    font-weight: 800;
}
label { display: grid; gap: 7px; font-weight: 800; font-size: 14px; }
.wide { grid-column: 1 / -1; }
.check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 700;
}
.check input {
    width: auto;
    min-height: auto;
    margin-top: 4px;
}
.footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 28px clamp(18px, 5vw, 64px);
    border-top: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    box-shadow: 0 -8px 24px rgba(8, 40, 74, .05);
}

.admin-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}
.login-card {
    width: min(420px, 100%);
    padding: 26px;
}
.admin-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 26px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.admin-user-chip {
    margin-left: auto;
    padding: 7px 11px;
    border-radius: 999px;
    background: #eef7fb;
    color: var(--navy);
    border: 1px solid #cfe2ec;
    font-size: 12px;
    font-weight: 900;
    text-transform: capitalize;
}
.admin-bar button,
.admin-section button,
.user-row button,
.course-row button,
.delete-row button {
    background: var(--navy);
    color: #fff;
}
.admin-main {
    max-width: 1320px;
    margin: 0 auto;
    padding: 28px 18px 70px;
}
.admin-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.admin-stats div {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
}
.admin-stats strong { display: block; font-size: 30px; }
.admin-stats span { color: var(--muted); }
.admin-section {
    padding: 22px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-soft);
}
.admin-help {
    margin: -4px 0 16px;
    color: var(--muted);
}
.bulk-email-form {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 14px;
}
.csv-export-form {
    display: grid;
    grid-template-columns: minmax(240px, 360px) 170px;
    gap: 12px;
    align-items: end;
}
.enrollment-filters {
    display: grid;
    grid-template-columns: minmax(190px, 240px) minmax(260px, 1fr) 120px;
    gap: 12px;
    align-items: end;
    margin: 4px 0 16px;
    padding: 14px;
    border: 1px solid #d7e9f1;
    border-radius: 8px;
    background: linear-gradient(180deg, #f8fcfe 0%, #f1f8fb 100%);
}
.filter-result-count {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid #cfe2ec;
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.filter-result-count strong {
    color: var(--navy);
    font-size: 22px;
    line-height: 1;
}
.table-scroll {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
    background: #fff;
}
.admin-table th,
.admin-table td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}
.admin-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f4f9fc;
    color: #34485c;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.admin-table tbody tr:nth-child(even) {
    background: #fbfdfe;
}
.admin-table tbody tr:hover {
    background: #eef7fb;
}
.admin-table small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}
.status {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 8px;
    background: #eef2f5;
    font-weight: 900;
    text-transform: capitalize;
    border: 1px solid #dbe5ec;
}
.status.accepted { background: #e4f8ee; color: #08734d; }
.status.rejected { background: #ffeceb; color: var(--danger); }
.status.pending { background: #fff7df; color: #946200; border-color: #efd99a; }
.mini-form {
    display: grid;
    gap: 8px;
    min-width: 280px;
    margin: 12px 0;
}
.form-status-note {
    padding: 8px 10px;
    border-radius: 8px;
    background: #e4f8ee;
    color: #08734d;
    border: 1px solid #afe5cf;
    font-size: 12px;
    font-weight: 900;
}
.form-status-note.error {
    background: #ffeceb;
    color: var(--danger);
    border-color: #ffc7c2;
}
button:disabled {
    opacity: .68;
    cursor: wait;
}
.admin-grid-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.admin-grid-form.compact {
    grid-template-columns: 140px minmax(220px, 1fr) 140px 112px 130px 80px 94px 86px 108px 136px;
    align-items: end;
}
.course-admin-list {
    display: grid;
    gap: 8px;
    margin-top: 20px;
}
.user-admin-list {
    display: grid;
    gap: 8px;
    margin-top: 20px;
}
.user-form {
    grid-template-columns: minmax(150px, 1fr) minmax(180px, 1fr) minmax(180px, 1fr) 160px 160px;
    align-items: end;
}
.user-row {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(180px, 1fr) minmax(180px, 1fr) 150px 82px;
    gap: 8px;
    align-items: center;
}
.course-row {
    display: grid;
    grid-template-columns: 145px minmax(220px, 1fr) 130px 100px 118px 68px 70px 82px 100px 70px;
    gap: 8px;
    align-items: center;
}
.delete-row { margin-bottom: 8px; }
.danger,
button.danger {
    background: var(--danger) !important;
    color: #fff;
}

@media (max-width: 920px) {
    .site-header {
        position: sticky;
        align-items: flex-start;
        flex-direction: column;
        padding: 12px 18px;
    }
    .site-header nav {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
    }
    .hero { min-height: 680px; }
    .hero-content { padding-top: 72px; }
    .hero h1 { font-size: 52px; }
    .hero p:not(.eyebrow) { font-size: 19px; }
    .section h2, .motivation h2 { font-size: 36px; }
    .intro, .enroll, .motivation, .active-classes { grid-template-columns: 1fr; }
    .active-copy h2 { font-size: 36px; }
    .trainer-list, .course-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-stats { grid-template-columns: repeat(3, 1fr); }
    .admin-grid-form { grid-template-columns: 1fr 1fr; }
    .admin-grid-form.compact, .course-row, .bulk-email-form, .csv-export-form, .enrollment-filters, .user-form, .user-row { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    body { background: #fff; }
    .brand strong { font-size: 14px; }
    .brand img { width: 40px; height: 40px; }
    .site-header nav a {
        flex: 0 0 auto;
        padding: 8px 9px;
        font-size: 13px;
        background: #f5f9fb;
        border: 1px solid var(--line);
        border-radius: 8px;
    }
    .hero {
        min-height: 710px;
        align-items: end;
    }
    .hero-media img {
        object-position: 58% center;
    }
    .hero-overlay {
        background:
            linear-gradient(0deg, rgba(4, 20, 38, .96) 0%, rgba(4, 20, 38, .86) 44%, rgba(4, 20, 38, .35) 100%),
            linear-gradient(90deg, rgba(4, 20, 38, .78), rgba(4, 20, 38, .18));
    }
    .hero-content {
        width: 100%;
        padding: 190px 18px 28px;
    }
    .hero h1 {
        font-size: 38px;
        line-height: 1.08;
    }
    .hero p:not(.eyebrow) {
        margin-top: 14px;
        font-size: 16px;
        line-height: 1.55;
    }
    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        margin-top: 22px;
    }
    .hero-actions .button {
        width: 100%;
        text-align: center;
    }
    .hero-stats {
        margin-top: 22px;
        grid-template-columns: 1fr 1fr;
    }
    .trainer-list,
    .course-grid,
    .course-tools,
    .enroll-form,
    .admin-stats,
    .admin-grid-form {
        grid-template-columns: 1fr;
    }
    .section, .motivation, .active-classes {
        padding: 48px 18px;
    }
    .section h2, .motivation h2, .active-copy h2 {
        font-size: 31px;
    }
    .intro {
        gap: 22px;
    }
    .notice {
        padding: 18px;
    }
    .live-counts {
        grid-template-columns: 1fr 1fr;
    }
    .trainer-list article,
    .course-card,
    .active-class-card,
    .enroll-form,
    .admin-section,
    .login-card {
        box-shadow: 0 8px 18px rgba(8, 40, 74, .08);
    }
    .course-card {
        min-height: 142px;
        padding: 16px;
    }
    .course-tools {
        position: static;
        padding: 0;
        background: transparent;
        border: 0;
        backdrop-filter: none;
    }
    .active-class-grid {
        grid-template-columns: 1fr;
    }
    .active-class-card {
        min-height: 190px;
    }
    .course-tabs {
        display: grid;
        grid-template-columns: 1fr;
    }
    .enroll {
        gap: 20px;
    }
    .enroll-form {
        padding: 18px;
        gap: 12px;
    }
    input, select, textarea {
        min-height: 48px;
        font-size: 16px;
    }
    .footer { flex-direction: column; }
}

@media (max-width: 420px) {
    .hero { min-height: 740px; }
    .hero h1 { font-size: 34px; }
    .hero-stats { grid-template-columns: 1fr; }
    .live-counts { grid-template-columns: 1fr; }
}
