/* Общий стиль для контейнера профиля */
.employee-profile {
    margin: 0 auto;
    padding: 2rem;
    border: 0.1em solid #d9d9d9;
    border-radius: .3em; /* Закругленные углы */
}
.employee {
    padding: 0 0 5vh 0;
}
/* Заголовки и должность */
.employee-header h2 {
    font-size: 2.5rem; /* Размер заголовка в rem */
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: 0.1em; /* Расстояние между буквами */
}

.employee-header .position {
    font-size: 1.25rem; /* Размер текста должности */
    color: #854385; /* Теплый коричневый цвет */
    margin-bottom: 2rem;
    font-style: italic;
}

/* Основной контент */
.employee-content {
    line-height: 1.8; /* Увеличенная высота строки */
}

.employee-bio p,
.employee-hobbies p,
.employee-dream p {
    font-size: 1em; /* Размер основного текста */
    margin-bottom: 1.5em;
}
.employee-dream {
    display: inline-block;
    margin-top: 3rem;
}
/* Подзаголовки */
.employee-content h3 {
    font-size: 1.75rem; /* Размер подзаголовков */
    color: #854385; /* Цвет подзаголовков */
    margin-top: 3rem; /* Отступ сверху */
    margin-bottom: 1.5rem;
    border-bottom: 0.1rem solid #d9d9d9; /* Линия под подзаголовком */
    padding-bottom: 0.5rem;
}

/* Список увлечений */
.employee-hobbies ul {
    list-style-type: disc;
    padding-left: 2em; /* Отступ для маркеров списка */
}

.employee-hobbies li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Выделение важных моментов */
strong {
    color: #f6785c; /* Розовый акцент */
    font-weight: bold;
}
.employee_list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1em;
}
.employee_list  .text-block {
    justify-content: center;
    bottom: 2em;
    align-items: center;
    font-size: 1.5em;
    margin-top: 1em;
    margin-left: 0
}
.employee_list .news-item {
    display: flex;
    position: relative;
    border: 0.1em solid #d9d9d9;
    border-radius: .3em;
    aspect-ratio: 1/1.2;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    z-index: 1;
}
.employee__section:first-child {
    padding: 0 0 2em 0;
}
.news-item a {
    z-index: 2;
    top: 6em;
    position: absolute;
}
.employee_list .text-block a:hover {
    color: #854385;
}
.employee_list .news-item::before {
    content: "";
    position: absolute;
    bottom: 0; /* Начальное положение: полоса находится внизу */
    left: 0;
    width: 100%; /* Полная ширина элемента */
    height: 0; /* Начальная высота полосы */
    background: #fffce5; /* Цвет полосы */
    z-index: 1; /* Размещаем поверх содержимого */
    transition: height 0.5s ease; /* Плавное изменение высоты */
}
.employee_list .news-item:hover::before {
    height: 100%; /* Полоса поднимается до верха */
}
.header_employee {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
/* Финальное сообщение */
.employee-message {
    margin-top: 3rem;
    padding: 1.5rem;
    background-color: #b994b9; /* Теплый бежевый фон */
    border-radius: 0.3rem;
    transition: background-color 0.3s ease, transform 0.3s ease; /* Плавный переход */
    display: inline-block;
}

.employee-message:hover {
    background-color: #854385; /* Немного светлее при наведении */
    transform: translateY(-0.2rem); /* Легкий эффект "поднятия" */
    color: white;
}

.employee-message p {
    font-size: 1.2em;
    font-weight: 500;
}
.employee-profile ul {
    margin: 2rem 0;
}
.employee-profile ul li {
    position: relative;
    margin-bottom: 2vh;
    color: #000000;
    font-weight: 400;
    line-height: normal;
    text-align: left;
    padding-left: 1.7em;
}
.employee-profile ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1vh;
    transform: translateY(-50%);
    width: 0.9em;
    height: 1.2em;
    background: url(/images/marker.svg) left center no-repeat;
    background-size: contain;
}
.employee-content img {
    border-radius: .3em;
    margin-right: 1em;
}
/* Базовые стили для ссылки */
.back-link {
    color: #c4c4c4; /* Цвет текста и стрелки */
    display: inline-flex; /* Для выравнивания текста и стрелки */
    align-items: center; /* Выравнивание по вертикали */
    gap: 0.5em; /* Расстояние между стрелкой и текстом */
    transition: color 0.3s ease; /* Плавное изменение цвета */
}

/* Эффект при наведении */
.back-link:hover {
    color: black; /* Темнее при наведении */
}

/* Контейнер для стрелки */
.arrow-icon {
    position: relative; /* Для позиционирования */
    display: inline-block; /* Чтобы можно было анимировать */
}

/* SVG стрелки */
.arrow-svg {
    width: auto; /* Автоматическая ширина */
    height: 1em; /* Фиксированная высота */
}

/* Линия стрелки */
.arrow-line {
    stroke-dasharray: 50; /* Полная длина линии */
    stroke-dashoffset: 30; /* Смещение, чтобы скрыть часть линии */
    transition: stroke-dashoffset 0.3s ease; /* Плавное изменение смещения */
}

/* Голова стрелки */
.arrow-head {
    transition: stroke 0.3s ease; /* Плавное изменение цвета */
}

/* Увеличение линии стрелки при наведении */
.back-link:hover .arrow-line {
    stroke-dashoffset: 0; /* Смещение убирается, линия становится полностью видимой */
}
.employee__section {
    padding: 2em 0;
}
.employee_list_top {
    padding: 0;
}
.employee_list .text-block {

        justify-content: center;
        top: -50%;
        align-items: center;
        font-size: 1.5em;
    width: 100%;

    position: absolute;
}
/* Дополнительные стили для мобильных устройств */
@media (max-width: 48rem) { /* 768px в em */
    .employee-profile {
        padding: 1.5rem;
    }
    .header_employee{
        flex-direction: column;
    }
    .employee-content img {
        float: none!important;
    }
    .employee-message {
        margin-top: 1rem;
    }
    .employee-message p {
        font-size: 1em;
    }
    .employee-header h2 {
        font-size: 2rem;
    }

    .employee-content h3 {
        font-size: 1.5rem;
    }

    .employee-bio p,
    .employee-hobbies p,
    .employee-dream p {
        font-size: 1em;
    }
    .employee_list {
        grid-template-columns: repeat(2, 1fr);
    }
    .employee_list .text-block {
        align-items: center;
        font-size: 1em;
        margin-top: 1em;
        margin-left: 0;
    }
}
.warning-message {
    background: #FFE600;
    border-radius: 0.3em;
    padding: 2rem;
}


.contact-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.contact-list li {
    background: #fffce5;
    margin: 0.5rem 0;
    padding: 1rem;
    border-radius: 0.4rem;
    font-size: 1.1em; /* Относительно базового размера */
    display: flex;
    align-items: center;
}

.icon {
    margin-right: 1rem;
    font-size: 1.4em; /* Относительно базового размера */
}

.rules {
    background: #b994b9;
    padding: 1.5rem;
    border-radius: 0.3em;
    margin-bottom: 2rem;
}

.rules p {
    font-weight: bold;
    font-size: 1.2em; /* Относительно базового размера */
}

.note {
    font-style: italic;
    color: #5a6268;
    text-align: center;
    font-size: 1em; /* Относительно базового размера */
}
.news-item {
    display: flex;
    position: relative;
    box-sizing: border-box;
    border: 0.1vw solid #F4F4F4;
    border-radius: 0.3vw;
    margin-bottom: 1.5vh;
    background: #ffffff;
}
.img-block {
    max-width: 10vw;
    Aspect-ratio: 1 / 1;
    overflow: hidden;
    align-content: center;
    border-top-left-radius: 0.3vw;
    border-bottom-left-radius: 0.3vw;
}
.preview_picture {
    max-width: 100%;
    height: auto;
    position: relative;
    top: 2em;
}
.text-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 3vh;
}
.purple_btn_standart {
    position: absolute;
    right: 1.5vw;
    bottom: 2vh;
    color: #000000;
    font-size: 0.9vw;
    font-weight: 500;
    line-height: 2vh;
    text-align: center;
    box-sizing: border-box;
    border-radius: 0.3vw;
    background: #ffe600;
    width: 15vw;
    padding: 1.3vh;
}
.anons-title a:hover {
    color: #018370;
}