.teams {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.teams__bg {
    position: absolute;
    z-index: -1;
    width: 307px;
    left: -93px;
    bottom: -64px;
    opacity: 0.1;
}

.teams__title :last-child {
    margin-bottom: 0;
}

.teams__top-content {
    margin-bottom: 20px;
}

.team-slider {
    margin: 0 -16px;
    font-size: 0;
    justify-content: center;
    row-gap: 32px;
    padding-bottom: 50px;
}

.team-slider .slick-list {
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.team-slider  .slick-track {
    display: flex !important;
    touch-action: pan-y;
}

.team-slider  .slick-slide {
    height: inherit !important;
}

.team-slider  .slick-slide div {
    height: 100%;
}

.team-slider  .slick-slide .team div {
    height: auto;
}

.team-item {
    padding: 0 16px;
}

.team {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    border-radius: 20px;
    padding: 15px 20px 20px;
    position: relative;
    color: var(--text-color);
}

.team__image {
    height: 285px !important;
}

.team__image img {
    border-radius: 20px;
}

.team__hover {
    background: var(--white);
    position: absolute;
    width: 100%;
    height: 100% !important;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    flex-direction: column;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    opacity: 0;
    z-index: -1;
    transition: all .3s;
}

.team__details {
    margin-top: 20px;
    position: relative;
    padding-right: 50px;
}

h4.team__title {
    color: var(--dark-blue);
    font-size: 19px;
    margin-bottom: 10px;
}

.team__designation {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5em;
    text-transform: uppercase;
    background: var(--red-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.team__click {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(0, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px !important;
    border-radius: 8px;
    background: var(--secondary-color);
    cursor: pointer;
}

.is-active .team__hover {
    opacity: 1;
    z-index: 1;
}

.team__hover .team__click {
    right: 20px;
    top: 20px;
    transform: translate(0, 0);
}

.team__hover .team__click img,
.team__hover .team__click i {
    transform: rotate(45deg);
}

.team__description {
    margin: 15px auto 20px;
    max-width: 392px;
}

.team__hover ul {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.team__hover ul li {
    margin: 0;
    padding: 0;
}


.team__hover ul li::before {
    display: none;
}

.team__hover ul li a:not(.btn) {
    text-decoration: none;
    font-weight: normal;
    font-size: 40px;
    line-height: 1em;
    color: var(--secondary-color);
    text-decoration-color: currentColor;
}

.teams__bttn {
    margin-top: 20px;
}

@media (min-width: 768px) {
    .teams__bg {
        width: 938px;
        max-width: initial;
        left: -309px;
        bottom: -171px;
    }

    .teams__top-content {
        margin-bottom: 32px;
    }

    .team-slider {
        padding-bottom: 0;
    }

    .team-slider .fx-slide {
        display: block;
    }

    .team {
        padding: 15px 14px 16px;
    }

    .team__details {
        margin-top: 18px;
    }

    h4.team__title {
        font-size: 24px;
    }

    .team__designation {
        font-size: 16px;
    }

    .teams__bttn {
        margin-top: 32px;
    }
}


@media (min-width: 1200px) {
    .teams__bg {
       left: -267px;
        bottom: -198px;
    }

    .teams__top-content {
        margin-bottom: 32px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .team {
        padding: 15px 15px 25px;
    }

    .team__image {
        height: 345px !important;
    }


    .team__details {
        margin-top: 20px;
        text-align: center;
        padding-right: 0;
    }

    h4.team__title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .team__designation {
        font-size: 18px;
    }

    .teams__bttn {
        margin-top: 0;
    }

    .team__click {
        display: none;
    }

    .team:hover .team__hover {
        z-index: 1;
        opacity: 1;
    }

    .team__hover ul li a:not(.btn):hover,
    .team__hover ul li a:not(.btn):focus-visible {
        color: var(--secondary-hover-color);
        text-shadow: none;
    }
}


@media (min-width: 1600px) {
    .teams__bg {
        bottom: -267px;
    }


    .team {
        padding: 15px 17px 25px;
    }

        
    .team__description {
        max-width: 372px;
    }

}

.team__click i {
    font-size: 20px;
    color: var(--white);
    line-height: 1;
    transition: transform .3s ease;
}

.team__image--placeholder {
    background: #efeff0;
    border-radius: 20px;
}

.teams__empty {
    color: var(--white);
    text-align: center;
    margin: 20px auto 0;
    max-width: 480px;
    opacity: .8;
}

.team__socials {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

/* Hide the always-visible card-front socials at every breakpoint.
   Icons are still rendered inside .team__hover (which is revealed on
   hover at 1200px+ or via the .is-active toggle below 1200px), so
   users always have a path to them — but the card front stays clean. */
.team > .team__socials {
    display: none;
}

.team__socials li {
    margin: 0;
    padding: 0;
    line-height: 0;
}

.team__socials li::before {
    display: none;
}

.team__socials a:not(.btn) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-decoration-color: currentColor;
    color: var(--secondary-color);
    font-weight: normal;
    transition: color .2s ease;
}

.team__socials a:not(.btn) i {
    display: inline-block;
    font-size: 36px;
    line-height: 1;
    vertical-align: middle;
}

.team__socials a:not(.btn):hover,
.team__socials a:not(.btn):focus-visible {
    color: var(--secondary-hover-color);
    text-shadow: none;
}

.team__hover ul li a:not(.btn) i {
    display: inline-block;
    font-size: 40px;
    line-height: 1;
    vertical-align: middle;
}

@media (min-width: 768px) {
    .team__socials {
        margin-top: 14px;
    }

    .team__socials a:not(.btn) i {
        font-size: 40px;
    }
}

.team-slider .slick-dots {
    left: 0;
    right: 0;
}

.team-slider .slick-dots li button {
    background: var(--white);
}

.team-slider .slick-dots,
.team .team__socials,
.team .team__hover ul {
    padding-left: 0;
}
