/* ==========================================================
   HV Blog Section – Elementor widget
   ========================================================== */
.hv-blog {
    --hv-cols: 4;
    --hv-gap: 30px;
}

/* Header: dùng chung .hv-sheading (hv-section-heading.css) */
.hv-blog .hv-sheading {
    margin-bottom: 28px;
}

/* Grid */
.hv-blog__grid {
    display: grid;
    grid-template-columns: repeat(var(--hv-cols), minmax(0, 1fr));
    column-gap: var(--hv-gap);
    row-gap: 40px;
}

.hv-blog__item {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Thumbnail */
.hv-blog__thumb {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    margin-bottom: 18px;
    border-radius: 8px;
    background: #f1f1f1;
}

.hv-blog__thumb img,
.hv-blog__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.hv-blog--zoom-yes .hv-blog__item:hover .hv-blog__thumb img {
    transform: scale(1.05);
}

/* Title */
.hv-blog__title {
    --hv-title-lines: 2;
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
}

.hv-blog__title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--hv-title-lines);
    overflow: hidden;
    color: #555;
    text-decoration: none;
    transition: color .2s;
}

.hv-blog__title a:hover {
    color: #3a9a9c;
}

/* Meta */
.hv-blog__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 18px;
    margin-bottom: 18px;
    color: #555;
    font-size: 14px;
}

.hv-blog__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hv-blog__meta svg {
    flex-shrink: 0;
    color: #555;
}

/* Excerpt */
.hv-blog__excerpt {
    margin-bottom: 12px;
    color: #444;
    font-size: 14px;
    line-height: 1.6;
}

/* Read more */
.hv-blog__more {
    align-self: flex-start;
    margin-top: auto;
    color: #444;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .2s;
}

.hv-blog__more:hover {
    color: #3a9a9c;
}

.hv-blog__empty {
    margin: 0;
}

/* Responsive */
@media (max-width: 767px) {
    /* 2 cột trên mobile: thu gọn chữ */
    .hv-blog__grid {
        --hv-cols: 2;
        --hv-gap: 12px;
        row-gap: 24px;
    }

    .hv-blog__thumb {
        margin-bottom: 10px;
    }

    .hv-blog__title {
        margin-bottom: 6px;
        font-size: 14.5px;
        line-height: 1.4;
    }

    .hv-blog__meta {
        gap: 4px 10px;
        margin-bottom: 0;
        font-size: 12px;
    }

    .hv-blog__meta-item {
        gap: 4px;
    }

    .hv-blog__meta svg {
        width: 13px;
        height: 13px;
    }

    .hv-blog__excerpt,
    .hv-blog__more {
        display: none;
    }

    /* Vuốt ngang trên mobile */
    .hv-blog--scroll-mobile .hv-blog__grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .hv-blog--scroll-mobile .hv-blog__grid::-webkit-scrollbar {
        display: none;
    }

    .hv-blog--scroll-mobile .hv-blog__item {
        flex: 0 0 80%;
        scroll-snap-align: start;
    }
}
