/* ========================
   TIÊU ĐỀ & TRÍCH DẪN
======================== */
h1, h2, h3, h4, h5, h6 {
    color: #8B0000;
    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 #ffd54f;
    padding-bottom: 8px;
}
h2 {
    font-size: 1.8em;
    border-left: 4px solid #ffd54f;
    padding-left: 12px;
}
h3 {
    font-size: 1.4em;
    color: #c62828;
}
h4, h5, h6 {
    font-size: 1.1em;
    color: #d32f2f;
}

blockquote {
    border-left: 6px solid #ffd54f;
    background: #fffbe5;
    color: #8B0000;
    font-style: italic;
    padding: 16px 24px;
    margin: 24px 0;
    position: relative;
}
blockquote::before {
    content: '\201C';
    color: #ffd54f;
    font-size: 2em;
    position: absolute;
    left: 12px;
    top: 8px;
}
blockquote cite {
    display: block;
    margin-top: 12px;
    color: #c62828;
    font-size: 0.95em;
    font-style: normal;
}

hr {
    border: none;
    border-top: 2px solid #ffd54f;
    margin: 32px 0;
}
/*
Theme Name: Trang thông tin Đảng
Theme URI: https://dangbo.nsgpc.edu.vn
Author: Rồng Con HG
Author URI: https://rongcon.net
Description: Theme Trang thông tin điện tử Đảng ủy Trường Cao đẳng Bách khoa Nam Sài Gòn
Version: 1.1.0
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
======================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #f0f2f5;
}

a {
    text-decoration: none;
    color: #1a4b8c;
    transition: color 0.2s;
}

a:hover {
    color: #d32f2f;
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ========================
   TOP BAR
======================== */
.top-bar {
    background: linear-gradient(135deg, #8B0000 0%, #c62828 100%);
    color: #fff;
    padding: 5px 0;
    font-size: 13px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left a {
    color: #fff;
    margin-right: 15px;
    font-size: 12px;
}

.top-bar-left a:hover {
    color: #ffd54f;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-bar-right .lang-switch a {
    color: #ffd54f;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.top-bar-right .lang-switch a:hover,
.top-bar-right .lang-switch a.active {
    background: rgba(255,255,255,0.2);
}

.top-bar-right .search-toggle {
    color: #fff;
    cursor: pointer;
    font-size: 16px;
}

/* ========================
   HEADER
======================== */
.site-header {
    background: linear-gradient(180deg, #8B0000 0%, #b71c1c 40%, #c62828 100%);
    position: relative;
    z-index: 100;
}

.header-main {
    display: flex;
    align-items: center;
    padding: 12px 0;
}

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo img {
    max-height: 70px;
    width: auto;
}

.site-logo .logo-text {
    margin-left: 12px;
    color: #fff;
}

.site-logo .logo-text .site-name {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffd54f;
    line-height: 1.3;
}

.site-logo .logo-text .site-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    margin-top: 2px;
}

.header-banner {
    flex: 1;
    text-align: right;
    padding-left: 20px;
    position: relative;
    max-width: 400px;
}

.header-banner img {
    max-height: 80px;
    width: auto;
}

/* Header Banner Slider */
.header-banner-slider {
    overflow: hidden;
}

.header-banner-slider .banner-slide {
    display: none;
    animation: bannerFadeIn 0.5s ease-in-out;
}

.header-banner-slider .banner-slide.active {
    display: block;
}

@keyframes bannerFadeIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

.header-banner-slider .banner-slide a {
    display: block;
}

.header-banner .banner-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 5px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.header-banner:hover .banner-nav {
    opacity: 1;
}

.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: #c62828;
    transform: scale(1.1);
}

/* ========================
   MARQUEE / RUNNING TEXT
======================== */
.marquee-bar {
    background: linear-gradient(90deg, #ffd54f, #ffecb3, #ffd54f);
    padding: 6px 0;
    overflow: hidden;
    border-bottom: 2px solid #c62828;
}

.marquee-bar .marquee-content {
    white-space: nowrap;
    animation: marquee 30s linear infinite;
    color: #b71c1c;
    font-weight: 700;
    font-size: 14px;
    display: inline-block;
}

.marquee-bar .marquee-item {
    display: inline;
}

.marquee-bar .marquee-item i {
    margin-right: 5px;
    color: #c62828;
}

.marquee-bar .marquee-separator {
    display: inline-block;
    margin: 0 30px;
    color: #c62828;
    font-size: 12px;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ========================
   MAIN NAVIGATION
======================== */
.main-nav {
    background: linear-gradient(180deg, #6d0000 0%, #8B0000 100%);
    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: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.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: #ffd54f;
}

.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 #c62828;
    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: #c62828;
    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 #c62828;
}

.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: 350px;
    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: #ffd54f;
}

.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: #c62828;
    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: #c62828;
}

.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: 350px;
}

.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: #c62828;
    border-bottom: 2px solid #c62828;
    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: #c62828;
    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: #c62828;
}

/* ========================
   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: #c62828;
}

.quick-link-item .ql-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    background-color: #c62828;
    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: #c62828;
}

/* ========================
   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: 320px;
    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: linear-gradient(135deg, #8B0000 0%, #c62828 100%);
    padding: 10px 15px;
    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;
    gap: 8px;
}

.section-header h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: #ffd54f;
    border-radius: 2px;
}

.section-header h2 a {
    color: #fff;
}

.section-header h2 a:hover {
    color: #ffd54f;
}

.section-header .view-all {
    color: #ffd54f;
    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: #c62828;
}

.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: #c62828;
    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: #c62828;
}

/* 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: #c62828;
}

.news-list-meta {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.news-list-meta i {
    margin-right: 4px;
    color: #c62828;
}

/* 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: #c62828;
}

/* 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: linear-gradient(135deg, #8B0000 0%, #c62828 100%);
    padding: 10px 15px;
    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: #ffd54f;
    border-radius: 2px;
}

.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: #c62828;
}

.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: #c62828;
}

/* 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 #c62828;
    transition: all 0.3s;
}

.widget-banners .banner-item .text-link:hover {
    background: #fff3e0;
    color: #c62828;
}

.widget-banners .banner-item .text-link i {
    margin-right: 6px;
    color: #c62828;
}

/* 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: #c62828;
}

/* 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: #c62828;
    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: #8B0000;
}

.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: #c62828;
    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, #c62828, #8B0000);
    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: #c62828;
}

/* ========================
   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: #c62828;
    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;
}

.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: #ffd54f;
    text-transform: uppercase;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #c62828;
}

.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: #ffd54f;
    text-transform: uppercase;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #c62828;
}

.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: #ffd54f;
    padding-left: 5px;
}

.footer-links ul li a::before {
    content: '» ';
    color: #c62828;
}

.footer-map {
    flex: 1;
}

.footer-map .footer-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffd54f;
    text-transform: uppercase;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #c62828;
}

.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: #ffd54f;
}

/* ========================
   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: #c62828;
}

.breadcrumb a:hover {
    color: #c62828;
}

.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: #c62828;
    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: #c62828;
}

.single-post-wrap .entry-content {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.single-post-wrap .entry-content p {
    margin-bottom: 15px;
}

.single-post-wrap .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 10px 0;
}

.single-post-wrap .entry-content h2 {
    font-size: 20px;
    color: #1a237e;
    margin: 20px 0 10px;
}

.single-post-wrap .entry-content h3 {
    font-size: 18px;
    color: #333;
    margin: 15px 0 10px;
}

.single-post-wrap .entry-content blockquote {
    border-left: 4px solid #c62828;
    padding: 15px 20px;
    margin: 15px 0;
    background: #fce4ec;
    font-style: italic;
    border-radius: 0 5px 5px 0;
}

.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: 14px;
}

.single-post-wrap .entry-content table th {
    background: #f5f5f5;
    font-weight: 700;
}

/* 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: #c62828;
    color: #fff;
}

/* Related posts */
.related-posts {
    margin-top: 25px;
}

.related-posts h3 {
    font-size: 16px;
    color: #c62828;
    padding-bottom: 10px;
    border-bottom: 2px solid #c62828;
    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: #c62828;
}

/* ========================
   ARCHIVE / CATEGORY PAGE
======================== */
.archive-header {
    background: #fff;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    border-left: 5px solid #c62828;
    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: #c62828;
    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: #c62828;
}

.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: #c62828;
    color: #fff;
    border-color: #c62828;
}

.pagination .current {
    background: #c62828;
    color: #fff;
    border-color: #c62828;
    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 #c62828;
    margin-bottom: 20px;
}

.page-content-wrap .entry-content {
    font-size: 15px;
    line-height: 1.8;
}

/* ========================
   404 PAGE
======================== */
.error-404-wrap {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 5px;
}

.error-404-wrap h1 {
    font-size: 80px;
    color: #c62828;
    margin-bottom: 15px;
}

.error-404-wrap h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.error-404-wrap p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.error-404-wrap .btn-home {
    display: inline-block;
    background: #c62828;
    color: #fff;
    padding: 10px 30px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.error-404-wrap .btn-home:hover {
    background: #8B0000;
    color: #fff;
}

/* ========================
   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: #c62828;
}

.search-form-wrap button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #c62828;
    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: #c62828;
    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: #8B0000;
    transform: translateY(-3px);
}

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 1024px) {
    .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) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    
    .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;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        background: #f5f5f5;
    }
    
    .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%;
    }
    
    .top-bar .container {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .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 #c62828;
}

.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: #c62828;
    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: #8B0000;
}

/* ========================
   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;
    }
}

