

.cards {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    
    background: #f7f7f7;
    background-size: cover;
    background-position: center;
   
    margin: 0px 0;  
    padding: 0px;
    box-shadow: 0 0px 0px rgba(0,0,0,0.2), 0 0px 0px rgba(0,0,0,0.2);
}


.cards:hover .card:after {
    opacity: 1;
}


.cards .card {
    background-color: #4f93ce;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    position: relative;
    width: calc(33.333% - 20px);
    margin: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2), 0 16px 20px rgba(0,0,0,0.2);
    opacity: 0.95;
}

@media screen and (max-width: 767px) {
    .cards .card {
        width: calc(50% - 20px);
    }
}

@media screen and (max-width: 520px) {
    .cards .card {
        width: calc(100% - 20px);
    }
}

.cards .card:hover:before {
    opacity: 1;
}

.cards .card:before,
.cards .card:after {
    border-radius: inherit;
    content: "";
    height: 100%;
    left: 0px;
    opacity: 0;
    position: absolute;
    top: 0px;
    transition: opacity 500ms;
    width: 100%;
}

.cards .card:before {
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(191, 226, 255, 0.4), transparent 40%);
    z-index: 3;
}

.cards .card:after {  
    background: radial-gradient(500px circle at var(--mouse-x) var(--mouse-y), rgba(191, 226, 255, 0.9), transparent 40%);
    z-index: 1;
}

.cards .card .card-content {
    background-color: #337AB7;
    border-radius: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    padding: 78px 16px 16px;
    z-index: 2;
    height: 100%;
    line-height: 1.2;
    margin: 2px;
}

.cards .card .card-image {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);    
    z-index: 10;
}

.cards .card .card-image i {
    font-size: 64px;
    color: #16354f;
}

.cards .card .card-image img {
    height: 64px;
}

.cards .card .card-image svg {
    height: 64px;
    fill: #16354f;
}

.cards .card .card-title {
    font-size: 18px;
    font-family: 'Roboto', sans-serif;
    padding: 10px 0;
    color: #FFF;
    text-transform: uppercase;
    font-weight: 600;
}

.cards .card .card-text,
.cards .card .card-text p {
    font-size: 15px;
    font-family: Verdana, sans-serif;
    color: #FFF;
    margin: 0;
}

.cards .card .card-text p:not(:last-child) {
    margin-bottom: 10px;
}