/* ============================================================
   Recent Posts (blog details sidebar)
   ============================================================ */

.huc-recent-posts__head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.huc-recent-posts__head h4 {
    margin: 0;
    flex-shrink: 0;
    font-size: 1.0625rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #57697a;
}

.huc-recent-posts__line {
    flex: 1 1 auto;
    height: 2px;
    background-color: #7fa8ba;
}

.huc-recent-posts__list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.huc-recent-post {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    text-decoration: none;
}

.huc-recent-post__img-wrap {
    display: block;
    flex: 0 0 78px;
    width: 78px;
    height: 78px;
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--huc-lightGray-clr);
}

.huc-recent-post__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.huc-recent-post:hover .huc-recent-post__img {
    transform: scale(1.08);
}

.huc-recent-post__body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
    padding-top: 0.1rem;
}

.huc-recent-post__title {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.4;
    color: #2d3a4a;
    transition: color var(--transition-base);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.huc-recent-post:hover .huc-recent-post__title {
    color: var(--huc-orange-clr);
}

.huc-recent-post__date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #8a94a6;
    white-space: nowrap;
}

/* ---- Responsive ---- */
@media (max-width: 767.98px) {
    .huc-recent-posts__list {
        gap: 1rem;
    }

    .huc-recent-post__img-wrap {
        flex-basis: 68px;
        width: 68px;
        height: 68px;
    }

    .huc-recent-post__title {
        font-size: 0.9rem;
    }
}

@media (max-width: 420px) {
    .huc-recent-posts__head h4 {
        font-size: 0.9375rem;
    }

    .huc-recent-post__img-wrap {
        flex-basis: 60px;
        width: 60px;
        height: 60px;
    }

    .huc-recent-post__date {
        font-size: 0.75rem;
    }
}
