.teams-section {
    padding: 40px 0; 
}

.teams-section h1 {
    font-size: 6.25vw;
    font-weight: 900;
    color: #B5207A;
    margin: 0;
}

.teams-tab-holder .tabset {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 4.69vw;
    line-height: 1;
    font-weight: 700;
    padding: 5vw 15px;
    background: #fff;
    z-index: 1;
}

.sticky-wrap-tabset.fixed-position .tabset {
    border-bottom: 1px solid #B5207A;
}

.teams-tab-holder .tabset li {
    position: relative;
}

.teams-tab-holder .tabset li::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 1px;
    background: #B5207A;
    display: none;
}

.teams-tab-holder .tabset li.active::after {
    display: block;
}

.teams-tab-holder .tabset button {
    background: none;
    border: 0;
    padding: 0;
    color: #45494E;
    position: relative;
}

.teams-tab-holder .tab-content h2 {
    color: #B5207A;
    font-size: 4.69vw;
    font-weight: 700;
    margin-bottom: 20px;
}

.teams-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px;
}

.teams-row .col {
    width: 50%;
    padding: 0 5px;
    margin-bottom: 40px;
}

.team-card {
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    height: 100%;
}

.team-card .img-wrap {
    overflow: hidden;
}

.team-card .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 1 / 1;
    transition: transform .3s ease;
}

.team-card .text-wrap {
    padding: 4.69vw;
    font-size: 3.75vw;
    color: #000;
}

.team-card .text-wrap > span {
    display: block;
    margin-bottom: 3vw;
}

.team-card .text-wrap .name {
    font-size: 4.69vw;
    font-weight: 600;
}

.team-card .text-wrap .contact-link {
    font-size: 3vw;
}

.team-card .text-wrap .contact-link a {
    color: inherit;
    text-decoration: none;
    transition: color .3s ease;
}

.team-card .text-wrap .contact-link a svg {
    width: 3vw;
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
}

.team-card .text-wrap .read-more {
    font-size: 2.5vw;
    font-weight: 600;
    color: #B5207A;
    text-decoration: none;
}

.team-card .text-wrap .read-more i {
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
    transition: transform .3s ease;
}

.team-card .text-wrap .modal-dialog {
    margin: 0 auto;
}

.team-card .text-wrap .modal-dialog button.close {
    position: absolute;
    top: 15px;
    left: 15px;
    opacity: 1;
    z-index: 1;
}

.team-card .text-wrap .modal-dialog .modal-content {
    border-radius: 0;
    padding-bottom: 5vw;
}

.team-card .text-wrap .modal-dialog .modal-body {
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.team-card .text-wrap .modal-dialog .img {
    width: 36.5%;
}

.team-card .text-wrap .modal-dialog .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 1 / 1;
}

.team-card .text-wrap .modal-dialog .img +.text {
    width: 63.5%;
}

.team-card .text-wrap .modal-dialog .text {
    padding: 4.5vw;
}

.team-card .text-wrap .modal-dialog .text .name {
    margin-bottom: 5px;
}

.team-card .text-wrap .modal-dialog .text .role {
    margin-bottom: 15px;
}

.team-card .text-wrap .modal-dialog .text p {
    display: none;
}

.team-card .text-wrap .modal-dialog .text > span {
    display: block;
}

.team-card .text-wrap .modal-dialog .duplicate-content {
    padding-top: 5vw;
    padding-inline: 5vw;
}

.team-card .text-wrap .modal-dialog .duplicate-content p:last-child {
    margin: 0;
}

.team-card .text-wrap .modal-dialog .contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5vw;
}

.team-card .text-wrap .modal-dialog .contacts li {
    width: 100%;
}

@media (min-width: 768px) {
    .page-template-page-teams .common-page-banner-header {
        display: none;
    }

    .teams-section h1 {
        font-size: 50px;
        text-align: center;
    }

    .teams-tab-holder .tabset {
        justify-content: center;
        gap: 30px;
        font-size: 24px;
        padding: 20px 0;
    }

    .teams-row {
        margin: 0 -10px;
    }

    .teams-row .col {
        width: 33.33%;
        padding: 0 10px;
    }

    .teams-tab-holder .tab-content h2 {
        font-size: 30px;
    }

    .team-card:hover .img-wrap img {
        transform: scale(1.08);
    }

    .team-card .text-wrap {
        font-size: 16px;
        padding: 15px;
    }

    .team-card .text-wrap > span {
        margin-bottom: 8px;
    }

    .team-card .text-wrap .name {
        font-size: 20px;
        margin-bottom: 5px;
    }

    .team-card .text-wrap .contact-link a svg {
        width: 14px;
    }

    .team-card .text-wrap .contact-link {
        font-size: 14px;
    }

    .team-card .text-wrap .contact-link a:hover {
        color: #B5207A;
    }

    .team-card .text-wrap .read-more {
        font-size: 14px;
    }

    .team-card .text-wrap .read-more:hover i {
        transform: translateX(-4px);
    }

    .team-card .text-wrap .modal-dialog .modal-content {
        padding: 0;
    }

    .team-card .text-wrap .modal-dialog .img {
        width: 342px;
    }

    .team-card .text-wrap .modal-dialog .img +.text {
        width: calc(100% - 342px);
        display: flex;
        flex-direction: column;
    }

    .team-card .text-wrap .modal-dialog .text {
        padding: 15px;
    }

    .team-card .text-wrap .modal-dialog .text p {
        display: block;
    }

    .team-card .text-wrap .modal-dialog .contacts {
        gap: 15px;
        align-items: flex-end;
        flex: 1;
    }

    .team-card .text-wrap .modal-dialog .contacts li {
        width: auto;
    }

    .team-card .text-wrap .modal-dialog .contacts .contact-link a {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .team-card .text-wrap .modal-dialog .duplicate-content {
        display: none;
    }
}

@media (min-width: 992px) {
    .teams-row .col {
        width: 20%;
    }

    .team-card .text-wrap .modal-dialog {
        width: 750px;
        transform: translate(0, 75%);
    }
}

@media (max-width: 767px) {
    .team-card .text-wrap .modal-dialog {
        line-height: 1.2;
        display: flex;
        flex-direction: column;
        height: 100%;
        justify-content: flex-end;
    }
}