/* Staff Card */
.staff-card {
    width: 100%;
}

.staff-card__link {
    display: block;
    text-decoration: none;
    color: #333;
}

.staff-card__thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin: 0 0 12px;
}

.staff-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.staff-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.staff-card__roman {
    color: #fff;
    font-size: 16px;
    text-transform: uppercase;
}

.staff-card__link:hover .staff-card__overlay {
    opacity: 1;
}

.staff-card__body {
    text-align: center;
}

.staff-card__branch {
    font-size: 16px;
    margin: 0 0 5px;
    line-height: 1.5;
}

.staff-card__name {
    font-size: 20px;
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.2em;
}

.post-list.vk_posts {
    display: grid;
    margin: 0;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px 46px;
}


@media screen and (max-width: 767.98px) {
    .post-list.vk_posts {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.staff-area-title,
.staff-area-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    font-size: 25px;
    font-weight: 500;
    margin: 60px 0 0;
    letter-spacing: 0.1em;
    white-space: nowrap;
    margin-bottom: 40px;
}

.staff-area-title::before,
.staff-area-title::after,
.staff-area-subtitle::before,
.staff-area-subtitle::after {
    content: "";
    display: block;
    width: calc(50% - 70px);
    height: 0.5px;
    background-color: #000;
    flex-grow: 0;
}

.staff-area-title::before,
.staff-area-subtitle::before {
    margin-right: auto;
}

.staff-area-title::after,
.staff-area-subtitle::after {
    margin-left: auto;
}

.post-type-archive .staff-area-subtitle::before,
.post-type-archive .staff-area-subtitle::after {
    content: none;
}

.staff-detail {
    margin-bottom: 80px;
}

.staff-detail__area {
    margin-bottom: 60px;
}

.staff-detail__header {
    margin-bottom: 40px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
}

.staff-detail__position {
    margin-bottom: 0;
}

.staff-detail__name {
    font-size: 35px;
    font-weight: bold;
    margin: 0 0 5px;
    line-height: 1.2;
}

.staff-detail__roman {
    margin: 0;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.staff-detail__profile {
    display: flex;
    flex-wrap: wrap;
    gap: 75px;
    margin-bottom: 80px;
}

.staff-detail__visual {
    width: 400px;
    margin: 0;
    flex-shrink: 0;
    position: relative;
}

.staff-detail__branch-tag {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #1e1e1e;
    color: #fff;
    padding: 8px 25px;
    font-size: 16px;
    z-index: 2;
}

.staff-detail__img {
    width: 100%;
    height: auto;
    vertical-align: bottom;
}

.staff-detail__info {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.staff-detail__list {
    margin: 20px 0 0 0;
    width: 100%;
    border-top: 1px solid #ddd;
}

.staff-detail__row {
    display: flex;
    border-bottom: 1px solid #ddd;
}

.staff-detail__term {
    width: 140px;
    background-color: #eaeaea;
    padding: 8px 20px;
    font-weight: normal;
    display: flex;
    align-items: center;
    margin: 0;
}

.staff-detail__desc {
    flex: 1;
    padding: 12px 20px;
    margin: 0;
}

.staff-detail__section {
    padding-top: 35px;
    padding-bottom: 30px;
    border-bottom: 0.5px solid #000;
}

.staff-detail__section:first-child {
    border-top: 0.5px solid #000;
}

.staff-detail__heading {
    display: inline-block;
    background-color: #1e1e1e;
    color: #fff;
    font-size: 18px;
    padding: 10px 30px;
    border-radius: 50px;
    width: 250px;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    text-align: center;
}

.staff-detail__text {
    font-size: 16px;
    line-height: 1.8;
    padding: 0 10px;
    letter-spacing: 0.09em;
}

.staff-detail__youtube-wrapper {
    max-width: 800px;
    margin: 40px auto;
}

.staff-detail__youtube {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
}

.staff-detail__youtube iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media screen and (max-width: 991.98px) {
    .staff-detail__list {
        position: relative;
    }
}

@media screen and (max-width: 767.98px) {
    .staff-detail__profile {
        flex-direction: column;
        gap: 30px;
    }

    .staff-detail__visual {
        width: 100%;
    }

    .staff-detail__row {
        flex-direction: column;
    }

    .staff-detail__term {
        width: 100%;
        background-color: #f0f0f0;
        padding: 10px 15px;
    }

    .staff-detail__desc {
        padding: 10px 15px;
    }

    .staff-detail__name {
        font-size: 28px;
    }
}

.navigation.pagination {
    display: none;
}