/*** Start Banner Section ***/
.team.banner-sec:before {
    content: "";
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 13, 0.5);
}
.team.banner-sec .banner-content {
    max-width: 700px;
    margin: 0 auto;
}
.team.banner-sec .banner-content h1 {
    margin-bottom: 20px;
}
.team.banner-sec .banner-content p:last-child {
    font-weight: 400;
}
/*** End Banner Section ***/

/*** Start Team Section ***/
.team-sec {
    background: #F0F0F0;
    padding: 60px 0px;
}
.team-sec .sec-title {
    color: #658FE0;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 700;
}
.team-sec .team-row {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 0px -15px;
    justify-content: center;
}
.team-sec .team-col {
    padding: 0px 15px;
    width: 25%;
    margin-bottom: 30px;
}
.team-sec .management-team,
.team-sec .associate-team,
.team-sec .consultant-team {
    margin-top: 30px;
}
.team-sec .team-title,
.team-sec .team-sub-title {
    text-transform: uppercase;
    color: #212121;
}
.team-sec .team-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
    padding: 10px 0px 5px;
}
.team-sec .team-sub-title {
    font-size: 12px;
    font-weight: 400;
    line-height: 17px;
}
.team-sec .team-img .img-box {
    position: relative;
    font-size: 0px;
}
.team-sec .team-img .img-box::after {
    content: "";
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
}
.team-sec .team-img:hover .img-box::after {
    display: block;
}
.team-img:hover .team-title, .team-img:hover .team-sub-title {
    text-decoration: underline;
}
/*** End Team Section ***/

/*** Start Modal Css ***/
.team-sec .modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 15; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    text-align: center;
    padding: 0!important;
}
.team-sec .modal:before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin-right: -4px;
}
.team-sec .modal-content {
    background-color: #fefefe;
    margin: 0 auto; /* 15% from the top and centered */
    padding: 60px;
    border: 0px;
    max-width: 1080px;
    position: relative;
    display: inline-block;
    text-align: left;
    vertical-align: middle;
}
.team-sec .modal-content::before {
    content: "";
    position: absolute;
    top: 0px;
    left: 0px;
    width: 35%;
    height: 100%;
    background: #0a0a0d;;
}
.team-sec .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    width: 60px;
    height: 60px;
    position: absolute;
    right: 0px;
    top: 0;
    cursor: pointer;
    border-left: 1px solid #D8D8D8;
    border-bottom: 1px solid #D8D8D8;
}
.team-sec span.close::before, .team-sec span.close::after {
    content: '';
    display: block;
    width: 2px;
    height: 30px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -15px;
    margin-left: -1px;
    background-color: #000;
    opacity: 0.5;
}
.team-sec span.close::before {
    transform: rotate(45deg);
}
.team-sec span.close::after {
    transform: rotate(-45deg);
}

.team-sec .close:hover::before,
.team-sec .close:hover::after,
.team-sec .close:focus {
    opacity: 1;
    color: black;
    text-decoration: none;
}

.team-sec .team-bio {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.team-sec .team-bio .team-left, .team-sec .team-bio .team-right {
    width: 50%;
}

.team-sec .team-bio .team-left {
    padding-right: 50px;
}

.team-sec .team-bio .team-title-popup {
    color: #212121;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -1px;
    text-transform: capitalize;
}

.team-sec .team-bio .team-sub-title-popup {
    color: #658fe0;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 10px;
}
.team-sec .team-desc {
    margin-top: 20px;
}
.team-sec .team-desc p {
    color: #212121;
    font-size: 16px;
    font-weight: 400;
    line-height: 30px;
    margin-bottom: 10px;
}
/*** End Modal Css ***/

.popup_prev_next {
    position: absolute;
    right: 0;
    bottom: 0;
}
.popup_prev_next a {
    display: table-cell;
    width: 60px;
    color: #aaa;
    border-top: 1px solid #D8D8D8;
    border-left: 1px solid #D8D8D8;
    height: 60px;
    padding: 20px 20px 20px 23px;
}
.popup_prev_next a img {
    max-width: 100%;
    height: auto;
}
.popup_prev_next a.right-arrow img {
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    -o-transform: rotate(180deg);
    transform: rotate(180deg);
}
.popup_prev_next a:hover img {
    filter: invert(75%) sepia(54%) saturate(5213%) hue-rotate(194deg) brightness(92%) contrast(90%);
}

/*Responsive Media Queries Start */
@media only screen and (min-width: 1900px) {
    /*** Start Banner Section ***/
    .team.banner-sec .banner-content {
        max-width: 980px;
    }
    /*** End Banner Section ***/

    /*** Start Team Section ***/
    .team-sec {
        background: #F0F0F0;
        padding: 60px 0px;
    }
    .team-sec .sec-title {
        font-size: 26px;
    }
    .team-sec .team-title {
        font-size: 18px;
    }
    .team-sec .team-sub-title {
        font-size: 14px;
    }
    .team-sec .team-bio .team-title-popup {
        font-size: 40px;
    }
    .team-sec .team-bio .team-sub-title-popup {
        font-size: 26px;
    }
    .team-sec .team-desc p {
        font-size: 18px;
        line-height: 34px;
    }
    /*** End Team Section ***/
}

@media only screen and (max-width: 1199px) {
    /*** Start Team Section ***/
    .team-sec .team-title {
        font-size: 14px;
        line-height: 17px;
    }
    .team-sec .modal-content {
        max-width: 900px;
    }
    /*** End Team Section ***/
}

@media only screen and (max-width: 991px) {
    /*** Start Team Section ***/
    .team-sec .team-col {
        width: 50%;
    }
    .team-sec .modal-content {
        max-width: 700px;
    }
    .team-sec .team-bio .team-title-popup {
        font-size: 22px;
    }
    .team-sec .team-bio .team-sub-title-popup {
        font-size: 16px;
    }
    .team-sec .team-desc p {
        font-size: 14px;
        line-height: 24px;
    }
    /*** End Team Section ***/
}

@media only screen and (max-width: 767px) {
    /*** Start Team Section ***/
    .team-sec .modal::before,
    .team-sec .modal-content::before {
        content: none;
    }
    .team-sec .modal-content {
        margin: 10% auto;
        max-width: 90%;
        padding: 60px 20px;
    }
    .team-sec .team-bio {
        display: block;
    }
    .team-sec .team-bio .team-left, .team-sec .team-bio .team-right {
        width: 100%;
    }
    .team-sec .team-bio .team-left {
        padding-right: 0px;
        margin-bottom: 20px;
    }
    /*** End Team Section ***/
}

@media only screen and (max-width: 575px) {
    /*** Start Team Section ***/
    .team-sec .sec-title {
        font-size: 20px;
    }
    .team-sec .team-col {
        width: 320px;
    }
    /*** End Team Section ***/
}