/* Deliberately scoped: the surrounding Home retains its existing visual system. */
.bsf-education {
    box-sizing: border-box;
    width: calc(100% - 32px);
    max-width: 1180px;
    min-width: 0;
    margin: 64px auto;
    padding: clamp(20px, 3vw, 40px);
    border: 1px solid #82663d;
    border-radius: 20px;
    background: #0c0a0b;
    color: #fff;
    font-family: inherit;
    line-height: 1.65;
    scroll-margin-top: 100px;
}
.bsf-education *,
.bsf-education *::before,
.bsf-education *::after {
    box-sizing: border-box;
}
.bsf-education h2,
.bsf-education h3,
.bsf-education p,
.bsf-education span,
.bsf-education li,
.bsf-education a,
.bsf-education button,
.bsf-home .bsf-education h2,
.bsf-home .bsf-education h3,
.bsf-home .bsf-education h2 span,
.bsf-home .bsf-education h3 span {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    text-shadow: none;
    overflow-wrap: anywhere;
}
.bsf-education h2,
.bsf-education h3,
.bsf-home .bsf-education h2,
.bsf-home .bsf-education h3,
.bsf-home .bsf-education h2 span,
.bsf-home .bsf-education h3 span {
    background: none !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    line-height: 1.25 !important;
    letter-spacing: normal;
    padding: 0;
    animation: none;
    transform: none;
    opacity: 1;
}
.bsf-education h2,
.bsf-home .bsf-education h2 {
    font-size: clamp(1.65rem, 3vw, 2.4rem) !important;
    margin: 0 0 16px;
}
.bsf-education h3,
.bsf-home .bsf-education h3 {
    font-size: 1.25rem !important;
    margin: 8px 0 12px;
}
.bsf-education p {
    margin: 0 0 20px;
}
.bsf-education a {
    text-decoration: underline;
    text-underline-offset: 4px;
}
.bsf-education a:focus-visible,
.bsf-education button:focus-visible {
    outline: 3px solid #e6c887;
    outline-offset: 4px;
}
.bsf-education .bsf-education__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
    align-items: start;
    gap: 28px;
}
.bsf-education .bsf-education__lesson {
    min-width: 0;
    scroll-margin-top: 140px;
}
.bsf-education .bsf-education__player {
    margin-bottom: 20px;
    border: 1px solid #82663d;
    border-radius: 12px;
    background: #000;
}
/* Width/height attributes come from measured media metadata; never force 16:9. */
.bsf-education video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    background: #000;
    border-radius: 11px;
}
.bsf-education .bsf-education__playlist {
    display: grid;
    gap: 10px;
    min-width: 0;
}
.bsf-education .bsf-education__lesson-button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 44px;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #82663d;
    border-radius: 10px;
    background: #171115;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
    text-align: left;
    cursor: pointer;
}
.bsf-education .bsf-education__lesson-button:hover {
    background: #37202a;
}
.bsf-education .bsf-education__lesson-button[aria-pressed="true"] {
    border-color: #e6c887;
    background: #48232f;
    box-shadow: inset 4px 0 0 #e6c887;
}
.bsf-education .bsf-education__lesson-number {
    flex: 0 0 30px;
    text-align: center;
    font-weight: 700;
}
.bsf-education .bsf-education__step {
    margin-bottom: 4px;
    font-weight: 700;
}
.bsf-education .bsf-education__notice {
    margin: 24px 0 0;
    padding: 16px 18px;
    border: 1px solid #82663d;
    border-left: 4px solid #e6c887;
    border-radius: 8px;
    background: #29151e;
    font-size: 0.95rem;
}
.bsf-education .bsf-education__notice[data-education-source-warning] {
    margin: 0 0 24px;
    font-weight: 600;
}
.bsf-education .bsf-education__status:empty {
    margin: 0;
}
.bsf-education noscript li {
    margin-bottom: 16px;
}
@media (max-width: 920px) {
    .bsf-education .bsf-education__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
    .bsf-education {
        margin: 40px auto;
    }
}
