/*
Theme Name: Grampanchayat Digital Theme
Theme URI: https://example.com/grampanchayat-theme
Author: Dr. Satish Upalkar (BizC)
Author URI: https://www.bizc.in/
Description: A custom lightweight WordPress theme for Grampanchayat with PWA support, based on JSON data storage.
Version: 1.3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-theme, e-governance, marathi, responsive
Text Domain: gp-theme
*/

/* =========================================
   1. GLOBAL VARIABLES & RESET
   ========================================= */
:root {
    --primary: #FF9933;   /* भगवा (Saffron) */
    --secondary: #138808; /* हिरवा (Green) */
    --blue: #000080;      /* नेव्ही ब्लू (Navy Blue) */
    --dark: #333333;
    --light: #f4f6f9;
    --white: #ffffff;
    --border-radius: 10px;
    --shadow: 0 4px 10px rgba(0,0,0,0.08);
}

body {
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light);
    color: #444;
    line-height: 1.6;
    overscroll-behavior-y: none; /* Mobile Pull-to-refresh disable */
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; }

/* Helper Classes */
.text-orange { color: #d35400 !important; border-bottom-color: #d35400 !important; }
.text-green { color: #218838 !important; border-bottom-color: #218838 !important; }
.text-red { color: #c82333 !important; border-bottom-color: #c82333 !important; }
.text-center { text-align: center; }

/* =========================================
   2. HEADER & TOP BAR
   ========================================= */
.top-bar {
    background: var(--blue);
    color: var(--white);
    padding: 8px 5%;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Google Translate Override */
.goog-te-banner-frame.skiptranslate { display: none !important; } 
body { top: 0px !important; }
.goog-te-gadget-simple { background-color: transparent !important; border: none !important; padding: 0 !important; font-size: 14px !important; color: white !important; }
.goog-te-gadget-simple a { color: white !important; text-decoration: none !important; font-weight: bold; }
.goog-te-gadget-simple span { color: white !important; }
.goog-te-gadget-icon { display: none !important; }

/* Main Header */
.header-main {
    background: var(--white);
    padding: 15px 5%;
    display: flex;
    align-items: center;
    border-bottom: 5px solid var(--primary);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.logo { width: 80px; margin-right: 20px; object-fit: contain; }

.site-title h1 {
    margin: 0;
    font-size: 26px;
    color: var(--dark);
    text-transform: uppercase;
    font-weight: 800;
}
.site-title p {
    margin: 5px 0 0;
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

/* =========================================
   3. NAVIGATION (DESKTOP & MOBILE)
   ========================================= */
.nav-wrapper {
    background: var(--primary);
    position: sticky; /* Sticky Nav */
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav a {
    color: #000000;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 15px;
    display: block;
    border-bottom: none;
}

.nav a:hover, .nav a.active {
    background-color: #cc7a00;
    color: white;
}
.nav a i { margin-right: 8px; }

/* Mobile Menu Toggle */
.menu-toggle-btn {
    display: none;
    font-size: 24px;
    color: #000000;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}
.mobile-header-flex { display: none; }

@media (max-width: 1024px) {
    .nav-wrapper { padding: 0 15px; }
    .menu-toggle-btn { display: block; }
    .mobile-header-flex {
        display: flex; justify-content: space-between; align-items: center; width: 100%;
    }
    .menu-label { font-weight: bold; color: #000000; font-size: 18px; display: block; }
    
    .nav {
        display: none; 
        flex-direction: column;
        width: 100%;
        background: var(--primary);
        border-top: 1px solid rgba(255,255,255,0.2);
    }
    .nav.show-menu { display: flex; animation: slideDown 0.3s ease-in-out; }
    .nav a { text-align: left; padding: 12px 15px; border-bottom: 1px solid rgba(255,255,255,0.1); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   4. MAIN LAYOUT & GENERAL ELEMENTS
   ========================================= */
.container {
    max-width: 1100px;
    margin: 20px auto;
    padding: 20px;
    min-height: 60vh;
}

.section-title {
    color: var(--blue);
    border-bottom: 3px solid var(--secondary);
    padding-bottom: 10px;
    margin: 40px 0 20px;
    font-size: 24px;
    position: relative;
}
.section-title::after {
    content: ''; position: absolute; bottom: -3px; left: 0; width: 80px; height: 3px; background: var(--primary);
}

.about-section {
    background: var(--white); padding: 25px; border-radius: 12px;
    box-shadow: var(--shadow); margin-bottom: 30px;
}

.content-text { font-size: 18px; margin-bottom: 20px; text-align: justify; white-space: pre-wrap; }
.content-img { text-align: center; margin: 25px 0; }
.content-img img { border-radius: var(--border-radius); border: 4px solid var(--white); box-shadow: var(--shadow); }

/* Buttons */
.btn-small { 
    background: var(--secondary); color: white; padding: 5px 10px; border-radius: 4px; font-size: 12px; 
    text-decoration: none; display: inline-block; cursor: pointer; border: none;
}
.btn-small:hover { background: #0f6e06; }

/* =========================================
   5. HOME PAGE STYLES
   ========================================= */

/* A. Slider */
.slideshow-container { position: relative; max-width: 100%; margin: auto; overflow: hidden; border-radius: 10px; }
.slider-img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; vertical-align: middle; }
@media(min-width: 768px) { .slider-img { height: 450px; aspect-ratio: auto; } }

.prev, .next {
    cursor: pointer; position: absolute; top: 50%; width: auto; padding: 16px; margin-top: -22px;
    color: white; font-weight: bold; font-size: 18px; transition: 0.6s ease; border-radius: 0 3px 3px 0;
    user-select: none; background-color: rgba(0,0,0,0.3);
}
.next { right: 0; border-radius: 3px 0 0 3px; }
.prev:hover, .next:hover { background-color: rgba(0,0,0,0.8); }

.dots-container { text-align: center; margin-top: -30px; position: relative; z-index: 10; padding-bottom: 10px; }
.dot {
    cursor: pointer; height: 10px; width: 10px; margin: 0 2px; background-color: rgba(255,255,255,0.5);
    border-radius: 50%; display: inline-block; transition: background-color 0.6s ease; border: 1px solid #fff;
}
.dot.active, .dot:hover { background-color: white; transform: scale(1.2); }
.fade { animation-name: fade; animation-duration: 1.5s; }
@keyframes fade { from {opacity: .4} to {opacity: 1} }

/* B. Quick Info Cards */
.quick-info-container {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; margin: 30px 0;
}
.stat-card {
    background: linear-gradient(135deg, #fff 0%, #f7f9fc 100%);
    padding: 20px 10px; border-radius: 12px; text-align: center;
    box-shadow: var(--shadow); border-bottom: 4px solid var(--primary);
    transition: transform 0.3s;
}
.stat-card:hover { transform: translateY(-5px); }
.stat-card i { font-size: 32px; color: var(--primary); margin-bottom: 10px; }
.stat-card h3 { margin: 5px 0; font-size: 24px; color: var(--dark); font-weight: 800; }
.stat-card p { margin: 0; font-size: 13px; color: #666; font-weight: 600; text-transform: uppercase; }

/* C. News Ticker */
.news-section {
    background: var(--white); border-radius: var(--border-radius); overflow: hidden;
    margin: 30px 0; box-shadow: var(--shadow); border: 1px solid #eee;
}
.news-header {
    background: #d32f2f; color: var(--white); padding: 12px 20px;
    font-weight: bold; font-size: 18px; display: flex; align-items: center; gap: 10px;
}
.news-content { padding: 0; max-height: 300px; overflow-y: auto; }
.news-item { padding: 15px 20px; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; gap: 15px; }
.news-item:hover { background-color: #fafafa; }
.new-badge {
    background: var(--secondary); color: var(--white); font-size: 10px; padding: 3px 8px;
    border-radius: 4px; font-weight: bold; animation: blink 1.5s infinite;
}
.news-link { margin-left: auto; color: var(--blue); font-size: 14px; font-weight: 600; }
@keyframes blink { 0% { opacity: 1; } 50% { opacity: 0.6; } 100% { opacity: 1; } }

/* D. Office Bearers (Leaders/Officers) */
.bearers-section { padding: 20px 0; }
.bearer-tabs-container { display: flex; justify-content: center; gap: 20px; margin: 20px 0 35px 0; flex-wrap: wrap; }
.bearer-tab-btn {
    background: #ffffff; color: var(--primary); border: 2px solid var(--primary);
    padding: 10px 30px; font-size: 16px; font-weight: bold; border-radius: 50px;
    cursor: pointer; transition: 0.3s; display: flex; align-items: center; gap: 10px;
}
.bearer-tab-btn.active, .bearer-tab-btn:hover { background: var(--primary); color: white; }
.bearer-content { display: none; animation: fadeIn 0.5s; }
.bearer-content.show { display: block; }

.bearer-row { display: flex; flex-wrap: wrap; justify-content: center; width: 100%; margin-bottom: 40px; gap: 20px; }
.bearer-card { width: 260px; text-align: center; padding: 0 15px; }
.photo-box {
    width: 130px; height: 130px; margin: 0 auto 15px; border-radius: 25px; border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); overflow: hidden;
}
.photo-box img { width: 100%; height: 100%; object-fit: cover; }
.no-photo { width: 100%; height: 100%; background: #f4f6f9; display: flex; align-items: center; justify-content: center; font-size: 40px; color: #ccc; }
.designation { font-size: 13px; color: var(--primary); font-weight: bold; text-transform: uppercase; }
.name { font-size: 17px; font-weight: 700; color: #333; }

/* E. Dashboard Quick Links */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 30px; }
.dashboard-card {
    display: flex; align-items: center; padding: 20px; border-radius: 12px; color: white; text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: transform 0.3s;
}
.dashboard-card:hover { transform: translateY(-5px); }
.card-icon {
    font-size: 35px; margin-right: 20px; background: rgba(255,255,255,0.2); width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center; border-radius: 50%;
}
.card-text h3 { margin: 0; font-size: 18px; font-weight: bold; text-transform: uppercase; }
.card-text p { margin: 5px 0 0 0; font-size: 13px; opacity: 0.9; }

/* =========================================
   6. PROJECTS & GALLERY
   ========================================= */
/* Projects */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 40px; }
.project-card { border: 1px solid #eee; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); background: white; transition: 0.3s; }
.project-card:hover { transform: translateY(-5px); }
.proj-img { height: 180px; overflow: hidden; background: #eee; }
.proj-img img { width: 100%; height: 100%; object-fit: cover; }
.proj-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 50px; }
.proj-info { padding: 15px; }
.proj-meta { display: flex; justify-content: space-between; font-size: 13px; color: #666; margin-bottom: 10px; }
.status-badge { padding: 5px 10px; border-radius: 15px; font-size: 11px; font-weight: bold; color: white; display: inline-block; }
.status-badge.ongoing { background: #f39c12; }
.status-badge.completed { background: #28a745; }
.status-badge.stalled { background: #dc3545; }

/* Pagination */
.pagination-container, .gallery-pagination { text-align: center; margin: 20px 0; display: flex; justify-content: center; gap: 5px; }
.page-btn, .g-page-btn { background: #fff; border: 1px solid #ddd; color: var(--blue); padding: 8px 15px; cursor: pointer; border-radius: 5px; font-weight: bold; }
.page-btn.active, .g-page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; margin-bottom: 20px; }
.gallery-item { border-radius: 10px; overflow: hidden; background: #fff; aspect-ratio: 16/9; cursor: pointer; border: 1px solid #ddd; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.g-hidden { display: none; }

/* Lightbox */
.lightbox-modal {
    display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); align-items: center; justify-content: center; flex-direction: column;
}
.lightbox-content { max-width: 90%; max-height: 80vh; border: 2px solid white; animation: zoom 0.5s; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: white; font-size: 40px; cursor: pointer; }
@keyframes zoom { from {transform:scale(0)} to {transform:scale(1)} }

/* =========================================
   7. SERVICES, TABLES & FORMS
   ========================================= */
   
   
.table-responsive { overflow-x: auto; }
.roles-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.roles-table th, .roles-table td { border: 1px solid #ddd; padding: 12px 15px; text-align: left; }
.roles-table th { background: var(--blue); color: #fff; }
.roles-table tr:nth-child(even) { background: #f9f9f9; }

/* Modal for Services */
.app-modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); align-items: center; justify-content: center; }

/* =========================================
   8. FOOTER
   ========================================= */
.footer {
    background: #222; color: #bbb; padding: 40px 20px 10px; font-size: 14px; text-align: left; margin-top: 30px;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer h3 { color: white; border-bottom: 2px solid var(--primary); display: inline-block; padding-bottom: 5px; margin-bottom: 15px; }
.footer-bottom { border-top: 1px solid #444; padding-top: 20px; text-align: center; }
.footer-links a { color: var(--primary); margin: 0 5px; }

/* =========================================
   9. MOBILE APP / PWA STYLES
   ========================================= */
.app-bar, .side-drawer-overlay, .side-drawer, #app-loader, #offline-screen { display: none; }

/* When in Standalone (App) Mode */
@media all and (display-mode: standalone) {
    .top-bar, .header-main, .nav-wrapper, .menu-toggle-btn, .footer-grid, .footer h3 { display: none !important; }
    
    .app-bar {
        display: flex; position: fixed; top: 0; left: 0; width: 100%; height: 60px;
        background: var(--primary); color: white; z-index: 9999; align-items: center; justify-content: space-between; padding: 0 15px; box-sizing: border-box;
    }
    .app-bar-title { font-size: 18px; font-weight: bold; }
    .app-btn { background: none; border: none; color: white; font-size: 22px; cursor: pointer; }

    /* Drawer */
    .side-drawer-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 10000; }
    .side-drawer {
        display: flex; flex-direction: column; position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
        background: white; z-index: 10001; transition: right 0.3s;
    }
    .drawer-header { background: var(--primary); padding: 20px; color: white; display: flex; align-items: center; gap: 15px; }
    .drawer-logo { width: 50px; height: 50px; background: white; border-radius: 50%; padding: 2px; }
    .drawer-content { flex: 1; overflow-y: auto; padding: 10px 0; }
    .drawer-item { display: flex; align-items: center; gap: 15px; padding: 15px 25px; color: #333; text-decoration: none; border-bottom: 1px solid #f0f0f0; }
    .drawer-item.active { background: #fff3e0; color: var(--primary); }

    main.container { margin-top: 70px !important; min-height: calc(100vh - 150px); }
    .footer { text-align: center !important; padding: 10px !important; }
    .footer p { margin: 0; font-size: 12px; }
}

/* =========================================
   10. UTILITIES (Custom Image Placeholder)
   ========================================= */
.custom-img-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background-color: #f8f9fa; border: 2px dashed #ccc; border-radius: 10px; padding: 20px;
    text-align: center; min-height: 200px; color: #666; margin: 10px 0;
}
.custom-img-placeholder i { color: var(--primary); margin-bottom: 10px; animation: pulse 2s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.8; transform: scale(1.1); } 100% { opacity: 1; } }

/* Responsive Tweaks */
@media (max-width: 768px) {
    .header-main { flex-direction: column; text-align: center; padding: 20px; }
    .logo { margin: 0 0 15px 0; }
    .bearer-row { flex-direction: column; }
    .bearer-card { width: 100%; display: flex; text-align: left; align-items: center; padding: 10px; border: 1px solid #eee; }
    .photo-box { width: 70px; height: 70px; margin: 0 15px 0 0; }
    .dashboard-grid, .project-grid { grid-template-columns: 1fr; }
}

/* =========================================
   11. HOME PAGE BLOCKS CUSTOM STYLES
   (Added from page.php logic)
   ========================================= */

/* --- A. Slider Styles --- */
.slideshow-container { position: relative; max-width: 100%; margin: auto; overflow: hidden; border-radius: 10px; }

.slider-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    vertical-align: middle;
}

@media(min-width: 768px) {
    .slider-img { height: 450px; aspect-ratio: auto; }
}

.prev, .next {
    cursor: pointer; position: absolute; top: 50%; width: auto; padding: 16px; margin-top: -22px;
    color: white; font-weight: bold; font-size: 18px; transition: 0.6s ease; border-radius: 0 3px 3px 0;
    user-select: none; background-color: rgba(0,0,0,0.3); text-decoration: none;
}
.next { right: 0; border-radius: 3px 0 0 3px; }
.prev:hover, .next:hover { background-color: rgba(0,0,0,0.8); }

/* Dots */
.dots-container { text-align: center; margin-top: -30px; position: relative; z-index: 10; padding-bottom: 10px; }
.dot {
    cursor: pointer; height: 10px; width: 10px; margin: 0 2px; background-color: rgba(255,255,255,0.5);
    border-radius: 50%; display: inline-block; transition: background-color 0.6s ease;
    border: 1px solid #fff;
}
.dot.active, .dot:hover { background-color: white; transform: scale(1.2); }

/* Animation */
.fade { animation-name: fade; animation-duration: 1.5s; }
@keyframes fade { from {opacity: .4} to {opacity: 1} }


/* --- B. Office Bearers (Strict Row System) --- */
.bearers-section { padding: 20px 0; }

/* Tabs */
.bearer-tabs-container {
    display: flex; justify-content: center; gap: 20px; margin: 20px 0 35px 0; flex-wrap: wrap;
}
.bearer-tab-btn {
    background: #ffffff; color: var(--primary); border: 2px solid var(--primary);
    padding: 10px 30px; font-size: 16px; font-weight: bold; border-radius: 50px;
    cursor: pointer; transition: 0.3s; display: flex; align-items: center; gap: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); outline: none;
}
.bearer-tab-btn:hover { background: #fff5eb; transform: translateY(-2px); }
.bearer-tab-btn.active { background: var(--primary); color: white; box-shadow: 0 4px 15px rgba(255, 153, 51, 0.4); }

/* Content Areas */
.bearer-content { display: none; animation: fadeIn 0.5s; }
.bearer-content.show { display: block; }

/* Rows & Cards */
.bearer-row {
    display: flex; flex-wrap: wrap; justify-content: center; width: 100%;
    margin-bottom: 40px; position: relative; clear: both; gap: 20px;
}
.bearer-row.empty-row { margin-bottom: 0; height: 0; }

.bearer-card {
    width: 260px; text-align: center; padding: 0 15px; box-sizing: border-box;
}

/* Photo Box */
.photo-box {
    width: 130px; height: 130px; margin: 0 auto 15px;
    border-radius: 25px; background: white; border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); overflow: hidden;
    display: flex; align-items: center; justify-content: center; transition: 0.3s;
}
.bearer-card:hover .photo-box { transform: scale(1.05); border-color: var(--primary); }
.photo-box img { width: 100%; height: 100%; object-fit: cover; }
.no-photo { width: 100%; height: 100%; background: #f4f6f9; color: #ccc; font-size: 40px; display: flex; align-items: center; justify-content: center; }

.info-box .designation { font-size: 13px; color: var(--primary); font-weight: bold; text-transform: uppercase; margin-bottom: 5px; }
.info-box .name { font-size: 17px; font-weight: 700; color: #333; line-height: 1.4; }

/* Mobile Bearers */
@media (max-width: 768px) {
    .bearer-tabs-container { gap: 10px; }
    .bearer-tab-btn { padding: 8px 15px; font-size: 14px; width: 100%; justify-content: center; }
    
    .bearer-row { flex-direction: column; gap: 15px; margin-bottom: 15px; }
    
    .bearer-card { 
        width: 100%; display: flex; align-items: center; text-align: left;
        background: white; padding: 10px; border-radius: 12px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05); border: 1px solid #eee;
    }
    .photo-box { width: 70px; height: 70px; margin: 0 15px 0 0; flex-shrink: 0; box-shadow: none; border: 2px solid #fff; }
    .bearer-card:hover .photo-box { transform: none; }
    .info-box { flex: 1; }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }


/* --- C. Dashboard Quick Links --- */
.dashboard-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px; margin-bottom: 30px;
}
.dashboard-card {
    display: flex; align-items: center; padding: 20px; border-radius: 12px;
    color: white; text-decoration: none; box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s; overflow: hidden;
}
.dashboard-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }

.card-icon {
    font-size: 35px; margin-right: 20px; background: rgba(255,255,255,0.2);
    width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border-radius: 50%;
}
.card-text h3 { margin: 0; font-size: 18px; font-weight: bold; text-transform: uppercase; color: white; }
.card-text p { margin: 5px 0 0 0; font-size: 13px; opacity: 0.9; color: white; }

@media (max-width: 768px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .dashboard-card { margin-bottom: 10px; }
}

/* --- D. News Updates --- */
.news-section {
    background: var(--white); border-radius: 10px; overflow: hidden;
    margin: 30px 0; box-shadow: var(--shadow); border: 1px solid #eee;
}
.news-header {
    background: #d32f2f; color: var(--white); padding: 12px 20px;
    font-weight: bold; font-size: 18px; display: flex; align-items: center; gap: 10px;
    border-bottom: 2px solid #eee;
}
.news-content { padding: 0; }
.news-content ul { list-style: none; padding: 0; margin: 0; }
.news-item { padding: 15px 20px; border-bottom: 1px dashed #eee; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.news-item:hover { background-color: #fafafa; }
.new-badge {
    background: var(--secondary); color: var(--white); font-size: 10px; padding: 3px 8px;
    border-radius: 4px; font-weight: bold; margin-right: 5px;
}
.news-link { margin-left: auto; color: var(--blue); font-size: 14px; font-weight: 600; text-decoration: none; }


