﻿/* =========================================================================
   PAGE: DANH SÁCH BÀI VIẾT (BLOG ARCHIVE)
   ========================================================================= */

/* --- Hero Section của Blog --- */
.vc-blog-hero {
    position: relative;
    padding: 120px 0 60px 0;
    background-color: #050505;
    overflow: hidden;
}

.vc-blog-hero-bg {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, rgba(211, 47, 47, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.breadcrumb-item, .breadcrumb-item a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

    .breadcrumb-item a:hover {
        color: var(--brand-yellow);
    }

    .breadcrumb-item.active {
        color: var(--brand-red);
    }

    .breadcrumb-item + .breadcrumb-item::before {
        color: #555;
        content: "›";
        font-size: 1.2rem;
        line-height: 1;
    }

.vc-blog-title {
    line-height: 1.1;
    margin: 0;
}

    .vc-blog-title .hollow-text {
        font-size: clamp(2.5rem, 5vw, 4rem);
        font-weight: 900;
        color: transparent;
        -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.2);
        letter-spacing: 5px;
    }

    .vc-blog-title .solid-text {
        font-size: clamp(2.5rem, 5vw, 4rem);
        font-weight: 900;
        color: #fff;
        letter-spacing: -1px;
        text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

.vc-blog-subtitle {
    color: #aaa;
    font-size: 1.1rem;
    max-width: 700px;
    line-height: 1.6;
}

/* --- Toolbar: Lọc & Tìm Kiếm --- */
.vc-blog-toolbar-section {
    background-color: #020202;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: sticky;
    top: 70px;
    z-index: 100; /* Bám dính khi cuộn */
}

.vc-blog-toolbar {
    padding: 15px 0;
}

.vc-filter-pills {
    display: flex;
    gap: 10px;
}

.scroll-x {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
    scrollbar-width: none; /* Ẩn scrollbar Firefox */
}

    .scroll-x::-webkit-scrollbar {
        display: none; /* Ẩn scrollbar Chrome/Safari */
    }

.filter-pill {
    padding: 8px 20px;
    background: rgba(255,255,255,0.05);
    color: #ccc;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
    border: 1px solid transparent;
}

    .filter-pill:hover {
        background: rgba(255,255,255,0.1);
        color: #fff;
    }

    .filter-pill.active {
        background: rgba(211, 47, 47, 0.15);
        color: var(--brand-yellow);
        border-color: rgba(211, 47, 47, 0.5);
    }

.glass-input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50px 0 0 50px !important;
    padding-left: 20px;
}

    .glass-input:focus {
        background: rgba(255,255,255,0.1);
        color: #fff;
        border-color: var(--brand-yellow);
        box-shadow: none;
    }

    .glass-input::placeholder {
        color: #666;
    }

.btn-search {
    background: var(--brand-red);
    color: #fff;
    border: none;
    border-radius: 0 50px 50px 0 !important;
    padding: 0 20px;
    transition: 0.3s;
}

    .btn-search:hover {
        background: var(--brand-yellow);
        color: #000;
    }

/* --- Nội Dung Blog Chung --- */
.vc-blog-content {
    background-color: #050505;
}

.news-meta {
    font-size: 0.85rem;
    color: #777;
    font-weight: 600;
}

    .news-meta i {
        color: var(--brand-yellow);
    }

/* --- Bài Viết Nổi Bật (Featured) --- */
.vc-archive-featured {
    background: #0a0a0a;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.featured-img-wrapper {
    position: relative;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
}

    .featured-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
        filter: brightness(0.85);
        transition: 0.6s;
    }

.vc-archive-featured:hover .featured-img-wrapper img {
    transform: scale(1.05);
    filter: brightness(1);
}

.badge-hot-absolute {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--brand-red);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 15px;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(211,47,47,0.4);
}

.featured-content {
    padding: 40px;
}

.featured-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
}

    .featured-title a {
        color: #fff;
        text-decoration: none;
        transition: 0.3s;
    }

        .featured-title a:hover {
            color: var(--brand-yellow);
        }

.featured-excerpt {
    color: #aaa;
    font-size: 1.1rem;
    line-height: 1.7;
}

.btn-read-gold {
    display: inline-flex;
    align-items: center;
    color: #000;
    background: linear-gradient(135deg, var(--brand-yellow) 0%, #FFA000 100%);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

    .btn-read-gold:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(255,193,7,0.3);
        color: #000;
    }

/* --- Thẻ Lưới Bài Viết (Grid Cards) --- */
.vc-archive-card {
    background: transparent;
    display: flex;
    flex-direction: column;
}

.card-img-link {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    display: block;
    aspect-ratio: 16/10;
}

    .card-img-link img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: brightness(0.8);
        transition: 0.5s;
    }

    .card-img-link:hover img {
        transform: scale(1.05);
        filter: brightness(1);
    }

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}

.card-body-glass {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 16px;
    padding: 25px;
    margin-top: -30px; /* Đẩy nội dung đè lên ảnh */
    position: relative;
    z-index: 3;
    backdrop-filter: blur(10px);
    flex-grow: 1;
    transition: 0.3s;
}

.vc-archive-card:hover .card-body-glass {
    border-color: rgba(255,193,7,0.2);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 15px;
}

    .card-title a {
        color: #fff;
        text-decoration: none;
        transition: 0.3s;
    }

        .card-title a:hover {
            color: var(--brand-yellow);
        }

.card-text {
    color: #888;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}


/* --- Responsive --- */
@media (max-width: 991.98px) {
    .featured-img-wrapper {
        min-height: 300px;
    }

    .featured-content {
        padding: 30px 20px;
    }

    .featured-title {
        font-size: 1.6rem;
    }

    .vc-blog-toolbar-section {
        position: relative;
        top: 0;
    }
}