/* ==========================================================================
   Home - Latest Blog Posts
   ========================================================================== */

.home-blog-latest {
    width: 100%;
    margin-top: 70px;
    margin-bottom: 70px;
}


.home-blog-latest__header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 30px;
}


.home-blog-latest__header h2 {
    margin: 0;

    font-size: 20px;
    font-weight: 700;
    color: #333;

    border-bottom: 4px solid #1cb1b5;
    padding-bottom: 7px;
}


.home-blog-latest__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-size: 14px;
    color: #666;
}


.home-blog-latest__more:hover {
    color: var(--color-amethystine);
}


.home-blog-latest__grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 24px;
}


.home-blog-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background-color: #fff;

    border: 1px solid #e5e7eb;
    border-radius: 10px;

    overflow: hidden;

    transition:
        transform 300ms ease,
        box-shadow 300ms ease;
}


.home-blog-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 8px 25px rgb(0 0 0 / 8%);
}


/* Image */

.home-blog-card__image {
    display: block;

    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;

    background-color: #f5f5f5;
}


.home-blog-card__image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 400ms ease;
}


.home-blog-card:hover .home-blog-card__image img {
    transform: scale(1.05);
}


/* Content */

.home-blog-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px;
}


.home-blog-card__meta {
    margin-bottom: 10px;
    font-size: 12px;
    color: #999;
}


.home-blog-card__meta i {
    margin-left: 5px;
}


.home-blog-card__title {
    margin: 0 0 12px;

    font-size: 16px;
    font-weight: 700;

    line-height: 1.9;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;
}


.home-blog-card__title a {
    color: #333;
}


.home-blog-card__title a:hover {
    color: var(--color-amethystine);
}


.home-blog-card__excerpt {
    margin: 0 0 15px;

    color: #777;

    font-size: 13px;

    line-height: 2;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;

    overflow: hidden;
}


.home-blog-card__readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-top: auto;
    color: var(--color-amethystine);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.8;
}


.home-blog-card__readmore:hover {
    color: #333;
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 991px) {

    .home-blog-latest__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 20px;
    }

}


@media (max-width: 576px) {

    .home-blog-latest {
        margin-top: 50px;
        margin-bottom: 50px;
    }


    .home-blog-latest__header {
        align-items: flex-start;

        gap: 15px;
    }


    .home-blog-latest__header h2 {
        font-size: 17px;
    }


    .home-blog-latest__more {
        font-size: 12px;
    }


    .home-blog-latest__grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    .home-blog-card__content {
        padding: 15px;
    }

}