/**
 * Montoa Academy - Design System
 * Premium professional: navy/gold identity
 */

:root {
    --color-navy: #062F55;
    --color-navy-dark: #041f38;
    --color-navy-light: #eef3f7;
    --color-slate: #2B2F33;
    --color-gold: #c5a028;
    --color-gold-dark: #a8861f;
    --color-surface: #f8fafc;
    --color-surface-elevated: #ffffff;
    --color-muted: #64748b;
    --color-muted-light: #94a3b8;
    --color-border: #e2e8f0;
    --color-border-soft: #edf2f7;
    --color-surface-soft: #f1f5f9;
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --shadow-sm: 0 1px 2px rgba(6, 47, 85, 0.04), 0 1px 3px rgba(6, 47, 85, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(6, 47, 85, 0.06), 0 2px 4px -2px rgba(6, 47, 85, 0.04);
    --shadow-lg: 0 10px 25px -5px rgba(6, 47, 85, 0.08), 0 8px 10px -6px rgba(6, 47, 85, 0.04);
    --shadow-xl: 0 20px 40px -12px rgba(6, 47, 85, 0.12);
}

/* Body background — texture image with brand-aligned fallback */
body {
    background-color: var(--color-navy-light);
    background-image: url('../images/body-bg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }
}

/* Wordmark */
.wordmark {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
    font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
    text-transform: uppercase;
}

.wordmark-montoa {
    font-weight: 800;
    color: var(--color-navy);
    letter-spacing: 0.02em;
}

.wordmark-academy {
    font-weight: 300;
    color: var(--color-slate);
    letter-spacing: 0.38em;
    margin-left: 0.05em;
}

.wordmark--nav .wordmark-montoa { font-size: 1.125rem; }
.wordmark--nav .wordmark-academy { font-size: 0.65rem; margin-top: 0.15rem; }

.wordmark--lg .wordmark-montoa { font-size: clamp(2rem, 5vw, 3.25rem); }
.wordmark--lg .wordmark-academy { font-size: clamp(0.85rem, 2.2vw, 1.35rem); margin-top: 0.35rem; }

.wordmark--md .wordmark-montoa { font-size: 1.75rem; }
.wordmark--md .wordmark-academy { font-size: 0.8rem; margin-top: 0.25rem; }

.wordmark--inverse .wordmark-montoa { color: #ffffff; }
.wordmark--inverse .wordmark-academy { color: rgba(255, 255, 255, 0.88); }

.wordmark--inverse-on-navy .wordmark-montoa { color: #ffffff; }
.wordmark--inverse-on-navy .wordmark-academy { color: #d1d5db; }

/* Brand logo image */
.brand-logo {
    display: block;
    width: auto;
    height: auto;
    object-fit: contain;
}

.brand-logo--nav {
    height: 3.575rem;
    max-width: 13.65rem;
}

.brand-logo--md {
    height: 6.175rem;
    max-width: 19.5rem;
    margin-left: auto;
    margin-right: auto;
}

.brand-logo--lg {
    height: clamp(6.5rem, 15.6vw, 9.75rem);
    max-width: 26rem;
    margin-left: auto;
    margin-right: auto;
}

.brand-logo--on-dark {
    background: #ffffff;
    border-radius: 0.5rem;
    padding: 0.35rem 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* Page Shell */
.page-shell {
    position: relative;
    padding-top: clamp(3rem, 6vw, 6rem);
    padding-bottom: clamp(3rem, 6vw, 6rem);
    background: transparent;
}

@media (max-width: 640px) {
    .page-shell {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}

.page-container {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .page-container { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 1024px) {
    .page-container { padding-left: 2rem; padding-right: 2rem; }
}

.page-container--narrow { max-width: 48rem; }
.page-container--medium { max-width: 64rem; }

/* Page Header */
.page-header { margin-bottom: 2rem; }

.page-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-gold);
}

.page-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--color-navy);
    margin-top: 0.25rem;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

@media (max-width: 640px) {
    .page-title { font-size: 2rem; }
}

.page-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--color-muted);
    margin-top: 0.5rem;
    line-height: 1.8;
    max-width: 42rem;
}

.page-header-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .page-header-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* Cards */
.card {
    background: var(--color-surface-elevated);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1.25rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.card--interactive {
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card--interactive:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    border-color: rgba(197, 160, 40, 0.35);
}

.card--premium {
    border: 1px solid rgba(197, 160, 40, 0.28);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96)),
        radial-gradient(circle at top right, rgba(197, 160, 40, 0.12), transparent 30%);
}

.card--soft-navy {
    background: var(--color-navy-light);
    border-color: rgba(6, 47, 85, 0.14);
}

.card--soft-gold {
    background: rgba(197, 160, 40, 0.12);
    border-color: rgba(197, 160, 40, 0.22);
}

.card--soft-info {
    background: #eff6ff;
    border-color: rgba(29, 78, 216, 0.14);
}

.card--soft-success,
.card.card--soft-success {
    background: #d1fae5;
    border-color: rgba(16, 185, 129, 0.28);
}

.card.card--soft-success .card-header {
    background: #a7f3d0;
    border-bottom-color: rgba(16, 185, 129, 0.2);
}

.card.card--soft-success .card-body {
    background: #ecfdf5;
}

.card.card--soft-success .sidebar-nav-item--default {
    background: rgba(255, 255, 255, 0.6);
}

.card.card--soft-success .sidebar-nav-item--default:hover {
    background: rgba(255, 255, 255, 0.92);
}

.card.card--soft-success .sidebar-nav-item--locked {
    background: rgba(255, 255, 255, 0.35);
}

.card--soft-slate {
    background: var(--color-surface-soft);
    border-color: var(--color-border);
}

.card--soft-navy .icon-box,
.card--soft-gold .icon-box,
.card--soft-info .icon-box,
.card--soft-success .icon-box,
.card--soft-slate .icon-box {
    background: rgba(255, 255, 255, 0.7);
}

.card-body { padding: 1.5rem; }

@media (min-width: 768px) {
    .card-body { padding: 2rem; }
}

@media (max-width: 640px) {
    .card-body { padding: 1.25rem; }
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border-soft);
}

.card-title {
    font-weight: 700;
    color: var(--color-navy);
    font-size: 1.125rem;
    letter-spacing: -0.03em;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 999px;
    min-height: 2.75rem;
    transition: all 200ms ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(197, 160, 40, 0.28);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d4ad2e 0%, var(--color-gold-dark) 100%);
    box-shadow: 0 14px 30px rgba(197, 160, 40, 0.36);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--color-navy);
    color: #ffffff;
}

.btn-secondary:hover {
    background: var(--color-navy-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--color-navy);
    border: 2px solid var(--color-navy);
}

.btn-outline:hover {
    background: var(--color-navy);
    color: #ffffff;
}

.btn-ghost {
    background: transparent;
    color: var(--color-navy);
    border: 1px solid var(--color-border);
}

.btn-ghost:hover {
    background: var(--color-navy-light);
    border-color: var(--color-muted-light);
}

.btn-danger {
    background: #dc2626;
    color: #ffffff;
}

.btn-danger:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

.btn-sm { padding: 0.375rem 0.875rem; font-size: 0.8125rem; }

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
}

.btn-block { width: 100%; }

.btn:disabled,
.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Forms */
.form-group { margin-bottom: 1.25rem; }

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.375rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    color: var(--color-slate);
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 0.9rem;
    min-height: 2.85rem;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: rgba(197, 160, 40, 0.65);
    box-shadow: 0 0 0 4px rgba(197, 160, 40, 0.14);
}

.form-input::placeholder { color: var(--color-muted-light); }

.form-hint {
    font-size: 0.75rem;
    color: var(--color-muted);
    margin-top: 0.375rem;
}

/* Alerts */
.alert {
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #b45309;
}

.alert-info {
    background: var(--color-navy-light);
    border: 1px solid #bfdbfe;
    color: var(--color-navy);
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 5.5rem;
    right: 1.25rem;
    z-index: 10050;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: min(24rem, calc(100vw - 2rem));
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    line-height: 1.5;
    box-shadow: 0 10px 25px -5px rgba(6, 47, 85, 0.15), 0 8px 10px -6px rgba(6, 47, 85, 0.08);
    pointer-events: auto;
    opacity: 1;
    transform: translateX(0);
}

@media (prefers-reduced-motion: no-preference) {
    .toast {
        animation: toast-in 0.25s ease-out;
    }
}

.toast-body {
    flex: 1;
    min-width: 0;
}

.toast-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

.toast-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.toast-extra-link {
    display: inline-block;
    margin-top: 0.375rem;
    font-weight: 600;
    text-decoration: underline;
}

.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
    padding: 0;
    color: inherit;
}

.toast-close:hover {
    opacity: 1;
}

.toast.is-leaving {
    animation: toast-out 0.2s ease-in forwards;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(1rem);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toast-out {
    to {
        opacity: 0;
        transform: translateX(1rem);
    }
}

/* Rich text content (course descriptions) */
.rich-text-content p {
    margin-bottom: 0.75rem;
}

.rich-text-content p:last-child {
    margin-bottom: 0;
}

.rich-text-content ul,
.rich-text-content ol {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.rich-text-content ul {
    list-style: disc;
}

.rich-text-content ol {
    list-style: decimal;
}

.rich-text-content li {
    margin-bottom: 0.35rem;
}

.rich-text-content strong,
.rich-text-content b {
    font-weight: 700;
}

.rich-text-content em,
.rich-text-content i {
    font-style: italic;
}

.rich-text-content u {
    text-decoration: underline;
}

/* Lesson video player (no seek bar) */
.lesson-video-player {
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #000;
    box-shadow: 0 10px 25px -5px rgba(6, 47, 85, 0.08);
}

.lesson-video-player__screen {
    position: relative;
    background: #000;
}

.lesson-video-player__screen video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.lesson-video-player__progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.18);
    pointer-events: none;
    user-select: none;
}

.lesson-video-player__progress-fill {
    height: 100%;
    width: 0%;
    background: var(--color-gold);
    transition: width 0.2s linear;
}

.lesson-video-player__controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #0f172a;
    color: #fff;
}

.lesson-video-player__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 5.5rem;
    padding: 0.5rem 0.875rem;
    border-radius: 0.5rem;
    border: 0;
    background: var(--color-navy);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.lesson-video-player__toggle:hover {
    background: var(--color-gold-dark);
}

.lesson-video-player__time {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.82);
    font-variant-numeric: tabular-nums;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(4, 31, 56, 0.55);
    backdrop-filter: blur(4px);
}

.modal-backdrop[hidden] {
    display: none;
}

.modal-card {
    width: 100%;
    max-width: 32rem;
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px -12px rgba(6, 47, 85, 0.2);
    overflow: hidden;
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-body {
    padding: 1.25rem 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.registration-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.875rem;
}

.registration-list li {
    padding-bottom: 0.875rem;
    border-bottom: 1px solid #f1f5f9;
}

.registration-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 999px;
    line-height: 1.4;
}

.badge-neutral { background: var(--color-surface-soft); color: #475569; }
.badge-success { background: #ecfdf5; color: #047857; }
.badge-warning { background: #fffbeb; color: #b45309; }
.badge-danger { background: #fef2f2; color: #b91c1c; }
.badge-info { background: #eff6ff; color: #1d4ed8; }
.badge-navy { background: var(--color-navy-light); color: var(--color-navy); }

/* Tables */
.table-wrap {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 1.25rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

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

.data-table {
    width: 100%;
    font-size: 0.875rem;
    border-collapse: collapse;
}

.data-table thead {
    background: #f8fafc;
}

.data-table th {
    text-align: left;
    padding: 0.875rem 1.25rem;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-navy);
    border-bottom: 1px solid var(--color-border);
}

.data-table td {
    padding: 1rem 1.25rem;
    color: #334155;
    border-top: 1px solid var(--color-border-soft);
    vertical-align: top;
}

.data-table tbody tr:hover td { background: #f8fafc; }
.data-table tbody tr:last-child td { border-bottom: none; }

/* Progress */
.progress-bar {
    background: var(--color-border);
    border-radius: 999px;
    height: 0.55rem;
    overflow: hidden;
}

.progress-bar-fill {
    background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    height: 100%;
    border-radius: inherit;
    box-shadow: 0 0 18px rgba(197, 160, 40, 0.35);
    transition: width 0.4s ease;
}

/* Stats */
.stat-card {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 1.25rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.stat-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--color-gold), var(--color-navy));
}

.stat-card:hover {
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
    transform: translateY(-2px);
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-muted);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-navy);
    margin-top: 0.5rem;
    line-height: 1;
}

.stat-card--navy {
    background: var(--color-navy-light);
    border-color: rgba(6, 47, 85, 0.14);
}

.stat-card--info {
    background: #eff6ff;
    border-color: rgba(29, 78, 216, 0.14);
}

.stat-card--warning {
    background: #fffbeb;
    border-color: rgba(180, 83, 9, 0.14);
}

.stat-card--success {
    background: #ecfdf5;
    border-color: rgba(4, 120, 87, 0.14);
}

.stat-card--navy::before {
    background: linear-gradient(180deg, var(--color-navy), var(--color-gold));
}

.stat-card--info::before {
    background: linear-gradient(180deg, #1d4ed8, #60a5fa);
}

.stat-card--warning::before {
    background: linear-gradient(180deg, #b45309, #f59e0b);
}

.stat-card--success::before {
    background: linear-gradient(180deg, #047857, #34d399);
}

/* Course Card */
.course-card {
    display: flex;
    flex-direction: column;
    background: var(--color-surface-elevated);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    transition: box-shadow 220ms ease, transform 220ms ease, border-color 220ms ease;
}

.course-card:hover {
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    transform: translateY(-4px);
    border-color: rgba(197, 160, 40, 0.35);
}

.course-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}

.course-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.course-card:hover .course-card-image img { transform: scale(1.05); }

.course-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(6, 47, 85, 0.55));
    opacity: 0;
    transition: opacity 250ms ease;
    pointer-events: none;
}

.course-card:hover .course-card-image::after { opacity: 1; }

.course-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-card-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    transition: color 0.2s ease;
}

.course-card:hover .course-card-title { color: var(--color-gold); }

/* Section */
.section-heading {
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-gold);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--color-navy);
    letter-spacing: -0.03em;
}

.section-desc {
    margin-top: 0.75rem;
    color: var(--color-muted);
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* Auth Panel */
.auth-panel {
    max-width: 28rem;
    margin: 0 auto;
}

.auth-card {
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: 1.25rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
    padding: 2rem;
}

@media (min-width: 768px) {
    .auth-card { padding: 2.5rem; }
}

/* Hero Banner (inner pages) */
.page-hero {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(197, 160, 40, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.page-hero-inner {
    position: relative;
    max-width: 80rem;
    margin: 0 auto;
    padding: 2.5rem 1rem;
}

@media (min-width: 768px) {
    .page-hero-inner { padding: 3.5rem 2rem; }
}

.breadcrumb {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover { color: #ffffff; }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: 1.25rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.empty-state p { color: var(--color-muted); margin-bottom: 1rem; }

/* Sidebar Nav (learning) */
.sidebar-nav-item {
    display: block;
    padding: 0.85rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.9rem;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
    text-decoration: none;
}

.sidebar-nav-item--active {
    background: linear-gradient(135deg, var(--color-navy), var(--color-navy-dark));
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(6, 47, 85, 0.22);
}

.sidebar-nav-item--default {
    background: #f8fafc;
    color: #475569;
}

.sidebar-nav-item--default:hover {
    background: var(--color-navy-light);
    color: var(--color-navy);
    transform: translateX(2px);
}

.sidebar-nav-item--locked {
    background: var(--color-surface-soft);
    color: var(--color-muted-light);
    opacity: 0.55;
    cursor: not-allowed;
}

/* Icon helpers */
.icon-sm { width: 1rem; height: 1rem; flex-shrink: 0; }
.icon-md { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }

.icon-box {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-navy-light);
    color: var(--color-navy);
    flex-shrink: 0;
}

.icon-box--gold {
    background: rgba(197, 160, 40, 0.14);
    color: var(--color-gold-dark);
}

/* Hero Slider (landing) */
.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(4, 31, 56, 0.88), rgba(6, 47, 85, 0.55), rgba(6, 47, 85, 0.20)),
        radial-gradient(circle at 20% 30%, rgba(197, 160, 40, 0.22), transparent 24rem);
    pointer-events: none;
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
    font-weight: 800;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.82);
}

.hero-eyebrow {
    color: rgba(197, 160, 40, 0.9);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
    .fade-up {
        animation: fadeUp 520ms ease both;
    }

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