/* =========================================================
   TEAM SECTION
   ========================================================= */

   .team-section {
    width: 100%;
}


/* =========================================================
   TABS
   ========================================================= */

.team-tabs-wrap {
    width: 100%;
    margin-bottom: 70px;
}

.team-tabs {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.team-tab {
    appearance: none;
    border: 0.5px solid #141313;
    color: #141313;
    background: transparent;
    border-radius: 30px;
    padding: 13px 28px;
    font-size: 14px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: .02em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease;
}

.team-tab:hover,
.team-tab.is-active {
    background: #003C60;
    border-color: #003C60;
    color: #fff;
}


/* =========================================================
   PANELS
   ========================================================= */

.team-panel {
    display: none;
}

.team-panel.is-active {
    display: block;
}


/* =========================================================
   SIMPLE LIST
   ========================================================= */

.team-simple-list {
    display: grid;
    grid-template-columns:repeat(2,1fr);

    gap: 50px;

    align-items: start;
}


/* LEFT CONTENT */

.team-simple-intro {
    padding-top: 110px;
    max-width: 520px;
}



.team-description {
    font-size: 14px;
}


/* TEAM GRID */

.team-simple-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 50px;
}


.team-simple-grid.second-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 48px;
}


/* =========================================================
   TEAM CARD
   ========================================================= */

.team-card {
    background: #F8FDFF;
    cursor: pointer;
    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0,0,0,.10);
}

.team-card:focus {
    outline: 2px solid #003C60;
    outline-offset: 4px;
}


.team-card-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #eee;
}

.team-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: grayscale(100%);
    transition: transform .5s ease;
}

.team-card:hover .team-card-image img {
    transform: scale(1.03);
}


.team-card-content {
    min-height: 72px;
    padding: 13px 18px;

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

    gap: 15px;
}


.team-card-name {
    margin: 0 0 5px;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    color: #141313;
}


.team-card-position {
    font-size: 13px;
    line-height: 1.35;
    color: #858489;
}


.team-card-icon {
    flex: 0 0 auto;
    color: #858489;
}


/* =========================================================
   COLUMN LAYOUT
   ========================================================= */

.team-column {
    width: 100%;
}


/* TOP */

.team-column-intro {
    display: grid;
    grid-template-columns:
        minmax(300px, .85fr)
        minmax(500px, 1.5fr);

    gap: 70px;

    align-items: center;

    margin-bottom: 55px;
}


.team-column-copy {
    max-width: 500px;
}


.team-column-image img {
    width: 100%;
    display: block;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    filter: grayscale(100%);
}


/* TWO GROUPS */

.team-columns-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 55px;
}


.team-column-item h3 {
    margin: 0 0 12px;
    font-size: 31px;
    font-weight: 400;
}


.team-column-description {
    margin-bottom: 25px;
    color: #858489;
    font-size: 14px;
    line-height: 1.55;
}


.team-group-image {
    margin-bottom: 30px;
}

.team-group-image img {
    width: 100%;
    display: block;
    aspect-ratio: 1.7 / 1;
    object-fit: cover;
    filter: grayscale(100%);
}


/* TEAM CARDS UNDER COLUMN */

.team-column-item .team-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}


/* =========================================================
   POPUP
   ========================================================= */

.team-popup {
    position: fixed;
    inset: 0;

    z-index: 99999;

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

    padding: 30px;

    visibility: hidden;
    opacity: 0;

    transition:
        opacity .3s ease,
        visibility .3s ease;
}


.team-popup.is-open {
    visibility: visible;
    opacity: 1;
}


.team-popup-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0,0,0,.42);

    cursor: pointer;
}


.team-popup-dialog {
    position: relative;

    z-index: 2;

    width: min(1100px, 100%);

    max-height: 90vh;

    background: #F8FDFF;

    overflow: auto;

    transform: translateY(25px);

    transition: transform .3s ease;
}


.team-popup.is-open .team-popup-dialog {
    transform: translateY(0);
}


.team-popup-grid {
    display: grid;
    grid-template-columns: 42% 58%;
}


.team-popup-image {
    min-height: 600px;
}


.team-popup-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    filter: grayscale(100%);
}


.team-popup-content {
    display: flex;
    align-items: center;

    padding: 70px;
}


.team-popup-inner {
    width: 100%;
    max-width: 600px;
}


.team-popup-close {
    position: absolute;

    top: 18px;
    right: 22px;

    z-index: 10;

    width: 35px;
    height: 35px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #003C60;

    font-size: 30px;
    line-height: 1;

    cursor: pointer;
}


.team-popup-category {
    margin-bottom: 14px;

    color: #003C60;

    font-size: 10px;
    font-weight: 300;

    text-transform: uppercase;
}

.team-popup-name{
    margin: 0px 0px 10px;
    padding: 0px;
}



.team-popup-position {
    color: #858489;
    font-size: 500;
    font-size: 14px;
    line-height: 1.5;
}


.team-popup-divider {
    width: 80px;
    height: 0.5px;
    margin: 10px 0 25px;
    background: rgba(158, 164, 179, 0.4);
}


.team-popup-description {
    color: #666;

    font-size: 14px;
    line-height: 1.65;
}


.team-popup-email {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-top: 55px;

    padding-top: 22px;

    border-top: 1px solid #ccd9dd;
}


.team-popup-email-icon {
    color: #858489;
}


.team-popup-email a {
    color: #858489;
    text-decoration: none;
}

.team-popup-email a:hover {
    color: #003C60;
}


/* Prevent background scrolling */

body.team-popup-open {
    overflow: hidden;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .team-simple-list {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .team-simple-intro {
        padding-top: 0;
        max-width: 700px;
    }

}


@media (max-width: 900px) {

    .team-column-intro {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .team-columns-grid {
        grid-template-columns: 1fr;
    }

    .team-popup-grid {
        grid-template-columns: 1fr;
    }

    .team-popup-image {
        min-height: 350px;
        max-height: 450px;
    }

    .team-popup-content {
        padding: 45px;
    }

}


@media (max-width: 650px) {

    .team-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;

        padding-bottom: 10px;
    }

    .team-tab {
        flex: 0 0 auto;
        padding: 12px 20px;
        font-size: 12px;
    }

    .team-simple-grid {
        grid-template-columns: 1fr;
    }

    .team-column-item .team-cards-grid {
        grid-template-columns: 1fr;
    }

    .team-popup {
        padding: 15px;
    }

    .team-popup-content {
        padding: 30px;
    }

    .team-popup-name {
        font-size: 29px;
    }

}