/* =====================================================
   Vietourist Latest News – style.css
   ===================================================== */

/* ---------- Reset / Base ---------- */
.vln-wrapper *,
.vln-wrapper *::before,
.vln-wrapper *::after {
    box-sizing: border-box;
}

.vln-wrapper {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #222;
    margin: 30px 0;
}
.vln-block-title {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 12px;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}
.vln-inner {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.vln-main {
    flex: 0 0 60%;
    max-width: 60%;
}

.vln-main-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.10);
    transition: box-shadow .2s;
}

.vln-main-link:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
}

.vln-main-thumb {
    width: 100%;
    padding-top: 58%;           /* tỉ lệ 16:9 xấp xỉ */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.vln-main-caption {
    padding: 14px 16px 16px;
    background: #fff;
}

.vln-main-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.4;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vln-main-excerpt {
    font-size: 13.5px;
    color: #555;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== SIDEBAR THUMB ===== */
.vln-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.vln-thumb-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 8px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #eee;
    transition: background .15s;
    border-radius: 4px;
}

.vln-thumb-item:hover,
.vln-thumb-item.vln-thumb-active {
    background: #fdf2f2;
}

.vln-thumb-img {
    flex: 0 0 72px;
    height: 54px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
}

.vln-thumb-meta {
    flex: 1;
    overflow: hidden;
}

.vln-thumb-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vln-thumb-date {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.vln-view-all {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #FF7A00;
    text-decoration: none;
    border: 1px solid #FF7A00;
    padding: 5px 14px;
    border-radius: 20px;
    align-self: flex-start;
    transition: background .2s, color .2s;
}

.vln-view-all:hover {
    background: #c0392b;
    color: #fff;
}

/* ===== LƯỚI PHÍA DƯỚI ===== */
.vln-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.vln-grid-item {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,.08);
    transition: box-shadow .2s, transform .2s;
    background: #fff;
}

.vln-grid-item:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,.15);
    transform: translateY(-2px);
}

.vln-grid-thumb {
    width: 100%;
    padding-top: 60%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.vln-grid-body {
    padding: 10px 12px 12px;
}

.vln-grid-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vln-grid-excerpt {
    font-size: 12.5px;
    color: #666;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vln-grid-date {
    font-size: 11px;
    color: #aaa;
}

/* ---------- Không có bài ---------- */
.vln-no-posts {
    color: #999;
    font-style: italic;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .vln-inner {
        flex-direction: column;
    }
    .vln-main {
        flex: none;
        max-width: 100%;
    }
    .vln-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .vln-grid {
        grid-template-columns: 1fr;
    }
    .vln-main-title {
        font-size: 15px;
    }
}