.servicesBox{
    display: grid;
    grid-gap: 1.28rem;
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fill, 360px);
}

.serviceCard{
    border-radius: 8px;
    background-color: #fff;
    width: 360px;
    height: 270px;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin: 1.28rem 0 0 0;
    transition: .32s ease;

    .serviceImgContainer{
        width: 100%;
        max-height: 200px;
        overflow: hidden;
        border-radius: 8px 8px 0 0;
    
        img{
            width: 100%;
            transition: .32s ease;
            background-size: cover;
        }
    }
    .serviceTextContainer{
        width: min-content;
    }

    .serviceText{
        text-align: left;
        padding: .64rem 1.28rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: auto;
        
        .serviceTitle{
            color: #000;
            font-size: 1.28rem;
            font-weight: 700;
            font-family: "Roboto", Arial, sans-serif;
            width: fit-content;
            transition: .32s ease;
            position: relative;

            &:after{
                content: '';
                position: absolute;
                width: 100%;
                transform: scaleX(0);
                height: 2px;
                bottom: -4px;
                left: 0;
                background-color: var(--logo);
                transform-origin: bottom right;
                transition: transform .32s ease;
            }

            &:hover, &:focus, &:target{
                color: var(--logo);
            }
        }

        .serviceSub{
            font-family: "Roboto", Arial, sans-serif;
            font-size: 1.08rem;
            color: var(--deep);
            margin-bottom: .48rem;
            line-height: 1.48rem;

            &:hover, &:focus, &:target{
                color: var(--logo);
                padding-left: 8px;
            }
        }
    }

    &:hover, &:focus, &:target{
        box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;

        img{
            filter: brightness(200%);
            filter: contrast(120%);
            transform: scale(1.008);
            cursor: pointer;
        }

        .serviceText .serviceTitle:after{
            transform: scaleX(1);
            transform-origin: bottom left;
        }
    }
}

@media (max-width: 1024px){
    .servicesBox{
        justify-content: center;
        grid-template-columns: repeat(auto-fill, 300px);
    
        .serviceCard{
            max-width: 300px;
            height: auto;

            .serviceTitle{
                font-size: 1.2rem;
            }

            .serviceImgContainer{
                max-height: 160px;

                img{
                    width: 300px;
                }
            }
        }
    }
}