.blocks {
    padding-bottom: 100px;
}

section h1 {
    color: #061649!important;
    font-family: "Poppins"!important;;
    font-size: 36px!important;;
    font-weight: 700!important;;
    text-align: center!important;;
    margin-bottom: 42px!important;;
}

section h1:before {
    content: "";
    background: #ddd;
    width: 40px;
    height: 3px;
    display: block;
    margin: 10px auto 10px auto;
}

.blocks .col-md-3 .inner {
    border: 3px solid #ddd;
    border-radius: 10px;
    padding: 30px;
    margin-top: 0px;
    margin-bottom: 42px;
    background: linear-gradient(135deg, #fff, #fff);
    transition: margin 333ms ease-in-out;
    position: relative;
    cursor: pointer;
    height: 100%;
}

.blocks .row {
    display: flex;
    flex-wrap: wrap;
}

.blocks .text {
    height: 104%;
}

.blocks .col-md-3 {
    padding: 8px;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 475px;
}

.blocks .col-md-3 h2 {
    color: #061649;
    font-family: "Poppins";
    font-size: 24px;
    font-weight: 700;
}

.blocks a.btn.btn-secondary {
    color: #061649;
    text-transform: uppercase;
    font-weight: bold;
    margin: 0;
    padding: 0;
    bottom: 20px;
    border-bottom: 1px solid #061649;
    position: absolute;
}

.image {
    width: 50px;
    height: 50px;
    background-size: 100%;
}

.blocks .col-md-3:hover .inner {
    margin-top: 42px;
    margin-bottom: 0px;
    background: linear-gradient(135deg, #8377fc, #4233c4);
    color: #fff;
    border: 0px solid transparent;
}

.blocks .col-md-3:hover .inner h2 {
    color: #fff;
}

.blocks .col-md-3:hover .inner a.btn.btn-secondary {
    color: #fff;
    border-bottom: 1px solid #fff;
}

.image.consult {background-image: url(/wp-content/themes/NetCare/images/main/team.png);}
.image.net {background-image: url(/wp-content/themes/NetCare/images/main/network.png);}
.image.order {background-image: url(/wp-content/themes/NetCare/images/main/order.png);}
.image.val {background-image: url(/wp-content/themes/NetCare/images/main/value.png);}

.blocks .col-md-3:hover .image.consult {background-image: url(/wp-content/themes/NetCare/images/main/team-w.png);}
.blocks .col-md-3:hover .image.net {background-image: url(/wp-content/themes/NetCare/images/main/network-w.png);}
.blocks .col-md-3:hover .image.order {background-image: url(/wp-content/themes/NetCare/images/main/order-w.png);}
.blocks .col-md-3:hover .image.val {background-image: url(/wp-content/themes/NetCare/images/main/value-w.png);}

@media (max-width: 992px) {
    .blocks .text {
        height: auto;
    }

    .blocks .col-md-3 {
        height: auto;
    }
}