/**
 * NgoiSaoSo team — Sài Gòn Giải Trí Editorial Theme (NSSV3)
 * @version 3.0.0
 * @contact: xinchao@ngoisaoso.vn
 * @see https://www.ngoisaoso.vn
 */

/* =========================================================
   1. EDITORIAL DESIGN SYSTEM TOKENS & NSSV3 COMPATIBILITY
   ========================================================= */
:root {
    --nss-primary: #e5a91f;
    --nss-primary-hover: #b87309;
    --nss-primary-deep: #6b4208;
    --nss-primary-light: #fff5b8;
    --nss-cinema-black: #181107;
    --nss-secondary: #faf6ee;
    --nss-dark: #221d15;

    --nss-radius-sm: 4px;
    --nss-radius-md: 6px;
    --nss-radius-lg: 8px;
    --nss-radius-xl: 8px;

    /* Backward-compatible aliases for NSSV3 sub-modules */
    --lh-primary: #e5a91f;
    --lh-primary-container: #6b4208;
    --lh-background: #ffffff;
    --lh-surface: #faf6ee;
    --lh-surface-container-low: #faf6ee;
    --lh-surface-container-highest: #e8dfca;
    --lh-surface-lowest: #ffffff;
    --lh-on-surface: #221d15;
    --lh-outline-ghost: #e8dfca;
}

/* =========================================================
   2. GLOBAL EDITORIAL BUTTONS & FORM ELEMENTS
   ========================================================= */

.btn-nss-primary {
    background: var(--gradient-gold-diag, linear-gradient(135deg, #6b4208 0%, #d4981a 25%, #fff9d2 50%, #e5a91f 75%, #6b4208 100%));
    color: #181107 !important;
    text-shadow: 0 1px 0 rgba(255, 250, 220, 0.7);
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    transition: all 0.2s ease;
    border: 1px solid #8a5a0c;
    border-radius: var(--nss-radius-sm);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 3px 8px rgba(107, 66, 8, 0.28);
}

.btn-nss-primary:hover,
.btn-nss-primary:focus {
    background: linear-gradient(145deg, #2b1f11 0%, #120c06 100%);
    color: #ffe484 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    border-color: #f7c948;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 249, 210, 0.25);
}

.btn-nss-dark {
    background-color: var(--nss-dark);
    color: #ffffff !important;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    transition: background-color 0.2s ease;
    border: none;
    border-radius: var(--nss-radius-sm);
}

.btn-nss-dark:hover,
.btn-nss-dark:focus {
    background-color: var(--nss-primary-hover);
    color: #ffffff !important;
}

.btn-nss-outline {
    background-color: #ffffff;
    color: #444444;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    border: 1px solid #e0e0e0;
    border-radius: var(--nss-radius-sm);
    transition: all 0.2s ease;
}

.btn-nss-outline:hover,
.btn-nss-outline:focus {
    background-color: var(--nss-primary-light);
    color: #222222 !important;
    border-color: var(--nss-primary);
}

.form-input-nss {
    background-color: #ffffff;
    border: 1px solid #e5e5e5 !important;
    border-radius: var(--nss-radius-sm);
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #222222;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-input-nss:focus {
    border-color: var(--nss-primary) !important;
    box-shadow: 0 0 0 2px rgba(235, 162, 34, 0.2) !important;
}

/* =========================================================
   3. EDITORIAL ARTICLE BODY CONTENT (.editorial-bodytext)
   ========================================================= */
.editorial-bodytext {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #222222;
    word-wrap: break-word;
}

.editorial-bodytext p {
    margin-bottom: 1rem;
}

.editorial-bodytext h2,
.editorial-bodytext h3,
.editorial-bodytext h4 {
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.editorial-bodytext figure,
.editorial-bodytext .image-center,
#news-bodyhtml figure {
    margin: 1.25rem auto !important;
    text-align: center !important;
    float: none !important;
    display: table !important;
}

.editorial-bodytext img,
#news-bodyhtml img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
}

.editorial-bodytext a:has(> img),
#news-bodyhtml a:has(> img),
.editorial-bodytext span:has(> img),
#news-bodyhtml span:has(> img) {
    display: block !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.editorial-bodytext table.image,
.editorial-bodytext table:has(img),
#news-bodyhtml table.image,
#news-bodyhtml table:has(img) {
    margin: 1.25rem auto !important;
    float: none !important;
    text-align: center !important;
}

.editorial-bodytext table:has(img) td,
#news-bodyhtml table:has(img) td {
    text-align: center !important;
}

.editorial-bodytext p:has(img),
#news-bodyhtml p:has(img),
.editorial-bodytext div:has(> img),
#news-bodyhtml div:has(> img) {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.editorial-bodytext figcaption,
.editorial-bodytext .pCaption,
#news-bodyhtml figcaption,
#news-bodyhtml .pCaption {
    font-size: 13.5px;
    color: #555555;
    font-style: italic;
    margin-top: 0.5rem;
    text-align: center !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    line-height: 1.5;
}

.editorial-bodytext a {
    color: #2b7de9;
    text-decoration: underline;
}

.editorial-bodytext a:hover {
    color: var(--nss-primary-hover, #d97706);
}

/* =========================================================
   4. NUKEVIET PAGINATION (EDITORIAL FLAT GOLD STYLE)
   ========================================================= */
.pagination {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 1.5rem 0 !important;
    gap: 6px !important;
}

.pagination li {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style-type: none !important;
}

.pagination li a,
.pagination li span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 34px !important;
    height: 34px !important;
    padding: 0 10px !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #444444 !important;
    background-color: #ffffff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.pagination li a:hover {
    background-color: var(--nss-primary-light, #fff5b8) !important;
    color: #181107 !important;
    border-color: var(--nss-primary, #e5a91f) !important;
}

.pagination li.active span,
.pagination li.active a {
    background: linear-gradient(145deg, #2b1f11 0%, #120c06 100%) !important;
    color: #ffe484 !important;
    font-weight: 700 !important;
    border: 1.5px solid #f7c948 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

.pagination li.disabled span,
.pagination li.disabled a {
    color: #888888 !important;
    background-color: #f7f7f7 !important;
    border-color: #e5e5e5 !important;
    cursor: not-allowed !important;
}

/* =========================================================
   5. HORIZONTAL SCROLLBAR HIDING FOR ZOOM / CATEGORY NAV
   ========================================================= */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}


/* =========================================================
   6. PHASE 2 — HEADER, NAVIGATION, FOOTER & MODAL SHELL
   ========================================================= */

/* Auto-collapse empty block slots so unused positions add zero spacing */
.editorial-slot:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.editorial-topbar-row:not(:has(.editorial-slot:not(:empty))) {
    display: none !important;
}

.editorial-topstrip:not(:has(.editorial-slot:not(:empty))) {
    display: none !important;
}

.editorial-premain-wrap:not(:has(.editorial-slot:not(:empty))) {
    display: none !important;
}

.editorial-footer-cols:not(:has(.editorial-slot:not(:empty))) {
    display: none !important;
}

/* Normalize NukeViet Menu Lists ([MENU_SITE]) inside Sticky Category Bar */
.editorial-main-menu ul {
    display: flex;
    align-items: center;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.editorial-main-menu>ul>li,
.editorial-main-menu .navbar-nav>li {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.editorial-main-menu>ul>li>a,
.editorial-main-menu .navbar-nav>li>a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 9px 0;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.2px;
    text-transform: uppercase;
    color: #222222;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.editorial-main-menu>ul>li>a:hover,
.editorial-main-menu>ul>li.active>a,
.editorial-main-menu .navbar-nav>li>a:hover,
.editorial-main-menu .navbar-nav>li.active>a {
    color: var(--nss-primary-hover, #d97706);
    border-bottom-color: var(--nss-primary, #f59e0b);
}

/* Desktop Hover Dropdown for NukeViet Menu Sub-items */
.editorial-main-menu li ul,
.editorial-main-menu li .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 6px 0;
    z-index: 60;
    flex-direction: column;
    gap: 0;
}

.editorial-main-menu li:hover>ul,
.editorial-main-menu li:hover>.dropdown-menu,
.editorial-main-menu li.open>ul,
.editorial-main-menu li.open>.dropdown-menu {
    display: flex;
}

.editorial-main-menu li ul li,
.editorial-main-menu li .dropdown-menu li {
    width: 100%;
    border-bottom: 1px dashed #dcdcdc;
}

.editorial-main-menu li ul li:last-child,
.editorial-main-menu li .dropdown-menu li:last-child {
    border-bottom: none;
}

.editorial-main-menu li ul li a,
.editorial-main-menu li .dropdown-menu li a {
    display: block;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    color: #444444;
    white-space: nowrap;
}

.editorial-main-menu li ul li a:hover,
.editorial-main-menu li .dropdown-menu li a:hover {
    background-color: #f7f7f7;
    color: var(--nss-primary-hover, #d97706);
}

/* Normalize Footer Category Bar ([MENU_FOOTER]) */
.editorial-footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.editorial-footer-nav ul li a {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #222222;
}

.editorial-footer-nav ul li a:hover {
    color: var(--nss-primary-hover, #d97706);
}

/* Search Input Validation State */
.headerSearch .has-error {
    border-color: #d71920 !important;
}

/* NukeViet Core #tip, #ftip, #timeoutsess & #openidResult (Hidden by default; toggled via jQuery .show()/.hide()) */
#tip,
#ftip,
#timeoutsess,
#openidResult {
    display: none;
}

#tip,
#ftip {
    position: fixed;
    top: 58px;
    right: 16px;
    z-index: 9990;
    width: 300px;
    max-width: calc(100vw - 32px);
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-top: 3px solid var(--nss-primary, #f59e0b);
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    padding: 16px;
}

/* Bootstrap 3 JS Compatible Modal Shim (Required by #sitemodal & modalShow()) */
.modal-open {
    overflow: hidden;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1050;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
    padding: 16px;
}

.modal.in,
.modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal-dialog {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: auto;
}

.modal-header {
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid #e5e5e5;
    padding-right: 32px;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #222222;
    margin: 0;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background-color: #000000;
}

.modal-backdrop.fade {
    opacity: 0;
    transition: opacity 0.15s linear;
}

.modal-backdrop.in,
.modal-backdrop.show {
    opacity: 0.5;
}

.hidden {
    display: none !important;
}

/* =========================================================
   7. ADMIN FAB CLEARANCE & CORE SYSTEM ALERT FALLBACKS
   ========================================================= */

/* Lift Back-to-Top button above NSSV3 Admin Toolbar Speed Dial when logged in as Admin (zero touch on #admintoolbar) */
body:has(#admintoolbar) #bttop,
body:has(#toolbar) #bttop {
    bottom: 96px;
}

/* Core NukeViet .alert fallback styles (system/alert.tpl & system/error_info.tpl) */
.alert {
    padding: 14px 18px;
    margin-bottom: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #222222;
}

.alert h3 {
    font-size: 16px;
    margin: 0 0 8px 0;
}

.alert .m-bottom {
    margin-bottom: 10px;
}

.alert-info,
.sgt-system-alert-info {
    background-color: #f7f7f7;
    border-color: #dcdcdc;
    color: #222222;
}

.alert-success,
.sgt-system-alert-success {
    background-color: #f0fdf4;
    border-color: #1e8e3e;
    color: #14532d;
}

.alert-warning,
.sgt-system-alert-warning {
    background-color: var(--nss-primary-light, #fde047);
    border-color: var(--nss-primary, #f59e0b);
    color: #222222;
}

.alert-danger,
.sgt-system-alert-danger {
    background-color: #fef2f2;
    border-color: #d71920;
    color: #991b1b;
}

/* =========================================================
   7. PHASE 3 — HOMEPAGE COLUMN SPLIT & SIDEBAR BLOCK POLISH
   ========================================================= */
.editorial-home-split:not(:has(> *:not(:empty))) {
    display: none !important;
}

/* Remove extra bottom margin on the last block inside [LEFT] / [RIGHT] sidebars */
.editorial-home-split aside>.editorial-block:last-child,
aside>.editorial-block:last-child {
    margin-bottom: 0;
}

/* Full-bleed crisp banners inside [RIGHT] / [TOP] / [HEADER] */
aside .nv-block-banners img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

/* =========================================================
   8. DESKTOP CONTAINER MARGIN (Always 30px from left & right)
   ========================================================= */
@media (min-width: 992px) {

    .editorial-container,
    .container {
        width: calc(100% - 60px) !important;
        max-width: calc(100% - 60px) !important;
        margin-left: 30px !important;
        margin-right: 30px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* =========================================================
   9. TUOI TRE STYLE 3-BARS EXPAND TOGGLE & CATEGORY POPUP
   ========================================================= */
#editorial-allcats-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 6px;
    color: #222222;
    transition: color 0.2s ease;
    border: none;
    background: transparent;
    cursor: pointer;
}

#editorial-allcats-toggle:hover {
    color: var(--nss-primary-hover, #d97706);
}

#editorial-allcats-toggle[aria-expanded="true"] .icoopen {
    display: none !important;
}

#editorial-allcats-toggle[aria-expanded="true"] .icoclose {
    display: inline-flex !important;
}

#editorial-allcats-toggle[aria-expanded="false"] .icoopen {
    display: inline-flex !important;
}

#editorial-allcats-toggle[aria-expanded="false"] .icoclose {
    display: none !important;
}

.editorial-drawer-card {
    transition: background-color 0.15s ease;
}

.editorial-drawer-card:hover {
    background-color: rgba(235, 162, 34, 0.04);
}

/* =========================================================
   10. DESKTOP 80PX HEADER, CENTERED SEARCH BAR & HOTLINE
   ========================================================= */
#header {
    border-top: 1px solid rgba(255, 250, 215, 0.75) !important;
    border-bottom: none;
    box-shadow: inset 0 1px 1px rgba(255, 252, 225, 0.6), inset 0 -2px 3px rgba(107, 66, 8, 0.25), 0 6px 18px rgba(184, 121, 14, 0.25) !important;
}

#header #editorial-mobile-toggle,
#header #editorial-search-toggle {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 6px !important;
    /* Hình vuông bo góc */
    background: linear-gradient(145deg, #2b1f11 0%, #120c06 100%) !important;
    border: 1.5px solid #f7c948 !important;
    color: #ffe484 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 249, 210, 0.25) !important;
    align-items: center !important;
    justify-content: center !important;
}

#header #editorial-mobile-toggle i {
    color: #ffe484 !important;
    font-size: 15px !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

#header .logo,
#header .navbar-brand .logo {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.42)) drop-shadow(0 3px 6px rgba(25, 12, 4, 0.38)) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.25)) !important;
}

@media (min-width: 992px) {

    #header #editorial-mobile-toggle,
    .header-mobile-left,
    .editorial-mobile-only {
        display: none !important;
    }

    #header .header-logo-wrap {
        position: static !important;
        transform: none !important;
        max-width: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    #header {
        height: 80px !important;
        min-height: 80px !important;
        display: flex !important;
        align-items: center !important;
    }

    #header .editorial-container {
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    #header .navbar-brand {
        display: flex !important;
        align-items: center !important;
        padding: 0 !important;
        height: 100% !important;
    }

    #header .navbar-brand .logo {
        max-height: 52px !important;
        height: 50px !important;
        width: auto !important;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.42)) drop-shadow(0 3px 6px rgba(25, 12, 4, 0.38)) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.25)) !important;
    }

    .editorial-header-search {
        display: flex !important;
    }

    .editorial-hotline {
        display: inline-flex !important;
    }
}

@media (max-width: 991.98px) {
    .editorial-header-search {
        display: none !important;
    }

    #header .editorial-container {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .header-mobile-left {
        display: flex !important;
        align-items: center !important;
    }

    #header #editorial-mobile-toggle,
    .editorial-mobile-only {
        display: inline-flex !important;
    }

    /* Logo strictly centered between hamburger and hotline on mobile */
    #header .header-logo-wrap {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        max-width: calc(100% - 110px) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        z-index: 10 !important;
    }

    #header .header-logo-wrap .navbar-brand {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    #header .header-logo-wrap .logo {
        height: 34px !important;
        max-height: 38px !important;
        width: auto !important;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.42)) drop-shadow(0 3px 6px rgba(25, 12, 4, 0.38)) drop-shadow(0 5px 12px rgba(0, 0, 0, 0.25)) !important;
    }

    /* Mobile Hotline in a Circle */
    .editorial-hotline,
    .editorial-hotline-slot .editorial-hotline {
        display: inline-flex !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        padding: 0 !important;
        border-radius: 9999px !important;
        justify-content: center !important;
        align-items: center !important;
        background: linear-gradient(145deg, #2b1f11 0%, #120c06 100%) !important;
        border: 1.5px solid #f7c948 !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 249, 210, 0.25) !important;
        color: #ffe484 !important;
    }

    .editorial-hotline-slot .editorial-hotline span {
        display: none !important;
    }

    .editorial-hotline-slot .editorial-hotline i {
        color: #ffe484 !important;
        font-size: 15px !important;
        line-height: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-indent: 0 !important;
    }
}

/* Search Bar Container: max-width 690px (reduced 60px from 750px) */
.editorial-header-search {
    max-width: 690px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Search Bar Wrapper: height 40px, rounded pill, 3D Gold rim */
.editorial-search-bar {
    position: relative !important;
    width: 100% !important;
    height: 40px !important;
    background-color: #fffdf9 !important;
    border-radius: 20px !important;
    border: 1.5px solid #ffffff !important;
    box-shadow: 0 3px 10px rgba(107, 66, 8, 0.22), inset 0 1px 2px rgba(255, 255, 255, 0.95) !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 4px 0 16px !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.editorial-search-bar:focus-within {
    border-color: #181107 !important;
    box-shadow: 0 0 0 3px rgba(247, 201, 72, 0.5), 0 4px 12px rgba(24, 17, 7, 0.2) !important;
}

/* Search Input: height 38px, text on left */
.editorial-search-input {
    flex: 1 1 auto !important;
    width: 100% !important;
    height: 38px !important;
    line-height: 38px !important;
    font-size: 14px !important;
    color: #181107 !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 8px 0 0 !important;
    margin: 0 !important;
}

.editorial-search-input::placeholder {
    color: #8a7f6d !important;
    font-size: 13.5px !important;
}

.editorial-search-input:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Search Button: Cinema Black with 24K Gold Rim & Glowing Gold Icon */
.editorial-search-btn {
    position: relative !important;
    flex-shrink: 0 !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: linear-gradient(145deg, #2b1f11 0%, #120c06 100%) !important;
    color: #ffe484 !important;
    border: 1.5px solid #f7c948 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 249, 210, 0.3) !important;
    outline: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
    padding: 0 !important;
    margin: 0 !important;
}

.editorial-search-btn:hover {
    border-color: #fff9d2 !important;
    transform: scale(1.07) !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.55), 0 0 8px rgba(247, 201, 72, 0.55) !important;
}

.editorial-search-btn i {
    color: #ffe484 !important;
    font-size: 13px !important;
    line-height: 1 !important;
    margin: 0 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6) !important;
}

.editorial-hotline-slot,
.editorial-hotline-slot .sgt-block-html {
    display: inline-flex !important;
    align-items: center !important;
    color: inherit !important;
}

/* Hotline Pill: Cinema Black & 24K Gold Rim (Filmstrip Motif) */
.editorial-hotline {
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: linear-gradient(145deg, #2b1f11 0%, #120c06 100%) !important;
    border: 1.5px solid #f7c948 !important;
    border-radius: 9999px !important;
    padding: 6px 14px !important;
    color: #ffe484 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 249, 210, 0.28) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.editorial-hotline:hover {
    transform: translateY(-1px) !important;
    border-color: #fff9d2 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 8px rgba(247, 201, 72, 0.45) !important;
    color: #fff9d2 !important;
}

.editorial-hotline span {
    color: #ffbe4c !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65) !important;
}

.editorial-hotline i {
    color: #ffbe4c !important;
    transition: transform 0.2s ease, color 0.2s ease;
}

.editorial-hotline:hover i {
    color: #fff9d2 !important;
    transform: rotate(12deg);
}

@media (max-width: 991.98px) {
    .editorial-hotline-slot .editorial-hotline span {
        display: none !important;
    }

    .editorial-hotline-slot .editorial-hotline {
        padding: 4px;
    }
}

/* =========================================================
   11. TOP BANNER & GLOBAL IMAGE CENTER FIX
   ========================================================= */

/* Center image when .image-center is used */
.image-center,
div.image-center,
p.image-center {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    clear: both;
}

.image-center img,
div.image-center img,
p.image-center img {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
}

/* Fix Topstrip Banner alignment when placed in [TOPBARRIGHT], [TOPBARLEFT], or [HEADTOP] */
.editorial-topstrip {
    display: flex;
    justify-content: center;
}

.editorial-topstrip .editorial-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.editorial-topstrip .editorial-headtop {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.editorial-topstrip .editorial-headtop:empty,
.editorial-topstrip .editorial-slot:empty,
.editorial-topbar-row>.editorial-slot:empty {
    display: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.editorial-topstrip .editorial-topbar-row {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.editorial-topstrip .editorial-slot {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.editorial-topstrip .sgt-block-html,
.editorial-topstrip .editorial-slot .sgt-block-html {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}

/* =========================================================
   12. ALL-CATEGORIES MEGA DRAWER LAYOUT OPTIMIZATION
   ========================================================= */
.editorial-drawer-columns {
    column-count: 5 !important;
    column-gap: 28px !important;
    width: 100% !important;
}

@media (max-width: 1200px) {
    .editorial-drawer-columns {
        column-count: 4 !important;
        column-gap: 20px !important;
    }
}

@media (max-width: 991.98px) {
    .editorial-drawer-columns {
        column-count: 2 !important;
        column-gap: 16px !important;
    }
}

@media (max-width: 575.98px) {
    .editorial-drawer-columns {
        column-count: 1 !important;
    }
}

.editorial-drawer-card {
    break-inside: avoid !important;
    -webkit-column-break-inside: avoid !important;
    page-break-inside: avoid !important;
    display: inline-block !important;
    width: 100% !important;
    margin-bottom: 8px !important;
    padding-bottom: 8px !important;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08) !important;
    vertical-align: top;
}

.editorial-drawer-card a {
    text-decoration: none !important;
}

/* =========================================================
   13. CINEMA GOLD RIBBON TAB & FILM TRACK BASELINE
   ========================================================= */

/* Category Header Bar Row & Dual-Track Baseline */
.editorial-category-header {
    position: relative !important;
    border-bottom: 2.5px solid #f4e3b2 !important;
    box-shadow: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 1.25rem !important;
    align-items: flex-end !important;
}

/* Cinema Gold Ribbon Tab */
.section-heading-bar {
    display: inline-flex !important;
    align-items: center !important;
    position: relative !important;
    background: linear-gradient(145deg, #2b1f11 0%, #120c06 100%) !important;
    color: #ffe484 !important;
    padding: 7px 22px 7px 14px !important;
    border: none !important;
    border-bottom: none !important;
    border-radius: 4px 14px 0 0 !important;
    box-shadow: none !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: -2.5px !important;
    /* Locks seamlessly onto the gold baseline track */
    z-index: 2 !important;
    gap: 8px !important;
}

/* Film Icon on Left of Ribbon Tab */
.section-heading-bar::before {
    content: "\f008" !important;
    /* FontAwesome film icon */
    font-family: "FontAwesome" !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 12px !important;
    color: #f7c948 !important;
    margin: 0 !important;
    text-shadow: 0 0 6px rgba(247, 201, 72, 0.6) !important;
}

/* Glowing Gold Heading Text */
.section-heading-bar h1,
.section-heading-bar h2,
.section-heading-bar h3,
.section-heading-bar h4,
.section-heading-bar a,
.section-heading-bar span {
    color: #ffe484 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85) !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    transition: color 0.2s ease, text-shadow 0.2s ease !important;
}

.section-heading-bar:hover a,
.section-heading-bar a:hover {
    color: #fff9d2 !important;
    text-shadow: 0 0 10px rgba(247, 201, 72, 0.85) !important;
}

/* Sub-categories styling */
.editorial-category-header ul {
    margin-bottom: 4px !important;
}

.editorial-category-header ul li a {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #6b6152 !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
}

.editorial-category-header ul li a:hover {
    color: #b87309 !important;
    background-color: rgba(244, 236, 224, 0.85) !important;
}

/* "Xem thêm" Circular Cinema Button with 24K Gold Rim */
.editorial-category-header>a:last-child,
.editorial-category-header a[title*="Xem thêm"] {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: linear-gradient(145deg, #2b1f11 0%, #120c06 100%) !important;
    color: #ffe484 !important;
    border: 1px solid #f7c948 !important;
    border-radius: 14px !important;
    padding: 3px 10px 3px 12px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25) !important;
    margin-bottom: 4px !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.editorial-category-header>a:last-child:hover,
.editorial-category-header a[title*="Xem thêm"]:hover {
    border-color: #fff9d2 !important;
    color: #fff9d2 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 6px rgba(247, 201, 72, 0.45) !important;
    transform: translateX(2px) !important;
}

.editorial-category-header>a:last-child i,
.editorial-category-header a[title*="Xem thêm"] i {
    color: #f7c948 !important;
    font-size: 11px !important;
    transition: transform 0.2s ease !important;
}

.editorial-category-header>a:last-child:hover i,
.editorial-category-header a[title*="Xem thêm"]:hover i {
    color: #fff9d2 !important;
    transform: translateX(2px) !important;
}

/* Block News Category: Style Main Bottom desktop sizing */
@media (min-width: 1024px) {
    .lg\:w-\[500px\] {
        width: 500px !important;
    }

    .lg\:w-\[10rem\] {
        width: 10rem !important;
    }
}

/* Footer Tier 1 Navigation: auto-hide when empty */
.editorial-footer-tier1 {
    display: none;
}

.editorial-footer-tier1:has(.editorial-slot:not(:empty)),
.editorial-footer-tier1:has(.editorial-footer-nav:not(:empty)) {
    display: block;
}

/* Hide empty editorial slots */
.editorial-slot:empty {
    display: none;
}

/* Footer Global HTML styling */
.footer-company-block a:hover {
    transition: all 0.2s ease;
}

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #ffffff !important;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    overflow: hidden;
}

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

.footer-social-btn.btn-youtube {
    background-color: #ff0000;
}

.footer-social-btn.btn-facebook {
    background-color: #1877f2;
}

.footer-social-btn i {
    color: #ffffff !important;
    font-size: 16px;
    line-height: 1;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    letter-spacing: -1em;
}

.footer-social-btn i::before {
    letter-spacing: normal;
}

/* Force Font Awesome Brands for YouTube and Facebook */
.fa-youtube,
.fa-youtube-play,
.fa-facebook,
.fa-facebook-f,
.fa-facebook-square {
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands", "FontAwesome" !important;
    font-weight: 400 !important;
    font-style: normal !important;
}

.fa-youtube-play::before,
.fa-youtube::before {
    content: "\f167" !important;
}

.fa-facebook::before,
.fa-facebook-f::before {
    content: "\f39e" !important;
}

/* Editorial News Article Lightbox Gallery */
.news-gallery-item-cursor {
    cursor: zoom-in !important;
}

.news-gallery-item-cursor:hover {
    opacity: 0.95;
    transition: opacity 0.2s ease;
}

#news-article-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

#news-article-lightbox.active {
    display: flex;
}


#news-article-lightbox .lightbox-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    padding: 16px;
    box-sizing: border-box;
}

#news-article-lightbox .lightbox-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 90vh;
    width: auto;
}

#news-article-lightbox .lightbox-img {
    max-height: 90vh;
    max-width: 90vw;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    transition: opacity 0.2s ease;
}

#news-article-lightbox .lightbox-caption-wrap {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: min(800px, 90vw);
    text-align: center;
    z-index: 30;
    pointer-events: none;
}

#news-article-lightbox .lightbox-caption {
    margin: 0;
    padding: 8px 18px;
    font-size: 13.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
    background-color: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

#news-article-lightbox .lightbox-btn-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(30, 30, 30, 0.75);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 0;
    pointer-events: auto !important;
}

#news-article-lightbox .lightbox-btn-circle:hover {
    background-color: rgba(60, 60, 60, 0.95);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.06);
}

#news-article-lightbox .lightbox-btn-circle:active {
    transform: scale(0.96);
}

#news-article-lightbox .lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    z-index: 60;
    pointer-events: auto !important;
}

#news-article-lightbox .lightbox-nav.lightbox-prev {
    left: 20px;
}

#news-article-lightbox .lightbox-nav.lightbox-next {
    right: 20px;
}

#news-article-lightbox .lightbox-close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 44px;
    height: 44px;
    z-index: 60;
    pointer-events: auto !important;
}

#news-article-lightbox .lightbox-counter {
    position: absolute;
    top: 18px;
    left: 20px;
    z-index: 60;
    background-color: rgba(30, 30, 30, 0.75);
    color: rgba(255, 255, 255, 0.92);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: auto !important;
}

#news-article-lightbox svg {
    display: block;
    margin: auto;
}

/* =========================================================
   12. HOMEPAGE NEWS BLOCKS (DESKTOP STABILITY & MOBILE 1-MAIN+SUB)
   ========================================================= */

/* Desktop enforcement (min-width: 640px) */
@media (min-width: 640px) {
    .editorial-hero-others {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }

    .editorial-hero-others>.editorial-hero-other-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .editorial-hero-others>.editorial-hero-other-item .editorial-hero-other-thumb {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        aspect-ratio: 16/10 !important;
        overflow: hidden !important;
        margin-bottom: 8px !important;
    }

    .editorial-hero-others>.editorial-hero-other-item .editorial-hero-other-thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }

    .grid-cat-container>.grid-cat-card .grid-cat-thumb,
    .two-col-featured>.two-col-card .two-col-thumb {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        aspect-ratio: 16/10 !important;
        overflow: hidden !important;
    }

    .grid-cat-container>.grid-cat-card .grid-cat-thumb img,
    .two-col-featured>.two-col-card .two-col-thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }
}

/* Mobile only (max-width: 639.98px): Tâm điểm tin mới (1 tin chính + sub-cards dạng tin phụ) */
@media (max-width: 639.98px) {
    .editorial-hero-others {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .editorial-hero-others>.editorial-hero-other-item {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding-bottom: 12px !important;
        border-bottom: 1px dashed var(--border-dashed, #e2d9c8) !important;
    }

    .editorial-hero-others>.editorial-hero-other-item:last-child {
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }

    .editorial-hero-others>.editorial-hero-other-item .editorial-hero-other-thumb {
        display: block !important;
        width: 96px !important;
        min-width: 96px !important;
        max-width: 96px !important;
        height: 60px !important;
        aspect-ratio: 16/10 !important;
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
        overflow: hidden !important;
    }

    .editorial-hero-others>.editorial-hero-other-item .editorial-hero-other-thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }

    .editorial-hero-others>.editorial-hero-other-item .editorial-hero-other-title {
        font-size: 14px !important;
        line-height: 1.4 !important;
        margin: 0 !important;
        flex: 1 1 0% !important;
        min-width: 0 !important;
    }

    .editorial-hero-others>.editorial-hero-other-item .editorial-hero-other-title a {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
}

/* Mobile only (max-width: 639.98px): Style Grid (1 tin chính, còn lại là tin phụ) */
@media (max-width: 639.98px) {
    .grid-cat-container>.grid-cat-card:not(:first-child) {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        border-bottom: 1px dashed var(--border-dashed, #e2d9c8) !important;
    }

    .grid-cat-container>.grid-cat-card:not(:first-child):last-child {
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }

    .grid-cat-container>.grid-cat-card:not(:first-child) .grid-cat-thumb {
        display: block !important;
        width: 88px !important;
        min-width: 88px !important;
        max-width: 88px !important;
        height: 55px !important;
        aspect-ratio: 16/10 !important;
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
        overflow: hidden !important;
    }

    .grid-cat-container>.grid-cat-card:not(:first-child) .grid-cat-thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }

    .grid-cat-container>.grid-cat-card:not(:first-child) .grid-cat-content {
        flex: 1 1 0% !important;
        min-width: 0 !important;
    }

    .grid-cat-container>.grid-cat-card:not(:first-child) .grid-cat-title {
        font-size: 14px !important;
        line-height: 1.4 !important;
        margin-bottom: 0 !important;
    }

    .grid-cat-container>.grid-cat-card:not(:first-child) .grid-cat-title a {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .grid-cat-container>.grid-cat-card:not(:first-child) .grid-cat-meta,
    .grid-cat-container>.grid-cat-card:not(:first-child) .grid-cat-sapo {
        display: none !important;
    }
}

/* Mobile only (max-width: 767.98px): Style Two Column (card 1 tin chính, card 2 tin phụ) */
@media (max-width: 767.98px) {
    .two-col-featured>.two-col-card:nth-child(2) {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        border-top: 1px dashed var(--border-dashed, #e2d9c8) !important;
    }

    .two-col-featured>.two-col-card:nth-child(2) .two-col-thumb {
        display: block !important;
        width: 88px !important;
        min-width: 88px !important;
        max-width: 88px !important;
        height: 55px !important;
        aspect-ratio: 16/10 !important;
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
        overflow: hidden !important;
    }

    .two-col-featured>.two-col-card:nth-child(2) .two-col-thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }

    .two-col-featured>.two-col-card:nth-child(2) .two-col-content {
        flex: 1 1 0% !important;
        min-width: 0 !important;
    }

    .two-col-featured>.two-col-card:nth-child(2) .two-col-title {
        font-size: 14px !important;
        line-height: 1.4 !important;
        margin-bottom: 0 !important;
    }

    .two-col-featured>.two-col-card:nth-child(2) .two-col-title a {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .two-col-featured>.two-col-card:nth-child(2) .two-col-meta,
    .two-col-featured>.two-col-card:nth-child(2) .two-col-sapo {
        display: none !important;
    }
}