
* {
  font-family: "Red Hat Display";
}

.features_card{
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
text-align:center;
padding-bottom: 25px;
color: white;
font-size: 45px;
font-weight: 700;
}

.features_card p{
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
text-align:center;
padding-bottom: 25px;
color: white;
font-size: 20px;
padding: 20px;
}

.features_card h2 {
    font-size: 22px;
    padding-top: 20px;
}

/* section */

.blog-section {
    padding: 80px 20px;
    background: #1b4965;
}

/* container */

.blog-container {
    max-width: 1200px;
    width: 100%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* card */

.feature-blog-card {
    position: relative;
    padding: 35px;
    min-height: 220px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: all .35s ease;
    overflow: hidden;
    background: #1b4965;
    color: white; /* important */
}

.feature-blog-card:hover {
    background: #ebebeb;
    color: #111;
}

.feature-blog-card:hover h2,
.feature-blog-card:hover p {
    color: #111;
}


.feature-blog-card h2 {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.feature-blog-card p {
    margin: 6px 0;
    font-size: 12px;
    line-height: 1.5;
}





/* remove right border desktop */

.feature-blog-card:nth-child(3n) {
    border-right: none;
}

/* remove bottom border last row desktop */

.feature-blog-card:nth-last-child(-n+3) {
    border-bottom: none;
}

/* hover */

.feature-blog-card:hover {
    background: #ffffff;
    /* color: rgb(240, 238, 238); */
    
}

/* hover image */
 
.feature-blog-card::after {
    content: "";
    position: absolute;

    width: 200px;
    height: 200px;
    top: -5px;
    right: -40px;

    background: url("../img/hoverimg.png") no-repeat center;
    background-size: contain;

    opacity: 0;
    transform: scale(.7);
    transition: .35s ease;
    pointer-events: none;
}

.feature-blog-card:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* icon */

.icon {
    font-size: 28px;
    margin-bottom: 15px;
}

/* icon animation */

.icon i {
    font-size: 30px;
    color: #cae9ff;
    transition: .3s;
}

.feature-blog-card:hover .icon i {
    color: #5fa8d3;
    transform: scale(1.15);
}

/* text */

.feature-blog-card h3 {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.feature-blog-card p {
    margin: 6px 0;
    font-size: 12px;
    line-height: 1.5;
    color: white;
}

/* =========================
TABLET
========================= */

@media (max-width:900px) {

    .blog-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-blog-card:nth-child(3n) {
        border-right: 1px solid rgba(255, 255, 255, 0.15);
    }

    .feature-blog-card:nth-child(2n) {
        border-right: none;
    }

    .feature-blog-card:nth-last-child(-n+3) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .feature-blog-card:nth-last-child(-n+2) {
        border-bottom: none;
    }

}


/* Active card (when clicked) */
.feature-blog-card.active{
    background:#000 !important;
    color:#fff !important;
}

.feature-blog-card.active h3,
.feature-blog-card.active p,
.feature-blog-card.active .service-link{
    color:#fff !important;
}

/* =========================
MOBILE
========================= */

@media (max-width:500px) {

    .blog-container {
        grid-template-columns: 1fr;
    }

    .feature-blog-card {
        border-right: none;
        padding: 28px;
    }

    .feature-blog-card:last-child {
        border-bottom: none;
    }

    .feature-blog-card::after {
        width: 140px;
        height: 140px;
        right: -20px;
    }

    .feature-blog-card h3 {
        font-size: 18px;
    }

    .feature-blog-card p {
        font-size: 13px;
    }

}


.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    font-size: 12px;
    text-decoration: none;
    color: #8da0ee;
    font-weight: 300;
    transition: .3s;
}

.service-link i {
    font-size: 16px;
    transition: .3s;
}

.feature-blog-card:hover .service-link {
    color: #666666;
    text-decoration: underline;

}

.feature-blog-card:hover .service-link i {
    transform: translateX(6px);
}