/* =========================================================
   LATEST BLOG POSTS
========================================================= */

.hf-latest-blog {
    padding: 85px 20px;
    background: #f8fafc;
}


/* =========================================================
   HEADING
========================================================= */

.hf-blog-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 35px;
}

.hf-blog-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;

    opacity: 0.65;
}

.hf-blog-heading h2 {
    margin: 0 0 10px;

    font-size: 34px;
    line-height: 1.25;
    font-weight: 800;
}

.hf-blog-heading p {
    max-width: 650px;

    margin: 0;

    font-size: 16px;
    line-height: 1.7;

    opacity: 0.7;
}


/* =========================================================
   VIEW ALL
========================================================= */

.hf-blog-view-all {
    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 11px 18px;

    border-radius: 9px;

    text-decoration: none;
    font-weight: 600;

    border: 1px solid rgba(0,0,0,0.10);

    background: #fff;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.hf-blog-view-all:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 25px rgba(0,0,0,0.08);
}


/* =========================================================
   BLOG GRID
========================================================= */

.hf-blog-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 26px;
}


/* =========================================================
   BLOG CARD
========================================================= */

.hf-blog-card {
    overflow: hidden;

    background: #fff;

    border-radius: 16px;

    border: 1px solid rgba(0,0,0,0.07);

    box-shadow:
        0 5px 20px rgba(0,0,0,0.04);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.hf-blog-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 15px 40px rgba(0,0,0,0.10);
}


/* =========================================================
   IMAGE
========================================================= */

.hf-blog-image-link {
    display: block;

    overflow: hidden;
}

.hf-blog-image {
    display: block;

    width: 100%;
    height: 215px;

    object-fit: cover;

    transition:
        transform 0.35s ease;
}

.hf-blog-card:hover .hf-blog-image {
    transform: scale(1.04);
}


.hf-blog-no-image {
    width: 100%;
    height: 215px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 50px;

    background: #f1f5f9;

    opacity: 0.5;
}


/* =========================================================
   CARD BODY
========================================================= */

.hf-blog-card-body {
    padding: 23px;
}


/* =========================================================
   DATE
========================================================= */

.hf-blog-date {
    display: flex;
    align-items: center;
    gap: 6px;

    margin-bottom: 10px;

    font-size: 12px;

    opacity: 0.6;
}


/* =========================================================
   TITLE
========================================================= */

.hf-blog-card h3 {
    margin: 0 0 12px;

    font-size: 21px;
    line-height: 1.4;
}

.hf-blog-card h3 a {
    color: inherit;

    text-decoration: none;

    transition: opacity 0.2s ease;
}

.hf-blog-card h3 a:hover {
    opacity: 0.7;
}


/* =========================================================
   EXCERPT
========================================================= */

.hf-blog-card p {
    display: -webkit-box;

    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;

    margin: 0 0 18px;

    font-size: 14px;
    line-height: 1.7;

    opacity: 0.7;
}


/* =========================================================
   READ ARTICLE
========================================================= */

.hf-blog-read {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    transition:
        gap 0.2s ease;
}

.hf-blog-read:hover {
    gap: 12px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .hf-latest-blog {
        padding: 70px 20px;
    }

    .hf-blog-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .hf-blog-heading h2 {
        font-size: 30px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .hf-latest-blog {
        padding: 55px 15px;
    }

    .hf-blog-heading {
        display: block;

        margin-bottom: 25px;
    }

    .hf-blog-heading h2 {
        font-size: 27px;
    }

    .hf-blog-heading p {
        font-size: 15px;
    }

    .hf-blog-view-all {
        margin-top: 18px;
    }

    .hf-blog-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .hf-blog-image,
    .hf-blog-no-image {
        height: 210px;
    }

    .hf-blog-card-body {
        padding: 20px;
    }

    .hf-blog-card h3 {
        font-size: 20px;
    }

}