section.team-block {
    padding: 100px 0;
}
.team-block-tab-outer {
    margin-bottom: 50px;
}
.team-block-tab {
    display: flex;
    border-radius: 40px;
    gap: 15px;
}
.team-block-tab a {
    background-color: #D9D9D9;
    color: #2F2E30;
    border-radius: 40px;
    padding: 14px 25px;
    display: inline-block;
    transition: all 0.4s ease;
    text-align: center;
}
.team-block-tab a.active {
    background-color: #000;
    color: #97BF13;
}



.team-tabEach {
    border: 1px solid #DDDDDD;
    border-radius: 20px;
    position: relative;
    padding: 50px 20px;
    text-align: center;
    overflow: hidden;
}
.team-tabEach:hover .clientslidepopup{
    bottom: 0;
}
.clientslidepopup {
    position: absolute;
    bottom: -97%;
    left: 0;
    width: 100%;
    border: 1px solid #DDDDDD;
    background-color: #97BF13;
    height: 100%;
    border-radius: 20px;
    padding: 20px;
    color: #fff;
    transition: all 0.5s ease;
}
.clientslidepopup h6 {
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 10px;
}
.clientslidepopup p {
    font-size: 14px;
    line-height: 25px;
    color: #fff;
}
.clientslidepopup-in {
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 100%;
    left: 0;
    padding: 20px;
    max-height: 80%;
}
.team-tabEach a > h6 {
    font-size: 16px;
    color: #000;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 50px;
    margin-top: 20px;
}
.team-tabEach .clientImage img {
    width: 240px;
    height: 210px;
    object-fit: contain;
    margin: 0 auto;
    object-position: center;
}


.team-tab {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
}
.team-tab.active {
    display: flex;
    gap: 38px;
    flex-wrap: wrap;
}
.team-tab li {
    width: calc(25% - 28.5px);
}
.team-tab-each-img {
    height: 390px;
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    background-color: #D9D9D9;
}
.team-tab-each-img > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    left: 0;
    top: 0;
    transition: all 0.5s ease;
}
.team-tab-each-img img.team-active-image {
    z-index: 2;
}
.team-tab-each-img img.team-over-image {
    z-index: 1;
    opacity: 0;
}
.team-tab-each:hover .team-tab-each-img img.team-active-image{
    opacity: 0;
}
.team-tab-each:hover .team-tab-each-img img.team-over-image{
    opacity: 1;
}

.team-tab-each-social {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 30px 30px;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px;
    align-items: center;
    transition: all 0.5s ease;
    opacity: 0;
}
.team-tab-each:hover .team-tab-each-social{
    opacity: 1;
}
.team-tab-each-social a {
    color: #fff;
    font-size: 14px;
    background-color: rgba(0,0,0,.5);
    border-radius: 5px;
    padding: 10px 10px;
    line-height: 18px;
    transition: all 0.5s ease;
    white-space: nowrap;
}
a.book-now-calendar {
    background-color: #97BF13;
    text-align: center;
}
.team-tab-each-social a:hover {
    background-color: rgba(0,0,0,.8);
}
.team-tab-each-social a.read-bio-link {
    background-image: url(../../images/read-bio.svg);
    background-repeat: no-repeat;
    background-position: 10px center;
    padding-left: 28px;
    background-size: 11px;
}
.team-tab-each-social img {
    width: 18px;
    height: 18px;
    float: left;
}

.team-tab-each-content {
    width: 100%;
    padding-top: 20px;
}

.team-tab-each-content h6 {
    font-size: 16px;
    font-family: 'Roboto';
    text-align: center;
    margin-bottom: 10px;
}
.team-tab-each-content p {
    color: #666;
    font-size: 14px;
    text-align: center;
    line-height: 1.4em;
    margin-bottom: 6px;
}
.team-tab-each-content p:nth-child(3){
    color: #888;
}
.team-block-header {
    padding-bottom: 55px;
}

.popup-content h4 span.coach-name-popup {
    display: block;
    font-size: 22px;
}

@media (max-width:1566px) {
    .team-tab-each-img {
        height: 360px;
    }
}


@media (max-width:1440px) {
    .team-tab-each-img {
        height: 340px;
    }
    .team-block-header {
        padding-bottom: 40px;
    }
}
@media (max-width:1380px) {
}
@media only screen and ( max-width: 1199px) {
    .team-tab-each-img {
        height: 280px;
    }
}
@media only screen and ( max-width: 961px) {
    section.team-block {
        padding: 60px 0;
    }
    .team-block-tab-outer {
        margin-bottom: 40px;
    }
    .team-tab.active {
        gap: 30px;
    }
    .team-tab li {
        width: calc(25% - 22.5px);
    }
    .team-tab-each-img {
        height: 230px;
    }
    .team-block-header {
        padding-bottom: 30px;
    }
    .team-tab-each-social {
        padding: 20px 20px;
        opacity: 1;
    }
}
@media only screen and ( max-width: 768px) {
    .clientslidepopup {
        position: static;
        height: 200px;
    }
    .clientslidepopup-in {
        position: static;
        transform: none;
        padding: 0;
        max-height: 100%;
    }
    .team-tabEach {
        padding: 10px 10px;
    }
    .team-tabEach a > h6 {
        display: none;
    }
    .partners-block-content h2 {
        font-size: 38px;
    }
    .team-tab li {
        width: calc(33% - 19px);
    }
    .team-tab-each-img {
        height: 260px;
    }
}
@media only screen and ( max-width: 560px) {
    .team-block-tab-outer {
        margin-bottom: 30px;
    }
    .team-tab li {
        width: calc(50% - 15px);
    }
    .team-tab-each-img {
        height: 260px;
    }
    .team-tab-each-social {
        padding: 5px 5px;
        opacity: 1;
    }
}
@media only screen and ( max-width: 460px) {
    .team-tab-each-img {
        height: 220px;
    }
}