/* Isolated style namespace: does not affect any school-management components. */
.bdsc-header {
    box-sizing: border-box;
    position: relative;
    isolation: isolate;
    display: block;
    width: 100%;
    height: var(--bdsc-desktop-height, 265px);
    margin: 0;
    overflow: hidden;
    background: linear-gradient(110deg, #123b30 0%, #31795d 52%, #0c312b 100%);
}
.bdsc-header *, .bdsc-header *::before, .bdsc-header *::after { box-sizing: border-box; }
.bdsc-header__photos, .bdsc-header__shade { position: absolute; inset: 0; pointer-events: none; }
.bdsc-header__photos { z-index: 0; }
.bdsc-header__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 900ms ease, visibility 900ms ease;
}
.bdsc-header__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.bdsc-header__photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.bdsc-header__shade { z-index: 2; background: rgba(0, 0, 0, var(--bdsc-shade, .55)); }
.bdsc-header__brand {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 2.3vw, 25px);
    min-width: 0;
    margin: 0;
    padding: 15px 24px;
    color: #fff !important;
    text-decoration: none !important;
    text-align: center;
}
.bdsc-header__brand:hover, .bdsc-header__brand:focus { color: #fff !important; text-decoration: none !important; }
.bdsc-header__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: clamp(86px, 10vw, 122px);
    height: clamp(86px, 10vw, 122px);
    padding: 5px;
    border: 2px solid rgba(255,255,255,.95);
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0,0,0,.35);
    overflow: hidden;
}
.bdsc-header__logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}
.bdsc-header__name {
    display: block;
    max-width: min(780px, 78%);
    min-width: 0;
    font-size: clamp(25px, 3.5vw, 46px) !important;
    font-weight: 800 !important;
    line-height: 1.25;
    color: #fff !important;
    overflow-wrap: anywhere;
    text-shadow: 1px 2px 8px rgba(0, 0, 0, .8);
}
@media (max-width: 767px) {
    .bdsc-header { height: var(--bdsc-mobile-height, 180px); }
    .bdsc-header__brand { gap: 12px; padding: 12px 15px; }
    .bdsc-header__logo { width: clamp(67px, 16vw, 86px); height: clamp(67px, 16vw, 86px); padding: 3px; }
    .bdsc-header__name { max-width: calc(100% - 84px); font-size: clamp(18px, 5.2vw, 30px) !important; }
}
@media (max-width: 370px) {
    .bdsc-header__brand { gap: 9px; padding: 10px; }
    .bdsc-header__logo { width: 62px; height: 62px; }
    .bdsc-header__name { max-width: calc(100% - 71px); font-size: 19px !important; }
}
@media (prefers-reduced-motion: reduce) {
    .bdsc-header__slide { transition: none; }
}
