/* Tin tức — danh sách & chi tiết */
.news-page {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    background: var(--bg);
    --accent: #0284c7;
    --accent-dark: #075985;
    --accent-bg: #f0f9ff;
}

/* Header (desktop) */
.news-page .page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 14px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(26, 35, 64, .05);
}

.news-page .ph-title {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 20px;
    font-weight: 900;
}

.news-page .ph-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.news-page .topbar-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid var(--border2);
    background: var(--surface);
    color: var(--muted);
    transition: all .13s;
    white-space: nowrap;
}

.news-page .topbar-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-bg);
}

.news-page .topbar-btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 3px 10px rgba(2, 132, 199, .28);
}

.news-page .topbar-btn-primary:hover {
    opacity: .92;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.news-page .news-body {
    padding: 20px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Badge thể loại + meta dùng chung */
.news-page .news-cat {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .92);
    color: #0f172a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .03em;
}

.news-page .news-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
}

/* Bài nổi bật */
.news-page .news-featured {
    display: grid;
    grid-template-columns: 380px 1fr;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 10px rgba(26, 35, 64, .06);
    transition: transform .15s, box-shadow .15s;
    margin-bottom: 20px;
}

.news-page .news-featured:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 35, 64, .12);
}

.news-page .nf-cover {
    position: relative;
    min-height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-page .nf-emoji {
    font-size: 64px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .25));
}

.news-page .nf-body {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.news-page .nf-title {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 19px;
    font-weight: 900;
    color: var(--text);
    line-height: 1.4;
}

.news-page .news-featured:hover .nf-title {
    color: var(--accent);
}

.news-page .nf-excerpt {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.65;
}

/* Lưới tin */
.news-page .news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 16px;
}

.news-page .news-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(26, 35, 64, .05);
    transition: transform .15s, box-shadow .15s;
}

.news-page .news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 35, 64, .12);
}

.news-page .nc-cover {
    position: relative;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-page .nc-emoji {
    font-size: 42px;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .25));
}

.news-page .nc-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.news-page .nc-title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.45;
}

.news-page .news-card:hover .nc-title {
    color: var(--accent);
}

.news-page .nc-excerpt {
    font-size: 11.5px;
    color: var(--muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* ── Chi tiết bài viết ── */
.news-page .news-article {
    max-width: 760px;
    margin: 0 auto;
}

.news-page .na-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    margin-bottom: 14px;
}

.news-page .na-back:hover {
    text-decoration: underline;
}

.news-page .na-cover {
    position: relative;
    height: 220px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.news-page .na-emoji {
    font-size: 72px;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .28));
}

.news-page .na-title {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: var(--text);
    line-height: 1.4;
    margin: 0 0 10px;
}

.news-page .na-meta {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.news-page .na-excerpt {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.7;
    background: var(--accent-bg);
    border-left: 3px solid var(--accent);
    border-radius: 0 10px 10px 0;
    padding: 12px 16px;
    margin-bottom: 18px;
}

.news-page .na-content p {
    font-size: 13.5px;
    color: var(--text);
    line-height: 1.85;
    margin: 0 0 14px;
}

/* Tin liên quan */
.news-page .na-related {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.news-page .na-related-title {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 15px;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 12px;
}

.news-page .na-related-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.news-page .na-related-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: border-color .13s, box-shadow .13s;
}

.news-page .na-related-item:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(2, 132, 199, .12);
}

.news-page .nri-thumb {
    width: 48px;
    height: 48px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.news-page .nri-body {
    min-width: 0;
}

.news-page .nri-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 3px;
}

.news-page .na-related-item:hover .nri-title {
    color: var(--accent);
}

/* ── Mobile ── */
.news-page.news-mob {
    padding: 14px 12px 24px;
}

.news-page .news-mob-hd {
    margin-bottom: 12px;
}

.news-page .news-mob-title {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 19px;
    font-weight: 900;
    color: var(--text);
}

.news-page .news-mob-title span {
    color: var(--accent);
}

.news-page .news-mob-sub {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
    margin-top: 2px;
}

@media (max-width: 991px) {
    .news-page .news-featured {
        grid-template-columns: 1fr;
    }

    .news-page .nf-cover {
        min-height: 150px;
    }

    .news-page .nf-body {
        padding: 16px;
    }

    .news-page .nf-title {
        font-size: 16px;
    }

    .news-page .news-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .news-page .na-cover {
        height: 160px;
    }

    .news-page .na-emoji {
        font-size: 54px;
    }

    .news-page .na-title {
        font-size: 19px;
    }

    .news-page .na-related-list {
        grid-template-columns: 1fr;
    }
}
