.cards-team{
    padding: 60px 0;
}

.cards-team .container{
    text-align: center;
}

.cards-team-heading{
    margin-bottom: 40px;
}

.cards-team-col p{
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
   -webkit-line-clamp: 4; /* number of lines to show */
    line-clamp: 4;
    -webkit-box-orient: vertical; 
}

.cards-team-col {
    background-color: #f2f7fc;
    overflow: hidden;
    border-radius: 30px;
    -webkit-box-shadow: 0 3px 6px rgb(0 0 0 / 0.16);
    box-shadow: 0 3px 6px rgb(0 0 0 / 0.16);
    font-size: 15px;
    line-height: 1.6em;
    display: flex;
    padding: 32px 25px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    text-decoration: none;
    text-align: center;
}

.background--blue .cards-team-col, 
.background--blue .cards-team-col h1, 
.background--blue .cards-team-col h2, 
.background--blue .cards-team-col h3, 
.background--blue .cards-team-col h4, 
.background--blue .cards-team-col p {
    color: #464646 !important;
    text-align: center;
}

.team-modal {
    display: none;
        background-color: #fff;
    max-width: 928px;
    margin: 60px auto 0;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,35,77,.1);
    border-radius: 30px;
    width: 94%;
    padding: 32px 25px;
}

@media(min-width: 768px){

    .cards-team-listing {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .cards-team-listing [class*="col-"]{
        margin-bottom: 40px;;
    }

    .cards-team-col{
        margin: 0;
        height: 100%;
    }

    .cards-team-col:hover {
        color: #464646;
        margin-top: -10px;
        font-weight: normal !important;
    }

    .cards-team-col:hover .btn-tertiary {
        color: #073e70;
    }
}