﻿@charset "UTF-8";

/* Government Portal Style - Standardized */
:root {
    --primary-red: #be0000;
    --primary-blue: #0056bec4;
    --gov-yellow: #ffff00;
    --text-main: #333333;
    --bg-gray: #f2f2f2;
    --border-color: #ddd;
}

/* GLOBAL FONT FIX */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
div,
li,
td,
th,
.box-title,
.nav-item,
.login-input,
button {
    font-family: 'Tahoma', sans-serif !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Removed Roboto Import */

body {
    font-family: 'Tahoma', sans-serif !important;
    font-size: 14px;
    background-color: var(--bg-gray);
    color: var(--text-main);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: var(--text-main);
}

a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* Main Wrapper */
.wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
}

/* Common Header */
.top-banner {
    background: linear-gradient(to right, rgba(168, 8, 8, 0.85), rgba(134, 4, 4, 0.9)), url('hanoi_banner_v5.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 160px;
    /* Slightly taller */
    position: relative;
    border-bottom: 4px solid #d4af37;
    /* Consistent gold border */
    display: flex;
    align-items: center;
    padding: 0 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.top-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/a/a3/Emblem_of_Vietnam.svg/1200px-Emblem_of_Vietnam.svg.png') no-repeat;
    background-size: contain;
    background-position: right 10% center;
    opacity: 0.05;
    /* Subtle background emblem */
    pointer-events: none;
}

.banner-content {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 25px;
    /* Increased gap */
}

.logo-img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
    /* Soft shadow for transparent logo */
}

.banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.national-title {
    font-size: 15px;
    /* Slightly bigger */
    text-transform: uppercase;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
    text-align: left;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Cleaner shadow */
    letter-spacing: 0.5px;
}

.org-name-1 {
    font-size: 22px;
    text-transform: uppercase;
    color: #ffff00;
    /* Gold/Yellow text */
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

.org-name-2 {
    font-size: 38px;
    text-transform: uppercase;
    color: #fff;
    font-weight: 900;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 255, 255, 0.2);
    margin: 0;
    letter-spacing: 1.5px;
    line-height: 1.1;
}

/* Navigation Menu */
.main-nav {
    background-color: #004b90;
    /* Official Blue */
    border-top: 1px solid #fff;
    border-bottom: 3px solid #be0000;
}

.org-name-1,
.org-name-2 {
    font-family: 'Roboto', Arial, sans-serif !important;
}

/* UTILITY BAR */
.utility-bar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 0 15px;
    height: 35px;
    /* Fixed height */
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #495057;
    font-weight: 500;
}

.utility-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    z-index: 2;
    background: #f8f9fa;
    padding-right: 15px;
}

.utility-center {
    flex: 1;
    /* Take available space */
    position: relative;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.utility-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 15px;
    background: #f8f9fa;
    z-index: 2;
}

#lang-switch-btn {
    background: transparent;
    border: 1px solid #004b90;
    color: #004b90;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lang-switch-btn:hover {
    background: #004b90;
    color: white;
}

.utility-right i {
    color: var(--primary-red);
    margin-right: 5px;
}

.utility-text-scroll {
    white-space: nowrap;
    position: absolute;
    animation: scrollLeft 15s linear infinite;
    padding-left: 100%;
    /* Start outside */
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }

    /* Move fully left */
}

.utility-divider {
    color: #ced4da;
    margin: 0 5px;
}

@media (max-width: 768px) {
    .utility-bar {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}

.main-nav ul {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}

.main-nav li {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.main-nav a {
    display: block;
    padding: 12px 20px;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
    text-decoration: none;
}

/* ... */
.main-nav a:hover,
.main-nav a.active {
    background-color: var(--primary-red);
    color: var(--gov-yellow);
    text-decoration: none;
}

/* Dropdown Menu Styles - BULLETPROOF FIX */
.main-nav li.dropdown {
    position: relative;
    overflow: visible !important;
}

.main-nav li.dropdown:hover>a {
    background-color: var(--primary-red);
    color: var(--gov-yellow);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #004b90;
    min-width: 260px;
    /* Slightly wider */
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.3);
    z-index: 1000;
    top: 100%;
    left: 0;
    border-top: 3px solid var(--primary-red);
    overflow: visible !important;
    /* Critical */
    padding: 0;
}

.main-nav li.dropdown:hover .dropdown-content {
    display: block;
}

/* Individual Items in Dropdown */
.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    background: transparent;
    width: 100%;
}

.dropdown-content a:hover {
    background-color: var(--primary-red);
    color: var(--gov-yellow);
}

/* NESTED DROPDOWN (Level 2) */
.dropdown-sub {
    position: relative;
    width: 100%;
    display: block;
    overflow: visible !important;
    /* Critical */
}

/* Caret Icon */
.dropdown-sub>a::after {
    content: '\f0da';
    /* fa-caret-right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    float: right;
    margin-right: 0px;
}

/* Sub-menu Content */
.dropdown-sub-content {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background-color: #004b90;
    min-width: 240px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 999999;
    /* Extreme Z-Index */
    border: 1px solid var(--primary-red);
    border-left: 1px solid var(--primary-red);
    /* Restore left border for visibility */
    margin-top: -1px;
    margin-left: -2px;
    /* Slight overlap to prevent gaps */
}

/* Show Sub-menu on Hover */
.dropdown-sub:hover .dropdown-sub-content {
    display: block !important;
}

.dropdown-sub-content a {
    font-size: 13px;
    padding: 10px 15px;
    color: #e0f2fe;
    /* Light blue text */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-sub-content a:hover {
    background-color: #003366;
    color: #ffd700;
}

.main-nav li.login-item {
    margin-left: auto;
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    background-color: #003366;
    /* Darker blue for contrast */
}

.main-nav li.login-item a {
    color: #ffd700;
    /* Yellow text */
}

.main-nav li.login-item a:hover {
    background-color: #b91c1c;
    color: white;
}

/* Layout Content */
.main-content {
    display: flex;
    /* 2 Column Layout */
    padding: 20px;
    gap: 20px;
}

.left-col {
    flex: 0 0 70%;
    max-width: 70%;
}

.right-col {
    flex: 0 0 30%;
    max-width: 30%;
}

@media (max-width: 991px) {
    .main-content {
        flex-direction: column;
    }

    .left-col,
    .right-col {
        flex: 100%;
        max-width: 100%;
    }
}

.main-content.full-width-mode .right-col {
    display: none !important;
}

.main-content.full-width-mode .left-col {
    flex: 100% !important;
    max-width: 100% !important;
}

/* UNIVERSAL DASHBOARD GRID LAYOUT (NEW V13) */
#dashboard-view {
    display: grid !important;
    grid-template-columns: 7fr 3fr !important;
    gap: 20px !important;
    width: 100% !important;
    align-items: start !important;
}

/* Reset Flex behavior for Grid items */
.left-col,
.right-col {
    flex: unset !important;
    max-width: unset !important;
    width: auto !important;
    /* Let Grid control width */
}

/* Section Styling */
.section-box {
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.box-header {
    background: #f1f1f1 url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPgo8cmVjdCB3aWR0aD0iNSIgaGVpZ2h0PSI1IiBmaWxsPSIjZmZmIj48L3JlY3Q+CjxyZWN0IHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiNjY2MiPjwvcmVjdD4KPC9zdmc+');
    /* Subtle pattern */
    padding: 10px 15px;
    border-bottom: 1px solid var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.box-title {
    color: var(--primary-blue);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.box-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 16px;
    background: var(--primary-red);
}

.box-body {
    padding: 15px;
    background: #fff;
}

/* News List */
/* News List Enhanced */
.news-list-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: background 0.2s;
}

.news-list-item:hover {
    background: #f9f9f9;
}

.news-thumb-link {
    flex-shrink: 0;
    display: block;
}

.news-thumb {
    width: 140px;
    /* Slightly larger */
    height: 90px;
    background: #f3f4f6;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

.news-info {
    flex: 1;
    min-width: 0;
    /* Fix flex text overflow */
}

.news-title {
    font-size: 16px;
    margin-bottom: 6px;
    line-height: 1.4;
    font-weight: bold;
}

.news-title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.1s;
}

.news-title a:hover {
    color: var(--primary-red);
}

.news-meta {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.news-date i,
.news-views i {
    margin-right: 4px;
}

.news-summary {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 5px;
}

/* Sidebar Links */
.sidebar-link {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #444;
    font-size: 13px;
    position: relative;
    padding-left: 15px;
}

.sidebar-link::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: bold;
}

.sidebar-link:hover {
    color: var(--primary-blue);
    padding-left: 20px;
    transition: all 0.2s;
}

/* FEATURED NEWS STYLING (Redesigned - Hero Layout) */
.news-featured {
    display: flex;
    flex-direction: row;
    /* Horizontal layout */
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    /* Softer rounded corners */
    padding: 0;
    margin-bottom: 25px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.news-thumb-link-featured {
    position: relative;
    display: block;
    width: 60%;
    /* Image takes 60% */
    min-height: 320px;
    overflow: hidden;
}

.news-thumb-featured {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-thumb-featured:hover {
    transform: scale(1.03);
}

.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #be0000 0%, #ff0000 100%);
    /* Gradient badge */
    color: white;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    z-index: 2;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.news-info-featured {
    width: 40%;
    /* Content takes 40% */
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid #f0f0f0;
}

.news-title-featured {
    font-size: 24px;
    /* Larger title */
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: none;
    /* Normal case looks more modern */
    line-height: 1.3;
    color: #1f2937;
}

.news-title-featured a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    /* Limit title lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-title-featured a:hover {
    color: var(--primary-red);
}

.news-meta {
    margin-bottom: 15px;
}

.news-summary-featured {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0;
    /* Reset */
    margin-bottom: 20px;
}

/* Featured Read More Button (New) */
.btn-read-more {
    display: inline-block;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 13px;
    border-radius: 4px;
    text-align: center;
    width: fit-content;
    transition: all 0.2s;
}

.btn-read-more:hover {
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
}

@media (max-width: 768px) {
    .news-featured {
        flex-direction: column;
    }

    .news-thumb-link-featured {
        width: 100%;
        height: 200px;
        min-height: auto;
    }

    .news-info-featured {
        width: 100%;
        padding: 20px;
    }

    .news-title-featured {
        font-size: 18px;
    }
}

/* Feature Grid (for Organizations) */
.org-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.org-item {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
    background: #f9f9f9;
    transition: all 0.2s;
}

.org-item:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.org-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.org-title {
    font-weight: bold;
    color: var(--primary-blue);
    text-transform: uppercase;
    font-size: 13px;
    margin-bottom: 5px;
}

.org-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 15px;
    background: var(--primary-red);
    color: white;
    font-size: 11px;
    border-radius: 2px;
}

.org-btn:hover {
    background: #a00;
    color: white;
    text-decoration: none;
}

/* Footer */
footer {
    background-color: #004b90;
    color: white;
    padding: 20px 0;
    border-top: 5px solid var(--primary-red);
    margin-top: 20px;
}

.footer-content {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    font-size: 13px;
}

/* BACK TO TOP BUTTON */
#btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    /* Hidden by default */
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: all 0.3s;
    align-items: center;
    justify-content: center;
}

#btn-back-to-top.show {
    display: flex;
    /* Show when class added */
    animation: fadeIn 0.3s;
}

#btn-back-to-top:hover {
    background: #a00000;
    transform: translateY(-5px);
}

.footer-info p {
    margin-bottom: 8px;
}

.footer-info strong {
    color: var(--gov-yellow);
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .top-banner {
        height: auto;
        padding: 20px;
    }

    .banner-content {
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
    }

    .national-title {
        text-align: left;
    }

    .org-name-1 {
        font-size: 14px;
    }

    .org-name-2 {
        font-size: 20px;
        line-height: 1.3;
    }

    .main-nav ul {
        flex-wrap: wrap;
    }

    .main-nav li {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Article Content Styling - Added for better readability */
.article-content {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    text-align: justify;
}

.article-content p {
    margin-bottom: 15px;
}

.article-content h2 {
    color: var(--primary-blue);
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: bold;
    text-transform: uppercase;
    border-left: 4px solid var(--primary-red);
    padding-left: 10px;
}

.article-content h3 {
    color: #333;
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.article-content ul,
.article-content ol {
    margin-bottom: 15px;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 8px;
    margin-left: 20px;
    /* Indent bullet */
    list-style-type: disc;
    /* Ensure bullet */
    list-style-position: outside;
    padding-left: 5px;
}

.article-content strong {
    font-weight: bold;
    color: #000;
}

/* UTILITY BAR */
.utility-bar {
    background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    padding: 8px 0 8px 15px;
    /* Minimal right padding */
    font-size: 13px;
    color: #495057;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* RIGHT: Lang Button */
.utility-right {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding-right: 0;
}

.utility-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.utility-left i {
    color: var(--primary-red);
    margin-right: 5px;
}

.utility-divider {
    color: #adb5bd;
}

/* CENTER: Marquee */
.utility-center {
    flex-grow: 1;
    text-align: center;
    overflow: hidden;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.utility-text-scroll {
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    color: var(--primary-blue);
    font-weight: 600;
    max-width: 100%;
    animation: marquee 20s linear infinite;
    padding-left: 100%;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Ensure Button is always visible and on top */
#lang-switch-btn {
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    /* Prevent button from shrinking */
    background-color: #f8f9fa;
    /* Ensure background allows opacity */
}

/* Lang Switcher */
#lang-switch-btn {
    background: none;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    cursor: pointer;
    border-radius: 4px;
    margin-left: 10px;
    margin-right: 5px;
    /* Minimal margin for real "corner" feel */
    transition: all 0.2s;
}

#lang-switch-btn:hover {
    background: var(--primary-blue);
    color: white;
}

/* BACK TO TOP BUTTON */
#btn-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    /* Hidden by default */
    background: var(--primary-red);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    font-size: 18px;
    transition: all 0.3s;
}

#btn-back-to-top:hover {
    background: #a10000;
    transform: translateY(-3px);
}

#btn-back-to-top.show {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Share Buttons */
.share-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    color: white !important;
}

.btn-share:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn-facebook {
    background-color: #1877f2;
}

.btn-zalo {
    background-color: #0068ff;
}

.btn-copy {
    background-color: #6c757d;
}

/* --- PREMIUM DONATION WIDGET --- */
.premium-widget-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Softer shadow */
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    /* For header radius */
}

.premium-widget-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    /* Blue Gradient */
    padding: 20px;
    text-align: center;
    color: white;
}

.premium-input-group {
    position: relative;
    margin-bottom: 25px;
    /* More spacing */
}

.premium-input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premium-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8fafc;
    color: #334155;
    outline: none;
}

.premium-input:focus {
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.premium-checkbox-wrapper {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
    margin-bottom: 25px;
}

.premium-checkbox-wrapper:hover {
    background: #e2e8f0;
}

.premium-checkbox {
    width: 20px;
    height: 20px;
    accent-color: #3b82f6;
    margin-right: 12px;
    cursor: pointer;
}

.premium-amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

.premium-chip {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.premium-chip:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}

.premium-submit-btn {
    width: 100%;
    background: linear-gradient(to right, #dc2626, #991b1b);
    /* Red Gradient */
    color: white;
    padding: 16px;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    border: none;
    border-radius: 50px;
    /* Pill shape */
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.premium-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(220, 38, 38, 0.4);
    background: linear-gradient(to right, #ef4444, #b91c1c);
}

.premium-submit-btn:disabled {
    background: #cbd5e1;
    box-shadow: none;
    cursor: not-allowed;
}

/* Animations included in original CSS */

/* MoMo Button Styling */
.premium-submit-btn.momo-btn {
    background: linear-gradient(135deg, #ae2070 0%, #d82d8b 100%);
    box-shadow: 0 8px 20px rgba(174, 32, 112, 0.35);
}

.premium-submit-btn.momo-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #c4287f 0%, #e63c9a 100%);
    box-shadow: 0 12px 25px rgba(174, 32, 112, 0.45);
    transform: translateY(-2px);
}

.premium-submit-btn.momo-btn:disabled {
    background: #cbd5e1;
    box-shadow: none;
}

/* OPTIMIZED VISIBILITY FOR DETAIL VIEW */
body.detail-view-active #main-hero-section,
body.detail-view-active #main-intro-section,
body.detail-view-active .funds-toolbar {
    display: none !important;
}

/ *   - - -   C A R O U S E L   S T Y L E S   - - -   * /     . a r t i c l e - c a r o u s e l    {
                 p o s i t i o n :    r e l a t i v e ;
                 w i d t h :    1 0 0 % ;
                 m a x - w i d t h :    8 0 0 p x ;
                 m a r g i n :    3 0 p x   a u t o ;
                 o v e r f l o w :    h i d d e n ;
                 b o r d e r - r a d i u s :    8 p x ;
                 b o x - s h a d o w :    0   4 p x   1 0 p x   r g b a ( 0 ,    0 ,    0 ,    0 . 1 ) ;
                 b a c k g r o u n d :    # f 9 f 9 f 9 ;
         
}

         . c a r o u s e l - i n n e r    {
                 d i s p l a y :    f l e x ;
                 t r a n s i t i o n :    t r a n s f o r m   0 . 4 s   e a s e - i n - o u t ;
                 h e i g h t :    a u t o ;
         
}

         . c a r o u s e l - s l i d e    {
                 m i n - w i d t h :    1 0 0 % ;
                 d i s p l a y :    f l e x ;
                 j u s t i f y - c o n t e n t :    c e n t e r ;
                 a l i g n - i t e m s :    c e n t e r ;
                 c u r s o r :    z o o m - i n ;
         
}

         . c a r o u s e l - s l i d e   i m g    {
                 w i d t h :    1 0 0 % ;
                 h e i g h t :    a u t o ;
                 o b j e c t - f i t :    c o n t a i n ;
                 m a x - h e i g h t :    5 0 0 p x ;
                 d i s p l a y :    b l o c k ;
         
}

         . c a r o u s e l - b t n    {
                 p o s i t i o n :    a b s o l u t e ;
                 t o p :    5 0 % ;
                 t r a n s f o r m :    t r a n s l a t e Y ( - 5 0 % ) ;
                 b a c k g r o u n d :    r g b a ( 0 ,    0 ,    0 ,    0 . 3 ) ;
                 c o l o r :    w h i t e ;
                 b o r d e r :    n o n e ;
                 w i d t h :    4 0 p x ;
                 h e i g h t :    4 0 p x ;
                 b o r d e r - r a d i u s :    5 0 % ;
                 c u r s o r :    p o i n t e r ;
                 d i s p l a y :    f l e x ;
                 a l i g n - i t e m s :    c e n t e r ;
                 j u s t i f y - c o n t e n t :    c e n t e r ;
                 f o n t - s i z e :    1 8 p x ;
                 t r a n s i t i o n :    b a c k g r o u n d   0 . 2 s ;
                 z - i n d e x :    1 0 ;
         
}

         . c a r o u s e l - b t n : h o v e r    {
                 b a c k g r o u n d :    r g b a ( 0 ,    0 ,    0 ,    0 . 6 ) ;
         
}

         . c a r o u s e l - b t n . p r e v    {
                 l e f t :    1 5 p x ;
         
}

         . c a r o u s e l - b t n . n e x t    {
                 r i g h t :    1 5 p x ;
         
}

         . c a r o u s e l - d o t s    {
                 p o s i t i o n :    a b s o l u t e ;
                 b o t t o m :    1 5 p x ;
                 l e f t :    5 0 % ;
                 t r a n s f o r m :    t r a n s l a t e X ( - 5 0 % ) ;
                 d i s p l a y :    f l e x ;
                 g a p :    8 p x ;
                 z - i n d e x :    1 0 ;
         
}

         . c a r o u s e l - d o t    {
                 w i d t h :    1 0 p x ;
                 h e i g h t :    1 0 p x ;
                 b o r d e r - r a d i u s :    5 0 % ;
                 b a c k g r o u n d :    r g b a ( 2 5 5 ,    2 5 5 ,    2 5 5 ,    0 . 5 ) ;
                 c u r s o r :    p o i n t e r ;
                 t r a n s i t i o n :    a l l   0 . 2 s ;
         
}

         . c a r o u s e l - d o t . a c t i v e    {
                 b a c k g r o u n d :    w h i t e ;
                 t r a n s f o r m :    s c a l e ( 1 . 2 ) ;
         
}

         / *   - - -   L I G H T B O X   S T Y L E S   - - -   * /     # l i g h t b o x - o v e r l a y    {
                 p o s i t i o n :    f i x e d ;
                 t o p :    0 ;
                 l e f t :    0 ;
                 w i d t h :    1 0 0 % ;
                 h e i g h t :    1 0 0 % ;
                 b a c k g r o u n d :    r g b a ( 0 ,    0 ,    0 ,    0 . 9 5 ) ;
                 z - i n d e x :    9 9 9 9 ;
                 d i s p l a y :    n o n e ;
                 f l e x - d i r e c t i o n :    c o l u m n ;
                 j u s t i f y - c o n t e n t :    c e n t e r ;
                 a l i g n - i t e m s :    c e n t e r ;
                 b a c k d r o p - f i l t e r :    b l u r ( 5 p x ) ;
         
}

         # l i g h t b o x - c l o s e    {
                 p o s i t i o n :    a b s o l u t e ;
                 t o p :    2 0 p x ;
                 r i g h t :    3 0 p x ;
                 c o l o r :    w h i t e ;
                 f o n t - s i z e :    4 0 p x ;
                 c u r s o r :    p o i n t e r ;
                 z - i n d e x :    1 0 0 0 1 ;
                 o p a c i t y :    0 . 8 ;
                 t r a n s i t i o n :    o p a c i t y   0 . 2 s ;
         
}

         # l i g h t b o x - c l o s e : h o v e r    {
                 o p a c i t y :    1 ;
         
}

         . l i g h t b o x - m a i n    {
                 f l e x :    1 ;
                 d i s p l a y :    f l e x ;
                 j u s t i f y - c o n t e n t :    c e n t e r ;
                 a l i g n - i t e m s :    c e n t e r ;
                 w i d t h :    1 0 0 % ;
                 p o s i t i o n :    r e l a t i v e ;
                 p a d d i n g :    0   6 0 p x   1 0 0 p x   6 0 p x ;
                 / *   S p a c e   f o r   t h u m b n a i l s   a t   b o t t o m   * /     
}

         # l i g h t b o x - i m g    {
                 m a x - w i d t h :    1 0 0 % ;
                 m a x - h e i g h t :    8 0 v h ;
                 o b j e c t - f i t :    c o n t a i n ;
                 b o r d e r - r a d i u s :    4 p x ;
                 b o x - s h a d o w :    0   5 p x   2 0 p x   r g b a ( 0 ,    0 ,    0 ,    0 . 5 ) ;
         
}

         . l i g h t b o x - n a v    {
                 p o s i t i o n :    a b s o l u t e ;
                 t o p :    5 0 % ;
                 t r a n s f o r m :    t r a n s l a t e Y ( - 5 0 % ) ;
                 b a c k g r o u n d :    t r a n s p a r e n t ;
                 c o l o r :    w h i t e ;
                 b o r d e r :    n o n e ;
                 f o n t - s i z e :    5 0 p x ;
                 c u r s o r :    p o i n t e r ;
                 p a d d i n g :    2 0 p x ;
                 o p a c i t y :    0 . 5 ;
                 t r a n s i t i o n :    o p a c i t y   0 . 2 s ;
                 u s e r - s e l e c t :    n o n e ;
         
}

         . l i g h t b o x - n a v : h o v e r    {
                 o p a c i t y :    1 ;
         
}

         . l i g h t b o x - n a v . p r e v    {
                 l e f t :    1 0 p x ;
         
}

         . l i g h t b o x - n a v . n e x t    {
                 r i g h t :    1 0 p x ;
         
}

         / *   T h u m b n a i l s   S t r i p   * /     . l i g h t b o x - t h u m b n a i l s    {
                 p o s i t i o n :    a b s o l u t e ;
                 b o t t o m :    2 0 p x ;
                 l e f t :    0 ;
                 w i d t h :    1 0 0 % ;
                 h e i g h t :    7 0 p x ;
                 d i s p l a y :    f l e x ;
                 j u s t i f y - c o n t e n t :    c e n t e r ;
                 g a p :    1 0 p x ;
                 p a d d i n g :    0   2 0 p x ;
                 o v e r f l o w - x :    a u t o ;
                 z - i n d e x :    1 0 0 0 0 ;
         
}

         . l b - t h u m b    {
                 h e i g h t :    1 0 0 % ;
                 w i d t h :    a u t o ;
                 a s p e c t - r a t i o :    1 6 / 9 ;
                 o b j e c t - f i t :    c o v e r ;
                 b o r d e r - r a d i u s :    4 p x ;
                 o p a c i t y :    0 . 4 ;
                 c u r s o r :    p o i n t e r ;
                 b o r d e r :    2 p x   s o l i d   t r a n s p a r e n t ;
                 t r a n s i t i o n :    a l l   0 . 2 s ;
         
}

         . l b - t h u m b : h o v e r    {
                 o p a c i t y :    0 . 8 ;
         
}

         . l b - t h u m b . a c t i v e    {
                 o p a c i t y :    1 ;
                 b o r d e r - c o l o r :    v a r ( - - p r i m a r y - r e d ) ;
                 t r a n s f o r m :    s c a l e ( 1 . 0 5 ) ;
         
}

     
/* --- OLD LAYOUT REMOVED --- */

/* --- STANDARD NEWSPAPER LAYOUT (FIXED V4) --- */
.news-standard-wrapper {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    /* 60/40 Split */
    gap: 30px;
    margin-bottom: 40px;
    background: #fff;
    align-items: flex-start;
}

/* LEFT: HERO */
.std-hero-item {
    position: relative;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.std-hero-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.std-hero-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
    color: #cc0000;
    /* Red Title */
    text-transform: uppercase;
}

.std-hero-title a {
    color: #cc0000;
    text-decoration: none;
}

.std-hero-title a:hover {
    text-decoration: underline;
}

.std-hero-summary {
    font-size: 15px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 10px;
    text-align: justify;
}

.std-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 10px;
    font-style: italic;
}

/* RIGHT: SIDEBAR LIST */
.std-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-left: 1px solid #eee;
    padding-left: 20px;
}

.std-list-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.std-list-item:last-child {
    border-bottom: none;
}

.std-list-thumb {
    width: 110px;
    height: 75px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    border: 1px solid #eee;
}

.std-list-info {
    flex: 1;
}

.std-list-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.std-list-title a {
    color: #333;
    text-decoration: none;
}

.std-list-title a:hover {
    color: #cc0000;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .news-standard-wrapper {
        grid-template-columns: 1fr;
    }

    .std-sidebar-list {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #eee;
        padding-top: 20px;
    }
}


/* --- ARTICLE DETAIL LAYOUT (RESPONSIVE) --- */
#dashboard-view {
    display: flex;
    gap: 30px;
    margin: 20px 0;
    align-items: flex-start;
}

.left-col {
    flex: 1;
    min-width: 0;
    /* Prevent overflow */
}

.right-col {
    width: 320px;
    /* Fixed width for sidebar */
    flex-shrink: 0;
}

.section-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.box-header {
    background: #f8f9fa;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-weight: bold;
    color: #be0000;
    text-transform: uppercase;
    font-size: 14px;
    border-left: 4px solid #be0000;
}

.box-body {
    padding: 20px;
}

.sidebar-link {
    display: block;
    padding: 10px 15px;
    border-bottom: 1px dashed #eee;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}

.sidebar-link:hover {
    background: #fff5f5;
    color: #be0000;
    padding-left: 20px;
}

/* RESPONSIVE: Stack on Mobile/Tablet */
@media (max-width: 991px) {
    #dashboard-view {
        flex-direction: column;
        display: block;
        /* Safer fallback */
    }

    .left-col {
        width: 100%;
        margin-bottom: 30px;
    }

    .right-col {
        width: 100%;
    }
}


/* --- FORCE MOBILE STACKING (V5) --- */
@media (max-width: 991px) {
    #dashboard-view {
        display: block !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    .left-col {
        width: 100% !important;
        flex: none !important;
        min-width: 100% !important;
        margin-bottom: 30px !important;
        display: block !important;
    }

    .right-col {
        width: 100% !important;
        flex: none !important;
        min-width: 100% !important;
        margin-left: 0 !important;
        display: block !important;
    }
}

/* =====================================
   FUND CARD STYLES (Donation Page)
===================================== */
.funds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

.fund-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.fund-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.fund-image-header {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.fund-image-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.fund-card:hover .fund-image-header img {
    transform: scale(1.05);
}

.fund-badge-container {
    position: absolute;
    top: 12px;
    right: 12px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
}

.badge-hot {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.badge-new {
    background: linear-gradient(135deg, #10b981, #059669);
}

.fund-content {
    padding: 20px;
}

.fund-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.fund-progress {
    margin-bottom: 16px;
}

.progress-stats {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 8px;
}

.current-amount {
    font-size: 20px;
    font-weight: 700;
    color: #be0000;
}

.target-amount {
    font-size: 14px;
    color: #6b7280;
}

.progress-bar-modern {
    height: 8px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #dc2626);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-percentage {
    text-align: right;
    font-size: 13px;
    color: #6b7280;
    margin-top: 6px;
}

.fund-meta {
    display: flex;
    gap: 20px;
    padding: 12px 0;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6b7280;
}

.meta-item i {
    color: #be0000;
}

.fund-actions {
    display: flex;
    gap: 12px;
}

.fund-actions .btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.fund-actions .btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.fund-actions .btn-secondary:hover {
    background: #e5e7eb;
    color: #111827;
    transform: translateY(-2px);
}

.fund-actions .btn-primary {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.fund-actions .btn-primary:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
    transform: translateY(-2px);
}

.fund-actions .btn-budget {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.fund-actions .btn-budget:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .funds-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .fund-actions {
        flex-direction: column;
    }

    .fund-actions .btn {
        width: 100%;
    }
}

/* =====================================
   GOVERNMENT-STYLE NEWS LAYOUT
===================================== */

/* Main Wrapper - 2 Column Grid */
.news-standard-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 25px;
    padding: 15px 0;
}

/* LEFT: HERO ITEM (Main Featured Article) */
.std-hero-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.std-hero-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.std-hero-thumb {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.std-hero-item:hover .std-hero-thumb {
    transform: scale(1.02);
}

.std-hero-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin: 15px;
    color: #1a365d;
}

.std-hero-title a {
    color: #1a365d;
    text-decoration: none;
    transition: color 0.2s;
}

.std-hero-title a:hover {
    color: var(--primary-red, #be0000);
    text-decoration: none;
}

.std-hero-summary {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
    margin: 0 15px 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.std-meta {
    font-size: 12px;
    color: #22c55e;
    padding: 10px 15px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.std-meta i {
    margin-right: 5px;
    color: #22c55e;
}

/* RIGHT: SIDEBAR LIST */
.std-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.std-list-item {
    display: flex;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e5e7eb;
    transition: all 0.2s ease;
}

/* HOVER EFFECT DISABLED - User Request */
/* .std-list-item:hover - DISABLED BY USER REQUEST */

/* */

.std-list-item:last-child {
    border-bottom: none;
}

.std-list-thumb {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
}

.std-list-info {
    flex: 1;
    min-width: 0;
}

.std-list-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.std-list-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s;
}

.std-list-title a:hover {
    color: var(--primary-red, #be0000);
}

/* Badge New */
.badge-new {
    display: inline-block;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* BOX HEADER - Government Style with Red Left Border */
.box-header {
    background: linear-gradient(to right, #fafafa, #f5f5f5);
    padding: 12px 15px;
    border-bottom: 2px solid var(--primary-red, #be0000);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.box-title {
    color: var(--primary-red, #be0000);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding-left: 12px;
}

.box-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: var(--primary-red, #be0000);
    border-radius: 2px;
}

/* SIDEBAR LINK - Icon Style */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    padding-left: 15px;
}

.sidebar-link::before {
    content: '';
    position: absolute;
    left: 0;
    color: var(--primary-red, #be0000);
    font-weight: bold;
    font-size: 16px;
    transition: transform 0.2s;
}

.sidebar-link:hover {
    color: var(--primary-blue, #0056be);
    padding-left: 20px;
    text-decoration: none;
}

.sidebar-link:hover::before {
    transform: translateX(3px);
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .news-standard-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .std-hero-thumb {
        height: 200px;
    }

    .std-list-thumb {
        width: 80px;
        height: 55px;
    }
}

/* =====================================
   HERO SLIDESHOW STYLES
===================================== */

/* Slideshow Container */
.std-hero-slideshow {
    position: relative;
    background: #f5f5f5;
    border-radius: 6px;
    overflow: hidden;
}

.hero-slides-container {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

/* Individual Slide */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s ease-in-out;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.hero-slide.slide-out {
    opacity: 0;
    transform: translateX(-100%);
    z-index: 1;
}

.hero-slide .std-hero-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay with Title & Summary */
.hero-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 60px 20px 20px;
    color: #fff;
}

.hero-slide-overlay .std-hero-title {
    color: #fff;
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.4;
}

.hero-slide-overlay .std-hero-title a {
    color: #fff;
    text-decoration: none;
}

.hero-slide-overlay .std-hero-title a:hover {
    text-decoration: underline;
}

.hero-slide-overlay .std-hero-summary {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-slide-overlay .std-meta {
    color: #4ade80;
    font-size: 12px;
    padding: 0;
    background: none;
    border: none;
}

/* Slide Dots (Indicators) */
.hero-slide-dots {
    position: absolute;
    bottom: 10px;
    right: 15px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.slide-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* See More Link Button */
.see-more-link {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.see-more-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-blue, #004b90), #0066cc);
    color: #fff;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 75, 144, 0.3);
}

.see-more-link a:hover {
    background: linear-gradient(135deg, #003366, #004b90);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 75, 144, 0.4);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-slides-container {
        height: 250px;
    }

    .hero-slide-overlay .std-hero-title {
        font-size: 15px;
    }

    .hero-slide-overlay .std-hero-summary {
        /* display: none; */ display: -webkit-box !important;
    }
}

/* =====================================
   HERO SLIDESHOW - FIXED VERSION
===================================== */

/* Slideshow Container */
.std-hero-slideshow {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.hero-slides-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

/* Individual Slide */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s ease-in-out;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.hero-slide.slide-out {
    opacity: 0;
    transform: translateX(-100%);
    z-index: 1;
}

.hero-slide .std-hero-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay with Title & Summary */
.hero-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    padding: 50px 15px 15px;
    color: #fff;
}

.hero-slide-overlay .std-hero-title {
    color: #fff;
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.4;
}

.hero-slide-overlay .std-hero-title a {
    color: #fff;
    text-decoration: none;
}

.hero-slide-overlay .std-hero-title a:hover {
    text-decoration: underline;
}

.hero-slide-overlay .std-hero-summary {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-slide-overlay .std-meta {
    color: #4ade80;
    font-size: 11px;
    padding: 0;
    background: none;
    border: none;
}

/* Slide Dots */
.hero-slide-dots {
    position: absolute;
    bottom: 8px;
    right: 12px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.slide-dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* See More Link */
.see-more-link {
    text-align: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.see-more-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary-blue, #004b90);
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.see-more-link a:hover {
    background: #003366;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-slides-container {
        aspect-ratio: 16/9;
    }

    .hero-slide-overlay .std-hero-title {
        font-size: 14px;
    }

    .hero-slide-overlay .std-hero-summary {
        /* display: none; */ display: -webkit-box !important;
    }
}

/* FIX: Ensure hero image covers container completely */
.std-hero-slideshow {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: #ddd;
}

.hero-slides-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s ease-in-out;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.hero-slide.slide-out {
    opacity: 0;
    transform: translateX(-100%);
    z-index: 1;
}

/* FIX: Image must cover entire container */
.hero-slide .std-hero-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center;
    display: block;
}

/* FIX: Stretch image to fill container completely */
.hero-slide .std-hero-thumb {
    width: 100% !important;
    height: 100% !important;
    object-fit: fill !important;
    display: block !important;
}

.hero-slides-container {
    height: 320px !important;
}

/* =====================================
   STATIC HERO - IMAGE FILL
===================================== */
.std-hero-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.std-hero-thumb {
    width: 100% !important;
    height: 320px !important;
    object-fit: fill !important;
    display: block !important;
}

.std-hero-content {
    padding: 15px;
}

/* =====================================
   SLIDESHOW - NO HOVER EFFECTS
===================================== */
.hero-slides-container {
    height: 320px !important;
}

/* Image Fill - No Zoom on Hover */
.hero-slide .std-hero-thumb {
    width: 100% !important;
    height: 100% !important;
    object-fit: fill !important;
    display: block !important;
    transition: none !important;
    /* Disable zoom transition */
}

.hero-slide:hover .std-hero-thumb {
    transform: none !important;
    /* Disable zoom transform */
}

/* Overlay - Always Visible */
.hero-slide-overlay {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9)) !important;
    opacity: 1 !important;
    /* Prepare for possible fade removal if needed */
}

/* Sidebar List - No Background Change on Hover */
/* .std-list-item:hover - DISABLED BY USER REQUEST */

/* Disable scale on simple list thumbs too */
.std-list-thumb {
    transition: none !important;
}

.std-list-item:hover .std-list-thumb {
    transform: none !important;
}

/* =====================================
   AGGRESSIVE HOVER REMOVAL
===================================== */

/* Disable ALL hover effects for news list */
/* .std-list-item:hover - DISABLED BY USER REQUEST */

.std-list-item a:hover {
    text-decoration: none !important;
    color: inherit !important;
    /* Keep original color */
}

.std-list-title a:hover {
    color: #1e293b !important;
    /* Keep original title color */
}

.std-list-thumb:hover {
    transform: none !important;
    opacity: 1 !important;
}

/* Disable Hero Hover */
.std-hero-item:hover {
    box-shadow: none !important;
    transform: none !important;
}

.hero-slide:hover .std-hero-thumb {
    transform: none !important;
}

.hero-slide-overlay a:hover {
    text-decoration: none !important;
}

/* Ensure Links Don't Change Color on Hover */
.news-standard-wrapper a:hover {
    color: inherit !important;
}

/* Explicitly reset title link hover for hero */
.std-hero-title a:hover {
    color: #fff !important;
    /* Keep white for hero */
}

/* Explicitly reset title link hover for list */
.std-list-title a:hover {
    color: #1e293b !important;
    /* Keep dark for list */
}


/* =====================================
   HEADER TITLE COLOR UPDATE
===================================== */
.org-name-2 {
    color: #FFFFFF !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    /* Add shadow for better contrast */
    font-weight: 800;
    /* Ensure it's bold */
}

/* Also ensure sub-title is bright enough */
.org-name-1 {
    color: #FFFF00 !important;
    /* Yellow for top subtitle */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* =====================================
   REMOVE BOX TITLE DECORATOR
===================================== */
.box-title::before {
    content: none !important;
    /* Remove the vertical bar */
    display: none !important;
}

.box-title {
    padding-left: 0 !important;
    /* Reset padding */
}

/* =====================================
   STANDARDIZED ARTICLE CONTENT
===================================== */
/* Force consistent font size across all devices */
#article-content,
#article-content p,
#article-content span,
#article-content div,
#article-content li {
    font-family: 'Segoe UI', Arial, sans-serif !important;
    font-size: 18px !important;
    /* Standard Size */
    line-height: 1.6 !important;
    color: #333 !important;
    text-align: justify;
}

/* On Mobile, keep the same readable size */
@media (max-width: 768px) {

    #article-content,
    #article-content p,
    #article-content span {
        font-size: 17px !important;
        /* Slightly smaller but readable */
        line-height: 1.5 !important;
    }
}

/* =====================================
   STANDARDIZED IMAGES
===================================== */
#article-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 15px auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: zoom-in;
    /* Indicate zoomable */
}

/* Figure Captions */
#article-content figcaption,
#article-content .caption,
#article-content em {
    display: block;
    text-align: center;
    font-size: 14px !important;
    color: #666 !important;
    margin-top: 5px;
    font-style: italic;
    background: #f9f9f9;
    padding: 5px 10px;
    border-radius: 4px;
}

/* =====================================
   STANDARDIZED LIGHTBOX (ZOOM)
===================================== */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 95vw;
    /* Fixed 95% of viewport width */
    max-height: 90vh;
    /* Fixed 90% of viewport height */
    object-fit: contain;
    /* Ensure image fits completely */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 2px solid #fff;
    border-radius: 4px;
}

/* Close Button */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: rgba(255, 0, 0, 0.8);
}

/* =====================================
   LIGHTBOX FIXES FOR MOBILE
===================================== */
.lightbox-modal {
    flex-direction: column !important;
    /* Stack image and caption vertically */
}

.lightbox-content {
    max-width: 95vw !important;
    max-height: 80vh !important;
    /* Leave space for caption */
    margin-bottom: 10px;
    object-fit: contain;
}

.lightbox-caption {
    color: #fff;
    text-align: center;
    font-size: 16px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    max-width: 90%;
    margin-top: 10px;
    backdrop-filter: blur(2px);
}

.lightbox-close {
    top: 15px !important;
    right: 15px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(4px);
    width: 40px !important;
    height: 40px !important;
    font-size: 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .lightbox-caption {
        font-size: 14px;
        max-width: 95%;
    }

    .lightbox-content {
        max-height: 70vh !important;
    }
}

/* =====================================
   LIGHTBOX GALLERY ENHANCEMENTS
===================================== */

/* Navigation Buttons */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    z-index: 10001;
    backdrop-filter: blur(2px);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

/* Download Button */
.lightbox-download {
    position: absolute;
    top: 20px;
    right: 80px;
    /* Left of close button */
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

.lightbox-download:hover {
    background: rgba(255, 255, 255, 0.5);
    color: #000;
}

/* Thumbnails Strip */
.lightbox-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    max-width: 90%;
    padding-bottom: 5px;
    justify-content: center;
}

.lightbox-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    opacity: 0.5;
    cursor: pointer;
    transition: 0.2s;
    border: 2px solid transparent;
}

.lightbox-thumb:hover {
    opacity: 0.8;
}

.lightbox-thumb.active {
    opacity: 1;
    border-color: #fff;
    transform: scale(1.1);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
        background: rgba(0, 0, 0, 0.5);
        /* Less transparent on mobile */
    }

    .lightbox-nav.prev {
        left: 10px;
    }

    .lightbox-nav.next {
        right: 10px;
    }

    .lightbox-thumbnails {
        justify-content: flex-start;
        /* scrollable */
    }

    .lightbox-download {
        right: 70px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}
/* NEWS AGGREGATION PAGE STYLES */
.news-grid-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.news-card { background: #fff; border: 1px solid #eee; border-radius: 8px; overflow: hidden; transition: box-shadow 0.3s ease; }
.news-card:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.news-card img { width: 100%; height: 200px; object-fit: cover; }
.news-card-body { padding: 15px; }
.news-card-title { font-size: 16px; font-weight: bold; margin-bottom: 8px; line-height: 1.4; }
.news-card-title a { color: #333; text-decoration: none; }
.news-card-title a:hover { color: #d32f2f; }
.news-card-summary { font-size: 14px; color: #666; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-meta { font-size: 12px; color: #999; }
.load-more-container { text-align: center; margin-top: 20px; margin-bottom: 40px; }
.btn-load-more { background: #fff; border: 1px solid #d32f2f; color: #d32f2f; padding: 10px 25px; border-radius: 20px; cursor: pointer; transition: all 0.3s; font-weight: 600; }
.btn-load-more:hover { background: #d32f2f; color: #fff; }
@media (max-width: 768px) { .news-grid-container { grid-template-columns: 1fr; } }


.news-aggregation-wrapper { min-height: 600px; }

