.course-hero {
    width: min(100%, 1180px);
    margin: 0 auto 1.5rem;
    padding: 1.45rem 1.6rem;
}

.course-page-actions {
    width: min(100%, 1180px);
    margin-inline: auto;
}

.course-layout {
    width: min(100%, 1180px);
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: minmax(0, 820px) minmax(270px, 320px);
    justify-content: center;
    align-items: start;
    gap: 1.25rem;
}

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

.course-brief-card {
    margin-bottom: 1rem;
    padding: 1rem 1.15rem;
    border: 1px solid #cde7ec;
    border-left: 5px solid #0ea5a4;
    background: linear-gradient(135deg, #f3fbfb 0%, #ffffff 58%, #fff8eb 100%);
}

.course-brief-card h2 {
    margin-bottom: 0.35rem;
}

.course-step-panel {
    position: relative;
    margin: 0 auto 1rem;
    padding: 1rem;
    overflow: hidden;
    border: 1px solid #c7dfe7;
    background: linear-gradient(155deg, #ffffff 0%, #f7fbff 46%, #fff7ed 100%);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.11);
}

.course-step-panel::before {
    content: "";
    display: block;
    height: 6px;
    margin: -1rem -1rem 1rem;
    background: linear-gradient(90deg, #0ea5e9 0%, #14b8a6 45%, #f59e0b 100%);
}

.course-quiz-panel::before {
    background: linear-gradient(90deg, #2563eb 0%, #14b8a6 48%, #84cc16 100%);
}

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

.course-step-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 1.55rem;
    padding: 0.18rem 0.55rem;
    border: 1px solid #99f6e4;
    border-radius: 999px;
    background: #ecfeff;
    color: #0f766e;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.course-step-title {
    margin: 0.45rem 0 0.25rem;
    color: #0f172a;
}

.course-step-progress {
    min-width: 68px;
    text-align: center;
    font-weight: 800;
    color: #0f172a;
    border: 1px solid #bae6fd;
    background: linear-gradient(135deg, #ecfeff 0%, #fef3c7 100%);
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.course-progress-track {
    width: 100%;
    height: 0.7rem;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    margin-bottom: 1.05rem;
}

.course-progress-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #0ea5e9 0%, #14b8a6 48%, #f59e0b 100%);
    transition: width 0.2s ease;
}

.course-step-body {
    padding: 1.15rem;
    border: 1px solid #d8e8ed;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    line-height: 1.68;
}

.course-material-copy {
    max-width: 72ch;
    margin-inline: auto;
}

.course-preformatted {
    white-space: pre-wrap;
}

.course-material-copy > :first-child {
    margin-top: 0;
}

.course-material-copy > :last-child {
    margin-bottom: 0;
}

.course-material-copy h2,
.course-material-copy h3,
.course-material-copy h4 {
    margin: 1.1rem 0 0.45rem;
    color: #0f172a;
}

.course-material-copy p {
    margin: 0 0 0.85rem;
}

.course-material-copy ul,
.course-material-copy ol {
    display: grid;
    gap: 0.55rem;
    margin: 1rem 0;
    padding: 0;
}

.course-material-copy ul {
    list-style: none;
}

.course-material-copy ol {
    list-style: none;
    counter-reset: course-step;
}

.course-material-copy li {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 0.7rem 0.85rem;
}

.course-material-copy ul li {
    display: grid;
    grid-template-columns: 0.7rem 1fr;
    gap: 0.65rem;
    align-items: start;
}

.course-material-copy ul li::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    margin-top: 0.52rem;
    border-radius: 999px;
    background: #14b8a6;
}

.course-material-copy ol li {
    counter-increment: course-step;
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: 0.75rem;
    align-items: start;
}

.course-material-copy ol li::before {
    content: counter(course-step);
    display: inline-grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
}

.course-material-copy table {
    width: 100%;
    margin: 1rem 0;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
}

.course-material-copy th,
.course-material-copy td {
    box-sizing: border-box;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
    line-height: 1.55;
}

.course-material-copy th {
    padding-block: 0.85rem;
    background: #ecfeff;
    color: #0f766e;
    font-size: 0.82rem;
    text-transform: uppercase;
}

.course-material-copy td + td,
.course-material-copy th + th {
    border-left: 1px solid #e2e8f0;
}

.course-material-copy th > :first-child,
.course-material-copy td > :first-child {
    margin-top: 0;
}

.course-material-copy th > :last-child,
.course-material-copy td > :last-child {
    margin-bottom: 0;
}

.course-material-copy tr:last-child td {
    border-bottom: 0;
}

.course-material-visual {
    width: min(100%, 420px);
    margin: 1.15rem auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 1px dashed #7dd3fc;
    border-radius: 8px;
    background: linear-gradient(135deg, #f0f9ff 0%, #fefce8 100%);
}

.course-training-image {
    display: block;
    width: min(150px, 100%);
    height: auto;
}

.course-resource-row {
    margin: 1rem 0 0;
    text-align: center;
}

.course-confirm-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1rem;
    padding: 0.78rem 0.85rem;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    background: #ecfdf5;
}

.course-ack-note {
    margin: 0.65rem 0 0;
    color: #92400e;
    font-size: 0.84rem;
    font-weight: 700;
}

.course-step-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    gap: 0.65rem;
}

.course-step-actions .pm-btn {
    min-width: 150px;
}

.course-assessment-locked {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #fed7aa;
    border-left: 5px solid #f59e0b;
    background: #fff7ed;
}

.course-question-text {
    display: block;
    margin-bottom: 0.8rem;
    color: #0f172a;
    font-size: 1rem;
}

.course-option-row {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.72rem 0.82rem;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #f8fafc;
}

.course-option-row:hover {
    border-color: #7dd3fc;
    background: #f0f9ff;
}

.course-answer-textarea {
    min-height: 7rem;
    background: #ffffff;
}

.course-completion-panel {
    position: sticky;
    top: 1rem;
    padding: 1rem;
    border: 1px solid #cde7ec;
    border-top: 5px solid #14b8a6;
    background: linear-gradient(155deg, #ffffff 0%, #f0fdfa 100%);
}

.course-progress-card {
    margin-bottom: 1rem;
    border-color: #a7f3d0;
    background: #ffffff;
}

.course-declaration-card {
    margin-bottom: 1rem;
    padding: 0.85rem;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    background: #f0f9ff;
}

.course-declaration-card p {
    margin: 0 0 0.55rem;
    font-size: 0.9rem;
}

.course-help-text {
    margin-top: 0.75rem;
}

.course-certificate-action {
    display: inline-block;
    margin-top: 0.75rem;
}

@media (max-width: 1100px) {
    .course-layout {
        grid-template-columns: minmax(0, 820px);
    }

    .course-completion-panel {
        position: static;
    }
}

@media (max-width: 720px) {
    .course-page-actions,
    .course-layout {
        width: 100%;
    }

    .course-step-header {
        flex-direction: column;
    }

    .course-step-progress {
        align-self: flex-start;
    }

    .course-step-body {
        padding: 0.9rem;
    }

    .course-step-actions {
        flex-direction: column;
    }

    .course-step-actions .pm-btn {
        width: 100%;
    }

    .course-material-copy ol li {
        grid-template-columns: 1.75rem 1fr;
    }
}
