.all-team-sec {
    margin: 52px 0 120px 0;
}

/* Filter Tabs */
.all-team-sec .team-filter-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 52px 0;
    background: #ffffff;
    margin: 0 0 41px 0;
    position: sticky;
    top: 0;
    z-index: 5;
}
.all-team-sec .filter-tab {
    padding: 12px 32px;
    height: 50px;
    border-radius: 60px;
    border: 1px solid #707070;
    background: #FFFFFF;
    font-family: 'Quicksand', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #707070;
    cursor: pointer;
    transition: all 0.3s ease;
}
.all-team-sec .filter-tab:hover {
    border-color: #EFE8FF;
    background: #EFE8FF;
}
.all-team-sec .filter-tab.active {
    background: #B6A7DE;
    border-color: #B6A7DE;
    color: #ffffff;
}

/* Team Grid */
.all-team-sec .all-team-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

/* Team Member Card */
.all-team-sec .team-member {
    position: relative;
    cursor: pointer;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.2s ease-in;
}
.all-team-sec .team-member.hidden {
    display: none;
}
.all-team-sec .team-member-image {
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    position: relative;
    z-index: 2;
}
.all-team-sec .team-member-image .arrowicon {
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
}
.all-team-sec .team-member-image .arrowicon::before {
    content: '';
    padding-top: 90.855%;
    display: block;
}
.all-team-sec .team-member-image .arrowicon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    object-position: center;
    position: absolute;
    left: auto;
    top: auto;
    right: 21px;
    bottom: 21px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.2s ease-in;
}
.all-team-sec .team-member:hover .team-member-image .arrowicon img {
    opacity: 1;
    transform: translateX(0);
}
.all-team-sec .team-member-image::before {
    content: '';
    padding-top: 125.556%;
    display: block;
    transition: all 0.2s ease-in;
}
.all-team-sec .team-member:hover .team-member-image::before {
    padding-top: 90.855%;
}
.all-team-sec .team-member-image video,
.all-team-sec .team-member-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.2s ease-in;
}

/* Team Member Info (Hover State) */
.all-team-sec .team-member-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.2s ease-in;
}
.all-team-sec .team-member:hover .team-member-info {
    opacity: 1;
    transform: translateX(0);
}
.all-team-sec .team-member-name {
    font-family: 'Quicksand', sans-serif;
    font-size: 27px;
    font-weight: 500;
    color: #4A4A4A;
    margin-bottom: 20px;
}
.all-team-sec .team-member-role {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 26px;
    background: linear-gradient(to right, #1a70b8, #bbcf00);
    border: 1px solid #ffffff;
    border-radius: 50px;
    height: 34px;
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
}

/* Hover Label */

/* ==================== MODAL STYLES ==================== */
.team-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: all 0.3s ease-in-out;
    pointer-events: none;
}
.team-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.team-modal .team-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}
.team-modal .team-modal-content {
    position: relative;
    width: 100%;
    height: 100dvh;
    background: #fafafa;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Modal Header */
.team-modal .team-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 29px 0;
    background: #ffffff;
    border-bottom: 1px solid #e6e6e6;
    flex: 0 0 auto;
}
.team-modal .modal-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.team-modal .modal-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}
.team-modal .modal-logo img {
    height: 60px;
}
.team-modal .team-modal-close {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #000000;
    transition: color 0.3s ease;
}
.team-modal .team-modal-close:hover {
    color: var(--theme-color-primary);
}

/* Modal Body */
.team-modal .team-modal-body {
    display: flex;
    padding: 129px 0 50px;
    position: relative;
    overflow-y: auto;
    /* max-height: calc(90vh - 100px); */
    flex: 1 1 auto;
    overflow-x: hidden;
}
.team-modal .modal-body-inner {
    display: flex;
    gap: 86px;
    padding: 0 138px;
}

/* Slide + Fade Transitions */
.team-modal .modal-body-inner.slide-out-next {
    animation: slideOutLeft 0.25s ease-in forwards;
}
.team-modal .modal-body-inner.slide-out-prev {
    animation: slideOutRight 0.25s ease-in forwards;
}
.team-modal .modal-body-inner.slide-in-next {
    animation: slideInFromRight 0.25s ease-out forwards;
}
.team-modal .modal-body-inner.slide-in-prev {
    animation: slideInFromLeft 0.25s ease-out forwards;
}

@keyframes slideOutLeft {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-40px);
        opacity: 0;
    }
}

@keyframes slideOutRight {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(40px);
        opacity: 0;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(40px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-40px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Modal Background Graphic */
.team-modal .modal-bg-graphic {
    position: absolute;
    bottom: -100px;
    left: -50px;
    width: 350px;
    height: 350px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}
.team-modal .modal-bg-graphic svg {
    width: 100%;
    height: 100%;
}

/* Modal Left - Image */
.team-modal .modal-left {
    flex: 0 0 490px;
    position: relative;
    z-index: 1;
}
.team-modal .modal-image-wrap {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}
.team-modal .modal-image-wrap::before {
    content: '';
    padding-top: 138.16%;
    display: block;
}
.team-modal .modal-image-wrap .modal-member-image,
.team-modal .modal-image-wrap .modal-member-video {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Modal Right - Content */
.team-modal .modal-right {
    flex: 1;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}
.team-modal .modal-member-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
}
.team-modal .modal-member-name {
    color: #4A4A4A;
    margin-bottom: 10px;
}
.team-modal .modal-member-role {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px 26px;
    border: 1px solid #ffffff;
    height: 32px;
    background: linear-gradient(to right, #1a70b8, #bbcf00);
    border-radius: 50px;
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
}
.team-modal .modal-member-category {
    padding: 5px 63px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 50px;
    font-family: 'Quicksand', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #707070;
    border: 1px solid #707070;
    transition: all 0.2s ease-in;
    cursor: pointer;
}
.team-modal .modal-member-category:hover {
    background: #AFA0D8;
    border-color: #AFA0D8;
    color: #ffffff;
}

/* Quote */
.team-modal .modal-member-quote {
    font-size: 27px;
    font-weight: 400;
    font-style: italic;
    color: #4A4A4A;
    line-height: 1.37;
    margin-bottom: 60px;
    padding-left: 0;
    border: none;
}

/* Details Grid */
.team-modal .modal-member-details {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    column-gap: 21px;
    row-gap: 10px;
    margin-bottom: 40px;
}
.team-modal .detail-item h4 {
    font-family: 'Quicksand', sans-serif;
    font-size: 27px;
    font-weight: 600;
    color: #4a4a4a;
    margin-bottom: 8px;
}
.team-modal .detail-item p {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    color: #4A4A4A;
    line-height: 1.56;
}

/* Modal Navigation */
.team-modal .modal-navigation {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-top: auto;
}
/* .modal-nav-btn {
    
} */

.team-modal .modal-navigation .modal-nav-btn:disabled {
    pointer-events: none;
}
.team-modal .modal-navigation .modal-prev {
    background: #FAFAFA;
    border-color: #707070;
}
.team-modal .modal-navigation .modal-prev:hover {
    background: #E6E6E6;
    border-color: #E6E6E6;
}
/* .modal-next {
    
}
.modal-next:hover {
    
} */

/* ==================== RESPONSIVE ==================== */
@media (min-width: 1800px) {
    .all-team-sec .all-team-wrap {
        padding: 0 138px;
    }
}

@media (min-width: 1440px) and (max-width: 1560px) {
    .team-modal .modal-body-inner{
        padding: 0;
    }
    .team-modal .team-modal-body {
        padding: 50px 0;
    }
}

@media (min-width: 1280px) and (max-width: 1439px) {
    .team-modal .team-modal-header {
        padding: 20px 0;
    }
    .team-modal .modal-logo img {
        max-height: 40px;
    }
    .team-modal .modal-body-inner {
        padding: 0 40px;
        gap: 40px;
    }
    .team-modal .modal-member-category {
        height: 40px;
        font-size: 16px;
        padding: 5px 43px;
    }
    .team-modal .modal-member-header {
        margin-bottom: 30px;
    }
    .team-modal .modal-member-quote {
        font-size: 27px;
        margin-bottom: 30px;
    }
    .team-modal .modal-left {
        flex: 0 0 400px;
    }
    .team-modal .team-modal-body {
        padding: 50px 0 30px 0;
    }
    .team-modal .modal-image-wrap {
        position: sticky;
        top: 0;
    }
    .team-modal .modal-member-details {
        gap: 20px;
    }
    .team-modal .detail-item h4 {
        font-size: 24px;
    }
    .team-modal .detail-item p {
        font-size: 16px;
    }
    .team-modal .modal-navigation .modal-nav-btn {
        min-width: 150px;
    }
}
@media (min-width: 1025px) and (max-width: 1279px) {
    .team-modal .team-modal-header {
        padding: 20px 0;
    }
    .team-modal .modal-logo img {
        max-height: 40px;
    }
    .team-modal .modal-body-inner {
        padding: 0;
        gap: 20px;
    }
    .team-modal .modal-member-category {
        height: 40px;
        font-size: 16px;
        padding: 5px 43px;
    }
    .team-modal .modal-member-header {
        margin-bottom: 30px;
    }
    .team-modal .modal-member-quote {
        font-size: 22px;
        margin-bottom: 30px;
    }
    .team-modal .modal-left {
        flex: 0 0 300px;
    }
    .team-modal .team-modal-body {
        padding: 30px 0;
    }
    .team-modal .modal-image-wrap {
        position: sticky;
        top: 0;
    }
    .team-modal .modal-member-details {
        gap: 20px;
    }
    .team-modal .detail-item h4 {
        font-size: 20px;
    }
    .team-modal .detail-item p {
        font-size: 14px;
    }
    .team-modal .modal-navigation .modal-nav-btn {
        min-width: 150px;
    }
}
@media (max-width: 1200px) {
    .all-team-sec .all-team-wrap {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1024px) {
    .team-modal .team-modal-header {
        padding: 20px 0;
    }
    .team-modal .modal-logo img {
        max-height: 40px;
    }
    .team-modal .modal-body-inner {
        padding: 0;
        gap: 20px;
    }
    .team-modal .modal-member-category {
        height: 40px;
        font-size: 16px;
        padding: 5px 43px;
    }
    .team-modal .modal-member-header {
        margin-bottom: 30px;
    }
    .team-modal .modal-member-quote {
        font-size: 22px;
        margin-bottom: 30px;
    }
    .team-modal .modal-left {
        flex: 0 0 300px;
    }
    .team-modal .team-modal-body {
        padding: 30px 0;
    }
    .team-modal .modal-image-wrap {
        position: sticky;
        top: 0;
    }
    .team-modal .modal-member-details {
        gap: 20px;
    }
    .team-modal .detail-item h4 {
        font-size: 20px;
    }
    .team-modal .detail-item p {
        font-size: 14px;
    }
    .team-modal .modal-navigation .modal-nav-btn {
        min-width: 150px;
    }
}

@media (max-width: 991px) {
    .all-team-sec .all-team-wrap {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .team-modal .team-modal-body {
        flex-direction: column;
        padding: 30px;
    }
    .team-modal .modal-left {
        max-width: 200px;
        margin: 0 auto;
    }
    .team-modal .modal-image-wrap {
        border-radius: 15px;
    }
    .team-modal .modal-member-header {
        flex-direction: column;
        gap: 15px;
    }
    .team-modal .modal-member-details {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .team-modal .team-modal-header {
        padding: 20px 0;
    }
    .team-modal .modal-logo img {
        max-height: 40px;
    }
    .team-modal .modal-body-inner {
        padding: 0;
        gap: 20px;
    }
    .team-modal .modal-member-category {
        height: 40px;
        font-size: 16px;
        padding: 5px 43px;
    }
    .team-modal .modal-member-header {
        margin-bottom: 30px;
    }
    .team-modal .modal-member-quote {
        font-size: 22px;
        margin-bottom: 30px;
    }
    .team-modal .modal-left {
        flex: 0 0 200px;
    }
    .team-modal .modal-image-wrap {
        position: sticky;
        top: 0;
    }
    .team-modal .modal-member-details {
        gap: 20px;
    }
    .team-modal .detail-item h4 {
        font-size: 20px;
    }
    .team-modal .detail-item p {
        font-size: 14px;
    }
    .team-modal .modal-navigation .modal-nav-btn {
        min-width: 150px;
    }
}

@media (min-width: 768px) {
    .team-modal .modal-left .modal-member-category {
        display: none;
    }
}

@media (max-width: 767px) {
    .all-team-sec {
        margin: 43px 0 74px 0;
    }
    .all-team-sec .all-team-sec {
        padding: 40px 0 60px;
    }
    .all-team-sec .team-filter-tabs {
        gap: 16px;
        padding: 10px 0;
        margin-top: -10px;
        margin-bottom: 36px;
        justify-content: flex-start;
        overflow-x: auto;
    }
    .all-team-sec .filter-tab {
        padding: 0 20px;
        font-size: 20px;
        min-width: 200px;
        height: 42px;
        line-height: 1;
    }
    .all-team-sec .all-team-wrap {
        grid-template-columns: repeat(1, 1fr);
        gap: 38px;
    }
    .all-team-sec .team-member-image::before,
    .all-team-sec .team-member:hover .team-member-image::before {
        padding-top: 90.77%;
    }
    .all-team-sec .team-member-info {
        position: relative;
        left: auto;
        bottom: auto;
        padding: 16px 0 0 0;
        transform: none;
        opacity: 1
    }
    .all-team-sec .team-member-name {
        font-size: 28px;
        margin-bottom: 12px;
    }
    .all-team-sec .team-member-role {
        font-size: 15px;
        line-height: 1;
    }
    /* .team-modal .team-modal-content {
        
    } */
    .team-modal .modal-image-wrap::before {
        padding-top: 132.85%;
    }
    .team-modal .team-modal-header {
        padding: 14px 20px;
    }
    .team-modal .team-modal-header .container {
        padding: 0;
    }
    .team-modal .team-modal-close {
        background: #4A4A4A;
        color: #ffffff;
        border-radius: 90px;
    }
    .team-modal .team-modal-close svg {
        vertical-align: top;
        width: 22px;
        height: 22px;
    }
    .team-modal .modal-logo img {
        height: 41px;
    }
    .team-modal .team-modal-body {
        padding: 35px 0 20px 0;
        gap: 25px;
    }
    .team-modal .modal-body-inner {
        padding: 0;
        flex-direction: column;
        gap: 72px;
    }
    .team-modal .modal-left {
        width: 100%;
        max-width: 100%;
        position: relative;
    }
    .team-modal .modal-left .modal-member-category {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: #AFA0D8;
        color: #ffffff;
        border: none;
        margin-top: -25px;
    }
    .team-modal .modal-right .modal-member-category {
        display: none;
    }
    .team-modal .modal-image-wrap {
        border-radius: 15px;
    }
    .team-modal .modal-member-header {
        margin-bottom: 35px;
    }
    .team-modal .modal-member-name {
        font-size: 24px;
        margin-bottom: 4px;
    }
    .team-modal .modal-member-quote {
        font-size: 22px;
        margin-bottom: 56px;
    }
    .team-modal .modal-member-details {
        gap: 26px;
    }
    .team-modal .detail-item h4 {
        margin-bottom: 10px;
        font-size: 20px;
        font-weight: 500;
    }
    .team-modal .detail-item {
        margin: 0;
    }
    .team-modal .modal-navigation {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 32px 28px;
        margin: 0 -15px;
        box-shadow: 0 0 15px 0 rgba(21, 79, 128, 0.05);
        background-color: #ffffff;
    }
    .team-modal .modal-navigation .modal-nav-btn {
        width: auto;
        min-width: 10px;
        text-align: center;
    }
    .team-modal .modal-navigation .modal-nav-btn.modal-prev span {
        transform: translateX(15px);
    }
    .team-modal .modal-navigation .modal-nav-btn.modal-prev {
        border: solid 1px #707070;
        background: #fafafa;
    }
    .team-modal .modal-navigation .modal-nav-btn.modal-prev::after {
        transform: translateX(0) rotate(180deg);
        opacity: 1;
    }
    .team-modal .modal-navigation .modal-nav-btn.modal-next {
        border: solid 1px #d6cceb;
        background-color: #e3dbf4;
    }
    .team-modal .modal-navigation .modal-nav-btn.modal-next span {
        transform: translateX(-15px);
    }
    .team-modal .modal-navigation .modal-nav-btn.modal-next::after {
        transform: translateX(0);
        opacity: 1;
    }


    @keyframes slideOutLeft {
        0% {
            opacity: 1;
        }
        100% {
            opacity: 0;
        }
    }
    
    @keyframes slideOutRight {
        0% {
            opacity: 1;
        }
        100% {
            opacity: 0;
        }
    }
    
    @keyframes slideInFromRight {
        0% {
            opacity: 0;
        }
        100% {
            opacity: 1;
        }
    }
    
    @keyframes slideInFromLeft {
        0% {
            opacity: 0;
        }
        100% {
            opacity: 1;
        }
    }


}



