@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,700;0,900;1,400;1,700&display=swap&subset=vietnamese');

/*
Theme Name: Flatsome Child
Theme URI: https://trongthanh.com.vn/tintuc
Description: Giao diá»‡n Cá»•ng ThÃ´ng Tin Äiá»‡n Tá»­ PhÃ²ng Cáº£nh sÃ¡t giao thÃ´ng - CÃ´ng an thÃ nh phá»‘ Báº¯c Ninh (Chuáº©n pháº³ng 100% Cá»•ng TTÄT Cá»¥c CSGT Bá»™ CÃ´ng an csgt.bocongan.gov.vn)
Author: Äá»™i Tin há»c & Viá»…n thÃ´ng CSGT
Author URI: https://trongthanh.com.vn/tintuc
Template: flatsome
Version: 3.6.2
Text Domain: flatsome-child
*/

/* =============================================================
   1. TYPOGRAPHY & GLOBAL STYLES (ROBOTO CHUáº¨N VIá»†T HÃ“A, PHáº²NG)
   ============================================================= */
html, body, p, div, span, a, li, input, select, textarea, button, h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
}

* { 
    box-sizing: border-box; 
}

body { 
    margin: 0; 
    background: #f8fafc; 
    color: #1f2937; 
    line-height: 1.5; 
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 15px; 
}

/* =============================================================
   1.1 HEADER STRUCTURE & VISIBILITY GUARANTEE
   ============================================================= */
#header,
.header,
.header-wrapper,
.csgt-official-header-container,
.csgt-official-header,
.csgt-navbar {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 100 !important;
}

.header.show-on-scroll .header-wrapper {
    visibility: visible !important;
    opacity: 1 !important;
}

/* =============================================================
   2. BANNER HEADER: Ná»€N VÃ€NG CÃT HOA VÄ‚N TRá»NG Äá»’NG ÄÃ”NG SÆ N (áº¢NH 1)
   ============================================================= */
.csgt-official-header {
    width: 100%;
    background: #f7eedc !important;
    background: linear-gradient(90deg, #faf2e3 0%, #f6ebce 45%, #eedbb9 100%) !important;
    border-bottom: 1px solid #d8c29d !important;
    padding: 16px 0 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
    position: relative;
    overflow: hidden;
}

.csgt-header-pattern-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center center !important;
    opacity: 0.22;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 0;
}

.header-content-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.header-brand-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.header-brand-logo {
    height: 78px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12));
}

.header-titles-box {
    display: flex;
    flex-direction: column;
}

.title-sub {
    font-size: 14px;
    font-weight: 800;
    color: #1f2937;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.title-agency {
    font-size: 25px;
    font-weight: 900;
    color: #CC0000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 1px 0 rgba(255,255,255,0.8);
    font-style: normal;
}
    line-height: 1.25;
    text-shadow: 0 1px 0 rgba(255,255,255,0.8);
    font-style: normal;
}

/* =============================================================
   3. THANH MAIN MENU: Ná»€N VÃ€NG NHáº T Äá»’NG Bá»˜, CHá»® ÄEN Äá»¨NG, VIáº¾T HOA Äáº¬M
   ============================================================= */
.csgt-navbar {
    background: #dfc15d !important;
    background: linear-gradient(90deg, #e5c96b 0%, #dfc15d 100%) !important;
    border-top: 1px solid #f2e29c !important;
    border-bottom: 2px solid #b91c1c !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
}

.csgt-nav-list {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}

.csgt-nav-item a {
    display: inline-block;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 800;
    color: #111827;
    text-decoration: none;
    text-transform: uppercase;
    font-style: normal;
    letter-spacing: 0.3px;
    transition: background 0.15s, color 0.15s;
}

.csgt-nav-item:hover a {
    background: #ceae49;
    color: #ffffff;
}

.csgt-nav-item.active a {
    background: #CC0000 !important;
    color: #ffffff !important;
    font-weight: 800;
}

/* =============================================================
   4. TICKER BAR & CLOCK & MARQUEE ANIMATION
   ============================================================= */
.csgt-ticker-strip {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 6px 0;
}

.ticker-strip-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ticker-marquee-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 24px;
    line-height: 24px;
    white-space: nowrap;
}

.ticker-marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: csgtTickerMarquee 28s linear infinite;
    color: #CC0000;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

@keyframes csgtTickerMarquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* =============================================================
   5. HÃŒNH Ná»€N TRá»NG Äá»’NG CHÃŒM NGÃ€NH CÃ”NG AN (áº¢NH 1)
   ============================================================= */
.csgt-hero-top-section {
    position: relative;
    background-color: #ffffff;
    overflow: hidden;
    padding: 20px 0 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
}

.csgt-trong-dong-watermark {
    position: absolute;
    inset: 0;
    background-image: url('assets/images/header-pattern.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

/* =============================================================
   6. LÆ¯á»šI GRID CHUYÃŠN Má»¤C CÃ‚N Äá»I (Sá»¬A Dá»¨T ÄIá»‚M Lá»–I Vá»  Ã” TRáº®NG á»ž áº¢NH 2)
   ============================================================= */
.csgt-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.csgt-category-grid > div {
    min-width: 0;
}

/* =============================================================
   7. SINGLE POST BÃO CHÃ HIá»†N Äáº I (CHUáº¨N PHáº²NG, KHÃ”NG VIá»€N THÃ”, Táº®T BÃŒNH LUáº¬N)
   ============================================================= */
.csgt-single-article {
    background: #ffffff;
    padding: 0;
    border: none;
    box-shadow: none;
}

.article-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 15px;
}

.article-entry-content {
    font-size: 16px;
    line-height: 1.75;
    color: #1f2937;
    font-family: 'Roboto', Arial, sans-serif;
}

.article-entry-content p {
    margin: 0 0 1.25em 0;
    line-height: 1.75;
    font-size: 16px;
}

.article-entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 15px auto;
    display: block;
}

.article-entry-content h2, 
.article-entry-content h3 {
    color: #CC0000;
    font-weight: 800;
    margin: 1.5em 0 0.6em;
    line-height: 1.4;
}

.article-entry-content table {
    width: 100% !important;
    margin: 20px 0;
    border-collapse: collapse;
    font-size: 13.5px;
}

.article-entry-content table th {
    background: #CC0000;
    color: #fff;
    padding: 10px;
    font-weight: 700;
    text-align: center;
}

.article-entry-content table td {
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
}

/* Táº®T TOÃ€N Bá»˜ TÃNH NÄ‚NG BÃŒNH LUáº¬N VÃ€ KHUNG VIá»€N CÅ¨ */
#comments, 
.comments-area, 
.comment-respond, 
.comment-form, 
#reply-title, 
.logged-in-as {
    display: none !important;
}

/* =============================================================
   8. RESPONSIVE MEDIA QUERIES
   ============================================================= */
@media (max-width: 992px) {
    .csgt-top-grid,
    .csgt-three-quick-buttons,
    div[style*="grid-template-columns: 2fr 1fr"],
    .footer-cols {
        grid-template-columns: 1fr !important;
    }

    .csgt-category-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .header-content-flex {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .header-brand-wrap {
        flex-direction: column;
    }

    .title-agency {
        font-size: 18px !important;
    }

    .ticker-strip-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

@media (max-width: 600px) {
    .csgt-category-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ===== FORCE FONT DUNG PHANG CHUAN CSGT - CHONG BE FONT GOOGLE FONTS CDN ===== */
* {
    font-family: Arial, Helvetica, 'Roboto', sans-serif !important;
}
body, p, div, span, td, th, li, a,
h1, h2, h3, h4, h5, h6,
input, button, select, textarea, label {
    font-family: Arial, Helvetica, 'Roboto', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.csgt-navbar, .csgt-nav-link, .csgt-news-item,
.csgt-fines-table, .csgt-fines-table th, .csgt-fines-table td {
    font-family: Arial, Helvetica, 'Roboto', sans-serif !important;
    line-height: 1.6 !important;
}
/* Vo hieu hoa import Google Fonts neu co */
@import url('') !important;

/* ==========================================================================
   VÁ TRIỆT ĐỂ LỖI BỂ FONT CHỮ - ÉP FONT ĐỨNG PHẲNG ARIAL/ROBOTO TOÀN HỆ THỐNG
   ========================================================================== */
* {
    font-family: Arial, Helvetica, Roboto, sans-serif !important;
}
.nav-dark, .nav-light, .header-nav, .widget-title, .entry-title {
    font-family: Arial, Helvetica, Roboto, sans-serif !important;
    font-weight: bold !important;
}
body, p, div, span, td, th, li, a, h1, h2, h3, h4, h5, h6, input, button, select, textarea, label {
    font-family: Arial, Helvetica, Roboto, sans-serif !important;
}
.csgt-navbar, .csgt-nav-link, .csgt-news-item, .csgt-fines-table {
    font-family: Arial, Helvetica, Roboto, sans-serif !important;
}


/* ==========================================================================
   2. ÉP FONT ĐỨNG ARIAL NỘI BỘ TOÀN DIỆN - TRIỆT TIÊU LỖI BỂ FONT CHỮ
   ========================================================================== */
* { font-family: Arial, Helvetica, Roboto, sans-serif !important; }
.nav-dark, .nav-light, .header-nav, .widget-title, .entry-title, span, a, h1, h2, h3, h4, h5, h6 { font-family: Arial, Helvetica, Roboto, sans-serif !important; }


/* KHẮC PHỤC TRIỆT ĐỂ LỖI NỀN ĐEN VÀ VIỀN ĐEN CỦA LOGO FILE PNG */
.header-logo img, .logo img {
    background: transparent !important;
    object-fit: contain !important;
}
.header-brand-logo, .logo-box img {
    background: transparent !important;
    mix-blend-mode: normal !important;
    object-fit: contain !important;
}

/* ==========================================================================
   TRIỆT TIÊU TOÀN BỘ CHỮ RÁC CHÂN TRANG ("ASSIGN A MENU", "WOOCOMMERCE NOT FOUND")
   ========================================================================== */
.footer-widgets,
.mfp-hide,
#main-menu,
#main-menu.mfp-hide,
.account-item,
.sidebar-account,
.footer-secondary .woocommerce {
    display: none !important;
}

/* ==========================================================================
   DESKTOP FOOTER GRID DEFINITION
   ========================================================================== */
.csgt-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ==========================================================================
   1. NÚT TRƯỢT LÊN TRÊN ĐẦU TRANG (BACK TO TOP BUTTON CHUẨN NGÀNH)
   ========================================================================== */
.csgt-back-to-top {
    position: fixed !important;
    bottom: 22px !important;
    left: 14px !important;
    right: auto !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: #CC0000 !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
    z-index: 9990 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(20px) !important;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease !important;
    cursor: pointer !important;
    text-decoration: none !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
}
.csgt-back-to-top.visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}
.csgt-back-to-top:hover {
    background: #990000 !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45) !important;
}
.csgt-back-to-top svg {
    display: block !important;
    pointer-events: none !important;
}

/* ==========================================================================
   2. HAMBURGER BUTTON VÀ MOBILE MENU DRAWER (CHUẨN RESPONSIVE MOBILE/TABLET)
   ========================================================================== */
.csgt-hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 38px;
    height: 38px;
    background: #CC0000;
    border: 1px solid #990000;
    border-radius: 4px;
    padding: 7px 6px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.18);
    flex-shrink: 0;
    z-index: 10;
}
.csgt-hamburger-btn span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: #ffffff;
    border-radius: 2px;
}

.csgt-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.csgt-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.csgt-mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: #ffffff;
    z-index: 100001;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    transition: right 0.32s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.csgt-mobile-drawer.active {
    right: 0;
}
.csgt-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #faf5ea;
    border-bottom: 2px solid #CC0000;
}
.csgt-drawer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.csgt-drawer-close {
    background: transparent;
    border: none;
    font-size: 20px;
    font-weight: 800;
    color: #475569;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    border-radius: 3px;
}
.csgt-drawer-close:hover {
    color: #CC0000;
}
.csgt-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}
.csgt-drawer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.csgt-drawer-menu li a {
    display: block;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    text-transform: uppercase;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}
.csgt-drawer-menu li a:hover,
.csgt-drawer-menu li a:active {
    background: #fef2f2;
    color: #CC0000;
    padding-left: 22px;
}
.csgt-drawer-menu li.drawer-highlight a {
    background: #fff7ed;
    color: #991b1b;
    font-weight: 900;
    border-left: 4px solid #CC0000;
    border-bottom: 1px solid #fed7aa;
}
.csgt-drawer-menu li.drawer-divider {
    padding: 12px 18px 6px;
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.5px;
    background: #f8fafc;
}
.csgt-drawer-footer {
    padding: 12px 16px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

/* ==========================================================================
   3. HỘP TRA CỨU PHẠT NGUỘI ĐẶC BIỆT CHO MOBILE (NGAY DƯỚI TICKER BAR)
   ========================================================================== */
.csgt-mobile-fines-container {
    display: none;
}
@media (max-width: 767px) {
    .csgt-mobile-fines-container {
        display: block !important;
        padding: 10px 12px 14px !important;
        background: #f8fafc !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }
    .csgt-mobile-fines-card {
        background: linear-gradient(135deg, #15803d 0%, #166534 50%, #14532d 100%) !important;
        border-radius: 8px !important;
        padding: 14px 14px 12px !important;
        box-shadow: 0 4px 12px rgba(22, 101, 52, 0.35) !important;
        border: 2px solid #22c55e !important;
        text-align: center !important;
    }
    .csgt-mobile-fines-header {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        margin-bottom: 10px !important;
    }
    .csgt-fines-badge-icon {
        font-size: 18px !important;
    }
    .csgt-fines-badge-title {
        font-size: 14px !important;
        font-weight: 900 !important;
        color: #ffffff !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
    }
    .csgt-mobile-fines-form {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        margin: 0 !important;
    }
    .csgt-mobile-fines-input-wrap {
        width: 100% !important;
    }
    .csgt-mobile-fines-input {
        width: 100% !important;
        box-sizing: border-box !important;
        height: 44px !important;
        border: 2px solid #fbbf24 !important;
        border-radius: 6px !important;
        background: #ffffff !important;
        color: #0f172a !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        text-align: center !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        padding: 0 10px !important;
        outline: none !important;
        box-shadow: inset 0 2px 4px rgba(0,0,0,0.08) !important;
    }
    .csgt-mobile-fines-input::placeholder {
        color: #94a3b8 !important;
        font-size: 12.5px !important;
        font-weight: 600 !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
    }
    .csgt-mobile-fines-btn {
        width: 100% !important;
        height: 42px !important;
        background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%) !important;
        color: #ffffff !important;
        font-size: 14px !important;
        font-weight: 900 !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        border: 1px solid #7f1d1d !important;
        border-radius: 6px !important;
        cursor: pointer !important;
        box-shadow: 0 2px 6px rgba(185, 28, 28, 0.4) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        transition: background 0.2s ease !important;
    }
    .csgt-mobile-fines-btn:hover {
        background: #990000 !important;
    }
    .csgt-mobile-fines-footer-note {
        font-size: 11px !important;
        color: #dcfce7 !important;
        margin-top: 8px !important;
        line-height: 1.4 !important;
        opacity: 0.95 !important;
    }
}

/* ==========================================================================
   4. QUY HOẠCH GIAO DIỆN DI ĐỘNG (MOBILE RESPONSIVE <= 767px)
   ========================================================================== */
@media (max-width: 767px) {
    /* 1. Sửa lỗi nền vàng trải rộng & cố định chiều cao header */
    .csgt-official-header {
        height: auto !important;
        padding: 5px 0 !important;
    }
    .header-content-flex {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        text-align: left !important;
        padding: 0 10px !important;
    }
    .header-brand-wrap {
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        flex: 1 !important;
    }
    .header-brand-logo {
        width: 48px !important;
        height: 48px !important;
    }
    .header-titles-box {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }
    .title-sub {
        font-size: 10px !important;
        font-weight: 800 !important;
        color: #1f2937 !important;
        margin: 0 0 1px 0 !important;
        line-height: 1.2 !important;
        letter-spacing: 0.3px !important;
    }
    .title-agency {
        font-size: 13.5px !important;
        font-weight: 900 !important;
        color: #CC0000 !important;
        margin: 0 !important;
        line-height: 1.2 !important;
        letter-spacing: 0.2px !important;
    }

    /* Ẩn ô tìm kiếm desktop trên header để nhường chỗ */
    .header-search-wrap {
        display: none !important;
    }

    /* Hiện nút hamburger 3 gạch */
    .csgt-hamburger-btn {
        display: flex !important;
    }

    /* 2. Ẩn toàn bộ danh sách chữ menu dàn trải cũ */
    .csgt-navbar {
        display: none !important;
    }

    /* 3. Ticker Bar co giãn mượt mà */
    .csgt-ticker-strip {
        padding: 4px 0 !important;
    }
    .ticker-clock-block {
        display: none !important;
    }
    .ticker-marquee-container {
        margin-left: 0 !important;
    }

    /* 4. Khắc phục lỗi tràn, chồng chữ tại chân trang Footer (Single Column Stack) */
    .csgt-official-footer .csgt-footer-grid,
    .csgt-official-footer .container {
        display: block !important;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        margin-bottom: 15px !important;
    }
    .footer-widgets .col,
    .footer-sidebar .col,
    footer .col,
    .csgt-footer-col {
        width: 100% !important;
        max-width: 100% !important;
        flex-basis: 100% !important;
        display: block !important;
        padding: 10px 15px !important;
        margin-bottom: 15px !important;
        text-align: left !important;
        box-sizing: border-box !important;
        line-height: 1.6 !important;
    }
    .csgt-footer-col h4 {
        margin-bottom: 8px !important;
    }
}

/* ==========================================================================
   5. TINH GỌN MENU TRƯỢT NGANG TRÊN 1 HÀNG CHUẨN TRONGTHANH.COM.VN
   ========================================================================== */
@media (min-width: 768px) {
    .header-nav-main,
    .csgt-nav-list {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    .header-nav-main::-webkit-scrollbar,
    .csgt-nav-list::-webkit-scrollbar,
    .csgt-nav-scroll-wrap::-webkit-scrollbar {
        display: none !important;
    }
    .header-nav-main > li,
    .csgt-nav-list > li {
        display: inline-block !important;
        float: none !important;
        flex-shrink: 0 !important;
    }
}

/* ==========================================================================
   6. DẢI 5 ICON CỜ CHUYỂN ĐỔI NGÔN NGỮ (VIỆT - ANH - TRUNG - HÀN - NHẬT)
   ========================================================================== */
.csgt-lang-switcher {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}
.csgt-flag-btn {
    background: transparent !important;
    border: 1px solid rgba(0, 0, 0, 0.22) !important;
    border-radius: 3px !important;
    padding: 2px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    line-height: 1 !important;
    outline: none !important;
}
.csgt-flag-btn:hover {
    transform: scale(1.12) !important;
    border-color: #CC0000 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}
.csgt-flag-btn.active {
    border: 1.5px solid #CC0000 !important;
    box-shadow: 0 0 5px rgba(204, 0, 0, 0.6) !important;
    background: rgba(204, 0, 0, 0.12) !important;
    transform: scale(1.05) !important;
}
.csgt-flag-btn svg {
    display: block !important;
    pointer-events: none !important;
}

/* ẨN THANH CÔNG CỤ VÀ KHUNG DỊCH GOOGLE TRANSLATE ĐỂ TRÁNH VỠ GIAO DIỆN */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
iframe.goog-te-banner-frame,
.goog-tooltip,
.goog-tooltip:hover {
    display: none !important;
    visibility: hidden !important;
}
body {
    top: 0 !important;
    position: static !important;
}
#goog-gt-tt,
.goog-te-balloon-frame {
    display: none !important;
}
.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
}
font {
    background: transparent !important;
    box-shadow: none !important;
}




/* ==========================================================================
   CƯỠNG CHẾ ẨN MENU DỌC BỊ KẸT TRÊN MOBILE VÀ DESKTOP KHI CHƯA BẤM NÚT
   ========================================================================== */
.mobile-sidebar, #mobile-menu, #main-menu, .nav-sidebar, .main-menu-overlay, div#main-menu, .sidebar-menu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transform: translateX(-100%) !important; /* Đẩy lùi hoàn toàn ra ngoài rìa màn hình */
    pointer-events: none !important;
}

/* Chỉ cho phép hiển thị dạng Drawer trượt mượt mà KHI VÀ CHỈ KHI cán bộ hoặc người dân bấm vào nút Hamburger 3 gạch */
body.mobile-sidebar-active .mobile-sidebar, 
body.main-menu-open #mobile-menu,
body.main-menu-open #main-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateX(0) !important;
    pointer-events: auto !important;
    z-index: 99999 !important;
}

/* KHỐNG CHẾ ĐẶC QUYỀN CHO CSGT MOBILE DRAWER */
#csgt-mobile-drawer, .csgt-mobile-drawer {
    position: fixed !important;
    top: 0 !important;
    right: -320px !important;
    width: 300px !important;
    max-width: 85vw !important;
    height: 100% !important;
    background: #ffffff !important;
    z-index: 100001 !important;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3) !important;
    transition: right 0.32s cubic-bezier(0.25, 1, 0.5, 1) !important;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

#csgt-mobile-drawer.active, .csgt-mobile-drawer.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    right: 0 !important;
    pointer-events: auto !important;
}

@media (min-width: 992px) {
    .csgt-hamburger-btn { display: none !important; }
    .mobile-sidebar, #mobile-menu, #main-menu, .nav-sidebar, .main-menu-overlay, .mfp-bg, .mfp-wrap, #csgt-mobile-drawer, .csgt-mobile-drawer, #csgt-drawer-overlay, .csgt-drawer-overlay {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transform: translateX(-100%) !important;
    }
    body.main-menu-overlay-open { overflow: auto !important; }
}

@media (max-width: 991px) {
    .csgt-hamburger-btn {
        display: flex !important;
    }
}


/* ==========================================================================
   TINH CHỈNH CUỐI CÙNG: ÉP CỨNG THANH MENU 1 HÀNG NGANG & LOẠI BỎ KHUNG CỜ
   ========================================================================== */

/* 1. ÉP CỨNG THANH MAIN MENU NỀN VÀNG CÁT THÀNH 1 HÀNG NGANG DUY NHẤT */
.csgt-navbar {
    width: 100% !important;
    overflow: hidden !important;
}
.csgt-navbar-flex-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
}
.csgt-nav-scroll-wrap {
    flex: 1 1 auto !important;
    min-width: 0 !important; /* Bắt buộc để Flexbox co giãn và kích hoạt cuộn ngang */
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    scrollbar-width: none !important; /* Firefox ẩn scrollbar */
    -ms-overflow-style: none !important; /* IE / Edge */
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth !important;
}
.csgt-nav-scroll-wrap::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
.csgt-nav-list,
.header-nav-main {
    display: flex !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    align-items: center !important;
    width: max-content !important;
}
.csgt-nav-item {
    display: inline-block !important;
    flex-shrink: 0 !important; /* Tuyệt đối không co ép chữ */
    white-space: nowrap !important;
}
.csgt-nav-link {
    display: inline-block !important;
    white-space: nowrap !important;
    text-overflow: clip !important;
    word-break: keep-all !important;
    padding: 0 8px !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    line-height: 38px !important;
}

/* 2. LOẠI BỎ TOÀN BỘ KHUNG Ô CHỮ NHẬT XUNG QUANH CỜ NGÔN NGỮ */
.csgt-nav-flags-dock,
.csgt-drawer-lang-strip,
.csgt-lang-switcher {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}
.csgt-nav-flags-dock {
    flex-shrink: 0 !important;
    padding: 0 0 0 10px !important;
    margin: 0 !important;
}
.csgt-lang-switcher {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 0 !important;
    margin: 0 !important;
}
.csgt-flag-btn,
.csgt-flag-btn:hover,
.csgt-flag-btn:focus,
.csgt-flag-btn:active,
.csgt-flag-btn.active,
button.csgt-flag-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    line-height: 1 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    border-radius: 0 !important;
}
.csgt-flag-btn svg {
    display: block !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    border-radius: 2px !important;
    width: 22px !important;
    height: 15px !important;
    transition: transform 0.18s ease, filter 0.18s ease !important;
}
.csgt-flag-btn:hover svg {
    transform: scale(1.15) !important;
    filter: brightness(1.08) !important;
}
.csgt-flag-btn.active svg {
    transform: scale(1.08) !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35)) !important;
}

/* 3. ẨN HAI HỘP TIỆN ÍCH HỒNG VÀ XANH DƯƠNG TRÊN SIDEBAR */
a[href*="tra-cuu-phat-nguoi"][style*="background:#be185d"],
a[href*="tin-nhanh-giao-thong"][style*="background:#1e40af"],
.csgt-pink-box,
.csgt-blue-box {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}


/* ==========================================================================
   CĂN CHỈNH TỶ LỆ 7 CỘT BẢNG PHẠT NGUỘI CHO ĐỀU ĐẸP (CHUẨN 100%)
   ========================================================================== */
.csgt-fines-table,
table.csgt-fines-table,
table.is-bordered.is-striped {
    table-layout: fixed !important;
    width: 100% !important;
    border-collapse: collapse !important;
}

/* Cột 1 (STT): 5% */
.csgt-fines-table th:nth-child(1),
.csgt-fines-table td:nth-child(1),
table.is-bordered.is-striped th:nth-child(1),
table.is-bordered.is-striped td:nth-child(1) {
    width: 5% !important;
    max-width: 5% !important;
    text-align: center !important;
    padding: 10px 4px !important;
}

/* Cột 2 (BIỂN SỐ): 12% - ÉP CỨNG 1 DÒNG DUY NHẤT */
.csgt-fines-table th:nth-child(2),
.csgt-fines-table td:nth-child(2),
table.is-bordered.is-striped th:nth-child(2),
table.is-bordered.is-striped td:nth-child(2) {
    width: 12% !important;
    max-width: 12% !important;
    white-space: nowrap !important;
    text-align: center !important;
    font-weight: 900 !important;
    color: #CC0000 !important;
    font-family: monospace, Arial, sans-serif !important;
    padding: 10px 4px !important;
}

/* Cột 3 (THỜI GIAN VI PHẠM): 12% */
.csgt-fines-table th:nth-child(3),
.csgt-fines-table td:nth-child(3),
table.is-bordered.is-striped th:nth-child(3),
table.is-bordered.is-striped td:nth-child(3) {
    width: 12% !important;
    max-width: 12% !important;
    text-align: center !important;
    padding: 10px 4px !important;
    font-size: 12px !important;
}

/* Cột 4 (ĐỊA ĐIỂM VI PHẠM): 23% */
.csgt-fines-table th:nth-child(4),
.csgt-fines-table td:nth-child(4),
table.is-bordered.is-striped th:nth-child(4),
table.is-bordered.is-striped td:nth-child(4) {
    width: 23% !important;
    max-width: 23% !important;
    text-align: left !important;
    padding: 10px 8px !important;
}

/* Cột 5 (LOẠI PHƯƠNG TIỆN): 11% */
.csgt-fines-table th:nth-child(5),
.csgt-fines-table td:nth-child(5),
table.is-bordered.is-striped th:nth-child(5),
table.is-bordered.is-striped td:nth-child(5) {
    width: 11% !important;
    max-width: 11% !important;
    text-align: center !important;
    padding: 10px 4px !important;
}

/* Cột 6 (MÀU BIỂN): 14% - NỚI RỘNG CHO CỤM "Nền màu trắng, chữ và số màu đen" */
.csgt-fines-table th:nth-child(6),
.csgt-fines-table td:nth-child(6),
table.is-bordered.is-striped th:nth-child(6),
table.is-bordered.is-striped td:nth-child(6) {
    width: 14% !important;
    max-width: 14% !important;
    text-align: center !important;
    padding: 10px 4px !important;
    line-height: 1.35 !important;
}

/* Cột 7 (HÀNH VI VI PHẠM): 23% */
.csgt-fines-table th:nth-child(7),
.csgt-fines-table td:nth-child(7),
table.is-bordered.is-striped th:nth-child(7),
table.is-bordered.is-striped td:nth-child(7) {
    width: 23% !important;
    max-width: 23% !important;
    text-align: left !important;
    padding: 10px 8px !important;
}

/* ==========================================================================
   1. CĂN CHỈNH CHIỀU CAO NÚT TÌM KIẾM BẰNG KHÍT Ô NHẬP LIỆU (36PX FLUSH)
   ========================================================================== */
.header-search-form form,
form.header-search-form,
.header-search-wrap form,
.header-search-form-inner {
    display: flex !important;
    align-items: stretch !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.header-search-form input[type="search"],
.header-search-form input[type="text"],
.header-search-wrap input[type="search"],
.header-search-wrap input[type="text"],
.search-box-input {
    height: 36px !important;
    min-height: 36px !important;
    line-height: 36px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    box-sizing: border-box !important;
    border-radius: 3px 0 0 3px !important;
}

.header-search-form button,
.header-search-form input[type="submit"],
.header-search-wrap button,
.header-search-wrap input[type="submit"],
.search-box-btn {
    height: 36px !important;
    min-height: 36px !important;
    line-height: 36px !important;
    margin: 0 !important;
    padding: 0 15px !important;
    font-size: 13px !important;
    box-sizing: border-box !important;
    border-radius: 0 3px 3px 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.kgt-search-box button,
.kgt-search-box input[type="submit"],
.csgt-fines-widget-green button,
.csgt-fines-widget-green input[type="submit"],
.csgt-fines-widget-green button[type="submit"] {
    height: 36px !important;
    min-height: 36px !important;
    line-height: 34px !important;
    padding: 0 14px !important;
    font-size: 13px !important;
    margin: 0 !important;
    border-radius: 3px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

.kgt-search-box input[type="text"],
.csgt-fines-widget-green input[type="text"] {
    height: 36px !important;
    min-height: 36px !important;
    line-height: 36px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* ==========================================================================
   2. TINH GỌN THANH MENU NGANG VÀ NÚT MỞ RỘNG DANH MỤC TRÊN MÁY TÍNH
   ========================================================================== */
/* Ẩn triệt để 3 mục TRANG CHỦ, GIỚI THIỆU, LIÊN HỆ trên thanh menu ngang chính */
.csgt-nav-list .menu-item-home,
.csgt-nav-list .item-trang-chu,
.csgt-nav-list .item-gioi-thieu,
.csgt-nav-list .item-lien-he,
.csgt-nav-list a[href$="/chuc-nang-nhiem-vu/"],
.csgt-nav-list a[href$="/lien-he/"] {
    display: none !important;
}

/* Nút Hamburger mở rộng danh mục trên Desktop */
.csgt-hamburger-trigger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}
.csgt-hamburger-trigger:hover {
    background: rgba(0, 0, 0, 0.12) !important;
    border-color: rgba(0, 0, 0, 0.25) !important;
}

/* Cho phép Drawer mở trên Desktop khi active */
@media (min-width: 992px) {
    #csgt-mobile-drawer.active {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        right: 0 !important;
        pointer-events: auto !important;
        transform: none !important;
        z-index: 100001 !important;
    }
    #csgt-drawer-overlay.active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        z-index: 100000 !important;
    }
}



/* =============================================================
   GỠ BỎ HOÀN TOÀN ĐƯỜNG VIỀN & BÓNG ĐỔ CỦA LOGO ZALO & FACEBOOK
   ============================================================= */
.kgt-social-logo, .kgt-social-box img, .kgt-post-social-footer img,
a[href*="zalo.me"] img, a[href*="facebook.com"] img,
.csgt-article-social-connect img {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    filter: none !important;
}

/* =============================================================
   ÉP MÀU CHỮ TRẮNG SÁNG 100% CHO CẢ 3 KHỐI TIỆN ÍCH CỘT PHẢI
   (Đỏ tía, Xanh dương và Xanh đậm Dịch vụ công)
   Triệt tiêu hoàn toàn tình trạng chữ xám tối bị chìm vào màu nền
   ============================================================= */
.csgt-utility-red,
.csgt-utility-red *,
.csgt-utility-red h4,
.csgt-utility-red p,
.csgt-utility-red span,
.csgt-utility-red a,
.csgt-utility-red div {
    color: #FFFFFF !important;
}

.csgt-utility-blue,
.csgt-utility-blue *,
.csgt-utility-blue h4,
.csgt-utility-blue p,
.csgt-utility-blue span,
.csgt-utility-blue a,
.csgt-utility-blue div {
    color: #FFFFFF !important;
}

.csgt-utility-dvc,
.csgt-utility-dvc *,
.csgt-utility-dvc h4,
.csgt-utility-dvc p,
.csgt-utility-dvc span,
.csgt-utility-dvc a,
.csgt-utility-dvc div,
.csgt-utility-navy,
.csgt-utility-navy * {
    color: #FFFFFF !important;
}

/* Ép màu trắng chỉ cho các khối tiện ích Sidebar/Widget chuyên biệt, không áp dụng cho Menu Drawer */
.csgt-utility-red a,
.csgt-utility-red span,
.csgt-utility-red div,
.csgt-utility-navy a,
.csgt-utility-navy span,
.csgt-utility-navy div {
    color: #FFFFFF !important;
}


/* ==============================================================================
   CHÂN TRANG (FOOTER) NỀN ĐỎ CỜ HOÀNG GIA (#9E1116) MẶT TRỐNG ĐỒNG ĐÔNG SƠN VÀNG KIM KHỔNG LỒ
   ============================================================================== */
footer, .footer-wrapper, .csgt-official-footer, .footer-1, .footer-2 {
    position: relative !important;
    background-color: #9E1116 !important;
    background-image: url('../../uploads/csgt/trong-dong-dong-son-vang-kim.svg'), radial-gradient(circle at center, #C8191E 0%, #9E1116 55%, #75080C 100%) !important;
    background-size: 100% auto, cover !important;
    background-position: center center, center center !important;
    background-repeat: no-repeat, no-repeat !important;
    color: #ffffff !important;
    margin-top: 25px !important;
    padding: 18px 0 12px 0 !important;
    border-top: 3px solid #FFD54F !important;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.18) !important;
    line-height: 1.35 !important;
}
footer *, .footer-wrapper *, .csgt-official-footer * {
    border-color: rgba(255, 255, 255, 0.22) !important;
}
footer p, .footer-wrapper p, .csgt-official-footer p {
    color: #ffffff !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    margin-bottom: 5px !important;
}
footer span, .footer-wrapper span, .csgt-official-footer span,
footer li, .footer-wrapper li, .csgt-official-footer li {
    color: #ffffff !important;
    font-weight: 500 !important;
}
footer a, .footer-wrapper a, .csgt-official-footer a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.2s ease !important;
}
footer a:hover, .footer-wrapper a:hover, .csgt-official-footer a:hover {
    color: #FFD54F !important;
    text-decoration: underline !important;
}
footer h1, footer h2, footer h3, footer h4, footer h5, footer h6,
.footer-wrapper h1, .footer-wrapper h2, .footer-wrapper h3, .footer-wrapper h4, .footer-wrapper h5, .footer-wrapper h6,
.csgt-official-footer h1, .csgt-official-footer h2, .csgt-official-footer h3, .csgt-official-footer h4, .csgt-official-footer h5, .csgt-official-footer h6 {
    color: #FFE082 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5) !important;
    font-weight: 800 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}
.absolute-footer, .csgt-copyright-strip {
    background-color: rgba(60, 0, 5, 0.45) !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.18) !important;
}

@media (max-width: 768px) {
    footer, .footer-wrapper, .csgt-official-footer, .footer-1, .footer-2 {
        background-size: cover, cover !important;
    }
}


/* ==============================================================================
   ĐẦU TRANG & CHÂN TRANG ĐỎ HOÀNG GIA - TRỐNG ĐỒNG TRÀN VIỀN 100% WIDTH
   ============================================================================== */
.csgt-main-banner {
    position: relative !important;
    background-color: #9E1116 !important;
    background: linear-gradient(135deg, #9E1116 0%, #C8191E 50%, #8B0000 100%) !important;
    border-bottom: 1px solid #75080C !important;
    padding: 12px 20px !important;
    width: 100% !important;
}
.csgt-official-footer {
    padding: 14px 16px 10px 16px !important;
}
.csgt-main-banner-overlay {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-image: url('../../uploads/csgt/trong-dong-dong-son-vang-kim.svg') !important;
    background-size: 100% auto !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    opacity: 0.38 !important;
}
.csgt-brand-sub {
    color: #FFFFFF !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6) !important;
}
.csgt-brand-main {
    color: #FFE082 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.7) !important;
}
@media (max-width: 768px) {
    .csgt-main-banner-overlay {
        background-size: cover !important;
    }
    footer, .footer-wrapper, .csgt-official-footer, .footer-1, .footer-2 {
        background-size: cover, cover !important;
    }
}

/* ==============================================================================
   CHỐNG TRÀN VIỀN MOBILE TOÀN TRANG (RESPONSIVE VIEWPORT SAFEGUARD)
   ============================================================================== */
html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative !important;
}

*, *::before, *::after {
    box-sizing: border-box !important;
}

img, video, iframe, table {
    max-width: 100% !important;
    height: auto;
}

@media (max-width: 768px) {
    .row, .col, .page-wrapper, .blog-archive, .category, .archive, .container, .content-area {
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    .csgt-category-grid {
        grid-template-columns: 1fr !important;
    }
    .csgt-official-header-root, .csgt-main-banner-inner, .csgt-nav-container, .csgt-ticker-bar {
        max-width: 100vw !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    .post-item, .entry-summary, .entry-title, .entry-content {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
    }
}



/* ==============================================================================
   PHẦN 1: QUY TẮC MOBILE-FIRST TỐI CAO - CHỐNG TRÀN VIỀN & CĂN CHỈNH TOÀN TRANG
   ============================================================================== */

/* Khóa chặt khung nhìn ngang toàn trang */
html, body, #wrapper, #main {
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

/* Khóa cứng chiều rộng hình ảnh bài viết chống kéo tràn viền */
.entry-content img,
.article-inner img,
.post-item img,
.box-image img,
figure img,
figure {
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
}

/* CHUẨN HÓA KHUNG PHÁT VIDEO 16:9 (TRIỆT TIÊU KHOẢNG ĐEN 70%) */
.kgt-video-embed-box,
.entry-content .video-fit,
.article-entry-content .video-fit,
.responsive-embed {
    position: relative !important;
    width: 100% !important;
    height: 0 !important;
    padding-bottom: 56.25% !important;
    overflow: hidden !important;
    background: #000000 !important;
    border-radius: 8px !important;
    margin: 18px 0 !important;
}
.kgt-video-embed-box iframe,
.entry-content .video-fit iframe,
.article-entry-content .video-fit iframe,
.responsive-embed iframe,
.entry-content iframe[src*="youtube.com"],
.article-entry-content iframe[src*="youtube.com"] {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    min-height: 100% !important;
    border: 0 !important;
}

/* CHUẨN HÓA BẢN ĐỒ GOOGLE MAPS (TRIỆT TIÊU KHOẢNG TRẮNG 70%) */
.entry-content iframe[src*="google.com/maps"],
.article-entry-content iframe[src*="google.com/maps"],
.kgt-map-embed iframe,
iframe[src*="maps.google.com"] {
    display: block !important;
    width: 100% !important;
    height: 420px !important;
    min-height: 420px !important;
    border: 0 !important;
    margin: 0 !important;
}
.kgt-map-embed-wrapper,
.kgt-map-embed {
    height: auto !important;
    overflow: hidden !important;
    padding: 0 !important;
    border-radius: 10px !important;
}

/* ==============================================================================
   QUY CHUẨN ĐỒNG BỘ 1 BỐ CỤC BÁO CHÍ CHO 100% BÀI VIẾT (SINGLE POST 960PX)
   ============================================================================== */
body.single-post #main .page-wrapper,
body.single-post .article-inner,
body.single-post .csgt-single-post-main {
    box-sizing: border-box !important;
}

@media (min-width: 901px) {
    body.single-post #main .page-wrapper,
    body.single-post .csgt-single-post-main {
        max-width: 1200px !important;
        width: 100% !important;
        margin: 16px auto !important;
        padding: 0 15px !important;
        background: transparent !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
    }
    .csgt-single-grid {
        display: grid !important;
        grid-template-columns: 68% 32% !important;
        gap: 24px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .csgt-single-left-col {
        background: #ffffff !important;
        padding: 22px 26px !important;
        border-radius: 6px !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
        box-sizing: border-box !important;
    }
    .csgt-single-right-col {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        box-sizing: border-box !important;
    }
    .csgt-related-grid,
    .related-posts-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px !important;
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    body.single-post #main .page-wrapper,
    body.single-post .article-inner,
    body.single-post .csgt-single-post-main {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px 12px !important;
        box-shadow: none !important;
    }
    .csgt-related-grid,
    .related-posts-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        width: 100% !important;
    }
    .csgt-article-signature {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
}

/* Chuẩn hóa kiểu chữ và đoạn văn bên trong bài viết */
.entry-content,
.article-entry-content {
    font-family: 'Roboto', Arial, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.75 !important;
    color: #1a1a1a !important;
    text-align: left !important;
}
.entry-content p,
.article-entry-content p {
    font-family: 'Roboto', Arial, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.75 !important;
    color: #1a1a1a !important;
    margin: 0 0 1.25em 0 !important;
    text-align: justify !important;
}
.entry-content h2,
.article-entry-content h2 {
    font-size: 20px !important;
    color: #9E1B1E !important;
    border-left: 4px solid #9E1B1E !important;
    padding-left: 10px !important;
    margin: 22px 0 12px 0 !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
}
.entry-content h3,
.article-entry-content h3 {
    font-size: 17.5px !important;
    color: #0B3D91 !important;
    margin: 18px 0 10px 0 !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
}
.entry-content img,
.article-entry-content img {
    max-width: 100% !important;
    height: auto !important;
}
.entry-content figure img,
.article-entry-content figure img,
.entry-content img.size-full,
.entry-content img.size-large {
    max-width: 740px !important;
    width: auto !important;
    display: block !important;
    margin: 16px auto !important;
    border-radius: 6px !important;
}

/* KHÓA KÍCH THƯỚC LOGO TRANG TẠO MÃ QR (56PX) VÀ ICON SVG (36PX) */
.kgt-qr-logo-badge-preview,
.kgt-qr-logo-options img,
#kgt-card-logo-csgt img,
.kgt-qr-logo-option-card img {
    width: 56px !important;
    height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    object-fit: contain !important;
    display: inline-block !important;
    margin: 6px 0 !important;
}
.entry-content svg,
.article-entry-content svg,
.csgt-bxt-icon {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    display: inline-block !important;
    margin: 0 8px 0 0 !important;
    vertical-align: middle !important;
}

/* Tách nút tròn đỏ Back-to-top sang góc trái & tự động ẩn khi mở chat */
.back-to-top,
#top-link,
#csgt-back-to-top,
.csgt-back-to-top {
    left: 14px !important;
    right: auto !important;
    bottom: 22px !important;
    z-index: 9990 !important;
}

body.kgt-chat-open .back-to-top,
body.kgt-chat-is-open .back-to-top,
body.kgt-chat-open #top-link,
body.kgt-chat-is-open #top-link,
body.kgt-chat-open #csgt-back-to-top,
body.kgt-chat-is-open #csgt-back-to-top,
body.kgt-chat-open .csgt-back-to-top,
body.kgt-chat-is-open .csgt-back-to-top {
    display: none !important;
}

/* Căn gọn khung chat Trợ lý PC08 Bắc Ninh trên mobile */
@media (max-width: 768px) {
    .kgt-chat-window,
    #kgt-chat-window {
        width: calc(100vw - 24px) !important;
        max-width: 375px !important;
        left: 12px !important;
        right: 12px !important;
        margin: 0 auto !important;
        bottom: 82px !important;
        max-height: 74vh !important;
        box-sizing: border-box !important;
    }

    /* Sửa lỗi khối Zalo OA & Fanpage Facebook bị tràn ngang: Xếp dọc 1 cột 100% */
    .csgt-social-grid,
    .kgt-social-grid,
    .kgt-utility-grid,
    .csgt-three-quick-buttons,
    .csgt-bottom-right-col,
    .csgt-c08-exam-grid,
    .csgt-exam-blocks-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        flex-basis: 100% !important;
        padding: 0 4px !important;
        box-sizing: border-box !important;
        gap: 12px !important;
    }

    .csgt-bottom-right-col > div {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Bảng văn bản pháp luật cân đối theo kích thước chữ */
    .csgt-legal-docs-section table,
    .csgt-law-table,
    table.csgt-law-table {
        table-layout: auto !important;
        width: 100% !important;
    }
    .csgt-legal-docs-section table th:nth-child(1),
    .csgt-legal-docs-section table td:nth-child(1),
    .csgt-law-table th:nth-child(1),
    .csgt-law-table td:nth-child(1),
    .csgt-legal-docs-section table th:nth-child(3),
    .csgt-legal-docs-section table td:nth-child(3),
    .csgt-law-table th:nth-child(3),
    .csgt-law-table td:nth-child(3),
    .csgt-legal-docs-section table th:nth-child(4),
    .csgt-legal-docs-section table td:nth-child(4),
    .csgt-law-table th:nth-child(4),
    .csgt-law-table td:nth-child(4) {
        width: 1% !important;
        white-space: nowrap !important;
        padding: 8px 5px !important;
        font-size: 11.5px !important;
    }
    .csgt-legal-docs-section table th:nth-child(2),
    .csgt-legal-docs-section table td:nth-child(2),
    .csgt-law-table th:nth-child(2),
    .csgt-law-table td:nth-child(2) {
        width: auto !important;
        white-space: normal !important;
        padding: 8px 6px !important;
        font-size: 12.5px !important;
        line-height: 1.4 !important;
    }
    .csgt-legal-docs-section table td:nth-child(4) a,
    .csgt-law-table td:nth-child(4) a {
        padding: 4px 7px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
    }

    /* Chân trang trên mobile: flex-wrap, ẩn dấu gạch đứng | */
    .csgt-footer-nav-strip ul {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 6px 12px !important;
    }
    .csgt-footer-pipe,
    .csgt-footer-nav-strip li.csgt-footer-pipe,
    .csgt-footer-nav-strip li.csgt-sep {
        display: none !important;
    }
    .csgt-footer-nav-strip a {
        font-size: 11.5px !important;
        padding: 2px 4px !important;
    }
}



/* ==========================================================================
   MOBILE-FIRST ENHANCEMENTS - SỬA LỖI TRÀN MÀN HÌNH & KÍCH THƯỚC CHUẨN TỶ LỆ VÀNG
   ========================================================================== */
html, body, #wrapper, #main, .page-wrapper, .section, .section-content, .row, .col {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

/* KHÓA KÍCH THƯỚC CHUẨN TRÊN MÁY TÍNH (DESKTOP) */
.csgt-brand-logo-img,
.header-logo img,
.site-logo img {
    width: 76px !important;
    height: 76px !important;
    max-width: 76px !important;
    max-height: 76px !important;
    object-fit: contain !important;
    display: block !important;
}

.csgt-footer-logo-img,
.csgt-footer-logo,
.csgt-footer-center-block img {
    width: 74px !important;
    height: 74px !important;
    max-width: 74px !important;
    max-height: 74px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto 8px auto !important;
}

.csgt-social-card img.kgt-social-logo,
.csgt-social-box img.kgt-social-logo,
.csgt-bottom-right-col img.kgt-social-logo {
    width: 54px !important;
    height: 54px !important;
    max-width: 54px !important;
    max-height: 54px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto 10px auto !important;
}

.csgt-official-footer a img.kgt-social-logo,
.csgt-footer-social-icon,
.csgt-official-footer .kgt-social-logo {
    width: 38px !important;
    height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
    object-fit: contain !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

@media (max-width: 768px) {
    /* 1. KHÓA TỶ LỆ ẢNH NỘI DUNG VÀ THUMBNAIL (TUYỆT ĐỐI KHÔNG ÁP WIDTH:100% LÊN TOÀN BỘ IMG) */
    .entry-content img,
    .box-image img,
    .image-cover img,
    .article-inner img,
    .post-item img,
    figure img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
    }

    /* Logo CSGT Header trên điện thoại */
    .csgt-brand-logo-img,
    .header-logo img,
    .site-logo img {
        width: 56px !important;
        height: 56px !important;
        max-width: 56px !important;
        max-height: 56px !important;
        object-fit: contain !important;
        margin: 0 auto !important;
        display: block !important;
    }

    /* Logo CSGT Footer trên điện thoại */
    .csgt-footer-logo-img,
    .csgt-footer-logo,
    .csgt-footer-center-block img {
        width: 56px !important;
        height: 56px !important;
        max-width: 56px !important;
        max-height: 70px !important;
        object-fit: contain !important;
        margin: 0 auto 8px auto !important;
        display: block !important;
    }

    /* Thẻ ngang Zalo OA & Fanpage Facebook trên điện thoại: Icon bên trái 64px, nội dung bên phải */
    .csgt-social-card,
    .csgt-social-box {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        text-align: left !important;
        padding: 12px 14px !important;
        gap: 14px !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 6px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }
    .csgt-social-card img.kgt-social-logo,
    .csgt-social-box img.kgt-social-logo,
    .csgt-bottom-right-col img.kgt-social-logo {
        width: 64px !important;
        height: 64px !important;
        min-width: 64px !important;
        max-width: 64px !important;
        max-height: 64px !important;
        object-fit: contain !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        display: block !important;
    }
    .csgt-social-card-body {
        flex: 1 1 auto !important;
        text-align: left !important;
        min-width: 0 !important;
    }
    .csgt-social-card-body h4 {
        font-size: 13px !important;
        font-weight: 800 !important;
        color: #0f172a !important;
        margin: 0 0 3px 0 !important;
    }
    .csgt-social-card-body p {
        font-size: 11.5px !important;
        color: #64748b !important;
        margin: 0 0 8px 0 !important;
        line-height: 1.35 !important;
    }
    .csgt-social-card-body a {
        display: inline-block !important;
        padding: 5px 14px !important;
        font-size: 11px !important;
        border-radius: 3px !important;
    }

    /* Hai nút Zalo & Facebook ở Chân trang trên mobile */
    .csgt-official-footer a img.kgt-social-logo,
    .csgt-footer-social-icon,
    .csgt-official-footer .kgt-social-logo {
        width: 36px !important;
        height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
        object-fit: contain !important;
        display: inline-block !important;
        margin: 0 4px 0 0 !important;
    }

    /* 2. SỬA BỐ CỤC KHỐI XANH THÔNG BÁO 20 ĐIỂM TIẾP NHẬN TRÊN MOBILE */
    .csgt-diem-xu-ly-banner a {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 18px 14px !important;
        gap: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .csgt-diem-xu-ly-banner a > div:first-child {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 8px !important;
        width: 100% !important;
    }
    .csgt-diem-xu-ly-banner a > div:first-child h4 {
        font-size: 14.5px !important;
        line-height: 1.4 !important;
        text-align: center !important;
        width: 100% !important;
        margin: 0 0 6px 0 !important;
        word-break: break-word !important;
    }
    .csgt-diem-xu-ly-banner a > div:first-child p {
        font-size: 12px !important;
        line-height: 1.4 !important;
        text-align: center !important;
        margin: 0 !important;
        width: 100% !important;
    }
    .csgt-diem-xu-ly-banner a > div:last-child {
        width: 100% !important;
        max-width: 260px !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    /* 3. SỬA THANH TIÊU ĐỀ CÁC CHUYÊN MỤC - TỰ XUỐNG DÒNG VÀ NÚT 'XEM TẤT CẢ →' KHÔNG BỊ CẮT */
    .category-block-header,
    .category-title,
    .csgt-section-header,
    .section-title {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .category-block-header h3,
    .category-title h3,
    .csgt-section-header h3 {
        margin: 0 !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        font-size: 14px !important;
        word-break: break-word !important;
    }
    .category-block-header a,
    .category-title a,
    .csgt-section-header a {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        font-size: 11.5px !important;
        margin-left: auto !important;
    }

    /* 4. CHUYỂN BẢNG VĂN BẢN PHÁP LUẬT SANG MOBILE CARD VIEW */
    .csgt-legal-docs-section table,
    .csgt-law-table,
    table.csgt-law-table {
        display: block !important;
        width: 100% !important;
        border: none !important;
        background: transparent !important;
    }
    .csgt-legal-docs-section table thead,
    .csgt-law-table thead,
    table.csgt-law-table thead {
        display: none !important;
    }
    .csgt-legal-docs-section table tbody,
    .csgt-law-table tbody,
    table.csgt-law-table tbody {
        display: block !important;
        width: 100% !important;
    }
    .csgt-legal-docs-section table tr,
    .csgt-law-table tr,
    table.csgt-law-table tr {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 12px 10px !important;
        margin-bottom: 10px !important;
        border: 1px solid #e2d6c3 !important;
        border-radius: 6px !important;
        background: #ffffff !important;
        width: 100% !important;
        box-sizing: border-box !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
    }
    /* Cột 1 (Số ký hiệu): Hiển thị bên trái hàng đầu tiên */
    .csgt-legal-docs-section table td:nth-child(1),
    .csgt-law-table td:nth-child(1),
    table.csgt-law-table td:nth-child(1) {
        order: 1 !important;
        width: auto !important;
        font-weight: 800 !important;
        color: #9E1B1E !important;
        font-size: 13px !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
    }
    /* Cột 3 (Hiệu lực): Hiển thị bên phải hàng đầu tiên ngang hàng với Số ký hiệu */
    .csgt-legal-docs-section table td:nth-child(3),
    .csgt-law-table td:nth-child(3),
    table.csgt-law-table td:nth-child(3) {
        order: 2 !important;
        width: auto !important;
        font-size: 11.5px !important;
        padding: 0 !important;
        border: none !important;
        text-align: right !important;
        background: transparent !important;
    }
    /* Cột 2 (Trích yếu nội dung văn bản): Chiếm trọn 100% chiều rộng ở hàng giữa */
    .csgt-legal-docs-section table td:nth-child(2),
    .csgt-law-table td:nth-child(2),
    table.csgt-law-table td:nth-child(2) {
        order: 3 !important;
        width: 100% !important;
        flex-basis: 100% !important;
        margin: 8px 0 !important;
        font-size: 13.5px !important;
        line-height: 1.45 !important;
        white-space: normal !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
    }
    /* Cột 4 (Tải tài liệu): Chiếm trọn 100% chiều rộng ở hàng dưới cùng */
    .csgt-legal-docs-section table td:nth-child(4),
    .csgt-law-table td:nth-child(4),
    table.csgt-law-table td:nth-child(4) {
        order: 4 !important;
        width: 100% !important;
        flex-basis: 100% !important;
        text-align: right !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
    }
    .csgt-legal-docs-section table td:nth-child(4) a,
    .csgt-law-table td:nth-child(4) a,
    table.csgt-law-table td:nth-child(4) a {
        display: inline-flex !important;
        padding: 6px 14px !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        border-radius: 4px !important;
    }

    /* 5. CĂN CHỈNH CHÂN TRANG TRÊN MOBILE CĂN GIỮA TRÊN NỀN TRỐNG ĐỒNG */
    .csgt-official-footer,
    .csgt-official-footer .container,
    .csgt-footer-center-block,
    .csgt-footer-org-details {
        text-align: center !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .csgt-footer-org-details p,
    .csgt-footer-org-details div {
        text-align: center !important;
        margin: 4px auto !important;
        max-width: 100% !important;
    }
    #csgt-agency-select {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* 6. AVATAR TRỢ LÝ PC08 & NÚT BACK TO TOP TRÊN MOBILE */
    .kgt-ai-chat-root {
        bottom: 16px !important;
        right: 14px !important;
        z-index: 9999 !important;
    }
    .kgt-ai-launcher {
        width: 52px !important;
        height: 52px !important;
    }
    .kgt-launcher-circle {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
        min-height: 52px !important;
    }
    .kgt-launcher-label {
        display: none !important;
    }
    /* Ẩn bong bóng chào AI trên Mobile */
    #kgt-ai-speech-bubble,
    .kgt-ai-speech-bubble {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* Bảng biểu điều luật và thủ tục có thanh cuộn ngang mượt mà trên mobile */
    .article-entry-content table,
    .entry-content table {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    #csgt-back-to-top,
    .csgt-back-to-top {
        bottom: 16px !important;
        left: 14px !important;
        right: auto !important;
        width: 40px !important;
        height: 40px !important;
        z-index: 9998 !important;
    }
}

/* ==========================================================================
   KHÔI PHỤC NỀN XANH ĐẬM SẮC NÉT KHỐI THÔNG BÁO 20 ĐIỂM XỬ LÝ VI PHẠM (DESKTOP)
   ========================================================================== */
.csgt-diem-xu-ly-banner {
    margin-bottom: 28px !important;
    width: 100% !important;
    display: block !important;
}
.csgt-diem-xu-ly-banner a,
.csgt-20diem-btn {
    background: linear-gradient(135deg, #0B3D91 0%, #1565C0 100%) !important;
    border-radius: 8px !important;
    padding: 18px 24px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 20px !important;
    text-decoration: none !important;
    border: 2px solid #3b82f6 !important;
    box-shadow: 0 4px 15px rgba(11, 61, 145, 0.3) !important;
    box-sizing: border-box !important;
    width: 100% !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.csgt-diem-xu-ly-banner a:hover,
.csgt-20diem-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(11, 61, 145, 0.45) !important;
}
.csgt-diem-xu-ly-banner a h4,
.csgt-20diem-btn h4 {
    color: #FFD54F !important;
    font-weight: 800 !important;
    font-size: 17px !important;
    margin: 0 0 4px 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1.4 !important;
}
.csgt-diem-xu-ly-banner a p,
.csgt-20diem-btn p {
    color: #FFFFFF !important;
    font-size: 13.5px !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}
.csgt-diem-xu-ly-banner a > div:last-child,
.csgt-20diem-btn > div:last-child {
    background: #CC0000 !important;
    color: #FFFFFF !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    letter-spacing: 0.5px !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 6px rgba(204, 0, 0, 0.3) !important;
}

/* ==========================================================================
   SỬA KHUNG PHÁT VIDEO YOUTUBE FULL 16:9 CHUẨN XÁC KHÔNG HỞ ĐEN CO GÓC
   ========================================================================== */
#kgt-main-yt-wrapper,
.kgt-main-yt-wrapper,
.kgt-main-video-row > div:first-child {
    position: relative !important;
    width: 100% !important;
    padding-bottom: 56.25% !important;
    height: 0 !important;
    overflow: hidden !important;
    background: #000000 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2) !important;
}
#kgt-main-yt-wrapper iframe,
.kgt-main-yt-wrapper iframe,
#kgt-main-yt-player,
#csgt-active-yt-iframe,
.kgt-main-video-row iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border: 0 !important;
    display: block !important;
}

/* ==========================================================================
   THU GỌN BIỂU TƯỢNG ZALO & FACEBOOK CHÂN TRANG FOOTER (38PX ĐỒNG BỘ, CĂN GIỮA DƯỚI LIÊN KẾT NGÀNH)
   ========================================================================== */
.csgt-footer-tools-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
}
.kgt-footer-social-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    margin-top: 4px !important;
}
.kgt-footer-social-wrap a {
    display: inline-block !important;
    line-height: 1 !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}
.kgt-footer-social-icon,
.csgt-official-footer a img.kgt-social-logo,
.csgt-official-footer .kgt-social-logo {
    width: 38px !important;
    height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    display: block !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25) !important;
}
.kgt-footer-social-wrap a:hover img,
.kgt-footer-social-icon:hover {
    transform: scale(1.08) !important;
}

/* ==========================================================================
   THU GỌN BIỂU TƯỢNG ZALO & FACEBOOK BÀI VIẾT & TRANG CHỦ (54PX GỌN ĐẸP, BỎ CHỮ)
   ========================================================================== */
.csgt-social-connect-box {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-top: 3px solid #0068ff !important;
    border-radius: 6px !important;
    padding: 16px 18px !important;
    text-align: center !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05) !important;
    margin-bottom: 20px !important;
}
.kgt-social-logo-54,
.csgt-social-card img.kgt-social-logo,
.csgt-social-box img.kgt-social-logo,
.csgt-bottom-right-col img.kgt-social-logo {
    width: 54px !important;
    height: 54px !important;
    max-width: 54px !important;
    max-height: 54px !important;
    object-fit: contain !important;
    border-radius: 12px !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15) !important;
    display: block !important;
    margin: 0 auto !important;
    transition: transform 0.2s ease !important;
}
.kgt-social-logo-54:hover,
.csgt-social-card a:hover img {
    transform: scale(1.08) !important;
}

/* ==========================================================================
   ẨN HOÀN TOÀN KHỐI CHÂN TRANG THỪA CỦA FLATSOME TRÁNH TRÙNG LẶP CHỮ TRẮNG
   ========================================================================== */
.absolute-footer,
.footer-wrapper .footer-1,
.footer-wrapper .footer-2,
.footer-wrapper,
#footer {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    overflow: hidden !important;
}

/* ==========================================================================
   BỘ ĐỌC VĂN BẢN PDF TRỰC TUYẾN ĐA NỀN TẢNG (CHỐNG KHOẢNG XÁM, TOÀN MÀN HÌNH)
   ========================================================================== */
.csgt-pdf-embedded-viewer-box {
    margin: 25px 0 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08) !important;
    background: #ffffff !important;
    position: relative !important;
    box-sizing: border-box !important;
}

.csgt-pdf-embedded-viewer-box.is-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.csgt-pdf-embedded-viewer-box .csgt-pdf-header-bar {
    background: linear-gradient(135deg, #1e293b, #0f172a) !important;
    color: #ffffff !important;
    padding: 10px 16px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    box-sizing: border-box !important;
}

.csgt-pdf-embedded-viewer-box .csgt-pdf-fullscreen-btn:hover {
    background: #475569 !important;
    color: #ffffff !important;
}

.csgt-pdf-embedded-viewer-box .csgt-pdf-frame-wrapper {
    width: 100% !important;
    position: relative !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}

/* Khung đọc trên máy tính: cao 820px, vừa khít chiều ngang không khoảng xám */
.csgt-pdf-embedded-viewer-box .csgt-pdf-iframe {
    width: 100% !important;
    height: 820px !important;
    border: none !important;
    display: block !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}

/* Khung đọc trên điện thoại: cao 560px, vuốt đọc mượt mà toàn bộ trang */
@media (max-width: 768px) {
    .csgt-pdf-embedded-viewer-box .csgt-pdf-iframe {
        height: 560px !important;
    }
}

/* Toàn màn hình phủ kín 100vw x 100vh */
.csgt-pdf-embedded-viewer-box.is-fullscreen .csgt-pdf-frame-wrapper {
    height: calc(100vh - 46px) !important;
}
.csgt-pdf-embedded-viewer-box.is-fullscreen .csgt-pdf-iframe {
    height: 100% !important;
    max-height: 100% !important;
}

/* ==========================================================================
   THANH TẢI VĂN BẢN PDF NGANG GỌN ĐẸP, SANG TRỌNG
   ========================================================================== */
.csgt-pdf-download-strip {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 16px !important;
    background: #FDF8EE !important;
    border: 1px solid #E2C693 !important;
    border-left: 4px solid #9E1B1E !important;
    border-radius: 6px !important;
    margin: 14px 0 25px !important;
    box-sizing: border-box !important;
}

.csgt-pdf-download-strip .csgt-pdf-download-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #9E1B1E !important;
    color: #ffffff !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 2px 6px rgba(158,27,30,0.3) !important;
    transition: background 0.2s ease, transform 0.15s ease !important;
    white-space: nowrap !important;
}

.csgt-pdf-download-strip .csgt-pdf-download-btn:hover {
    background: #7f1d1d !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

/* ==========================================================================
   BIỂU TƯỢNG HÌNH ẢNH LOGO ZALO & FACEBOOK 3D 48PX Ở CUỐI BÀI VIẾT (BỎ NÚT CHỮ)
   ========================================================================== */
.kgt-social-logo-48 {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    object-fit: contain !important;
    border-radius: 10px !important;
    display: block !important;
    transition: transform 0.2s ease !important;
    box-sizing: border-box !important;
}

.kgt-social-logo-48:hover {
    transform: scale(1.08) !important;
}

.csgt-article-social-connect a {
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* ==========================================================================
   CĂN GIỮA DÒNG CHỮ "CÔNG AN THÀNH PHỐ BẮC NINH" SO VỚI "PHÒNG CẢNH SÁT GIAO THÔNG"
   ========================================================================== */
.csgt-brand-text-block {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}
.csgt-brand-sub {
    text-align: center !important;
    width: 100% !important;
}
.csgt-brand-main {
    text-align: center !important;
    width: 100% !important;
}

/* ==========================================================================
   HIỂN THỊ ĐỦ 5 LÁ CỜ NGÔN NGỮ TRÊN THANH MENU MOBILE (MAX-WIDTH: 768PX & 480PX)
   ========================================================================== */
@media (max-width: 768px) {
    .csgt-nav-container {
        padding: 0 6px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .csgt-nav-left {
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
        flex-shrink: 1 !important;
        min-width: 0 !important;
    }
    .csgt-menu-toggle-btn {
        padding: 5px 8px !important;
        font-size: 11px !important;
        gap: 4px !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }
    .csgt-menu-toggle-text {
        font-size: 11px !important;
        font-weight: 700 !important;
    }
    .csgt-nav-a {
        padding: 5px 8px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
        letter-spacing: 0px !important;
        flex-shrink: 1 !important;
    }
    .csgt-nav-video-item {
        display: none !important;
    }
    .csgt-nav-right {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }
    .csgt-nav-search-toggle-btn {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }
    .csgt-nav-search-toggle-btn svg {
        width: 15px !important;
        height: 15px !important;
    }
    /* Ẩn dải 5 cờ trên sticky navbar mobile để tránh đè nút tra cứu (Đã có sẵn trong menu trượt Danh mục) */
    .csgt-flags-box {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .csgt-nav-container {
        padding: 0 6px !important;
    }
    .csgt-nav-left {
        gap: 4px !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }
    .csgt-menu-toggle-btn {
        padding: 5px 7px !important;
        font-size: 10.5px !important;
        flex-shrink: 0 !important;
    }
    .csgt-nav-a {
        padding: 5px 7px !important;
        font-size: 10.5px !important;
        flex-shrink: 0 !important;
    }
    .csgt-flags-box {
        display: none !important;
    }
}

/* ==========================================================================
   DẢI CHỌN NGÔN NGỮ BÊN TRONG NGĂN KÉO MENU (SIDEBAR DRAWER)
   ========================================================================== */
.csgt-drawer-lang-strip {
    background: #FDF8EE !important;
    border-bottom: 1px solid #E2C693 !important;
    padding: 10px 16px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    box-sizing: border-box !important;
}
.csgt-drawer-flag-btn {
    width: 24px !important;
    height: 17px !important;
    cursor: pointer !important;
    padding: 0 !important;
    border: 1px solid rgba(0,0,0,0.15) !important;
    border-radius: 2px !important;
    background: transparent !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    box-sizing: border-box !important;
}
.csgt-drawer-flag-btn:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
}



/* ==============================================================================
   BẢO VỆ CHỮ TRONG MENU NGĂN KÉO (DRAWER) LUÔN RÕ NÉT - HOVER VÀNG CÁT & ĐỎ ĐÔ
   ============================================================================== */
.csgt-app-drawer-panel .csgt-drawer-link,
.csgt-app-drawer-panel .csgt-drawer-item a,
.csgt-app-drawer-panel .csgt-drawer-item a span,
.csgt-drawer-menu li a,
.csgt-drawer-menu li a span {
    color: #1a1a1a !important;
    background: transparent !important;
    text-shadow: none !important;
}

.csgt-app-drawer-panel .csgt-drawer-link:hover,
.csgt-app-drawer-panel .csgt-drawer-item a:hover,
.csgt-drawer-menu li a:hover {
    background-color: #FDF8EE !important;
    color: #9E1B1E !important;
}

.csgt-app-drawer-panel .csgt-drawer-link:hover span,
.csgt-app-drawer-panel .csgt-drawer-item a:hover span,
.csgt-drawer-menu li a:hover span {
    color: #9E1B1E !important;
}

/* ==============================================================================
   KHẮC PHỤC TRIỆT ĐỂ LỖI VỠ CẤU TRÚC VÀ KHOẢNG TRẮNG DO SLIDER TRONG UX BUILDER
   ============================================================================== */
body.uxbuilder-mode .slider,
body.uxbuilder-mode .flickity-viewport,
body.uxbuilder-mode .flickity-slider,
.uxb-iframe .slider,
.uxb-iframe .flickity-viewport,
.uxb-iframe .flickity-slider,
.csgt-front-page-wrap .slider,
.csgt-front-page-wrap .flickity-viewport,
.csgt-front-page-wrap .flickity-slider {
    max-height: 460px !important;
    overflow: hidden !important;
}

body.uxbuilder-mode .slider .box-image,
.uxb-iframe .slider .box-image,
.csgt-front-page-wrap .slider .box-image {
    max-height: 320px !important;
    overflow: hidden !important;
}

body.uxbuilder-mode .slider .box-image img,
.uxb-iframe .slider .box-image img,
.csgt-front-page-wrap .slider .box-image img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
}

body.uxbuilder-mode .slider:not(.flickity-enabled),
.uxb-iframe .slider:not(.flickity-enabled),
.csgt-front-page-wrap .slider:not(.flickity-enabled) {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: hidden !important;
}

body.uxbuilder-mode .slider:not(.flickity-enabled) > *,
.uxb-iframe .slider:not(.flickity-enabled) > *,
.csgt-front-page-wrap .slider:not(.flickity-enabled) > * {
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

/* ==============================================================================
   CHỐNG CẮT XÉN ẢNH BÀI VIẾT (TRỌNG TÂM TRÊN) & NGÀY THÁNG GỌN GÀNG DƯỚI TIÊU ĐỀ
   ============================================================================== */
.box-image img,
.image-cover img,
.csgt-home-top-row .box-image img,
.slider .box-image img,
.blog-post-inner .box-image img {
    object-position: center top !important;
    object-fit: cover !important;
}

/* Ẩn hoàn toàn ô vuông ngày tháng to đè lên góc ảnh (.badge.post-date) */
.badge.post-date,
.badge-inner,
.post-date {
    display: none !important;
}

/* Định dạng ngày đăng bài dạng chữ nhỏ xám tinh tế dưới tiêu đề bài viết */
.post-meta,
.post-meta.is-small,
.blog-post-inner .post-meta,
.csgt-home-top-row .post-meta {
    font-size: 12px !important;
    color: #64748b !important;
    opacity: 1 !important;
    margin-top: 4px !important;
    margin-bottom: 6px !important;
    font-weight: 500 !important;
    display: block !important;
    text-transform: none !important;
}

/* Đường gạch phân cách mảnh tinh tế */
.blog-post-inner .is-divider {
    margin: 6px 0 !important;
    background-color: #e2e8f0 !important;
    height: 1px !important;
}

/* Tiêu đề bài viết trong Slider nổi bật, sang trọng */
.csgt-home-top-row .slider .post-title {
    font-size: 18px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    margin-top: 10px !important;
    margin-bottom: 4px !important;
}

.csgt-home-top-row .slider .post-title a {
    color: #0f172a !important;
    transition: color 0.15s ease-in-out !important;
}

.csgt-home-top-row .slider .post-title a:hover {
    color: #CC0000 !important;
}

.csgt-home-top-row .slider .from_the_blog_excerpt {
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    color: #475569 !important;
    margin-bottom: 10px !important;
}

@media (min-width: 769px) {
    .csgt-home-top-row,
    .row:not(.row-full-width) {
        max-width: 1230px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .csgt-home-top-row .slider .box-text {
        text-align: left !important;
    }
}

.csgt-home-top-row .slider .from_the_blog_excerpt,
.slider .from_the_blog_excerpt {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    max-height: none !important;
}




/* ==============================================================================
   NHIỆM VỤ 1: THU GỌN THANH MENU "DANH MỤC" (OFF-CANVAS / MOBILE MENU / DRAWER)
   ============================================================================== */
.off-canvas .nav-sidebar > li > a,
.mobile-sidebar .nav-sidebar > li > a,
.nav-sidebar > li > a,
.csgt-app-drawer-panel .csgt-drawer-link,
.csgt-app-drawer-panel .csgt-drawer-item a {
    padding: 8px 15px !important;
    line-height: 1.3 !important;
    font-size: 13.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    white-space: nowrap !important;
    text-align: left !important;
}

.csgt-app-drawer-panel .csgt-drawer-item,
.off-canvas .nav-sidebar > li,
.mobile-sidebar .nav-sidebar > li {
    margin-bottom: 2px !important;
}

.csgt-drawer-bullet,
.off-canvas .nav-sidebar .menu-icon,
.mobile-sidebar .nav-sidebar .menu-icon,
.nav-sidebar .menu-icon {
    flex-shrink: 0 !important;
    margin-right: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 15px !important;
    width: 20px !important;
    text-align: center !important;
}

/* ==============================================================================
   NHIỆM VỤ 3 & 4: CĂN LỀ CHUẨN BÁO CHÍ, THU GỌN TIÊU ĐỀ & ĐỒNG BỘ THUMBNAIL TIN NHỎ
   ============================================================================== */
/* Căn trái toàn diện cho các khối tin nhỏ dọc (Tin mới nhất, CSGT 24/7, ATGT) */
.csgt-home-top-row .box-vertical,
.csgt-home-top-row .box-vertical .box-text,
.csgt-home-top-row .box-vertical .box-text-inner {
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.csgt-home-top-row .box-vertical .post-title,
.csgt-home-top-row .box-vertical .post-title a,
.csgt-home-top-row .box-vertical h5 {
    text-align: left !important;
    font-size: 13.5px !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin-top: 0 !important;
    margin-bottom: 4px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.csgt-home-top-row .box-vertical .post-title a:hover {
    color: #CC0000 !important;
}

/* Đồng bộ ngày tháng nhỏ gọn gàng dưới tiêu đề ở cả 3 khối tin nhỏ */
.csgt-home-top-row .box-vertical .post-meta,
.csgt-home-top-row .box-vertical .post-meta.is-small {
    text-align: left !important;
    font-size: 11.5px !important;
    line-height: 1.2 !important;
    color: #64748b !important;
    margin-top: 2px !important;
    margin-bottom: 0 !important;
    font-weight: 500 !important;
}

/* Khoảng cách gọn gàng giữa các bài viết */
.csgt-home-top-row .box-vertical .col-inner,
.csgt-home-top-row .box-vertical .post-item {
    padding-bottom: 10px !important;
    margin-bottom: 10px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

/* Tỷ lệ khung ảnh nhỏ (Thumbnail) chuẩn báo chí 110px x 75px, chống cắt xén */
.csgt-home-top-row .box-vertical .box-image {
    width: 110px !important;
    min-width: 110px !important;
    max-width: 110px !important;
    height: 75px !important;
    flex-shrink: 0 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    margin-right: 12px !important;
}

.csgt-home-top-row .box-vertical .box-image .image-cover {
    padding-top: 68.18% !important; /* Chuẩn 75px / 110px */
    height: 75px !important;
}

.csgt-home-top-row .box-vertical .box-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
}

/* ==============================================================================
   NHIỆM VỤ 4 MỤC 2: THU GỌN KHUNG SLIDER "HOẠT ĐỘNG TRỌNG ĐIỂM" (MAX 360PX DESKTOP)
   ============================================================================== */
@media (min-width: 769px) {
    .csgt-home-top-row .slider .box-image,
    .csgt-home-top-row .slider .image-cover {
        max-height: 360px !important;
    }
    .csgt-home-top-row .slider .flickity-viewport {
        max-height: 480px !important;
    }
}

.csgt-home-top-row .slider .box-text-inner {
    padding-top: 8px !important;
    padding-bottom: 4px !important;
}

.csgt-home-top-row .slider .post-title {
    font-size: 17px !important;
    line-height: 1.35 !important;
    margin-top: 6px !important;
    margin-bottom: 4px !important;
}

.csgt-home-top-row .slider .from_the_blog_excerpt {
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: #475569 !important;
    margin-bottom: 6px !important;
}

.csgt-home-top-row .slider .button {
    margin-top: 0 !important;
    padding: 4px 14px !important;
    font-size: 12px !important;
    border-radius: 3px !important;
}


/* =========================================================================
   KHUNG THẺ CHUYÊN MỤC TRANG CHỦ (CSGT CARD BOX) - CHUẨN MẪU DANH SÁCH NGANG
   ========================================================================= */
.csgt-card-box {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-top: 3px solid #dc2626 !important;
    border-radius: 8px !important;
    padding: 15px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    margin-bottom: 20px !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

/* Thanh tiêu đề chuyên mục căn trái */
.csgt-card-box .container.section-title,
.csgt-card-box .section-title {
    margin-bottom: 12px !important;
    text-align: left !important;
    width: 100% !important;
}

.csgt-card-box .section-title-main,
.csgt-card-box .section-title-main b {
    text-align: left !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px !important;
    color: #dc2626 !important;
}

/* Đường kẻ phân cách mờ giữa các bài viết */
.csgt-card-box .post-item {
    border-bottom: 1px solid #f1f5f9 !important;
    padding-bottom: 10px !important;
    margin-bottom: 10px !important;
    transition: background 0.2s ease !important;
    width: 100% !important;
}

.csgt-card-box .post-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.csgt-card-box .box.box-vertical {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
}

/* Bố cục ảnh thumbnail bên trái: cố định 95px x 65px */
.csgt-card-box .box-image {
    width: 95px !important;
    min-width: 95px !important;
    max-width: 95px !important;
    height: 65px !important;
    min-height: 65px !important;
    max-height: 65px !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.csgt-card-box .box-image img,
.csgt-card-box .box-image .image-cover img {
    width: 95px !important;
    min-width: 95px !important;
    max-width: 95px !important;
    height: 65px !important;
    min-height: 65px !important;
    max-height: 65px !important;
    object-fit: cover !important;
    object-position: center top !important;
    border-radius: 6px !important;
    display: block !important;
}

/* Bố cục chữ bên phải: căn trái, tiêu đề và ngày tháng gọn gàng */
.csgt-card-box .box-text {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 2px !important;
    padding-bottom: 0 !important;
    text-align: left !important;
    flex: 1 1 auto !important;
}

.csgt-card-box .post-title,
.csgt-card-box .post-title a {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: #1e293b !important;
    margin-bottom: 4px !important;
    text-decoration: none !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-align: left !important;
}

.csgt-card-box .post-title a:hover {
    color: #dc2626 !important;
}

.csgt-card-box .post-date,
.csgt-card-box .post-meta,
.csgt-card-box .badge {
    font-size: 11.5px !important;
    color: #64748b !important;
    font-weight: 500 !important;
    margin-top: 3px !important;
    line-height: 1.2 !important;
    display: block !important;
    text-align: left !important;
}

/* ==============================================================================
   CĂN CHỈNH CÂN ĐỐI, THẲNG HÀNG THANH ĐIỀU HƯỚNG CHÍNH (HEADER BOTTOM BAR - 38PX)
   Chuẩn Flexbox dọc/ngang, đồng bộ chiều cao 38px, bo góc hài hòa 4px
   ============================================================================== */
@media (min-width: 769px) {
    #header-bottom,
    .header-bottom,
    .csgt-nav-bar {
        background: #9E1B1E !important;
        background: linear-gradient(180deg, #b91c1c 0%, #9E1B1E 100%) !important;
        border-top: 1px solid #f5e6c8 !important;
        border-bottom: 2px solid #700000 !important;
        min-height: 48px !important;
        height: 48px !important;
        display: flex !important;
        align-items: center !important;
        position: relative !important;
        z-index: 9999 !important;
    }

    .csgt-nav-container,
    #header-bottom .flex-row,
    .header-bottom .flex-row {
        max-width: 1200px !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 0 15px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: 48px !important;
        min-height: 48px !important;
        box-sizing: border-box !important;
    }

    .csgt-nav-left {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        height: 100% !important;
        flex-shrink: 0 !important;
    }

    /* 1. Nút ≡ DANH MỤC: Chiều cao đồng bộ 38px */
    .csgt-menu-toggle-btn {
        background: #fef3c7 !important;
        border: 1px solid #d97706 !important;
        border-radius: 4px !important;
        height: 38px !important;
        line-height: 38px !important;
        margin: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 14px !important;
        cursor: pointer !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        color: #78350f !important;
        box-sizing: border-box !important;
        white-space: nowrap !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.15) !important;
        transition: all 0.2s ease !important;
    }

    .csgt-menu-toggle-btn:hover {
        background: #fde68a !important;
        transform: translateY(-1px) !important;
    }

    .csgt-menu-toggle-btn svg {
        width: 18px !important;
        height: 18px !important;
        stroke: #78350f !important;
        flex-shrink: 0 !important;
    }

    .csgt-menu-toggle-text {
        font-size: 13px !important;
        font-weight: 800 !important;
        color: #78350f !important;
        letter-spacing: 0.4px !important;
        line-height: 1 !important;
    }

    /* 2. Các mục menu: TRA CỨU PHẠT NGUỘI, VIDEO - PHÓNG SỰ ATGT (38px) */
    .csgt-nav-a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        height: 38px !important;
        line-height: 38px !important;
        margin: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 16px !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        text-transform: uppercase !important;
        text-decoration: none !important;
        letter-spacing: 0.3px !important;
        border-radius: 4px !important;
        box-sizing: border-box !important;
        transition: all 0.2s ease !important;
        white-space: nowrap !important;
    }

    .csgt-nav-a:hover {
        background: rgba(255,255,255,0.18) !important;
        color: #fef08a !important;
    }

    .csgt-nav-a.highlight {
        background: #b91c1c !important;
        color: #fff !important;
        border-bottom: 3px solid #facc15 !important;
        box-shadow: inset 0 -2px 0 #facc15 !important;
    }

    /* Cụm bên phải: Căn giữa dọc, thu gọn khoảng trống thừa */
    .csgt-nav-right {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        height: 100% !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }

    /* 3. Ô tìm kiếm: Chiều cao đồng bộ 38px */
    .csgt-nav-search-wrap {
        display: inline-flex !important;
        align-items: center !important;
        height: 38px !important;
        margin: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        position: relative !important;
    }

    .csgt-nav-search-toggle-btn {
        background: rgba(255, 255, 255, 0.15) !important;
        border: 1px solid rgba(255, 255, 255, 0.35) !important;
        border-radius: 4px !important;
        width: 38px !important;
        height: 38px !important;
        margin: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        transition: all 0.25s ease !important;
        box-sizing: border-box !important;
    }

    .csgt-nav-search-toggle-btn:hover {
        background: rgba(255, 255, 255, 0.25) !important;
        border-color: #facc15 !important;
    }

    .csgt-nav-search-toggle-btn svg {
        stroke: #FFE082 !important;
        width: 18px !important;
        height: 18px !important;
    }

    .csgt-nav-search-form {
        height: 38px !important;
        display: flex !important;
        align-items: center !important;
        box-sizing: border-box !important;
    }

    .csgt-nav-search-input {
        height: 34px !important;
        line-height: 34px !important;
        box-sizing: border-box !important;
        font-size: 13px !important;
        border-radius: 4px 0 0 4px !important;
        border: 1px solid #e2e8f0 !important;
        padding: 0 10px !important;
    }

    .csgt-nav-search-submit-btn {
        height: 34px !important;
        line-height: 34px !important;
        box-sizing: border-box !important;
        font-size: 12.5px !important;
        font-weight: 700 !important;
        border-radius: 0 4px 4px 0 !important;
    }

    /* 4. Cụm cờ ngôn ngữ: Chiều cao đồng bộ 38px */
    .csgt-flags-box {
        height: 38px !important;
        margin: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 10px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        box-sizing: border-box !important;
        border-radius: 4px !important;
        background: rgba(255,255,255,0.12) !important;
        border: 1px solid rgba(255,255,255,0.25) !important;
    }

    .csgt-flag-btn {
        background: transparent !important;
        border: 1px solid rgba(255,255,255,0.4) !important;
        border-radius: 2px !important;
        margin: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
        cursor: pointer !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        opacity: 0.88 !important;
        height: 20px !important;
        box-sizing: border-box !important;
        transition: all 0.2s ease !important;
    }

    .csgt-flag-btn:hover {
        opacity: 1 !important;
        transform: scale(1.1) !important;
        border-color: #facc15 !important;
    }
}

