﻿.service-block {
    position: relative;
    overflow: hidden;
}

.service-bg {
    min-height: 350px;
    transition: opacity 0.5s ease-in-out;
    z-index: 2;
    position: relative;
    background: linear-gradient( to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.55) );
}

.service-content {
    z-index: 3;
    position: relative;
}

.service-block:hover .service-btn {
    color: var(--primary-color);
    background-color: var(--light-color);
    border-color: var(--light-color)
}

    .service-block:hover .hover-bg-overlay {
        opacity: 1;
    }

.service-bg {
    position: relative;
    min-height: 350px;
    z-index: 1;
    transition: .5s;
}

    .service-bg::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( to bottom, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.55) );
        pointer-events: none;
    }

.service-block:hover .service-bg {
    transform: scale(1.1);
}