/*
Theme Name: Theme News CQNN
Theme URI: https://dangbo.nsgpc.edu.vn
Author: Rồng Con HG
Author URI: https://rongcon.net
Description: Theme WordPress chuyên dụng cho Trang thông tin điện tử cơ quan nhà nước (CQNN), đoàn thể, trường học tại Việt Nam. Tích hợp bảng quản trị đầy đủ, responsive, marquee, slider tin tức, quick links, banner thông tin nổi bật.
Version: 2.8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: danguy
Tags: government, vietnamese, custom-menu, featured-images, translation-ready
*/

/* ========================
   RESET & BASE
======================== */



/* CSS Variables for Color Theme Switcher */
:root {
    --dg-primary: #8B0000;
    --dg-primary-light: #c62828;
    --dg-primary-dark: #6d0000;
    --dg-accent: #ffd54f;
    --dg-accent-light: #ffecb3;
    --dg-accent-bg: #fffbe5;
    --dg-hover-text: #d32f2f;
    --dg-gradient: linear-gradient(135deg, #8B0000 0%, #c62828 100%);
    --dg-gradient-nav: linear-gradient(180deg, #6d0000 0%, #8B0000 100%);
    --dg-gradient-header: linear-gradient(180deg, #8B0000 0%, #b71c1c 40%, #c62828 100%);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 14px;
}

body {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    background: #f0f2f5;
}

/* Font Awesome Icons Padding */
.fa-classic, .fa-regular, .fa-solid, .far, .fas {
    padding: 8px 10px;
}


a {
    text-decoration: none;
    color: #1a4b8c;
    transition: color 0.2s;
}

a:hover {
    color: var(--dg-hover-text);
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

.site-content {
    width: 100%;
}

.container {
    width: 92%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 clamp(10px, 2vw, 30px);
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}


/* ========================
   TIÊU ĐỀ & TRÍCH DẪN
======================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--dg-primary);
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}
h1 {
    font-size: 2.2em;
    border-bottom: 2px solid var(--dg-accent);
    padding-bottom: 8px;
}
h2 {
    font-size: 1.8em;
    border-left: 4px solid var(--dg-accent);
    padding-left: 10px;
}
h3 {
    font-size: 1.4em;
    color: var(--dg-primary-light);
}
h4, h5, h6 {
    font-size: 1.1em;
    color: var(--dg-hover-text);
}

blockquote {
    border-left: 6px solid var(--dg-accent);
    background: linear-gradient(135deg, #ffffff 0%, color-mix(in srgb, var(--dg-primary-light) 15%, #ffffff) 100%);
    color: var(--dg-primary);
    font-style: italic;
    padding: 16px 24px;
    margin: 24px 0;
    position: relative;
}
blockquote::before {
    content: '\201C';
    color: var(--dg-accent);
    font-size: 2em;
    position: absolute;
    left: 12px;
    top: 8px;
}
blockquote cite {
    display: block;
    margin-top: 12px;
    color: var(--dg-primary-light);
    font-size: 0.95em;
    font-style: normal;
}

hr {
    border: none;
    border-top: 2px solid var(--dg-accent);
    margin: 32px 0;
}
/* ========================
   TOP BAR
======================== */
.top-bar {
    background: var(--dg-gradient);
    color: #fff;
    padding: 0;
    font-size: 13px;
    overflow: hidden;
}

.top-bar .container {
    padding: 0;
}

.top-bar-marquee {
    overflow: hidden;
    white-space: nowrap;
    padding: 6px 0;
}

.top-bar-marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: topbar-marquee 20s linear infinite;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
}

.top-bar-marquee-item {
    display: inline;
}

.top-bar-marquee-item i {
    margin-right: 6px;
    color: var(--dg-accent);
}

.top-bar-marquee-separator {
    display: inline-block;
    margin: 0 40px;
    color: var(--dg-accent);
    font-size: 10px;
}

@keyframes topbar-marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.top-bar-left a {
    color: #fff;
    margin-right: 15px;
    font-size: 12px;
}

.top-bar-left a:hover {
    color: var(--dg-accent);
}

/* ========================
   HEADER
======================== */

.site-header {
    position: relative;
    z-index: 100;
    padding: 0;
    overflow: visible;
}
.header-bg-full {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100%;
    background: var(--dg-gradient-header);
    z-index: 0;
    pointer-events: none;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 20px;
    position: relative;
    z-index: 1;
}
.header-col {
    display: flex;
    align-items: center;
}
.header-col-logo {
    min-width: 100px;
    justify-content: flex-start;
}
.header-col-center {
    flex: 1;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    min-width: 200px;
}
.header-center-title .site-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--dg-accent);
    text-transform: uppercase;
    line-height: 1.3;
}
.header-center-title .site-desc {
    font-size: 14px;
    color: #fff;
    margin-top: 2px;
}
.header-center-img {
    max-height: 70px;
    width: auto;
    margin: 0 auto;
}
.header-col-banner {
    min-width: 180px;
    justify-content: flex-end;
}

.site-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 80px;
}

.site-logo img {
    max-height: 250px;
    width: auto;
}

.site-logo .logo-text {
    /* Logo text styling - inherits from parent */
    display: inline-block;
}

.header-banner .banner-nav button {
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(198, 40, 40, 0.8);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    font-size: 10px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-banner .banner-nav button:hover {
    background: var(--dg-primary-light);
    transform: scale(1.1);
}

/* ========================
   MARQUEE / RUNNING TEXT
======================== */
.marquee-bar {
    background: linear-gradient(90deg, var(--dg-accent), var(--dg-accent-light), var(--dg-accent));
    padding: 6px 0;
    overflow: hidden;
    border-bottom: 2px solid var(--dg-primary-light);
}

.marquee-bar .marquee-content {
    white-space: nowrap;
    animation: marquee 30s linear infinite;
    color: var(--dg-primary);
    font-weight: 700;
    font-size: 14px;
    display: inline-block;
}

.marquee-bar .marquee-item {
    display: inline;
}

.marquee-bar .marquee-item i {
    margin-right: 5px;
    color: var(--dg-primary-light);
}

.marquee-bar .marquee-separator {
    display: inline-block;
    margin: 0 30px;
    color: var(--dg-primary-light);
    font-size: 12px;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ========================
   MAIN NAVIGATION
======================== */
.main-nav {
    background: var(--dg-gradient-nav);
    border-top: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 99;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.main-nav .container {
    position: relative;
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    color: #fff;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-right: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}

.nav-menu > li:first-child > a {
    border-left: 1px solid rgba(255,255,255,0.1);
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
    background: rgba(255,255,255,0.15);
    color: var(--dg-accent);
}

.nav-menu > li > a .menu-icon {
    margin-right: 5px;
    font-size: 14px;
}

/* Dropdown */
.nav-menu li .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-top: 3px solid var(--dg-primary-light);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
}

.nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu li a {
    display: block;
    padding: 10px 16px;
    color: #333;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s;
}

.nav-menu .sub-menu li a:hover {
    background: #fce4ec;
    color: var(--dg-primary-light);
    padding-left: 22px;
}

.nav-menu .sub-menu .sub-menu {
    left: 100%;
    top: 0;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
}

/* ========================
   NEWS SLIDER / CAROUSEL
======================== */
.news-slider-section {
    background: #fff;
    padding: 15px 0;
    border-bottom: 3px solid var(--dg-primary-light);
}

.news-slider-wrapper {
    display: flex;
    gap: 15px;
}

.slider-main {
    flex: 0 0 55%;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.slider-main .slide-item {
    position: relative;
    display: none;
}

.slider-main .slide-item.active {
    display: block;
}

.slider-main .slide-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 5px;
}

.slider-main .slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 30px 15px 15px;
    border-radius: 0 0 5px 5px;
}

.slider-main .slide-caption h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.slider-main .slide-caption h3 a {
    color: #fff;
}

.slider-main .slide-caption h3 a:hover {
    color: var(--dg-accent);
}

.slider-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.slider-side .side-item {
    display: flex;
    gap: 10px;
    padding: 8px;
    background: #f9f9f9;
    border-radius: 5px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.slider-side .side-item:hover {
    background: #fff3e0;
    border-left-color: var(--dg-primary-light);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.slider-side .side-item img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.slider-side .side-item .side-content h4 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slider-side .side-item .side-content h4 a {
    color: #333;
}

.slider-side .side-item .side-content h4 a:hover {
    color: var(--dg-primary-light);
}

.slider-side .side-item .side-content .post-date {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

/* Slider Side Tabs */
.slider-side-tabs {
    flex: 1;
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    max-height: 400px;
}

.slider-side-tabs .tabs-header {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
}

.slider-side-tabs .tab-btn {
    flex: 1;
    padding: 12px 15px;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.slider-side-tabs .tab-btn:hover {
    background: #eee;
}

.slider-side-tabs .tab-btn.active {
    background: #fff;
    color: var(--dg-primary-light);
    border-bottom: 2px solid var(--dg-primary-light);
    margin-bottom: -2px;
}

.slider-side-tabs .tab-btn i {
    font-size: 12px;
}

.slider-side-tabs .tab-content {
    display: none;
    flex: 1;
    overflow-y: auto;
}

.slider-side-tabs .tab-content.active {
    display: block;
}

.slider-side-tabs .news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.slider-side-tabs .news-list li {
    padding: 10px 15px;
    border-bottom: 1px dotted #e0e0e0;
    position: relative;
    padding-left: 25px;
}

.slider-side-tabs .news-list li:last-child {
    border-bottom: none;
}

.slider-side-tabs .news-list li::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--dg-primary-light);
    border-radius: 50%;
}

.slider-side-tabs .news-list li a {
    color: #333;
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.slider-side-tabs .news-list li a:hover {
    color: var(--dg-primary-light);
}

/* ========================
   QUICK LINKS SECTION
======================== */
.quick-links-section {
    padding: 15px 0;
    background: #fff;
    margin-bottom: 15px;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.quick-link-item {
    text-align: center;
    padding: 15px 10px;
    border-radius: 8px;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
    background: linear-gradient(135deg, #fff 0%, #f5f5f5 100%);
}

.quick-link-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
    border-color: var(--dg-primary-light);
}

.quick-link-item .ql-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    background-color: var(--dg-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    transition: all 0.3s;
}

.quick-link-item:hover .ql-icon {
    filter: brightness(0.85);
    transform: scale(1.1);
}

.quick-link-item .ql-title {
    font-size: 12px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    line-height: 1.3;
}

.quick-link-item:hover .ql-title {
    color: var(--dg-primary-light);
}

/* ========================
   MAIN CONTENT AREA
======================== */
.main-content-area {
    padding: 15px 0;
}

.content-wrapper {
    display: flex;
    gap: 20px;
}

/* Sidebar left: reverse order */
.content-wrapper.sidebar-left {
    flex-direction: row-reverse;
}

/* No sidebar: full width content */
.content-wrapper.no-sidebar {
    display: block;
}

.content-wrapper.no-sidebar .content-primary {
    width: 100%;
    max-width: 100%;
}

.content-primary {
    flex: 1;
    min-width: 0;
}

.content-sidebar {
    width: clamp(280px, 25%, 360px);
    flex-shrink: 0;
}

/* ========================
   SECTION BOX
======================== */
.section-box {
    background: #fff;
    border-radius: 5px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.section-header {
    background: var(--dg-gradient);
    padding: 10px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-header h2 {
    font-size: 15px;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.section-header h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    border-radius: 2px;
}

.section-header h2 a {
    color: #fff;
}

.section-header h2 a:hover {
    color: var(--dg-accent);
}

.section-header .view-all {
    color: var(--dg-accent);
    font-size: 12px;
    font-weight: 600;
}

.section-header .view-all:hover {
    color: #fff;
}

.section-body {
    padding: 15px;
}

/* ========================
   NEWS LIST STYLES
======================== */
.news-featured {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e0e0e0;
}

.news-featured .news-thumb {
    width: 200px;
    flex-shrink: 0;
}

.news-featured .news-thumb img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
}

.news-featured .news-info h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-featured .news-info h3 a {
    color: #1a237e;
}

.news-featured .news-info h3 a:hover {
    color: var(--dg-primary-light);
}

.news-featured .news-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-featured .news-meta {
    margin-top: 8px;
    font-size: 12px;
    color: #999;
}

.news-featured .news-meta i {
    margin-right: 4px;
}

/* News list items */
.news-list-item {
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px dotted #e0e0e0;
}

.news-list-item:last-child {
    border-bottom: none;
}

.news-list-item::before {
    content: '»';
    color: var(--dg-primary-light);
    font-weight: 700;
    margin-right: 8px;
    flex-shrink: 0;
    margin-top: 1px;
}

.news-list-item a {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list-item a:hover {
    color: var(--dg-primary-light);
}

/* News list item with thumbnail */
.news-list-item.has-thumb {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dotted #e0e0e0;
}

.news-list-item.has-thumb::before {
    display: none;
}

.news-list-item.has-thumb:last-child {
    border-bottom: none;
}

.news-list-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 55px;
    overflow: hidden;
    border-radius: 4px;
    background: #f0f2f5;
}

.news-list-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.news-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-list-item.has-thumb:hover .news-list-thumb img {
    transform: scale(1.05);
}

.news-list-content {
    flex: 1;
    min-width: 0;
}

.news-list-title {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
    transition: color 0.2s ease;
}

.news-list-item.has-thumb:hover .news-list-title {
    color: var(--dg-primary-light);
}

.news-list-meta {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.news-list-meta i {
    margin-right: 4px;
    color: var(--dg-primary-light);
}

/* News with image list */
.news-image-list .news-img-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dotted #e0e0e0;
}

.news-image-list .news-img-item:last-child {
    border-bottom: none;
}

.news-image-list .news-img-item img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.news-image-list .news-img-item h4 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.news-image-list .news-img-item h4 a {
    color: #333;
}

.news-image-list .news-img-item h4 a:hover {
    color: var(--dg-primary-light);
}

/* Two column sections */
.two-col-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ========================
   SIDEBAR WIDGETS
======================== */
.widget {
    background: #fff;
    border-radius: 5px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.widget-title {
    background: var(--dg-gradient);
    padding: 10px 0px;
    font-size: 14px;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--dg-accent);
    border-radius: 2px;
}

/* WordPress Block Widgets - đồng bộ style tiêu đề với widget theme */
.widget.widget_block > h2,
.widget.widget_block > h3,
.widget.widget_block > .wp-block-heading,
.widget.widget_block > h2.wp-block-heading,
.widget h2.widget-title,
.widget h2.wp-block-heading:first-child {
    background: var(--dg-gradient);
    padding: 10px 12px;
    font-size: 14px;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    border: none;
    border-left: none;
    line-height: 1.4;
}

.widget.widget_block > h2::before,
.widget.widget_block > h3::before,
.widget.widget_block > .wp-block-heading::before,
.widget.widget_block > h2.wp-block-heading::before,
.widget h2.widget-title::before,
.widget h2.wp-block-heading:first-child::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--dg-accent);
    border-radius: 2px;
    flex-shrink: 0;
}

.widget-title-text {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.widget-view-all {
    font-size: 11px;
    font-weight: 500;
    color: var(--dg-accent);
    text-transform: none;
    margin-left: auto;
    padding-right: 10px;
    white-space: nowrap;
}

.widget-view-all:hover {
    color: #fff;
    text-decoration: underline;
}

.widget-content {
    padding: 10px;
}

/* Schedule Widget */
.widget-schedule .schedule-item {
    padding: 8px 10px;
    border-bottom: 1px dotted #e0e0e0;
    font-size: 13px;
}

.widget-schedule .schedule-item:last-child {
    border-bottom: none;
}

.widget-schedule .schedule-item a {
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.widget-schedule .schedule-item a:hover {
    color: var(--dg-primary-light);
}

.widget-schedule .schedule-item .schedule-date {
    font-size: 11px;
    color: #999;
    margin-top: 3px;
}

/* Notice Widget */
.widget-notice .notice-item {
    padding: 8px 10px;
    border-bottom: 1px dotted #e0e0e0;
    font-size: 13px;
    display: flex;
    align-items: flex-start;
}

.widget-notice .notice-item::before {
    content: '📌';
    margin-right: 8px;
    flex-shrink: 0;
}

.widget-notice .notice-item:last-child {
    border-bottom: none;
}

.widget-notice .notice-item a {
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.widget-notice .notice-item a:hover {
    color: var(--dg-primary-light);
}

/* Banner Widget */
.widget-banners .banner-item {
    margin-bottom: 8px;
}

.widget-banners .banner-item:last-child {
    margin-bottom: 0;
}

.widget-banners .banner-item img {
    width: 100%;
    border-radius: 4px;
    transition: opacity 0.3s;
}

.widget-banners .banner-item img:hover {
    opacity: 0.9;
}

.widget-banners .banner-item .text-link {
    display: block;
    padding: 10px 12px;
    background: #f5f5f5;
    color: #333;
    font-size: 13px;
    border-radius: 4px;
    border-left: 3px solid var(--dg-primary-light);
    transition: all 0.3s;
}

.widget-banners .banner-item .text-link:hover {
    background: #fff3e0;
    color: var(--dg-primary-light);
}

.widget-banners .banner-item .text-link i {
    margin-right: 6px;
    color: var(--dg-primary-light);
}

/* ========================
   WordPress Default Widgets Styling
   (Categories, Recent Posts, Archives, Meta, etc.)
   Applied to: Sidebar Phải, Banner Sidebar
======================== */

/* Widget Lists (ul) - general styling */
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 8px 10px;
    border-bottom: 1px dotted #e0e0e0;
    font-size: 13px;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #333;
    display: block;
    transition: color 0.3s;
}

.widget ul li a:hover {
    color: var(--dg-primary-light);
}

/* Categories Widget */
.widget_categories ul li,
.widget_archive ul li,
.widget_recent_entries ul li,
.widget_meta ul li,
.widget_pages ul li,
.widget_nav_menu ul li {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.widget_categories ul li::before,
.widget_archive ul li::before {
    content: '\f07b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    margin-right: 8px;
    color: var(--dg-primary-light);
    font-size: 12px;
}

.widget_recent_entries ul li::before {
    content: '\f15c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    margin-right: 8px;
    color: var(--dg-primary-light);
    font-size: 12px;
}

.widget_meta ul li::before,
.widget_pages ul li::before,
.widget_nav_menu ul li::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 8px;
    color: var(--dg-primary-light);
    font-size: 12px;
}

/* Post count in categories/archives */
.widget_categories ul li .count,
.widget_archive ul li .count {
    margin-left: auto;
    font-size: 11px;
    color: #999;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Recent Posts - date styling */
.widget_recent_entries ul li .post-date {
    display: block;
    width: 100%;
    font-size: 11px;
    color: #999;
    margin-top: 3px;
    padding-left: 20px;
}

/* Recent Comments Widget */
.widget_recent_comments ul li {
    display: block;
    line-height: 1.5;
}

.widget_recent_comments ul li::before {
    content: '\f075';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    margin-right: 8px;
    color: var(--dg-primary-light);
    font-size: 12px;
}

/* RSS Widget */
.widget_rss ul li::before {
    content: '\f09e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 8px;
    color: #f57c00;
    font-size: 12px;
}

/* Search Widget */
.widget_search .search-form {
    display: flex;
    gap: 0;
}

.widget_search .search-field {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 13px;
}

.widget_search .search-submit {
    padding: 8px 15px;
    background: var(--dg-primary-light);
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.widget_search .search-submit:hover {
    background: var(--dg-primary);
}

/* Tag Cloud Widget */
.widget_tag_cloud .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.widget_tag_cloud .tagcloud a {
    display: inline-block;
    padding: 4px 10px;
    background: #f5f5f5;
    color: #666;
    font-size: 12px !important;
    border-radius: 3px;
    transition: all 0.3s;
}

.widget_tag_cloud .tagcloud a:hover {
    background: var(--dg-primary-light);
    color: #fff;
}

/* Calendar Widget */
.widget_calendar table {
    width: 100%;
    border-collapse: collapse;
}

.widget_calendar caption {
    font-weight: 600;
    padding: 8px;
    background: #f5f5f5;
}

.widget_calendar th,
.widget_calendar td {
    text-align: center;
    padding: 6px;
    font-size: 12px;
}

.widget_calendar th {
    background: #f9f9f9;
    font-weight: 600;
}

.widget_calendar td a {
    color: var(--dg-primary-light);
    font-weight: 600;
}

/* Text Widget */
.widget_text .textwidget {
    font-size: 13px;
    line-height: 1.6;
    color: #555;
}

.widget_text .textwidget p {
    margin-bottom: 10px;
}

.widget_text .textwidget p:last-child {
    margin-bottom: 0;
}

/* Custom HTML Widget */
.widget_custom_html {
    font-size: 13px;
}

/* Image Widget */
.widget_media_image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Video Widget */
.widget_media_video .wp-video {
    width: 100% !important;
}

/* Video Widget */
.widget-video .video-main {
    margin-bottom: 10px;
}

.widget-video .video-main .video-embed,
.widget-video .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 4px;
}

.widget-video .video-main .video-embed iframe,
.widget-video .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.widget-video .video-main .video-title {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
}

.widget-video .video-list .video-item {
    padding: 6px 0;
    border-bottom: 1px dotted #e0e0e0;
}

.widget-video .video-list .video-item a {
    font-size: 12px;
    color: #333;
}

.widget-video .video-list .video-item a:hover {
    color: var(--dg-primary-light);
}

/* Poll Widget */
.widget-poll .poll-title-text {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.widget-poll .poll-option {
    margin-bottom: 8px;
}

.widget-poll .poll-option label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
}

.widget-poll .poll-btn {
    display: inline-block;
    background: var(--dg-primary-light);
    color: #fff;
    border: none;
    padding: 6px 20px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.3s;
}

.widget-poll .poll-btn:hover {
    background: var(--dg-primary);
}

.widget-poll .poll-btn i {
    margin-right: 5px;
}

.widget-poll .poll-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

/* Poll Results */
.widget-poll .poll-results {
    margin-top: 10px;
}

.widget-poll .poll-result-item {
    margin-bottom: 12px;
}

.widget-poll .poll-result-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 4px;
}

.widget-poll .poll-option-name {
    color: #333;
    font-weight: 500;
}

.widget-poll .poll-option-percent {
    color: var(--dg-primary-light);
    font-weight: 600;
}

.widget-poll .poll-progress-bar {
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 2px;
}

.widget-poll .poll-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--dg-primary-light), var(--dg-primary));
    border-radius: 5px;
    transition: width 0.5s ease-out;
}

.widget-poll .poll-vote-count {
    font-size: 11px;
    color: #999;
    text-align: right;
}

.widget-poll .poll-total {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
    font-size: 12px;
    color: #666;
    text-align: center;
}

.widget-poll .poll-voted-message {
    margin-top: 10px;
    padding: 8px 12px;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 12px;
    border-radius: 4px;
    text-align: center;
}

.widget-poll .poll-voted-message i {
    margin-right: 5px;
}

.widget-poll .poll-loading {
    text-align: center;
    padding: 20px;
    color: #999;
}

/* Stats Widget */
.widget-stats .stat-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
    border-bottom: 1px dotted #e0e0e0;
    font-size: 13px;
}

.widget-stats .stat-item:last-child {
    border-bottom: none;
}

.widget-stats .stat-label {
    color: #666;
}

.widget-stats .stat-value {
    font-weight: 700;
    color: var(--dg-primary-light);
}

/* ========================
   PROPAGANDA SLIDER
======================== */
.propaganda-section {
    background: #fff;
    padding: 15px 0;
    margin-bottom: 15px;
}

.propaganda-slider {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 5px 0;
}

.propaganda-slider::-webkit-scrollbar {
    height: 4px;
}

.propaganda-slider::-webkit-scrollbar-thumb {
    background: var(--dg-primary-light);
    border-radius: 2px;
}

.propaganda-item {
    flex: 0 0 280px;
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.propaganda-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.propaganda-item .prop-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px 10px 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

/* ========================
   OTHER CATEGORIES SLIDER
======================== */
.categories-slider {
    margin: 15px 0;
}

.categories-slider .slider-wrapper {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
}

.cat-slide-item {
    flex: 0 0 180px;
    text-align: center;
    background: #f5f5f5;
    padding: 12px;
    border-radius: 5px;
    transition: all 0.3s;
}

.cat-slide-item:hover {
    background: #fff3e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cat-slide-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 8px;
}

.cat-slide-item .cat-name {
    font-size: 12px;
    font-weight: 700;
    color: #333;
}

/* ========================
   FOOTER
======================== */
.site-footer {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    color: #ccc;
    padding: 30px 0 0;
    margin-top: 20px;
    position: relative;
}

/* Footer Overlay for Image Background */
.site-footer.has-overlay {
    position: relative;
}

.site-footer .footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
}

.site-footer.has-overlay > .container,
.site-footer.has-overlay > .back-to-top,
.site-footer.has-overlay > .footer-bottom {
    position: relative;
    z-index: 1;
}

/* Footer Widgets - Auto Layout */
.footer-widgets {
    display: grid;
    gap: 30px;
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Grid columns based on active widgets */
.footer-widgets-cols-1 {
    grid-template-columns: 1fr;
}

.footer-widgets-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.footer-widgets-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.footer-widgets-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.footer-widget-col {
    min-width: 0;
}

.footer-widget-col .widget {
    margin-bottom: 20px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.footer-widget-col .widget:last-child {
    margin-bottom: 0;
}

.footer-widget-col .footer-title,
.footer-widget-col .widget-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--dg-accent);
    text-transform: uppercase;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--dg-primary-light);
    background: transparent;
}

.footer-widget-col .widget-content,
.footer-widget-col .textwidget,
.footer-widget-col > div {
    background: transparent;
    color: #ccc;
}

.footer-widget-col p,
.footer-widget-col li,
.footer-widget-col span,
.footer-widget-col div {
    font-size: 13px;
    line-height: 1.8;
    color: #ccc;
    background: transparent;
}

.footer-widget-col a,
.footer-widget-col .widget a,
.footer-widget-col .widget ul li a,
.footer-widget-col ul li a {
    font-size: 13px;
    line-height: 1.8;
    color: var(--dg-accent) !important;
    transition: color 0.3s ease;
}

.footer-widget-col a:hover,
.footer-widget-col .widget a:hover,
.footer-widget-col .widget ul li a:hover,
.footer-widget-col ul li a:hover {
    color: #fff !important;
}

.footer-widget-col strong {
    color: #fff;
}

.footer-widget-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background: transparent;
}

.footer-widget-col ul li {
    padding: 6px 0;
    border-bottom: 1px dotted rgba(255,255,255,0.15);
    background: transparent;
}

.footer-widget-col ul li:last-child {
    border-bottom: none;
}

.footer-widget-col ul li a {
    display: block;
    padding-left: 15px;
    position: relative;
}

.footer-widget-col ul li a::before {
    content: '»';
    position: absolute;
    left: 0;
    color: var(--dg-accent);
    font-weight: bold;
}

/* Footer Widget - Override icon colors for dark background */
.footer-widget-col .widget_categories ul li::before,
.footer-widget-col .widget_archive ul li::before,
.footer-widget-col .widget_recent_entries ul li::before,
.footer-widget-col .widget_meta ul li::before,
.footer-widget-col .widget_pages ul li::before,
.footer-widget-col .widget_nav_menu ul li::before,
.footer-widget-col .widget_recent_comments ul li::before {
    color: var(--dg-accent) !important;
}

/* Footer Widget - Các element đặc biệt */
.footer-widget-col img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.footer-widget-col select,
.footer-widget-col input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    width: 100%;
}

.footer-widget-col select:focus,
.footer-widget-col input:focus {
    outline: none;
    border-color: var(--dg-primary-light);
}

.footer-widget-col table {
    width: 100%;
    border-collapse: collapse;
}

.footer-widget-col table th,
.footer-widget-col table td {
    padding: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    color: #ccc;
}

.footer-widget-col table th {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

/* Calendar Widget in Footer */
.footer-widget-col #wp-calendar {
    background: transparent;
}

.footer-widget-col #wp-calendar caption {
    color: var(--dg-accent);
    font-weight: 700;
    padding: 10px;
}

.footer-widget-col #wp-calendar a {
    color: var(--dg-accent);
}

/* Search Widget in Footer */
.footer-widget-col .search-form {
    display: flex;
    gap: 5px;
}

.footer-widget-col .search-field {
    flex: 1;
}

.footer-widget-col .search-submit {
    background: var(--dg-primary);
    color: #fff;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.footer-widget-col .search-submit:hover {
    background: var(--dg-primary-dark);
}

/* Recent Posts/Comments Widget in Footer */
.footer-widget-col .wp-block-latest-posts,
.footer-widget-col .wp-block-latest-comments {
    padding: 0;
    margin: 0;
}

.footer-widget-col .wp-block-latest-posts li,
.footer-widget-col .wp-block-latest-comments li {
    margin-bottom: 10px;
}

.footer-widget-col .wp-block-latest-posts__post-date,
.footer-widget-col .wp-block-latest-comments__comment-date {
    font-size: 11px;
    color: #999;
    display: block;
    margin-top: 3px;
}

/* Tag Cloud in Footer */
.footer-widget-col .tagcloud a {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    padding: 4px 10px;
    margin: 2px;
    border-radius: 3px;
    font-size: 12px !important;
}

.footer-widget-col .tagcloud a:hover {
    background: var(--dg-primary);
    color: #fff;
}

/* Responsive Footer Widgets */
@media (max-width: 991px) {
    .footer-widgets-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-widgets-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .footer-widgets {
        grid-template-columns: 1fr !important;
    }
}

.footer-main {
    display: flex;
    gap: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-info {
    flex: 2;
}

.footer-info .footer-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dg-accent);
    text-transform: uppercase;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--dg-primary-light);
}

.footer-info p {
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 5px;
}

.footer-info strong {
    color: #fff;
}

.footer-links {
    flex: 1;
}

.footer-links .footer-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--dg-accent);
    text-transform: uppercase;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--dg-primary-light);
}

.footer-links ul li {
    padding: 4px 0;
}

.footer-links ul li a {
    color: #ccc;
    font-size: 13px;
    transition: all 0.2s;
}

.footer-links ul li a:hover {
    color: var(--dg-accent);
    padding-left: 5px;
}

.footer-links ul li a::before {
    content: '» ';
    color: var(--dg-primary-light);
}

.footer-map {
    flex: 1;
}

.footer-map .footer-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--dg-accent);
    text-transform: uppercase;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--dg-primary-light);
}

.footer-map iframe {
    width: 100%;
    height: 200px;
    border: 0;
    border-radius: 5px;
}

.footer-bottom {
    text-align: center;
    padding: 15px 0;
    font-size: 12px;
    color: #999;
}

.footer-bottom a {
    color: var(--dg-accent);
}

/* ========================
   BREADCRUMB
======================== */
.breadcrumb {
    background: #fff;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 13px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.breadcrumb a {
    color: var(--dg-primary-light);
}

.breadcrumb a:hover {
    color: var(--dg-primary-light);
}

.breadcrumb span.separator {
    margin: 0 6px;
    color: #999;
}

.breadcrumb .current {
    color: #666;
    font-weight: 600;
}

/* ========================
   SINGLE POST
======================== */
.single-post-wrap {
    background: #fff;
    border-radius: 5px;
    padding: 25px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.single-post-wrap .post-category {
    display: inline-block;
    background: var(--dg-primary-light);
    color: #fff;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.single-post-wrap .entry-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 12px;
    line-height: 1.4;
}

.single-post-wrap .post-meta {
    display: flex;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
    font-size: 13px;
    color: #666;
}

.single-post-wrap .post-meta i {
    margin-right: 4px;
    color: var(--dg-primary-light);
}

.single-post-wrap .entry-content {
    font-size: 1.07rem;
    line-height: 1.8;
    color: #333;
}

.single-post-wrap .entry-content p {
    margin-bottom: 1em;
    font-size: inherit;
}

.single-post-wrap .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 10px 0;
    text-align: center;
}

.single-post-wrap .entry-content h2 {
    font-size: 1.8rem;
    color: var(--dg-primary);
    margin: 1.3em 0 0.7em;
}

.single-post-wrap .entry-content h3 {
    font-size: 1.29rem;
    color: var(--dg-primary);
    margin: 1em 0 0.7em;
}

.single-post-wrap .entry-content blockquote {
    border-left: 4px solid var(--dg-primary-light);
    padding: 15px 20px;
    margin: 15px 0;
    background: linear-gradient(135deg, #ffffff 0%, color-mix(in srgb, var(--dg-primary-light) 15%, #ffffff) 100%);
    color: #fff;
    font-style: italic;
    border-radius: 0 5px 5px 0;
}

.single-post-wrap .entry-content blockquote,
.single-post-wrap .entry-content blockquote p {
    color: #333;
}

.single-post-wrap .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.single-post-wrap .entry-content table th,
.single-post-wrap .entry-content table td {
    border: 1px solid #e0e0e0;
    padding: 8px 12px;
    font-size: 1rem;
}

.single-post-wrap .entry-content table th {
    background: #f5f5f5;
    font-weight: 700;
}

/* ========================
   HEADINGS COLOR OVERRIDE
======================== */
h1, h2, h3, h4 { color: var(--dg-hover-text); }
h5, h6 { color: #000; font-weight: inherit; }

/* ========================
   FIGURE & FIGCAPTION
======================== */
figure {
    margin: 0 auto;
    text-align: center;
    max-width: 100%;
}

figcaption {
    font-size: 12px;
    text-align: center;
    font-style: italic;
    margin-top: 8px;
    color: #00164a;
}

/* ========================
   BOX DVC (Đơn vị chức năng)
======================== */
.box-dvc .box-item-dvc {
    border: 1px solid var(--dg-accent);
    border-radius: 8px;
    margin-top: 1rem !important;
    transition: box-shadow 0.3s, transform 0.2s;
}
.box-dvc .box-item-dvc:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}

/* ======================================================
   CUSTOM LIST STYLES (UL check icons / OL numbered circles)
   ====================================================== */

/* 1. Xóa dấu/số mặc định */
.single-post-wrap ul, .widget ul,
.single-post-wrap ol, .widget ol {
    list-style: none !important;
    list-style-type: none !important;
    padding-left: 10px !important;
    margin-left:   10px !important;
}

.single-post-wrap ul li, .widget ul li,
.single-post-wrap ol li, .widget ol li {
    list-style: none !important;
    list-style-type: none !important;
}

.single-post-wrap ol li::marker,
.widget ol li::marker {
    content: none !important;
    display: none !important;
}

/* Counter cho OL */
.single-post-wrap ol, .widget ol {
    counter-reset: my-custom-counter;
}

/* 2. Khoảng cách đồng bộ */
.single-post-wrap ul li, .widget ul li,
.single-post-wrap ol li, .widget ol li {
    position: relative !important;
    padding-left: 38px !important;
    margin-bottom: 15px !important;
}

/* 3. Icon check cho UL */
.single-post-wrap ul li::before,
.widget ul li::before {
    content: "\f058" !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    position: absolute !important;
    left: 0 !important;
    top: 2px !important;
    font-size: 16px !important;
    color: var(--dg-hover-text) !important;
}

/* 4. Vòng tròn số cho OL */
.single-post-wrap ol li {
    counter-increment: my-custom-counter;
}

.single-post-wrap ol li::before,
.widget ol li::before {
    content: counter(my-custom-counter) !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 24px !important;
    height: 24px !important;
    background-color: var(--dg-hover-text) !important;
    border-radius: 50% !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: bold !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    line-height: 1 !important;
}

/* Post tags */
.post-tags {
    padding-top: 15px;
    margin-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.post-tags .tag-label {
    font-weight: 700;
    color: #333;
    margin-right: 8px;
}

.post-tags a {
    display: inline-block;
    background: #f5f5f5;
    color: #666;
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 3px;
    margin: 3px 2px;
    transition: all 0.2s;
}

.post-tags a:hover {
    background: var(--dg-primary-light);
    color: #fff;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    gap: 15px;
    margin: 25px 0;
    padding: 0;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    text-decoration: none;
    color: #333;
    transition: box-shadow 0.2s, transform 0.2s;
    border: 1px solid #eee;
    min-width: 0;
}

.post-navigation a.nav-previous:hover,
.post-navigation a.nav-next:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
    transform: translateY(-1px);
    border-color: var(--dg-primary-light);
}

.post-navigation .nav-next {
    text-align: right;
    justify-content: flex-end;
}

.post-navigation .nav-empty {
    visibility: hidden;
}

.post-navigation .nav-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 5px;
    overflow: hidden;
}

.post-navigation .nav-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-navigation .nav-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
    color: #bbb;
    font-size: 20px;
}

.post-navigation .nav-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.post-navigation .nav-label {
    font-size: 12px;
    color: var(--dg-primary-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-navigation .nav-label i {
    font-size: 10px;
}

.post-navigation .nav-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-navigation a:hover .nav-title {
    color: var(--dg-primary-light);
}

@media (max-width: 600px) {
    .post-navigation {
        flex-direction: column;
        gap: 10px;
    }
}

/* Related posts */
.related-posts {
    margin-top: 25px;
}

.related-posts h3 {
    font-size: 16px;
    color: var(--dg-primary-light);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--dg-primary-light);
    margin-bottom: 15px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.related-post-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}

.related-post-item h4 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.related-post-item h4 a {
    color: #333;
}

.related-post-item h4 a:hover {
    color: var(--dg-primary-light);
}

/* ========================
   ARCHIVE / CATEGORY PAGE
======================== */
.archive-header {
    background: #fff;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    border-left: 5px solid var(--dg-primary-light);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.archive-header h1 {
    font-size: 22px;
    color: #1a237e;
}

.archive-header .archive-description {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}

.archive-posts .archive-post-item {
    background: #fff;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.archive-posts .archive-post-item:hover {
    border-left-color: var(--dg-primary-light);
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.archive-posts .archive-post-item .post-thumb {
    width: 180px;
    flex-shrink: 0;
}

.archive-posts .archive-post-item .post-thumb img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

.archive-posts .archive-post-item .post-info h2 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.archive-posts .archive-post-item .post-info h2 a {
    color: #1a237e;
}

.archive-posts .archive-post-item .post-info h2 a:hover {
    color: var(--dg-primary-light);
}

.archive-posts .archive-post-item .post-info .excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.archive-posts .archive-post-item .post-meta {
    margin-top: 8px;
    font-size: 12px;
    color: #999;
}

/* ========================
   PAGINATION
======================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 20px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    font-size: 13px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    transition: all 0.2s;
}

.pagination a:hover {
    background: var(--dg-primary-light);
    color: #fff;
    border-color: var(--dg-primary-light);
}

.pagination .current {
    background: var(--dg-primary-light);
    color: #fff;
    border-color: var(--dg-primary-light);
    font-weight: 700;
}

/* ========================
   PAGE TEMPLATE
======================== */
.page-content-wrap {
    background: #fff;
    border-radius: 5px;
    padding: 25px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.page-content-wrap .page-title {
    font-size: 24px;
    color: #1a237e;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--dg-primary-light);
    margin-bottom: 20px;
}

.page-content-wrap .entry-content {
    font-size: 15px;
    line-height: 1.8;
}

/* ========================
   404 PAGE - Animated & Interactive
======================== */
.error-404-wrap {
    text-align: center;
    padding: 50px 20px 60px;
    background: linear-gradient(180deg, #f0f4ff 0%, #fff 40%);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

/* --- Illustration Scene --- */
.error-404-illustration {
    position: relative;
    height: 200px;
    margin-bottom: 10px;
    overflow: hidden;
}

.error-404-scene {
    position: relative;
    width: 100%;
    height: 100%;
}

.error-404-moon {
    position: absolute;
    top: 20px;
    right: 20%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffd54f, #ffb300);
    box-shadow: 0 0 40px rgba(255, 213, 79, 0.5), 0 0 80px rgba(255, 213, 79, 0.2);
    animation: error404-moon-pulse 4s ease-in-out infinite;
}

@keyframes error404-moon-pulse {
    0%, 100% { box-shadow: 0 0 40px rgba(255, 213, 79, 0.5), 0 0 80px rgba(255, 213, 79, 0.2); transform: scale(1); }
    50% { box-shadow: 0 0 50px rgba(255, 213, 79, 0.6), 0 0 100px rgba(255, 213, 79, 0.3); transform: scale(1.05); }
}

/* Stars */
.error-404-star {
    position: absolute;
    color: var(--dg-primary-light);
    opacity: 0.6;
    animation: error404-twinkle 2s ease-in-out infinite;
}
.error-404-star-1 { top: 15%; left: 10%; font-size: 14px; animation-delay: 0s; }
.error-404-star-2 { top: 30%; left: 25%; font-size: 10px; animation-delay: 0.5s; }
.error-404-star-3 { top: 10%; right: 35%; font-size: 16px; animation-delay: 1s; }
.error-404-star-4 { top: 45%; left: 15%; font-size: 12px; animation-delay: 1.5s; }
.error-404-star-5 { top: 20%; right: 10%; font-size: 11px; animation-delay: 0.8s; }

@keyframes error404-twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* Astronaut */
.error-404-astronaut {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: error404-float 6s ease-in-out infinite;
}

@keyframes error404-float {
    0%, 100% { transform: translate(-50%, -50%) rotate(-5deg); }
    25% { transform: translate(-50%, -58%) rotate(0deg); }
    50% { transform: translate(-50%, -50%) rotate(5deg); }
    75% { transform: translate(-50%, -42%) rotate(0deg); }
}

.error-404-astronaut-body {
    position: relative;
    width: 60px;
    height: 80px;
}

.error-404-helmet {
    width: 44px;
    height: 44px;
    background: #eef2f7;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    border: 3px solid #cdd5e0;
    box-shadow: inset 0 -8px 16px rgba(0,0,0,0.05);
}

.error-404-visor {
    width: 28px;
    height: 20px;
    background: linear-gradient(135deg, var(--dg-primary-light), var(--dg-primary-dark));
    border-radius: 50% 50% 45% 45%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%);
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.error-404-visor::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 4px;
    width: 8px;
    height: 6px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    transform: rotate(-20deg);
}

.error-404-backpack {
    width: 32px;
    height: 30px;
    background: #dde3eb;
    border-radius: 5px 5px 8px 8px;
    margin: -4px auto 0;
    position: relative;
    border: 2px solid #c5cdd8;
}

.error-404-arm {
    position: absolute;
    width: 10px;
    height: 28px;
    background: #eef2f7;
    border-radius: 5px;
    border: 2px solid #cdd5e0;
    top: 44px;
}

.error-404-arm-left {
    left: 2px;
    transform: rotate(20deg);
    animation: error404-arm-wave 3s ease-in-out infinite;
    transform-origin: top center;
}

.error-404-arm-right {
    right: 2px;
    transform: rotate(-15deg);
}

@keyframes error404-arm-wave {
    0%, 100% { transform: rotate(20deg); }
    50% { transform: rotate(45deg); }
}

.error-404-leg {
    position: absolute;
    width: 10px;
    height: 22px;
    background: #eef2f7;
    border-radius: 5px;
    border: 2px solid #cdd5e0;
    bottom: -18px;
}

.error-404-leg-left {
    left: 14px;
    transform: rotate(10deg);
}

.error-404-leg-right {
    right: 14px;
    transform: rotate(-10deg);
    animation: error404-leg-kick 4s ease-in-out infinite;
    transform-origin: top center;
}

@keyframes error404-leg-kick {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(-30deg); }
}

.error-404-cord {
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 2px;
    height: 50px;
    background: linear-gradient(to bottom, #aab5c4, transparent);
    transform-origin: top center;
    animation: error404-cord-sway 6s ease-in-out infinite;
}

@keyframes error404-cord-sway {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

/* --- 404 Number --- */
.error-404-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 20px;
    -webkit-user-select: none;
    user-select: none;
}

.error-404-digit {
    font-size: 100px;
    font-weight: 900;
    background: var(--dg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: -2px;
    animation: error404-digit-bounce 3s ease-in-out infinite;
}

.error-404-digit:first-child { animation-delay: 0s; }
.error-404-digit:last-child { animation-delay: 0.4s; }

.error-404-digit-zero {
    position: relative;
}

.error-404-digit-zero i {
    font-size: 80px;
    background: var(--dg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: error404-globe-spin 8s linear infinite;
    display: inline-block;
}

@keyframes error404-digit-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes error404-globe-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Title & Description --- */
.error-404-title {
    font-size: 26px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
}

.error-404-desc {
    font-size: 15px;
    color: #6c757d;
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto 30px;
}

/* --- Search Form --- */
.error-404-search {
    max-width: 500px;
    margin: 0 auto 30px;
}

.error-404-search-input-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e0e6ed;
    border-radius: 50px;
    padding: 4px 5px 4px 18px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.error-404-search-input-wrap:focus-within {
    border-color: var(--dg-primary-light);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.error-404-search-icon {
    color: #adb5bd;
    font-size: 15px;
    margin-right: 10px;
    flex-shrink: 0;
}

.error-404-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
    color: #333;
    padding: 8px 0;
}

.error-404-search-input::placeholder {
    color: #adb5bd;
}

.error-404-search-btn {
    flex-shrink: 0;
    background: var(--dg-gradient);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.error-404-search-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* --- Action Buttons --- */
.error-404-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.error-404-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.error-404-btn-primary {
    background: var(--dg-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.error-404-btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

.error-404-btn-outline {
    background: #fff;
    color: var(--dg-primary-light);
    border: 2px solid var(--dg-primary-light);
}

.error-404-btn-outline:hover {
    background: var(--dg-primary-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- Suggested Links --- */
.error-404-suggestions {
    background: linear-gradient(135deg, var(--dg-accent-bg), #f8f9fa);
    border-radius: 12px;
    padding: 25px 30px;
    max-width: 560px;
    margin: 0 auto;
    text-align: left;
    border: 1px solid rgba(0,0,0,0.04);
}

.error-404-suggestions h3 {
    font-size: 15px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-404-suggestions h3 i {
    color: #f9a825;
    font-size: 16px;
}

.error-404-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.error-404-link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.error-404-link-item:hover {
    background: #fff;
    color: var(--dg-primary-light);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transform: translateX(4px);
}

.error-404-link-item i {
    color: var(--dg-primary-light);
    font-size: 11px;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.error-404-link-item:hover i {
    transform: translateX(3px);
}

/* --- 404 Responsive --- */
@media (max-width: 768px) {
    .error-404-wrap {
        padding: 30px 15px 40px;
    }
    .error-404-illustration {
        height: 160px;
    }
    .error-404-digit {
        font-size: 70px;
    }
    .error-404-digit-zero i {
        font-size: 56px;
    }
    .error-404-title {
        font-size: 22px;
    }
    .error-404-desc {
        font-size: 14px;
    }
    .error-404-search-input-wrap {
        flex-direction: column;
        border-radius: 12px;
        padding: 10px;
        gap: 8px;
    }
    .error-404-search-icon {
        display: none;
    }
    .error-404-search-input {
        width: 100%;
        text-align: center;
    }
    .error-404-search-btn {
        width: 100%;
    }
    .error-404-actions {
        flex-direction: column;
    }
    .error-404-btn {
        width: 100%;
        justify-content: center;
    }
    .error-404-suggestions {
        padding: 20px 16px;
    }
    .error-404-moon {
        width: 40px;
        height: 40px;
    }
}

/* ========================
   SEARCH FORM
======================== */
.search-form-wrap {
    position: relative;
}

.search-form-wrap input[type="search"] {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.3s;
}

.search-form-wrap input[type="search"]:focus {
    border-color: var(--dg-primary-light);
}

.search-form-wrap button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--dg-primary-light);
    border: none;
    color: #fff;
    padding: 6px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

/* Search overlay */
.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.search-overlay.active {
    display: flex;
}

.search-overlay .search-overlay-inner {
    width: 600px;
    max-width: 90%;
}

.search-overlay .search-overlay-inner input {
    width: 100%;
    padding: 15px 20px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    outline: none;
}

.search-overlay .search-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

/* ========================
   BACK TO TOP
======================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 42px;
    height: 42px;
    background: var(--dg-primary-light);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(198,40,40,0.4);
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    background: var(--dg-primary);
    transform: translateY(-3px);
}

/* ========================
   RESPONSIVE
======================== */

/* Large desktop: container fills more of the screen */
@media (min-width: 1601px) {
    .container {
        width: 90%;
        max-width: 1800px;
    }
}

/* Standard desktop: default 92% width applies */

/* Small desktop / large tablet */
@media (max-width: 1280px) {
    .container {
        width: 95%;
    }

    .content-sidebar {
        width: clamp(260px, 28%, 320px);
    }
}

@media (max-width: 1024px) {
    .container {
        width: 96%;
    }

    .content-wrapper {
        flex-direction: column;
    }
    
    .content-sidebar {
        width: 100%;
    }
    
    .two-col-sections {
        grid-template-columns: 1fr;
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-main {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .container {
        width: 98%;
        padding: 0 10px;
    }

    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        max-height: 75vh;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu > li > a {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu li .sub-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        background: rgba(0,0,0,0.15);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .nav-menu li.sub-open > .sub-menu {
        display: block;
        max-height: 500px;
    }

    .nav-menu li .sub-menu li a {
        color: rgba(255,255,255,0.9);
        padding: 10px 16px 10px 28px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        font-size: 13px;
    }

    .nav-menu li .sub-menu li a:hover {
        background: rgba(255,255,255,0.1);
        color: #fff;
        padding-left: 32px;
    }

    /* Hide PHP-rendered menu-arrow on mobile (only keep mobile-sub-toggle) */
    .nav-menu > li > a .menu-arrow {
        display: none !important;
    }

    /* Mobile dropdown toggle arrow */
    .nav-menu > li.menu-item-has-children > a,
    .nav-menu > li.has-mega-menu > a {
        position: relative;
        padding-right: 44px;
    }

    .mobile-sub-toggle {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255,255,255,0.08);
        border: none;
        border-left: 1px solid rgba(255,255,255,0.1);
        color: #fff;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.2s ease;
        padding: 0;
    }

    .mobile-sub-toggle:hover {
        background: rgba(255,255,255,0.15);
    }

    .mobile-sub-toggle i {
        transition: transform 0.3s ease;
        padding: 0;
    }

    li.sub-open > a .mobile-sub-toggle i {
        transform: rotate(180deg);
    }
    
    .header-main {
        flex-direction: column;
        text-align: center;
    }
    
    .header-banner {
        text-align: center;
        padding-left: 0;
        margin-top: 10px;
    }
    
    .news-slider-wrapper {
        flex-direction: column;
    }
    
    .slider-main {
        flex: none;
    }
    
    .slider-main .slide-item img {
        height: 220px;
    }
    
    .slider-side-tabs {
        margin-top: 15px;
    }
    
    .slider-side-tabs .tab-btn {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .news-featured {
        flex-direction: column;
    }
    
    .news-featured .news-thumb {
        width: 100%;
    }
    
    .news-featured .news-thumb img {
        height: 200px;
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .archive-posts .archive-post-item {
        flex-direction: column;
    }
    
    .archive-posts .archive-post-item .post-thumb {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        width: 100%;
        padding: 0 8px;
    }

    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .quick-link-item {
        padding: 10px 5px;
    }
    
    .quick-link-item .ql-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .single-post-wrap {
        padding: 15px;
    }
    
    .single-post-wrap .entry-title {
        font-size: 20px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================
   COMMENTS
======================== */
.comments-area {
    margin-top: 25px;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
}

.comments-area .comments-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #1a237e;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--dg-primary-light);
}

.comment-list .comment {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.comment-list .comment .comment-author {
    font-weight: 700;
    margin-bottom: 5px;
}

.comment-list .comment .comment-date {
    font-size: 12px;
    color: #999;
}

.comment-list .comment .comment-content {
    margin-top: 8px;
    font-size: 14px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
    font-family: inherit;
}

.comment-form textarea {
    height: 120px;
    resize: vertical;
}

.comment-form .submit {
    background: var(--dg-primary-light);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.comment-form .submit:hover {
    background: var(--dg-primary);
}

/* ========================
   UTILITIES
======================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.p-10 { padding: 10px; }
.p-15 { padding: 15px; }

/* ========================
   PRINT STYLES
======================== */
@media print {
    .top-bar,
    .main-nav,
    .marquee-bar,
    .quick-links-section,
    .content-sidebar,
    .site-footer,
    .back-to-top,
    .search-overlay {
        display: none !important;
    }
    
    .content-wrapper {
        display: block !important;
    }
    
    .content-primary {
        width: 100% !important;
    }
}

/* === STICKY NAVIGATION === */
.main-nav.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.main-nav.sticky-nav.is-sticky {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* === ADMIN BAR ADJUSTMENT === */
.admin-bar .main-nav.sticky-nav {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .main-nav.sticky-nav {
        top: 46px;
    }
}

/* ========================
   NAV SEARCH BUTTON (desktop)
======================== */
.nav-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    border-left: 1px solid rgba(255,255,255,0.1);
}
.nav-search-btn:hover {
    background: rgba(255,255,255,0.15);
    color: var(--dg-accent);
}

/* Desktop: show nav-search-btn, hide search-mobile */
.search-mobile {
    display: none !important;
}

.main-nav .container {
    display: flex;
    align-items: center;
}

/* ========================
   PROPAGANDA BANNER SECTION
======================== */
.propaganda-banner-section {
    padding: 16px 0;
    background: #f0f2f5;
}
.propaganda-banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    height: 100%;
    width: 100%;
}
.propaganda-banner-item {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    background: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
}
.propaganda-banner-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.propaganda-banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.propaganda-banner-item a {
    display: block;
}

/* ========================
   COLOR THEME SWITCHER
======================== */
.color-switcher {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    align-items: center;
}
.color-switcher-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--dg-gradient);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s;
}
.color-switcher-toggle:hover {
    transform: scale(1.05);
}
.color-switcher-panel {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    padding: 14px 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s;
    min-width: 150px;
}
.color-switcher-panel.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}
.color-switcher-title {
    font-size: 12px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-align: center;
}
.color-switcher-options {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.color-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid #ddd;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.color-option span {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: block;
}
.color-option.active {
    border-color: #333;
    transform: scale(1.15);
}
.color-option.active::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.color-red span { background: #8B0000; }
.color-yellow span { background: #f57f17; }
.color-blue span { background: #0d47a1; }
.color-green span { background: #1b5e20; }

/* ========================
   ACCESSIBILITY TOOLS
======================== */
.accessibility-tools {
    position: fixed;
    left: 0;
    top: calc(50% + 50px);
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    align-items: center;
}
.accessibility-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--dg-gradient);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s;
}
.accessibility-toggle:hover {
    transform: scale(1.05);
}
.accessibility-panel {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
    padding: 16px 18px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s;
    min-width: 280px;
}
.accessibility-panel.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}
.accessibility-title {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 14px;
    text-transform: uppercase;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.accessibility-section {
    margin-bottom: 14px;
}
.accessibility-section:last-child {
    margin-bottom: 0;
}
.accessibility-label {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.font-size-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}
.font-size-btn {
    width: 30px;
    height: 30px;
    border: 2px solid var(--dg-primary-light);
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--dg-primary);
}
.font-size-btn:hover {
    background: var(--dg-primary-light);
    color: #fff;
}
.font-size-options {
    display: flex;
    gap: 2px;
    flex: 1;
    justify-content: center;
    align-items: flex-end;
    padding: 4px 0;
}
.font-size-option {
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 700;
    color: #999;
    transition: all 0.2s;
    padding: 2px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}
.font-size-option[data-size="small"] { font-size: 11px; }
.font-size-option[data-size="normal"] { font-size: 13px; }
.font-size-option[data-size="large"] { font-size: 15px; }
.font-size-option[data-size="xlarge"] { font-size: 17px; }
.font-size-option[data-size="xxlarge"] { font-size: 19px; }
.font-size-option[data-size="xxxlarge"] { font-size: 21px; }
.font-size-option[data-size="huge"] { font-size: 23px; }
.font-size-option:hover {
    color: var(--dg-primary-light);
}
.font-size-option.active {
    color: var(--dg-primary);
    background: var(--dg-accent-bg);
}
.accessibility-mode-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 2px solid var(--dg-primary-light);
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--dg-primary);
    transition: all 0.2s;
}
.accessibility-mode-btn i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: var(--dg-primary-light);
}
.accessibility-mode-btn:hover {
    background: var(--dg-accent-bg);
    border-color: var(--dg-primary);
}
.accessibility-mode-btn.active {
    background: var(--dg-primary);
    color: #fff;
    border-color: var(--dg-primary-dark);
}
.accessibility-mode-btn.active i {
    color: var(--dg-accent);
}
.accessibility-reset-section {
    padding-top: 10px;
    border-top: 1px solid #eee;
    margin-top: 14px;
}
.accessibility-reset-btn {
    width: 100%;
    padding: 8px 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    transition: all 0.2s;
}
.accessibility-reset-btn:hover {
    background: #e0e0e0;
    color: #333;
}

/* ========================
   FONT SIZE CLASSES (using zoom for all text scaling)
======================== */
html.font-size-small body {
    zoom: 0.85;
}
html.font-size-normal body {
    zoom: 1;
}
html.font-size-large body {
    zoom: 1.15;
}
html.font-size-xlarge body {
    zoom: 1.30;
}
html.font-size-xxlarge body {
    zoom: 1.50;
}
html.font-size-xxxlarge body {
    zoom: 1.75;
}
html.font-size-huge body {
    zoom: 2.0;
}
/* Firefox fallback using transform */
@supports not (zoom: 1) {
    html.font-size-small body {
        transform: scale(0.85);
        transform-origin: top left;
        width: 117.65%;
    }
    html.font-size-large body {
        transform: scale(1.15);
        transform-origin: top left;
        width: 86.96%;
    }
    html.font-size-xlarge body {
        transform: scale(1.30);
        transform-origin: top left;
        width: 76.92%;
    }
    html.font-size-xxlarge body {
        transform: scale(1.50);
        transform-origin: top left;
        width: 66.67%;
    }
    html.font-size-xxxlarge body {
        transform: scale(1.75);
        transform-origin: top left;
        width: 57.14%;
    }
    html.font-size-huge body {
        transform: scale(2.0);
        transform-origin: top left;
        width: 50%;
    }
}
.font-size-display {
    font-size: 11px;
    font-weight: 600;
    color: var(--dg-primary);
    text-align: center;
    margin-top: 6px;
}

/* ========================
   DARK MODE STYLES
======================== */
html.dark-mode {
    --dg-bg: #1a1a2e;
    --dg-bg-secondary: #16213e;
    --dg-text: #e8e8e8;
    --dg-text-secondary: #b0b0b0;
    --dg-border: #2a2a4a;
}
html.dark-mode body {
    background: #1a1a2e;
    color: #e8e8e8;
}
html.dark-mode .container {
    background: transparent;
}
html.dark-mode .site-header,
html.dark-mode .header-main {
    background: #16213e;
}
html.dark-mode .nav-main {
    background: linear-gradient(180deg, #0f0f23 0%, #16213e 100%);
}
html.dark-mode .nav-menu a {
    color: #e8e8e8;
}
html.dark-mode .nav-menu a:hover {
    background: rgba(255,255,255,0.1);
}
html.dark-mode .news-slider-section,
html.dark-mode .quick-links-section,
html.dark-mode .category-section,
html.dark-mode .propaganda-section {
    background: #16213e;
}
html.dark-mode .slider-side-tabs {
    background: #1f2940;
}
html.dark-mode .tabs-header {
    background: #16213e;
    border-color: #2a2a4a;
}
html.dark-mode .tab-btn {
    color: #b0b0b0;
}
html.dark-mode .tab-btn.active {
    color: #fff;
    background: var(--dg-primary);
}
html.dark-mode .news-list li a {
    color: #e8e8e8;
}
html.dark-mode .news-list li a:hover {
    color: var(--dg-primary-light);
}
html.dark-mode .quick-link-item {
    background: #1f2940;
    border-color: #2a2a4a;
}
html.dark-mode .quick-link-title {
    color: #e8e8e8;
}
html.dark-mode .category-block {
    background: #1f2940;
}
html.dark-mode .category-header {
    border-color: #2a2a4a;
}
html.dark-mode .category-header h2 a {
    color: #e8e8e8;
}
html.dark-mode .post-item {
    border-color: #2a2a4a;
}
html.dark-mode .post-title a {
    color: #e8e8e8;
}
html.dark-mode .post-title a:hover {
    color: var(--dg-primary-light);
}
html.dark-mode .post-excerpt {
    color: #b0b0b0;
}
html.dark-mode .post-meta {
    color: #888;
}
html.dark-mode .site-sidebar {
    background: #16213e;
}
html.dark-mode .widget {
    background: #1f2940;
    border-color: #2a2a4a;
}
html.dark-mode .widget-title {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
}
html.dark-mode .widget a {
    color: #e8e8e8;
}
html.dark-mode .widget a:hover {
    color: var(--dg-primary-light);
}
html.dark-mode .site-footer {
    background: #0f0f23;
    color: #b0b0b0;
}
html.dark-mode .footer-title {
    color: #e8e8e8;
}
html.dark-mode .footer-links a {
    color: #b0b0b0;
}
html.dark-mode .footer-links a:hover {
    color: #fff;
}
html.dark-mode .entry-content,
html.dark-mode .post-content,
html.dark-mode .single-content {
    background: #1f2940;
    color: #e8e8e8;
}
html.dark-mode .entry-title,
html.dark-mode .post-title,
html.dark-mode .single-title {
    color: #e8e8e8;
}
html.dark-mode .breadcrumb {
    background: #16213e;
    color: #b0b0b0;
}
html.dark-mode .breadcrumb a {
    color: #b0b0b0;
}
html.dark-mode .page-header {
    background: #16213e;
}
html.dark-mode .page-title {
    color: #e8e8e8;
}
html.dark-mode .search-form input {
    background: #1f2940;
    color: #e8e8e8;
    border-color: #2a2a4a;
}
html.dark-mode .accessibility-panel,
html.dark-mode .color-switcher-panel {
    background: #1f2940;
    color: #e8e8e8;
}
html.dark-mode .accessibility-title,
html.dark-mode .color-switcher-title {
    color: #e8e8e8;
    border-color: #2a2a4a;
}
html.dark-mode .accessibility-label {
    color: #b0b0b0;
}
html.dark-mode .font-size-btn {
    background: #16213e;
    color: var(--dg-primary-light);
    border-color: var(--dg-primary-light);
}
html.dark-mode .font-size-btn:hover {
    background: var(--dg-primary-light);
    color: #fff;
}
html.dark-mode .font-size-option {
    color: #888;
}
html.dark-mode .font-size-option:hover {
    color: var(--dg-primary-light);
}
html.dark-mode .font-size-option.active {
    color: var(--dg-accent);
    background: rgba(255,255,255,0.1);
}
html.dark-mode .accessibility-mode-btn {
    background: #16213e;
    color: #e8e8e8;
    border-color: var(--dg-primary-light);
}
html.dark-mode .accessibility-mode-btn i {
    color: var(--dg-primary-light);
}
html.dark-mode .accessibility-mode-btn:hover {
    background: #2a2a4a;
}
html.dark-mode .accessibility-mode-btn.active {
    background: var(--dg-primary);
    border-color: var(--dg-primary-dark);
}
html.dark-mode .accessibility-mode-btn.active i {
    color: var(--dg-accent);
}
html.dark-mode .accessibility-reset-btn {
    background: #16213e;
    color: #e8e8e8;
    border-color: #2a2a4a;
}
html.dark-mode .accessibility-reset-btn:hover {
    background: #2a2a4a;
}
html.dark-mode .font-size-display {
    color: var(--dg-accent);
}

/* ========================
   READING MODE STYLES
======================== */
html.reading-mode body {
    background: #f5f0e6;
}
html.reading-mode .site-header,
html.reading-mode .nav-main,
html.reading-mode .site-footer,
html.reading-mode .site-sidebar,
html.reading-mode .quick-links-section,
html.reading-mode .propaganda-section,
html.reading-mode .propaganda-banner-section,
html.reading-mode .back-to-top,
html.reading-mode .slider-side-tabs,
html.reading-mode .news-slider-section,
html.reading-mode #menuToggle {
    display: none !important;
}
html.reading-mode .site-content {
    padding-top: 20px;
}
html.reading-mode .entry-content,
html.reading-mode .post-content,
html.reading-mode .single-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #333;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
html.reading-mode .entry-title,
html.reading-mode .post-title,
html.reading-mode .single-title {
    font-size: 1.7rem;
    line-height: 1.4;
    margin-bottom: 20px;
    color: #222;
}
html.reading-mode img,
html.reading-mode video,
html.reading-mode iframe,
html.reading-mode .wp-video,
html.reading-mode .video-container,
html.reading-mode figure.wp-block-image,
html.reading-mode figure.wp-block-video,
html.reading-mode figure.wp-block-embed {
    display: none !important;
}
html.reading-mode p {
    margin-bottom: 1.5em;
}
/* Dark mode + Reading mode combined */
html.dark-mode.reading-mode body {
    background: #1a1a2e;
}
html.dark-mode.reading-mode .entry-content,
html.dark-mode.reading-mode .post-content,
html.dark-mode.reading-mode .single-content {
    background: #1f2940;
    color: #e8e8e8;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
html.dark-mode.reading-mode .entry-title,
html.dark-mode.reading-mode .post-title,
html.dark-mode.reading-mode .single-title {
    color: #e8e8e8;
}

/* ========================
   MOBILE RESPONSIVE OVERRIDES
======================== */
@media (max-width: 768px) {
    /* Hide center title and banner on mobile header */
    .header-col-center,
    .header-col-banner {
        display: none !important;
    }
    .header-col-logo {
        flex: 1 !important;
        justify-content: flex-start !important;
        max-width: 100%;
        overflow: hidden;
    }
    .site-logo {
        max-width: 100%;
    }
    .site-logo img {
        max-width: 100%;
        max-height: 80px;
        width: auto;
        height: auto;
    }
    .header-main {
        padding: 8px 0;
    }

    /* Mobile nav layout */
    .main-nav .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 8px;
    }
    .menu-toggle {
        display: inline-flex !important;
        order: 1;
        margin-right: auto;
        background: none;
        border: none;
        color: #fff;
        font-size: 26px;
        padding: 8px 12px;
        align-items: center;
        cursor: pointer;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--dg-primary);
        position: absolute;
        left: 0; right: 0;
        top: 100%;
        z-index: 10;
        order: 4;
        max-height: 75vh;
        overflow-y: auto;
        /* -webkit-overflow-scrolling removed: deprecated, modern browsers handle momentum scrolling natively */
    }
    .nav-menu.active {
        display: flex;
    }
    /* Hide desktop search button on mobile */
    .nav-search-btn {
        display: none !important;
    }
    /* Show mobile search icon */
    .search-mobile {
        display: inline-flex !important;
        order: 3;
        margin-left: auto;
        background: none;
        border: none;
        color: #fff;
        font-size: 22px;
        padding: 8px 12px;
        align-items: center;
        cursor: pointer;
    }

    /* Propaganda banner grid mobile */
    .propaganda-banner-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .propaganda-banner-item img {
        height: 80px;
    }

    /* Color switcher mobile */
    .color-switcher-toggle {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .propaganda-banner-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .propaganda-banner-item img {
        height: 60px;
    }
}

/* ========================
   DANGUY PAGINATION (extracted from inline styles)
======================== */
.danguy-pagination {
    margin-top: 18px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.danguy-pagination span {
    padding: 4px 10px;
    border-radius: 4px;
    background: #f5f5f5;
    color: var(--dg-primary-light);
    font-weight: 500;
    display: inline-block;
    margin: 0 2px;
}
.danguy-pagination span .current,
.danguy-pagination span a {
    color: inherit;
    text-decoration: none;
}

/* ========================
   POST SHARE BUTTONS (extracted from single.php)
======================== */
.post-share {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}
.post-share .share-label {
    margin-right: 10px;
    font-weight: 700;
}
.post-share .share-btn {
    display: inline-block;
    color: #fff;
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 5px;
    transition: opacity 0.3s;
}
.post-share .share-btn:hover {
    opacity: 0.85;
    color: #fff;
}
.share-btn-facebook { background: #3b5998; }
.share-btn-twitter { background: #1da1f2; }
.share-btn-email { background: #666; }

/* ========================
   SEARCH RESULTS (extracted from search.php)
======================== */
.search-form-wrap.dg-mb { margin-bottom: 20px; }
.search-result-count { color: #666; margin-bottom: 15px; font-size: 13px; }
.search-empty {
    text-align: center;
    padding: 40px;
}
.search-empty .search-empty-icon {
    font-size: 50px;
    color: #ddd;
    margin-bottom: 15px;
    display: block;
}
.search-empty h3 { color: #666; }
.search-empty p { color: #999; margin-top: 10px; }
.meta-sep { margin-left: 10px; }

/* ========================
   CATEGORY PAGE (extracted from category.php)
======================== */
.cat-section-header {
    margin-bottom: 12px;
}
.cat-section-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}
.cat-featured-card {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 4px #eee;
    padding: 20px;
    margin-bottom: 18px;
    align-items: flex-start;
}
.cat-featured-thumb {
    flex-shrink: 0;
    width: 320px;
    max-width: 100%;
    height: 200px;
    display: block;
    overflow: hidden;
    border-radius: 6px;
    background: #f5f5f5;
}
.cat-featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}
.cat-featured-info {
    flex: 1;
    min-width: 220px;
}
.cat-featured-info h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}
.cat-featured-info h3 a {
    color: #1a237e;
    text-decoration: none;
}
.cat-featured-info .news-excerpt {
    font-size: 15px;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.5;
}
.cat-featured-info .news-meta {
    font-size: 14px;
    color: #888;
    margin-bottom: 4px;
}
.cat-list-card {
    margin-top: 0;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 4px #eee;
    padding: 16px;
}
.cat-list-card .cat-list-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}
.cat-list-card .cat-list-item:last-child {
    border-bottom: none;
}
.cat-list-item-link {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    transition: opacity .2s;
}
.cat-list-item-link:hover {
    opacity: .85;
}
.cat-list-thumb {
    flex-shrink: 0;
    width: 110px;
    height: 75px;
    border-radius: 5px;
    overflow: hidden;
}
.cat-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cat-list-content {
    flex: 1;
    min-width: 0;
}
.cat-list-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a237e;
    margin: 0 0 4px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cat-list-item-link:hover .cat-list-title {
    color: var(--dg-primary-light);
}
.cat-list-card .cat-list-item .item-excerpt {
    font-size: 13px;
    color: #555;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cat-list-card .cat-list-item .item-date {
    font-size: 12px;
    color: #888;
}
.cat-pagination {
    margin-top: 24px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.cat-pagination span {
    padding: 6px 14px;
    border-radius: 4px;
    background: #f5f5f5;
    color: var(--dg-primary-light);
    font-weight: 500;
    display: inline-block;
    margin: 0 2px;
    font-size: 15px;
}
.cat-subcat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.cat-subcat-item {
    text-align: left;
    padding: 10px;
}
.cat-subcat-item .ql-title {
    font-size: 13px;
}
.cat-subcat-item .sub-count {
    font-size: 11px;
    color: #999;
}

/* ========================
   SECTION LAYOUTS (extracted from functions.php)
======================== */
.dg-flex-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.dg-flex-layout-sm {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.dg-big-image {
    flex: 1;
    max-width: 340px;
}
.dg-big-image img {
    width: 100%;
    height: auto;
}
.dg-big-image-title {
    margin-top: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
}
.dg-big-image-title a {
    color: #222;
    text-decoration: none;
}
.dg-right-list {
    flex: 2;
}
.dg-right-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.dg-news-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.dg-news-list-item .news-meta {
    margin-left: auto;
    font-size: 12px;
    color: #888;
}
.dg-news-index {
    display: inline-block;
    width: 28px;
    height: 28px;
    background: #e0e0e0;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    font-weight: bold;
    color: var(--dg-primary-light);
}
.dg-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--dg-hover-text);
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 14px;
}
.dg-icon-circle i { font-size: 18px; }
.dg-list-item-bordered {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}
.dg-list-item-bordered .item-content {
    flex: 1;
    min-width: 0;
}
.dg-list-item-bordered .item-content a {
    color: #222;
    text-decoration: none;
    font-weight: 500;
    display: block;
    word-break: break-word;
    margin-bottom: 4px;
}
.dg-list-item-bordered .item-date {
    font-size: 12px;
    color: #888;
}

/* Big image wrapper */
.dg-big-image-wrapper {
    flex: 1;
    max-width: 300px;
}
.dg-big-image-wrapper .dg-big-link {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    background: #f5f5f5;
}
.dg-big-image-wrapper .dg-big-link img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.dg-big-image-wrapper h3 {
    margin-top: 12px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}
.dg-big-image-wrapper h3 a {
    color: #222;
    text-decoration: none;
}
.dg-big-image-wrapper .dg-big-date {
    margin-top: 8px;
    font-size: 13px;
    color: #666;
}
.dg-right-list-wrapper {
    flex: 2;
    min-width: 0;
}

/* Grid layouts */
.dg-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 16px;
}
.dg-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.dg-card {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 4px #eee;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.dg-card-thumb {
    width: 100%;
    height: 80px;
    display: block;
    overflow: hidden;
    border-radius: 4px;
    background: #f5f5f5;
}
.dg-card-thumb-tall { height: 100px; }
.dg-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dg-card-title {
    font-size: 14px;
    font-weight: 500;
    margin-top: 8px;
    text-align: center;
    white-space: normal;
    word-break: break-word;
}
.dg-card-title a {
    color: #222;
    text-decoration: none;
    display: block;
}

/* Slide layout */
.dg-slide-scroll {
    overflow-x: auto;
    white-space: nowrap;
    /* -webkit-overflow-scrolling removed: deprecated, modern browsers handle momentum scrolling natively */
}

/* New Slide Container with Navigation */
.section-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}
.slide-nav-arrows {
    display: flex;
    gap: 5px;
}
.slide-nav-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--dg-primary);
    background: #fff;
    color: var(--dg-primary);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.slide-nav-btn:hover {
    background: var(--dg-primary);
    color: #fff;
}
.slide-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.dg-slide-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}
.dg-slide-track {
    display: flex;
    gap: 12px;
    transition: transform 0.4s ease;
}
.dg-slide-container .dg-slide-item {
    flex: 0 0 calc((100% - 48px) / 5); /* 5 items với gap 12px */
    min-width: calc((100% - 48px) / 5);
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 4px #eee;
    padding: 10px;
    display: inline-block;
    white-space: normal;
}
@media (max-width: 1199px) {
    .dg-slide-container .dg-slide-item {
        flex: 0 0 calc((100% - 36px) / 4); /* 4 items trên tablet lớn */
        min-width: calc((100% - 36px) / 4);
    }
}
@media (max-width: 991px) {
    .dg-slide-container .dg-slide-item {
        flex: 0 0 calc((100% - 24px) / 3); /* 3 items trên tablet */
        min-width: calc((100% - 24px) / 3);
    }
}
@media (max-width: 767px) {
    .dg-slide-container .dg-slide-item {
        flex: 0 0 calc((100% - 12px) / 2); /* 2 items trên mobile */
        min-width: calc((100% - 12px) / 2);
    }
    .section-header-right {
        gap: 10px;
    }
    .slide-nav-btn {
        width: 28px;
        height: 28px;
    }
}

.dg-slide-item {
    display: inline-block;
    width: 260px;
    margin-right: 12px;
    vertical-align: top;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 4px #eee;
    padding: 10px;
}
.dg-slide-item .dg-card-thumb { height: 120px; }
.dg-slide-item .dg-card-title {
    font-size: 15px;
}

/* Related post date */
.related-post-meta {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

/* ========================
   VIDEO PLAYER WIDGET (extracted from sidebar.php)
======================== */
.dg-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #000;
    margin-bottom: 12px;
}
.dg-video-iframe,
.dg-video-html5 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 6px;
}
.dg-videos-list-wrapper {
    border-top: 1px solid #e0e0e0;
    padding-top: 12px;
}
.dg-videos-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding: 8px;
}
.dg-videos-list::-webkit-scrollbar { width: 6px; }
.dg-videos-list::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.dg-videos-list::-webkit-scrollbar-thumb { background: #888; border-radius: 10px; }
.dg-videos-list::-webkit-scrollbar-thumb:hover { background: #555; }
.video-item-clickable {
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
    border-left: 3px solid #0073aa;
    cursor: pointer;
    transition: all 0.3s ease;
}
.video-item-clickable:hover {
    background: #e8e8e8;
    transform: translateX(2px);
}
.video-item-clickable.active {
    background: #e3f2fd;
    border-left-color: var(--dg-hover-text);
}
.video-item-clickable .video-item-title {
    font-weight: 500;
    color: #222;
    margin-bottom: 4px;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.video-item-clickable .video-item-title i {
    color: var(--dg-hover-text);
    margin-right: 6px;
}

/* ========================
   FOOTER EXTRAS (extracted from footer.php)
======================== */
.footer-stats-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 15px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-stat-item { text-align: center; }
.footer-stat-label {
    color: var(--dg-accent);
    font-weight: 700;
    font-size: 13px;
}
.footer-stat-value {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}
.footer-contact-link {
    color: var(--dg-accent);
}
.footer-social {
    margin-top: 15px;
}
.footer-social-link {
    color: #fff;
    margin-right: 15px;
    display: inline-block;
}
.footer-social-link:hover {
    color: var(--dg-accent);
}
.footer-disclaimer {
    margin-top: 10px;
    font-style: italic;
    font-size: 12px;
}

/* ========================
   RESPONSIVE for extracted styles
======================== */
@media (max-width: 768px) {
    .dg-flex-layout,
    .dg-flex-layout-sm {
        flex-direction: column;
    }
    .dg-big-image,
    .dg-big-image-wrapper {
        max-width: 100%;
    }
    .dg-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .dg-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .cat-featured-card {
        flex-direction: column;
    }
    .cat-featured-thumb {
        width: 100%;
        height: 180px;
    }
    .cat-list-thumb {
        width: 80px;
        height: 55px;
    }
    .cat-list-title {
        font-size: 14px;
    }
    .footer-stats-bar {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .dg-grid-4,
    .dg-grid-3 {
        grid-template-columns: 1fr;
    }
    .cat-subcat-grid {
        grid-template-columns: 1fr;
    }
    .cat-list-thumb {
        width: 60px;
        height: 42px;
    }
    .cat-list-item-link {
        gap: 10px;
    }
}

/* ========================
   v2.7.0 - BEAUTIFICATION ENHANCEMENTS
======================== */

/* --- Smooth card hover effects for all card-like elements --- */
.single-post-wrap,
.slider-side .side-item,
.propaganda-banner-item,
.widget {
    transition: box-shadow 0.3s ease, transform 0.25s ease;
}

.single-post-wrap:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.10);
}

/* --- Better entry-content link styling --- */
.single-post-wrap .entry-content a {
    color: var(--dg-primary-light);
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-bottom-color 0.2s;
}
.single-post-wrap .entry-content a:hover {
    color: var(--dg-hover-text);
    border-bottom-color: var(--dg-hover-text);
}

/* --- Improved image display in entry-content --- */
.single-post-wrap .entry-content img {
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s;
}
.single-post-wrap .entry-content img:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* --- Better blockquote styling --- */
.single-post-wrap .entry-content blockquote {
    box-shadow: inset 4px 0 0 var(--dg-primary-light), 0 2px 8px rgba(0,0,0,0.05);
    border-left: none;
    border-radius: 6px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #ffffff 0%, color-mix(in srgb, var(--dg-primary-light) 15%, #ffffff) 100%);
}

/* --- Enhanced table styling --- */
.single-post-wrap .entry-content table {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.single-post-wrap .entry-content table th {
    background: var(--dg-gradient);
    color: #fff;
    font-weight: 600;
    text-align: left;
}
.single-post-wrap .entry-content table tr:nth-child(even) td {
    background: #fafafa;
}
.single-post-wrap .entry-content table tr:hover td {
    background: var(--dg-accent-bg);
}

/* --- Post category badge improvement --- */
.single-post-wrap .post-category {
    border-radius: 20px;
    padding: 4px 16px;
    font-size: 11px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(198,40,40,0.2);
}

/* --- Post tags pill style --- */
.post-tags a {
    border-radius: 20px;
    padding: 5px 14px;
    font-weight: 500;
    border: 1px solid #e0e0e0;
    background: #fff;
}
.post-tags a:hover {
    border-color: var(--dg-primary-light);
}

/* --- Sidebar widget card style --- */
.widget {
    border-radius: 8px;
    overflow: hidden;
}

/* --- Quick links hover enhancement --- */
.quick-link-item {
    transition: transform 0.2s, box-shadow 0.3s;
}
.quick-link-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* --- Breadcrumb polish --- */
.breadcrumb {
    background: #fff;
    border-radius: 6px;
    padding: 10px 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* --- Smooth scroll-to-top button --- */
.back-to-top {
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}
.back-to-top:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* --- Selection highlight --- */
::selection {
    background: var(--dg-primary-light);
    color: #fff;
}

/* --- Focus visible accessibility ring --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--dg-primary-light);
    outline-offset: 2px;
    border-radius: 3px;
}

/* --- Improved post-meta icons --- */
.single-post-wrap .post-meta {
    background: #fafafa;
    border-radius: 6px;
    padding: 12px 16px;
    border-bottom: none;
    border: 1px solid #eee;
}

/* --- Slider caption text shadow for readability --- */
.slider-main .slide-caption h3 {
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* --- News list item transition in sidebar tabs --- */
.slider-side-tabs .news-list li a {
    transition: color 0.2s, padding-left 0.2s;
}
.slider-side-tabs .news-list li a:hover {
    padding-left: 4px;
}

/* --- Propaganda banner responsive enhancement for auto-fit --- */
@media (max-width: 768px) {
    .propaganda-banner-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
@media (max-width: 480px) {
    .propaganda-banner-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}
