/* VinFast-style news archive + single */

.vf-news-wrap {
    --vf-blue: #1464f4;
    --vf-text: #151515;
    --vf-muted: #6b7280;
    --vf-border: #e5e7eb;
    --vf-bg: #fff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--vf-text);
    background: var(--vf-bg);
    padding: 24px 0 64px;
}
.vf-news-wrap *,
.vf-news-wrap *::before,
.vf-news-wrap *::after {
    box-sizing: border-box;
}
.vf-news-container {
    /* Full theo container Bricks (theme style width: 1440), không full viewport */
    width: 100%;
    max-width: var(--width-container, 1440px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.vf-news-breadcrumb {
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--vf-muted);
}
/* Rank Math breadcrumb trong layout tin tức */
.vf-news-wrap .rank-math-breadcrumb {
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--vf-muted);
}
.vf-news-wrap .rank-math-breadcrumb p {
    margin: 0;
}
.vf-news-wrap .rank-math-breadcrumb a {
    color: var(--vf-muted);
    text-decoration: none;
}
.vf-news-wrap .rank-math-breadcrumb a:hover {
    color: var(--vf-blue);
}
.vf-news-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.vf-news-breadcrumb a {
    color: var(--vf-muted);
    text-decoration: none;
}
.vf-news-breadcrumb a:hover {
    color: var(--vf-blue);
}
.vf-news-breadcrumb__sep {
    color: #c4c4c4;
}

/* Archive header */
.vf-news-archive-header {
    margin-bottom: 28px;
}
.vf-news-archive-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.vf-news-archive-desc {
    margin: 10px 0 0;
    color: var(--vf-muted);
    font-size: 15px;
}

/* Layout */
.vf-news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
    align-items: start;
}

/* Filters */
.vf-news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}
.vf-news-filter {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 8px;
    border: 1px solid var(--vf-border);
    background: #fff;
    color: var(--vf-text);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background .2s, border-color .2s, color .2s;
}
.vf-news-filter:hover {
    border-color: var(--vf-blue);
    color: var(--vf-blue);
}
.vf-news-filter.is-active {
    background: var(--vf-blue);
    border-color: var(--vf-blue);
    color: #fff;
}

/* Grid / Masonry cards */
.vf-news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.vf-news-grid--masonry {
    display: block;
    column-count: 2;
    column-gap: 24px;
}
.vf-news-grid--masonry .vf-news-card {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    display: inline-block;
    width: 100%;
    margin: 0 0 24px;
}
.vf-news-card {
    display: flex;
    flex-direction: column;
    margin: 0;
    background: #fff;
    border: 1px solid var(--vf-border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.vf-news-card:hover {
    border-color: #cfd6de;
    box-shadow: 0 6px 20px rgba(21, 21, 21, .06);
}
.vf-news-card__media {
    display: block;
    overflow: hidden;
    border-radius: 0;
    aspect-ratio: auto;
    background: #f3f4f6;
}
.vf-news-card__img {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
    display: block;
    aspect-ratio: 16 / 10;
    transition: transform .35s ease;
}
.vf-news-card:hover .vf-news-card__img {
    transform: scale(1.04);
}
.vf-news-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 180px;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #eef1f4, #e2e6ea);
}
.vf-news-card__body {
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.vf-news-card__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}
.vf-news-card__title a {
    color: inherit;
    text-decoration: none;
}
.vf-news-card__title a:hover {
    color: var(--vf-blue);
}
.vf-news-card__excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--vf-muted);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vf-news-card__date {
    margin-top: auto;
    padding-top: 4px;
    font-size: 13px;
    color: #9ca3af;
}

/* Main panel */
.vf-news-main {
    min-width: 0;
}

/* Pagination */
.vf-news-pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}
.vf-news-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.vf-news-pagination .page-numbers li {
    margin: 0;
}
.vf-news-pagination .page-numbers a,
.vf-news-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--vf-border);
    border-radius: 8px;
    background: #fff;
    color: var(--vf-text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, border-color .2s, color .2s;
}
.vf-news-pagination .page-numbers a:hover {
    border-color: var(--vf-blue);
    color: var(--vf-blue);
}
.vf-news-pagination .page-numbers .current {
    background: var(--vf-blue);
    border-color: var(--vf-blue);
    color: #fff;
}
.vf-news-pagination .page-numbers .dots {
    border: 0;
    background: transparent;
    min-width: 24px;
}

/* Load more (legacy) */
.vf-news-more-wrap {
    margin-top: 36px;
}
.vf-news-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 12px 24px;
    border: 0;
    border-radius: 4px;
    background: var(--vf-blue);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, opacity .2s;
}
.vf-news-more-btn:hover {
    background: #0f54d0;
    color: #fff;
}
.vf-news-more-btn.is-loading {
    opacity: .7;
    pointer-events: none;
}

/* Sidebar */
.vf-news-sidebar {
    position: sticky;
    top: 100px;
}
.vf-news-search {
    position: relative;
    margin-bottom: 28px;
}
.vf-news-search__input {
    width: 100%;
    height: 44px;
    padding: 0 44px 0 14px;
    border: 1px solid var(--vf-border);
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
}
.vf-news-search__input:focus {
    outline: none;
    border-color: var(--vf-blue);
    box-shadow: 0 0 0 3px rgba(20, 100, 244, .12);
}
.vf-news-search__btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
}
.vf-news-sidebar__heading {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
}
.vf-news-featured__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.vf-news-featured__link {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    align-items: start;
}
.vf-news-featured__thumb {
    display: block;
    width: 88px;
    height: 66px;
    overflow: hidden;
    border-radius: 4px;
    background: #f3f4f6;
}
.vf-news-featured__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.vf-news-featured__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vf-news-featured__link:hover .vf-news-featured__title {
    color: var(--vf-blue);
}
.vf-news-promo {
    margin-top: 28px;
}
.vf-news-promo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Single */
.vf-news-single__header {
    margin-bottom: 24px;
}
.vf-news-single__title {
    margin: 0 0 12px;
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}
.vf-news-single__meta {
    margin: 0;
    font-size: 14px;
    font-style: italic;
    color: var(--vf-muted);
}
.vf-news-single__sep {
    margin: 0 6px;
}
.vf-news-single__figure {
    margin: 0 0 28px;
}
.vf-news-single__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}
.vf-news-single__caption {
    margin-top: 10px;
    font-size: 13px;
    font-style: italic;
    color: var(--vf-muted);
}
.vf-news-single__content {
    font-size: 16px;
    line-height: 1.75;
    color: #222;
}
.vf-news-single__content > *:first-child {
    margin-top: 0;
}
.vf-news-single__content p {
    margin: 0 0 1.15em;
}
.vf-news-single__content a {
    color: var(--vf-blue);
}
.vf-news-single__content img {
    max-width: 100%;
    height: auto;
}
.vf-news-single__content h2,
.vf-news-single__content h3 {
    margin: 1.6em 0 .7em;
    font-weight: 700;
    line-height: 1.3;
}
.vf-news-single__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--vf-border);
}
.vf-news-single__footer-date {
    font-size: 14px;
    color: var(--vf-muted);
}
.vf-news-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.vf-news-share__label {
    font-size: 14px;
    font-weight: 600;
}
.vf-news-share__btn {
    font-size: 13px;
    color: var(--vf-blue);
    text-decoration: none;
}
.vf-news-share__btn:hover {
    text-decoration: underline;
}

.vf-news-empty {
    padding: 40px 0;
    color: var(--vf-muted);
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

@media (max-width: 991px) {
    .vf-news-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .vf-news-sidebar {
        position: static;
    }
    .vf-news-grid,
    .vf-news-grid--masonry {
        display: block;
        column-count: 1;
    }
}

@media (max-width: 575px) {
    .vf-news-wrap {
        padding: 16px 0 48px;
    }
    .vf-news-container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .vf-news-filter {
        padding: 7px 14px;
        font-size: 13px;
    }
}
