.s2e-learnpath-library,
.s2e-learnpath-course-panel {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.s2e-learnpath-library {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 18px;
}

.s2e-learnpath-library-head {
    margin-bottom: 22px;
}

.s2e-learnpath-library-head span,
.s2e-learnpath-course-summary span {
    display: inline-flex;
    align-items: center;
    color: #b58a2b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.s2e-learnpath-library-head h2,
.s2e-learnpath-course-summary h2 {
    margin: 6px 0 8px;
    color: #101827;
    font-size: clamp(26px, 4vw, 44px);
    line-height: 1.05;
}

.s2e-learnpath-library-head p,
.s2e-learnpath-course-summary p {
    max-width: 720px;
    margin: 0;
    color: #536070;
    font-size: 16px;
}

.s2e-learnpath-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}

.s2e-learnpath-card {
    overflow: hidden;
    border: 1px solid #dce4ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .08);
}

.s2e-learnpath-card-image {
    display: block;
    aspect-ratio: 16 / 9;
    background-color: #10213b;
    background-position: center;
    background-size: cover;
}

.s2e-learnpath-card-body {
    padding: 18px;
}

.s2e-learnpath-card-body > span {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f7e8be;
    color: #6b4d0d;
    font-size: 12px;
    font-weight: 800;
}

.s2e-learnpath-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.2;
}

.s2e-learnpath-card h3 a {
    color: #0f172a;
    text-decoration: none;
}

.s2e-learnpath-card p {
    min-height: 44px;
    margin: 0 0 14px;
    color: #5a6675;
    font-size: 14px;
    line-height: 1.5;
}

.s2e-learnpath-progress {
    display: grid;
    gap: 8px;
}

.s2e-learnpath-progress i {
    display: block;
    overflow: hidden;
    height: 9px;
    border-radius: 999px;
    background: #e7edf5;
}

.s2e-learnpath-progress i b {
    display: block;
    width: var(--progress, 0%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0d5c63, #d2a84f);
}

.s2e-learnpath-progress strong {
    color: #172033;
    font-size: 13px;
}

.s2e-learnpath-progress.large i {
    height: 13px;
}

.s2e-learnpath-course-panel {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 20px;
    margin: 28px 0;
}

.s2e-learnpath-course-summary,
.s2e-learnpath-lessons,
.s2e-learnpath-lesson-actions {
    border: 1px solid #dce4ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .07);
}

.s2e-learnpath-course-summary {
    padding: 22px;
}

.s2e-learnpath-lessons {
    overflow: hidden;
}

.s2e-learnpath-lesson-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid #edf1f6;
    color: #152033;
    text-decoration: none;
}

.s2e-learnpath-lesson-row:last-child {
    border-bottom: 0;
}

.s2e-learnpath-lesson-row b {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eff6f5;
    color: #0d5c63;
    font-weight: 900;
}

.s2e-learnpath-lesson-row.complete b {
    background: #0d5c63;
    color: #fff;
}

.s2e-learnpath-lesson-row span {
    font-weight: 800;
}

.s2e-learnpath-lesson-row em {
    color: #718096;
    font-style: normal;
    font-size: 13px;
}

.s2e-learnpath-lesson-head {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid #dce4ef;
    border-radius: 8px;
    background: #fff;
}

.s2e-learnpath-lesson-head a {
    color: #0d5c63;
    font-weight: 800;
    text-decoration: none;
}

.s2e-learnpath-lesson-head span,
.s2e-learnpath-complete-pill {
    color: #1f2937;
    font-size: 13px;
    font-weight: 800;
}

.s2e-learnpath-lesson-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 24px 0;
    padding: 16px;
}

.s2e-learnpath-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 0;
    border-radius: 6px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.s2e-learnpath-button.primary {
    background: #0f172a;
    color: #fff;
}

.s2e-learnpath-button.secondary {
    background: #eef3f8;
    color: #132033;
}

.s2e-learnpath-complete-pill {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #e8f6ed;
    color: #0b6737;
}

.s2e-learnpath-empty {
    padding: 18px;
    border: 1px dashed #c8d3df;
    border-radius: 8px;
    background: #fff;
    color: #64748b;
}

.s2e-learnpath-celebration {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(7, 13, 24, .72);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}

.s2e-learnpath-celebration.show {
    opacity: 1;
    pointer-events: auto;
}

.s2e-learnpath-celebration-card {
    position: relative;
    z-index: 2;
    max-width: 480px;
    padding: 28px;
    border-radius: 8px;
    background: #fff;
    text-align: center;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .34);
}

.s2e-learnpath-celebration-card span {
    color: #b58a2b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.s2e-learnpath-celebration-card h2 {
    margin: 8px 0 10px;
    color: #101827;
    font-size: 30px;
    line-height: 1.1;
}

.s2e-learnpath-celebration-card p {
    color: #536070;
}

.s2e-learnpath-points {
    margin: 18px auto;
    padding: 14px;
    border-radius: 8px;
    background: #0f172a;
    color: #fff;
}

.s2e-learnpath-points strong {
    display: block;
    font-size: 28px;
}

.s2e-learnpath-confetti {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.s2e-learnpath-confetti i {
    position: absolute;
    top: -12px;
    width: 8px;
    height: 14px;
    border-radius: 2px;
    animation: s2e-learnpath-fall 2.4s linear forwards;
}

.s2e-learnpath-confetti i:nth-child(4n) { background: #d2a84f; }
.s2e-learnpath-confetti i:nth-child(4n+1) { background: #0d5c63; }
.s2e-learnpath-confetti i:nth-child(4n+2) { background: #ffffff; }
.s2e-learnpath-confetti i:nth-child(4n+3) { background: #213a5c; }

@keyframes s2e-learnpath-fall {
    to {
        transform: translateY(105vh) rotate(540deg);
    }
}

@media (max-width: 760px) {
    .s2e-learnpath-course-panel {
        grid-template-columns: 1fr;
    }
}
