.service-cards-holder {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.service-cards a {
    display: flex;
    align-items: flex-end;
    width: calc(1/4*100% - (1 - 1/4)*30px);
    position: relative;
    height: 200px;
    border-radius: 5px;
    overflow: hidden;
    z-index: 3;
    background-color: #ced2d9;
}

.service-cards img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0 !important;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    transition: transform 0.3s ease-in-out;
}

.service-cards a:hover img {
    transform: scale(1.1);
}


.service-cards h4 {
    background-color: var(--primary-color);
    color: #fff;
    position: relative;
    z-index: 3;
    display: block;
    width: 100%;
    padding: 10px 20px 10px 10px;
    margin: 0;
}

.service-cards h4:before {
    content: '';
    width: 8px;
    height: 8px;
    border-bottom: 1px solid #fff;
    border-right: 1px solid #fff;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

@media only screen and (max-width: 991px) {
    .service-cards a {
        width: calc(1/3*100% - (1 - 1/3)*30px);
    }

    .service-cards h4:before {
        right: 10px;
    }
}

@media only screen and (max-width: 767px) {
    .service-cards-holder {
        gap: 20px;
    }

    .service-cards a {
        width: calc(1/2*100% - (1 - 1/2)*20px);
    }
}
