/* =====================================================
   GLOBAL VARIABLES AND BASE STYLES
   ====================================================== */
:root {
    --primary-color: #1e3c72;
    --primary-hover-color: #1a3260;
    --secondary-color: #2a5298;
    --accent-color: #e74c3c;
    --body-bg: #f8f9fa;
    --text-color: #212529;
    --heading-color: #1a1d29;
    --card-bg: #ffffff;
    --border-color: #e9ecef;
    --light-text: #6c757d;
    --link-hover-color: #1e3c72;
    --box-shadow-light: 0 2px 10px rgba(0, 0, 0, 0.05);
    --box-shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.1);
    --gradient-bg: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Dark Mode Variables */
.dark-mode {
    --body-bg: #121212;
    --text-color: #e0e0e0;
    --heading-color: #f5f5f5;
    --card-bg: #1e1e1e;
    --border-color: #333333;
    --light-text: #b0b0b0;
    --link-hover-color: #5d81b8;
    --box-shadow-light: 0 2px 10px rgba(0, 0, 0, 0.2);
    --box-shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.4);
    --primary-color: #5d81b8;
    --primary-hover-color: #4b6a9a;
    --accent-color: #ff6347;
    --gradient-bg: linear-gradient(135deg, #2d4a7a 0%, #3d5ba8 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Remove visible focus outlines for mouse users, keep for keyboard users */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus,
a:focus,
img:focus {
    outline: none;
}

button:focus-visible,
a:focus-visible,
img:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tiro Bangla', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--body-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Tiro Bangla', sans-serif;
    line-height: 1.2;
    color: var(--heading-color);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease, background-color 0.2s ease;
    outline: none;
}

a:hover {
    color: var(--link-hover-color);
}

img {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}

/* =====================================================
   REDESIGNED HEADER STYLES - SMART & SLIM DESIGN
   ===================================================== */
/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 6px 6px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* =====================================================
   SLIM TOP BAR
   ===================================================== */
.top-bar {
    background: var(--gradient-bg);
    color: white;
    padding: 6px 0;
    font-size: 12px;
    position: relative;
    z-index: 100;
}

.top-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 32px;
}

.date-display {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.95);
}

.date-display i {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
}

/* =====================================================
   LIVE PULSE INDICATOR STYLES
   ===================================================== */
.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.95);
}

.live-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #ff4444;
    border-radius: 50%;
    position: relative;
    animation: live-pulse 2s ease-in-out infinite;
}

.live-pulse-dot::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 12px;
    height: 12px;
    background-color: #ff4444;
    border-radius: 50%;
    opacity: 0.6;
    animation: live-ripple 2s ease-in-out infinite;
}

.live-text {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

@keyframes live-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes live-ripple {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Breaking News Ticker */
.breaking-ticker-wrapper {
    flex: 1;
    margin: 0 20px;
    overflow: hidden;
    display: none; /* Hidden on mobile by default */
}

.breaking-news-ticker {
    display: flex;
    align-items: center;
    height: 100%;
}

.breaking-label {
    background: var(--accent-color);
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.breaking-label i {
    animation: pulse 1.5s ease-in-out infinite;
    font-size: 9px;
}

.ticker-content {
    display: flex;
    animation: scroll-ticker 25s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    color: rgba(255, 255, 255, 0.95);
    margin-right: 30px;
    transition: color 0.2s ease;
    font-size: 11px;
    text-decoration: none;
}

.ticker-item:hover {
    color: white;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes scroll-ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Top Bar Social Links */
.top-bar .social-links {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.top-bar .social-links a {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    transition: all 0.2s ease;
    font-size: 12px;
    text-decoration: none;
}

.top-bar .social-links a:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateY(-1px);
}

/* =====================================================
   MAIN HEADER
   ===================================================== */
.main-header {
    background: var(--card-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.98);
    transition: all 0.3s ease;
}

.dark-mode .main-header {
    background-color: rgba(30, 30, 30, 0.98);
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 65px;
    padding: 0;
}

/* =====================================================
   LOGO SECTION
   ===================================================== */
.logo-section {
    flex-shrink: 0;
    z-index: 2;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.logo-link:hover {
    transform: scale(1.02);
}

.logo-img {
    height: 45px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.logo-text {
    text-align: center;
}

.logo-text h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.1;
}

.logo-text .tagline {
    font-size: 0.75rem;
    color: var(--light-text);
    font-weight: 400;
    display: block;
    margin-top: 2px;
}

/* =====================================================
   MAIN NAVIGATION
   ===================================================== */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 20px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    color: var(--text-color);
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    font-size: 15px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 16px;
    right: 16px;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(30, 60, 114, 0.08);
}

.nav-link.active::after,
.nav-link:hover::after {
    transform: scaleX(1);
}


/* =====================================================
   HEADER ACTIONS - CONSISTENT STYLING FIX
   ===================================================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.action-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--light-text);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    font-size: 16px;
}

.action-btn:hover {
    background: rgba(108, 117, 125, 0.1);
    color: var(--heading-color);
    transform: scale(1.05);
}

.dark-mode .action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Notification Bell Button */
.notification-bell-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--light-text);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    text-decoration: none;
}

.notification-bell-btn:hover {
    background: rgba(108, 117, 125, 0.1);
    color: var(--heading-color);
    transform: scale(1.05);
}

.dark-mode .notification-bell-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.4);
    border: 2px solid var(--card-bg);
    z-index: 1;
    animation: badge-pulse 2s ease-in-out infinite;
}

/* Archive Button */
.archive-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--light-text);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    text-decoration: none;
}

.archive-btn:hover {
    background: rgba(108, 117, 125, 0.1);
    color: var(--heading-color);
    transform: scale(1.05);
}

.dark-mode .archive-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Dark Mode Badge Border */
.dark-mode .notification-badge {
    border-color: var(--card-bg);
}

/* Additional hover effect for the notification bell */
.notification-bell-btn:hover .notification-badge {
    animation-play-state: paused;
    transform: scale(1.15);
}

/* Badge Pulse Animation */
@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 6px rgba(231, 76, 60, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 2px 12px rgba(231, 76, 60, 0.6);
    }
}

/* Bell Animation on Hover */
.notification-bell-btn:hover i {
    animation: bell-ring 0.5s ease-in-out;
}

@keyframes bell-ring {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30% {
        transform: rotate(-10deg);
    }
    20%, 40% {
        transform: rotate(10deg);
    }
}



/* =====================================================
   LOGIN BUTTON
   ===================================================== */
.login-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.login-btn:hover {
    background: var(--primary-hover-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.3);
    color: white;
}

/* =====================================================
   USER DROPDOWN
   ===================================================== */
.user-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 8px;
    border: 1px solid var(--border-color);
}

.user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-info {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 8px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 10px;
    font-size: 14px;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 2px;
    font-size: 14px;
}

.user-role {
    font-size: 12px;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-menu a {
    display: block;
    padding: 10px 12px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: var(--body-bg);
    color: var(--primary-color);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

/* =====================================================
   MOBILE HAMBURGER BUTTON
   ===================================================== */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 4px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.mobile-menu-btn:hover {
    background: rgba(108, 117, 125, 0.1);
}

.hamburger-line {
    width: 22px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
    border-radius: 1px;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* =====================================================
   MOBILE SCROLLABLE NAVIGATION
   ===================================================== */
.mobile-nav-scroll {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    display: none;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mobile-nav-scroll::-webkit-scrollbar {
    display: none;
}

.mobile-scroll-wrapper {
    padding: 0;
}

.mobile-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 12px 20px;
    gap: 8px;
    white-space: nowrap;
}

.mobile-nav-link {
    display: block;
    padding: 8px 16px;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 20px;
    background: var(--body-bg);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: var(--primary-color);
    color: white;
}

/* =====================================================
   MOBILE MENU OVERLAY
   ===================================================== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 380px;
    height: 100%;
    background: var(--card-bg);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active .mobile-menu-panel {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--body-bg);
    flex-shrink: 0;
}

.mobile-logo {
    height: 32px;
}

.mobile-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.mobile-menu-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--light-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-menu-close:hover {
    background: rgba(108, 117, 125, 0.1);
    color: var(--heading-color);
}

.mobile-menu-content {
    flex: 1;
    padding: 24px 20px;
    overflow-y: auto;
}

/* Mobile Main Navigation */
.mobile-main-nav ul {
    list-style: none;
    margin: 0 0 32px 0;
    padding: 0;
}

.mobile-main-nav li {
    margin-bottom: 4px;
}

.mobile-menu-link {
    display: block;
    padding: 16px 0;
    color: var(--text-color);
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.mobile-menu-link:hover {
    color: var(--primary-color);
    padding-left: 12px;
}

.mobile-menu-link.active {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
}

.mobile-menu-link.active::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Mobile Menu Sections */
.mobile-menu-section {
    margin-bottom: 32px;
}

.mobile-menu-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.quick-links-grid,
.categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.quick-links-grid a,
.categories-grid a {
    padding: 12px;
    background: var(--body-bg);
    color: var(--text-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
}

.quick-links-grid a:hover,
.categories-grid a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Mobile Social Footer */
.mobile-social-footer {
    padding: 24px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--body-bg);
    flex-shrink: 0;
}

.mobile-social-footer h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.mobile-social-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mobile-social-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.mobile-social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.mobile-social-links i {
    font-size: 16px;
    color: var(--primary-color);
}

.mobile-social-links a:hover i {
    color: white;
}

/* =====================================================
   MAIN CONTENT LAYOUT
   ====================================================== */
main {
    padding-top: 40px;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0px;
    padding-top: 20px;
}

/* =====================================================
   TRENDING TOPICS SECTION
   ====================================================== */
.trending-topics-section {
    margin-bottom: 30px;
}

.trending-topics-container {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--box-shadow-light);
    padding: 15px;
    overflow: hidden;
}

.trending-topics-scroll {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 10px;
    padding-bottom: 5px;
}

.trending-topics-scroll::-webkit-scrollbar {
    display: none;
}

.trending-topic-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--body-bg);
    color: var(--text-color);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.trending-topic-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(30, 60, 114, 0.2);
}

.trending-topic-btn i {
    font-size: 16px;
}

/* =====================================================
   HOME GRID LAYOUT
   ====================================================== */
.home-grid {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 30px;
    margin-bottom: 40px;
}

.main-column {
    /* Styles for the left 70% column */
}

.sidebar-column {
    /* Styles for the right 30% column */
}

/* =====================================================
   LATEST FEATURE SECTION (NEW) - REDESIGNED
   ====================================================== */
.latest-feature-section {
    margin-bottom: 40px;
}

.latest-feature-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-latest-feature {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: var(--box-shadow-medium);
    height: 300px;
}

.main-latest-feature-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.main-latest-feature-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.main-latest-feature-content h2 a {
    color: var(--heading-color);
    transition: color 0.2s ease;
}

.main-latest-feature-content h2 a:hover {
    color: var(--link-hover-color);
}

.main-latest-feature-content p {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.5;
    margin: 0;
}

.main-latest-feature-image {
    flex: 1;
    overflow: hidden;
}

.main-latest-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.main-latest-feature:hover .main-latest-feature-image img {
    transform: scale(1.05);
}

.sub-latest-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.sub-latest-feature-item {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: var(--box-shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sub-latest-feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-medium);
}

.sub-latest-feature-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.sub-latest-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.sub-latest-feature-item:hover .sub-latest-feature-image img {
    transform: scale(1.05);
}

.sub-latest-feature-content {
    padding: 15px;
    background: var(--card-bg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.sub-latest-feature-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0;
    line-height: 1.4;
}

.sub-latest-feature-item h3 a {
    color: var(--heading-color);
    transition: color 0.2s ease;
}

.sub-latest-feature-item h3 a:hover {
    color: var(--link-hover-color);
}

.featured-category-tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    margin-bottom: 10px;
    align-self: self-start;
}

/* =====================================================
   LATEST POSTS WIDGET - REDESIGNED WITH NUMBERING
   ====================================================== */
.latest-posts-widget {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--box-shadow-light);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.latest-posts-widget:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-medium);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.widget-header .widget-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--heading-color);
    display: flex;
    align-items: center;
}

.widget-header .widget-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background-color: var(--accent-color);
    margin-right: 10px;
    border-radius: 2px;
}

.view-all-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.view-all-link:hover {
    color: var(--primary-hover-color);
    text-decoration: underline;
}

.latest-posts-container {
    padding: 5px;
}

.latest-post-item {
    display: flex;
    padding: 15px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    position: relative;
}

.latest-post-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.latest-post-item:hover {
    background-color: var(--body-bg);
}

.post-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    margin-right: 15px;
    flex-shrink: 0;
}

.post-content {
    display: flex;
    flex: 1;
}

.post-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-color);
    text-decoration: none;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-title:hover {
    color: var(--link-hover-color);
}

.latest-post-title {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 5px;
    color: var(--heading-color);
}

.post-date {
    font-size: 12px;
    color: var(--light-text);
    margin-top: auto;
}

.thunder-icon {
    color: var(--accent-color);
    margin-left: 5px;
    font-size: 12px;
}

/* =====================================================
   SECTION HEADER STYLES
   ====================================================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: var(--heading-color);
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    height: 80%;
    width: 5px;
    background-color: var(--accent-color);
    border-radius: 3px;
}

.section-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.section-title a:hover {
    color: var(--primary-color);
}

/* =====================================================
   FEATURED SECTION NEW - REFINED
   ====================================================== */
.featured-section-new {
    margin-bottom: 40px;
    width: 100%;
}

.featured-container {
    width: 100%;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.featured-item {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: var(--box-shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.featured-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-medium);
}

.featured-image-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.featured-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.featured-item:hover .featured-image-container img {
    transform: scale(1.05);
}

.featured-content {
    padding: 15px;
    background: var(--card-bg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.featured-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0;
    line-height: 1.4;
}

.featured-item h3 a {
    color: var(--heading-color);
    transition: color 0.2s ease;
}

.featured-item h3 a:hover {
    color: var(--link-hover-color);
}

/* =====================================================
   CATEGORY SECTIONS - REFINED
   ====================================================== */
.category-section {
    margin-bottom: 50px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.news-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.news-card-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-img {
    transform: scale(1.05);
}

.news-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-content .category-tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    margin-bottom: 10px;
    align-self: flex-start;
}

.news-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
}

.news-card-title a {
    color: var(--heading-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-card-title a:hover {
    color: var(--link-hover-color);
}

.news-card .post-meta {
    font-size: 13px;
    color: var(--light-text);
    margin-top: auto;
}

/* =====================================================
   4-COLUMN CATEGORY GRID STYLES - REFINED
   ====================================================== */
.category-grid-container {
    margin-top: 40px;
    margin-bottom: 40px;
}

.category-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-grid-item {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--box-shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-medium);
}

.category-grid-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.category-grid-title a {
    color: var(--accent-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.category-grid-title a:hover {
    color: #a03024;
}

.category-grid-title a::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: var(--accent-color);
    margin-right: 10px;
    flex-shrink: 0;
}

.category-grid-posts {
    list-style: none;
    padding-left: 0;
}

.category-grid-posts li {
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.category-grid-posts li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.category-grid-posts .featured-post {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-grid-posts .featured-post img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    border-radius: 6px;
    transition: opacity 0.3s ease;
}

.category-grid-posts .featured-post:hover img {
    opacity: 0.85;
}

.category-grid-posts .featured-post span {
    font-weight: 600;
    color: var(--text-color);
}

.category-grid-posts a {
    color: var(--text-color);
    font-size: 15px;
}

.category-grid-posts a:hover {
    color: var(--link-hover-color);
}

/* =====================================================
   SINGLE POST PAGE STYLES
   ====================================================== */
.single-post-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.post-header {
    position: relative;
}

.post-featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.post-content-wrapper {
    padding: 40px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 3px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--light-text);
}

.post-category {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
    background-color: var(--primary-color);
    color: #fff;
}

.post-body {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 30px;
}

.post-body p {
    margin-bottom: 20px;
}

.post-body h2, .post-body h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.post-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.post-tags-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-list a {
    display: inline-block;
    padding: 5px 12px;
    background: var(--body-bg);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.tag-list a:hover {
    background: var(--primary-color);
    color: white;
}

.related-posts {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.related-posts-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
}

.related-posts-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-post-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.related-post-card:hover {
    transform: translateY(-5px);
}

.related-post-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-post-content {
    padding: 15px;
}

.related-post-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

/* =====================================================
   SIDEBAR STYLES
   ====================================================== */
.sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.trending-list, .categories-list {
    list-style: none;
}

.trending-list li a {
    display: block;
    padding: 10px 0;
    font-size: 15px;
    border-bottom: 1px dashed var(--border-color);
    transition: padding-left 0.2s ease;
}

.trending-list li:last-child a {
    border-bottom: none;
}

.trending-list li a:hover {
    padding-left: 8px;
    color: var(--link-hover-color);
}

.categories-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px dashed var(--border-color);
}

.categories-list li a:hover {
    color: var(--link-hover-color);
}

.categories-list .post-count {
    font-size: 13px;
    color: var(--light-text);
}

/* =====================================================
   PAGINATION STYLES
   ====================================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--border-color);
    color: var(--text-color);
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.pagination a:hover {
    background: #e2e6ea;
}

.pagination .active {
    background: var(--primary-color);
    color: white;
}

.pagination .prev-page, .pagination .next-page {
    width: auto;
    padding: 0 15px;
}

/* =====================================================
   404 PAGE STYLES
   ====================================================== */
.error-404 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 40px 20px;
}

.error-404-content {
    max-width: 600px;
}

.error-404 h1 {
    font-size: 120px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.error-404 h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 20px;
}

.error-404 p {
    font-size: 18px;
    color: var(--light-text);
    margin-bottom: 30px;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.error-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: var(--body-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
    color: var(--heading-color);
}

/* =====================================================
   REDESIGNED SLIM MODERN FOOTER
   ===================================================== */
.site-footer {
    background: var(--gradient-bg);
    color: white;
    padding: 30px 0 20px;
    margin-top: 60px;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

/* Footer Top Section */
.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo .site-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0 0 5px 0;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 0;
    max-width: 400px;
}

/* Footer Social Links */
.footer-top .social-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-top .social-links a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 14px;
    text-decoration: none;
}

.footer-top .social-links a:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateY(-3px) scale(1.1);
}

/* Footer Links Section - Horizontal Layout */
.footer-links-section {
    margin-bottom: 20px;
}

.footer-links-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: flex-start;
}

.footer-links-column {
    flex: 1;
}

.footer-heading {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: white;
    opacity: 0.9;
}

.footer-links-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-link-item {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    border-radius: 15px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-link-item:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Footer Bottom - Minimal */
.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom p {
    margin: 0;
    font-weight: 400;
}

/* =====================================================
   LIVE UPDATE SYSTEM STYLES
   ====================================================== */
.live-badge {
    background-color: #e74c3c;
    color: #fff;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    vertical-align: middle;
    margin-right: 10px;
    font-weight: bold;
}

#live-updates-container {
    margin-top: 30px;
    border-top: 2px solid #f0f0f0;
    padding-top: 20px;
}

.live-update-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #3498db;
    background-color: #f8f9fa;
    border-radius: 0 5px 5px 0;
}

.live-update-time {
    flex-shrink: 0;
    margin-right: 20px;
    font-weight: bold;
    color: #e74c3c;
    font-size: 0.9rem;
    padding-top: 2px;
}

.live-update-content {
    flex-grow: 1;
    font-size: 1rem;
    line-height: 1.6;
}

/* =====================================================
   TRUST INDICATORS
   ====================================================== */
.trust-indicators-wrapper {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    padding: 20px 0;
    margin-bottom: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.trust-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.trust-item {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    min-width: 180px;
    max-width: 220px;
    flex: 0 1 auto;
}

.trust-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    border-color: #1e3c72;
}

.trust-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #e7f3ff 0%, #d1e9ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #1e3c72;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(30,60,114,0.15);
}

.trust-content {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.trust-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.2;
}

.trust-value {
    font-size: 16px;
    font-weight: 700;
    color: #212529;
    line-height: 1.3;
}

/* =====================================================
   SPECIAL NEWS SECTION STYLES
   ====================================================== */
.special-news-section-box {
    box-sizing: border-box;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.special-news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.special-news-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.special-news-tag-item {
    background: #007bff;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.special-news-tag-item:hover, 
.special-news-tag-item:focus {
    background: #0056b3;
    color: #ffffff;
    outline: none;
}

.special-news-card .special-news-img-link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 6px;
}

.special-news-card .special-news-category-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
}

.special-news-card .news-card-content .category-tag {
    display: none;
}

/* Dark Mode for Special News */
.dark-mode .special-news-section-box {
    background: #000000;
    border-color: #4a5568;
}

.dark-mode .special-news-header .section-title {
    color: #e2e8f0;
}

.dark-mode .special-news-tag-item {
    background: #4299e1;
    color: #ffffff;
}

.dark-mode .special-news-tag-item:hover, 
.dark-mode .special-news-tag-item:focus {
    background: #3182ce;
}

/* =====================================================
   SEARCH OVERLAY STYLES
   ====================================================== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.dark-mode .search-overlay {
    background: rgba(18, 18, 18, 0.98);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
    position: relative;
}

.search-close {
    position: absolute;
    top: -60px;
    right: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: none;
    border-radius: 50%;
    color: var(--light-text);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-close:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.search-form {
    margin-bottom: 40px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 8px 32px rgba(30, 60, 114, 0.2);
}

.search-input {
    width: 100%;
    padding: 20px 24px;
    font-size: 18px;
    border: none;
    border-radius: 50px;
    background: transparent;
    color: var(--text-color);
    outline: none;
}

.search-input::placeholder {
    color: var(--light-text);
}

.search-submit {
    position: absolute;
    right: 6px;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
}

.search-submit:hover {
    background: var(--primary-hover-color);
    transform: scale(1.05);
}

.search-suggestions {
    text-align: center;
}

.search-suggestions h3 {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.suggestion-tags a {
    padding: 10px 18px;
    background: var(--card-bg);
    color: var(--light-text);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.suggestion-tags a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.3);
}

/* =====================================================
   ADDITIONAL ANIMATIONS AND EFFECTS
   ===================================================== */
.header-hidden {
    transform: translateY(-100%);
}

.menu-open {
    overflow: hidden;
}

/* Back to Top Button Styles */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 9999;
    opacity: 0.8;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Notification Styles */
.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 24px;
    border-radius: 6px;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-weight: 500;
    transition: transform 0.3s ease;
}

.notification-success {
    background-color: #28a745;
    color: white;
}

.notification-error {
    background-color: #dc3545;
    color: white;
}

.notification-info {
    background-color: #17a2b8;
    color: white;
}

/* Form Validation Styles */
.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

/* =====================================================
   RESPONSIVE STYLES - ENHANCED
   ===================================================== */
@media (min-width: 769px) {
    .breaking-ticker-wrapper {
        display: block !important;
    }
    
    .mobile-menu-btn {
        display: none !important;
    }
    
    .mobile-nav-scroll {
        display: none !important;
    }
    
    .mobile-menu-overlay {
        display: none !important;
    }
}

@media (max-width: 1200px) {
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .category-grid-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .sub-latest-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trust-indicators {
        gap: 20px;
    }
    
    .trust-item {
        min-width: 160px;
        padding: 12px 16px;
    }
    
    .trust-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-right: 12px;
    }
    
    .trust-label {
        font-size: 11px;
    }
    
    .trust-value {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    /* Top Bar Adjustments */
    .top-bar-content {
        justify-content: space-between;
        padding: 0 16px;
    }
    
    .breaking-ticker-wrapper {
        display: none !important;
    }
    
    .top-bar .social-links {
        gap: 6px;
    }
    
    .top-bar .social-links a {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
    
    .date-display span {
        font-size: 11px;
    }
    
    /* Live indicator mobile adjustments */
    .live-indicator {
        margin-left: 8px;
        gap: 4px;
    }
    
    .live-text {
        font-size: 10px;
    }
    
    .live-pulse-dot {
        width: 6px;
        height: 6px;
    }
    
    .live-pulse-dot::before {
        width: 10px;
        height: 10px;
        top: -2px;
        left: -2px;
    }
    
    /* Main Header Adjustments */
    .main-header {
        position: relative;
    }
    
    .header-wrapper {
        height: 60px;
        padding: 0 16px;
    }
    
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex !important;
    }
    
    .mobile-nav-scroll {
        display: block !important;
    }
    
    .header-actions {
        gap: 6px;
    }
    
    .action-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    /* Notification Bell Mobile */
    .notification-bell-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .notification-badge {
        min-width: 16px;
        height: 16px;
        font-size: 9px;
        padding: 0 4px;
        top: 1px;
        right: 1px;
        border-width: 1.5px;
    }
    
    .login-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .login-btn .btn-text {
        display: none;
    }
    
    .logo-img {
        height: 36px;
    }
    
    .logo-text h1 {
        font-size: 1.4rem;
    }
    
    .logo-text .tagline {
        font-size: 0.7rem;
    }
    
    /* Search Adjustments */
    .search-close {
        top: -50px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
    
    .search-input {
        padding: 16px 20px;
        font-size: 16px;
    }
    
    /* Home Grid Adjustments */
    .home-grid {
        grid-template-columns: 1fr;
    }
    
    /* Trending Topics Adjustments */
    .trending-topics-container {
        padding: 12px;
    }
    
    /* Latest Feature Section Adjustments */
    .main-latest-feature {
        flex-direction: column;
        height: auto;
    }
    
    .main-latest-feature-content {
        padding: 20px;
    }
    
    .main-latest-feature-image {
        height: 250px;
    }
    
    .sub-latest-feature-grid {
        grid-template-columns: 1fr;
    }
    
    .sub-latest-feature-image {
        height: 200px;
    }
    
    /* Featured Section Adjustments */
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-image-container {
        height: 200px;
    }
    
    /* Category Section Adjustments */
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Category Grid Container Adjustments */
    .category-grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Latest Posts Widget Adjustments */
    .post-number {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .post-title {
        font-size: 13px;
    }
    
    /* Footer Adjustments */
    .footer-top {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-logo {
        align-items: center;
    }
    
    .footer-description {
        text-align: center;
        max-width: 100%;
    }
    
    .footer-links-container {
        flex-direction: column;
        gap: 20px;
    }
    
    /* Trust Indicators Mobile */
    .trust-indicators-wrapper {
        padding: 15px 0;
    }
    
    .trust-indicators {
        gap: 15px;
        justify-content: space-around;
    }
    
    .trust-item {
        min-width: 140px;
        padding: 10px 12px;
        flex-direction: row;
    }
    
    .trust-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
        margin-right: 10px;
    }
    
    .trust-label {
        font-size: 10px;
        margin-bottom: 2px;
    }
    
    .trust-value {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .main-latest-feature-image {
        height: 200px;
    }
    
    .sub-latest-feature-image {
        height: 180px;
    }
    
    .featured-image-container {
        height: 180px;
    }
    
    .main-latest-feature-content {
        padding: 15px;
    }
    
    .main-latest-feature-content h2 {
        font-size: 20px;
    }
    
    .main-latest-feature-content p {
        font-size: 13px;
    }
    
    .sub-latest-feature-content, .featured-content {
        padding: 15px;
    }
    
    .sub-latest-feature-item h3, .featured-item h3 {
        font-size: 15px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .category-grid-wrapper {
        grid-template-columns: 1fr;
    }
    
    /* Latest Posts Widget Adjustments */
    .post-number {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .post-content {
        flex-direction: column;
    }
    
    .post-title {
        font-size: 14px;
    }
    
    /* Single Post Adjustments */
    .post-content-wrapper {
        padding: 20px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    /* Notification Bell Extra Small Mobile */
    .notification-bell-btn {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }
    
    .notification-badge {
        min-width: 15px;
        height: 15px;
        font-size: 8px;
        padding: 0 3px;
    }
    
    /* Trust Indicators Small Mobile */
    .trust-indicators {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 5px;
        justify-content: flex-start;
        gap: 10px;
    }
    
    .trust-indicators::-webkit-scrollbar {
        display: none;
    }
    
    .trust-item {
        min-width: 120px;
        padding: 8px 10px;
    }
    
    .trust-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
        margin-right: 8px;
    }
    
    .trust-content {
        text-align: left;
    }
    
    .trust-label {
        font-size: 9px;
        letter-spacing: 0.5px;
    }
    
    .trust-value {
        font-size: 13px;
    }
}

/* =====================================================
   UTILITY CLASSES
   ====================================================== */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: 0.25rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.pb-5 { padding-bottom: 3rem !important; }

/* =====================================================
   LOADING SPINNER
   ====================================================== */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* =====================================================
   SMOOTH SCROLL BEHAVIOR
   ====================================================== */
html {
    scroll-padding-top: 80px;
}

/* =====================================================
   PRINT STYLES
   ====================================================== */
@media print {
    .top-bar,
    .main-header,
    .sidebar,
    .site-footer,
    .mobile-menu-overlay,
    .search-overlay,
    .notification-bell-btn,
    .back-to-top,
    .trust-indicators-wrapper {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .post-body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a {
        text-decoration: underline;
    }
    
    .post-featured-image {
        max-height: 400px;
        page-break-inside: avoid;
    }
}

/* =====================================================
   ACCESSIBILITY ENHANCEMENTS
   ====================================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .notification-badge {
        border: 3px solid var(--card-bg);
    }
    
    .action-btn:hover {
        background: var(--text-color);
        color: var(--card-bg);
    }
}

/* =====================================================
   CUSTOM SCROLLBAR
   ====================================================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--body-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--light-text);
}

.dark-mode ::-webkit-scrollbar-thumb {
    background: #444;
}

.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* =====================================================
   SELECTION STYLES
   ====================================================== */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* =====================================================
   IMAGE LAZY LOADING PLACEHOLDER
   ====================================================== */
img[loading="lazy"] {
    background: var(--border-color);
    min-height: 200px;
}

/* =====================================================
   TABLE STYLES (for content)
   ====================================================== */
table {
    font-family: Arial, Helvetica, sans-serif;
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
}

td, th {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #ddd;
}

th {
    padding-top: 12px;
    padding-bottom: 12px;
    background-color: #04AA6D;
    color: white;
}

/* =====================================================
   END OF STYLESHEET
   ====================================================== */