.departament-hero {
    background: url(https://storage.vigbo.tech/p/s2500/gallery-photo/27833ae7-1146-486e-bcd4-e5cec2edb815/f1377e4e-0060-48db-a843-ef23efa8db63/original/qP_c6k5INf1Tx8iYCzVEI.jpg) no-repeat center 40% / cover;
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.teachers-container {
    display: flex;
    flex-wrap: nowrap;
    /* отключить перенос */
    gap: 20px;
    padding: 20px;
    overflow-x: auto;
    max-width: 100vw;
}

.teachers-container::-webkit-scrollbar {
    height: 8px;
}

.teachers-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}


.teachers-box {
    min-width: 23%;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: white;
    text-align: center;
    padding: 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: start;
    transition: transform 0.3s ease;
    position: relative;
    margin-block-start: 20px;
    align-items: center;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}

.content-teacher {
    width: 80%;
}

.teachers-box {
    background-size: cover;
    background-position: center center;
}

.teachers-box:hover {
    transform: scale(1.03);
}

.border {
    padding: 20px;
    border-radius: 50%;
    background: transparent;
    border: 10px solid white;
}

.teacher-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: var(--teacher_avatar);
    background-size: cover;
    background-position: center 50%;
    background-repeat: no-repeat;
    border: 5px solid var(--white);
}



.fio {
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--indigoblue-font);
}

.job_title {
    font-size: 15px;
    font-style: italic;
    color: #575757;
    margin-bottom: 10px;
    font-weight: 500;
    text-transform: lowercase;
}

.info {
    font-size: 12px;
    color: #fff;
    flex-grow: 1;
    overflow-y: auto;
}

.blur {
    display: none;
    position: fixed;
    z-index: 9999;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    backdrop-filter: blur(5px);
    /* Эффект размытия */
    background-color: rgba(0, 0, 0, 0.5);
    /* Затемнение */
}

.blur.active {
    display: block;
}

.more-teachers-overlay {
    display: none;
    position: fixed;
    /* поверх всех элементов */
    top: 40%;
    left: 40%;
    width: 60vw;
    height: 650px;
    transform: translate(-40%, -40%);

    /* затемнение, можно изменить */
    z-index: 10000;
    /* выше других */
    display: none;
    /* по умолчанию скрыто, включай через JS */
    border-radius: 10px;
    padding: 20px;
    color: white;

}

.more-teachers-overlay.active {
    display: block;

}

.card-text-teacher strong {
    color: white !important;
}

.teacher-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* более современный шрифт */
    font-weight: 700;
    font-size: 36px;
    color: var(--indigoblue-font);
    margin-bottom: 30px;
    text-align: start;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 40px auto;
    /* padding: 0 5vw; */
}

.dean {
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center center;
    border-radius: 20px;
    flex-direction: column;
    padding: 40px 0;
    gap: 20px;
}

.image-dean {
    border: 10px solid white;
    border-radius: 100%;
    width: 50%;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}


.information-dean {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.information-dean .full-name-dean {
    font-size: 25px;
    font-weight: 700;
    color: white;
    margin: 0;
    width: 70%;
    text-transform: uppercase;
}

.information-dean .job-title-dean {
    font-size: 15px;
    font-weight: 300;
    color: white;
    margin-block: 20px;
    width: 70%;

}

.information-dean .email-dean a {
    font-size: 15px;
    font-weight: 700;
    color: white;
    margin: 0;
    text-decoration: none;
    text-transform: lowercase;


}

.email_head_departament {
    border: 1px solid white;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}



.information-dean .history-departament {
    font-size: 14px;
    font-weight: 500;
    color: white;
    margin: 0;
    padding: 10px 25px;
    border: 1px solid white;
    border-radius: 10px;
    text-decoration: none;
    width: 70%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.departament-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .departament-container {
        flex-direction: column-reverse;
    }

    .departament-history.p-5 {
        padding: 0 !important;
        text-align: justify !important;
    }

    .more-teachers-overlay {
        width: 100vw;
    }

    .teacher-info {
        overflow-y: scroll;
    }
}