a {
    text-decoration: none;
    color: #fff;
}

.container_team {
    padding-top: 135px;
}

.heading_team {
    text-transform: uppercase;
    font-size: 37px;
    letter-spacing: 3px;
    margin-right: -3px;
    margin-bottom: 53px;
    text-align: center;
    color: #333333;
    position: relative;
}

.card-wrapper_team {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.card_team {
    width: calc(45% - 20px); /* Adjust the width to ensure there is space for margins */
    background-color: #ebeef8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 20px;
    box-shadow: 5.3px 5.3px 32px rgba(0,0,0,0.2);
}

.card_team .card-img {
    width: 100%;
    height: 277px;
    object-fit: cover;
    clip-path: polygon(0 0, 100% 0, 100% 71%, 0% 100%);
}

.profile-img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    margin-top: -117px;
    z-index: 999;
    border: 10.7px solid #ebeef8;
}

.card_team h1 {
    font-size: 27px;
    color: #333333;
    margin: 16px 0;
}

.job-title {
    color: #0097a7;
    font-size: 18px;
    font-weight: 300;
}

.about_team {
    font-size: 16px;
    margin: 16px 0;
    font-style: normal;
    text-align: center;
    color: #333333;
}

.social-media {
    width: 100%;
    list-style: none;
    display: flex;
    justify-content: space-evenly;
    padding: 21px 0;
    margin-top: 16px;
    border-top: 1px solid rgba(0,0,0,.1);
}

.social-media a i {
    color: #00bcd4;
    margin-top: 21px;
    margin-right: 10px;
    transition: 0.3s ease;
    font-size: 32px;
}

.social-media a i:hover {
    transform: scale(1.5);
    filter: grayscale(25);
}

@media screen and (min-width: 700px) {
    .card-wrapper_team {
        justify-content: center;
    }

    .card_team {
        margin: 2rem;
        transition: opacity 0.5s;
        flex: 1 0 calc(45% - 20px); /* Ensure two cards per row */
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    .card_team:nth-child(1) {
        animation: fadeIn 0.5s 0.5s backwards;
    }

    .card_team:nth-child(2) {
        animation: fadeIn 0.5s 1s backwards;
    }

    .card_team:nth-child(3) {
        animation: fadeIn 0.5s 1.5s backwards;
    }

    .card_team:nth-child(4) {
        animation: fadeIn 0.5s 2s backwards;
    }

    .card_team:hover {
        transform: scale(1.05);
    }
}

@media screen and (max-width: 700px) {
    .card-wrapper_team {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .card_team {
        width: 100%;
        transition: width 0.5s ease;
    }

}
.card_team.onur { 
    width: 100%;
    flex: 1 0 100%;
}
.card_team.onur { width:100% !important; flex: 1 0 100% !important; }
