/*
|--------------------------------------------------------------------------
| TEAM HEADER
|--------------------------------------------------------------------------
*/

.lwf-team-header {
    width: 100%;
    margin: 20px 0 0;
}

.lwf-team-header-inner {
    position: relative;

    display: grid;

    grid-template-columns:
        190px
        minmax(0, 1fr)
        220px;

    grid-template-rows:
        minmax(150px, 1fr)
        60px;

    grid-template-areas:
        "logo content filter"
        "tabs tabs tabs";

    align-items: center;

    column-gap: 28px;
    row-gap: 0;

    min-height: 240px;

    padding: 28px 20px 0;

    background: var(--team-primary, #006633);
    color: var(--team-header-text, #ffffff);

    border-radius: 18px;

    overflow: hidden;

    direction: rtl;
}


/*
|--------------------------------------------------------------------------
| Team information
|--------------------------------------------------------------------------
*/

.lwf-team-header-info {
    grid-area: content;

    display: flex;
    align-items: center;

    justify-content: flex-start;


    gap: 18px;

    min-width: 0;

    direction: rtl;
justify-self: start;
   margin-right: -200px;
 
}

.lwf-team-header-logo {
    grid-area: logo;
    width: 105px;
    height: 105px;

    flex: 0 0 105px;

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

    padding: 0;

    background: transparent;

    border: 0;
    border-radius: 0;
}

.lwf-team-header-logo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}

.lwf-team-header-content {
    min-width: 0;

    display: flex;
    flex-direction: column;

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

    gap: 5px;

    direction: rtl;

    text-align: right;
}

.lwf-team-header-content h1 {
    margin: 0;

    color: var(--team-header-text, #ffffff);

    font-size: 28px;
    line-height: 1.25;

    font-weight: 800;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lwf-team-header-content p {
    margin: 0;

    color: var(--team-header-muted, rgba(255,255,255,.75));

    font-size: 15px;
    line-height: 1.4;
}

.team-founded {
    display: inline-block;

    color: var(--team-header-muted, rgba(255,255,255,.75));

    font-size: 13px;
    line-height: 1.4;
}


/*
|--------------------------------------------------------------------------
| Age Group Filter
|--------------------------------------------------------------------------
*/

.lwf-team-header-filter {
    grid-area: filter;

    width: 190px;

    display: flex;
    flex-direction: column;

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

    gap: 8px;

    direction: rtl;

    text-align: right;

    justify-self: start;

    transform: translateX(55px);
}

.lwf-team-header-filter-label {
    display: flex;
    align-items: center;

    color: var(--team-header-text, #ffffff);

    font-size: 14px;
    line-height: 1.3;

    opacity: .92;
}

.lwf-team-header-filter-form {
    width: 100%;
}

.lwf-team-header-filter-form select {
    width: 100%;
    min-height: 42px;

    box-sizing: border-box;

    padding: 0 14px;

    border: 0;
    border-radius: 10px;

    background-color: #ffffff;
    color: #111827;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: left 14px center;
    background-size: 12px 12px;

    cursor: pointer;
}

.lwf-team-header-filter-form select:focus {
    outline: none;

    box-shadow:
        0 0 0 3px
        rgba(255, 255, 255, .25);
}


/*
|--------------------------------------------------------------------------
| Tabs
|--------------------------------------------------------------------------
*/

.team-single-tab {
    position: relative;

    min-width: 105px;

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

    padding: 0 14px;

    color: var(--team-header-muted, rgba(255,255,255,.75));

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    white-space: nowrap;

    transition:
        color .2s ease,
        background-color .2s ease;
}

.team-single-tabs::before,
.team-single-tabs::after {
    display: none;
}

.team-single-tab {
    position: relative;

    min-width: 85px;

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

    padding: 0 10px;


    color: var(--team-header-muted, rgba(255,255,255,.75));

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    white-space: nowrap;

    transition:
        color .2s ease,
        background-color .2s ease;
}

.team-single-tab:hover {
    color: var(--team-header-text, #ffffff);
}

.team-single-tab.active {
    color: var(--team-header-text, #ffffff);
}

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

    position: absolute;

     right: 18%;
    left: 18%;

    bottom: 0;

    height: 2px;

    background: #ffffff;

    border-radius: 3px 3px 0 0;
}


.team-single-tabs {
    grid-area: tabs;
}

.team-single-tabs {
    grid-area: tabs;

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

    width: auto;

    direction: rtl;

    gap: 4px;

    margin-right: -8px;
}

/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 700px) {

    .lwf-team-header {
        margin-top: 12px;
    }

    .lwf-team-header-inner {
        display: grid;

        grid-template-columns:
            125px
            minmax(0, 1fr)
            76px;

        grid-template-rows:
            minmax(120px, auto)
            58px;

        grid-template-areas:
            "logo content filter"
            "tabs tabs tabs";

        column-gap: 8px;
        row-gap: 0;

        min-height: 0;

        padding: 18px 14px 0;

        border-radius: 14px;

        direction: rtl;
    }


    /*
    |----------------------------------------------------------
    | Logo — right
    |----------------------------------------------------------
    */

    .lwf-team-header-logo {
        grid-area: logo;

        width: 68px;
        height: 68px;

        flex: 0 0 68px;

        justify-self: end;
        align-self: center;

        padding: 0;
        margin-right: -16px;
    }


    /*
    |----------------------------------------------------------
    | Team name + city + founded
    |----------------------------------------------------------
    */

    .lwf-team-header-info {
        grid-area: content;

        min-width: 0;

        display: flex;
        align-items: center;

        justify-content: flex-start;

        gap: 10px;

        direction: rtl;
        margin-right: -120px;
    }

    .lwf-team-header-content {
        min-width: 0;

        align-items: flex-start;

        gap: 3px;

        direction: rtl;

        text-align: right;

        transform: none;
    }

    .lwf-team-header-content h1 {
        max-width: 100%;

        font-size: 17px;
        line-height: 1.3;
    }

    .lwf-team-header-content p {
        font-size: 11px;
        line-height: 1.3;

        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .team-founded {
        font-size: 10px;
        line-height: 1.3;

        white-space: nowrap;
    }


    /*
    |----------------------------------------------------------
    | Filter — left
    |----------------------------------------------------------
    */

    .lwf-team-header-filter {
        grid-area: filter;

        width: 125px;

        justify-self: start;
        align-self: center;

        gap: 5px;

        direction: rtl;
        text-align: right;
        margin-right: -60px;
    }

    .lwf-team-header-filter-label {
        font-size: 11px;
    }

    .lwf-team-header-filter-form {
        width: 100%;
    }

    .lwf-team-header-filter-form select {
        width: 100%;

        min-height: 36px;

        padding: 0 10px;

        font-size: 11px;

        background-position: left 10px center;
    }


    /*
    |----------------------------------------------------------
    | Tabs
    |----------------------------------------------------------
    */

.team-single-tabs {
    grid-area: tabs;

    width: 100%;
    height: 52px;

    display: flex;
    align-items: stretch;
    justify-content: space-between;

    direction: rtl;
}

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

    padding: 0 10px;

    font-size: 10px;
    
}

.team-single-tab.active::after {
    right: 18%;
    left: 18%;

    height: 3px;
}

}


/*
|--------------------------------------------------------------------------
| Very small screens
|--------------------------------------------------------------------------
*/

@media (max-width: 420px) {

    .lwf-team-header-inner {
        grid-template-columns:
            105px
            minmax(0, 1fr)
            62px;

        column-gap: 6px;

        padding-left: 10px;
        padding-right: 10px;
    }

    .lwf-team-header-logo {
        width: 56px;
        height: 56px;

        flex-basis: 56px;
    }

    .lwf-team-header-filter {
        width: 105px;
    }

    .lwf-team-header-content h1 {
        font-size: 15px;
    }

    .lwf-team-header-content p {
        font-size: 10px;
    }

    .team-founded {
        font-size: 9px;
    }

    .team-single-tab {
        padding: 0 2px;

        font-size: 10px;
    }
}


/* ----------------------------------------------------------
   Team tabs - team primary color
   ---------------------------------------------------------- */

.team-single-tabs {
    background: var(--team-primary, #006633) !important;
    border-bottom: 0 !important;
}

.team-single-tab {
    color: var(--team-header-muted, rgba(255,255,255,.78)) !important;
}

.team-single-tab:hover,
.team-single-tab.active {
    color: var(--team-header-text, #ffffff) !important;
}

.team-single-tab.active::after {
    background: #ffffff !important;
}


@media (max-width: 700px) {
    .lwf-team-header-info {
        transform: none;
    }

    .lwf-team-header-filter {
        transform: translateX(10px);
    }
}

@media (max-width: 420px) {
    .lwf-team-header-filter {
        transform: translateX(6px);
    }
}

/* =========================================================
   TEAM HEADER - FRENCH / LTR
   ========================================================= */

.lwf-team-header--fr {
    direction: ltr;
}

.lwf-team-header--fr .lwf-team-header-inner {
    direction: ltr;

    grid-template-areas:
        "logo content filter"
        "tabs tabs tabs";
}


/* =========================================================
   Team information
   ========================================================= */

.lwf-team-header--fr .lwf-team-header-info {
    direction: ltr;
    justify-self: start;

    margin-right: 0;
    margin-left: -210px;
}

.lwf-team-header--fr .lwf-team-header-content {
    direction: ltr;
    align-items: flex-start;
    text-align: left;
}


/* =========================================================
   Filter
   ========================================================= */

.lwf-team-header--fr .lwf-team-header-filter {
    direction: ltr;
    align-items: flex-start;
    justify-self: end;
    text-align: left;

    margin-right: 65px;
}

.lwf-team-header--fr .lwf-team-header-filter-form select {
    direction: ltr;
    text-align: left;

    background-position: right 14px center;
}


/* =========================================================
   Tabs
   ========================================================= */

.lwf-team-header--fr .team-single-tabs {
    direction: ltr;
    margin-right: 0;
    margin-left: -8px;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 700px) {

  .lwf-team-header--fr .lwf-team-header-inner {
    direction: ltr;

    grid-template-areas:
        "logo content filter"
        "tabs tabs tabs";
}

    .lwf-team-header--fr .lwf-team-header-logo {
        justify-self: end;
        margin-right: 0;
        margin-left: -16px;
    }

    .lwf-team-header--fr .lwf-team-header-info {
        direction: ltr;
        justify-content: flex-start;

        margin-right: 0;
        margin-left: -120px;
    }

    .lwf-team-header--fr .lwf-team-header-content {
        direction: ltr;
        align-items: flex-start;
        text-align: left;
    }

    .lwf-team-header--fr .lwf-team-header-filter {
        direction: ltr;
        justify-self: end;

        margin-right: 0;
        margin-left: -60px;

        margin-right: 15px;
    }

    .lwf-team-header--fr .lwf-team-header-filter-form select {
        direction: ltr;
        text-align: left;

        background-position: right 10px center;
    }

    .lwf-team-header--fr .team-single-tabs {
        direction: ltr;
        margin-left: 0;
        margin-right: 0;
    }

    .lwf-team-header--fr .team-single-tabs {
    direction: ltr;
    justify-content: flex-start;
    gap: 4px;
    margin-left: 0;
    margin-right: 0;
}

}


/* =========================================================
   Very small screens
   ========================================================= */

@media (max-width: 420px) {

    .lwf-team-header--fr .lwf-team-header-filter {
        transform: translateX(6px);
    }
}


/* Mobile fix: team header spacing and tabs */
@media (max-width: 700px) {

    .lwf-team-header-inner {
        box-sizing: border-box;
        padding-left: 12px;
        padding-right: 12px;
    }

    .lwf-team-header-info {
        gap: 6px;
        justify-content: flex-start;
        min-width: 0;
    }

    .lwf-team-header-logo {
        max-width: 100%;
    }

    .lwf-team-header-content {
        min-width: 0;
        max-width: 100%;
    }

    .lwf-team-header-content h1,
    .lwf-team-header-content p,
    .team-founded {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .team-single-tabs {
        width: 100%;
        min-width: 0;
        justify-content: space-around;
    }

    .team-single-tab {
        flex: 1 1 0;
        min-width: 0;
        padding-left: 2px;
        padding-right: 2px;
        white-space: normal;
        text-align: center;
        font-size: clamp(9px, 2.8vw, 11px);
    }
}


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

    .lwf-team-header-inner {
        grid-template-columns: 105px minmax(0, 1fr) 62px;
        column-gap: 6px;
        padding-left: 12px;
        padding-right: 12px;
        box-sizing: border-box;
    }

    .lwf-team-header-info,
    .lwf-team-header--fr .lwf-team-header-info {
        margin-left: 0 !important;
        margin-right: 0 !important;
        transform: none !important;
        min-width: 0;
        width: 100%;
        gap: 6px;
        box-sizing: border-box;
    }

    .lwf-team-header-logo,
    .lwf-team-header--fr .lwf-team-header-logo {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 56px;
        height: 56px;
        flex-basis: 56px;
        justify-self: center;
    }

    .lwf-team-header-content,
    .lwf-team-header--fr .lwf-team-header-content {
        min-width: 0;
        max-width: 100%;
    }

    .lwf-team-header-filter,
    .lwf-team-header--fr .lwf-team-header-filter {
        margin-left: 0 !important;
        margin-right: 0 !important;
        transform: none !important;
        width: 100%;
        min-width: 0;
    }

    .lwf-team-header-content h1 {
        white-space: normal;
        overflow-wrap: anywhere;
    }
}


/* Mobile header alignment - adjustment 1 */
@media (max-width: 700px) {

    .lwf-team-header-inner {
       grid-template-columns: 105px minmax(0, 1fr) 62px;
column-gap: 6px;
        padding-left: 12px;
        padding-right: 12px;
        box-sizing: border-box;
    }

    .lwf-team-header-info,
    .lwf-team-header--fr .lwf-team-header-info {
        grid-column: 1 / 3;
        grid-row: 1;
        justify-self: center;
        margin: 0 !important;
        padding: 0;
        width: 100%;
        min-width: 0;
        gap: 8px;
        transform: none !important;
        box-sizing: border-box;
    }

    .lwf-team-header-logo,
    .lwf-team-header--fr .lwf-team-header-logo {
        width: 52px;
        height: 52px;
        flex: 0 0 52px;
        margin: 0 !important;
        justify-self: center;
    }

    .lwf-team-header-content,
    .lwf-team-header--fr .lwf-team-header-content {
        min-width: 0;
        max-width: 100%;
    }

  

.lwf-team-header-filter,
.lwf-team-header--fr .lwf-team-header-filter {
    grid-column: 3;
    grid-row: 1;
    justify-self: start;
    width: 105px;
    min-width: 0;
    margin-right: -58px !important;
    margin-left: 0 !important;
    transform: none !important;
    box-sizing: border-box;
}


    .lwf-team-header-filter-form,
    .lwf-team-header-filter-form select {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .team-single-tabs,
    .lwf-team-header--fr .team-single-tabs {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        margin: 0 !important;
        padding: 0 2px !important;
        display: flex;
        justify-content: space-between !important;
        gap: 0 !important;
        box-sizing: border-box;
    }

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