﻿/* ===== Variables & base ===== */
:root {
    --emerald-1: #0b7f5a;
    --emerald-2: #0ea27a;
    --offcanvas-bg: #0f2f2a;
    --submenu-bg: #000;
    --submenu-hover: #333;
}

html, body {
    height: 100%;
    background: #fff;
    font-family: 'VHelvetica', Roboto, Tahoma, Arial, sans-serif;
}

.site-body {
    margin: 0;
    background: #fff;
}

.site-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* main tự giãn, không tạo khoảng trắng "lạ" */
.site-main {
    flex: 1 0 auto;
    padding-bottom: 1.5rem; /* anh thích thì chỉnh */
}

/* ===== Sticky menu ===== */
.main-menu {
    position: sticky;
    top: 0;
    z-index: 1050; /* cao hơn banner */
}

/* Khi scroll xuống thì "dính" rõ hơn (shadow nhẹ) */
.main-menu.is-sticky {
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

.back-to-top {
    position: fixed;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 99999;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

/* Khi hiện */
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
/* ===== Container & Grid layout ===== */
.csx-container {
    max-width: 96vw;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== HEADER BASE ===== */
.site-header {
    background: linear-gradient(90deg, #005f40, #00754a);
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== LOGO ===== */
.brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: opacity .3s;
}

.brand-logo {
    height: 42px;
    width: auto;
    border-radius: 6px;
}

.brand:hover {
    opacity: .85;
}

/**********************HOME PAGE*************************/
/* Tăng độ bo góc */
.rounded-4 {
    border-radius: 1rem !important;
}

.rounded-top-4 {
    border-radius: 1rem 1rem 0 0 !important;
}

.rounded-start-4 {
    border-radius: 1rem 0 0 1rem !important;
}

/* Bóng nhẹ cho card */
.shadow-sm {
    box-shadow: 0 2px 10px rgba(0,0,0,0.06) !important;
}

/* Tắt underline 100% */
a {
    text-decoration: none;
}

/* Hover nhẹ */
a:hover {
    opacity: .85;
}

/* ===========================
   SECTION: ABOUT / STATS
   =========================== */

.stats-box {
    background: #f8f9fa;
    border-radius: 1rem;
    padding: 24px;
    text-align: center;
}

.stats-box .value {
    font-size: 32px;
    font-weight: 700;
    color: #1c8c48;
}

.stats-box .label {
    font-size: 14px;
    color: #6c757d;
}

/* About section image */
.about-image img {
    border-radius: 1.25rem;
}

/* About list check ✔ */
.about-list li {
    display: flex;
    gap: 8px;
    font-size: 15px;
    color: #555;
}

.about-list li span {
    color: #1c8c48;
    font-weight: 700;
}

/* ===========================
   SPOTLIGHT (Tiêu điểm) — báo chí, cân bố cục + ratio 16:9
   =========================== */
.spotlight {
    background-color: #d8ccc4;
    border-radius: 10px;
    margin-top: 10px;
    /*text-shadow: 0 10px 18px rgba(0,0,0,.35);*/
}

/* ===========================
   SPOTLIGHT HEADING — Newspaper Ornament
   =========================== */
.spotlight__heading {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: .65rem;
    margin: 0;
    padding-bottom: .35rem;
}

/* badge nhỏ */
.spotlight__heading-kicker {
    display: inline-flex;
    align-items: center;
    padding: .28rem .6rem;
    border-radius: 999px;
    font-weight: 900;
    font-size: .78rem;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: #0b7f5a;
    background: rgba(14,162,122,.14);
    border: 1px solid rgba(14,162,122,.22);
    transform: translateY(-2px);
}

/* title chính */
.spotlight__heading-title {
    font-weight: 950;
    font-size: clamp(2rem, 1.35vw + 1.05rem, 3rem);
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: #074e11;
    position: relative;
    padding-right: 1rem;
}

    /* nhấn chữ xanh kiểu “bút highlight” */
    .spotlight__heading-title::before {
        content: "";
        position: absolute;
        left: -.12rem;
        bottom: .08rem;
        width: 58%;
        height: .55em;
        background: rgba(14,162,122,.18);
        border-radius: 15px;
        z-index: -1;
        transform: skewX(-10deg);
    }

/* đường kẻ kéo dài sang phải */
.spotlight__heading::after {
    content: "";
    flex: 1 1 auto;
    height: 2px;
    transform: translateY(-2px);
    background: linear-gradient(90deg, rgba(11,127,90,.55) 0%, rgba(14,162,122,.35) 40%, rgba(0,0,0,0) 100%);
    border-radius: 999px;
}

/* Mobile: không kéo line quá dài */
@media (max-width: 576px) {
    .spotlight__heading {
        flex-wrap: wrap;
        gap: .5rem;
    }

        .spotlight__heading::after {
            width: 100%;
            flex: 0 0 100%;
            margin-top: .35rem;
        }

    .spotlight__heading-title::before {
        width: 72%;
    }
}


.spotlight__title {
    font-weight: 800;
    font-size: clamp(1.8rem, 1.2vw + 1rem, 2.4rem);
    letter-spacing: -0.02em;
    color: #111;
}

/* Meta / pills */
.spotlight__cat a{
    display: inline-flex;
    padding: .35rem .6rem;
    border-radius: 5px;
    background: rgba(25,135,84,.12);
    color: #198754;
    font-weight: 700;
    font-size: .80rem;
    letter-spacing: .02em;
    white-space: nowrap;
}

hr.border {
    border-top: 1px dotted #c0c0c0;
    margin: 5px 5px 5px 0;
}

.spotlight__dot {
    opacity: .6;
}

.spotlight__date {
    font-size: .9rem;
    opacity: .9;
}
.spotlight__views,
.spotlight__author {
    font-size: .92rem;
    opacity: .95;
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

/* Featured (left) — khóa 16:9 + vừa phải trên FHD */
.spotlight__featured {
    position: relative;
    display: block;
    width: 100%;
    padding: 10px 10px 10px 5px;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    background: var(--bg) center/cover no-repeat;
    box-shadow: 0 10px 28px rgba(0,0,0,.10);
}

/* lớp tối cho chữ nổi */
.spotlight__featured::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( 90deg, rgba(0,0,0,.68) 0%, rgba(0,0,0,.35) 50%, rgba(0,0,0,.10) 100% );
    z-index: 0;
}

/* glass đen mờ */
.spotlight__featured-glass {
    position: absolute;
    left: 18px;
    bottom: 5px;
    max-width:98%;
    padding: 10px 5px 10px 5px;
    -webkit-backdrop-filter: blur(10px);
    z-index: 1;
    color: #fff;
}

.spotlight__featured-title {
    margin: 0 0 10px 0;
    font-weight: 700;
    line-height: 1.08;
    font-size: clamp(1.2rem, 1.3vw + 1rem, 2.0rem);
    text-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.spotlight__meta-bottom {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    opacity: .90;
}

.spotlight__featured-desc {
    margin: 0;
    color: rgba(255,255,255,.92);
    font-size: .98rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Right box */
.spotlight__side {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 2px 10px 28px rgba(0,0,0,.09);
    display: flex;
    flex-direction: column;
}

.spotlight__side-body {
    padding: 14px 16px 12px 16px;
}

.spotlight__side-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    margin-bottom: 3px;
    font-size: .9rem;
}

.spotlight-side-title {
    display: block;
    color: #6c757d;
    text-decoration: none;
    margin-bottom: 1.0em;
    padding: 4px 10px 5px 5px;
    font-weight: 600;
    text-align: justify;
    font-size: 1.4em;   
}

.spotlight-side-title:hover {
    color: #198754;
}

.spotlight__side-sub {
    color: #6c757d;
    font-size: .9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* list title */
.spotlight__side-listwrap {
    padding: 15px 10px 14px 10px;
}

.spotlight__side-pill,
.spotlight__side-pill a,
.spotlight__side-pill span,
.spotlight__pill-sm,
.spotlight__pill-sm a,
.spotlight__pill-sm span,
.mv-pill,
.mv-pill a,
.mv-pill span {
    display: inline-flex;
    align-items: center;
    padding: .30rem .60rem;
    border-radius: 6px;
    background: rgba(25,135,84,.12);
    color: #198754;
    font-weight: 700;
    font-size: .80rem;
    letter-spacing: .02em;
    white-space: nowrap;
    text-decoration: none;
}

    .spotlight__side-pill a:hover,
    .spotlight__pill-sm a:hover,
    .mv-pill a:hover {
        color: #146c43;
        opacity: 1;
    }

/* Responsive */
@media (max-width: 991.98px) {
    .spotlight__featured-glass {
        left: 14px;
        right: 14px;
        width: auto;
        bottom: 14px;
    }

    .spotlight__featured::before {
        background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.72) 100%);
    }
}

@media (max-width: 575.98px) {
    .spotlight__featured {
        border-radius: 18px;
    }

    .spotlight__side {
        border-radius: 18px;
    }
}

/* ===========================
   SPOTLIGHT – BOTTOM 3 CARDS
   =========================== */

.spotlight__card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    /*border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 4px 14px rgba(0,0,0,.06);
    transition: transform .25s ease, box-shadow .25s ease;*/
}

.spotlight__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,0,0,.10);
}

/* Ảnh 16:9 */
.spotlight__thumb img {
    transition: transform .35s ease;
}

.spotlight__card:hover .spotlight__thumb img {
    transform: scale(1.04);
}

/* Body */
.spotlight__card-body {
    padding: 16px 5px 18px 10px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Meta row (category | date | views) */
.spotlight__meta2 {
    display: flex;
    gap: 10px;
    font-size: .85rem;
    margin-bottom: 6px;
    color: #6c757d;
}

/* Category pill */
.spotlight__pill-sm {
    background: rgba(25,135,84,.1);
    color: #198754;
    font-weight: 600;
    font-size: .80rem;
    padding: 4px 10px;
    border-radius: 10px;
    white-space: nowrap;
    
}

.spotlight-bottom-title {
    display: block;
    color: #042805;
    text-decoration: none;
    padding: 0px 10px 5px 5px;
    font-weight: 600;
    text-align: justify;
    font-size:1.5rem
}

.spotlight-bottom-title:hover {
    color: #198754;
}

.spotlight-bottom-meta {
    display: block;
    color: #111;
    text-decoration: none;
    padding: 10px 10px 10px 5px;
    font-weight: 500;
    text-align: justify;
}

/* Author line */
.spotlight__byline {
    font-size: .85rem;
    margin-bottom: 6px;
    color: #6c757d;
}

/* Summary */
.spotlight__summary {
    font-size: 0.95rem;
    line-height: 1.45;
    margin-top: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align:justify;
}

/* Responsive tweak */
@media (max-width: 767.98px) {
    .spotlight__card-body {
        padding: 14px 16px;
    }

    .spotlight__summary {
        -webkit-line-clamp: 2;
    }
}

.card-body:hover img {
    transform: scale(1.04);
}

/* ===========================
   CARD ARTICLE COMMON
   =========================== */
.card-article img {
    transition: transform .25s ease;
}

.card-article:hover img {
    transform: scale(1.04);
}

.card-article .card-body {
    padding: 16px 20px;
}

.card-article .summary {
    color: #6c757d;
    font-size: 14px;
    margin-top: 4px;
}

/* Date text */
.text-date {
    font-size: 13px;
    color: #8a8a8a;
}

/* Title */
.article-title {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
    color: #212529;
}

.article-title:hover {
    color: #1c8c48 !important;
}

/* ===========================
   MOST VIEWED (9 bài)
   =========================== */

.most-viewed .card {
    border-radius: 1rem;
}

.most-viewed img {
    object-fit: cover;
}

/* ===========================
   FEATURED (4 bài)
   =========================== */

.featured-item {
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    display: flex;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

    .featured-item:hover img {
        transform: scale(1.05);
    }

    .featured-item img {
        transition: .25s ease;
        object-fit: cover;
    }

    .featured-item .content {
        padding: 22px;
    }

        .featured-item .content h3 {
            font-size: 20px;
            font-weight: 700;
        }

        .featured-item .content p {
            font-size: 15px;
            color: #6c757d;
        }

/* ===========================
   LATEST ARTICLES (9 bài)
   =========================== */

.latest .card {
    border-radius: 1rem;
}

.latest img {
    object-fit: cover;
}

/* Small category label */
.category-label {
    font-size: 14px;
    font-weight: 500;
    color: #0d6efd;
    margin-bottom: 6px;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {
    .featured-item {
        flex-direction: column;
    }
}

.article-content p {
    margin-bottom: 1.25rem;
}

.article-content img {
    max-width: 100%;
    border-radius: 1rem;
    margin: 1.5rem 0;
}

.article-content h2,
.article-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.article-content blockquote {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-left: 4px solid #059669;
    margin: 1.5rem 0;
    font-style: italic;
}

/* ===========================
   MOST VIEWED
   =========================== */

.mostview {
    background: #f3faf2;
}

/* ===== HERO #1 (Left) ===== */
.mv-hero {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0,0,0,.10);
    height: 100%;
}

.mv-hero__media {
    position: relative;
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.mv-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform .35s ease;
}

.mv-hero__media:hover img {
    transform: scale(1.06);
}

/* overlay đen mờ để chữ trắng nổi */
.mv-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.55) 62%, rgba(0,0,0,.82) 100%);
}

.mv-hero__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 18px 18px 16px 18px;
    color: #fff;
}

.mv-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
    color: rgba(255,255,255,.9);
}

.mv-date {
    white-space: nowrap;
    opacity: .9;
}

.mv-views {
    white-space: nowrap;
    font-weight: 700;
}

.mv-hero__title {
    margin: 10px 0 8px 0;
    font-weight: 700;
    line-height: 1.08;
    font-size: clamp(1.2rem, 1.3vw + 1rem, 2.0rem);
    text-shadow: 0 10px 18px rgba(0,0,0,.35);
}

.mv-hero__title a {
    color: #fff;
    text-decoration: none;
}

.mv-hero__title a:hover {
    opacity: .9;
}

.mv-byline {
    font-size: .9rem;
    color: rgba(255,255,255,.88);
}

.mv-hero__summary {
    margin: 10px 0 0 0;
    color: rgba(255,255,255,.88);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== RIGHT: 2 cards kiểu "Bài mới" ===== */
.mv-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

/* mỗi item là 1 card trắng (giống Bài mới) */
.mv-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

.mv-card__inner {
    display: flex;
    gap: 0;
}

/* Ảnh nằm trong block riêng (nền trắng 1) */
.mv-card__media {
    flex: 0 0 44%;
    padding: 12px;
    background: #fff;
}

.mv-card__thumb {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #f1f3f5;
}

.mv-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.mv-card__thumb:hover img {
    transform: scale(1.06);
}

/* Body nằm trong block riêng (nền trắng 2) */
.mv-card__body {
    flex: 1;
    padding: 14px 16px 14px 0;
    min-width: 0;
    background: #fff;
}

.mv-pill {
    display: inline-flex;
    padding: .33rem .6rem;
    border-radius: 6px;
    background: rgba(25,135,84,.12);
    color: #198754;
    font-weight: 700;
    font-size: .80rem;
    letter-spacing: .02em;
    white-space: nowrap;
}

.mv-card__top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.mv-card__title {   
    color: #111;
    font-weight: 600;
    line-height: 1.3;
    font-size: 1.2em;
    display: -webkit-box;
    text-align: justify;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .mv-card__title a {
        color: #111;
        text-decoration: none;
    }

        .mv-card__title a:hover {
            color: #198754;
        }

.mv-card__foot {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    color: #6c757d;
    font-size: .86rem;
}

.mv-author {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .mv-card__media {
        flex-basis: 46%;
    }

    .mv-card__body {
        padding-right: 14px;
    }
}

@media (max-width: 575.98px) {
    .mv-card__inner {
        flex-direction: column;
    }

    .mv-card__media {
        padding: 12px 12px 0 12px;
    }

    .mv-card__body {
        padding: 12px 14px 14px 14px;
    }

    .mv-author {
        max-width: 100%;
    }
}

.footer-pro {
    margin-top: 3rem;
    background: linear-gradient(135deg, #062f14 0%, #0b5d2a 55%, #11733a 100%);
    color: #e9fff4;
}

.footer-pro__brand {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.footer-pro__logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 14px;
    background: rgba(255,255,255,.08);
    padding: .35rem;
}

.footer-pro__name {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: .5rem;
}

.footer-pro__desc,
.footer-pro__note {
    color: rgba(233,255,244,.82);
    line-height: 1.7;
}

.footer-pro__title {
    font-weight: 800;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-pro__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .7rem;
}

    .footer-pro__links a {
        color: rgba(233,255,244,.9);
        text-decoration: none;
    }

        .footer-pro__links a:hover {
            color: #fff;
            text-decoration: underline;
        }

.footer-pro__socials {
    display: flex;
    gap: .8rem;
}

.footer-pro__socials a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #fff;
    text-decoration: none;
    transition: all .25s ease;
}

.footer-pro__socials a:hover {
    background: rgba(255,255,255,.16);
    transform: translateY(-2px);
}

.listing-search-form {
    max-width: 780px;
}

/****Article List******/
.listing-page {
    background: radial-gradient(circle at top left, rgba(18,135,85,.06), transparent 35%), linear-gradient(180deg, #f7fbf8 0%, #ffffff 40%);
}

.listing-shell {
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(15,75,35,.08);
    border-radius: 28px;
    padding: 1.5rem;
    box-shadow: 0 18px 60px rgba(0,0,0,.06);
}

.listing-kicker {
    color: #198754;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .85rem;
    margin-bottom: .5rem;
}

.listing-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    line-height: 1.05;
    color: #063716;
}

.listing-subtitle {
    color: #6c757d;
    font-size: 1.02rem;
}

.listing-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.listing-result-count {
    color: #5f6b76;
}

.listing-sort-tabs {
    display: inline-flex;
    gap: .5rem;
    background: #eef6f0;
    padding: .3rem;
    border-radius: 999px;
}

    .listing-sort-tabs a {
        padding: .45rem .9rem;
        border-radius: 999px;
        font-weight: 700;
        color: #4d5b52;
        text-decoration: none;
    }

        .listing-sort-tabs a.active {
            background: #198754;
            color: #fff;
        }

.listing-search-form {
    max-width: 880px;
}

.listing-hero-card,
.listing-card,
.listing-sidebar {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,.08);
    border: 1px solid rgba(0,0,0,.06);
}

/* ===== Article listing: đồng bộ ảnh 16:9 ===== */
.listing-hero-card__media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

    .listing-hero-card__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.listing-card__thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

    .listing-card__thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.listing-hero-card__body,
.listing-card__body {
    padding: 1.25rem 1.25rem 1.4rem;
}

.listing-meta {
    display: flex;
    gap: .6rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: .7rem;
}

.listing-chip {
    display: inline-flex;
    align-items: center;
    padding: .35rem .75rem;
    border-radius: 999px;
    background: rgba(25,135,84,.12);
    color: #198754;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
}

.listing-chip--soft {
    background: rgba(15,91,150,.08);
    color: #1363a5;
}

.listing-date {
    color: #6c757d;
    font-size: .9rem;
}

.listing-hero-card__title,
.listing-card__title {
    line-height: 1.25;
    margin-bottom: .7rem;
}

    .listing-hero-card__title a,
    .listing-card__title a {
        color: #111;
        text-decoration: none;
    }

        .listing-hero-card__title a:hover,
        .listing-card__title a:hover {
            color: #198754;
        }

.listing-hero-card__summary,
.listing-card__summary {
    color: #5b636a;
    line-height: 1.65;
    margin: 0;
    text-align: justify;
}

.listing-sidebar {
    padding: 1.2rem;
    position: sticky;
    top: 100px;
}

.listing-sidebar__title {
    font-weight: 800;
    color: #063716;
    margin-bottom: 1rem;
}

.listing-sidebar__item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: .9rem;
    align-items: center;
    color: #111;
    text-decoration: none;
}

    .listing-sidebar__item img {
        width: 110px;
        aspect-ratio: 16/9;
        object-fit: cover;
        border-radius: 14px;
    }

    .listing-sidebar__item:hover span {
        color: #198754;
    }

@media (max-width: 991.98px) {
    .listing-shell {
        padding: 1rem;
    }

    .listing-sidebar {
        position: static;
    }
}

/* =========================================================
   VIDEO PUBLIC
   ========================================================= */

/* Bộ lọc loại video ở trang danh sách */
.video-filter-row {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.video-filter-chip {
    display: inline-flex;
    align-items: center;
    padding: .48rem .9rem;
    border-radius: 999px;
    background: #eef6f0;
    color: #29533c;
    text-decoration: none;
    font-weight: 700;
    transition: all .2s ease;
}

    .video-filter-chip:hover,
    .video-filter-chip.active {
        background: #198754;
        color: #fff;
    }

/* Khối player detail video */
.video-detail-player {
    max-width: 100%;
}

.video-detail-page iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

/* Khối video ở trang chủ */
.home-videos {
    background: linear-gradient(180deg, #f7fbf8 0%, #ffffff 100%);
}

.home-videos .listing-card__thumb {
    aspect-ratio: 16 / 9;
}

/* Tránh title video quá dài làm vỡ layout */
.video-page .listing-card__title,
.video-page .listing-hero-card__title,
.home-videos .listing-card__title,
.home-videos .listing-hero-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Description video gọn, không chiếm quá nhiều chiều cao */
.video-page .listing-hero-card__summary,
.home-videos .listing-hero-card__summary {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mobile tối ưu spacing */
@media (max-width: 991.98px) {
    .home-videos .listing-card .row {
        --bs-gutter-x: 0;
    }
}

/* =========================================================
   HOME VIDEOS SECTION
   ========================================================= */

.home-videos--soft {
    background: linear-gradient(180deg, #dff3e6 0%, #eef8f1 45%, #f8fcf9 100%);
    border-top: 1px solid rgba(25,135,84,.12);
    border-bottom: 1px solid rgba(25,135,84,.12);
}

/* Làm card trong vùng video nổi rõ hơn một chút trên nền xanh rất nhạt */
.home-videos--soft .card {
    background: #fff;
}

.home-video-list-right {
    display: grid;
    gap: 1rem;
}

.home-video-list-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.home-video-list-card__thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

    .home-video-list-card__thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.home-video-list-card__body {
    padding: 0.85rem 1rem 0.95rem;
}

.home-video-list-card__title {
    margin: 0.3rem 0 0.45rem;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .home-video-list-card__title a {
        color: #111;
        text-decoration: none;
    }

        .home-video-list-card__title a:hover {
            color: #198754;
        }

.home-video-list-card .listing-meta {
    gap: 0.45rem;
    margin-bottom: 0.25rem;
}

.home-video-list-card .listing-chip {
    padding: 2px 8px;
    font-size: 0.72rem;
}

.home-video-list-card .listing-date,
.home-video-list-card .listing-views {
    font-size: 0.82rem;
}

/* Mobile */
@media (max-width: 991.98px) {
    .home-video-list-right {
        grid-template-columns: 1fr;
    }
}

/* ===== Video page ===== */

.video-detail-page iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

.video-page .listing-chip {
    background: rgba(25,135,84,.12);
    color: #198754;
}

.video-page .listing-hero-card__summary {
    color: #5b636a;
    line-height: 1.65;
    margin-top: .75rem;
    text-align: justify;
}

/* =========================================================
   VIDEO DETAIL SIDEBAR
   ========================================================= */

.sidebar-title--inline {
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 800;
    color: #222;
}

.video-detail-player {
    max-width: 100%;
}

.video-detail-page iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

/* Card đầu tiên có ảnh */
.video-sidebar-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.video-sidebar-card__thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

    .video-sidebar-card__thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.video-sidebar-card__body {
    padding: .85rem .95rem 1rem;
}

.video-sidebar-card__title {
    color: #111;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.35;
    display: block;
    margin-bottom: .45rem;
}

    .video-sidebar-card__title:hover {
        color: #198754;
    }

.video-sidebar-card__title--full {
    display: block;
}

.video-sidebar-card__meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .84rem;
    color: #6c757d;
    margin-top: .25rem;
    gap: .75rem;
}

.video-sidebar-card__type {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    color: #198754;
}

/* Các item text bên dưới không có ảnh */
.video-sidebar-text-list {
    display: grid;
    gap: .95rem;
}

.video-sidebar-text-item {
    padding-bottom: .9rem;
    border-bottom: 1px dashed rgba(0,0,0,.12);
}

    .video-sidebar-text-item:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

.video-sidebar-text-item__title {
    display: block;
    color: #111;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: .4rem;
}

.video-sidebar-text-item__title:hover {
    color: #198754;
}

.detail-sidebar-panel {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 22px;
    padding: 1rem;
    box-shadow: 0 10px 24px rgba(0,0,0,.05);
}

.video-sidebar-text-list {
    display: grid;
    gap: 0;
}

.video-sidebar-text-item {
    padding: .9rem 0;
    border-top: 1px solid rgba(0,0,0,.08);
}

    .video-sidebar-text-item:first-child {
        border-top: 1px solid rgba(0,0,0,.08);
    }

.video-sidebar-text-item__title {
    display: block;
    color: #111;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: .35rem;
}

    .video-sidebar-text-item__title:hover {
        color: #198754;
    }

/* =========================================================
   DETAIL SHARE BUTTONS
   ========================================================= */

.detail-share-row {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.detail-share-btn {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    transition: transform .18s ease, opacity .18s ease;
}

    .detail-share-btn:hover {
        transform: translateY(-1px);
        opacity: .92;
        color: #fff;
    }

.detail-share-btn--fb {
    background: #1877f2;
}

.detail-share-btn--x {
    background: #111;
}

.detail-share-btn--linkedin {
    background: #0a66c2;
}

.detail-main-row {
    --bs-gutter-x: 2rem;
}

@media (max-width: 991.98px) {
    .detail-main-row {
        --bs-gutter-x: 1.25rem;
    }
}

/* =========================================================
   ALBUM PUBLIC
   ========================================================= */

.album-figure {
    margin: 0;
}

.album-caption {
    font-size: .9rem;
    color: #666;
    margin-top: .5rem;
    text-align: center;
}