/* =========================================
   MEET OUR TEAM
========================================= */

.team-section {
    width: 100%;
    /* padding: 100px 0 90px; */
    background: #ffffff;
    overflow: hidden;
}

.team-container {
    width: 92%;
    max-width: 1400px;
    margin: 0 auto;
}


/* =========================================
   HEADING
========================================= */

.team-heading {
    max-width: 760px;
    margin: 0 auto 55px;
    text-align: center;
}

.team-eyebrow {
    position: relative;

    display: inline-flex;
    align-items: center;
    gap: 16px;

    margin-bottom: 14px;

    color: #00bdb0;

    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 800;

    letter-spacing: 2px;
    text-transform: uppercase;
}

.team-eyebrow::before,
.team-eyebrow::after {
    content: "";

    width: 55px;
    height: 2px;

    background: #aee8e4;
}

.team-heading h2 {
    margin: 0 0 18px;

    color: #202232;

    font-family: "Montserrat", sans-serif;
    font-size: 52px;
    line-height: 1.15;
    font-weight: 800;
}

.team-heading h2 span {
    color: #00bdb0;
}

.team-heading p {
    max-width: 680px;
    margin: 0 auto;
    font-weight: 800;
    color: #687477;
    font-size: clamp(0.875rem, 1vw, 1rem);
    line-height: 1.7;
}


/* =========================================
   SLIDER
========================================= */

.team-slider-wrap {
    position: relative;
    width: 100%;
}

.team-slider {
    display: flex;

    gap: 18px;

    overflow-x: auto;
    scroll-behavior: smooth;

    scrollbar-width: none;

    padding: 5px 5px 20px;
}

.team-slider::-webkit-scrollbar {
    display: none;
}


/* =========================================
   MEMBER
========================================= */

.team-member {
    flex: 0 0 calc(12.5% - 16px);

    min-width: 155px;
}


/* =========================================
   IMAGE
========================================= */

.team-photo {
    position: relative;

    width: 100%;
    aspect-ratio: 0.82;

    overflow: hidden;

    border-radius: 18px;

    background: #edf8f7;

    box-shadow:
        0 10px 30px rgba(32, 34, 50, 0.08);

    cursor: pointer;
}

.team-photo img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.5s ease;
}


/* =========================================
   HOVER OVERLAY
========================================= */

.team-hover {
    position: absolute;

    inset: 0;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 25px 18px;

    background:
        linear-gradient(to top,
            rgba(0, 189, 176, 0.96) 0%,
            rgba(0, 189, 176, 0.75) 45%,
            rgba(0, 189, 176, 0.05) 100%);

    opacity: 0;

    transform: translateY(15px);

    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}

.team-photo:hover img {
    transform: scale(1.08);
}

.team-photo:hover .team-hover {
    opacity: 1;
    transform: translateY(0);
}


/* Hover name */

.team-hover-content h3 {
    margin: 0 0 5px;

    color: #ffffff;

    font-family: "Montserrat", sans-serif;
    font-size: 19px;
    font-weight: 700;
}

.team-hover-content p {
    margin: 0;

    color: rgba(255, 255, 255, 0.9);

    font-size: 12px;
    font-weight: 500;
}


/* Plus */

.team-plus {
    position: absolute;

    right: 15px;
    bottom: 15px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ffffff;

    color: #00bdb0;

    font-size: 25px;
    line-height: 1;

    transition: transform 0.3s ease;
}

.team-photo:hover .team-plus {
    transform: rotate(90deg);
}


/* =========================================
   NORMAL DETAILS
========================================= */

.team-details {
    padding: 17px 4px 0;

    text-align: center;
}

.team-details h3 {
    margin: 0 0 6px;

    color: #202232;

    font-family: "Montserrat", sans-serif;
    font-size: 17px;
    font-weight: 700;
}

.team-details p {
    margin: 0;
    color: #718080;
    font-size: 0.9rem;
    line-height: 1.5;
}


/* =========================================
   NAVIGATION
========================================= */

.team-nav {
    position: absolute;

    top: 40%;

    z-index: 5;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #e0e8e7;
    border-radius: 50%;

    background: #ffffff;

    color: #202232;

    font-size: 18px;

    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.1);

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.team-prev {
    left: -22px;
}

.team-next {
    right: -22px;
}

.team-nav:hover {
    background: #00bdb0;
    color: #ffffff;
    transform: scale(1.08);
}


/* =========================================
   DOTS
========================================= */

.team-dots {
    display: flex;
    justify-content: center;
    gap: 9px;

    margin-top: 25px;
}

.team-dot {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #d8e1e0;

    transition:
        width 0.25s ease,
        background 0.25s ease;
}

.team-dot.active {
    width: 28px;
    border-radius: 10px;

    background: #00bdb0;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1199.98px) {

    .team-member {
        flex: 0 0 calc(20% - 15px);
    }

    .team-heading h2 {
        font-size: 46px;
    }
}


@media (max-width: 991.98px) {

    /* .team-section {
        padding: 80px 0;
    } */

    .team-member {
        flex: 0 0 calc(25% - 14px);
    }

    .team-heading {
        margin-bottom: 45px;
    }

    .team-heading h2 {
        font-size: 40px;
    }

    .team-heading p {
        font-size: 15px;
    }

    .team-nav {
        width: 42px;
        height: 42px;
    }

    .team-prev {
        left: -12px;
    }

    .team-next {
        right: -12px;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767.98px) {

    /* .team-section {
        padding: 65px 0;
    } */

    .team-container {
        width: 88%;
    }

    .team-heading h2 {
        font-size: 34px;
    }

    .team-eyebrow {
        font-size: 11px;
        gap: 10px;
    }

    .team-eyebrow::before,
    .team-eyebrow::after {
        width: 35px;
    }

    .team-heading p {
        font-size: 14px;
    }

    .team-member {
        flex: 0 0 calc(50% - 9px);
    }

    .team-photo {
        border-radius: 15px;
    }

    .team-details h3 {
        font-size: 15px;
    }

    .team-details p {
        font-size: 11px;
    }

    .team-nav {
        display: none;
    }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    .team-member {
        flex: 0 0 72%;
    }

    .team-heading h2 {
        font-size: 30px;
    }

    .team-slider {
        gap: 14px;
    }
}