/* --------------------
    team page styles
-------------------- */
.section-teams .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.3s ease;
}

.section-teams .team-item .team-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    z-index: 1;
    opacity: 0;
    border-radius: 2rem;
    transition: 0.5s ease;
}

.section-teams .team-content {
    position: absolute;
    bottom: 1.75rem;
    left: 2rem;
    right: 2rem;
    background-color: transparent;
    z-index: 2;
    transition: opacity 1s ease, visibility 1s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: start;
    gap: 0.25rem;
}

.section-teams .team-content .team-name {
    color: #fff;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    line-height: 1.2;
    font-variation-settings: "wght" 600, "wdth" 100;
}

.section-teams .team-content .team-post {
    color: #fff;
    font-size: 1rem;
    line-height: 1.2;
    font-variation-settings: "wght" 500, "wdth" 100;
    margin-bottom: 0.5rem;
}

.section-teams .team-content .team-desc {
    color: #fff;
    line-height: 1.25;
    font-size: 1rem;
}

.swiper-comment-wrap-desk {
    display: flex;
    gap: 30px;
}

@media screen and (min-width:768px) {
    .section-teams .team-content {
        opacity: 0;
        visibility: hidden;
        min-width: 300px;
    }

    /* .section-teams .team-item:hover .team-img {
        width: 100%;
    } */

    .section-teams .hover .team-item .team-img img {
        filter: grayscale(0%);
    }

    .section-teams .hover .team-item .team-content {
        opacity: 1;
        visibility: visible;
    }

    .section-teams .team-item:hover,
    .section-teams .team-slide-active .team-item {
        /* flex: 1.5; */
        /* z-index: 1; */
    }

    .section-teams .swiper-slide {
        width: 20% !important;
        overflow: hidden;
    }

    .section-teams .swiper-slide.nohover {
        width: 16.666% !important;
    }

    .section-teams .swiper-slide.hover {
        width: 33% !important;
    }

    .section-teams .team-item {
        position: relative;
        flex: 1;
        height: 512px;
        transition: flex 0.3s ease;
        margin: 0 5%;
    }

    .section-teams .team-img {
        height: 512px;
        width: 100%;
        overflow: hidden;
        transition: width 0.3s ease;
        position: relative;
        border-radius: 2rem;
    }

    .section-teams .team-img img {
        height: 100%;
        width: 100%;
        border-radius: 2rem;
        object-fit: cover;
        transition: 0.3s linear;
        transform: scale(1.05);
        filter: grayscale(100%);
    }

    .section-teams .hover .team-img img {
        transform: scale(1);
    }

    .section-teams .hover .team-item .team-img::before {
        opacity: 1;
    }

    .section-teams .team-item .team-img::before {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.7) 90%, rgba(0, 0, 0, 0.7) 100%);
    }
}

@media screen and (max-width:767.99px) {
    .section-teams .swiper-slide {
        width: 270px;
    }

    .section-teams .swiper-slide .team-item {
        padding: 0 5px;
    }

    .section-teams .team-img img {
        height: 100%;
        width: 100%;
        border-radius: 2rem;
        object-fit: cover;
        min-height: 300px;
    }

    .section-teams .team-img {
        position: relative;
        border-radius: 2rem;
        min-height: 300px;
    }

    .section-teams .team-item {
        position: relative;
        height: auto;
        transition: flex 0.3s ease;
    }

    .section-teams .team-item .team-img::before {
        opacity: 1;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.7) 90%, rgba(0, 0, 0, 0.7) 100%);
    }

    .section-teams .team-content {
        right: 1rem;
        left: 1rem;
    }
}