/* =====================================================
   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;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -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: 'Inter', 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;
}

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

/* =====================================================
   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%); }
}

/* FIXED: 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
   ===================================================== */
.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;
}

/* 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);
}

/* FIXED: 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;
}

/* =====================================================
   SEARCH OVERLAY
   ===================================================== */
.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);
}

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

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

/* =====================================================
   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 CATEGORIES SECTION
   ====================================================== */
.latest-categories-section {
    margin: 30px 0;
    padding: 20px 0;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--box-shadow-light);
}

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

.latest-module {
    position: relative;
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.latest-module:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.latest-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

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

.latest-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.latest-module:hover .latest-image img {
    filter: grayscale(0%);
}

.latest-content {
    padding: 15px;
}

.latest-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 600;
}

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

.latest-content p:last-child {
    margin-bottom: 0;
}

/* =====================================================
   FEATURED SECTION DESIGN
   ====================================================== */
.featured-section-new {
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 40px;
}

.featured-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    min-height: 500px;
}

/* Main Featured Post (Left Side) */
.main-featured-new {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--card-bg);
}

.main-featured-new a {
    display: block;
    height: 100%;
    position: relative;
}

.main-featured-new img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-featured-new:hover img {
    transform: scale(1.05);
}

.main-featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    color: #fff;
    border-radius: 0 0 8px 8px;
}

.main-featured-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.main-featured-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Sub Featured Grid (Right Side) */
.sub-featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 1fr);
    gap: 15px;
}

.sub-featured-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--card-bg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sub-featured-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.sub-featured-item a {
    display: block;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.sub-featured-item img {
    width: 100%;
    height: 100%;
    min-height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sub-featured-item:hover img {
    transform: scale(1.1);
}

.sub-featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
}

.sub-featured-item h3 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Category Tags */
.featured-category-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 12px;
    margin-bottom: 8px;
    backdrop-filter: blur(10px);
}

/* =====================================================
   LATEST POSTS WIDGET
   ====================================================== */
.latest-posts-widget {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.latest-posts-widget .widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.latest-posts-list {
    list-style: none;
}

.latest-posts-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.latest-posts-list li:last-child {
    border-bottom: none;
}

.latest-posts-list a {
    font-size: 15px;
}

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

.section-title a {
    font-size: 24px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
    display: inline-block;
}

.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;
}

.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: cover;
}

.news-card-content {
    padding: 20px;
}

.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;
}

.news-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

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

/* =====================================================
   4-COLUMN CATEGORY GRID STYLES
   ====================================================== */
.category-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.category-grid-item {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.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); /* Red color for title */
    text-decoration: none;
    display: flex;
    align-items: center;
}

.category-grid-title a:hover {
    color: #a03024; /* Darker red on hover */
}

.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: cover;
    border-radius: 5px;
    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-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--heading-color);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    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;
}

/* FIXED: 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;
}

/* =====================================================
   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
   ===================================================== */
@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: 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; /* Change to relative to show mobile nav */
    }
    
    .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;
    }
    
    .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;