/* ==========================================================================
   COMMON COMPONENT: OUR TEAM SECTION (Bootstrap 5 Integration)
   ========================================================================== */
.team-section {
    width: 100%;
    background-color: #ffffff;
    color: #111827;
    padding: 60px 0 120px;
    position: relative;
    z-index: 10;
}

.team-member {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.team-member-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    position: relative;

    border: 1px solid rgba(0, 0, 0, 0.25);
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 6px;

    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: all 0.25s ease;
}

.team-member-image span {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-member-image img,
.team-member-image span img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.team-member-image:hover {
    border-color: #0f172a;
    background-color: rgba(0, 0, 0, 0.06);
}

.team-member-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.team-member-name-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-member-line {
    width: 18px;
    height: 1.5px;
    background-color: #0f172a;
    display: inline-block;
    flex-shrink: 0;
}

.team-member-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.team-member-role {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    padding-left: 26px;
}

.team-title-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 250px;
}

.team-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(38px, 4.4vw, 68px);
    font-weight: 900;
    color: #000000;
    line-height: 0.95;
    letter-spacing: -1.2px;
    text-align: left;
}

/* 5 Columns Layout on Desktop */
@media (min-width: 992px) {
    .team-members-row > .team-member {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .team-section {
        padding: 50px 0 80px;
    }

    .team-title-wrap {
        min-height: auto;
        justify-content: flex-start;
        margin-top: 20px;
    }

    .team-title {
        text-align: left;
    }
}

@media (max-width: 767.98px) {
    .team-section {
        padding: 40px 0 60px;
        overflow-x: hidden;
    }

    .team-title-wrap {
        order: -1;
        width: 100%;
        margin-top: 0;
        margin-bottom: 40px;
        justify-content: center;
        text-align: center;
    }

    .team-title {
        text-align: center;
        font-size: clamp(38px, 9vw, 54px);
        line-height: 1.1;
        letter-spacing: -1px;
    }

    .team-title br {
        display: none;
    }

    .team-member {
        width: 100%;
        max-width: 330px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 45px;
        gap: 14px;
        opacity: 0;
        transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
        will-change: transform, opacity;
    }

    /* 1st & 3rd Team Members: Slide in from RIGHT */
    .team-member:nth-child(odd) {
        transform: translateX(80px);
    }

    /* 2nd & 4th Team Members: Slide in from LEFT */
    .team-member:nth-child(even) {
        transform: translateX(-80px);
    }

    /* Scroll triggered visible state */
    .team-member.is-visible {
        transform: translateX(0);
        opacity: 1;
    }

    .team-member:last-child {
        margin-bottom: 0;
    }

    .team-member-image {
        width: 100%;
        max-width: 330px;
        height: auto;
        aspect-ratio: 3 / 4;
        margin: 0 auto;
    }

    .team-member-info {
        width: 100%;
        max-width: 330px;
        margin: 0 auto;
    }
}
