/* Team Block Wrapper */
.block-type-team {
    margin: 0;
    position: relative;
}

/* .content-block.block-type-team::before {
    content: "";
    position: absolute;
    top: 0px;
    right: 0; 
    width: clamp(1200px, calc(100% - 60px), 1800px); 
    height: 100%;
    background-color: var(--light-bg-color);
    border-radius: 25px 0 0 25px; 
} */

.team-wrapper .team-section .team-members{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    text-align: left;
    justify-content: flex-start;
}


/* Columns Layout */
.team-columns-1 .single-member {
    flex: 1 1 100%;
    max-width: 100%;
}

.team-columns-2 .single-member {
    flex: 1 1 calc((100% - 20px) / 2);
    max-width: calc((100% - 20px) / 2);
}

.team-columns-3 .single-member {
    flex: 1 1 calc((100% - 40px) / 3);
    max-width: calc((100% - 40px) / 3);
}

.team-columns-4 .single-member {
    flex: 1 1 calc((100% - 60px) / 4);
    max-width: calc((100% - 60px) / 4);
}

.team-columns-5 .single-member {
    flex: 1 1 calc((100% - 80px) / 5);
    max-width: calc((100% - 80px) / 5);
}

.team-columns-6 .single-member {
    flex: 1 1 calc((100% - 100px) / 6);
    max-width: calc((100% - 100px) / 6);
}

/* Single Member Card */
.single-member {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    text-align: left;
    transition: all 0.3s ease; 
    box-shadow: none;
    padding: 0;
    margin-bottom: 0px;
}

/* Member Photo */
.member-photo {
    width: 100%;
    overflow: hidden;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Member Content */
.member-content {
    padding: 20px;
}

.member-name {
    font-size: clamp(18px, 2vw, 22px);
    line-height: 28px;
    font-weight: 700;
    margin: 10px 0 5px;
    color: var(--primary-color);
    font-family: var(--body-font);
}

.member-role {
    font-size: clamp(14px, 1.5vw, 16px);
    color: var(--secondary-color);
    margin-bottom: 10px;
}


/* Responsive adjustments */
@media only screen and (max-width: 1720px) {

}

@media only screen and (max-width: 1536px) {

}

@media only screen and (max-width: 1280px) {
 
}

@media screen and (max-width: 992px) {
    
    /* Keep 3 columns for tiles-columns-3 */
    .team-columns-3 .single-member {
        flex: 1 1 calc((100% - 40px) / 2);
        max-width: calc((100% - 40px) / 2);
    }

    /* Force 2 columns for 4+ */
    .team-columns-4 .single-member,
    .team-columns-5 .single-member,
    .team-columns-6 .single-member {
        flex: 1 1 calc((100% - 20px) / 2);
        max-width: calc((100% - 20px) / 2);
    }
    .team-wrapper .team-section .team-members{
        justify-content: center;
    }

}

@media screen and (max-width: 767px) {
    .team-columns-2 .single-member,
    .team-columns-3 .single-member,
    .team-columns-4 .single-member,
    .team-columns-5 .single-member,
    .team-columns-6 .single-member {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .team-wrapper .team-section .team-members{
        flex-direction: column;
        flex-wrap: nowrap;
    }

}

@media only screen and (max-width: 480px) {

}
