﻿/* GRID */

.vet-services {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    width: 100%;
    min-height: 100vh;
}

/* CARD */

.vet-service {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 30px;
    text-decoration: none;
    color: #222;
    background: white;
    border: 1px solid #e6e6e6;
    transition: all .35s ease;
    overflow: hidden;
}

    /* ICON */

    .vet-service svg {
        width: 55px;
        height: 55px;
        margin-bottom: 18px;
        stroke: #2bb673;
        stroke-width: 1.7;
        transition: all .35s ease;
    }

    /* TITLE */

    .vet-service h3 {
        font-size: 20px;
        font-weight: 600;
        letter-spacing: .3px;
    }

    /* HOVER */

    .vet-service:hover {
        background: #2bb673;
        color: white;
    }

        .vet-service:hover svg {
            stroke: white;
            transform: scale(1.15);
        }

    /* ripple */

    .vet-service::after {
        content: "";
        position: absolute;
        width: 0;
        height: 0;
        background: rgba(255,255,255,.25);
        border-radius: 50%;
        transform: translate(-50%,-50%);
        top: 50%;
        left: 50%;
        transition: width .5s,height .5s;
    }

    .vet-service:hover::after {
        width: 400px;
        height: 400px;
    }

/* RESPONSIVE */

@media(max-width:1000px) {

    .vet-services {
        grid-template-columns: repeat(2,1fr);
    }
}

@media(max-width:600px) {

    .vet-services {
        grid-template-columns: 1fr;
    }
}
