/* =========================================================
   RELATED NEWS WIDGET
   ========================================================= */
.related-news-block {
    margin-top: 22px;
    margin-bottom: 22px;
}

.related-news-inner {
    padding: 16px 0 0 0;
}

.related-news-feature {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
}

.related-news-feature__img {
    width: 180px;
    height: 130px;
    border-radius: var(--radius);
    flex: 0 0 auto;
    background-size: cover;
    background-position: center;
}

.related-news-feature__title {
    font-size: .98rem;
    font-weight: 800;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
    line-height: 1.4;
}

.related-news-feature__title:hover {
    color: var(--navy);
}

.related-news-feature__excerpt {
    font-size: .8rem;
    color: var(--ink-soft);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-news-feature__meta {
    font-size: .72rem;
    color: var(--ink-soft);
    border-top: 1px dashed var(--line);
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.related-news-mini {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    align-items: center;
}

.related-news-mini__img {
    width: 64px;
    height: 48px;
    border-radius: 8px;
    flex: 0 0 auto;
    background-size: cover;
    background-position: center;
}

.related-news-mini__title {
    font-size: .82rem;
    font-weight: 700;
    color: var(--ink);
    display: block;
    line-height: 1.35;
}

.related-news-mini__title:hover {
    color: var(--navy);
}

.related-news-mini__meta {
    font-size: .7rem;
    color: var(--ink-soft);
    margin-top: 2px;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .related-news-feature {
        flex-direction: row;
        gap: 12px;
    }
    .related-news-feature__img {
        width: 100px;
        height: 75px;
    }
    .related-news-feature__title {
        font-size: .85rem;
        -webkit-line-clamp: 3;
    }
    .related-news-feature__excerpt {
        display: none; /* Ẩn tóm tắt trên mobile cho gọn */
    }
}

/* Tự động biến cột chứa widget thành sticky (chạy theo khi kéo) chỉ trên desktop */
@media (min-width: 992px) {
    div[class*="col-"]:has(.related-news-block) {
        position: sticky;
        top: 90px;
        z-index: 10;
        align-self: flex-start;
    }
}
