:root {
    --page-bg: #e5e0d6;
    --surface: rgba(248, 245, 239, 0.95);
    --surface-strong: #fcfaf6;
    --surface-soft: #f1ece3;
    --line: #cfbf9d;
    --text: #18263f;
    --muted: #5f6676;
    --primary: #203a5c;
    --primary-dark: #152941;
    --accent: #a8843a;
    --accent-soft: rgba(168, 132, 58, 0.14);
    --violet: #56667f;
    --amber: #b18a43;
    --rose: #8a6672;
    --shadow: 0 18px 45px rgba(16, 24, 39, 0.12);
    --shadow-soft: 0 10px 24px rgba(16, 24, 39, 0.08);
    --radius-lg: 24px;
    --radius-md: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(32, 58, 92, 0.18), transparent 30%),
        radial-gradient(circle at top right, rgba(168, 132, 58, 0.12), transparent 30%),
        linear-gradient(180deg, #ece7dd 0%, var(--page-bg) 52%, #ded7cb 100%);
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(18px);
    background: rgba(242, 237, 229, 0.9);
    border-bottom: 1px solid rgba(207, 191, 157, 0.85);
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    color: var(--text);
}

.brand strong {
    display: block;
    font-size: 1.05rem;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), #38557f);
    color: white;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    position: relative;
    overflow: visible;
}

.main-nav a,
a {
    color: var(--text);
    text-decoration: none;
}

.page-content {
    flex: 1;
    padding: 2rem 0 3rem;
}

.hero-panel,
.card,
.course-card,
.empty-state,
.info-card,
.summary-strip {
    background: var(--surface);
    border: 1px solid rgba(184, 199, 217, 0.9);
    box-shadow: var(--shadow);
    border-radius: var(--radius-lg);
}

.card,
.course-card,
.empty-state,
.info-card {
    padding: 1.6rem;
}

.hero-panel {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 1.5rem;
    padding: 2rem;
    margin-bottom: 1.75rem;
    background:
        linear-gradient(135deg, rgba(32, 58, 92, 0.12), rgba(177, 138, 67, 0.08) 55%, rgba(86, 102, 127, 0.08)),
        var(--surface);
}

.hero-panel-advanced {
    align-items: stretch;
}

.hero-showcase,
.showcase-grid,
.hero-stats {
    display: grid;
    gap: 1rem;
}

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

.highlight-card {
    padding: 1.3rem;
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, rgba(32, 58, 92, 0.14), rgba(177, 138, 67, 0.1), rgba(86, 102, 127, 0.08));
    border: 1px solid rgba(177, 138, 67, 0.18);
}

.hero-copy-block h1,
.detail-hero h1,
.dashboard-hero h1,
.auth-panel h1,
.video-layout h1 {
    margin: 0.35rem 0 0.85rem;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.08;
}

.hero-copy,
.lead-copy,
.section-copy {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.7;
}

.hero-actions,
.dashboard-actions,
.course-card-footer,
.detail-meta-row,
.footer-wrap,
.card-top-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.stat-card,
.mini-stat {
    padding: 1.2rem;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #eef4fb, #dfeaf6);
    border: 1px solid var(--line);
}

.showcase-grid .stat-card:nth-child(1) {
    background: linear-gradient(180deg, rgba(32, 58, 92, 0.16), rgba(255, 255, 255, 0.9));
}

.showcase-grid .stat-card:nth-child(2) {
    background: linear-gradient(180deg, rgba(168, 132, 58, 0.14), rgba(255, 255, 255, 0.9));
}

.showcase-grid .stat-card:nth-child(3) {
    background: linear-gradient(180deg, rgba(138, 102, 114, 0.12), rgba(255, 255, 255, 0.9));
}

.showcase-grid .stat-card:nth-child(4) {
    background: linear-gradient(180deg, rgba(86, 102, 127, 0.14), rgba(255, 255, 255, 0.9));
}

.stat-value,
.mini-stat strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.stat-label,
.meta,
.eyebrow,
.empty-copy,
.mini-stat span {
    color: var(--muted);
}

.eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    font-weight: 700;
}

.feature-band,
.presentation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 0 0 1.75rem;
}

.info-card,
.presentation-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(226, 235, 245, 0.8));
}

.feature-band .info-card:nth-child(1) {
    border-top: 4px solid var(--primary);
}

.feature-band .info-card:nth-child(2) {
    border-top: 4px solid var(--violet);
}

.feature-band .info-card:nth-child(3) {
    border-top: 4px solid var(--accent);
}

.presentation-card:nth-child(1) {
    border-top: 4px solid var(--amber);
}

.presentation-card:nth-child(2) {
    border-top: 4px solid var(--primary);
}

.presentation-card:nth-child(3) {
    border-top: 4px solid var(--violet);
}

.ai-recommendation-panel {
    margin-bottom: 1.5rem;
}

.recommendation-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.recommendation-card {
    min-height: 100%;
    border-top: 4px solid var(--primary);
}

.recommendation-card h3 {
    margin: 0.2rem 0 0.55rem;
}

.ai-recommendation-panel .section-copy {
    margin: 0 0 1rem;
}

.feature-list {
    margin: 0.8rem 0 0;
    padding-left: 1.1rem;
    color: var(--muted);
    line-height: 1.7;
}

.compact-list li + li {
    margin-top: 0.35rem;
}

.section-header,
.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-header h2,
.panel-heading h2,
.course-card h2,
.course-card h3,
.list-item h3,
.info-card h3,
.presentation-card h2 {
    margin: 0.2rem 0;
}

.grid {
    display: grid;
    gap: 1.35rem;
}

.course-grid,
.two-up {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.wide-gap {
    gap: 1.5rem;
}

.course-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
    min-height: 280px;
}

.professional-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(227, 237, 247, 0.88));
}

.course-card-top {
    display: grid;
    gap: 0.35rem;
}

.vertical-footer {
    align-items: start;
}

.stacked-metrics {
    flex-direction: column;
    gap: 0.35rem;
    align-items: start;
}

.course-badge,
.status-pill,
.section-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    background: var(--accent-soft);
    color: var(--accent);
}

.section-tag {
    background: linear-gradient(135deg, rgba(177, 138, 67, 0.16), rgba(86, 102, 127, 0.08));
    color: var(--amber);
}

.course-metrics {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.92rem;
}

.button-link,
button,
.secondary-button {
    appearance: none;
    border: none;
    cursor: pointer;
    border-radius: 999px;
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.button-link,
button {
    background: linear-gradient(135deg, var(--primary), #365273);
    color: white;
}

.secondary-button,
.secondary-link {
    background: rgba(246, 241, 232, 0.92);
    color: var(--primary);
    border: 1px solid rgba(168, 132, 58, 0.24);
    padding: 0.75rem 1.1rem;
    border-radius: 999px;
}

.button-link:hover,
button:hover {
    background: linear-gradient(135deg, var(--primary-dark), #294667);
}

.secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.inline-form {
    display: inline-flex;
}

.profile-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.profile-menu-trigger {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 56px;
    height: 48px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(15, 108, 189, 0.18);
    background: rgba(255, 255, 255, 0.82) !important;
    color: var(--text) !important;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    overflow: hidden;
    line-height: 0;
    vertical-align: middle;
    white-space: nowrap;
    font: inherit;
}

.profile-menu:hover .profile-menu-trigger,
.profile-menu:focus-within .profile-menu-trigger {
    background: rgba(255, 255, 255, 0.96) !important;
    border-color: rgba(15, 108, 189, 0.3);
}

.nav-profile-avatar-block {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(232, 240, 248, 0.88);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 auto;
}

.profile-menu-panel {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    min-width: 220px;
    padding: 0.9rem;
    border-radius: 22px;
    border: 1px solid rgba(184, 199, 217, 0.95);
    background: rgba(246, 250, 254, 0.98);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(18px);
    display: grid;
    gap: 0.45rem;
    z-index: 30;
    white-space: normal;
}

.nav-profile-avatar,
.profile-menu-avatar {
    display: block;
    background-size: cover;
    background-position: center 24%;
    background-repeat: no-repeat;
    background-color: #eef4fb;
    flex: 0 0 auto;
}

.nav-profile-avatar {
    width: 38px;
    height: 38px;
    border-radius: 999px;
}

.profile-menu-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.25rem 0.15rem 0.6rem;
    border-bottom: 1px solid rgba(184, 199, 217, 0.7);
    margin-bottom: 0.1rem;
}

.profile-menu-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.profile-menu-caret {
    width: 10px;
    height: 10px;
    border-right: 2px solid #5b6d83;
    border-bottom: 2px solid #5b6d83;
    transform: rotate(45deg) translateY(-1px);
    flex: 0 0 auto;
}

.profile-menu:hover .profile-menu-caret,
.profile-menu:focus-within .profile-menu-caret {
    transform: rotate(225deg) translateY(-1px);
}

.profile-menu-panel {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.profile-menu:hover .profile-menu-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.profile-menu-header strong {
    display: block;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.3;
}

.profile-menu-header span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    margin-top: 0.1rem;
}

.profile-menu-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.78rem 0.9rem;
    border-radius: 14px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.94rem;
    text-decoration: none;
    background: transparent;
}

.profile-menu-link:hover {
    background: rgba(15, 108, 189, 0.08);
    color: var(--primary-dark);
}

.profile-menu-form {
    margin: 0;
}

.profile-menu-logout {
    appearance: none;
    border: 0;
    text-align: left;
    cursor: pointer;
    color: #c2410c;
}

.profile-menu-logout:hover {
    background: rgba(194, 65, 12, 0.08);
    color: #9a3412;
}

.list-item {
    padding: 1rem 0;
    border-top: 1px solid var(--line);
}

.list-item:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.polished-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.content-panel,
.form-panel,
.video-layout {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(220, 230, 242, 0.55)),
        var(--surface-strong);
}

.elevated-panel,
.action-card {
    box-shadow: var(--shadow-soft);
}

.detail-hero,
.dashboard-hero {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.detail-hero-pro,
.dashboard-hero-pro {
    background:
        linear-gradient(135deg, rgba(15, 108, 189, 0.1), rgba(124, 58, 237, 0.08), rgba(255, 255, 255, 0.22)),
        var(--surface);
}

.detail-meta-grid {
    gap: 0.8rem;
}

.summary-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.dashboard-strip {
    margin-top: -0.25rem;
}

.form-panel,
.auth-panel {
    max-width: 760px;
    margin: 0 auto;
}

.auth-shell {
    display: grid;
    min-height: 70vh;
    place-items: center;
}

.stack-form p {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

label {
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #f1f6fb;
    color: var(--text);
    font: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(15, 108, 189, 0.15);
    border-color: rgba(15, 108, 189, 0.45);
}

.video-player {
    width: 100%;
    margin: 1rem 0;
    border-radius: 18px;
    background: #0f172a;
}

.messages {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.message {
    padding: 0.9rem 1rem;
    border-radius: 14px;
    margin-bottom: 0.9rem;
    background: linear-gradient(135deg, rgba(32, 58, 92, 0.12), rgba(177, 138, 67, 0.08));
    border: 1px solid rgba(32, 58, 92, 0.2);
}

.empty-state {
    text-align: center;
}

.site-footer {
    border-top: 1px solid rgba(184, 199, 217, 0.85);
    background: rgba(233, 226, 214, 0.9);
    padding: 1.5rem 0;
}

.footer-wrap {
    justify-content: space-between;
}

@media (max-width: 980px) {
    .hero-panel,
    .feature-band,
    .presentation-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 900px) {
    .detail-hero,
    .dashboard-hero,
    .section-header,
    .panel-heading {
        flex-direction: column;
        align-items: start;
    }
}

@media (max-width: 720px) {
    .nav-wrap,
    .polished-item,
    .footer-wrap {
        flex-direction: column;
        align-items: start;
    }

    .main-nav {
        width: 100%;
    }

    .hero-panel,
    .summary-strip {
        padding: 1.2rem;
    }

    .showcase-grid,
    .feature-band,
    .presentation-grid {
        grid-template-columns: 1fr;
    }

    .card,
    .course-card,
    .empty-state,
    .info-card {
        padding: 1.2rem;
    }
}

.lesson-shell {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 0.95fr);
    gap: 1.5rem;
    align-items: start;
}

.enhanced-video-layout {
    padding: 1.8rem;
}

.lesson-headline {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1rem;
}

.lesson-meta-cluster {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: end;
}

.video-frame-wrap {
    padding: 0.75rem;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(15, 108, 189, 0.14), rgba(124, 58, 237, 0.12), rgba(15, 118, 110, 0.1));
    margin-bottom: 1rem;
}

.featured-player {
    margin: 0;
    min-height: 360px;
    display: block;
}

.lesson-progress-card {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(227, 237, 247, 0.9));
    border: 1px solid var(--line);
}

.lesson-progress-header {
    margin-bottom: 0.75rem;
}

.progress-track {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: rgba(184, 199, 217, 0.55);
    overflow: hidden;
    margin-bottom: 0.85rem;
}

.progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--violet), var(--accent));
}

.lesson-detail-row {
    justify-content: space-between;
}

.lesson-navigation {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link,
.nav-placeholder {
    min-width: 150px;
    text-align: center;
}

.nav-placeholder {
    color: var(--muted);
}

.curriculum-panel {
    padding: 1.2rem;
    position: sticky;
    top: 96px;
}

.compact-heading {
    margin-bottom: 0.75rem;
}

.curriculum-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 84px;
    gap: 0.85rem;
    align-items: center;
    padding: 0.9rem;
    border-radius: 18px;
    border: 1px solid transparent;
    margin-bottom: 0.8rem;
    background: rgba(255, 255, 255, 0.45);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.curriculum-item:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 108, 189, 0.22);
    box-shadow: var(--shadow-soft);
}

.active-curriculum-item {
    border-color: rgba(15, 108, 189, 0.28);
    background: linear-gradient(135deg, rgba(15, 108, 189, 0.1), rgba(124, 58, 237, 0.06), rgba(255, 255, 255, 0.55));
}

.curriculum-item h3 {
    margin: 0.15rem 0;
    font-size: 1rem;
}

.curriculum-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.lesson-thumb {
    width: 84px;
    height: 64px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(184, 199, 217, 0.9);
}

.lesson-thumb-fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(15, 108, 189, 0.2), rgba(124, 58, 237, 0.12));
    color: var(--primary-dark);
    font-weight: 700;
}

@media (max-width: 980px) {
    .lesson-shell {
        grid-template-columns: 1fr;
    }

    .curriculum-panel {
        position: static;
    }
}

@media (max-width: 720px) {
    .lesson-headline,
    .lesson-detail-row,
    .lesson-navigation {
        flex-direction: column;
        align-items: start;
    }

    .curriculum-item {
        grid-template-columns: 1fr;
    }

    .lesson-thumb,
    .lesson-thumb-fallback {
        width: 100%;
        height: 140px;
    }
}

.youtube-frame-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 18px;
    overflow: hidden;
    background: #0f172a;
}

.youtube-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-empty-state {
    min-height: 320px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 2rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(15, 108, 189, 0.08), rgba(124, 58, 237, 0.06));
    color: var(--muted);
}

.assignment-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(300px, 0.9fr);
    gap: 1.5rem;
    align-items: start;
}

.assignment-panel {
    max-width: none;
}

.assignment-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.assignment-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: end;
}

.assignment-meta-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.resource-callout,
.summary-card-block {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(227, 237, 247, 0.9));
    border: 1px solid var(--line);
    margin-bottom: 1rem;
}

.resource-callout {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.assignment-form {
    margin-top: 0.5rem;
}

.assignment-summary-panel {
    padding: 1.2rem;
    position: sticky;
    top: 96px;
}

.muted-block {
    background: linear-gradient(180deg, rgba(15, 108, 189, 0.05), rgba(124, 58, 237, 0.04), rgba(255, 255, 255, 0.7));
}

@media (max-width: 980px) {
    .assignment-shell {
        grid-template-columns: 1fr;
    }

    .assignment-summary-panel {
        position: static;
    }
}

@media (max-width: 720px) {
    .assignment-header,
    .resource-callout {
        flex-direction: column;
        align-items: start;
    }
}

.lesson-card-stack {
    display: grid;
    gap: 1rem;
}

.lesson-preview-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid rgba(184, 199, 217, 0.85);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(231, 239, 248, 0.88));
    box-shadow: var(--shadow-soft);
}

.lesson-preview-media {
    display: flex;
}

.lesson-preview-thumb {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(184, 199, 217, 0.9);
}

.lesson-preview-content {
    display: grid;
    gap: 0.55rem;
}

.lesson-preview-content h3,
.lesson-preview-content p {
    margin: 0;
}

.lesson-preview-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.35rem;
}

@media (max-width: 720px) {
    .lesson-preview-card {
        grid-template-columns: 1fr;
    }

    .lesson-preview-thumb {
        height: 190px;
    }

    .lesson-preview-footer {
        flex-direction: column;
        align-items: start;
    }
}

.catalog-toolbar {
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
}

.catalog-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr) auto;
    gap: 1rem;
    align-items: end;
}

.catalog-input-group {
    display: grid;
    gap: 0.4rem;
}

.catalog-input-group label {
    font-size: 0.92rem;
}

.catalog-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.completion-panel {
    margin-top: 1.5rem;
}

.completion-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.completion-card {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(184, 199, 217, 0.85);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(231, 239, 248, 0.92));
    box-shadow: var(--shadow-soft);
}

.completion-card h3,
.completion-card p {
    margin: 0 0 0.6rem;
}

.compact-progress {
    margin: 0.5rem 0 0.8rem;
}

@media (max-width: 900px) {
    .catalog-search-form {
        grid-template-columns: 1fr;
    }
}

.course-card-media {
    min-height: 170px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(184, 199, 217, 0.85);
    margin-bottom: 1rem;
}

.course-cover {
    position: relative;
    display: grid;
    place-items: stretch;
}

.course-cover-image,
.course-side-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.course-cover-fallback,
.course-side-fallback {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: 0.5rem;
    padding: 1.2rem;
    color: white;
}

.course-side-card {
    min-width: 280px;
    padding: 0;
    overflow: hidden;
    display: grid;
    gap: 0.9rem;
}

.course-side-card .button-link,
.course-side-card .status-pill,
.course-side-card .meta {
    margin: 0 1rem 1rem;
}

.course-side-card .status-pill {
    margin-bottom: 0;
}

.course-cover-badge {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: inline-grid;
    place-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
}

.large-badge {
    width: 76px;
    height: 76px;
    font-size: 1.45rem;
}

.variant-a {
    background: linear-gradient(135deg, #0f6cbd, #22c1c3 58%, #7c3aed);
}

.variant-b {
    background: linear-gradient(135deg, #7c3aed, #2563eb 52%, #0f766e);
}

.variant-c {
    background: linear-gradient(135deg, #d97706, #e11d48 48%, #7c3aed);
}

.variant-d {
    background: linear-gradient(135deg, #0f766e, #0f6cbd 52%, #1d4ed8);
}

.lesson-preview-fallback,
.lesson-thumb-fallback {
    letter-spacing: 0.06em;
    font-size: 1.05rem;
}

.locked-content-card {
    padding: 1.4rem;
    border-radius: 20px;
    border: 1px dashed rgba(15, 108, 189, 0.3);
    background: linear-gradient(180deg, rgba(15, 108, 189, 0.07), rgba(124, 58, 237, 0.05), rgba(255, 255, 255, 0.72));
}

.locked-content-card h3 {
    margin: 0.35rem 0 0.75rem;
}

.locked-content-card p {
    margin: 0 0 1rem;
    color: var(--muted);
    line-height: 1.7;
}

.locked-content-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 108, 189, 0.12);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.82rem;
}

@media (max-width: 900px) {
    .course-side-card {
        min-width: 100%;
    }
}
.course-side-card,
.course-side-card p,
.course-side-card .meta,
.course-side-card h3 {
    color: #f8fbff;
}

.course-side-card .meta {
    color: rgba(248, 251, 255, 0.88);
}

.course-side-card .status-pill {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.course-side-card .button-link {
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.course-side-fallback p,
.course-cover-fallback p {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05rem;
    font-weight: 600;
}
.student-progress-stack {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
}

.student-progress-card {
    padding: 1.15rem;
    border-radius: 18px;
    border: 1px solid rgba(184, 199, 217, 0.85);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(231, 239, 248, 0.92));
    box-shadow: var(--shadow-soft);
}

.student-progress-card h3,
.student-progress-card p {
    margin: 0 0 0.45rem;
}

.student-progress-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    margin: 0.6rem 0;
}

.instructor-analytics-panel {
    margin-bottom: 1.5rem;
}

.instructor-course-row {
    align-items: start;
}
.highlight-metric-card {
    border-top: 4px solid var(--accent);
}

.warning-metric-card {
    border-top: 4px solid var(--rose);
}

.info-metric-card {
    border-top: 4px solid var(--primary);
}

.student-progress-header,
.student-progress-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
    flex-wrap: wrap;
}

.at-risk-card {
    border-color: rgba(225, 29, 72, 0.28);
    background: linear-gradient(180deg, rgba(254, 242, 242, 0.95), rgba(255, 255, 255, 0.92));
}

.completed-card {
    border-color: rgba(15, 118, 110, 0.24);
    background: linear-gradient(180deg, rgba(240, 253, 250, 0.95), rgba(255, 255, 255, 0.92));
}

.subtle-tag {
    background: rgba(15, 108, 189, 0.1);
    color: var(--primary);
}

@media (max-width: 720px) {
    .student-progress-header,
    .student-progress-footer {
        flex-direction: column;
        align-items: start;
    }
}
.brand-logo-wrap {
    background: rgba(255, 255, 255, 0.7);
    padding: 0;
    overflow: hidden;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.owner-grid {
    margin-bottom: 1.5rem;
}

.status-table {
    display: grid;
    gap: 0.95rem;
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    border: 1px solid rgba(184, 199, 217, 0.85);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(231, 239, 248, 0.92));
    box-shadow: var(--shadow-soft);
}

.status-row h3,
.status-row p {
    margin: 0 0 0.35rem;
}

.status-chips {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: end;
}

.inline-remove-form {
    margin: 0;
}

.slim-danger-link {
    border: 0;
    cursor: pointer;
    font: inherit;
    padding: 0.5rem 0.8rem;
    line-height: 1;
}

@media (max-width: 720px) {
    .status-row {
        flex-direction: column;
    }

    .status-chips {
        justify-content: start;
    }
}
.review-table-panel {
    margin-bottom: 1.5rem;
}

.review-table-wrap {
    overflow-x: auto;
}

.review-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.review-table th,
.review-table td {
    padding: 0.95rem 0.9rem;
    border-bottom: 1px solid rgba(184, 199, 217, 0.8);
    text-align: left;
    vertical-align: top;
}

.review-table thead th {
    background: rgba(15, 108, 189, 0.08);
    color: var(--text);
    font-size: 0.92rem;
}

.review-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.submitted-badge {
    background: rgba(15, 118, 110, 0.14);
    color: var(--accent);
}

.pending-badge {
    background: rgba(225, 29, 72, 0.12);
    color: var(--rose);
}
.auth-shell-pro {
    min-height: 78vh;
    display: grid;
    align-items: center;
}

.auth-stage {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(420px, 1.05fr);
    gap: 1.5rem;
    width: min(1180px, 100%);
    margin: 0 auto;
}

.auth-showcase-card {
    padding: 2.15rem;
    border-radius: 28px;
    border: 1px solid rgba(184, 199, 217, 0.85);
    background:
        linear-gradient(145deg, rgba(28, 45, 72, 0.14), rgba(180, 145, 82, 0.09), rgba(111, 126, 147, 0.08)),
        rgba(248, 246, 240, 0.98);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.signup-showcase-card {
    background:
        linear-gradient(145deg, rgba(28, 45, 72, 0.13), rgba(180, 145, 82, 0.12), rgba(111, 126, 147, 0.08)),
        rgba(248, 246, 240, 0.98);
}

.auth-showcase-card::after {
    content: "";
    position: absolute;
    inset: auto -40px -48px auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(177, 138, 67, 0.2), rgba(177, 138, 67, 0));
    pointer-events: none;
}

.auth-showcase-card h1 {
    margin: 0.35rem 0 0.85rem;
    font-size: clamp(2.1rem, 4vw, 3.2rem);
    line-height: 1.08;
    color: #1f2f45;
    letter-spacing: -0.02em;
}

.auth-showcase-band {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin: 1.2rem 0 1rem;
}

.auth-metric-card {
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 252, 245, 0.9), rgba(239, 235, 225, 0.95));
    border: 1px solid rgba(195, 177, 141, 0.5);
    box-shadow: var(--shadow-soft);
}

.auth-metric-card strong {
    display: block;
    margin-bottom: 0.3rem;
    color: #22344b;
}

.auth-metric-card span {
    color: var(--muted);
    line-height: 1.55;
    font-size: 0.92rem;
}

.auth-feature-list {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.auth-feature-item {
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.88), rgba(242, 237, 227, 0.96));
    border: 1px solid rgba(194, 176, 140, 0.42);
    box-shadow: var(--shadow-soft);
}

.auth-feature-item strong {
    display: block;
    margin-bottom: 0.3rem;
    color: #22344b;
}

.auth-feature-item span {
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.auth-showcase-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.auth-trust-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 250, 242, 0.88);
    border: 1px solid rgba(194, 176, 140, 0.45);
    color: #5b4b2d;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: var(--shadow-soft);
}

.auth-panel-pro {
    max-width: none;
    padding: 2rem;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 253, 0.94), rgba(243, 239, 230, 0.98)),
        var(--surface-strong);
    border: 1px solid rgba(197, 183, 151, 0.5);
}

.auth-heading-block {
    display: grid;
    gap: 0.2rem;
    margin-bottom: 1rem;
}

.auth-heading-block h2 {
    margin: 0;
    font-size: 2rem;
    color: #1f2f45;
    letter-spacing: -0.02em;
}

.auth-form-shell {
    padding: 1.15rem 1.2rem 1.2rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 254, 250, 0.88), rgba(243, 239, 229, 0.96));
    border: 1px solid rgba(194, 176, 140, 0.42);
    box-shadow: var(--shadow-soft);
}

.auth-form-shell.alt-shell {
    background: linear-gradient(180deg, rgba(250, 248, 242, 0.92), rgba(239, 234, 223, 0.98));
}

.auth-form-shell-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.95rem;
}

.auth-form-shell-head h3 {
    margin: 0.2rem 0 0;
    font-size: 1.05rem;
    color: #22344b;
}

.auth-form-pro p {
    margin-bottom: 1.1rem;
}

.auth-divider {
    position: relative;
    margin: 1.35rem 0 1.15rem;
    text-align: center;
}

.auth-divider::before {
    content: "";
    position: absolute;
    inset: 50% 0 auto;
    border-top: 1px solid rgba(154, 180, 214, 0.7);
}

.auth-divider span {
    position: relative;
    display: inline-block;
    padding: 0 0.85rem;
    background: rgba(245, 241, 232, 0.98);
    color: #6a5b43;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.auth-form-pro label {
    font-size: 0.98rem;
    color: #25364c;
    font-weight: 600;
}

.auth-form-pro input,
.auth-form-pro select,
.auth-form-pro textarea {
    min-height: 56px;
    background: rgba(255, 253, 248, 0.98);
    border: 1px solid rgba(197, 183, 151, 0.7);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    color: #22344b;
}

.auth-form-pro .secondary-action {
    background: rgba(255, 250, 242, 0.96);
    color: #22344b;
    border: 1px solid rgba(194, 176, 140, 0.55);
    box-shadow: var(--shadow-soft);
}

.auth-form-pro .secondary-action:hover {
    background: rgba(251, 245, 234, 1);
    transform: translateY(-1px);
}

.auth-form-pro button {
    min-width: 160px;
    margin-top: 0.25rem;
    box-shadow: 0 12px 24px rgba(32, 58, 92, 0.18);
}

.auth-footer-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.auth-footer-row p {
    margin: 0;
}

@media (max-width: 980px) {
    .auth-stage {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .auth-showcase-card,
    .auth-panel-pro {
        padding: 1.35rem;
        border-radius: 22px;
    }

    .auth-showcase-band {
        grid-template-columns: 1fr;
    }

    .auth-heading-block h2 {
        font-size: 1.7rem;
    }

    .auth-form-shell {
        padding: 1rem;
    }

    .auth-form-shell-head {
        flex-direction: column;
    }

    .auth-footer-row {
        flex-direction: column;
        align-items: start;
    }
}
.role-profile-hero {
    position: relative;
}

.owner-profile-hero {
    background:
        linear-gradient(135deg, rgba(217, 119, 6, 0.12), rgba(15, 108, 189, 0.08), rgba(255, 255, 255, 0.2)),
        var(--surface);
}

.instructor-profile-hero {
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(15, 108, 189, 0.08), rgba(255, 255, 255, 0.2)),
        var(--surface);
}

.student-profile-hero {
    background:
        linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(15, 108, 189, 0.08), rgba(255, 255, 255, 0.2)),
        var(--surface);
}

.role-summary-panel {
    border-top: 4px solid transparent;
}

.owner-summary-panel {
    border-top-color: var(--amber);
}

.instructor-summary-panel {
    border-top-color: var(--accent);
}

.student-summary-panel {
    border-top-color: var(--primary);
}

.role-summary-copy {
    margin: 0 0 1rem;
    color: var(--muted);
    line-height: 1.65;
}
.role-dashboard-hero {
    position: relative;
}

.owner-dashboard-hero {
    background:
        linear-gradient(135deg, rgba(217, 119, 6, 0.12), rgba(15, 108, 189, 0.08), rgba(255, 255, 255, 0.22)),
        var(--surface);
}

.instructor-dashboard-hero {
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.13), rgba(15, 108, 189, 0.08), rgba(255, 255, 255, 0.22)),
        var(--surface);
}

.student-dashboard-hero {
    background:
        linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(15, 108, 189, 0.08), rgba(255, 255, 255, 0.22)),
        var(--surface);
}

.role-dashboard-strip {
    border-top: 4px solid transparent;
}

.owner-dashboard-strip {
    border-top-color: var(--amber);
}

.instructor-dashboard-strip {
    border-top-color: var(--accent);
}

.student-dashboard-strip {
    border-top-color: var(--primary);
}

:root {
    --page-bg: #dfe8f4;
    --surface: rgba(248, 251, 255, 0.88);
    --surface-strong: rgba(255, 255, 255, 0.94);
    --surface-soft: rgba(237, 244, 252, 0.92);
    --line: rgba(143, 169, 204, 0.45);
    --text: #14233b;
    --muted: #556987;
    --primary: #1473d2;
    --primary-dark: #0a4f8a;
    --accent: #0f766e;
    --accent-soft: rgba(15, 118, 110, 0.12);
    --violet: #6d4aff;
    --amber: #d08b17;
    --rose: #d9465f;
    --shadow: 0 24px 64px rgba(16, 24, 40, 0.12);
    --shadow-soft: 0 14px 34px rgba(15, 23, 42, 0.08);
    --radius-lg: 28px;
    --radius-md: 22px;
}

body {
    font-family: Aptos, "Trebuchet MS", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 8% 10%, rgba(20, 115, 210, 0.18), transparent 22%),
        radial-gradient(circle at 90% 14%, rgba(109, 74, 255, 0.12), transparent 18%),
        radial-gradient(circle at 70% 80%, rgba(15, 118, 110, 0.12), transparent 20%),
        linear-gradient(180deg, #eff5fb 0%, #dfe8f4 42%, #d7e3f0 100%);
}

.page-shell {
    position: relative;
    overflow: hidden;
}

.page-shell::before,
.page-shell::after {
    content: "";
    position: fixed;
    z-index: -1;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.45;
}

.page-shell::before {
    top: 110px;
    left: -120px;
    background: rgba(20, 115, 210, 0.2);
}

.page-shell::after {
    right: -110px;
    bottom: 80px;
    background: rgba(109, 74, 255, 0.16);
}

.container {
    width: min(1220px, calc(100% - 2.25rem));
}

.site-header {
    background: rgba(244, 248, 253, 0.74);
    border-bottom: 1px solid rgba(167, 188, 214, 0.45);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.nav-wrap {
    padding: 1rem 0;
}

.brand {
    gap: 1rem;
}

.brand strong {
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.brand small {
    font-size: 0.95rem;
}

.brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.brand-logo-wrap {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(173, 193, 220, 0.5);
}

.main-nav {
    gap: 0.6rem;
}

.main-nav > a,
.main-nav .secondary-button {
    border-radius: 999px;
    padding: 0.78rem 1.05rem;
    transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

.main-nav > a {
    color: #1b2c47;
}

.main-nav > a:hover {
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-soft);
    transform: translateY(-1px);
}

.page-content {
    padding: 2.4rem 0 3.5rem;
}

.hero-panel,
.card,
.course-card,
.empty-state,
.info-card,
.summary-strip {
    border: 1px solid rgba(167, 188, 214, 0.42);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-panel {
    padding: 2.4rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(242, 247, 255, 0.64)),
        linear-gradient(135deg, rgba(20, 115, 210, 0.12), rgba(109, 74, 255, 0.08) 56%, rgba(15, 118, 110, 0.08));
}

.hero-copy-block h1,
.detail-hero h1,
.dashboard-hero h1,
.auth-panel h1,
.video-layout h1 {
    font-size: clamp(2.3rem, 4vw, 4.1rem);
    letter-spacing: -0.06em;
    color: #172845;
}

.hero-copy,
.lead-copy,
.section-copy {
    font-size: 1.07rem;
    color: #5b6f8b;
}

.highlight-card,
.info-card,
.presentation-card,
.stat-card,
.mini-stat,
.completion-card,
.student-progress-card,
.status-row,
.lesson-preview-card,
.curriculum-item,
.resource-callout,
.summary-card-block,
.lesson-progress-card {
    box-shadow: var(--shadow-soft);
}

.highlight-card {
    background:
        linear-gradient(160deg, rgba(20, 115, 210, 0.18), rgba(109, 74, 255, 0.12), rgba(15, 118, 110, 0.1)),
        rgba(255, 255, 255, 0.72);
}

.stat-card,
.mini-stat {
    padding: 1.3rem;
    border-radius: 20px;
}

.stat-value,
.mini-stat strong {
    font-size: 2rem;
    letter-spacing: -0.04em;
    color: #162844;
}

.button-link,
button {
    background: linear-gradient(135deg, #1473d2, #1f8cff 55%, #4f76ff);
    box-shadow: 0 14px 30px rgba(20, 115, 210, 0.24);
}

.button-link:hover,
button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(20, 115, 210, 0.3);
}

.secondary-button,
.secondary-link {
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(20, 115, 210, 0.16);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.secondary-link:hover,
.secondary-button:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.92);
}

.course-card,
.professional-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(236, 244, 252, 0.94)),
        var(--surface);
}

.course-card:hover,
.info-card:hover,
.presentation-card:hover,
.lesson-preview-card:hover,
.status-row:hover,
.student-progress-card:hover,
.completion-card:hover {
    transform: translateY(-4px);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.12);
}

input,
select,
textarea {
    min-height: 54px;
    background: rgba(248, 251, 255, 0.92);
    border: 1px solid rgba(157, 181, 212, 0.72);
    border-radius: 18px;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(20, 115, 210, 0.14);
    border-color: rgba(20, 115, 210, 0.42);
    box-shadow: 0 0 0 6px rgba(20, 115, 210, 0.08);
}

.catalog-toolbar,
.auth-panel-pro,
.assignment-panel,
.assignment-summary-panel,
.curriculum-panel,
.content-panel,
.video-layout {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(238, 245, 253, 0.96)),
        var(--surface-strong);
}

.section-header h2,
.panel-heading h2,
.course-card h2,
.course-card h3,
.list-item h3,
.info-card h3,
.presentation-card h2 {
    color: #182a47;
    letter-spacing: -0.03em;
}

.site-footer {
    background: rgba(232, 240, 249, 0.82);
    backdrop-filter: blur(14px);
}

@media (max-width: 720px) {
    .container {
        width: min(100%, calc(100% - 1rem));
    }

    .hero-panel {
        padding: 1.45rem;
    }

    .main-nav > a,
    .main-nav .secondary-button {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}
.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.95fr);
    gap: 1.6rem;
    padding: 2.8rem;
    margin-bottom: 1.8rem;
}

.premium-home-hero {
    background:
        linear-gradient(130deg, rgba(255, 255, 255, 0.78), rgba(243, 248, 255, 0.7)),
        linear-gradient(135deg, rgba(20, 115, 210, 0.14), rgba(109, 74, 255, 0.08) 52%, rgba(15, 118, 110, 0.08));
}

.home-hero-copy h1 {
    margin: 0.35rem 0 1rem;
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    line-height: 0.98;
    letter-spacing: -0.075em;
    color: #162744;
    max-width: 11ch;
}

.home-hero-copy .hero-copy {
    max-width: 60ch;
}

.home-hero-trust {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.3rem;
}

.trust-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(162, 185, 215, 0.48);
    color: #1b3555;
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: var(--shadow-soft);
}

.home-hero-side {
    display: grid;
    gap: 1rem;
}

.hero-spotlight-card {
    padding: 1.4rem;
    border-radius: 24px;
    background:
        linear-gradient(155deg, rgba(20, 115, 210, 0.22), rgba(109, 74, 255, 0.14), rgba(15, 118, 110, 0.1)),
        rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(161, 182, 212, 0.42);
    box-shadow: var(--shadow-soft);
}

.hero-spotlight-card h3,
.hero-spotlight-card p {
    margin: 0.35rem 0 0;
}

.premium-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.premium-stat-card {
    padding: 1.25rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(163, 185, 214, 0.4);
    box-shadow: var(--shadow-soft);
}

.premium-stat-value {
    display: block;
    font-size: 2.15rem;
    font-weight: 800;
    letter-spacing: -0.06em;
    color: #162844;
    margin-bottom: 0.35rem;
}

.premium-stat-label,
.meta-label {
    color: #60738f;
    font-size: 0.92rem;
}

.premium-band-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.premium-feature-card {
    padding: 1.5rem;
    border-radius: 26px;
    border: 1px solid rgba(167, 188, 214, 0.42);
    box-shadow: var(--shadow-soft);
}

.premium-feature-card h3 {
    margin: 0.3rem 0 0.7rem;
    color: #172947;
    font-size: 1.35rem;
}

.premium-card-blue {
    background: linear-gradient(180deg, rgba(232, 242, 255, 0.96), rgba(255, 255, 255, 0.82));
}

.premium-card-teal {
    background: linear-gradient(180deg, rgba(231, 248, 245, 0.96), rgba(255, 255, 255, 0.82));
}

.premium-card-gold {
    background: linear-gradient(180deg, rgba(255, 245, 228, 0.96), rgba(255, 255, 255, 0.82));
}

.premium-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.premium-showcase-panel {
    padding: 1.8rem;
}

.premium-team-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr);
    gap: 1.4rem;
    padding: 2rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(241, 247, 255, 0.72)),
        linear-gradient(135deg, rgba(20, 115, 210, 0.1), rgba(109, 74, 255, 0.08));
}

.team-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.team-meta-card {
    padding: 1rem 1.05rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(162, 184, 214, 0.4);
    box-shadow: var(--shadow-soft);
}

.team-meta-card strong {
    display: block;
    margin-top: 0.2rem;
    color: #172947;
    font-size: 1.02rem;
}

@media (max-width: 980px) {
    .home-hero,
    .premium-band-grid,
    .premium-showcase-grid,
    .premium-team-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .home-hero {
        padding: 1.5rem;
    }

    .premium-stats-grid,
    .team-meta-grid {
        grid-template-columns: 1fr;
    }

    .home-hero-copy h1 {
        max-width: none;
    }
}
.home-hero-copy h1 {
    font-family: Cambria, Georgia, "Times New Roman", serif;
    font-size: clamp(2.1rem, 3.8vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    max-width: 12ch;
}

.home-hero-copy .hero-copy {
    font-size: 1.02rem;
    max-width: 58ch;
}

.hero-spotlight-card h3,
.premium-feature-card h3,
.premium-showcase-panel h2,
.premium-team-panel h2 {
    font-family: Cambria, Georgia, "Times New Roman", serif;
    letter-spacing: -0.02em;
}

.premium-stat-value {
    font-size: 1.85rem;
}

.hero-spotlight-card {
    padding: 1.2rem;
}

.premium-stat-card {
    padding: 1rem;
}

@media (max-width: 720px) {
    .home-hero-copy h1 {
        max-width: none;
        font-size: clamp(1.9rem, 7vw, 2.8rem);
    }
}
.home-hero-copy h1 {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: clamp(2.1rem, 3.8vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    max-width: 12ch;
}

.hero-spotlight-card h3,
.premium-feature-card h3,
.premium-showcase-panel h2,
.premium-team-panel h2 {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: -0.02em;
}
.home-hero-copy h1,
.hero-spotlight-card h3,
.premium-feature-card h3,
.premium-showcase-panel h2,
.premium-team-panel h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.home-hero-copy h1,
.hero-spotlight-card h3,
.premium-feature-card h3,
.premium-showcase-panel h2,
.premium-team-panel h2 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
}
.home-hero-copy h1,
.hero-spotlight-card h3,
.premium-feature-card h3,
.premium-showcase-panel h2,
.premium-team-panel h2 {
    font-family: "Times New Roman", Times, serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.home-hero-copy h1,
.hero-spotlight-card h3,
.premium-feature-card h3,
.premium-showcase-panel h2,
.premium-team-panel h2 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.home-hero-copy h1 {
    font-size: clamp(2rem, 3.2vw, 3rem);
    line-height: 1.08;
    max-width: 14ch;
}

.hero-spotlight-card h3,
.premium-feature-card h3,
.premium-showcase-panel h2,
.premium-team-panel h2 {
    font-size: 1.7rem;
}

.hero-copy,
.lead-copy,
.section-copy,
.premium-feature-card p,
.premium-showcase-panel p,
.premium-team-panel p,
.course-card p,
.list-item p,
.meta {
    font-size: 0.98rem;
    line-height: 1.6;
}

.premium-stat-value {
    font-size: 1.7rem;
}

.eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.07em;
}

@media (max-width: 720px) {
    .home-hero-copy h1 {
        font-size: clamp(1.8rem, 8vw, 2.4rem);
        max-width: none;
    }

    .hero-spotlight-card h3,
    .premium-feature-card h3,
    .premium-showcase-panel h2,
    .premium-team-panel h2 {
        font-size: 1.4rem;
    }
}
.premium-feature-card p,
.premium-showcase-panel p,
.premium-team-panel p,
.hero-spotlight-card p,
.home-hero-copy .hero-copy,
.course-card p,
.list-item p,
.role-summary-copy,
.auth-feature-item span,
.meta,
.stat-label,
.premium-stat-label,
.team-meta-card strong,
.team-meta-card .meta-label {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.92rem;
    line-height: 1.55;
    font-weight: 400;
}

.premium-feature-card h3,
.premium-showcase-panel h2,
.premium-team-panel h2,
.hero-spotlight-card h3 {
    font-size: 1.45rem;
}

@media (max-width: 720px) {
    .premium-feature-card p,
    .premium-showcase-panel p,
    .premium-team-panel p,
    .hero-spotlight-card p,
    .home-hero-copy .hero-copy,
    .course-card p,
    .list-item p,
    .role-summary-copy,
    .auth-feature-item span,
    .meta,
    .stat-label,
    .premium-stat-label,
    .team-meta-card strong,
    .team-meta-card .meta-label {
        font-size: 0.88rem;
    }
}
body,
button,
input,
select,
textarea {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.hero-copy-block h1,
.detail-hero h1,
.dashboard-hero h1,
.auth-panel h1,
.video-layout h1,
.home-hero-copy h1,
.auth-heading-block h2,
.section-header h2,
.panel-heading h2,
.course-card h2,
.course-card h3,
.list-item h3,
.info-card h3,
.presentation-card h2,
.premium-feature-card h3,
.premium-showcase-panel h2,
.premium-team-panel h2,
.hero-spotlight-card h3,
.student-progress-card h3,
.status-row h3,
.review-table th {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #182a47;
}

.hero-copy-block h1,
.detail-hero h1,
.dashboard-hero h1,
.auth-panel h1,
.video-layout h1,
.home-hero-copy h1 {
    font-size: clamp(2rem, 3.2vw, 3.1rem);
    line-height: 1.08;
}

.auth-heading-block h2,
.section-header h2,
.panel-heading h2,
.course-card h2,
.premium-showcase-panel h2,
.premium-team-panel h2 {
    font-size: 1.65rem;
}

.course-card h3,
.list-item h3,
.info-card h3,
.premium-feature-card h3,
.hero-spotlight-card h3,
.student-progress-card h3,
.status-row h3 {
    font-size: 1.32rem;
}

.hero-copy,
.lead-copy,
.section-copy,
.premium-feature-card p,
.premium-showcase-panel p,
.premium-team-panel p,
.hero-spotlight-card p,
.home-hero-copy .hero-copy,
.course-card p,
.list-item p,
.role-summary-copy,
.auth-feature-item span,
.meta,
.stat-label,
.premium-stat-label,
.team-meta-card strong,
.team-meta-card .meta-label,
.review-table td,
.review-table th,
.curriculum-item p,
.assignment-panel p,
.assignment-summary-panel p,
.summary-card-block p,
.completion-card p,
.student-progress-footer p,
.student-progress-header p {
    font-size: 0.92rem;
    line-height: 1.55;
    font-weight: 400;
}

.eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}

.stat-value,
.mini-stat strong,
.premium-stat-value {
    font-size: 1.7rem;
}

.button-link,
button,
.secondary-button,
.secondary-link {
    font-size: 0.92rem;
}

@media (max-width: 720px) {
    .hero-copy-block h1,
    .detail-hero h1,
    .dashboard-hero h1,
    .auth-panel h1,
    .video-layout h1,
    .home-hero-copy h1 {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .auth-heading-block h2,
    .section-header h2,
    .panel-heading h2,
    .course-card h2,
    .premium-showcase-panel h2,
    .premium-team-panel h2 {
        font-size: 1.4rem;
    }

    .course-card h3,
    .list-item h3,
    .info-card h3,
    .premium-feature-card h3,
    .hero-spotlight-card h3,
    .student-progress-card h3,
    .status-row h3 {
        font-size: 1.14rem;
    }

    .hero-copy,
    .lead-copy,
    .section-copy,
    .premium-feature-card p,
    .premium-showcase-panel p,
    .premium-team-panel p,
    .hero-spotlight-card p,
    .home-hero-copy .hero-copy,
    .course-card p,
    .list-item p,
    .role-summary-copy,
    .auth-feature-item span,
    .meta,
    .stat-label,
    .premium-stat-label,
    .team-meta-card strong,
    .team-meta-card .meta-label,
    .review-table td,
    .review-table th,
    .curriculum-item p,
    .assignment-panel p,
    .assignment-summary-panel p,
    .summary-card-block p,
    .completion-card p,
    .student-progress-footer p,
    .student-progress-header p {
        font-size: 0.86rem;
    }
}
.team-meta-card {
    padding: 1.15rem 1.2rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 247, 255, 0.88));
    border: 1px solid rgba(143, 169, 204, 0.42);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.team-meta-card .meta-label {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.45rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(20, 115, 210, 0.1);
    color: #2a4a74;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.team-meta-card strong {
    display: block;
    margin-top: 0.15rem;
    color: #172947;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
}

.team-meta-card:nth-child(1) {
    border-top: 4px solid var(--primary);
}

.team-meta-card:nth-child(2) {
    border-top: 4px solid var(--accent);
}

.team-meta-card:nth-child(3) {
    border-top: 4px solid var(--amber);
}

.team-meta-card:nth-child(4) {
    border-top: 4px solid var(--violet);
}

.team-meta-card:nth-child(5) {
    border-top: 4px solid var(--rose);
}

.container {
    width: min(1420px, calc(100% - 6rem));
}

.site-header .container {
    width: min(1460px, calc(100% - 6rem));
}

.nav-wrap {
    width: 100%;
    gap: 1.5rem;
    flex-wrap: nowrap;
    align-items: center;
}

.brand {
    flex: 0 0 auto;
    margin-right: 0;
}

.main-nav {
    flex: 1 1 auto;
    justify-content: flex-end;
    margin-left: auto;
    gap: 0.55rem;
    flex-wrap: nowrap;
    white-space: nowrap;
    align-items: center;
}

.main-nav .inline-form {
    margin-left: 0.2rem;
}

.page-content {
    width: min(1420px, calc(100% - 6rem));
}

.home-hero,
.hero-panel,
.dashboard-hero,
.detail-hero {
    width: 100%;
}

@media (max-width: 720px) {
    .container,
    .site-header .container,
    .page-content {
        width: min(100%, calc(100% - 0.9rem));
    }

    .main-nav {
        justify-content: flex-start;
        margin-left: 0;
    }
}

.course-owner-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 0.9rem;
}

.course-owner-actions-inline {
    width: 100%;
}

.course-form-actions,
.course-delete-form {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 0.6rem;
}

.danger-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(217, 70, 95, 0.24);
    background: rgba(255, 240, 244, 0.92);
    color: #b4233b;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.danger-link:hover {
    transform: translateY(-1px);
    background: rgba(255, 229, 236, 0.98);
}

.danger-summary-block {
    background: linear-gradient(180deg, rgba(255, 243, 246, 0.9), rgba(255, 250, 251, 0.95));
    border-color: rgba(217, 70, 95, 0.22);
}

@media (max-width: 720px) {
    .course-owner-actions,
    .course-form-actions,
    .course-delete-form {
        flex-direction: column;
        align-items: stretch;
    }

    .course-owner-actions .button-link,
    .course-owner-actions .secondary-link,
    .course-owner-actions .danger-link,
    .course-form-actions .button-link,
    .course-form-actions .secondary-link,
    .course-form-actions .danger-link,
    .course-delete-form .button-link,
    .course-delete-form .secondary-link,
    .course-delete-form .danger-link {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

.panel-action-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.inline-action-group {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
}

.inline-action-group .secondary-link,
.inline-action-group .danger-link {
    min-width: 92px;
}

@media (max-width: 720px) {
    .panel-action-group,
    .inline-action-group {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .inline-action-group .secondary-link,
    .inline-action-group .danger-link {
        width: 100%;
        justify-content: center;
    }
}

.enriched-editor-shell {
    align-items: stretch;
}

.editor-main-panel {
    max-width: none;
    min-height: 100%;
}

.editor-sidebar-stack {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.editor-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.editor-stat-card {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(184, 199, 217, 0.8);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(232, 241, 251, 0.9));
}

.editor-stat-card strong {
    display: block;
    margin-top: 0.2rem;
    color: #182a47;
    font-size: 1.02rem;
}

.checklist-block p {
    position: relative;
    padding-left: 1.05rem;
}

.checklist-block p::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

@media (max-width: 980px) {
    .editor-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .editor-summary-grid {
        grid-template-columns: 1fr;
    }
}

.project-overview-panel {
    grid-template-columns: minmax(0, 1.15fr) minmax(430px, 0.95fr);
    align-items: start;
}

.project-overview-copy {
    display: grid;
    gap: 1rem;
    align-content: start;
    min-height: 100%;
}

.project-overview-copy .lead-copy {
    max-width: 58ch;
}

.project-overview-points {
    display: grid;
    gap: 0.9rem;
    margin-top: 0.3rem;
}

.overview-point {
    padding: 1rem 1.05rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(240, 247, 255, 0.88));
    border: 1px solid rgba(143, 169, 204, 0.36);
    box-shadow: var(--shadow-soft);
}

.overview-point strong {
    display: block;
    margin-top: 0.25rem;
    color: #172947;
    font-size: 1.02rem;
    line-height: 1.4;
}

.project-meta-grid {
    align-content: start;
}

.project-meta-wide {
    grid-column: span 2;
}

@media (max-width: 980px) {
    .project-overview-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .project-meta-wide {
        grid-column: span 1;
    }
}

.mcq-question-list {
    display: grid;
    gap: 1rem;
}

.mcq-question-card {
    padding: 1.15rem;
    border-radius: 20px;
    border: 1px solid rgba(184, 199, 217, 0.82);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(236, 244, 252, 0.92));
    box-shadow: var(--shadow-soft);
}

.mcq-question-top h3,
.mcq-question-card h4,
.mcq-review-item h4 {
    margin: 0.45rem 0 0;
}

.mcq-option-grid {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.mcq-option {
    display: flex;
    gap: 0.75rem;
    align-items: start;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(184, 199, 217, 0.75);
    background: rgba(255, 255, 255, 0.9);
}

.mcq-option input {
    width: auto;
    min-height: auto;
    margin-top: 0.15rem;
}

.mcq-option-chip {
    display: grid;
    gap: 0.2rem;
    padding: 0.75rem 0.9rem;
    border-radius: 16px;
    border: 1px solid rgba(184, 199, 217, 0.75);
    background: rgba(255, 255, 255, 0.9);
}

.correct-option-chip {
    border-color: rgba(15, 118, 110, 0.35);
    background: rgba(232, 248, 245, 0.92);
}

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

.mcq-review-item {
    padding: 0.85rem 0.95rem;
    border-radius: 16px;
    margin-top: 0.85rem;
}

.correct-review-item {
    background: rgba(232, 248, 245, 0.92);
    border: 1px solid rgba(15, 118, 110, 0.25);
}

.incorrect-review-item {
    background: rgba(255, 241, 243, 0.94);
    border: 1px solid rgba(217, 70, 95, 0.24);
}

.form-error {
    margin: 0.75rem 0 0;
    color: #b4233b;
    font-weight: 600;
}

@media (max-width: 720px) {
    .compact-option-grid {
        grid-template-columns: 1fr;
    }
}

.project-capability-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-content: start;
}

.project-capability-card {
    padding: 1.15rem 1.2rem;
    border-radius: 22px;
    border: 1px solid rgba(143, 169, 204, 0.38);
    box-shadow: var(--shadow-soft);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 247, 255, 0.9));
}

.project-capability-card h3 {
    margin: 0.45rem 0 0.55rem;
    color: #172947;
    font-size: 1.08rem;
}

.project-capability-card p {
    margin: 0;
}

.capability-blue {
    border-top: 4px solid var(--primary);
}

.capability-teal {
    border-top: 4px solid var(--accent);
}

.capability-gold {
    border-top: 4px solid var(--amber);
}

.capability-violet {
    border-top: 4px solid var(--violet);
}

@media (max-width: 720px) {
    .project-capability-grid {
        grid-template-columns: 1fr;
    }
}

.aws-architecture-panel {
    margin-bottom: 1.8rem;
    padding: 1.8rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(239, 246, 255, 0.78)),
        linear-gradient(135deg, rgba(255, 153, 0, 0.1), rgba(20, 115, 210, 0.08));
}

.aws-service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.2rem;
}

.aws-service-card {
    padding: 1.1rem;
    border-radius: 20px;
    border: 1px solid rgba(143, 169, 204, 0.38);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

.aws-service-card h3 {
    margin: 0.45rem 0 0.55rem;
    color: #172947;
    font-size: 1.08rem;
}

.aws-service-card p {
    margin: 0;
}

.aws-service-card:nth-child(1) {
    border-top: 4px solid #ff9900;
}

.aws-service-card:nth-child(2) {
    border-top: 4px solid var(--primary);
}

.aws-service-card:nth-child(3) {
    border-top: 4px solid var(--accent);
}

.aws-service-card:nth-child(4) {
    border-top: 4px solid var(--violet);
}

@media (max-width: 980px) {
    .aws-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .aws-service-grid {
        grid-template-columns: 1fr;
    }
}

.aws-hero-panel {
    grid-template-columns: minmax(0, 0.9fr) minmax(560px, 1.1fr);
    align-items: stretch;
    min-height: auto;
    padding: 1.3rem;
    gap: 1.1rem;
}

.aws-hero-copy h1 {
    max-width: 11.5ch;
    font-size: clamp(2.05rem, 3vw, 3.1rem);
    line-height: 1.04;
    margin-bottom: 0.75rem;
}

.aws-hero-copy .hero-copy {
    max-width: 50ch;
    color: #48607f;
}

.aws-hero-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 1.2rem;
}

.aws-hero-points span {
    padding: 0.62rem 0.78rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(143, 169, 204, 0.42);
    color: #1d365a;
    font-weight: 700;
    box-shadow: var(--shadow-soft);
}

.aws-hero-diagram {
    display: grid;
    gap: 1rem;
    padding: 1.15rem;
    border-radius: 22px;
    border: 1px solid rgba(143, 169, 204, 0.42);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(236, 245, 255, 0.78)),
        radial-gradient(circle at 90% 10%, rgba(255, 153, 0, 0.18), transparent 28%),
        radial-gradient(circle at 15% 80%, rgba(20, 115, 210, 0.16), transparent 32%);
    box-shadow: var(--shadow-soft);
}

.aws-diagram-header h2 {
    margin: 0.35rem 0 0;
    color: #172947;
}

.aws-flow-diagram {
    display: grid;
    grid-template-columns: minmax(150px, 0.8fr) auto minmax(210px, 1fr) minmax(0, 1.25fr);
    gap: 0.8rem;
    align-items: center;
}

.aws-flow-node {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(143, 169, 204, 0.42);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.aws-flow-node span {
    display: inline-flex;
    margin-bottom: 0.45rem;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    background: rgba(20, 115, 210, 0.1);
    color: #2a4a74;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.aws-flow-node strong {
    display: block;
    color: #172947;
    line-height: 1.35;
}

.aws-flow-arrow {
    color: #2a4a74;
    font-weight: 900;
}

.aws-flow-split {
    display: grid;
    gap: 0.7rem;
}

.aws-flow-line {
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #1473d2, #ff9900, #0f766e, #6d4aff);
}

.aws-flow-targets {
    display: grid;
    gap: 0.75rem;
}

.compute-node {
    border-top: 4px solid #ff9900;
}

.db-node {
    border-top: 4px solid var(--primary);
}

.storage-node {
    border-top: 4px solid var(--accent);
}

.cdn-node {
    border-top: 4px solid var(--violet);
}

.user-node {
    border-top: 4px solid var(--amber);
}

@media (max-width: 1100px) {
    .aws-hero-panel {
        grid-template-columns: 1fr;
    }

    .aws-flow-diagram {
        grid-template-columns: 1fr;
    }

    .aws-flow-arrow {
        transform: rotate(90deg);
        justify-self: center;
    }
}

@media (max-width: 720px) {
    .aws-hero-panel {
        padding: 1.35rem;
    }

    .aws-hero-points {
        grid-template-columns: 1fr;
    }
}

.course-grid {
    margin-bottom: 2.25rem;
}

.presentation-grid {
    margin-top: 0.9rem;
}

.course-grid + .presentation-grid,
.course-grid + .aws-architecture-panel,
.presentation-grid + .aws-architecture-panel {
    margin-top: 2.25rem;
}

@media (max-width: 720px) {
    .course-grid {
        margin-bottom: 1.5rem;
    }

    .course-grid + .presentation-grid,
    .course-grid + .aws-architecture-panel,
    .presentation-grid + .aws-architecture-panel {
        margin-top: 1.5rem;
    }
}

/* Refined AWS hero layout */
.aws-cloud-card {
    align-content: start;
    min-height: 100%;
}

.aws-cloud-card .aws-diagram-header {
    padding: 0.3rem 0.2rem 0.2rem;
}

.aws-cloud-card .aws-diagram-header h2 {
    margin: 0.35rem 0 0.55rem;
    font-size: clamp(1.55rem, 2vw, 2rem);
    letter-spacing: -0.03em;
}

.aws-cloud-card .aws-diagram-header p:not(.eyebrow) {
    margin: 0;
    max-width: 68ch;
    color: var(--muted);
    line-height: 1.6;
}

.aws-clean-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem;
    margin-top: 0.4rem;
}

.aws-clean-card {
    min-height: 126px;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(143, 169, 204, 0.42);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 246, 255, 0.9));
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.aws-clean-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 30px;
    border-radius: 999px;
    background: rgba(20, 115, 210, 0.11);
    color: #24476f;
    font-weight: 800;
    font-size: 0.78rem;
    margin-bottom: 0.65rem;
}

.aws-clean-card h3 {
    margin: 0 0 0.45rem;
    color: #172947;
    font-size: 1.12rem;
}

.aws-clean-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.aws-hero-points {
    display: flex;
    flex-wrap: wrap;
}

.aws-hero-points span {
    flex: 0 1 auto;
    min-width: 150px;
    text-align: center;
}

@media (max-width: 720px) {
    .aws-clean-grid {
        grid-template-columns: 1fr;
    }

    .aws-clean-card {
        min-height: auto;
    }
}

.professional-summary-grid {
    align-items: stretch;
}

.professional-summary-card {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(237, 245, 253, 0.94)),
        var(--surface);
}

.professional-summary-card h2 {
    margin-bottom: 0.85rem;
}

.professional-summary-card p:not(.eyebrow) {
    line-height: 1.62;
    color: #334763;
}

.aws-summary-card {
    background:
        linear-gradient(180deg, rgba(255, 250, 241, 0.88), rgba(238, 247, 255, 0.94)),
        var(--surface);
}

.professional-summary-card:nth-child(1) {
    border-top: 4px solid var(--primary);
}

.professional-summary-card:nth-child(2) {
    border-top: 4px solid #ff9900;
}

.professional-summary-card:nth-child(3) {
    border-top: 4px solid var(--accent);
}

.inline-complete-form {
    margin: 0;
}

.inline-complete-form button {
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.completed-status {
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
    border-color: rgba(16, 185, 129, 0.26);
}

.assignment-next-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.course-status-badge {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 0.38rem 0.72rem;
    background: rgba(20, 115, 210, 0.11);
    color: #174f87;
    font-weight: 800;
    font-size: 0.82rem;
}

.result-shell {
    display: grid;
    gap: 1.4rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.result-hero {
    border-radius: 28px;
    padding: clamp(1.5rem, 4vw, 2.4rem);
    border: 1px solid rgba(143, 169, 204, 0.42);
}

.result-pass {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(239, 246, 255, 0.9));
}

.result-review {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(239, 246, 255, 0.9));
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.owner-analytics-grid {
    margin-top: 1.4rem;
}

.student-course-progress-panel {
    margin-bottom: 1.5rem;
    border-top: 4px solid var(--primary);
}

.course-card .progress-track {
    width: 100%;
    margin: 0.45rem 0 0.2rem;
}

.question-manager-shell {
    max-width: 1180px;
    margin: 0 auto;
}

.question-manager-panel {
    display: grid;
    gap: 1.2rem;
}

.bulk-question-form {
    display: grid;
    gap: 1rem;
}

.bulk-question-card {
    border: 1px solid rgba(143, 169, 204, 0.38);
    border-radius: 24px;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.84));
}

.bulk-question-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.9rem;
}

.bulk-question-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.bulk-field {
    display: grid;
    gap: 0.35rem;
}

.bulk-field label {
    color: #425775;
    font-size: 0.82rem;
    font-weight: 800;
}

.bulk-field input,
.bulk-field textarea,
.bulk-field select {
    width: 100%;
}

.full-field {
    grid-column: 1 / -1;
}

.order-field {
    max-width: 180px;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

@media (max-width: 760px) {
    .bulk-question-grid {
        grid-template-columns: 1fr;
    }
}

.certificate-action {
    padding: 0.72rem 1.05rem;
    font-size: 0.9rem;
}

.certificate-page-shell {
    max-width: 1120px;
    margin: 0 auto;
}

.certificate-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.certificate-card {
    border-radius: 34px;
    padding: 1.4rem;
    background:
        linear-gradient(135deg, rgba(255, 153, 0, 0.22), rgba(20, 115, 210, 0.22), rgba(15, 118, 110, 0.18)),
        rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(143, 169, 204, 0.48);
    box-shadow: 0 34px 80px rgba(15, 23, 42, 0.18);
}

.certificate-border {
    min-height: 680px;
    border-radius: 26px;
    padding: clamp(2rem, 5vw, 4.2rem);
    border: 2px solid rgba(20, 115, 210, 0.3);
    background:
        radial-gradient(circle at 10% 15%, rgba(255, 153, 0, 0.14), transparent 26%),
        radial-gradient(circle at 92% 10%, rgba(20, 115, 210, 0.18), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.94));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.certificate-border::before,
.certificate-border::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 34px solid rgba(20, 115, 210, 0.06);
    pointer-events: none;
}

.certificate-border::before {
    left: -90px;
    bottom: -90px;
}

.certificate-border::after {
    right: -90px;
    top: -90px;
}

.certificate-header,
.certificate-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.certificate-header {
    justify-content: center;
    text-align: center;
}

.certificate-header img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 20px;
    background: white;
    border: 1px solid rgba(143, 169, 204, 0.34);
    padding: 0.55rem;
}

.certificate-header h1 {
    margin: 0.2rem 0 0;
    font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.certificate-body {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 820px;
    margin: 3rem auto;
}

.certificate-kicker {
    margin: 0;
    color: #5a708f;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 800;
    font-size: 0.82rem;
}

.certificate-body h2 {
    margin: 1rem 0;
    font-size: clamp(2.2rem, 6vw, 4.4rem);
    letter-spacing: -0.055em;
    color: #10213c;
}

.certificate-body h3 {
    display: inline-block;
    margin: 1rem 0;
    padding: 0.9rem 1.3rem;
    border-radius: 18px;
    background: rgba(20, 115, 210, 0.1);
    color: #12345f;
    font-size: clamp(1.35rem, 3vw, 2.1rem);
}

.certificate-copy {
    margin: 0.8rem auto;
    color: #455b78;
    font-size: 1.05rem;
    line-height: 1.72;
    max-width: 720px;
}

.certificate-footer {
    border-top: 1px solid rgba(143, 169, 204, 0.46);
    padding-top: 1.4rem;
    align-items: flex-start;
}

.certificate-footer div {
    min-width: 0;
}

.certificate-footer span {
    display: block;
    color: #5a708f;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.certificate-footer strong {
    color: #162844;
}

@media (max-width: 780px) {
    .certificate-toolbar,
    .certificate-footer,
    .certificate-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .certificate-border {
        min-height: auto;
    }
}

@media print {
    body {
        background: #fff;
    }

    .site-header,
    .site-footer,
    .certificate-toolbar {
        display: none !important;
    }

    .container {
        max-width: none;
        padding: 0;
    }

    .certificate-card {
        box-shadow: none;
        border: 0;
        padding: 0;
    }

    .certificate-border {
        min-height: 96vh;
        border: 3px solid #1473d2;
    }
}

/* May 2026 professional UI refresh */
.main-nav {
    gap: 0.5rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.main-nav > a,
.main-nav .secondary-button {
    font-weight: 700;
    letter-spacing: -0.01em;
}

.main-nav > a {
    position: relative;
    background: rgba(255, 255, 255, 0.18);
    padding: 0.5rem 0.72rem;
    font-size: 0.92rem;
}

.main-nav > a:hover {
    background: rgba(255, 255, 255, 0.86);
}

.site-header .button-link,
.site-header .secondary-button {
    padding: 0.58rem 0.92rem;
    font-size: 0.9rem;
    line-height: 1.1;
    white-space: nowrap;
}

.site-header .button-link {
    box-shadow: 0 10px 22px rgba(20, 115, 210, 0.16);
}

.dashboard-hero-main,
.profile-hero-main,
.person-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard-hero-main,
.profile-hero-main {
    min-width: 0;
}

.profile-avatar-wrap {
    flex: 0 0 auto;
}

.profile-avatar {
    display: block;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.92);
}

.profile-photo-focus {
    object-position: center 18%;
}

.profile-avatar-large {
    width: 72px;
    height: 72px;
}

.profile-avatar-summary {
    width: 84px;
    height: 84px;
    margin: 0 auto 0.85rem;
}

.profile-avatar-small {
    width: 46px;
    height: 46px;
    border-width: 2px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.summary-avatar-block {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-avatar-editor {
    width: 112px;
    height: 112px;
}

.profile-hero-copy {
    min-width: 0;
}

.profile-settings-form {
    gap: 1.2rem;
}

.profile-header-card {
    padding: 0;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.profile-header-cover {
    height: 168px;
    background:
        linear-gradient(135deg, rgba(242, 232, 217, 0.72), rgba(221, 234, 248, 0.9) 48%, rgba(236, 241, 252, 0.96)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
    border-bottom: 1px solid rgba(143, 169, 204, 0.24);
}

.profile-header-body {
    display: flex;
    align-items: flex-end;
    gap: 1.35rem;
    padding: 0 1.6rem 1.4rem;
    margin-top: -58px;
    position: relative;
    z-index: 1;
}

.profile-header-avatar-wrap {
    flex: 0 0 auto;
}

.profile-header-avatar {
    width: 116px;
    height: 116px;
    border-radius: 24px;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.98);
    background: #fff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
}

.profile-header-content {
    min-width: 0;
    flex: 1;
    padding-bottom: 0.15rem;
}

.profile-header-content h1 {
    margin: 0.2rem 0 0.6rem;
    font-size: clamp(2.2rem, 4vw, 3.3rem);
    line-height: 1.08;
}

.profile-header-content .lead-copy {
    max-width: 66ch;
    margin: 0;
}

.profile-header-actions {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.workspace-hero {
    display: block;
    padding: 0;
    overflow: hidden;
}

.workspace-hero-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    padding: 1.7rem 1.8rem;
    background:
        linear-gradient(135deg, rgba(242, 232, 217, 0.72), rgba(221, 234, 248, 0.9) 48%, rgba(236, 241, 252, 0.96)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
}

.workspace-hero-main {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    min-width: 0;
    flex: 1;
}

.workspace-avatar-wrap {
    flex: 0 0 auto;
}

.workspace-avatar {
    width: 112px;
    height: 112px;
    border-radius: 22px;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.96);
    background: #fff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
}

.workspace-copy {
    min-width: 0;
    max-width: 760px;
}

.workspace-copy h1 {
    margin: 0.2rem 0 0.65rem;
    font-size: clamp(2.2rem, 4vw, 3.35rem);
    line-height: 1.08;
}

.workspace-copy .lead-copy {
    margin: 0;
}

.workspace-actions {
    justify-content: flex-end;
    align-self: center;
}

.profile-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 1.5rem;
    align-items: start;
}

.profile-editor-card,
.profile-summary-card {
    max-width: none;
}

.profile-editor-card {
    padding: 1.6rem;
}

.profile-summary-card {
    position: sticky;
    top: 96px;
    padding: 1.35rem;
}

.profile-photo-editor {
    display: block;
    align-items: center;
    padding: 1.1rem 1.15rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(236, 244, 252, 0.92));
    border: 1px solid rgba(143, 169, 204, 0.32);
}

.profile-photo-copy h3 {
    margin: 0 0 0.35rem;
    color: #172947;
}

.profile-photo-copy .meta {
    margin: 0 0 0.7rem;
}

.profile-upload-row input[type="file"] {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
    border: 1px dashed rgba(143, 169, 204, 0.52);
    background: rgba(255, 255, 255, 0.86);
}

.profile-clear-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.7rem;
    color: #4b617f;
    font-size: 0.9rem;
}

.profile-clear-wrap input {
    width: auto;
    min-height: auto;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.profile-field {
    display: grid;
    gap: 0.4rem;
}

.profile-field label {
    color: #3c516f;
    font-size: 0.88rem;
    font-weight: 800;
}

.profile-field-wide {
    grid-column: 1 / -1;
}

.profile-field ul.errorlist {
    margin: 0;
    padding-left: 1rem;
    color: #b4233b;
    font-size: 0.86rem;
}

.profile-identity-block {
    text-align: center;
    margin-bottom: 0.7rem;
}

.profile-identity-block h3 {
    margin: 0 0 0.2rem;
    color: #172947;
}

.profile-identity-block .meta {
    margin: 0;
}

.profile-summary-list {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
}

.profile-summary-list p {
    display: grid;
    gap: 0.28rem;
    margin: 0;
    padding: 0.82rem 0.95rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(143, 169, 204, 0.22);
}

.profile-summary-list strong {
    color: #3d5373;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.profile-summary-list span {
    color: #172947;
    line-height: 1.55;
    word-break: break-word;
}

.linkedin-hero {
    display: block;
    padding: 0;
    overflow: hidden;
}

.linkedin-cover {
    height: 180px;
    background:
        linear-gradient(135deg, rgba(15, 108, 189, 0.22), rgba(124, 58, 237, 0.12), rgba(15, 118, 110, 0.18)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
    border-bottom: 1px solid rgba(143, 169, 204, 0.3);
}

.linkedin-hero-body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0 1.6rem 1.45rem;
}

.linkedin-avatar-wrap {
    position: absolute;
    left: 1.6rem;
    top: -56px;
}

.linkedin-avatar {
    width: 112px;
    height: 112px;
    border-radius: 22px;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
    background: #fff;
}

.linkedin-copy {
    min-width: 0;
    padding-top: 78px;
    width: 100%;
}

.linkedin-copy h1 {
    margin: 0.2rem 0 0.6rem;
}

.linkedin-copy .lead-copy {
    max-width: 60ch;
}

.linkedin-actions {
    justify-content: flex-start;
    padding-top: 0.2rem;
}

.summary-card-block .profile-avatar-summary,
.person-row .profile-avatar-small,
.dashboard-hero-main .profile-avatar-large {
    max-width: none !important;
    max-height: none !important;
    width: auto;
}

.site-header {
    backdrop-filter: blur(22px);
}

.premium-home-hero {
    position: relative;
    overflow: hidden;
}

.premium-home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 72% 18%, rgba(20, 115, 210, 0.1), transparent 30%);
    pointer-events: none;
}

.home-hero-copy,
.aws-cloud-card {
    position: relative;
    z-index: 1;
}

.hero-kicker-line {
    margin: 0.65rem 0 1rem;
    color: #2f4666;
    line-height: 1.6;
    max-width: 50ch;
    font-size: 0.95rem;
}

.hero-stack-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.95rem;
}

.hero-stack-line span {
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(143, 169, 204, 0.34);
    color: #284465;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.hero-actions {
    align-items: center;
    margin-top: 0.1rem;
}

.hero-actions .secondary-link {
    background: rgba(255, 255, 255, 0.68);
}

.course-card {
    min-height: 100%;
    border-radius: 28px;
}

.course-card-media {
    min-height: 200px;
}

.course-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.polished-course-metrics span,
.course-progress-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.course-insight-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.course-insight-strip span,
.course-progress-summary span,
.course-progress-meta span {
    padding: 0.42rem 0.7rem;
    border-radius: 999px;
    background: rgba(20, 115, 210, 0.08);
    color: #2d4667;
    font-size: 0.84rem;
    font-weight: 700;
}

.course-progress-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.1rem;
}

.course-progress-meta {
    display: grid;
    gap: 0.5rem;
}

.premium-progress-track {
    height: 12px;
    border-radius: 999px;
    background: rgba(186, 202, 221, 0.46);
}

.premium-progress-track .progress-fill {
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(20, 115, 210, 0.2);
}

.dashboard-hero {
    align-items: stretch;
}

.dashboard-hero-note {
    max-width: 56ch;
    margin-top: 1rem;
    padding: 0.95rem 1.1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(143, 169, 204, 0.34);
    color: #334763;
    line-height: 1.6;
}

.owner-highlight-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.1rem 0 1.5rem;
}

.owner-highlight-card {
    padding: 1.35rem 1.45rem;
    border-radius: 24px;
    border: 1px solid rgba(167, 188, 214, 0.42);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(236, 244, 252, 0.94));
    box-shadow: var(--shadow-soft);
}

.owner-highlight-card h3 {
    margin: 0.25rem 0 0.55rem;
}

.spotlight-owner-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(226, 241, 255, 0.92), rgba(245, 250, 255, 0.96));
}

.owner-grid .content-panel,
.owner-analytics-grid .content-panel {
    min-height: 100%;
}

.lesson-main.enhanced-video-layout {
    padding: 1.7rem;
    border-radius: 30px;
}

.video-frame-wrap {
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(14, 22, 38, 0.98), rgba(26, 38, 62, 0.94));
    padding: 1rem;
    box-shadow: 0 24px 50px rgba(10, 17, 30, 0.18);
}

.featured-player,
.youtube-frame-wrap {
    border-radius: 22px;
    overflow: hidden;
}

.lesson-stage-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.lesson-stage-card {
    display: grid;
    gap: 0.25rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(143, 169, 204, 0.34);
}

.lesson-stage-card strong {
    color: #172947;
}

.lesson-stage-card span {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.curriculum-summary-card {
    display: grid;
    gap: 0.3rem;
    margin-bottom: 0.9rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(236, 244, 252, 0.92));
    border: 1px solid rgba(143, 169, 204, 0.34);
}

.curriculum-summary-card strong {
    color: #172947;
}

.curriculum-summary-card span {
    color: var(--muted);
    line-height: 1.55;
}

.result-shell {
    padding: clamp(1.35rem, 3vw, 2.35rem);
    border-radius: 30px;
}

.result-hero {
    padding: clamp(1.45rem, 3vw, 2.15rem);
    box-shadow: var(--shadow-soft);
}

.result-hero-layout {
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    align-items: center;
}

.result-copy {
    max-width: 60ch;
}

.result-score-orb {
    flex: 0 0 190px;
    min-height: 190px;
    display: grid;
    place-items: center;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.76);
    border: 10px solid rgba(255, 255, 255, 0.38);
    box-shadow: inset 0 0 0 1px rgba(143, 169, 204, 0.26);
}

.result-score-orb strong {
    display: block;
    color: #172947;
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: -0.05em;
}

.result-score-orb span {
    color: var(--muted);
    font-weight: 700;
}

.result-metric-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(236, 244, 252, 0.92));
}

.result-insight-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.result-insight-card {
    padding: 1.15rem 1.25rem;
    border-radius: 22px;
    border: 1px solid rgba(143, 169, 204, 0.36);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(236, 244, 252, 0.92));
    box-shadow: var(--shadow-soft);
}

.result-insight-card h3 {
    margin: 0.25rem 0 0.55rem;
}

.result-insight-card p {
    margin: 0.2rem 0;
}

.certificate-page-shell {
    max-width: 1220px;
}

.certificate-toolbar {
    align-items: center;
    padding: 0 0.35rem;
}

.certificate-delivery-panel {
    margin: 0.75rem 0 1.25rem;
    padding: 1.35rem 1.5rem;
    border: 1px solid rgba(177, 138, 67, 0.18);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 251, 244, 0.96), rgba(244, 248, 255, 0.92));
    box-shadow: 0 18px 36px rgba(20, 35, 67, 0.08);
}

.certificate-delivery-panel h2 {
    margin: 0.55rem 0 0.45rem;
    color: var(--ink);
}

.certificate-delivery-panel p {
    margin: 0;
    color: var(--muted);
}

.status-pill-success {
    background: rgba(34, 132, 109, 0.14);
    color: #1c6d5b;
}

.status-pill-pending {
    background: rgba(177, 138, 67, 0.16);
    color: var(--amber);
}

.certificate-card {
    position: relative;
    overflow: hidden;
}

.certificate-card::before {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    pointer-events: none;
}

.certificate-honours-row {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.7rem;
}

.certificate-honours-card {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(143, 169, 204, 0.34);
    text-align: center;
}

.certificate-honours-card span {
    display: block;
    margin-bottom: 0.35rem;
    color: #5a708f;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
}

.certificate-honours-card strong {
    color: #162844;
    font-size: 1.05rem;
}

.certificate-seal-card {
    background: linear-gradient(180deg, rgba(255, 250, 241, 0.9), rgba(239, 246, 255, 0.9));
}

.certificate-signature-row {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.certificate-signature-block {
    text-align: center;
}

.signature-line {
    height: 1px;
    margin-bottom: 0.65rem;
    background: linear-gradient(90deg, transparent, rgba(22, 40, 68, 0.7), transparent);
}

.certificate-signature-block span {
    color: #5a708f;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 1100px) {
    .result-hero-layout,
    .owner-highlight-grid,
    .result-insight-grid,
    .certificate-honours-row,
    .certificate-signature-row,
    .lesson-stage-grid {
        grid-template-columns: 1fr;
    }

    .result-hero-layout {
        display: grid;
    }

    .result-score-orb {
        justify-self: start;
    }
}

@media (max-width: 720px) {
    .hero-status-ribbon,
    .course-insight-strip,
    .course-progress-summary {
        gap: 0.45rem;
    }

    .owner-highlight-grid,
    .result-insight-grid,
    .lesson-stage-grid,
    .certificate-honours-row,
    .certificate-signature-row {
        grid-template-columns: 1fr;
    }

    .result-score-orb {
        min-height: 154px;
        flex-basis: auto;
    }

    .certificate-toolbar {
        padding: 0;
    }

    .dashboard-hero-main,
    .profile-hero-main,
    .person-row {
        align-items: flex-start;
    }

    .dashboard-hero-main,
    .profile-hero-main {
        flex-direction: column;
    }

    .linkedin-hero-body {
        padding: 0 1.2rem 1.2rem;
    }

    .linkedin-avatar-wrap {
        left: 1.2rem;
    }

    .linkedin-actions {
        justify-content: flex-start;
        padding-top: 0;
    }

    .profile-shell {
        grid-template-columns: 1fr;
    }

    .profile-summary-card {
        position: static;
    }

    .profile-header-body {
        flex-direction: column;
        align-items: flex-start;
        margin-top: -48px;
        padding: 0 1.2rem 1.2rem;
    }

    .profile-header-cover {
        height: 140px;
    }

    .workspace-hero-body,
    .workspace-hero-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .workspace-hero-body {
        padding: 1.2rem;
    }

    .workspace-actions {
        justify-content: flex-start;
        align-self: flex-start;
    }

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