:root {
    --bg: #f5f7f8;
    --surface: #ffffff;
    --surface-soft: #eef4f1;
    --text: #16201d;
    --muted: #66736f;
    --line: #dbe3e0;
    --primary: #146c5f;
    --primary-dark: #0f5148;
    --accent: #d99a2b;
    --danger: #b42318;
    --blue: #1d5fa7;
    --purple: #6f3fb0;
    --radius: 8px;
    --shadow: 0 16px 40px rgba(22, 32, 29, .08);
}

* {
    box-sizing: border-box;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.header-row,
.site-footer .container,
.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: var(--primary);
    color: white;
    font-weight: 700;
}

.brand strong,
.brand small {
    display: block;
}

.brand small,
.muted,
.page-title p,
.section-heading p,
td small {
    color: var(--muted);
}

.admin-link,
.public-nav a {
    color: var(--primary);
    font-weight: 700;
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.public-nav .nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: var(--radius);
    background: #005ed8;
    color: white;
}

.landing-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f7fbff 0%, #eef6ff 100%);
    border-bottom: 1px solid #d8e7fb;
}

.landing-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 22%, rgba(27, 100, 210, .10), transparent 28%),
        radial-gradient(circle at 88% 12%, rgba(20, 108, 95, .12), transparent 26%);
    pointer-events: none;
}

.landing-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(360px, 1fr);
    gap: 40px;
    align-items: center;
    min-height: 500px;
    padding: 48px 0;
}

.landing-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #e8f1ff;
    color: var(--blue);
    font-weight: 800;
    font-size: .8rem;
    text-transform: uppercase;
}

.landing-copy h1 {
    max-width: 680px;
    margin: 18px 0 14px;
    color: #061a3d;
    font-size: clamp(2.45rem, 4.8vw, 4.8rem);
    line-height: .98;
}

.landing-copy p {
    max-width: 640px;
    margin: 0;
    color: #43536f;
    font-size: 1.12rem;
}

.button-primary {
    background: #005ed8;
    box-shadow: 0 10px 24px rgba(0, 94, 216, .24);
}

.button-primary:hover {
    background: #004eaf;
}

.button-outline {
    border: 1px solid #0b63ce;
    background: white;
    color: #0b63ce;
}

.button-outline:hover {
    background: #eff6ff;
    color: #084d9e;
}

.landing-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 620px;
    margin-top: 28px;
}

.landing-stats div {
    padding: 14px;
    border: 1px solid #dbe8f8;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .82);
}

.landing-stats strong,
.landing-stats span {
    display: block;
}

.landing-stats strong {
    color: #061a3d;
    font-size: 1.35rem;
}

.landing-stats span {
    color: #60708b;
    font-weight: 700;
    font-size: .86rem;
}

.landing-visual {
    margin: 0;
}

.landing-visual img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 24px 34px rgba(6, 26, 61, .16));
}

.landing-section {
    padding: 34px 0;
    background: #fff;
}

.categories-section {
    padding-top: 26px;
}

.landing-heading {
    margin-bottom: 16px;
}

.landing-heading span {
    color: #0b63ce;
    font-weight: 800;
    text-transform: uppercase;
    font-size: .78rem;
}

.landing-heading h2 {
    margin: 3px 0 0;
    color: #061a3d;
    font-size: clamp(1.45rem, 2vw, 2rem);
}

.row-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.text-link {
    color: #0b63ce;
    font-weight: 800;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 70px;
    padding: 14px 16px;
    border: 1px solid #dce7f5;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 8px 22px rgba(6, 26, 61, .06);
}

.category-card span {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    height: 42px;
    border-radius: var(--radius);
    background: #e9f2ff;
    color: #005ed8;
    font-weight: 900;
}

.category-card strong {
    color: #061a3d;
}

.featured-course-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.featured-course-card {
    overflow: hidden;
    border: 1px solid #dce7f5;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 12px 28px rgba(6, 26, 61, .07);
}

.course-thumb {
    position: relative;
    min-height: 120px;
    background:
        linear-gradient(135deg, rgba(0, 94, 216, .92), rgba(20, 108, 95, .72)),
        url("../img/hero-capacita.png") center/cover;
}

.course-thumb-2 {
    background:
        linear-gradient(135deg, rgba(20, 108, 95, .92), rgba(246, 177, 45, .65)),
        url("../img/hero-capacita.png") center/cover;
}

.course-thumb-3 {
    background:
        linear-gradient(135deg, rgba(6, 26, 61, .88), rgba(0, 94, 216, .65)),
        url("../img/hero-capacita.png") center/cover;
}

.course-thumb-4 {
    background:
        linear-gradient(135deg, rgba(94, 61, 176, .88), rgba(0, 94, 216, .65)),
        url("../img/hero-capacita.png") center/cover;
}

.course-thumb span {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #fff;
    color: #005ed8;
    font-size: .78rem;
    font-weight: 900;
}

.featured-course-body {
    padding: 16px;
}

.featured-course-body h3 {
    margin: 0 0 8px;
    color: #061a3d;
}

.featured-course-body p {
    min-height: 66px;
    margin: 0;
    color: #4c5d78;
    font-size: .92rem;
}

.featured-course-body dl {
    display: grid;
    gap: 8px;
    margin: 16px 0;
}

.featured-course-body dt {
    color: #6a7890;
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.featured-course-body dd {
    margin: 0;
    color: #10213f;
    font-weight: 700;
}

.button-card {
    width: 100%;
    min-height: 38px;
    background: white;
    border: 1px solid #0b63ce;
    color: #0b63ce;
    box-shadow: none;
}

.benefit-strip {
    background: #f0f7ff;
    padding: 18px 0;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid #d8e7fb;
    border-radius: var(--radius);
    background: #fff;
}

.benefit-grid div {
    padding: 18px 20px;
    border-right: 1px solid #d8e7fb;
}

.benefit-grid div:last-child {
    border-right: 0;
}

.benefit-grid strong,
.benefit-grid span {
    display: block;
}

.benefit-grid strong {
    color: #061a3d;
}

.benefit-grid span {
    color: #60708b;
    font-size: .9rem;
}

.how-section {
    background: #fff;
}

.center-heading {
    text-align: center;
}

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

.steps-grid article {
    padding: 20px;
    border: 1px solid #dce7f5;
    border-radius: var(--radius);
    background: #fff;
}

.steps-grid span {
    color: #0b63ce;
    font-weight: 900;
}

.steps-grid h3 {
    margin: 8px 0;
    color: #061a3d;
}

.steps-grid p {
    margin: 0;
    color: #60708b;
}

.landing-cta {
    padding: 36px 0 46px;
    background: #fff;
}

.landing-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 28px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #061a3d, #005ed8);
    color: #fff;
}

.landing-cta-inner span {
    color: #9bc5ff;
    font-weight: 800;
    text-transform: uppercase;
}

.landing-cta-inner h2,
.landing-cta-inner p {
    margin: 0;
}

.landing-cta-inner p {
    margin-top: 8px;
    color: #dceaff;
}

.registration-hero {
    background: linear-gradient(135deg, #061a3d, #0b63ce);
    color: white;
}

.registration-hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 42px 0;
}

.registration-hero h1,
.registration-hero p {
    margin: 0;
}

.registration-hero h1 {
    margin-top: 10px;
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.registration-hero p {
    max-width: 760px;
    margin-top: 10px;
    color: #dceaff;
}

.registration-section {
    padding: 32px 0;
    background: #f4f8fc;
}

.registration-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.registration-aside {
    position: sticky;
    top: 18px;
    padding: 20px;
    border: 1px solid #dce7f5;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 12px 26px rgba(6, 26, 61, .06);
}

.registration-aside strong {
    display: block;
    color: #061a3d;
    margin-bottom: 10px;
}

.registration-aside ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 18px;
    color: #53647c;
}

.registration-main {
    min-width: 0;
}

.registration-form {
    display: grid;
    gap: 22px;
    padding: 24px;
}

.form-section {
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.form-section:last-of-type {
    border-bottom: 0;
    padding-bottom: 0;
}

.form-section-title {
    display: flex;
    gap: 12px;
    align-items: start;
    margin-bottom: 16px;
}

.form-section-title span {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    height: 36px;
    border-radius: var(--radius);
    background: #e9f2ff;
    color: #005ed8;
    font-weight: 900;
}

.form-section-title h2,
.form-section-title p {
    margin: 0;
}

.form-section-title h2 {
    color: #061a3d;
    font-size: 1.2rem;
}

.form-section-title p,
.field-help {
    color: var(--muted);
    font-weight: 400;
}

.document-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.privacy-panel {
    padding: 16px;
    border-radius: var(--radius);
    background: #f8fafc;
    border: 1px solid var(--line);
}

.home-hero {
    background:
        linear-gradient(90deg, rgba(15, 81, 72, .96), rgba(20, 108, 95, .84)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='700' viewBox='0 0 1200 700'%3E%3Crect width='1200' height='700' fill='%23e7ecea'/%3E%3Cpath d='M0 540 C220 450 330 610 560 520 C760 440 900 470 1200 330 L1200 700 L0 700 Z' fill='%23d99a2b' opacity='.42'/%3E%3Cpath d='M760 90 h300 v210 H760z' fill='%23ffffff' opacity='.24'/%3E%3Cpath d='M820 140 h180 v16 H820zM820 180 h130 v16 H820zM820 220 h210 v16 H820z' fill='%23146c5f' opacity='.45'/%3E%3C/svg%3E");
    background-size: cover;
    color: white;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 36px;
    align-items: center;
    min-height: 520px;
    padding: 72px 0;
}

.home-hero h1 {
    margin: 10px 0 14px;
    font-size: clamp(2.8rem, 5vw, 5.2rem);
    line-height: .95;
}

.home-hero p {
    max-width: 700px;
    font-size: 1.2rem;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.button-light {
    background: rgba(255, 255, 255, .92);
    color: var(--primary-dark);
}

.impact-panel {
    padding: 26px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .92);
    color: var(--text);
    box-shadow: var(--shadow);
}

.impact-panel strong {
    display: block;
    font-size: 4rem;
    line-height: 1;
}

.impact-panel span {
    display: block;
    color: var(--muted);
    font-weight: 700;
    margin-top: 8px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.info-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.info-card span {
    display: inline-flex;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 10px;
}

.info-card h2 {
    margin: 0 0 8px;
}

.info-card p {
    margin: 0;
    color: var(--muted);
}

.trust-band {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
}

.trust-band h2,
.trust-band p {
    margin: 0;
}

.trust-band p {
    margin-top: 8px;
    color: var(--muted);
}

.hero {
    background: linear-gradient(135deg, #0f5148 0%, #146c5f 64%, #d99a2b 100%);
    color: white;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: center;
    min-height: 360px;
    padding: 48px 0;
}

.hero h1 {
    margin: 8px 0;
    font-size: clamp(2.4rem, 4vw, 4.4rem);
    line-height: 1;
}

.hero p {
    max-width: 640px;
    font-size: 1.15rem;
}

.eyebrow {
    font-weight: 700;
    text-transform: uppercase;
    font-size: .78rem;
    letter-spacing: 0;
}

.hero-panel,
.form-card,
.panel,
.table-card,
.auth-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-panel {
    color: var(--text);
    padding: 24px;
}

.hero-panel strong,
.hero-panel span {
    display: block;
}

.hero-panel span {
    color: var(--muted);
    margin-top: 6px;
}

.section {
    padding: 48px 0;
}

.section-soft {
    background: var(--surface-soft);
}

.section-heading {
    margin-bottom: 24px;
}

.section-heading h2,
.page-title h1,
.panel h2 {
    margin: 0;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.course-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 340px;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.course-card h3 {
    margin: 0 0 10px;
}

.course-card dl {
    display: grid;
    gap: 10px;
    margin: 18px 0;
}

.course-card dt {
    color: var(--muted);
    font-size: .82rem;
}

.course-card dd {
    margin: 0;
    font-weight: 700;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: var(--radius);
    background: var(--primary);
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.button:hover {
    background: var(--primary-dark);
}

.button-secondary {
    background: var(--accent);
    color: #1f1605;
}

.button-muted {
    background: #e7ecea;
    color: var(--text);
}

.button-small {
    min-height: 36px;
    padding: 0 12px;
}

.button-wide {
    width: 100%;
}

.form-wrap {
    max-width: 920px;
}

.form-card,
.form-panel,
.filters {
    padding: 24px;
}

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

.span-2 {
    grid-column: span 2;
}

label {
    display: grid;
    gap: 7px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #cbd7d3;
    border-radius: var(--radius);
    background: white;
    color: var(--text);
    font: inherit;
}

textarea {
    resize: vertical;
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0;
    font-weight: 400;
}

.document-box {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f8faf9;
}

.document-box h2,
.document-box p {
    margin: 0;
}

.document-box p {
    margin: 6px 0 16px;
    color: var(--muted);
}

.check-row input {
    width: 18px;
    min-height: 18px;
    margin-top: 3px;
}

.field-error {
    color: var(--danger);
    font-weight: 700;
}

.alert {
    padding: 12px 14px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.alert-success {
    background: #e8f6ef;
    border-color: #bde7cf;
    color: #14532d;
}

.alert-error {
    background: #fff1f0;
    border-color: #f5b9b2;
    color: var(--danger);
}

.site-footer {
    padding: 24px 0;
    border-top: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
}

.auth-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--surface-soft);
}

.auth-card {
    width: min(420px, 100%);
    padding: 28px;
}

.auth-brand {
    padding-top: 0;
}

.auth-card form {
    display: grid;
    gap: 16px;
}

.admin-body {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    background: #13221f;
    color: white;
    padding: 18px;
}

.sidebar-brand {
    color: white;
}

.side-nav {
    display: grid;
    gap: 6px;
    margin-top: 14px;
}

.side-nav a {
    padding: 11px 12px;
    border-radius: var(--radius);
    color: #d7e5e0;
}

.side-nav a:hover {
    background: rgba(255, 255, 255, .09);
    color: white;
}

.admin-shell {
    min-width: 0;
}

.admin-topbar {
    height: 68px;
    padding: 0 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.admin-topbar span {
    margin-left: 8px;
    color: var(--muted);
}

.admin-content {
    padding: 24px;
}

.page-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.metric {
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.metric span,
.settings-grid span {
    color: var(--muted);
    display: block;
}

.metric strong {
    display: block;
    margin-top: 8px;
    font-size: 2rem;
}

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

.panel {
    padding: 20px;
}

.list-bars {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.list-bars div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.table-card {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 840px;
}

th,
td {
    padding: 13px 14px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: 0;
}

td small {
    display: block;
}

.table-action {
    color: var(--primary);
    font-weight: 700;
}

.document-actions {
    display: grid;
    gap: 6px;
    min-width: 145px;
}

.document-actions a {
    display: inline-flex;
    justify-content: center;
    min-height: 30px;
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--primary);
    font-weight: 700;
    background: #f8faf9;
}

.delete-inline {
    display: inline-flex;
    margin-left: 10px;
}

.delete-inline button {
    border: 0;
    background: transparent;
    color: var(--danger);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: #e7ecea;
    color: var(--text);
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap;
}

.badge-green {
    background: #dcfce7;
    color: #166534;
}

.badge-blue {
    background: #dbeafe;
    color: var(--blue);
}

.badge-red {
    background: #fee2e2;
    color: var(--danger);
}

.badge-purple {
    background: #eee7ff;
    color: var(--purple);
}

.badge-yellow {
    background: #fef3c7;
    color: #875a08;
}

.badge-gray {
    background: #eceff1;
    color: #52605c;
}

.inline-form {
    display: grid;
    grid-template-columns: 160px 130px 110px minmax(150px, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.compact-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    white-space: nowrap;
}

.compact-check input {
    width: 16px;
    min-height: 16px;
}

.upload-form {
    display: grid;
    gap: 8px;
    min-width: 190px;
}

.upload-form input[type="file"] {
    min-height: auto;
    padding: 8px;
}

code {
    display: block;
    max-width: 360px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: .82rem;
}

.filters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

.settings-grid {
    grid-template-columns: 1fr;
}

.settings-grid strong {
    word-break: break-word;
}

.empty-state {
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

@media (max-width: 980px) {
    .hero-grid,
    .home-hero-grid,
    .landing-hero-grid,
    .course-grid,
    .info-grid,
    .featured-course-grid,
    .category-grid,
    .steps-grid,
    .benefit-grid,
    .dashboard-grid,
    .metric-grid {
        grid-template-columns: 1fr 1fr;
    }

    .registration-layout {
        grid-template-columns: 1fr;
    }

    .registration-aside {
        position: static;
    }

    .admin-body {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .side-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .hero-grid,
    .home-hero-grid,
    .landing-hero-grid,
    .course-grid,
    .info-grid,
    .featured-course-grid,
    .category-grid,
    .steps-grid,
    .benefit-grid,
    .document-grid,
    .form-grid,
    .dashboard-grid,
    .metric-grid,
    .filters {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: span 1;
    }

    .hero {
        min-height: auto;
    }

    .page-title,
    .header-row,
    .site-footer .container,
    .admin-topbar,
    .trust-band,
    .row-heading,
    .landing-cta-inner,
    .registration-hero-inner {
        align-items: stretch;
        flex-direction: column;
    }

    .public-nav {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
        flex-wrap: wrap;
    }

    .landing-hero-grid {
        min-height: auto;
        padding: 34px 0;
    }

    .landing-copy h1 {
        font-size: 2.35rem;
    }

    .landing-stats {
        grid-template-columns: 1fr;
    }

    .landing-visual {
        order: -1;
    }

    .benefit-grid div {
        border-right: 0;
        border-bottom: 1px solid #d8e7fb;
    }

    .benefit-grid div:last-child {
        border-bottom: 0;
    }

    .registration-form,
    .form-card,
    .form-panel,
    .filters {
        padding: 16px;
    }

    table {
        min-width: 760px;
    }

    .side-nav {
        grid-template-columns: 1fr 1fr;
    }

    .inline-form {
        grid-template-columns: 1fr;
    }
}
