/* ----------------------------------------------------------
   Team Single - Tabs
---------------------------------------------------------- */

.team-single-tabs {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 10px;
    padding: 0 28px;
    height: 59px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.team-single-tab {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    height: 60px;

    background: none;
    border: none;
    cursor: pointer;

    padding: 0;

    font-size: 14px;
    color: #666;

    text-decoration: none;

    transition: .2s;
}

.team-single-tab:hover {
    color: #111;
}

.team-single-tab.active {
    color: #111;
    font-weight: 600;
}

.team-single-tab.active::after {
    content: "";

    position: absolute;

 left: 13%;
right: 13%;
    bottom: 0;

    height: 3px;

    background: #0a8f43;
    border-radius: 3px;
}

@media (max-width: 700px) {

    .team-single-tabs {
        height: 52px;

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

        gap: 1;
        padding: 0 8px;

        direction: rtl;
        margin-right: -75px;
        padding-top: 5px !important;
    }

    .team-single-tab {
        flex: 0 1 auto;
        min-width: 0;

        height: 52px;

        padding: 0 8px;

        font-size: 13px;
        

        white-space: nowrap;
    }

    .team-single-tab.active::after {
        left: 12%;
        right: 12%;
    bottom: -2px;

        height: 3px;
    }

}


/* Final mobile team-tabs alignment fix */
@media (max-width: 700px) {

    .team-single-tabs,
    .lwf-team-header--fr .team-single-tabs {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 4px !important;
        box-sizing: border-box;
        display: flex;
        justify-content: space-between !important;
        gap: 0 !important;
        overflow: hidden;
    }

    .team-single-tab {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        padding: 0 2px !important;
        white-space: normal !important;
        text-align: center;
        overflow-wrap: anywhere;
        font-size: clamp(9px, 2.7vw, 11px) !important;
    }
}


@media (max-width: 700px) {
    .team-single-tabs .team-single-tab.active::after {
      bottom: 0 !important;
        left: 12% !important;
        right: 12% !important;
        height: 3px !important;
        display: block !important;
        content: "";
        background: #ffffff !important;
        border-radius: 3px 3px 0 0;
        z-index: 5;
    
    }
}

@media (max-width: 700px) {
    .team-single-tabs .team-single-tab {
        transform: translateY(-2px);
    }

    .team-single-tabs .team-single-tab.active::after {
        bottom: -3px !important;
        transform: none !important;
    }
}