/* ========================================
   RESET
======================================== */
a, a:visited, a:hover, a:active {
    text-decoration: none !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========================================
   HEADER
======================================== */
.header {
    width: 100%;
    height: 78px;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 220px;
    background: #fff;
    border-bottom: 1px solid #e9e9e9;
}

/* ========================================
   LOGO
======================================== */
.logo {
    position: absolute;
    left: 40px;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    width: 170px;
    object-fit: contain;
    transition: 0.4s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* ========================================
   NAVBAR
======================================== */
.navbar {
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 34px;
    list-style: none;
}

.nav-link {
    position: relative;
    padding: 8px 0;
    color: #222;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.35s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0%;
    height: 3px;
    background: #1993ff;
    border-radius: 10px;
    transition: 0.4s ease;
}

.nav-link:hover {
    color: #1993ff;
    transform: translateY(-2px);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: #1993ff;
    font-weight: 700;
}

.nav-link.active::after {
    width: 100%;
}

/* ========================================
   SEARCH
======================================== */
.search-container {
    position: absolute;
    right: 40px;
    display: flex;
    align-items: center;
}

.search-box {
    position: relative;
    width: 240px;
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.search-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(25, 147, 255, 0.08), transparent);
    transform: translateX(-100%);
    transition: 0.8s;
}

.search-box:hover::before {
    transform: translateX(100%);
}

.search-box:hover {
    transform: translateY(-2px);
    border-color: #1993ff;
    box-shadow: 0 8px 25px rgba(25, 147, 255, 0.18);
}

.search-box:focus-within {
    width: 300px;
    border-color: #1993ff;
    box-shadow: 0 10px 30px rgba(25, 147, 255, 0.22);
}

.search-icon {
    min-width: 22px;
    color: #777;
    transition: 0.3s;
}

.search-box:focus-within .search-icon {
    color: #1993ff;
    transform: scale(1.1);
}

.search-box input {
    width: 100%;
    margin-left: 12px;
    border: none;
    outline: none;
    background: transparent;
    color: #222;
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
}

.search-box input::placeholder {
    color: #999;
    transition: 0.3s;
}

.search-box input:focus::placeholder {
    opacity: 0.5;
}

/* ========================================
   MOBILE MENU OVERLAY
   (dùng class .menu-overlay riêng, không ảnh hưởng header)
======================================== */
.menu-overlay {
    display: none;
}

/* ========================================
   SHOWCASE CONTAINER
   Tất cả section nằm trong đây
======================================== */
.showcase {
    width: 100%;
    max-width: 1400px;
    margin: auto;
    margin-top: 10px;
    padding: 0 16px;
}

/* ========================================
   TOP BANNER
======================================== */
.top-banner {
    position: relative;
    width: 100%;
    height: 145px;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.13);
    margin-bottom: 16px;
}

.top-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(130, 0, 0, 0.7), rgba(255, 0, 0, 0.25), rgba(130, 0, 0, 0.7));
}

/* SHINE */
.shine {
    position: absolute;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.1) 40%, transparent 70%);
    filter: blur(10px);
    animation: float 7s linear infinite;
}

.shine::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px white, 0 0 30px white, 0 0 50px gold;
}

.shine-1 { top: -30px; left: 5%; animation-delay: 0s; }
.shine-2 { top: 20px; left: 45%; animation-delay: 2s; }
.shine-3 { top: -20px; right: 10%; animation-delay: 4s; }

@keyframes float {
    0%   { transform: translateY(0px) scale(1); opacity: 0.7; }
    50%  { transform: translateY(20px) scale(1.1); opacity: 1; }
    100% { transform: translateY(0px) scale(1); opacity: 0.7; }
}

/* BANNER CONTENT */
.banner-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 18px;
    padding-left: 32px;
}

.sale-box {
    position: relative;
    min-width: 140px;
    height: 82px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
    border: 2px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: 0.4s;
}

.sale-box::before {
    content: "";
    position: absolute;
    top: -120%;
    left: -40%;
    width: 80px;
    height: 300%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(25deg);
    animation: glassMove 4s linear infinite;
}

@keyframes glassMove {
    0%   { left: -50%; }
    100% { left: 150%; }
}

.sale-box:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 10px 25px rgba(255, 120, 120, 0.4);
}

.sale-box span { color: white; font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.sale-box h2  { color: white; font-size: 32px; font-weight: 800; line-height: 1; }
.sale-box p   { color: #fff3b0; font-size: 12px; font-weight: 700; margin-top: 3px; }

/* ========================================
   MAGAZINE GRID
======================================== */
.magazine-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.mag-card {
    position: relative;
    width: 100%;
    aspect-ratio: 0.7 / 1;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: white;
    transition: 0.45s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.mag-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.7s;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.1), transparent);
}

.mag-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.22);
}

.mag-card:hover img {
    transform: scale(1.12);
}

.mag-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: 16px;
    transition: 0.4s;
}

.mag-card:hover::before {
    border-color: rgba(255, 255, 255, 0.6);
}

.mag-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 70px;
    height: 100%;
    background: rgba(255, 255, 255, 0.18);
    transform: skewX(-20deg);
    transition: 0.8s;
}

.mag-card:hover::after {
    left: 140%;
}

/* ========================================
   HERO SLIDER
   (nằm trong .showcase, dùng .slide-overlay thay vì .overlay)
======================================== */
.hero-slider {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.13);
    margin-bottom: 20px;
}

.hero-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform .6s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}
.hero-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide img {
    transition: transform 6s ease;
}

.hero-slide.active img {
    transform: scale(1.08);
}

/* Slide overlay — class riêng, KHÔNG dùng .overlay */
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.2));
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 48px;
    transform: translateY(-50%);
    color: white;
    z-index: 5;
    max-width: 440px;
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.hero-content h1 {
    font-size: 30px;
    line-height: 1.18;
    font-weight: 800;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-content p {
    font-size: 15px;
    line-height: 1.6;
    color: #ededed;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-content button {
    border: none;
    outline: none;
    padding: 12px 26px;
    border-radius: 60px;
    background: white;
    color: black;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.4s;
}

.hero-content button:hover {
    transform: translateY(-4px);
    background: #ff3c3c;
    color: white;
}

/* DOTS */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: 0.4s;
}

.dot.active {
    width: 35px;
    border-radius: 20px;
    background: white;
}

/* ========================================
   ADS STRIP
   Chạy từ PHẢI sang TRÁI (translateX âm → dương)
   Cards to hơn
======================================== */
.ads-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 14px;
    background: white;
    padding: 14px 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.ads-track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: scrollAdsRTL 28s linear infinite;
}

.ad-card {
    width: 200px;
    height: 105px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.4s;
}

.ad-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.ad-card:hover {
    transform: translateY(-5px);
}

.ad-card:hover img {
    transform: scale(1.08);
}

/* Chạy từ trái sang phải: bắt đầu -50%, về 0 */
@keyframes scrollAdsRTL {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1400px) {
    .magazine-wrapper { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    .header {
        position: relative;
        height: 72px;
        padding: 0 18px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1200;
    }

    .logo img { width: 135px; }

    .menu-toggle {
        width: 32px;
        height: 24px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
        z-index: 2001;
    }

    .menu-toggle span {
        width: 100%;
        height: 3px;
        background: #222;
        border-radius: 20px;
        transition: 0.4s ease;
    }

    .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translateY(14px); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translateY(-14px); }

    .search-container { margin-left: auto; }

    .search-box {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px;
        padding: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50% !important;
        flex-shrink: 0;
    }

    .search-box input { display: none !important; }
    .search-box:hover,
    .search-box:focus-within { width: 44px !important; }

    .navbar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        height: 100vh;
        display: flex;
        flex-direction: column;
        padding: 100px 30px;
        background: #fff;
        transition: 0.45s ease;
        z-index: 2000;
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.12);
    }

    .navbar.active { left: 0; }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }

    .nav-link { width: fit-content; font-size: 20px; font-weight: 600; }
    .nav-link::after { bottom: -6px; }

    /* Mobile menu overlay */
    .menu-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(3px);
        opacity: 0;
        visibility: hidden;
        transition: 0.4s ease;
        z-index: 1500;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    body.menu-open { overflow: hidden; }

    /* Hero slider mobile */
    .hero-slider { height: 420px; }

    .hero-content { left: 35px; max-width: 90%; }
    .hero-content h1 { font-size: 42px; }
    .hero-content p  { font-size: 15px; }

    .ad-card { width: 200px; height: 110px; }
}

@media (max-width: 768px) {
    .top-banner { height: auto; padding: 20px 0; }

    .banner-content {
        position: relative;
        flex-wrap: wrap;
        justify-content: center;
        padding: 25px;
    }

    .sale-box { min-width: 150px; }
    .magazine-wrapper { grid-template-columns: repeat(2, 1fr); }

    .header { padding: 0 20px; overflow-x: hidden; }
}

@media (max-width: 576px) {
    .hero-slider { height: 350px; border-radius: 20px; }
    .hero-content h1 { font-size: 32px; }
    .hero-content button { padding: 13px 24px; font-size: 13px; }
    .slider-dots { bottom: 20px; }
    .ad-card { width: 170px; height: 95px; }
}

@media (max-width: 500px) {
    .magazine-wrapper { grid-template-columns: 1fr; }
}

/* ========================================
   MOBILE MENU BUTTON — hidden on desktop
======================================== */
.menu-toggle { display: none; }


/* ========================================
   NEWS SECTION
======================================== */

/* ========================================
   NEWS SECTION
   Dùng cùng container như .showcase
   max-width: 1400px, padding: 0 16px
======================================== */

.news-section {
    width: 100%;
    max-width: 1400px;
    margin: 32px auto 0;
    padding: 0 16px 52px;
    box-sizing: border-box;
}

.news-divider {
    grid-column: 1 / 3;
    height: 1px;
    background: #e8e4dc;
    margin: 24px 0;
}

/* ══ GRID 3 CỘT ══
   Dùng fr để tự co giãn theo container
   Cột 1: rộng nhất (danh mục + ảnh lớn)
   Cột 2: vừa (bài viết dọc)
   Cột 3: sidebar cố định 260px
*/
.news-3col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    column-gap: 32px;
    row-gap: 0;
    align-items: stretch;
}

/* Cột nội dung trái (gồm hàng cats/posts + Dịch Vụ bên dưới) */
.news-main-col { min-width: 0; }
.news-top-row {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    column-gap: 32px;
    align-items: stretch;
}

/* ══ CỘT 1 ══ */
.col-cats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cat-block {}

.cat-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 13px;
    padding-bottom: 9px;
    border-bottom: 2px solid #e8e4dc;
}

.cat-title-bar {
    width: 4px;
    height: 20px;
    background: #d0021b;
    border-radius: 3px;
    flex-shrink: 0;
}

.cat-title h2 {
    font-size: 14px;
    font-weight: 800;
    color: #111;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cat-feat-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 10px;
}

.cat-feat-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.cat-feat-thumb:hover img { transform: scale(1.05); }

.cat-feat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.42) 0%, transparent 55%);
    pointer-events: none;
}

.cat-feat-title {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    line-height: 1.45;
    margin-bottom: 4px;
    cursor: pointer;
    transition: color 0.2s;
}

.cat-feat-title:hover { color: #d0021b; }

.cat-feat-desc {
    font-size: 12.5px;
    color: #888;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ══ CỘT 2 ══ */
.col-posts {
    padding-top: 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    gap: 0;
}

.post-card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0ece4;
}

.post-card:last-child { border-bottom: none; padding-bottom: 0; }

.post-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 9px;
    overflow: hidden;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.post-card:hover .post-thumb img { transform: scale(1.06); }

.post-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #d0021b;
    margin-bottom: 4px;
}

.post-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.post-card:hover .post-title { color: #d0021b; }

.post-desc {
    font-size: 11px;
    color: #999;
    line-height: 1.55;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ══ CỘT 3: SIDEBAR (cột phải) ══ */
.col-sidebar {
    grid-column: 2;
    align-self: start;
    position: relative;
}
.col-sidebar .sidebar-ads-fill {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
    margin: 0;
}

.sidebar-block { margin-bottom: 20px; }

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8e4dc;
}

.sidebar-title-bar {
    width: 4px;
    height: 18px;
    background: #d0021b;
    border-radius: 3px;
    flex-shrink: 0;
}

.sidebar-title h3 {
    font-size: 13px;
    font-weight: 800;
    color: #111;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.trend-list { display: flex; flex-direction: column; }

.trend-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 9px 0;
    border-bottom: 1px solid #f0ece4;
    cursor: pointer;
}

.trend-item:first-child { padding-top: 0; }
.trend-item:last-child  { border-bottom: none; padding-bottom: 0; }
.trend-item:hover .trend-title { color: #d0021b; }

.trend-thumb {
    width: 74px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.trend-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.trend-item:hover .trend-thumb img { transform: scale(1.07); }

.trend-title {
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.sidebar-ad {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    display: block;
    transition: transform 0.3s, box-shadow 0.3s;
}

.sidebar-ad:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

.sidebar-ad img { width: 100%; height: auto; display: block; }

/* ══ DỊCH VỤ — dải ngang cột 1+2 (row 2), dưới 2 cột nội dung, không divider ══ */
.news-service {
    margin-top: 28px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.svc-card { cursor: pointer; }

.svc-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 9px;
    overflow: hidden;
    margin-bottom: 10px;
}

.svc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.svc-card:hover .svc-thumb img { transform: scale(1.06); }

.svc-title {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.svc-card:hover .svc-title { color: #d0021b; }
.svc-meta { font-size: 11px; color: #bbb; margin-top: 5px; }

/* ══ RESPONSIVE ══ */
@media (max-width: 1024px) {
    .news-3col { grid-template-columns: minmax(0,1fr) 240px; column-gap: 24px; }
    .news-top-row { grid-template-columns: 2fr 1fr; column-gap: 24px; }
}

@media (max-width: 820px) {
    .news-3col { grid-template-columns: 1fr; }
    .col-sidebar { position: static; overflow: visible; }
    .col-sidebar .sidebar-ads-fill { position: static; flex-direction: row; flex-wrap: wrap; gap: 20px; }
    .col-sidebar .sidebar-ads-fill .sidebar-ad { flex: 1 1 240px; }
    .col-sidebar .sidebar-ads-fill .hs-rail-label { flex-basis: 100%; }
}

@media (max-width: 580px) {
    .news-top-row { grid-template-columns: 1fr; }
    .col-posts { padding-top: 0; }
    .col-sidebar .sidebar-ads-fill { flex-direction: column; }
    .service-grid { grid-template-columns: 1fr 1fr; }
}

/* ========================================
   FOOTER
======================================== */

.footer {
    width: 100%;
    background: #111111;
    color: #ccc;
    font-size: 13px;
    margin-top: 48px;
}

/* Container dùng cùng max-width với showcase */
.footer-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* ── PHẦN TRÊN: SITEMAP ── */
.footer-sitemap {
    padding: 36px 0 28px;
    border-bottom: 1px solid #2a2a2a;
}

.footer-sitemap .footer-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
}

.footer-col {}

.footer-col-title {
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2e2e2e;
    white-space: nowrap;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.footer-col ul li::before {
    content: "• ";
    color: #555;
}

.footer-col ul li a {
    color: #aaa;
    text-decoration: none;
    font-size: 12.5px;
    line-height: 1.5;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: #fff;
}

/* ── ĐƯỜNG KẺ ── */
.footer-divider {
    width: 100%;
    height: 1px;
    background: #2a2a2a;
}

/* ── PHẦN DƯỚI: INFO ── */
.footer-info {
    padding: 32px 0 36px;
}

.footer-bottom-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1.6fr 1.2fr;
    gap: 32px;
    align-items: start;
}

/* Logo + social */
.footer-brand {}

.footer-logo {
    width: 160px;
    object-fit: contain;
    margin-bottom: 14px;
    /* Logo trắng hoặc dùng filter nếu cần */
    filter: brightness(0) invert(1);
}

.footer-brand-desc {
    font-size: 12.5px;
    color: #888;
    line-height: 1.7;
    margin-bottom: 18px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: transform 0.25s, opacity 0.25s;
}

.social-btn:hover {
    transform: translateY(-3px);
    opacity: 0.85;
}

.social-btn.facebook  { background: #1877f2; }
.social-btn.youtube   { background: #ff0000; }
.social-btn.zalo      { background: #0068ff; }
.social-btn.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }

/* Info columns */
.footer-info-title {
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2e2e2e;
}

.footer-contact p,
.footer-company p,
.footer-copyright-col p {
    color: #999;
    font-size: 12.5px;
    line-height: 1.7;
    margin-bottom: 4px;
}

.footer-link-highlight {
    color: #5b9eff;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link-highlight:hover {
    color: #90bfff;
    text-decoration: underline;
}

/* ── RESPONSIVE FOOTER ── */
@media (max-width: 1024px) {
    .footer-sitemap .footer-container {
        grid-template-columns: repeat(4, 1fr);
    }
    .footer-bottom-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .footer-sitemap .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-bottom-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ========================================
   JS ENHANCEMENTS CSS
======================================== */

/* ─── Header scroll ─── */
.header {
    transition: height 0.3s ease, box-shadow 0.3s ease, transform 0.35s ease;
}
.header--scrolled {
    height: 58px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}
.header--scrolled .logo img { width: 130px; }
.header--hidden {
    transform: translateY(-100%);
}

/* ─── Fade-in on scroll ─── */
.fade-in {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Mag card glow ─── */
.mag-card::before {
    background: radial-gradient(
        circle at var(--glow-x, 50%) var(--glow-y, 50%),
        rgba(255,255,255,0.18) 0%,
        transparent 65%
    );
    transition: opacity 0.3s;
}

/* ─── Slider arrows ─── */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, transform 0.25s;
    outline: none;
}
.slider-arrow:hover {
    background: rgba(255,255,255,0.35);
    transform: translateY(-50%) scale(1.1);
}
.slider-arrow--prev { left: 18px; }
.slider-arrow--next { right: 18px; }

/* ─── Dot progress bar ─── */
.dot {
    position: relative;
    overflow: hidden;
}
.dot.active::after {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 100%;
    background: rgba(255,255,255,0.9);
    animation: dotProgress 5s linear forwards;
    border-radius: 20px;
}
@keyframes dotProgress {
    from { width: 0%; }
    to   { width: 100%; }
}

/* ─── Ripple effect ─── */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(208,2,27,0.12);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
    z-index: 10;
}
@keyframes ripple {
    to { transform: scale(2.5); opacity: 0; }
}

/* ─── Post/svc card hover nâng cấp ─── */
.post-card,
.svc-card,
.art-card {
    border-radius: 10px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
}
.post-card:hover,
.svc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.10);
}

/* ─── Trend item hover ─── */
.trend-item {
    border-radius: 8px;
    transition: background 0.2s;
    padding-left: 6px;
    padding-right: 6px;
    margin-left: -6px;
    margin-right: -6px;
}
.trend-item:hover {
    background: #f7f5f0;
}

/* ─── Footer link hover ─── */
.footer-col ul li a {
    position: relative;
    padding-left: 0;
    transition: color 0.2s, padding-left 0.2s;
}
.footer-col ul li a:hover {
    color: #fff;
    padding-left: 6px;
}

/* ─── Back to top ─── */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 28px;
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #d0021b;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(208,2,27,0.4);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
    outline: none;
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.back-to-top:hover {
    background: #b00016;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(208,2,27,0.5);
}


/* ═══════════════════════════════════════
/* ════════════════════════════════════════
   PAGE: DOANH NGHIỆP
   .dn-page = grid 2 cột (content | sidebar)
   Sidebar chạy dọc từ hero → hết Đầu Tư
   Doanh Nghiệp Nổi Bật = full width bên dưới
════════════════════════════════════════ */

.dn-page {
    width: 100%;
    max-width: 1400px;
    margin: 28px auto 0;
    padding: 0 16px 0;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 28px;
    align-items: start;
}

.dn-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cat-link{
    text-decoration:none;
    color:inherit;
}

.cat-link:hover{
    color:#d60000;
}

.tm-top-link{
    text-decoration:none;
    color:inherit;
    display:block;
}

/* ── SIDEBAR ── */
.dn-sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 86px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e0e0e0 transparent;
}

.dn-sidebar-col::-webkit-scrollbar { width: 3px; }
.dn-sidebar-col::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

.dn-sidebar-col .sidebar-ad {
    border-radius: 8px;
    display: block;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.dn-sidebar-col .sidebar-ad:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.dn-sidebar-col .sidebar-ad img {
    width: 100%;
    display: block;
}

/* ── HERO BANNER ── */
.dn-hero {
    position: relative;
    width: 100%;
    height: 340px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0,0,0,0.14);
    margin-bottom: 28px;
}

.dn-hero > img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 8s ease;
}

.dn-hero:hover > img { transform: scale(1.06); }

.dn-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,25,70,0.82), rgba(0,0,0,0.3) 80%);
}

.dn-hero-inner {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    justify-content: center;
    padding: 0 48px;
    z-index: 2; color: #fff;
}

.dn-hero-inner h1 {
    font-size: 48px; font-weight: 900;
    line-height: 1; margin-bottom: 10px;
    text-shadow: 0 4px 18px rgba(0,0,0,0.35);
}

.dn-hero-inner p {
    font-size: 14px; color: rgba(255,255,255,0.88);
    line-height: 1.6; max-width: 420px; margin-bottom: 22px;
}

.dn-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.dn-hero-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
}

.dn-tag {
    padding: 9px 16px; border-radius: 6px;
    color: #fff; font-size: 11.5px; font-weight: 700;
    text-decoration: none; border: none;
    white-space: nowrap;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.18);
}

.dn-tag:nth-child(1) { background: #d0021b; } /* đỏ */
.dn-tag:nth-child(2) { background: #e67e22; } /* cam */
.dn-tag:nth-child(3) { background: #1993ff; } /* xanh dương */
.dn-tag:nth-child(4) { background: #27ae60; } /* xanh lá */
.dn-tag:nth-child(5) { background: #8e44ad; } /* tím */

.dn-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    filter: brightness(1.12);
}

.dn-hero-tags-row2 .dn-tag:nth-child(1) { background: #8e44ad; }
.dn-hero-tags-row2 .dn-tag:nth-child(2) { background: #27ae60; }

.dn-hero-dots {
    position: absolute; bottom: 16px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 7px; z-index: 3;
}

.dn-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,0.5); cursor: pointer;
    transition: all 0.3s;
}

.dn-dot.active { width: 26px; border-radius: 4px; background: #fff; }

/* ── DUO ROW ── */
.dn-duo-row {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 28px;
    margin-bottom: 28px;
}

.dn-feat-card { cursor: pointer; }

.dn-feat-thumb {
    width: 100%; aspect-ratio: 16/9;
    border-radius: 10px; overflow: hidden; margin-bottom: 12px;
}

.dn-feat-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s;
}

.dn-feat-card:hover .dn-feat-thumb img { transform: scale(1.05); }

.dn-feat-title {
    font-size: 15px; font-weight: 800; color: #111;
    line-height: 1.45; margin-bottom: 8px;
    transition: color 0.2s; cursor: pointer;
}

.dn-feat-card:hover .dn-feat-title,
.dn-feat-title:hover { color: #d0021b; }

.dn-feat-desc {
    font-size: 12.5px; color: #888; line-height: 1.65;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}

.dn-today-list { display: flex; flex-direction: column; }

.dn-today-item {
    display: flex; gap: 12px; padding: 11px 0;
    border-bottom: 1px solid #f0ece4; cursor: pointer;
}

.dn-today-item:first-child { padding-top: 0; }
.dn-today-item:last-child { border-bottom: none; }
.dn-today-item:hover .dn-today-title { color: #d0021b; }

.dn-today-thumb {
    width: 100px; height: 66px;
    border-radius: 7px; overflow: hidden; flex-shrink: 0;
}

.dn-today-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s;
}

.dn-today-item:hover .dn-today-thumb img { transform: scale(1.07); }

.dn-today-body { display: flex; align-items: center; }

.dn-today-title {
    font-size: 12.5px; font-weight: 600; color: #1a1a1a;
    line-height: 1.5; transition: color 0.2s;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}

/* ── CATEGORY SECTION ── */
.dn-cat-section {
    padding: 24px 0 28px;
}

.dn-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.dn-card { cursor: pointer; }

.dn-card-thumb {
    width: 100%; aspect-ratio: 16/10;
    border-radius: 8px; overflow: hidden; margin-bottom: 10px;
}

.dn-card-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.45s;
}

.dn-card:hover .dn-card-thumb img { transform: scale(1.06); }

.dn-card-title {
    font-size: 12.5px; font-weight: 700; color: #1a1a1a;
    line-height: 1.5; transition: color 0.2s;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}

.dn-card:hover .dn-card-title { color: #d0021b; }

/* ── ĐẦU TƯ ── */
.dn-invest {
    display: grid; grid-template-columns: 1fr 1.3fr;
    gap: 20px; align-items: start;
}

.dn-invest-feat { cursor: pointer; }

.dn-invest-thumb {
    width: 100%; aspect-ratio: 16/10;
    border-radius: 8px; overflow: hidden; margin-bottom: 10px;
}

.dn-invest-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.45s;
}

.dn-invest-feat:hover .dn-invest-thumb img { transform: scale(1.05); }

.dn-invest-title {
    font-size: 12.5px; font-weight: 700; color: #1a1a1a;
    line-height: 1.5; transition: color 0.2s;
}

.dn-invest-feat:hover .dn-invest-title { color: #d0021b; }

.dn-invest-list { display: flex; flex-direction: column; gap: 12px; }

.dn-invest-item {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 12.5px; color: #222; line-height: 1.55;
    cursor: pointer; padding-bottom: 11px;
    border-bottom: 1px solid #e8e4dc; transition: color 0.2s;
}

.dn-invest-item:last-child { border-bottom: none; padding-bottom: 0; }
.dn-invest-item:hover { color: #d0021b; }

.dn-invest-arrow {
    width: 0; height: 0;
    border-top: 5px solid transparent; border-bottom: 5px solid transparent;
    border-left: 8px solid #d0021b;
    flex-shrink: 0; margin-top: 3px;
}

/* ── DOANH NGHIỆP NỔI BẬT (full width, ngoài grid) ── */
.dn-brands-full {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 28px 16px 48px;
    box-sizing: border-box;
}

.dn-brand-grid {
    display: grid; grid-template-columns: repeat(8, 1fr);
    background: #fff; border: 1px solid #e8e4dc;
    border-radius: 10px; overflow: hidden;
}

.dn-brand-item {
    display: flex; align-items: center; justify-content: center;
    border-right: 1px solid #f0ece4;
    transition: all 0.25s; cursor: pointer;
    padding: 0; overflow: hidden;
}

.dn-brand-item img {
    max-width: 100px;
    max-height: 70px;
    object-fit: contain;
    transition: transform 0.4s, filter 0.3s;
}

.dn-brand-item:hover img {
    transform: scale(1.06);
}

.dn-brand-item:last-child { border-right: none; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .dn-page { grid-template-columns: 1fr 220px; gap: 20px; }
    .dn-hero { height: 300px; }
    .dn-hero-inner h1 { font-size: 38px; }
    .dn-hero-inner { padding: 0 32px; }
    .dn-brand-grid { grid-template-columns: repeat(4, 1fr); }
    .dn-brand-item:nth-child(4n) { border-right: none; }
    .dn-brand-item:nth-child(n+5) { border-top: 1px solid #f0ece4; }
}

@media (max-width: 820px) {
    .dn-page { grid-template-columns: 1fr; }
    .dn-sidebar-col {
        position: static; max-height: none; overflow: visible;
        display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
    }
    .dn-sidebar-col .sidebar-block { grid-column: 1 / -1; }
    .dn-duo-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .dn-hero { height: 260px; }
    .dn-hero-inner h1 { font-size: 30px; }
    .dn-hero-inner { padding: 0 20px; }
    .dn-tag { padding: 7px 14px; font-size: 11px; }
    .dn-grid-3 { grid-template-columns: 1fr 1fr; }
    .dn-invest { grid-template-columns: 1fr; }
    .dn-brand-grid { grid-template-columns: repeat(2, 1fr); }
    .dn-sidebar-col { grid-template-columns: 1fr 1fr; }
}

/* ── Sidebar ads lớn ── */
.dn-ad-large {
    border-radius: 10px;
    overflow: hidden;
}

.dn-ad-large img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}

/* ════════════════════════════════════════
   PAGE: TIỂU MỤC (Thông Tin, Sự Kiện...)
   2 cột: content trái | sidebar ads phải
════════════════════════════════════════ */

.tm-page {
    width: 100%;
    max-width: 1400px;
    margin: 28px auto 0;
    padding: 0 16px 48px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 28px;
    align-items: start;
}

/* ── Content ── */
.tm-content {
    min-width: 0;
}

.tm-section-header {
    margin-bottom: 18px;
}

/* ── Top 3 cards ngang ── */
.tm-top-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.tm-top-card {
    cursor: pointer;
}

.tm-top-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.tm-top-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s;
}

.tm-top-card:hover .tm-top-thumb img {
    transform: scale(1.06);
}

.tm-top-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.tm-top-card:hover .tm-top-title {
    color: #d0021b;
}

/* ── Danh sách bài viết dọc ── */
.tm-article-list {
    display: flex;
    flex-direction: column;
}

.tm-article {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
    padding: 18px 0;
    border-top: 1px solid #eee;
    cursor: pointer;
}

.tm-article:first-child {
    border-top: none;
    padding-top: 0;
}

.tm-art-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
}

.tm-art-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s;
}

.tm-article:hover .tm-art-thumb img {
    transform: scale(1.06);
}

.tm-art-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tm-art-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.5;
    margin-bottom: 6px;
    margin-top: 0;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tm-article:hover .tm-art-title {
    color: #d0021b;
}

.tm-art-desc {
    font-size: 12.5px;
    color: #888;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* ── Sidebar ── */
.tm-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 86px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e0e0e0 transparent;
}

.tm-sidebar::-webkit-scrollbar { width: 3px; }
.tm-sidebar::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

.tm-sidebar .sidebar-ad {
    border-radius: 8px;
    display: block;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.tm-sidebar .sidebar-ad:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.tm-sidebar .sidebar-ad img {
    width: 100%;
    display: block;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .tm-page { grid-template-columns: 1fr 220px; gap: 20px; }
    .tm-article { grid-template-columns: 170px 1fr; }
}

@media (max-width: 820px) {
    .tm-page { grid-template-columns: 1fr; }
    .tm-sidebar {
        position: static; max-height: none; overflow: visible;
        display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
    }
}

@media (max-width: 560px) {
    .tm-top-3 { grid-template-columns: 1fr 1fr; }
    .tm-article { grid-template-columns: 130px 1fr; gap: 12px; }
    .tm-art-title { font-size: 13px; }
    .tm-sidebar { grid-template-columns: 1fr 1fr; }
}

/* ════════════════════════════════════════
   PAGE: BÀI VIẾT CHI TIẾT
════════════════════════════════════════ */

.bv-page {
    width: 100%;
    max-width: 1400px;
    margin: 28px auto 0;
    padding: 0 16px 48px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 32px;
    align-items: start;
}

/* ── Article ── */
.bv-article { min-width: 0; }

/* Breadcrumb */
.bv-breadcrumb {
    font-size: 13px;
    color: #888;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.bv-breadcrumb a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.bv-breadcrumb a:hover { color: #d0021b; }

.bv-bc-sep { color: #ccc; margin: 0 2px; }

.bv-bc-current {
    color: #d0021b;
    font-weight: 600;
}

/* Tiêu đề */
.bv-title {
    font-size: 28px;
    font-weight: 900;
    color: #111;
    line-height: 1.35;
    margin-bottom: 14px;
}

/* Meta */
.bv-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.bv-date {
    font-size: 13px;
    color: #999;
}

.bv-social {
    display: flex;
    gap: 8px;
}

.bv-social-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    transition: transform 0.2s, opacity 0.2s;
}

.bv-social-btn:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}

.bv-fb { background: #1877f2; }
.bv-tw { background: #1da1f2; }
.bv-gp { background: #dd4b39; }
.bv-li { background: #0077b5; }

/* Sapo */
.bv-sapo {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    line-height: 1.7;
    margin-bottom: 22px;
}

/* Ảnh chính */
.bv-figure {
    margin: 0 0 22px;
}

.bv-figure-img {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.bv-figure-img img {
    width: 100%;
    height: auto;
    display: block;
}

.bv-caption {
    font-size: 12px;
    color: #999;
    text-align: center;
    font-style: italic;
    line-height: 1.6;
}

/* Body */
.bv-body {
    margin-bottom: 28px;
}

.bv-body p {
    font-size: 15px;
    color: #333;
    line-height: 1.85;
    margin-bottom: 16px;
    text-align: justify;
}

/* ── BOX CALLOUT trong nội dung (table/blockquote có nền inline) ──
   Chuẩn hoá mọi box highlight về 1 kiểu: nền xám + thanh đỏ bên trái
   (giống ảnh mẫu). !important để ghi đè inline background của CMS cũ. */
.bv-body table,
.bv-body blockquote {
    width: 100% !important;
    max-width: 100%;
    border-collapse: separate !important;
    border-spacing: 0;
    margin: 26px 0 !important;
    background: #ededed !important;
    border: none !important;
    border-left: 7px solid #9a1c1c !important;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 2px 12px rgba(20,23,28,.07);
    overflow: hidden;
}

.bv-body table tbody,
.bv-body table tr { background: transparent !important; }

.bv-body table td,
.bv-body table th {
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    border: none !important;
    padding: 16px 24px !important;
    color: #2b2b2b !important;
    font-size: 14.5px;
    line-height: 1.8;
    vertical-align: top;
    text-align: left !important;
}

.bv-body blockquote {
    padding: 18px 24px;
    font-style: normal;
    color: #2b2b2b;
}

.bv-body table p,
.bv-body blockquote p {
    margin: 0 0 8px !important;
    text-align: left !important;
}
.bv-body table p:last-child,
.bv-body blockquote p:last-child { margin-bottom: 0 !important; }

/* Danh sách bên trong box giữ thụt lề gọn gàng */
.bv-body table ul,
.bv-body table ol { margin: 0; padding-left: 20px; }
.bv-body table li { margin-bottom: 6px; line-height: 1.7; }
.bv-body table li:last-child { margin-bottom: 0; }

/* Ảnh trong nội dung luôn co theo khung, không tràn */
.bv-body img { max-width: 100%; height: auto; border-radius: 8px; }

/* Blockquote */
.bv-quote {
    margin: 28px 0;
    padding: 22px 28px;
    border-left: 4px solid #d0021b;
    background: #faf8f5;
    border-radius: 0 10px 10px 0;
}

.bv-quote p {
    font-size: 14.5px;
    font-style: italic;
    color: #333;
    line-height: 1.8;
    margin-bottom: 8px;
}

.bv-quote cite {
    font-size: 13px;
    color: #888;
    font-style: normal;
    font-weight: 600;
}

.bv-source {
    font-size: 13px;
    color: #999;
    text-align: right;
    font-style: italic;
    margin-top: 8px;
}

/* Tags */
/* Tags — gom trong 1 box, mỗi tag là pill (giống ảnh mẫu) */
.bv-tags {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 18px;
    background: #f7f7f5;
    border: 1px solid #e7e4dd;
    border-radius: 12px;
    margin: 8px 0 32px;
}

.bv-tag-label {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    color: #d0021b;
    padding-top: 7px;
    flex-shrink: 0;
}

.bv-tag-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.bv-tag-item {
    display: inline-block;
    padding: 6px 14px;
    background: #ececec;
    border: 1px solid #e2e2e2;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 500;
    color: #444;
    text-decoration: none;
    line-height: 1.4;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}

.bv-tag-item:hover {
    background: #d0021b;
    border-color: #d0021b;
    color: #fff;
    transform: translateY(-1px);
}

/* Bài viết liên quan */
.bv-related {
    margin-bottom: 12px;
}

.bv-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.bv-related-card { cursor: pointer; }

.bv-related-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.bv-related-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.45s;
}

.bv-related-card:hover .bv-related-thumb img {
    transform: scale(1.06);
}

.bv-related-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.5;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bv-related-card:hover .bv-related-title { color: #d0021b; }

/* ── Sidebar ── */
.bv-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 86px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e0e0e0 transparent;
}

.bv-sidebar::-webkit-scrollbar { width: 3px; }
.bv-sidebar::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

.bv-sidebar .sidebar-ad {
    border-radius: 8px;
    display: block;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.bv-sidebar .sidebar-ad:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.bv-sidebar .sidebar-ad img {
    width: 100%;
    display: block;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .bv-page { grid-template-columns: 1fr 220px; gap: 24px; }
    .bv-title { font-size: 24px; }
}

@media (max-width: 820px) {
    .bv-page { grid-template-columns: 1fr; }
    .bv-sidebar {
        position: static; max-height: none; overflow: visible;
        display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
    }
    .bv-sidebar .sidebar-block { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .bv-title { font-size: 20px; }
    .bv-body p { font-size: 14px; }
    .bv-related-grid { grid-template-columns: 1fr 1fr; }
    .bv-quote { padding: 16px 20px; }
    .bv-sidebar { grid-template-columns: 1fr 1fr; }
}

.news-section a,
.col-cats a,
.col-posts a,
.col-sidebar a,
.news-service a,
.dn-page a,
.tm-page a,
.bv-page a {
    text-decoration: none !important;
    color: inherit;
}

/* ============================================================
   ★ HOME DYNAMIC SECTIONS — Ngày Mới Sài Gòn
   Section động DB-driven: Thương hiệu, Kết nối KD, Cafe, Món ngon...
   (gộp từ home-sections.css — feature card chữ dưới ảnh, rail tĩnh)
   ============================================================ */
:root {
    --nms-blue:   #1993ff;
    --nms-red:    #d0021b;
    --nms-ink:    #14171c;
    --nms-sub:    #6b7280;
    --nms-line:   #e8e4dc;
    --nms-line2:  #f0ece4;
    --nms-cream:  #faf8f4;
    --nms-radius: 12px;
    --nms-shadow: 0 6px 22px rgba(20, 23, 28, .08);
    --nms-shadow-lg: 0 18px 42px rgba(20, 23, 28, .16);
    --nms-serif: 'Lora', Georgia, serif;
}

/* ── Wrapper ── */
.home-dynamic { width: 100%; margin-top: 0; }
.home-dynamic__main > .home-sec:first-child { padding-top: 8px; }

/* Grid giữ lại cho backward compatibility nhưng không dùng nữa */
.home-dynamic__grid {
    width: 100%;
    display: block;
}
.home-dynamic__main { min-width: 0; overflow: hidden; }

.home-dynamic__rail {
    display: none;
}

/* Sidebar quảng cáo của section gốc — xếp dọc gắn liền nhau, lấp đầy chiều cao */
.col-sidebar .sidebar-ads-fill .sidebar-ad { display: block; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 12px rgba(20,23,28,.07); transition: transform .3s, box-shadow .3s; margin: 0; flex-shrink: 0; }
.col-sidebar .sidebar-ads-fill .sidebar-ad img { width: 100%; height: auto; display: block; }
.col-sidebar .sidebar-ads-fill .sidebar-ad:hover { transform: translateY(-3px); box-shadow: var(--nms-shadow); }
.hs-rail-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #b7bcc4;
    text-align: center;
    margin-bottom: -2px;
}
.hs-rail-ad {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(20,23,28,.07);
    transition: transform .3s, box-shadow .3s;
}
.hs-rail-ad img { width: 100%; height: auto; display: block; }
.hs-rail-ad:hover { transform: translateY(-3px); box-shadow: var(--nms-shadow); }

.home-sec { width: 100%; padding: 18px 0 18px; }
.home-sec__inner { width: 100%; box-sizing: border-box; overflow: hidden; min-width: 0; }
.home-sec--alt {
    background: var(--nms-cream);
    padding: 20px 20px 20px;
    margin: 6px 0;
    border-radius: 14px;
}

/* ── Tiêu đề section ── */
.hs-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--nms-line);
    position: relative;
}
.hs-head::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 64px; height: 2px;
    background: var(--nms-red);
}
.hs-head__left { display: flex; align-items: center; gap: 11px; }
.hs-head__bar { width: 5px; height: 26px; background: var(--nms-red); border-radius: 3px; flex-shrink: 0; }
.hs-head__titles { display: flex; flex-direction: column; gap: 2px; }
.hs-head__eyebrow {
    font-size: 10.5px; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--nms-blue);
}
.hs-head h2 {
    font-size: 21px; font-weight: 800;
    color: var(--nms-ink); letter-spacing: .01em; line-height: 1.15;
}
.hs-more {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 700;
    letter-spacing: .04em; text-transform: uppercase;
    color: var(--nms-sub); white-space: nowrap;
    transition: color .25s, gap .25s;
}
.hs-more svg { transition: transform .25s; }
.hs-more:hover { color: var(--nms-red); gap: 10px; }
.hs-more:hover svg { transform: translateX(3px); }

/* ============================================================
   LAYOUT 1 — FEATURE + LIST  (tiêu đề DƯỚI ảnh, không overlay)
   ============================================================ */
.hs-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
    max-width: 100%;
    overflow: hidden;
}
.hs-lead {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--nms-radius);
    overflow: hidden;
    border: 1px solid var(--nms-line2);
    box-shadow: 0 2px 10px rgba(20,23,28,.05);
    transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
    height: 100%;
}
.hs-lead:hover { transform: translateY(-5px); box-shadow: var(--nms-shadow-lg); }
.hs-lead__media {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--nms-line);
    flex-shrink: 0;
}
.hs-lead__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.hs-lead:hover .hs-lead__media img { transform: scale(1.05); }
.hs-lead__body { padding: 14px 18px 16px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hs-lead__title {
    font-family: var(--nms-serif);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--nms-ink);
    letter-spacing: .005em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}
.hs-lead:hover .hs-lead__title { color: var(--nms-red); }
.hs-lead__desc {
    font-size: 13.5px;
    color: var(--nms-sub);
    line-height: 1.55;
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hs-lead__meta {
    margin-top: 8px;
    font-size: 12px;
    color: #9aa1ab;
    display: flex; align-items: center; gap: 8px;
}
.hs-lead__meta svg { opacity: .55; }
.hs-lead__meta .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: #c7ccd3; }

/* Danh sách bên phải */
.hs-list { display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.hs-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--nms-line2); align-items: center; }
.hs-row:first-child { padding-top: 0; }
.hs-row:last-child { border-bottom: none; padding-bottom: 0; }
.hs-row__thumb { width: 100px; height: 68px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: var(--nms-line); }
.hs-row__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.hs-row:hover .hs-row__thumb img { transform: scale(1.08); }
.hs-row__body { min-width: 0; }
.hs-row__cat { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--nms-red); margin-bottom: 2px; }
.hs-row__title {
    font-size: 13.5px; font-weight: 600; color: var(--nms-ink); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s;
}
.hs-row:hover .hs-row__title { color: var(--nms-red); }
.hs-row__date { font-size: 11px; color: #9aa1ab; margin-top: 3px; }

/* ── Card chung (carousel + grid) ── */
.hs-card {
    display: flex; flex-direction: column; background: #fff;
    border-radius: var(--nms-radius); overflow: hidden;
    border: 1px solid var(--nms-line2); box-shadow: 0 2px 10px rgba(20,23,28,.05);
    transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; height: 100%;
}
.hs-card:hover { transform: translateY(-6px); box-shadow: var(--nms-shadow-lg); }
.hs-card__media { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: var(--nms-line); }
.hs-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.hs-card:hover .hs-card__media img { transform: scale(1.07); }
.hs-card__body { padding: 13px 15px 16px; display: flex; flex-direction: column; flex: 1; }
.hs-card__cat {
    font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--nms-red); margin-bottom: 6px;
}
.hs-card__title {
    font-size: 14.5px; font-weight: 700; color: var(--nms-ink); line-height: 1.42;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s;
}
.hs-card:hover .hs-card__title { color: var(--nms-red); }
.hs-card__desc {
    font-size: 12.5px; color: var(--nms-sub); line-height: 1.6; margin-top: 7px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hs-card__date { margin-top: auto; padding-top: 11px; font-size: 11px; color: #9aa1ab; display: flex; align-items: center; gap: 6px; }
.hs-card__date svg { opacity: .55; }

/* ── Carousel ── */
.hs-carousel { position: relative; overflow: hidden; }
.hs-track {
    display: grid; grid-auto-flow: column;
    grid-auto-columns: calc((100% - 2 * 22px) / 3);
    gap: 22px; overflow-x: auto;
    scroll-snap-type: x proximity; scroll-behavior: smooth;
    padding: 6px 2px 14px;
    -ms-overflow-style: none; scrollbar-width: none; cursor: grab;
    -webkit-overflow-scrolling: touch;
    will-change: scroll-position;
    max-width: 100%;
}
.hs-track::-webkit-scrollbar { display: none; }
.hs-track.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.hs-track > * { scroll-snap-align: start; }
.hs-arrow {
    position: absolute; top: calc(50% - 24px); transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--nms-line);
    background: #fff; color: var(--nms-ink); display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: var(--nms-shadow); z-index: 5;
    transition: background .25s, color .25s, opacity .25s, transform .25s;
}
.hs-arrow:hover { background: var(--nms-red); color: #fff; border-color: var(--nms-red); }
.hs-arrow:active { transform: translateY(-50%) scale(.92); }
.hs-arrow--prev { left: 8px; }
.hs-arrow--next { right: 8px; }
.hs-arrow[disabled] { opacity: .35; cursor: default; }
.hs-arrow[disabled]:hover { background: #fff; color: var(--nms-ink); border-color: var(--nms-line); }

/* ── Grid ── */
.hs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 100%; }

/* ── Lazy-load fade-in (chỉ ẩn khi JS sẵn sàng để tránh ảnh trắng) ── */
.lazy-ready .lazy-img { opacity: 0; transition: opacity .55s ease; }
.lazy-ready .lazy-img.loaded { opacity: 1; }

/* ── Reveal khi cuộn (chỉ ẩn khi JS sẵn sàng) ── */
.reveal-ready .hs-reveal {
    opacity: 0; transform: translateY(26px);
    transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal-ready .hs-reveal.in-view { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .home-dynamic__rail { display: none; }
    .hs-track { grid-auto-columns: calc((100% - 2 * 22px) / 3); }
    .hs-grid  { grid-template-columns: repeat(3, 1fr); }
    .hs-lead__title { font-size: 20px; }
}
@media (max-width: 768px) {
    .home-dynamic { margin-top: -10px; }
    .home-sec, .home-sec--alt { padding: 26px 0 26px; }
    .home-sec--alt { margin: 8px 0; border-radius: 12px; padding: 28px 16px; background: var(--nms-cream); }
    .hs-head h2 { font-size: 18px; }
    .hs-head { margin-bottom: 18px; }
    .hs-feature { grid-template-columns: 1fr; gap: 22px; }
    .hs-track { grid-auto-columns: 78%; gap: 16px; }
    .hs-grid  { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .hs-arrow { display: none; }
    .hs-lead__title { font-size: 19px; }
}
@media (max-width: 480px) {
    .hs-track { grid-auto-columns: 84%; }
    .hs-grid  { grid-template-columns: 1fr; }
    .hs-card__media { aspect-ratio: 16 / 9; }
}
/* ★ END HOME DYNAMIC SECTIONS */
/* ════════════════════════════════════════════════════════════════════
   ★ NHẬN DIỆN MÀU THEO DANH MỤC  (đồng nhất toàn website)
   - Mỗi trang danh mục/tiểu mục/bài viết có <body class="cat-theme ...">
     kèm biến --cat-color / --cat-color-dark (đặt từ views.py).
   - Màu được dùng cho: banner hero, thanh tiêu đề, tag tiểu mục, hover…
   ════════════════════════════════════════════════════════════════════ */
.cat-theme { --cat-color: #d0021b; --cat-color-dark: #8a0012; }

/* Banner hero phủ lớp gradient mang màu danh mục (vẫn đọc rõ chữ) */
.cat-theme .dn-hero-overlay {
    background: linear-gradient(125deg, rgba(12,16,28,.82), rgba(0,0,0,.30) 82%);
}
@supports (background: color-mix(in srgb, red, blue)) {
    .cat-theme .dn-hero-overlay {
        background: linear-gradient(125deg,
            color-mix(in srgb, var(--cat-color-dark) 90%, #000 10%) 0%,
            color-mix(in srgb, var(--cat-color) 55%, transparent) 58%,
            rgba(0,0,0,.18) 100%);
    }
}

/* Thanh tiêu đề (cat-title / sidebar-title) đổi theo màu danh mục */
.cat-theme .cat-title-bar,
.cat-theme .sidebar-title-bar { background: var(--cat-color); }

/* Link tiêu đề, hover bài viết… dùng màu danh mục */
.cat-theme .cat-link:hover,
.cat-theme .trend-item:hover .trend-title,
.cat-theme .bv-breadcrumb a:hover,
.cat-theme .tm-art-title:hover { color: var(--cat-color); }
.cat-theme .dn-dot.active { background: #fff; }

/* Tag tiểu mục trong hero: thống nhất theo màu danh mục (glass + hover sáng) */
.cat-theme .dn-hero-tags .dn-tag {
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.34);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    box-shadow: 0 3px 10px rgba(0,0,0,.18);
}
.cat-theme .dn-hero-tags .dn-tag:hover {
    background: #fff;
    color: var(--cat-color-dark);
    transform: translateY(-2px);
    filter: none;
}

/* ── Màu nhận diện danh mục trên MENU (hiện trên mọi trang) ── */
/* Thứ tự menu: 1 Trang Chủ · 2 Doanh Nghiệp · 3 Thương Hiệu ·
   4 Kết Nối KD · 5 Ẩm Thực · 6 Mua Sắm · 7 Sắc Màu Cuộc Sống */
.nav-list li:nth-child(2) .nav-link::after { background: #1c5fb0; }
.nav-list li:nth-child(2) .nav-link:hover,
.nav-list li:nth-child(2) .nav-link.active { color: #1c5fb0; }
.nav-list li:nth-child(3) .nav-link::after { background: #e0851d; }
.nav-list li:nth-child(3) .nav-link:hover,
.nav-list li:nth-child(3) .nav-link.active { color: #e0851d; }
.nav-list li:nth-child(4) .nav-link::after { background: #0e9488; }
.nav-list li:nth-child(4) .nav-link:hover,
.nav-list li:nth-child(4) .nav-link.active { color: #0e9488; }
.nav-list li:nth-child(5) .nav-link::after { background: #e0392b; }
.nav-list li:nth-child(5) .nav-link:hover,
.nav-list li:nth-child(5) .nav-link.active { color: #e0392b; }
.nav-list li:nth-child(6) .nav-link::after { background: #7c3aed; }
.nav-list li:nth-child(6) .nav-link:hover,
.nav-list li:nth-child(6) .nav-link.active { color: #7c3aed; }
.nav-list li:nth-child(7) .nav-link::after { background: #db2777; }
.nav-list li:nth-child(7) .nav-link:hover,
.nav-list li:nth-child(7) .nav-link.active { color: #db2777; }

/* ════════════════════════════════════════════════════════════════════
   ★ BOX QUẢNG CÁO SIDEBAR  (thay cho mục "Xu Hướng Mới")
   - Thiết kế hiện đại, hỗ trợ nhiều banner; dữ liệu từ bảng Ad.
   ════════════════════════════════════════════════════════════════════ */
.promo-block .sidebar-title-bar { background: var(--cat-color, #d0021b); }
.promo-stack { display: flex; flex-direction: column; gap: 14px; }

.promo-box {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f1ec;
    box-shadow: 0 4px 16px rgba(20,23,28,.08);
    transition: transform .3s ease, box-shadow .3s ease;
}
.promo-box img {
    width: 100%;
    height: auto;
    display: block;
}
.promo-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(20,23,28,.18);
}

/* Nhãn "QC" nhỏ góc trên (đánh dấu nội dung quảng cáo) */
.promo-box__badge {
    position: absolute;
    top: 8px; left: 8px;
    z-index: 2;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    color: #fff;
    background: rgba(20,23,28,.55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    padding: 3px 7px;
    border-radius: 5px;
    line-height: 1;
    text-transform: uppercase;
}

/* Caption (nếu Ad có mô tả) — phủ gradient dưới ảnh */
.promo-box__label {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 2;
    padding: 22px 12px 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,0));
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tablet: box quảng cáo dàn ngang khi sidebar xuống dưới */
@media (max-width: 820px) {
    .dn-sidebar-col .promo-block,
    .tm-sidebar .promo-block,
    .bv-sidebar .promo-block { grid-column: 1 / -1; }
    .promo-stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (max-width: 560px) {
    .promo-stack { grid-template-columns: repeat(2, 1fr); }
}
/* ★ END NHẬN DIỆN DANH MỤC + BOX QUẢNG CÁO */

/* ══════════════════════════════════════════════════════════════
   TYPOGRAPHY AUDIT — Hệ thống chữ chuẩn báo điện tử
   Font: Roboto | Scale: 11–36px | 6 cấp phân quyền
   ══════════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ── */
:root {
    --t-font: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --t-serif: 'Lora', Georgia, 'Times New Roman', serif;

    /* Type Scale */
    --t-hero:       36px;
    --t-h1:         28px;
    --t-h2:         20px;
    --t-section:    15px;
    --t-title-lg:   20px;
    --t-title-md:   16px;
    --t-title-sm:   14.5px;
    --t-title-xs:   13.5px;
    --t-body:       15px;
    --t-body-sm:    14px;
    --t-desc:       13.5px;
    --t-caption:    12px;
    --t-label:      11px;
    --t-micro:      10px;

    /* Weights */
    --w-black:  900;
    --w-bold:   700;
    --w-semi:   600;
    --w-medium: 500;
    --w-normal: 400;
    --w-light:  300;

    /* Line Heights */
    --lh-tight:    1.2;
    --lh-heading:  1.35;
    --lh-body:     1.65;
    --lh-relaxed:  1.75;

    /* Colors */
    --c-ink:       #1a1a1a;
    --c-body:      #333;
    --c-secondary: #666;
    --c-muted:     #999;
    --c-faint:     #bbb;
    --c-red:       #d0021b;
}

/* ── Global Reset ── */
body {
    font-family: var(--t-font) !important;
    font-size: var(--t-body);
    line-height: var(--lh-body);
    color: var(--c-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ══ CẤP 1: Section Headers (DỊCH VỤ, THƯƠNG HIỆU...) ══ */
.mb-sec-title,
.hs-head h2,
.bv-section-title h2,
.trend-title h2,
.dn-section-title h2 {
    font-family: var(--t-font) !important;
    font-size: var(--t-section) !important;
    font-weight: var(--w-black) !important;
    line-height: var(--lh-tight) !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    color: var(--c-ink) !important;
}

/* ══ CẤP 2: Hero / Banner Titles ══ */
.hero-content h1 {
    font-family: var(--t-font) !important;
    font-size: var(--t-hero) !important;
    font-weight: var(--w-black) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.01em;
}
.dn-hero-inner h1 {
    font-size: 42px !important;
    font-weight: var(--w-black) !important;
    line-height: 1.12 !important;
}

/* ══ CẤP 3: Article Titles — Large (lead/feature) ══ */
.hs-lead__title,
.mb-main-title,
.dn-feat-title {
    font-family: var(--t-serif) !important;
    font-size: var(--t-title-lg) !important;
    font-weight: var(--w-bold) !important;
    line-height: var(--lh-heading) !important;
    color: var(--c-ink) !important;
    letter-spacing: -0.01em;
}

/* ══ CẤP 4: Article Titles — Medium (cards, grid) ══ */
.hs-card__title,
.mb-art-title,
.mb-svc-title,
.svc-card-title,
.trend-item-title,
.dn-card-title,
.dn-side-title,
.bv-related-title {
    font-family: var(--t-font) !important;
    font-size: var(--t-title-sm) !important;
    font-weight: var(--w-semi) !important;
    line-height: 1.45 !important;
    color: var(--c-ink) !important;
}

/* ══ CẤP 5: Article Titles — Small (sidebar, list) ══ */
.hs-row__title,
.col-post-title,
.col-cat-title,
.trend-item-info strong {
    font-family: var(--t-font) !important;
    font-size: var(--t-title-xs) !important;
    font-weight: var(--w-semi) !important;
    line-height: 1.45 !important;
    color: var(--c-ink) !important;
}

/* ══ CẤP 6: Category Labels ══ */
.hs-card__cat,
.hs-row__cat,
.mb-art-tag,
.svc-card-cat,
.bv-cat-name,
.dn-card-cat {
    font-family: var(--t-font) !important;
    font-size: var(--t-label) !important;
    font-weight: var(--w-bold) !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
    color: var(--c-red) !important;
}

/* ══ Body Text / Descriptions ══ */
.hs-lead__desc,
.mb-main-intro,
.dn-feat-desc,
.hero-content p {
    font-family: var(--t-font) !important;
    font-size: var(--t-body-sm) !important;
    font-weight: var(--w-normal) !important;
    line-height: var(--lh-body) !important;
    color: var(--c-secondary) !important;
}

.hs-card__desc,
.mb-art-intro,
.svc-card-desc {
    font-family: var(--t-font) !important;
    font-size: var(--t-desc) !important;
    font-weight: var(--w-normal) !important;
    line-height: 1.6 !important;
    color: var(--c-secondary) !important;
}

/* ══ Dates / Meta / Timestamps ══ */
.hs-card__date,
.hs-row__date,
.hs-lead__meta,
.mb-art-date,
.mb-svc-date,
.svc-meta,
.trend-item-date,
.bv-date,
.dn-card-date,
.col-post-date {
    font-family: var(--t-font) !important;
    font-size: var(--t-caption) !important;
    font-weight: var(--w-normal) !important;
    line-height: 1.4 !important;
    color: var(--c-muted) !important;
}

/* ══ Navigation ══ */
.nav-link {
    font-family: var(--t-font) !important;
    font-size: 16px !important;
    font-weight: var(--w-medium) !important;
}
.nav-link:hover, .nav-link.active {
    font-weight: var(--w-bold) !important;
}

/* ══ "XEM TẤT CẢ" link ══ */
.hs-more,
.mb-sec-more {
    font-family: var(--t-font) !important;
    font-size: var(--t-caption) !important;
    font-weight: var(--w-semi) !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
    color: var(--c-muted) !important;
}
.hs-more:hover, .mb-sec-more:hover {
    color: var(--c-red) !important;
}

/* ══ Sidebar Labels ══ */
.hs-rail-label,
.sidebar-title h3 {
    font-size: var(--t-caption) !important;
    font-weight: var(--w-bold) !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    color: var(--c-muted) !important;
}

/* ══ Footer Typography ══ */
.footer-col h4 {
    font-size: 13px !important;
    font-weight: var(--w-bold) !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
    color: #fff !important;
    margin-bottom: 16px !important;
}
.footer-col a,
.footer-col li {
    font-size: var(--t-desc) !important;
    font-weight: var(--w-normal) !important;
    line-height: 1.8 !important;
}

/* ══ Breadcrumb ══ */
.bv-breadcrumb,
.bv-breadcrumb a,
.bv-breadcrumb span {
    font-size: var(--t-caption) !important;
    font-weight: var(--w-normal) !important;
}

/* ══ Article Detail Page ══ */
.bv-title {
    font-family: var(--t-serif) !important;
    font-size: 28px !important;
    font-weight: var(--w-bold) !important;
    line-height: 1.3 !important;
    color: var(--c-ink) !important;
}
.bv-intro {
    font-size: var(--t-body) !important;
    font-weight: var(--w-normal) !important;
    line-height: var(--lh-relaxed) !important;
    color: var(--c-secondary) !important;
}
.bv-content {
    font-size: var(--t-body) !important;
    line-height: var(--lh-relaxed) !important;
    color: var(--c-body) !important;
}
.bv-content p {
    margin-bottom: 16px !important;
}
.bv-content h2, .bv-content h3 {
    font-family: var(--t-font) !important;
    font-weight: var(--w-bold) !important;
    line-height: var(--lh-heading) !important;
    color: var(--c-ink) !important;
    margin: 28px 0 12px !important;
}
.bv-content h2 { font-size: var(--t-h2) !important; }
.bv-content h3 { font-size: var(--t-title-md) !important; }

/* ══ Tags ══ */
.bv-tag,
.dn-tag {
    font-size: var(--t-label) !important;
    font-weight: var(--w-semi) !important;
    letter-spacing: 0.02em !important;
}

/* ══ Related Articles ══ */
.bv-related h3,
.bv-related-heading {
    font-size: var(--t-section) !important;
    font-weight: var(--w-black) !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
}
.bv-related-title {
    font-size: var(--t-title-sm) !important;
    font-weight: var(--w-semi) !important;
    line-height: 1.45 !important;
}

/* ══ RESPONSIVE — Mobile ══ */
@media (max-width: 768px) {
    :root {
        --t-hero:      28px;
        --t-h1:        22px;
        --t-h2:        18px;
        --t-section:   13px;
        --t-title-lg:  18px;
        --t-title-md:  15px;
        --t-title-sm:  14px;
        --t-title-xs:  13px;
        --t-body:      14px;
        --t-body-sm:   13px;
        --t-desc:      13px;
    }

    .bv-title {
        font-size: 22px !important;
        line-height: 1.3 !important;
    }

    .dn-hero-inner h1 {
        font-size: 28px !important;
    }

    .nav-link {
        font-size: 15px !important;
        font-weight: var(--w-semi) !important;
    }
}

@media (max-width: 480px) {
    :root {
        --t-hero:      24px;
        --t-title-lg:  17px;
        --t-section:   12px;
    }

    .bv-title {
        font-size: 20px !important;
    }
}
