/* ==========================================================================
   Home page: blog section
   Heading row (title + desktop "visit blog" link) above a grid of recent
   posts (date + title, divider below). Mobile: single column, the link
   becomes a full-width bordered button below the list.
   ========================================================================== */

.home-blog {
    padding: 0 0 80px;
}

.home-blog__heading {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-blog__title {
    color: var(--hpb-color-dark);
}

.home-blog__link--desktop {
    display: none;
    text-decoration: underline;
}

.home-blog__posts {
    display: flex;
    flex-direction: column;
    margin-top: 8px;
}

.home-blog__post {
    border-bottom: 2px solid var(--hpb-color-border-3);
}

.home-blog__post-link {
    display: block;
    padding: 16px 0;
    text-decoration: none;
    transition: all 300ms;
}

.home-blog__post-link:hover .home-blog__post-title {
    color: var(--hpb-color-red);
}

.home-blog__date {
    display: block;
    font-family: var(--hpb-font-family-base);
    font-size: var(--hpb-font-size-10);
    line-height: 15px;
    color: var(--hpb-color-dark-70);
    font-weight: var(--hpb-fw-medium);
}

.home-blog__post-title {
    margin-top: 4px;
    font-family: var(--hpb-font-family-base);
    font-size: var(--hpb-font-size-16);
    font-weight: var(--hpb-fw-bold);
    line-height: 24px;
    color: var(--hpb-color-dark);
}

.home-blog__link--mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 24px;
}

@media (min-width: 750px) {
    .home-blog__posts {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0 32px;
        margin-top: 16px;
    }
}

@media (min-width: 992px) {
    .home-blog {
        padding: 0 0 128px;
    }

    .home-blog__heading {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }

    .home-blog__link--desktop {
        display: inline-flex;
        flex-shrink: 0;
        color: var(--hpb-color-dark-50);
    }

    .home-blog__link--mobile {
        display: none;
    }

    .home-blog__posts {
        grid-template-columns: repeat(3, 1fr);
        gap: 0 64px;
    }
    .home-blog__post-title {
        margin-top: 8px;
    }
}
