
        :root {
            --primary-900: #0a1f44;
            --primary-800: #0f3460;
            --primary-700: #1d4ed8;
            --primary-600: #2563eb;
            --primary-500: #3b82f6;
            --primary-100: #dbeafe;
            --primary-50:  #eff6ff;
            --accent-emerald: #059669;
            --accent-amber: #d97706;
            --accent-red: #dc2626;
            --surface: #ffffff;
            --surface-alt: #f8fafc;
            --border: #e2e8f0;
            --text-main: #0f172a;
            --text-muted: #64748b;
            --radius-sm: 6px;
            --radius-md: 10px;
            --radius-lg: 16px;
            --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
            --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
            --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
            --shadow-hover: 0 12px 24px -4px rgba(37, 99, 235, 0.15);
            --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        }

        * { box-sizing: border-box; margin: 0; padding: 0; }
        body {
            font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
            background-color: var(--surface-alt);
            color: var(--text-main);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
        }

        a { color: inherit; text-decoration: none; transition: var(--transition); }
        .container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

        /* TOP ALERT BANNER */
        .top-banner {
            background: linear-gradient(90deg, #1e3a8a, #0369a1);
            color: white;
            padding: 8px 0;
            font-size: 13px;
            font-weight: 500;
        }
        .top-banner-wrap {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 6px 12px;
            text-align: center;
        }
        .top-banner a.banner-link {
            color: #fde047;
            text-decoration: underline;
            margin-left: 6px;
            font-weight: 700;
            white-space: nowrap;
        }

        /* HEADER */
        header {
            background: var(--surface);
            border-bottom: 1px solid var(--border);
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: var(--shadow-sm);
            transition: var(--transition);
        }
        .header-wrap {
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 72px;
            gap: 16px;
            position: relative;
        }

        /* LOGO */
        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-shrink: 0;
            text-decoration: none;
        }
        .logo-icon {
            width: 42px;
            height: 42px;
            background: linear-gradient(135deg, var(--primary-600), #06b6d4);
            color: white;
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            font-weight: 800;
            box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
            flex-shrink: 0;
        }
        .logo-icon.sm {
            width: 34px;
            height: 34px;
            font-size: 16px;
            border-radius: var(--radius-sm);
        }
        .logo-text {
            display: flex;
            flex-direction: column;
            white-space: nowrap;
        }
        .logo-text .brand-name {
            font-size: 22px;
            font-weight: 800;
            color: var(--primary-700);
            letter-spacing: -0.5px;
            line-height: 1.1;
        }
        .logo-text .brand-sub {
            color: var(--text-main);
            font-weight: 600;
            font-size: 13px;
            line-height: 1.2;
            margin-top: 2px;
        }

        /* DESKTOP SEARCH BAR */
        .search-container {
            flex: 1;
            max-width: 440px;
            position: relative;
            margin: 0 10px;
        }
        .search-box {
            display: flex;
            align-items: center;
            background: var(--surface-alt);
            border: 1.5px solid var(--border);
            border-radius: 9999px;
            padding: 6px 16px;
            transition: var(--transition);
        }
        .search-box:focus-within {
            border-color: var(--primary-600);
            background: var(--surface);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
        }
        .search-box input {
            border: none;
            background: transparent;
            width: 100%;
            outline: none;
            font-size: 14px;
            font-family: inherit;
            color: var(--text-main);
        }
        .search-box button {
            background: none;
            border: none;
            cursor: pointer;
            color: var(--primary-600);
            font-size: 16px;
            padding: 2px 4px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .search-dropdown {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            right: 0;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-lg);
            display: none;
            z-index: 150;
            overflow: hidden;
        }
        .search-dropdown.active { display: block; }
        .search-item {
            padding: 10px 16px;
            border-bottom: 1px solid #f1f5f9;
            font-size: 13px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
        }
        .search-item:hover { background: var(--primary-50); color: var(--primary-700); }
        .search-item span.hits { font-size: 11px; color: var(--accent-red); font-weight: 600; }

        /* HEADER ACTIONS TRÊN TABLET / MOBILE */
        .header-actions {
            display: none;
            align-items: center;
            gap: 10px;
            flex-shrink: 0;
        }
        .action-btn {
            background: var(--surface-alt);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            width: 38px;
            height: 38px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            cursor: pointer;
            color: var(--text-main);
            transition: var(--transition);
        }
        .action-btn:hover {
            background: var(--primary-50);
            border-color: var(--primary-500);
        }
        .header-cta-pill {
            background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
            color: white !important;
            padding: 7px 14px;
            border-radius: 9999px;
            font-size: 13px;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            white-space: nowrap;
            flex-shrink: 0;
            box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
            transition: var(--transition);
        }
        .header-cta-pill:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
        }

        /* NÚT HAMBURGER MENU */
        .menu-toggle-btn {
            background: var(--surface-alt);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            width: 40px;
            height: 40px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            cursor: pointer;
            padding: 8px;
            transition: var(--transition);
            flex-shrink: 0;
        }
        .menu-toggle-btn:hover {
            background: var(--primary-50);
            border-color: var(--primary-500);
        }
        .menu-toggle-btn .bar {
            width: 20px;
            height: 2px;
            background-color: var(--text-main);
            border-radius: 2px;
            transition: var(--transition);
            transform-origin: center;
        }
        .menu-toggle-btn.active .bar-1 {
            transform: translateY(6px) rotate(45deg);
        }
        .menu-toggle-btn.active .bar-2 {
            opacity: 0;
        }
        .menu-toggle-btn.active .bar-3 {
            transform: translateY(-6px) rotate(-45deg);
        }

        /* NAVIGATION MENU TRÊN DESKTOP */
        nav.nav-links {
            display: flex;
            align-items: center;
            flex-shrink: 0;
        }
        .nav-links-list {
            display: flex;
            align-items: center;
            gap: 20px;
        }
        .nav-item {
            font-size: 14px;
            font-weight: 600;
            color: #334155;
            white-space: nowrap;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 4px;
            transition: var(--transition);
        }
        .nav-item:hover { color: var(--primary-600); }
        .nav-item .nav-icon { display: none; }

        .nav-btn {
            background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
            color: white !important;
            padding: 8px 18px;
            border-radius: 9999px;
            font-size: 13px;
            font-weight: 700;
            white-space: nowrap;
            flex-shrink: 0;
            box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: var(--transition);
        }
        .nav-btn:hover { box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4); transform: translateY(-1px); }

        /* ẨN CÁC PHẦN DÀNH RIÊNG CHO MOBILE TRÊN DESKTOP */
        .mobile-drawer-header,
        .drawer-search-wrap,
        .mobile-search-bar,
        .nav-backdrop {
            display: none;
        }

        /* 4 QUICK ACCESS CARDS */
        .quick-bar {
            margin: 24px 0 32px;
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
        }
        .quick-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 18px;
            display: flex;
            align-items: center;
            gap: 14px;
            transition: var(--transition);
            box-shadow: var(--shadow-sm);
        }
        .quick-card:hover {
            transform: translateY(-4px);
            border-color: var(--primary-500);
            box-shadow: var(--shadow-hover);
        }
        .qc-icon {
            width: 48px;
            height: 48px;
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            flex-shrink: 0;
        }
        .qc-1 { background: #e0f2fe; color: #0284c7; }
        .qc-2 { background: #dcfce7; color: #16a34a; }
        .qc-3 { background: #fef3c7; color: #d97706; }
        .qc-4 { background: #fee2e2; color: #dc2626; }
        .qc-info h3 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
        .qc-info p { font-size: 12px; color: var(--text-muted); line-height: 1.3; }

        /* HERO SECTION */
        .hero-section {
            display: grid;
            grid-template-columns: 7fr 5fr;
            gap: 24px;
            margin-bottom: 40px;
        }
        .featured-main {
            background: var(--surface);
            border-radius: var(--radius-lg);
            border: 1px solid var(--border);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            box-shadow: var(--shadow-md);
            position: relative;
        }
        .featured-main:hover { box-shadow: var(--shadow-hover); }
        .featured-thumb {
            height: 280px;
            background: linear-gradient(135deg, #1e3a8a, #0369a1);
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: flex-end;
            padding: 24px;
            color: white;
        }
        .featured-thumb::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(10, 31, 68, 0.95), transparent 70%);
        }
        .featured-tag {
            position: absolute;
            top: 18px;
            left: 18px;
            background: var(--accent-red);
            color: white;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            padding: 4px 10px;
            border-radius: var(--radius-sm);
            letter-spacing: 0.5px;
            z-index: 2;
        }
        .featured-title-wrap { position: relative; z-index: 2; }
        .featured-title-wrap h2 {
            font-size: 24px;
            font-weight: 800;
            line-height: 1.35;
            color: white;
            margin-bottom: 6px;
        }
        .featured-body {
            padding: 22px;
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        .featured-desc {
            font-size: 14px;
            color: #475569;
            margin-bottom: 16px;
            line-height: 1.6;
        }
        .meta-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 13px;
            color: var(--text-muted);
            border-top: 1px solid var(--border);
            padding-top: 14px;
        }
        .meta-badge { font-weight: 600; color: var(--primary-600); }

        /* TRENDING LIST */
        .trending-box {
            background: var(--surface);
            border-radius: var(--radius-lg);
            border: 1px solid var(--border);
            padding: 20px;
            box-shadow: var(--shadow-sm);
            display: flex;
            flex-direction: column;
        }
        .box-title {
            font-size: 18px;
            font-weight: 800;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--primary-900);
            border-bottom: 2px solid var(--primary-50);
            padding-bottom: 10px;
        }
        .box-title span.badge-num {
            background: var(--primary-100);
            color: var(--primary-700);
            font-size: 11px;
            padding: 2px 8px;
            border-radius: 999px;
        }
        .trending-item {
            display: flex;
            gap: 14px;
            padding: 12px 0;
            border-bottom: 1px solid #f1f5f9;
            transition: var(--transition);
        }
        .trending-item:last-child { border-bottom: none; }
        .trending-item:hover { transform: translateX(4px); }
        .ti-num {
            font-size: 20px;
            font-weight: 800;
            color: #cbd5e1;
            width: 24px;
            flex-shrink: 0;
        }
        .trending-item:nth-child(1) .ti-num { color: #ef4444; }
        .trending-item:nth-child(2) .ti-num { color: #f59e0b; }
        .trending-item:nth-child(3) .ti-num { color: #3b82f6; }
        .ti-content h4 { font-size: 14px; font-weight: 700; line-height: 1.4; margin-bottom: 4px; }
        .ti-content h4:hover { color: var(--primary-600); }
        .ti-meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 10px; }

        /* SECTION HEADER */
        .section-header {
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            margin-bottom: 20px;
        }
        .section-header h2 {
            font-size: 22px;
            font-weight: 800;
            color: var(--primary-900);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .view-all-link {
            font-size: 13px;
            font-weight: 600;
            color: var(--primary-600);
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .view-all-link:hover { text-decoration: underline; }

        /* HUB KCB BHYT TABS */
        .kcb-hub {
            background: var(--surface);
            border-radius: var(--radius-lg);
            border: 1px solid var(--border);
            padding: 24px;
            margin-bottom: 40px;
            box-shadow: var(--shadow-sm);
        }
        .tabs-header {
            display: flex;
            gap: 10px;
            border-bottom: 2px solid #f1f5f9;
            padding-bottom: 12px;
            margin-bottom: 20px;
            overflow-x: auto;
        }
        .tab-btn {
            background: none;
            border: none;
            font-family: inherit;
            font-size: 14px;
            font-weight: 700;
            padding: 8px 18px;
            border-radius: 9999px;
            cursor: pointer;
            color: #64748b;
            transition: var(--transition);
            white-space: nowrap;
        }
        .tab-btn:hover { background: #f1f5f9; color: var(--text-main); }
        .tab-btn.active {
            background: var(--primary-600);
            color: white;
            box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
        }
        .tab-pane { display: none; }
        .tab-pane.active { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
        
        .kcb-card {
            background: #f8fafc;
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: 16px;
            transition: var(--transition);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        .kcb-card:hover {
            background: var(--surface);
            border-color: var(--primary-400);
            box-shadow: var(--shadow-md);
            transform: translateY(-2px);
        }
        .kcb-badge {
            align-self: flex-start;
            font-size: 11px;
            font-weight: 700;
            padding: 3px 8px;
            border-radius: 4px;
            margin-bottom: 8px;
        }
        .badge-hn { background: #fee2e2; color: #b91c1c; }
        .badge-hcm { background: #e0f2fe; color: #0369a1; }
        .badge-tq { background: #fef3c7; color: #b45309; }
        .kcb-card h4 { font-size: 15px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
        .kcb-card .hits-tag { font-size: 12px; color: var(--accent-red); font-weight: 600; }

        /* DANH BẠ BHXH QUẬN HUYỆN DIRECTORY */
        .directory-section {
            margin-bottom: 40px;
        }
        .dir-controls {
            display: flex;
            gap: 12px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }
        .dir-filter-btn {
            background: var(--surface);
            border: 1px solid var(--border);
            padding: 8px 16px;
            border-radius: var(--radius-sm);
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
        }
        .dir-filter-btn.active, .dir-filter-btn:hover {
            background: var(--primary-900);
            color: white;
            border-color: var(--primary-900);
        }
        .dir-search {
            flex: 1;
            min-width: 250px;
            padding: 8px 14px;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            font-family: inherit;
            font-size: 13px;
            outline: none;
        }
        .dir-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
        }
        .dir-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: 16px;
            box-shadow: var(--shadow-sm);
            transition: var(--transition);
        }
        .dir-card:hover {
            border-color: var(--primary-600);
            box-shadow: var(--shadow-hover);
            transform: translateY(-2px);
        }
        .dir-city { font-size: 11px; font-weight: 700; color: var(--primary-600); text-transform: uppercase; }
        .dir-name { font-size: 15px; font-weight: 700; margin: 4px 0 10px; color: var(--text-main); }
        .dir-detail { font-size: 12px; color: #475569; margin-bottom: 4px; display: flex; gap: 6px; }
        .dir-detail strong { color: var(--text-main); }

        /* INTERACTIVE CALCULATOR WIDGETS */
        .calculator-section {
            background: linear-gradient(135deg, #0f172a, #1e293b);
            color: white;
            border-radius: var(--radius-lg);
            padding: 32px;
            margin-bottom: 40px;
            box-shadow: var(--shadow-lg);
        }
        .calc-header { text-align: center; max-width: 600px; margin: 0 auto 24px; }
        .calc-header h2 { font-size: 24px; font-weight: 800; color: white; margin-bottom: 6px; }
        .calc-header p { font-size: 13px; color: #94a3b8; }
        .calc-nav {
            display: flex;
            justify-content: center;
            gap: 12px;
            margin-bottom: 24px;
        }
        .calc-nav-btn {
            background: rgba(255,255,255,0.08);
            border: 1px solid rgba(255,255,255,0.15);
            color: #cbd5e1;
            padding: 10px 20px;
            border-radius: 9999px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
        }
        .calc-nav-btn.active, .calc-nav-btn:hover {
            background: var(--primary-500);
            color: white;
            border-color: var(--primary-500);
        }
        .calc-form-box {
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: var(--radius-md);
            padding: 24px;
            max-width: 720px;
            margin: 0 auto;
        }
        .calc-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
            margin-bottom: 18px;
        }
        .form-group { display: flex; flex-direction: column; gap: 6px; }
        .form-group label { font-size: 13px; font-weight: 600; color: #cbd5e1; }
        .form-group input, .form-group select {
            padding: 10px 14px;
            border-radius: var(--radius-sm);
            border: 1px solid #334155;
            background: #0f172a;
            color: white;
            font-family: inherit;
            font-size: 14px;
            outline: none;
        }
        .form-group input:focus, .form-group select:focus { border-color: var(--primary-500); }
        .btn-calc {
            width: 100%;
            background: linear-gradient(135deg, #10b981, #059669);
            color: white;
            font-family: inherit;
            font-size: 15px;
            font-weight: 700;
            padding: 12px;
            border: none;
            border-radius: var(--radius-sm);
            cursor: pointer;
            transition: var(--transition);
        }
        .btn-calc:hover { filter: brightness(1.1); transform: translateY(-1px); }
        .calc-result-box {
            margin-top: 18px;
            padding: 16px;
            border-radius: var(--radius-sm);
            background: rgba(16, 185, 129, 0.15);
            border: 1px solid rgba(16, 185, 129, 0.4);
            text-align: center;
            display: none;
        }
        .calc-result-box.active { display: block; }
        .calc-result-box .res-num { font-size: 22px; font-weight: 800; color: #34d399; margin: 4px 0; }

        /* FAQ ACCORDION */
        .faq-section {
            margin-bottom: 40px;
        }
        .faq-wrap {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }
        .faq-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: 18px;
            box-shadow: var(--shadow-sm);
            cursor: pointer;
            transition: var(--transition);
        }
        .faq-card:hover { border-color: var(--primary-500); }
        .faq-question {
            font-size: 15px;
            font-weight: 700;
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: var(--primary-900);
        }
        .faq-answer {
            font-size: 13px;
            color: #475569;
            margin-top: 10px;
            line-height: 1.6;
            display: none;
        }
        .faq-card.open .faq-answer { display: block; }
        .faq-card.open .faq-question span { transform: rotate(180deg); }

        /* FOOTER */
        footer {
            background: #0b1329;
            color: #94a3b8;
            padding: 50px 0 20px;
            font-size: 13px;
            border-top: 3px solid var(--primary-600);
        }
        .footer-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1.5fr;
            gap: 30px;
            margin-bottom: 40px;
        }
        .footer-col h4 {
            color: white;
            font-size: 15px;
            font-weight: 700;
            margin-bottom: 16px;
            border-left: 3px solid var(--primary-500);
            padding-left: 8px;
        }
        .footer-col ul { list-style: none; }
        .footer-col li { margin-bottom: 8px; }
        .footer-col a:hover { color: white; text-decoration: underline; }
        .footer-bottom {
            border-top: 1px solid #1e293b;
            padding-top: 20px;
            text-align: center;
            font-size: 12px;
            color: #64748b;
        }

        /* RESPONSIVE DESIGN */
        @media (max-width: 1200px) {
            .nav-links-list { gap: 14px; }
            .nav-item { font-size: 13px; }
            .nav-btn { padding: 7px 14px; font-size: 12px; }
            .logo-text .brand-name { font-size: 20px; }
            .logo-text .brand-sub { font-size: 12px; }
            .search-container { max-width: 320px; }
        }

        /* TABLET & MOBILE BREAKPOINT (DƯỚI 992px) */
        @media (max-width: 992px) {
            .header-wrap {
                height: 66px;
                gap: 12px;
            }
            
            /* Ẩn search container tĩnh ở giữa header */
            .search-container {
                display: none !important;
            }

            /* Bật Header Actions trên Mobile/Tablet */
            .header-actions {
                display: flex;
            }

            /* Chuyển Nav Links thành Mobile Drawer */
            nav.nav-links {
                position: fixed;
                top: 0;
                right: -320px;
                width: 300px;
                max-width: 85vw;
                height: 100vh;
                background: var(--surface);
                box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
                z-index: 2000;
                flex-direction: column;
                align-items: stretch;
                justify-content: flex-start;
                padding: 0;
                overflow-y: auto;
                transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            }
            nav.nav-links.active {
                right: 0;
            }

            /* Mobile Drawer Header */
            .mobile-drawer-header {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 16px 20px;
                border-bottom: 1px solid var(--border);
                background: var(--surface-alt);
            }
            .drawer-brand {
                display: flex;
                align-items: center;
                gap: 10px;
            }
            .drawer-title strong {
                display: block;
                font-size: 16px;
                color: var(--primary-700);
            }
            .drawer-title small {
                font-size: 12px;
                color: var(--text-muted);
            }
            .drawer-close-btn {
                background: none;
                border: none;
                font-size: 28px;
                line-height: 1;
                cursor: pointer;
                color: #64748b;
                padding: 4px;
            }
            .drawer-close-btn:hover { color: var(--accent-red); }

            /* Drawer Search Box */
            .drawer-search-wrap {
                display: block;
                padding: 16px 20px 8px;
            }
            .drawer-search-wrap .search-box {
                background: var(--surface-alt);
                padding: 8px 14px;
            }

            /* Nav Links List trên Drawer */
            .nav-links-list {
                flex-direction: column;
                align-items: stretch;
                gap: 0;
                padding: 10px 14px 30px;
            }
            .nav-item {
                font-size: 15px;
                font-weight: 600;
                color: var(--text-main);
                padding: 14px 16px;
                border-radius: var(--radius-md);
                display: flex;
                align-items: center;
                gap: 12px;
                border-bottom: 1px solid #f1f5f9;
            }
            .nav-item:hover, .nav-item:active {
                background: var(--primary-50);
                color: var(--primary-700);
            }
            .nav-item .nav-icon {
                display: inline-block;
                font-size: 18px;
                width: 24px;
                text-align: center;
            }
            .nav-btn.nav-btn-desktop {
                margin-top: 16px;
                justify-content: center;
                padding: 12px 20px;
                font-size: 14px;
                border-radius: var(--radius-md);
            }

            /* Mobile Expandable Search Bar */
            .mobile-search-bar {
                display: none;
                background: var(--surface);
                border-bottom: 1px solid var(--border);
                padding: 10px 0;
                box-shadow: var(--shadow-md);
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                z-index: 999;
            }
            .mobile-search-bar.active {
                display: block;
                animation: slideDown 0.2s ease-out;
            }

            /* Backdrop Overlay */
            .nav-backdrop {
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: rgba(15, 23, 42, 0.45);
                backdrop-filter: blur(3px);
                z-index: 1999;
                opacity: 0;
                visibility: hidden;
                transition: all 0.25s ease;
            }
            .nav-backdrop.active {
                opacity: 1;
                visibility: visible;
                display: block;
            }

            .hero-section { grid-template-columns: 1fr; }
            .quick-bar { grid-template-columns: repeat(2, 1fr); }
            .tab-pane.active { grid-template-columns: repeat(2, 1fr); }
            .dir-grid { grid-template-columns: repeat(2, 1fr); }
            .footer-grid { grid-template-columns: 1fr 1fr; }
        }

        /* MOBILE DƯỚI 640px & 480px */
        @media (max-width: 640px) {
            .header-wrap {
                height: 60px;
                padding: 0 12px;
            }
            .logo-icon {
                width: 36px;
                height: 36px;
                font-size: 17px;
            }
            /* Ẩn dòng chữ phụ "Cổng Thông Tin Bảo Hiểm Xã Hội" để logo không bị vỡ / tràn viền */
            .logo-text .brand-sub {
                display: none;
            }
            .logo-text .brand-name {
                font-size: 18px;
            }
            .header-cta-pill .cta-label {
                display: none; /* Chỉ hiện icon 🧮 trên mobile để tiết kiệm diện tích */
            }
            .header-cta-pill {
                padding: 7px 10px;
            }
            .top-banner {
                font-size: 12px;
                padding: 6px 10px;
            }

            .quick-bar { grid-template-columns: 1fr; }
            .tab-pane.active { grid-template-columns: 1fr; }
            .dir-grid { grid-template-columns: 1fr; }
            .faq-wrap { grid-template-columns: 1fr; }
            .calc-grid { grid-template-columns: 1fr; }
            .footer-grid { grid-template-columns: 1fr; }
        }

        @keyframes slideDown {
            from { opacity: 0; transform: translateY(-8px); }
            to { opacity: 1; transform: translateY(0); }
        }
    

/* INNER PAGE / ARTICLE VIEW STYLES */
.inner-page-wrap { padding: 32px 0 60px; }
.inner-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: start;
}
@media (max-width: 860px) {
    .inner-layout { grid-template-columns: 1fr; }
    .sidebar-wrap { margin-top: 36px; }
}

.article-main {
    min-width: 0;
    max-width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
@media (max-width: 768px) {
    .article-main { padding: 20px 16px; }
}

.article-main h1 { font-size: 28px; line-height: 1.35; margin-bottom: 16px; color: var(--text-main); }
.article-meta { display: flex; gap: 18px; font-size: 13px; color: var(--text-muted); border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 24px; }
.article-body { font-size: 16px; line-height: 1.8; color: #1e293b; }
.article-body p { margin-bottom: 18px; }
.article-body h2, .article-body h3 { margin: 28px 0 14px; color: var(--primary-900); }
.article-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.article-body table th, .article-body table td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.article-body table th { background: var(--primary-50); color: var(--primary-800); }
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius-md); margin: 16px 0; }

/* SIDEBAR & MODULES STYLING */
.sidebar-wrap {
    min-width: 0;
    position: sticky;
    top: 85px;
    align-self: start;
}

.sidebar-box,
.sidebar-wrap .moduletable {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.sidebar-box h3,
.sidebar-wrap .moduletable h3,
.sidebar-wrap .moduletable .page-header {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-900);
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-100);
}

.sidebar-wrap .moduletable ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.sidebar-wrap .moduletable li {
    list-style: none !important;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border);
}

.sidebar-wrap .moduletable li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-wrap .moduletable li a {
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    display: block;
}

.sidebar-wrap .moduletable li a:hover {
    color: var(--primary-600);
    transform: translateX(3px);
}

.sidebar-item { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px dashed var(--border); display: block; font-size: 14px; font-weight: 500; color: var(--text-main); text-decoration: none; }
.sidebar-item:hover { color: var(--primary-600); }
.ads-placeholder { background: #f1f5f9; border: 2px dashed #cbd5e1; border-radius: 8px; padding: 20px; text-align: center; color: #64748b; font-size: 13px; margin: 20px 0; }


/* ==========================================================================
   ARTICLE DETAIL VIEW - CAO CẤP & TỐI ƯU TRẢI NGHIỆM ĐỌC (EDITORIAL STYLES)
   ========================================================================== */

.article-detail-wrap {
    color: #1e293b;
    font-family: inherit;
}

/* Breadcrumb */
.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.article-breadcrumb a { color: #64748b; font-weight: 500; }
.article-breadcrumb a:hover { color: var(--primary-600); text-decoration: underline; }
.article-breadcrumb .sep { color: #cbd5e1; }
.article-breadcrumb .cur { color: #0f172a; font-weight: 600; }

/* Article Header Box */
.article-header-box {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.cat-badge-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.article-cat-badge {
    background: var(--primary-100);
    color: var(--primary-700);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.article-cat-badge:hover { background: var(--primary-600); color: white; }
.views-badge {
    font-size: 12px;
    color: var(--accent-red);
    font-weight: 700;
}
.article-main-title {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--primary-900);
    margin-bottom: 18px;
}
@media (max-width: 768px) {
    .article-main-title { font-size: 24px; }
}

/* Meta Bar & Reading Tools */
.article-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    background: #f8fafc;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}
.meta-left { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.meta-left strong { color: var(--text-main); font-weight: 600; }
.reading-tools { display: flex; align-items: center; gap: 6px; }
.tool-label { font-size: 12px; font-weight: 600; margin-right: 4px; }
.btn-tool {
    background: white;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-main);
    transition: var(--transition);
}
.btn-tool:hover { background: var(--primary-50); border-color: var(--primary-500); color: var(--primary-700); }
.btn-print { margin-left: 6px; }

/* Callout Box */
.article-callout-box {
    background: #eff6ff;
    border-left: 4px solid var(--primary-600);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
    align-items: flex-start;
}
.callout-icon { font-size: 22px; line-height: 1; flex-shrink: 0; }
.callout-text { font-size: 14px; line-height: 1.6; color: #1e3a8a; }

/* Auto Table of Contents (TOC) */
.toc-container {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}
.toc-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}
.toc-title { font-size: 16px; font-weight: 800; color: var(--primary-900); }
.toc-toggle { font-size: 12px; font-weight: 600; color: var(--primary-600); }
.toc-list {
    list-style: none;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}
.toc-list li { margin-bottom: 8px; font-size: 14px; }
.toc-list li.toc-level-3 { padding-left: 20px; font-size: 13px; }
.toc-list a { color: #334155; font-weight: 500; transition: var(--transition); }
.toc-list a:hover { color: var(--primary-600); text-decoration: underline; }

/* Article Content Body */
.article-content-body,
.article-body-content {
    font-size: 17px;
    line-height: 1.85;
    color: #1e293b;
    word-break: break-word;
}
.article-content-body p,
.article-body-content p { margin-bottom: 20px; }
.article-content-body h2,
.article-body-content h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-900);
    margin: 36px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-100);
    scroll-margin-top: 90px;
}
.article-content-body h3,
.article-body-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-800);
    margin: 28px 0 14px;
    scroll-margin-top: 90px;
}
.article-content-body h4,
.article-body-content h4 { font-size: 16px; font-weight: 700; margin: 20px 0 10px; }
.article-content-body ul,
.article-content-body ol,
.article-body-content ul,
.article-body-content ol { margin: 0 0 20px 24px; }
.article-content-body li,
.article-body-content li { margin-bottom: 8px; }

/* LINK TRONG NỘI DUNG BÀI VIẾT - RÕ RÀNG, NỔI BẬT & TRỰC QUAN */
.article-content-body a,
.article-body-content a {
    color: #1d4ed8 !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
    text-decoration-color: #93c5fd !important;
    text-decoration-thickness: 1.5px !important;
    text-underline-offset: 3px !important;
    padding: 1px 3px !important;
    margin: -1px -3px !important;
    border-radius: 4px !important;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: inline !important;
}
.article-content-body a:hover,
.article-body-content a:hover {
    color: #1e40af !important;
    background-color: #eff6ff !important;
    text-decoration-color: #1d4ed8 !important;
    text-decoration-thickness: 2px !important;
}
.article-content-body a:focus-visible,
.article-body-content a:focus-visible {
    outline: 2px solid #2563eb !important;
    outline-offset: 2px !important;
}

/* Loại trừ hình ảnh hoặc nút chia sẻ không bị gạch chân / đổi nền */
.article-content-body a:has(img),
.article-body-content a:has(img),
.article-content-body a.btn-share,
.article-body-content a.btn-share,
.article-content-body a.btn,
.article-body-content a.btn {
    text-decoration: none !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ==========================================================================
   TỐI ƯU HÓA HÌNH ẢNH TRONG BÀI VIẾT: AUTO-RESIZE & LIGHTBOX ZOOM MODAL
   ========================================================================== */

/* 1. Tự động co giãn ảnh vừa khít 100% khung bài viết, không bao giờ tràn/che */
.article-content-body img,
.article-body-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 22px auto !important;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    cursor: zoom-in;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.article-content-body img:hover,
.article-body-content img:hover {
    transform: translateY(-2px) scale(1.008);
    box-shadow: 0 10px 25px -3px rgba(29, 78, 216, 0.18), 0 4px 6px -2px rgba(29, 78, 216, 0.05);
    border-color: #bfdbfe;
}

/* 2. Lightbox Modal Phóng to Ảnh Toàn Màn Hình */
.bhxh-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    user-select: none;
}

.bhxh-lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.bhxh-lightbox-img-wrap {
    position: relative;
    max-width: 94vw;
    max-height: 84vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bhxh-lightbox-img {
    max-width: 100%;
    max-height: 84vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.65);
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
}

.bhxh-lightbox-modal.active .bhxh-lightbox-img {
    transform: scale(1);
}

.bhxh-lightbox-caption {
    margin-top: 14px;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    max-width: 850px;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    padding: 6px 18px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.bhxh-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.bhxh-lightbox-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    transform: scale(1.1);
}

.bhxh-lightbox-hint {
    position: absolute;
    bottom: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

/* Responsive Styled Tables */
.article-content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
    background: white;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.article-content-body table th {
    background: var(--primary-900);
    color: white;
    font-weight: 700;
    padding: 12px 16px;
    text-align: left;
    border: 1px solid #334155;
}
.article-content-body table td {
    padding: 10px 14px;
    border: 1px solid var(--border);
}
.article-content-body table tr:nth-child(even) { background: #f8fafc; }
.article-content-body table tr:hover { background: #f1f5f9; }

/* Tags Section */
.article-tags-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.tags-label { font-size: 13px; font-weight: 700; color: #475569; }
.tag-pills-wrap { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-pill {
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    transition: var(--transition);
}
.tag-pill:hover { background: var(--primary-600); color: white; text-decoration: none; }

/* Share Bar */
.article-share-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 32px;
    padding: 14px 18px;
    background: #f8fafc;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    flex-wrap: wrap;
    position: relative;
}
.btn-share {
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}
.btn-share.fb { background: #1877f2; }
.btn-share.fb:hover { background: #166fe5; }
.btn-share.zalo { background: #0068ff; }
.btn-share.zalo:hover { background: #0056d6; }
.btn-share.copy { background: #475569; }
.btn-share.copy:hover { background: #334155; }
.copy-toast {
    display: none;
    position: absolute;
    right: 20px;
    background: #10b981;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}

/* Author Box (E-E-A-T) */
.author-eeat-box {
    display: flex;
    gap: 18px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 32px;
    align-items: center;
}
.author-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-600), #06b6d4);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    flex-shrink: 0;
}
.author-info h4 { font-size: 15px; font-weight: 700; color: var(--primary-900); margin-bottom: 4px; }
.author-info p { font-size: 13px; color: #475569; line-height: 1.5; margin: 0; }

/* Prev / Next Cards */
.article-nav-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 36px;
}
@media (max-width: 640px) { .article-nav-cards { grid-template-columns: 1fr; } }
.nav-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.nav-card:hover { border-color: var(--primary-500); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.nav-card .nav-label { font-size: 12px; font-weight: 700; color: var(--primary-600); text-transform: uppercase; }
.nav-card .nav-title { font-size: 14px; font-weight: 700; color: var(--text-main); line-height: 1.4; }

/* Related Articles */
.related-articles-box {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 2px solid var(--primary-100);
}
.related-heading {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-900);
    margin-bottom: 20px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
@media (max-width: 768px) { .related-grid { grid-template-columns: 1fr; } }
.related-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.related-card:hover { border-color: var(--primary-500); box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.rc-badge {
    align-self: flex-start;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 10px;
}
.related-card h4 { font-size: 15px; font-weight: 700; line-height: 1.45; margin-bottom: 12px; }
.related-card h4 a { color: var(--text-main); }
.related-card h4 a:hover { color: var(--primary-600); }
.rc-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--accent-red); font-weight: 600; border-top: 1px solid #f1f5f9; padding-top: 10px; }
.rc-link { color: var(--primary-600); font-weight: 700; }

/* ==========================================================================
   CATEGORY BLOG VIEW & CARD REDESIGN - HIỆN ĐẠI, NỔI BẬT & TỐI ƯU
   ========================================================================== */

.category-page-wrap {
    color: #1e293b;
    margin-bottom: 40px;
}

/* 1. Category Breadcrumb */
.category-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.category-breadcrumb a { color: #64748b; font-weight: 500; text-decoration: none; }
.category-breadcrumb a:hover { color: var(--primary-600); text-decoration: underline; }
.category-breadcrumb .sep { color: #cbd5e1; }
.category-breadcrumb .cur { color: #0f172a; font-weight: 600; }

/* 2. Category Header Banner */
.category-header-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 70%, #2563eb 100%);
    border-radius: 14px;
    padding: 26px 30px;
    margin-bottom: 28px;
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(29, 78, 216, 0.25), 0 8px 10px -6px rgba(29, 78, 216, 0.15);
    position: relative;
    overflow: hidden;
}
.category-header-banner::after {
    content: "";
    position: absolute;
    right: -20px;
    bottom: -30px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}
.cat-header-content {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}
.cat-icon-badge {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}
.cat-title-wrap {
    flex: 1;
}
.cat-badge-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
}
.cat-page-title {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;
}
.cat-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    flex-wrap: wrap;
}
.cat-meta-row .dot { color: rgba(255, 255, 255, 0.5); }
.cat-counter-pill {
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 10px;
    border-radius: 9999px;
    color: #ffffff;
}
.cat-header-desc {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* 3. Article Cards Stream (Grid / List) */
.category-articles-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cat-article-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    gap: 22px;
}
.cat-article-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 12px 24px -6px rgba(29, 78, 216, 0.12), 0 4px 8px -2px rgba(29, 78, 216, 0.04);
    transform: translateY(-2px);
}
.cat-article-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 4px;
    background: transparent;
    border-radius: 0 4px 4px 0;
    transition: background 0.25s ease;
}
.cat-article-card:hover::before {
    background: var(--primary-600);
}

/* Thumb if available */
.cat-article-thumb-wrap {
    width: 220px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    max-height: 160px;
}
.cat-article-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.cat-article-card:hover .cat-article-thumb {
    transform: scale(1.04);
}

.cat-article-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Article Meta Header */
.cat-article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.meta-badge-cat {
    background: #eff6ff;
    color: var(--primary-700);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #dbeafe;
}
.meta-date, .meta-hits {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.meta-date svg, .meta-hits svg {
    color: #94a3b8;
}

/* PROMINENT ARTICLE TITLE (TỐI ƯU HÓA ĐẶC BIỆT THEO YÊU CẦU) */
.cat-article-title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.45;
    margin: 4px 0 12px 0;
    color: #0f172a;
    letter-spacing: -0.2px;
}
.cat-article-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}
.cat-article-title a:hover {
    color: var(--primary-600);
}

/* Readability-focused Summary Introtext */
.cat-article-intro {
    font-size: 0.94rem;
    line-height: 1.65;
    color: #475569;
    font-weight: 400;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cat-article-intro p { margin: 0 0 6px 0; }
.cat-article-intro p:last-child { margin-bottom: 0; }

/* Tags Pills (No Bullets) */
.cat-article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 12px;
}
.tags-label {
    font-weight: 700;
    color: #64748b;
    margin-right: 2px;
}
.tag-pill {
    display: inline-block;
    background: #f1f5f9;
    color: #334155;
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-weight: 500;
    transition: all 0.2s ease;
}
.tag-pill:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #cbd5e1;
}

/* Footer / Action Button */
.cat-article-footer {
    margin-top: auto;
    padding-top: 8px;
}
.cat-readmore-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-600);
    background: #eff6ff;
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid #bfdbfe;
    text-decoration: none;
    transition: all 0.2s ease;
}
.cat-readmore-btn svg {
    transition: transform 0.2s ease;
}
.cat-readmore-btn:hover {
    background: var(--primary-600);
    color: #ffffff;
    border-color: var(--primary-600);
}
.cat-readmore-btn:hover svg {
    transform: translateX(4px);
    stroke: #ffffff;
}

/* 4. Empty State */
.category-empty-box {
    text-align: center;
    background: white;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 48px 24px;
    margin: 20px 0;
}
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.category-empty-box h3 { font-size: 18px; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.category-empty-box p { color: #64748b; font-size: 14px; margin-bottom: 18px; }
.btn-back-home {
    display: inline-block;
    background: var(--primary-600);
    color: white;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 6px;
    text-decoration: none;
}

/* ==========================================================================
   5. PHÂN TRANG (PAGINATION) - TUYỆT ĐỐI KHÔNG BULLET, BỐ CỤC CHUẨN HIỆN ĐẠI
   ========================================================================== */

.category-pagination-container {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.pagination-info-text {
    font-size: 13px;
    color: #64748b;
}

/* Reset toàn bộ thẻ ul, li của phân trang Joomla thành flex list chuẩn */
ul.pagination, 
ul.bhxh-pagination-list, 
.pagination-bar ul, 
.pagination__wrapper ul,
.pagination {
    list-style: none !important;
    list-style-type: none !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 0 !important;
    margin: 0 !important;
}

ul.pagination li, 
ul.bhxh-pagination-list li, 
.pagination-bar li, 
.page-item, 
.bhxh-page-item {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
}

ul.pagination li::before, 
ul.bhxh-pagination-list li::before, 
.page-item::before, 
.bhxh-page-item::before {
    display: none !important;
    content: "" !important;
}

/* Styling Nút Bấm Phân Trang */
.bhxh-page-link, 
.page-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 14px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    user-select: none !important;
}

.bhxh-page-link:hover, 
.page-link:hover {
    background: #eff6ff !important;
    color: var(--primary-600) !important;
    border-color: #3b82f6 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08) !important;
}

/* Trang hiện tại (Active) */
.bhxh-page-item.active .bhxh-page-link,
.bhxh-page-link.current,
.page-item.active .page-link {
    background: var(--primary-600) !important;
    color: #ffffff !important;
    border-color: var(--primary-600) !important;
    box-shadow: 0 4px 10px rgba(29, 78, 216, 0.35) !important;
    font-weight: 700 !important;
    cursor: default !important;
}

/* Nút bị vô hiệu hóa (Disabled) */
.bhxh-page-item.disabled .bhxh-page-link,
.page-item.disabled .page-link {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    box-shadow: none !important;
}

/* Nút Bước Tiến / Lùi (nav-step) */
.bhxh-page-item.nav-step .bhxh-page-link {
    font-weight: 700;
    color: #1e293b;
    background: #f8fafc;
}

/* RESPONSIVE DESIGN CHO CATEGORY */
@media (max-width: 768px) {
    .cat-article-card {
        flex-direction: column;
        padding: 18px;
        gap: 14px;
    }
    .cat-article-thumb-wrap {
        width: 100%;
        max-height: 180px;
    }
    .cat-article-title {
        font-size: 1.125rem;
    }
    .category-header-banner {
        padding: 20px 18px;
    }
    .cat-page-title {
        font-size: 20px;
    }
    .bhxh-page-link, .page-link {
        min-width: 36px !important;
        height: 36px !important;
        padding: 0 10px !important;
        font-size: 13px !important;
    }
}