.team_card{
    background-color: var(--IVIS-slate-100);
}
.team_card .row{
    display: grid;
    grid-template-columns: 49% 49%;
    gap: 2%;

}
.team_card .row .card{
    display: flex;
    gap: 10px;
    background-color: var(--IVIS-white);
}
.team_card .row .image{
    position: relative;
    cursor: pointer;
    overflow: hidden;
    width: 100%;
}
.team_card .row .image::after{
    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    opacity: 0.8;
    background-color: var(--IVIS-primary);
    top: 0px;
    left: 0px;
    transform: scale(0);
    pointer-events: none;
    transition: 0.4s;
}
.team_card .row .image:hover::after{
    transform: scale(1);
}
.team_card .row .image::before{
    position: absolute;
    content: '';
    width: 30px;
    height: 30px;
    background-color: white;
    right: -22px;
    top: 40px;
    transform: rotate(48deg);
}
.team_card .row .card .image img{
    width: 100%;
    max-height:280px;
    display: block;
    height: 100%;
}
.team_card .row .text{
    padding: 15px 10px;
}
.team_card .row .text h3{
    font-size: 20px;
    margin-bottom: 4px;
}
.team_card .row .text h5{
    font-size: 16px;
    color: var(--IVIS-gray-600);
    font-weight: 500;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--IVIS-slate-200);
    line-height: 21px;
}
.team_card .row .text p {
    margin-bottom: 10px;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    -webkit-line-clamp:4;
    overflow: hidden;
    width: 100%;
    max-width: 650px;
    line-height: 24px;
}

@media (max-width:1080px) {
    .team_card .row .card{
        flex-direction: column;
        gap: 2px;
    }
    .team_card .card .image::before{
        bottom: -20px;
    left: 30px;
    top: unset;
    }
    .team_card .row{
        max-width:700px;
        margin: 0 auto;
    }
    .team_card .row .card .image img{
        max-width: 100%;
        width: 100%;
    }

    .team_card .row .text h5 {
        padding-bottom: 10px;
        margin-bottom: 15px;
    }
}
    @media (max-width:620px) {
        .team_card .row{
            grid-template-columns: 100%;
            max-width: 400px;
        }
    }