/***
Template Style: Team Page
***/

.team-page-banner {
    position: relative;
    background-size: cover;
}

.team-page-banner:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.team-page-banner canvas {
    width: 100%;
}

#content .custom-page-title {
    font-size: 55px;
    text-align: left;
    padding-left: 0;
    padding-top: 16px;
    font-weight: 400;
    margin-top: 13px;
}

#content .custom-page-title::after {
    left: 0;
}





.team-wp-content {
    display: block;
    position: relative;
}

#content-sidebar, #content-full {
    margin-top: 0;
}



.teams {
    margin: 40px 0 138px;
}

.tp-team {
    margin: 66px 0;
}

.tp-team:nth-child(2n) .row {
    display: flex;
    flex-direction: row-reverse;
}

.team-img {
    text-align: center;
}

.team-img a {
    pointer-events: none;
}

.team-img img {
    max-width: 100%;
    -webkit-transition: filter 0.3s ease-in-out;
    transition: filter 0.3s ease-in-out;
}

.team-img a:hover img, .team-img a:focus img {
    -webkit-filter: grayscale(1);
    filter: grayscale(1);
}

#content .tp-name {
    font-size: 48px;
    font-family: var(--font-family-title);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0;
    font-weight: 400;
    line-height: 1.4;
}

.tp-name a {
    color: #1e1e1e;
    pointer-events: none;
}

.tp-name a:hover, .tp-name a:focus {
    opacity: 0.6;
}

.tp-contacts {
    display: flex;
    align-items: center;
    font-size: 14px;
    letter-spacing: 0.02em;
    color: #515151;
    margin: 5px 0 0;
}

.tp-contacts > div:not(:last-of-type) {
    margin-right: 45px;
}

.tp-contacts a {
    color: #515151;
}

.tp-contacts a:hover, .tp-contacts a:focus {
    color: var(--accent-color);
    text-decoration: none;
}

.tp-contacts i {
    color: var(--accent-color);
    font-size: 11px;
    margin-right: 5px;
    font-style: normal !important;
}

.tp-smi {
    display: flex;
    font-size: 0;
 }

.tp-smi a {
    color: var(--accent-color);
    display: inline-block;
}

.tp-smi a:not(:last-of-type) {
    margin-right: 14px;
}

.tp-smi a i {
    font-size: 19px;
}

.tp-smi a:hover i, .tp-smi a:focus i {
    color: #1e1e1e;
}

.tp-smi i {
    font-size: 14px;
}

.tp-desc p {
    font-size: 16px;
    color: #515151;
    letter-spacing: 0.02em;
    line-height: 1.5 !important;
    margin: 23px 0 !important;
}

.tp-desc p:first-of-type {
    margin-top: 9px !important;
}

.team-page .primary-btn {
    padding: 15px 30px;
}
.team-page {
    margin-top: 20px;
}

.tp-info span {
   text-transform: uppercase;
   font-size: 18px;
   padding-bottom: 10px; 
   display: block;
}
/*** Media Queries ***/
@media only screen and (max-width: 991px) {
    .team-wp-content{
        margin-top: 30px;
    }
    .tp-team {
        text-align: center;
        margin: 40px 0 30px;
    }

    .tp-contacts {
        justify-content: center;
    }

    .tp-team:nth-child(2n) .row {
        flex-direction: column;
    }
}

@media only screen and (max-width: 767px) {
    .tp-contacts {
        flex-direction: column;
    }
    
    .tp-contacts > div:not(:last-of-type) {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media only screen and (max-width: 480px) {
    .teams {
        margin: 0;
    }

    #content .tp-name {
        font-size: 28px;
    }
}