.meet-the-team-wrapper {
    text-align: center;
    background: linear-gradient(0deg,rgba(168, 214, 237, 1) 0%, rgba(116, 196, 233, 1) 20%, rgba(255, 255, 255, 1) 100%);
    position: relative;
}

/*.meet-the-team-wrapper:before {*/
    /*content: '';*/
    /*position: absolute;*/
    /*right: 0;*/
    /*top: 0;*/
    /*border-left: 125px solid transparent;*/
    /*border-top: 125px solid #ffffff;*/
/*    content: '';*/
/*    display: inline-block;*/
/*    width: 300px;*/
/*    aspect-ratio: 399 / 181;*/
/*    background-image: url(../img/decor-top.png);*/
/*    background-size: contain;*/
/*    background-repeat: no-repeat;*/
/*    background-position: center;*/
/*    vertical-align: middle;*/
/*    position: absolute;*/
/*    right: 0;*/
/*    top: 0;*/
/*}*/

/*.meet-the-team-wrapper:after {*/
/*     content: '';*/
/*     display: inline-block;*/
/*     width: 300px;*/
/*     aspect-ratio: 1141 / 189;*/
/*     background-image: url(../img/decor-bottom.png);*/
/*     background-size: contain;*/
/*     background-repeat: no-repeat;*/
/*     background-position: center;*/
/*     vertical-align: middle;*/
/*     position: absolute;*/
/*     left: 6%;*/
/*     bottom: 0;*/
/* }*/

.meet-the-team h2 {
    margin: 0 0 20px;
    font-size: 3rem;
    line-height: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    position: relative;
    color: var(--black);
}

.team-intro,
.team-values,
.team-mission {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.team-values {
    font-weight: 600;
    color: #1e3a5f;
}

.meet-the-team .divider-short {
    margin: 0 auto;
}

.team-members {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 40px;
    grid-row-gap: 40px;
    margin-top: 80px;
}

.team-member {
    background-color: #ffffff;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member-image-wrapper {
    height: 100px;
    width: 100px;
    border-radius: 200px;
    border: 3px solid var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-member-image {
    height: 100px;
    width: 100%;
    object-fit: cover;
}

.team-member-info-wrapper {
    display: flex;
    justify-content: space-between;
    flex: 1;
}

.team-member-info {
    text-align: center;
    padding-top: 15px;
}

.team-member-name,
.team-member-job-title,
.team-member-text {
    line-height: 1.6rem;
}

.team-member-name {
    margin: 0 0 8px;
}

.team-member-job-title {
    font-size: 1.3rem;
    margin: 8px 0;
    color: var(--blue);
}

.team-member-text {
    margin: 0;
    color: #666;
}

.meet-the-team-keyline {
    position: absolute;
    left: 25%;
    right: 0;
    bottom: 50px;
    width: 60%;
    transform: translate(-50%, 0);
}

@media (max-width: 1100px) {
    .team-members {
        grid-column-gap: 30px;
        grid-row-gap: 30px;
    }
}

@media (max-width: 800px) {
    .team-members {
        grid-template-columns: 1fr;
    }

    .team-member-info {
        text-align: left;
        padding: 8px;
    }

    .team-member-info-wrapper {
        flex-direction: column;
        border-left: none;
    }

    .team-member-info {
        text-align: center;
    }
}

/*********************************************************

Team member popup

*********************************************************/

.team-member-popup-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .7);
    z-index: 999999;
    padding: 45px;
    display: none;
    align-items: center;
}

.team-member-popup-wrapper.open {
    display: flex;
}

.team-member-popup {
    background-color: var(--grey);
    margin: 0 auto;
    width: 100%;
    height: 65%;
    max-width: 1200px;
    display: flex;
    border-left: 5px solid var(--blue);
    position: relative;
}

.team-member-popup:before {
    position: absolute;
    right: 0;
    top: 0;
    content: '';
    width: 0;
    border-top: 80px solid #ffffff;
    border-left: 80px solid transparent;
}

.team-member-popup-image-wrapper {
    height: 100%;
    width: 40%;
}

.team-member-popup-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.team-member-popup-name {
    margin: 15px 0;
}

.team-member-popup-job-title {
    margin: 0 0 15px;
}

.team-member-popup-job-title {
    color: var(--blue);
}

.team-member-popup-description {
    flex: 1;
    margin: 35px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.team-member-popup-info {
    overflow-y: auto;
    margin: 0;
    padding-right: 20px;
}

.team-member-popup-info p {
    margin: 0;
}

.team-member-popup-email, .team-member-popup-phone, .team-member-popup-linkedin {
    margin: 8px 0;
    display: inline-block;
    color: var(--blue);
    text-decoration: none;
}

.team-member-popup-email:hover,
.team-member-popup-email:focus,
.team-member-popup-email:focus-visible,
.team-member-popup-phone:hover,
.team-member-popup-phone:focus,
.team-member-popup-phone:focus-visible,
.team-member-popup-linkedin:hover,
.team-member-popup-linkedin:focus,
.team-member-popup-linkedin:focus-visible {
    color: var(--light-blue);
}

.team-member-popup-close {
    position: absolute;
    right: 12px;
    top: 12px;
    text-decoration: none;
    color: var(--black);
}

@media (max-width: 800px) {

    .team-member-popup-wrapper {
        padding: 20px;
    }

    .team-member-popup {
        flex-direction: column;
        height: 85%;
        overflow-y: auto;
        border-left: 0;
    }

    .team-member-popup-image-wrapper {
        width: 100%;
        height: 60%;
        flex: none;
    }

    .team-member-popup-description {
        margin: 15px;
        overflow: unset;
    }

    .team-member-popup-info {
        overflow-y: unset;
        padding-right: 0;
    }
}