/* Articles index page styles — extracted from inline blocks */

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

        :root {
            --primary: #00d4ff;
            --primary-dark: #00a8cc;
            --secondary: #213A5C;
            --accent: #758D93;
            --bg-dark: #0b1220;
            --bg-primary: #0b1220; /* UNIFIED */
            --bg-secondary: #0b1220; /* UNIFIED */
            --bg-gradient-start: #0b1220; /* UNIFIED */
            --bg-gradient-end: #0b1220; /* UNIFIED */
            --card-bg: rgba(255, 255, 255, 0.05);
            --card-border: rgba(255, 255, 255, 0.1);
            --text-primary: #ffffff; /* High contrast */
            --text-secondary: rgba(255, 255, 255, 0.85); /* Better contrast */
        }

        /* Custom Cursor */
        .custom-cursor {
            width: 20px;
            height: 20px;
            border: 2px solid var(--primary);
            border-radius: 50%;
            position: fixed;
            pointer-events: none;
            z-index: 99999;
            transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
            transform: translate(-50%, -50%);
            mix-blend-mode: difference;
        }

        .custom-cursor-dot {
            width: 4px;
            height: 4px;
            background: var(--primary);
            border-radius: 50%;
            position: fixed;
            pointer-events: none;
            z-index: 99998;
            transition: transform 0.05s ease;
            transform: translate(-50%, -50%);
        }

        .custom-cursor.hover {
            width: 50px;
            height: 50px;
            background: rgba(0, 212, 255, 0.1);
            border-color: var(--primary);
        }

        .custom-cursor.link-hover {
            width: 60px;
            height: 60px;
            background: rgba(0, 212, 255, 0.2);
        }

        /* Light mode cursor - remove mix-blend-mode to prevent pink colors */
        [data-theme="light"] .custom-cursor {
            mix-blend-mode: normal !important;
            border-color: #0E2038 !important;
            background: rgba(14, 32, 56, 0.1) !important;
        }

        [data-theme="light"] .custom-cursor-dot {
            background: #0E2038 !important;
        }

        [data-theme="light"] .custom-cursor.hover {
            background: rgba(14, 32, 56, 0.15) !important;
            border-color: var(--primary) !important;
        }

        [data-theme="light"] .custom-cursor.link-hover {
            background: rgba(0, 212, 255, 0.15) !important;
            border-color: var(--primary) !important;
        }

        html {
            background: #0b1220 !important; /* UNIFIED */
            background-color: #0b1220 !important; /* UNIFIED */
        }
        
        body {
            font-family: 'Sansation', sans-serif;
            overflow-x: hidden;
            background: #0b1220 !important; /* UNIFIED */
            background-color: #0b1220 !important; /* UNIFIED */
            color: #ffffff !important; /* High contrast */
            cursor: none;
            position: relative;
            min-height: 100vh;
        }
        
        /* Force text visibility - High contrast */
        body, p, span, li, time, h1, h2, h3, h4, h5, h6 {
            color: #ffffff !important; /* Maximum contrast on #0b1220 */
        }

        /* Animated Background Gradient - UNIFIED #0b1220 */
        .animated-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #0b1220 !important; /* UNIFIED background */
            background-size: 200% 200%;
            animation: gradientShift 15s ease infinite;
            z-index: -2;
        }

        @keyframes gradientShift {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }

        /* Floating Particles */
        .particles {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index: -1;
            pointer-events: none;
        }

        .particle {
            position: absolute;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
            animation: float linear infinite;
            opacity: 0;
        }

        @keyframes float {
            0% {
                transform: translateY(100vh) translateX(0) scale(0);
                opacity: 0;
            }
            10% {
                opacity: 0.7;
            }
            90% {
                opacity: 0.7;
            }
            100% {
                transform: translateY(-100px) translateX(100px) scale(1);
                opacity: 0;
            }
        }

        /* Navigation - Match main portfolio */
        .navbar {
            position: fixed;
            top: 0;
            width: 100%;
            background: rgba(11, 18, 32, 0.9);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            z-index: 10000 !important;
            padding: 1rem 0;
            transition: all 0.3s ease;
            height: 80px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            pointer-events: auto !important;
        }

        .navbar.scrolled {
            background: rgba(11, 18, 32, 0.95);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 4rem;
            height: 100%;
        }

        .nav-logo a {
            font-size: 1.3rem;
            font-weight: 700;
            color: #f4fbff !important;
            text-decoration: none;
            white-space: nowrap;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
        }

        .nav-menu {
            display: flex;
            list-style: none;
            gap: 0.25rem;
            margin: 0;
            padding: 0;
        }

        .nav-menu .nav-item {
            display: flex;
            align-items: center;
            padding: 0 0.3rem;
            margin: 0;
            background: transparent;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            z-index: 1001;
            box-sizing: border-box;
        }

        .nav-link {
            text-decoration: none;
            color: white;
            font-weight: 600;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            padding: 0 0.2rem;
            border-radius: 3px;
            display: block;
            position: relative;
            z-index: 1002;
            cursor: pointer;
        }

        .nav-link:hover {
            color: #00d4ff;
            text-decoration: none;
        }

        .nav-menu .nav-item:hover {
            transform: translateY(-1px);
        }

        .nav-menu .nav-item.active {
            background: rgba(255, 255, 255, 0.15);
            border-radius: 50px;
        }

        .nav-menu .nav-item.active .nav-link {
            color: #00d4ff;
        }

        /* Hamburger Menu */
        .hamburger {
            display: none;
            flex-direction: column;
            cursor: pointer;
            padding: 10px;
            border-radius: 10px;
            background: linear-gradient(135deg, rgba(14,32,56,0.85), rgba(11,18,32,0.9));
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.18);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            z-index: 1001;
            box-shadow: 0 6px 18px rgba(14, 32, 56, 0.35);
            /* Reset button defaults */
            margin: 0;
            font: inherit;
            color: inherit;
            text-align: inherit;
            outline: none;
            /* Prevent scroll on focus/click */
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
        }
        
        .hamburger:focus {
            outline: none;
            /* Prevent scroll on focus */
            scroll-margin: 0;
        }
        
        .hamburger:active {
            outline: none;
        }
        
        /* Prevent any scroll behavior when hamburger is clicked */
        .hamburger:focus-visible {
            outline: none;
        }

        .hamburger:hover {
            background: linear-gradient(135deg, rgba(14,32,56,0.92), rgba(11,18,32,0.96));
            border-color: rgba(255, 255, 255, 0.3);
            transform: translateY(-2px) scale(1.03);
            box-shadow: 0 10px 28px rgba(14, 32, 56, 0.45);
        }

        .hamburger:active {
            transform: scale(0.96);
        }

        .bar {
            width: 22px;
            height: 3px;
            background: linear-gradient(90deg, #5bbcff 0%, #80eaff 50%, #6ee7c8 100%);
            margin: 3px 0;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 2px;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
        }

        .hamburger.active {
            background: linear-gradient(135deg, rgba(14,32,56,0.85), rgba(11,18,32,0.92));
            border-color: rgba(0, 212, 255, 0.45);
            box-shadow: 0 0 24px rgba(0, 212, 255, 0.25);
        }

        .hamburger.active .bar:nth-child(1) {
            transform: rotate(-45deg) translate(-6px, 7px);
            background: linear-gradient(90deg, #00d4ff 0%, #5bbcff 50%, #80eaff 100%) !important;
            box-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
        }

        .hamburger.active .bar:nth-child(2) {
            opacity: 0;
            transform: scaleX(0);
        }

        .hamburger.active .bar:nth-child(3) {
            transform: rotate(45deg) translate(-6px, -7px);
            background: linear-gradient(90deg, #00d4ff 0%, #5bbcff 50%, #80eaff 100%) !important;
            box-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
        }

        .hamburger::before {
            content: '';
            position: absolute;
            inset: -1.5px;
            border-radius: inherit;
            padding: 1.5px;
            background: linear-gradient(135deg, rgba(0,212,255,0.35), rgba(110,231,200,0.25));
            -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            -webkit-mask-composite: xor;
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask-composite: exclude;
            pointer-events: none;
            opacity: 0.6;
            transition: opacity .25s ease, transform .25s ease;
        }

        .hamburger:hover::before { 
            opacity: 1; 
            transform: scale(1.02); 
        }

        .hamburger:active::before { 
            opacity: 1; 
        }

        /* Tap ripple feedback */
        .hamburger::after {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: inherit;
            background: radial-gradient(circle at var(--rx,50%) var(--ry,50%), rgba(255,255,255,0.25), transparent 45%);
            opacity: 0;
            transition: opacity .35s ease;
            pointer-events: none;
        }

        .hamburger:active::after { opacity: 1; }

        /* Hide nav-menu on desktop when hamburger is present */
        @media (min-width: 769px) {
            .nav-menu {
                display: flex;
            }
        }

        /* Mobile Navigation Styles */
        @media (max-width: 768px) {
            /* Prevent body scroll when menu is open
               NOTE: Avoid using position: fixed here, as it can cause the page
               to jump back to the top when the class is added on mobile.
               Scroll locking is handled via overflow + JS touchmove prevention. */
            body.menu-open {
                overflow: hidden !important;
            }

            /* Clip horizontal overflow on <body> only. Putting overflow-x:hidden
               on <html> locks iOS Safari's horizontal panning while pinch-zoomed,
               which traps the article text against the screen edges. */
            body {
                overflow-x: hidden !important;
                width: 100% !important;
                max-width: 100vw !important;
                position: relative !important;
            }

            .navbar {
                overflow-x: hidden !important;
                width: 100% !important;
                max-width: 100vw !important;
                height: 80px !important;
                min-height: 80px !important;
                position: fixed !important;
                top: 0 !important;
                left: 0 !important;
                right: 0 !important;
                box-sizing: border-box !important;
            }
            
            .nav-container {
                gap: 1rem !important;
                padding: 0 16px !important;
                overflow-x: visible !important;
                min-width: 0 !important;
                max-width: 100% !important;
                width: 100% !important;
                box-sizing: border-box !important;
                position: relative !important;
                height: 100% !important;
            }
            
            .nav-logo {
                flex: 1 1 auto !important;
                min-width: 0 !important;
                overflow: hidden !important;
            }
            
            .nav-logo a {
                white-space: nowrap !important;
                overflow: hidden !important;
                text-overflow: ellipsis !important;
                max-width: 100% !important;
                display: block !important;
            }

            .hamburger {
                display: flex !important;
                position: relative !important;
                right: 0 !important;
                z-index: 1001 !important;
                flex-shrink: 0 !important;
                margin-left: auto !important;
            }

            /* Mobile nav menu: force Articles layout across all sections */
            .nav-menu {
                position: fixed !important;
                left: -100% !important;
                top: 0 !important;
                height: 100vh !important;
                min-height: 100vh !important;
                width: 220px !important;
                max-width: 75% !important;
                flex-direction: column !important;
                background: linear-gradient(135deg, 
                    rgba(11, 18, 32, 0.98) 0%, 
                    rgba(14, 32, 56, 0.95) 50%, 
                    rgba(11, 18, 32, 0.98) 100%) !important;
                backdrop-filter: blur(20px) !important;
                -webkit-backdrop-filter: blur(20px) !important;
                transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.4s, opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
                box-shadow: 
                    0 0 0 1px rgba(255, 255, 255, 0.1),
                    0 25px 50px -12px rgba(0, 0, 0, 0.5),
                    0 0 0 1px rgba(255, 255, 255, 0.05) !important;
                z-index: 10001 !important;
                padding: 0 !important;
                overflow: hidden !important;
                border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
                display: flex !important;
                justify-content: flex-start !important;
                align-items: stretch !important;
                padding-top: 3rem !important;
                padding-bottom: 1.5rem !important;
                gap: 0 !important;
                box-sizing: border-box !important;
            }

            .nav-menu {
                visibility: hidden !important;
                opacity: 0 !important;
            }

            .nav-menu.active {
                left: 0 !important;
                visibility: visible !important;
                opacity: 1 !important;
                transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s, opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
            }

            /* Overlay effect using ::before pseudo-element */
            .nav-menu::before {
                content: '';
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: rgba(0, 0, 0, 0.5);
                backdrop-filter: blur(5px);
                -webkit-backdrop-filter: blur(5px);
                z-index: -1;
                opacity: 0;
                transition: opacity 0.3s ease;
                pointer-events: none;
            }

            .nav-menu.active::before {
                opacity: 1;
                pointer-events: auto;
            }

            /* Hide the JavaScript-created overlay - we use ::before instead */
            .nav-menu-overlay {
                display: none !important;
            }

            .nav-menu .nav-item {
                padding: 0 !important;
                margin: 0 !important;
                margin-bottom: 0.1rem !important;
                background: none !important;
                border: none !important;
                border-radius: 0 !important;
                transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
                position: relative !important;
                overflow: visible !important;
                flex-shrink: 1 !important;
                flex-grow: 0 !important;
                flex-basis: auto !important;
                width: 100% !important;
                min-height: 0 !important;
            }
            
            /* Ensure theme toggle is excluded from regular nav-item rules */
            .nav-menu .nav-item:not(.theme-toggle-mobile) {
                flex-grow: 0 !important;
            }

            .nav-menu .nav-item::before {
                content: '';
                position: absolute;
                top: 0;
                left: -100%;
                width: 100%;
                height: 100%;
                background: linear-gradient(90deg, 
                    transparent, 
                    rgba(255, 255, 255, 0.1), 
                    transparent) !important;
                transition: left 0.6s ease !important;
            }

            .nav-menu .nav-item:hover::before {
                left: 100%;
            }

            .nav-menu .nav-link {
                display: flex !important;
                align-items: center !important;
                padding: 0.4rem 0.7rem !important;
                color: rgba(255, 255, 255, 0.85) !important;
                text-decoration: none !important;
                font-weight: 500 !important;
                font-size: 0.85rem !important;
                letter-spacing: 0.2px !important;
                transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
                position: relative !important;
                border-left: 2px solid transparent !important;
                border-radius: 0 6px 6px 0 !important;
                margin-left: 0.4rem !important;
                margin-right: 0.4rem !important;
                z-index: 1 !important;
                min-height: 32px !important;
                max-height: 32px !important;
                box-sizing: border-box !important;
            }

            .nav-menu .nav-item:hover .nav-link {
                color: var(--primary) !important;
                background: rgba(33, 58, 92, 0.1) !important;
                border-left-color: var(--primary) !important;
                transform: translateX(8px) !important;
                box-shadow: 
                    inset 0 0 0 1px rgba(33, 58, 92, 0.2),
                    0 4px 12px rgba(33, 58, 92, 0.15) !important;
            }

            .nav-menu .nav-item:active .nav-link {
                transform: translateX(4px) scale(0.98) !important;
            }

            .nav-menu .nav-item.active .nav-link {
                color: var(--primary) !important;
                background: rgba(33, 58, 92, 0.15) !important;
                border-left-color: var(--primary) !important;
                box-shadow: 
                    inset 0 0 0 1px rgba(33, 58, 92, 0.3),
                    0 4px 12px rgba(33, 58, 92, 0.2) !important;
            }

            .nav-menu .nav-link::after {
                display: none;
            }

            /* Theme toggle button in mobile menu - force to bottom */
            .nav-menu .theme-toggle-mobile {
                margin-top: auto !important;
                flex-shrink: 0 !important;
            }
            
            .nav-menu .theme-toggle-mobile .nav-link {
                margin-top: 0.2rem !important;
                border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
                padding-top: 0.5rem !important;
                padding-bottom: 0.4rem !important;
                min-height: 32px !important;
                max-height: 32px !important;
            }

            /* Light mode mobile nav-menu styling */
            [data-theme="light"] .nav-menu {
                background: linear-gradient(135deg, 
                    rgba(255, 255, 255, 0.98) 0%, 
                    rgba(247, 249, 252, 0.95) 50%, 
                    rgba(255, 255, 255, 0.98) 100%) !important;
                border-right-color: rgba(0, 0, 0, 0.08) !important;
                box-shadow: 
                    0 0 0 1px rgba(0, 0, 0, 0.05),
                    0 25px 50px -12px rgba(0, 0, 0, 0.15),
                    0 0 0 1px rgba(0, 0, 0, 0.02) !important;
            }

            [data-theme="light"] .nav-menu::before {
                background: rgba(255, 255, 255, 0.92) !important;
                backdrop-filter: blur(12px) !important;
                -webkit-backdrop-filter: blur(12px) !important;
            }

            [data-theme="light"] .nav-menu .nav-link {
                color: rgba(11, 18, 32, 0.85) !important;
            }

            [data-theme="light"] .nav-menu .nav-item:hover .nav-link {
                color: var(--primary) !important;
                background: rgba(0, 212, 255, 0.08) !important;
                border-left-color: var(--primary) !important;
                box-shadow: 
                    inset 0 0 0 1px rgba(0, 212, 255, 0.15),
                    0 4px 12px rgba(0, 212, 255, 0.1) !important;
            }

            [data-theme="light"] .nav-menu .nav-item.active .nav-link {
                color: var(--primary) !important;
                background: rgba(0, 212, 255, 0.12) !important;
                border-left-color: var(--primary) !important;
                box-shadow: 
                    inset 0 0 0 1px rgba(0, 212, 255, 0.2),
                    0 4px 12px rgba(0, 212, 255, 0.15) !important;
            }

            [data-theme="light"] .theme-toggle-btn {
                color: rgba(11, 18, 32, 0.85) !important;
            }

            [data-theme="light"] .theme-toggle-btn:hover {
                color: var(--primary) !important;
                background: rgba(0, 212, 255, 0.08) !important;
            }

            [data-theme="light"] .nav-menu .nav-item::before {
                background: linear-gradient(90deg, 
                    transparent, 
                    rgba(0, 212, 255, 0.08), 
                    transparent) !important;
            }
        }

        /* Hero Section */
        .articles-hero {
            margin-top: 80px;
            padding: 6rem 2rem;
            position: relative;
            overflow: hidden;
            z-index: 1;
            pointer-events: auto;
        }
        
        /* Ensure navbar is always on top and clickable */
        .navbar {
            pointer-events: auto !important;
        }
        
        .nav-container {
            pointer-events: auto !important;
        }
        
        .hamburger {
            pointer-events: auto !important;
            cursor: pointer !important;
        }

        .articles-hero::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -20%;
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
            border-radius: 50%;
            animation: pulse 8s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); opacity: 0.5; }
            50% { transform: scale(1.2); opacity: 0.8; }
        }

        .articles-hero {
            background: transparent !important;
            background-color: transparent !important;
        }
        
        .articles-hero h1 {
            font-size: clamp(2.5rem, 5vw, 4rem);
            font-weight: 700;
            margin-bottom: 1.5rem;
            text-align: center;
            background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--secondary) 100%) !important;
            -webkit-background-clip: text !important;
            -webkit-text-fill-color: transparent !important;
            background-clip: text !important;
            position: relative;
            animation: fadeInUp 0.8s ease 0.2s both;
        }

        .articles-hero p {
            font-size: 1.25rem;
            opacity: 0.9;
            line-height: 1.8;
            max-width: 700px;
            text-align: center;
            margin: 0 auto;
            position: relative;
            animation: fadeInUp 0.8s ease 0.4s both;
            color: rgba(255, 255, 255, 0.9) !important;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Category Filter */
        .articles-filter {
            padding: 0;
            position: relative;
            background: transparent !important;
            background-color: transparent !important;
        }

        .filter-buttons {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
        }

        .filter-btn {
            padding: 0.75rem 1.5rem;
            border: 2px solid rgba(0, 212, 255, 0.55);
            background: rgba(8, 14, 26, 0.78);
            color: #ffffff;
            border-radius: 50px;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            font-family: 'Sansation', sans-serif;
            position: relative;
            overflow: hidden;
        }

        .filter-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
            transition: left 0.5s;
        }

        .filter-btn:hover::before {
            left: 100%;
        }

        .filter-btn:hover {
            border-color: rgba(0, 212, 255, 0.6);
            background: rgba(0, 212, 255, 0.1);
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0, 212, 255, 0.2);
            color: #ffffff;
        }

        .filter-btn.active {
            background: linear-gradient(135deg, rgba(0, 212, 255, 0.3) 0%, rgba(0, 212, 255, 0.15) 100%);
            border-color: rgba(0, 212, 255, 0.8);
            color: #ffffff;
            box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
        }

        .filter-btn i {
            font-size: 0.9rem;
        }

        /* Light theme filter section */
        [data-theme="light"] .articles-filter {
            background: #f5f7fa !important;
        }

        /* Light theme filter buttons */
        body[data-theme="light"] .filter-btn,
        html[data-theme="light"] .filter-btn {
            background: rgba(0, 0, 0, 0.05);
            color: rgba(0, 0, 0, 0.8);
            border-color: rgba(0, 0, 0, 0.2);
        }

        body[data-theme="light"] .filter-btn:hover,
        html[data-theme="light"] .filter-btn:hover {
            background: rgba(0, 212, 255, 0.1);
            border-color: rgba(0, 212, 255, 0.5);
            color: rgba(0, 0, 0, 0.9);
        }

        body[data-theme="light"] .filter-btn.active,
        html[data-theme="light"] .filter-btn.active {
            background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 212, 255, 0.1) 100%);
            border-color: rgba(0, 212, 255, 0.6);
            color: rgba(0, 0, 0, 0.9);
        }

        /* Article card hidden state */
        .article-card.hidden {
            display: none;
        }

        /* Articles Listing */
        .articles-listing {
            padding: 4rem 2rem;
            min-height: 60vh;
            position: relative;
            background: transparent !important;
            background-color: transparent !important;
        }

        .articles-container {
            max-width: 1000px;
            margin: 0 auto;
            display: grid;
            gap: 2rem;
        }

        /* Article Card - Enhanced */
        .article-card {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
            background-color: rgba(255, 255, 255, 0.05) !important;
            border-radius: 20px;
            padding: 2.5rem;
            margin-bottom: 2rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            opacity: 0;
            transform: translateY(30px);
            animation: cardFadeIn 0.6s ease forwards;
        }
        
        .article-card p,
        .article-card h2,
        .article-card h3,
        .article-card span:not(.article-category) {
            color: #ffffff !important;
        }

        .article-card:nth-child(1) { animation-delay: 0.1s; }
        .article-card:nth-child(2) { animation-delay: 0.2s; }
        .article-card:nth-child(3) { animation-delay: 0.3s; }
        .article-card:nth-child(4) { animation-delay: 0.4s; }

        @keyframes cardFadeIn {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .article-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(33, 58, 92, 0.1) 100%);
            opacity: 0;
            transition: opacity 0.4s ease;
        }

        .article-card:hover {
            transform: translateY(-8px) scale(1.02);
            border-color: rgba(0, 212, 255, 0.5);
            box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2), 0 0 60px rgba(0, 212, 255, 0.1);
        }

        .article-card:hover::before {
            opacity: 1;
        }

        /* Popularity Badges */
        .article-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.35rem;
            padding: 0.4rem 0.75rem;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            line-height: 1;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-left: 0.75rem;
            vertical-align: middle;
            animation: pulse-badge 2s ease-in-out infinite;
        }

        .article-badge.trending {
            background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
            color: #ffffff;
            box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
        }

        .article-badge.hot {
            background: linear-gradient(135deg, #ff9500 0%, #ff6b00 100%);
            color: #ffffff;
            box-shadow: 0 4px 15px rgba(255, 149, 0, 0.4);
        }

        .article-badge.famous {
            background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
            color: #ffffff;
            box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
        }

        .article-badge.popular {
            background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
            color: #ffffff;
            box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
            animation-name: pulse-badge-famous;
        }

        @keyframes pulse-badge {
            0%, 100% { 
                transform: scale(1);
                box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
            }
            50% { 
                transform: scale(1.05);
                box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
            }
        }

        .article-badge.hot {
            animation-name: pulse-badge-hot;
        }

        @keyframes pulse-badge-hot {
            0%, 100% { 
                transform: scale(1);
                box-shadow: 0 4px 15px rgba(255, 149, 0, 0.4);
            }
            50% { 
                transform: scale(1.05);
                box-shadow: 0 6px 20px rgba(255, 149, 0, 0.6);
            }
        }

        .article-badge.famous {
            animation-name: pulse-badge-famous;
        }

        @keyframes pulse-badge-famous {
            0%, 100% { 
                transform: scale(1);
                box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
            }
            50% { 
                transform: scale(1.05);
                box-shadow: 0 6px 20px rgba(0, 212, 255, 0.6);
            }
        }

        .article-badge.new {
            background: linear-gradient(135deg, #34d399 0%, #059669 100%);
            color: #ffffff;
            box-shadow: 0 4px 15px rgba(52, 211, 153, 0.45);
            animation: pulse-badge-new 2.5s ease-in-out infinite;
        }

        @keyframes pulse-badge-new {
            0%, 100% {
                transform: scale(1);
                box-shadow: 0 4px 15px rgba(52, 211, 153, 0.45);
            }
            50% {
                transform: scale(1.05);
                box-shadow: 0 6px 22px rgba(52, 211, 153, 0.65);
            }
        }

        .article-card.is-new {
            border-color: rgba(52, 211, 153, 0.35);
            box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.12), 0 8px 32px rgba(52, 211, 153, 0.08);
        }

        .article-card.is-new::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: linear-gradient(180deg, #34d399 0%, #059669 50%, transparent 100%);
            border-radius: 20px 0 0 20px;
            pointer-events: none;
        }

        .article-card.is-new:hover {
            border-color: rgba(52, 211, 153, 0.55);
            box-shadow: 0 20px 40px rgba(52, 211, 153, 0.18), 0 0 48px rgba(52, 211, 153, 0.12);
        }

        [data-theme="light"] .article-card.is-new {
            border-color: rgba(5, 150, 105, 0.35);
            box-shadow: 0 0 0 1px rgba(5, 150, 105, 0.1), 0 8px 28px rgba(5, 150, 105, 0.08);
        }

        [data-theme="light"] .article-card.is-new:hover {
            border-color: rgba(5, 150, 105, 0.5);
            box-shadow: 0 16px 36px rgba(5, 150, 105, 0.14);
        }

        .article-badge i {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            line-height: 1;
        }

        .article-header {
            display: flex;
            justify-content: space-between;
            align-items: start;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .article-category {
            display: inline-flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.5rem;
            color: var(--primary) !important;
            font-size: 0.875rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            padding: 0.5rem 1rem;
            background: rgba(0, 212, 255, 0.1) !important;
            background-color: rgba(0, 212, 255, 0.1) !important;
            border-radius: 20px;
            border: 1px solid rgba(0, 212, 255, 0.3);
            transition: all 0.3s ease;
        }

        .article-category .article-badge {
            margin-left: 0;
        }

        .article-card:hover .article-category {
            background: rgba(0, 212, 255, 0.2);
            transform: scale(1.05);
        }

        .article-date {
            color: rgba(255, 255, 255, 0.6) !important;
            font-size: 0.875rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .article-title {
            font-size: clamp(1.5rem, 3vw, 2.25rem);
            font-weight: 700;
            margin-bottom: 1rem;
            line-height: 1.3;
        }

        .article-title a {
            color: #ffffff !important;
            text-decoration: none;
            transition: all 0.3s ease;
            background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%) !important;
            -webkit-background-clip: text !important;
            -webkit-text-fill-color: transparent !important;
            background-clip: text !important;
        }

        .article-card:hover .article-title a {
            background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%) !important;
            -webkit-background-clip: text !important;
            -webkit-text-fill-color: transparent !important;
            background-clip: text !important;
        }

        .article-excerpt {
            font-size: 1.125rem;
            line-height: 1.8;
            opacity: 0.85;
            margin-bottom: 1.5rem;
            color: rgba(255, 255, 255, 0.8) !important;
        }

        .article-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .read-more {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 0.75rem;
            transition: all 0.3s ease;
            padding: 0.75rem 1.5rem;
            background: rgba(0, 212, 255, 0.1);
            border-radius: 25px;
            border: 1px solid rgba(0, 212, 255, 0.3);
        }

        .read-more i {
            transition: transform 0.3s ease;
        }

        .read-more:hover {
            background: rgba(0, 212, 255, 0.2);
            transform: translateX(5px);
            gap: 1rem;
        }

        .read-more:hover i {
            transform: translateX(5px);
        }

        .read-time {
            color: rgba(255, 255, 255, 0.72);
            font-size: 0.875rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .article-meta {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            flex-wrap: wrap;
        }

        .article-footer .article-views {
            display: none;
            align-items: center;
            gap: 0.5rem;
            color: rgba(255, 255, 255, 0.78);
            font-size: 0.875rem;
        }

        .article-footer .article-views.article-views--ready {
            display: inline-flex;
        }

        .article-footer .article-views .views-count {
            font-weight: 600;
            color: rgba(255, 255, 255, 0.92);
        }

        /* Coming Soon Section */
        .coming-soon {
            text-align: center;
            padding: 4rem 2rem;
            color: rgba(255, 255, 255, 0.6) !important;
            position: relative;
            background: transparent !important;
            background-color: transparent !important;
        }
        
        .coming-soon p {
            color: rgba(255, 255, 255, 0.6) !important;
        }
        
        .coming-soon-icon {
            color: rgba(255, 255, 255, 0.5) !important;
        }

        .coming-soon-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
            opacity: 0.5;
            animation: bounce 2s ease-in-out infinite;
        }

        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }

        /* Easter Egg Message */
        #easter-egg-message {
            position: fixed;
            top: 50%;
            left: 50%;
            transition: transform 0.05s ease;
            transform: translate(-50%, -50%);
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: white;
            padding: 1rem 2rem;
            border-radius: 10px;
            font-size: 1.2rem;
            font-weight: 600;
            z-index: 10000;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            text-align: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .easter-egg-visible {
            opacity: 1 !important;
            visibility: visible !important;
            animation: easterEggPop 0.5s ease-out;
        }

        .easter-egg-hidden {
            opacity: 0;
            visibility: hidden;
            transform: translate(-50%, -50%) scale(0.8);
        }

        @keyframes easterEggPop {
            0% {
                transform: translate(-50%, -50%) scale(0.5);
                opacity: 0;
            }
            50% {
                transform: translate(-50%, -50%) scale(1.1);
            }
            100% {
                transform: translate(-50%, -50%) scale(1);
                opacity: 1;
            }
        }

        @media (max-width: 768px) {
            #easter-egg-message {
                font-size: 1rem;
                padding: 0.8rem 1.5rem;
                max-width: 90%;
                word-wrap: break-word;
            }
        }

        @media (max-width: 480px) {
            #easter-egg-message {
                font-size: 0.9rem;
                padding: 0.7rem 1.2rem;
                max-width: 95%;
            }
        }

        /* Footer */
        .footer {
            background: rgba(11, 18, 32, 0.9) !important;
            background-color: rgba(11, 18, 32, 0.9) !important;
            padding: 3rem 2rem;
            text-align: center;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            margin-top: 4rem;
        }

        .footer p {
            color: rgba(255, 255, 255, 0.6) !important;
            margin: 0 0 1rem 0;
        }

        .footer a {
            color: var(--primary) !important;
            text-decoration: none;
            margin: 0 1rem;
            transition: all 0.3s ease;
            display: inline-block;
        }

        .footer a:hover {
            color: var(--accent) !important;
            transform: translateY(-2px);
        }

        /* Responsive */
        @media (max-width: 768px) {
            .nav-menu {
                gap: 1rem;
                flex-wrap: wrap;
            }

            .nav-container {
                padding: 0 1rem;
            }

            .articles-hero {
                padding: 4rem 1.5rem;
            }

            .articles-hero::before {
                animation: pulse 8s ease-in-out infinite;
            }

            .articles-listing {
                padding: 2rem 1rem;
            }

            .article-card {
                padding: 1.5rem;
            }

            body {
                cursor: auto;
            }

            .custom-cursor,
            .custom-cursor-dot {
                display: none;
            }
        }

        /* Cookie Consent Styles */
        .cookie-consent-banner {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(11, 18, 32, 0.9);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            color: #EAF2FF;
            padding: 22px 20px;
            box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35);
            z-index: 10002;
            transform: translateY(100%);
            transition: transform 0.35s ease-in-out;
            border-top: 1px solid rgba(255, 255, 255, 0.12);
        }

        .cookie-consent-banner.show {
            transform: translateY(0);
        }

        /* Prevent banner from showing if preferences are saved */
        .cookie-consent-banner[data-prefs-saved="true"] {
            display: none !important;
            transform: translateY(100%) !important;
            visibility: hidden !important;
            opacity: 0 !important;
        }

        .cookie-consent-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .cookie-consent-text h3 {
            margin: 0 0 10px 0;
            font-size: 1.3rem;
            color: #EAF2FF;
        }

        .cookie-consent-text p {
            margin: 0 0 15px 0;
            line-height: 1.5;
            opacity: 0.9;
            color: #EAF2FF !important;
        }

        .cookie-details summary {
            cursor: pointer;
            color: var(--primary);
            font-weight: 500;
            margin-bottom: 10px;
        }

        .cookie-consent-buttons {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }

        .cookie-btn {
            padding: 12px 24px;
            border: 1px solid rgba(255, 255, 255, 0.14);
            border-radius: 10px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.95rem;
            min-width: 120px;
            color: #EAF2FF;
        }

        .cookie-btn-accept {
            background: linear-gradient(135deg, rgba(14, 32, 56, 0.8), rgba(11, 18, 32, 0.9));
            box-shadow: 0 8px 24px rgba(14, 32, 56, 0.35);
        }

        .cookie-btn-accept:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 32px rgba(14, 32, 56, 0.5);
        }

        .cookie-btn-essential {
            background: rgba(255, 255, 255, 0.06);
        }

        .cookie-btn-essential:hover {
            background: rgba(255, 255, 255, 0.12);
            transform: translateY(-2px);
        }

        .cookie-btn-customize {
            background: rgba(255, 255, 255, 0.08);
        }

        .cookie-btn-customize:hover {
            background: rgba(255, 255, 255, 0.16);
            transform: translateY(-2px);
        }

        .cookie-settings-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 10002;
            padding: 20px;
        }

        .cookie-settings-modal.show {
            display: flex;
        }

        .cookie-settings-content {
            background: rgba(11, 18, 32, 0.96);
            color: #EAF2FF;
            border-radius: 16px;
            max-width: 640px;
            width: 100%;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
            border: 1px solid rgba(255, 255, 255, 0.12);
        }

        .cookie-settings-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 25px 25px 0 25px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            margin-bottom: 20px;
        }

        .cookie-settings-header h3 {
            margin: 0;
            color: #EAF2FF;
            font-size: 1.5rem;
        }

        .close-btn {
            background: none;
            border: none;
            font-size: 2rem;
            cursor: pointer;
            color: #999;
            padding: 0;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.3s ease;
        }

        .close-btn:hover {
            background: rgba(255, 255, 255, 0.08);
            color: #EAF2FF;
        }

        .cookie-settings-body {
            padding: 0 25px;
        }

        .cookie-category {
            margin-bottom: 25px;
            padding: 20px;
            background: rgba(255, 255, 255, 0.04);
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.08);
        }

        .cookie-category-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }

        .cookie-category-header h4 {
            margin: 0;
            color: #EAF2FF;
            font-size: 1.1rem;
        }

        .cookie-toggle {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 24px;
            cursor: pointer;
        }

        .cookie-toggle input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: 0.3s;
            border-radius: 24px;
        }

        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: 0.3s;
            border-radius: 50%;
        }

        .cookie-toggle input:checked + .toggle-slider {
            background-color: var(--accent);
        }

        .cookie-toggle input:checked + .toggle-slider:before {
            transform: translateX(26px);
        }

        .cookie-toggle input:disabled + .toggle-slider {
            background-color: var(--primary);
            opacity: 0.7;
        }

        .cookie-category p {
            margin: 0;
            color: rgba(234, 242, 255, 0.8);
            font-size: 0.9rem;
            line-height: 1.4;
        }

        .cookie-settings-footer {
            padding: 20px 25px 25px 25px;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            text-align: center;
        }

        .cookie-btn-save {
            background: linear-gradient(135deg, rgba(14, 32, 56, 0.8), rgba(11, 18, 32, 0.9));
            color: #EAF2FF;
            padding: 12px 30px;
            font-size: 1rem;
        }

        .cookie-btn-save:hover {
            transform: translateY(-2px);
        }

        @media (max-width: 768px) {
            /* Filter buttons mobile styles */
            .articles-filter {
                padding: 1.5rem 1rem 1rem !important;
            }

            .filter-buttons {
                gap: 0.75rem;
                justify-content: center;
                flex-wrap: wrap;
                padding: 0 0.5rem;
            }

            .filter-btn {
                padding: 0.7rem 1.3rem;
                font-size: 0.875rem;
                white-space: nowrap;
            }

            .filter-btn i {
                font-size: 0.8rem;
            }
        }

        @media (max-width: 480px) {
            /* Extra small mobile screens */
            .articles-filter {
                padding: 1.5rem 0.75rem 1rem !important;
            }

            .filter-buttons {
                gap: 0.6rem;
                padding: 0 0.25rem;
            }

            .filter-btn {
                padding: 0.6rem 1.1rem;
                font-size: 0.8rem;
            }

            .filter-btn i {
                font-size: 0.75rem;
            }

            .article-category {
                font-size: 0.8rem;
                padding: 0.45rem 0.85rem;
            }

            .article-category .article-badge {
                font-size: 0.65rem;
                padding: 0.3rem 0.55rem;
                letter-spacing: 0.35px;
            }

            .article-category .article-badge i {
                font-size: 0.6rem;
            }
        }

        @media (max-width: 768px) {
            /* Badge + category layout on mobile (supports Trending + Popular together) */
            .article-header {
                flex-direction: column !important;
                align-items: flex-start !important;
                gap: 0.75rem !important;
            }
            
            .article-category {
                display: inline-flex !important;
                flex-direction: row !important;
                flex-wrap: wrap !important;
                align-items: center !important;
                gap: 0.35rem 0.5rem !important;
                max-width: 100%;
                position: relative !important;
            }
            
            .article-category .article-badge {
                margin-left: 0 !important;
                margin-top: 0 !important;
                align-self: auto !important;
                flex-shrink: 0;
            }
            
            .cookie-consent-content {
                gap: 15px;
            }
            .cookie-consent-buttons {
                flex-direction: column;
                gap: 10px;
            }
            .cookie-btn {
                width: 100%;
                min-width: auto;
            }
            .cookie-settings-content {
                margin: 10px;
                max-height: 90vh;
            }
        }

        /* Light Theme Overrides */
        [data-theme="light"] {
            --bg-dark: #ffffff;
            --bg-gradient-start: #f7f9fc;
            --bg-gradient-end: #eef2f7;
            --text-primary: #0b1220;
            --text-secondary: rgba(0, 0, 0, 0.65);
            --quote-bg: rgba(0, 212, 255, 0.06);
            --quote-border: rgba(0, 212, 255, 0.25);
        }

        [data-theme="light"] html {
            background: #f7f9fc !important; /* Match hero section */
            background-color: #f7f9fc !important;
        }

        [data-theme="light"] body {
            background: #f7f9fc !important; /* Match hero section */
            background-color: #f7f9fc !important;
            color: #0b1220 !important;
        }

        /* Override any styles.css theme overrides */
        [data-theme="light"] body:not(.clipper-panel):not(.clipper-panel *) {
            background: #f7f9fc !important; /* Match hero section */
            background-color: #f7f9fc !important;
            color: #0b1220 !important;
        }

        [data-theme="light"] p:not(.clipper-panel *):not(.clipper-bubble *),
        [data-theme="light"] span:not(.clipper-panel *):not(.clipper-bubble *),
        [data-theme="light"] li:not(.clipper-panel *):not(.clipper-bubble *),
        [data-theme="light"] td:not(.clipper-panel *):not(.clipper-bubble *),
        [data-theme="light"] th:not(.clipper-panel *):not(.clipper-bubble *),
        [data-theme="light"] time:not(.clipper-panel *):not(.clipper-bubble *) {
            color: #0b1220 !important;
        }

        /* Force article page elements to use correct colors */
        [data-theme="light"] .articles-hero,
        [data-theme="light"] .articles-listing,
        [data-theme="light"] .article-card,
        [data-theme="light"] .article-card *:not(.clipper-panel *):not(.clipper-bubble *) {
            color: #0b1220 !important;
        }

        [data-theme="light"] .navbar {
            background: #ffffff !important;
            border-bottom-color: rgba(0, 0, 0, 0.08) !important;
        }

        [data-theme="light"] .navbar.scrolled {
            background: #ffffff !important;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
        }

        [data-theme="light"] .nav-link {
            color: #0b1220 !important;
            text-shadow: none !important;
        }

        [data-theme="light"] .nav-link:hover {
            color: var(--primary) !important;
        }

        [data-theme="light"] .nav-menu .nav-item.active {
            background: rgba(0, 0, 0, 0.08) !important;
        }

        [data-theme="light"] .nav-menu .nav-item.active .nav-link {
            color: var(--primary) !important;
        }

        [data-theme="light"] .nav-logo a {
            background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-shadow: none !important;
        }

        [data-theme="light"] .article-header {
            border-bottom-color: rgba(0, 0, 0, 0.08);
        }

        [data-theme="light"] .article-subtitle {
            color: rgba(0, 0, 0, 0.7) !important;
        }

        [data-theme="light"] .article-content {
            color: rgba(0, 0, 0, 0.85) !important;
        }

        [data-theme="light"] .article-content p,
        [data-theme="light"] .article-content li,
        [data-theme="light"] .article-content ul,
        [data-theme="light"] .article-content ol {
            color: rgba(0, 0, 0, 0.85) !important;
        }

        [data-theme="light"] .article-content blockquote p,
        [data-theme="light"] .article-content blockquote {
            color: rgba(0, 0, 0, 0.9) !important;
        }

        [data-theme="light"] .article-footer,
        [data-theme="light"] .article-footer p,
        [data-theme="light"] .article-footer strong {
            color: rgba(0, 0, 0, 0.6) !important;
        }

        /* Article card styles for listing page - HIGH SPECIFICITY */
        body[data-theme="light"] .article-card,
        html[data-theme="light"] .article-card {
            background: linear-gradient(135deg, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0.01) 100%) !important;
            background-color: rgba(0, 0, 0, 0.02) !important;
            border-color: rgba(0, 0, 0, 0.08) !important;
        }

        body[data-theme="light"] .article-card p,
        html[data-theme="light"] .article-card p,
        body[data-theme="light"] .article-card h2,
        html[data-theme="light"] .article-card h2,
        body[data-theme="light"] .article-card h3,
        html[data-theme="light"] .article-card h3,
        body[data-theme="light"] .article-card span:not(.article-category),
        html[data-theme="light"] .article-card span:not(.article-category) {
            color: #0b1220 !important;
        }

        [data-theme="light"] .article-card:hover {
            border-color: rgba(0, 212, 255, 0.3) !important;
            box-shadow: 0 20px 40px rgba(0, 212, 255, 0.1), 0 0 60px rgba(0, 212, 255, 0.05);
        }

        body[data-theme="light"] .articles-hero h1,
        html[data-theme="light"] .articles-hero h1 {
            background: linear-gradient(135deg, #0b1220 0%, rgba(11, 18, 32, 0.8) 100%) !important;
            -webkit-background-clip: text !important;
            -webkit-text-fill-color: transparent !important;
            background-clip: text !important;
        }

        body[data-theme="light"] .articles-hero p,
        html[data-theme="light"] .articles-hero p {
            color: rgba(11, 18, 32, 0.7) !important;
        }

        /* CRITICAL: Override article title gradient in light mode */
        [data-theme="light"] .article-card .article-title a {
            color: #0b1220 !important;
            background: none !important;
            background-image: none !important;
            -webkit-background-clip: unset !important;
            -webkit-text-fill-color: #0b1220 !important;
            background-clip: unset !important;
        }

        [data-theme="light"] .article-card:hover .article-title a {
            color: #0b1220 !important;
            background: none !important;
            background-image: none !important;
            -webkit-background-clip: unset !important;
            -webkit-text-fill-color: #0b1220 !important;
            background-clip: unset !important;
        }

        /* CRITICAL: Override article excerpt color in light mode */
        [data-theme="light"] .article-card .article-excerpt {
            color: #0b1220 !important;
            opacity: 0.85 !important;
        }

        /* Badge styling for light mode */
        [data-theme="light"] .article-badge {
            opacity: 0.95;
        }

        [data-theme="light"] .article-badge.trending {
            background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
            color: #ffffff;
            box-shadow: 0 4px 15px rgba(255, 107, 107, 0.5);
        }

        [data-theme="light"] .article-badge.hot {
            background: linear-gradient(135deg, #ff9500 0%, #ff6b00 100%);
            color: #ffffff;
            box-shadow: 0 4px 15px rgba(255, 149, 0, 0.5);
        }

        [data-theme="light"] .article-badge.famous {
            background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
            color: #ffffff;
            box-shadow: 0 4px 15px rgba(0, 212, 255, 0.5);
        }

        [data-theme="light"] .article-badge.popular {
            background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
            color: #ffffff;
            box-shadow: 0 4px 15px rgba(0, 212, 255, 0.5);
        }

        [data-theme="light"] .article-badge.new {
            background: linear-gradient(135deg, #34d399 0%, #059669 100%);
            color: #ffffff;
            box-shadow: 0 4px 15px rgba(5, 150, 105, 0.45);
        }

        [data-theme="light"] .article-card .article-title {
            color: #0b1220 !important;
        }

        [data-theme="light"] .article-date,
        [data-theme="light"] .read-time {
            color: rgba(11, 18, 32, 0.72) !important;
        }

        [data-theme="light"] .article-footer .article-views {
            color: rgba(11, 18, 32, 0.72) !important;
        }

        [data-theme="light"] .article-footer .article-views .views-count {
            color: rgba(11, 18, 32, 0.88) !important;
        }

        [data-theme="light"] .footer {
            background: rgba(255, 255, 255, 0.9) !important;
            border-top-color: rgba(0, 0, 0, 0.08);
        }

        [data-theme="light"] .footer p {
            color: rgba(0, 0, 0, 0.6) !important;
        }

        [data-theme="light"] .coming-soon,
        [data-theme="light"] .coming-soon p {
            color: rgba(0, 0, 0, 0.5) !important;
        }

        [data-theme="light"] .coming-soon-icon {
            color: rgba(0, 0, 0, 0.4) !important;
        }

        [data-theme="light"] .cookie-consent-banner {
            background: rgba(255, 255, 255, 0.9);
            color: #0b1220;
            border-top-color: rgba(0, 0, 0, 0.08);
        }

        [data-theme="light"] .cookie-consent-text h3,
        [data-theme="light"] .cookie-consent-text p {
            color: #0b1220 !important;
        }

        [data-theme="light"] .cookie-settings-content {
            background: rgba(255, 255, 255, 0.96);
            color: #0b1220;
            border-color: rgba(0, 0, 0, 0.08);
            box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
        }

        [data-theme="light"] .close-btn:hover {
            background: rgba(0, 0, 0, 0.06);
            color: #0b1220;
        }

        [data-theme="light"] .back-to-top {
            color: #ffffff !important;
        }

        /* Light mode hamburger styling */
        [data-theme="light"] .hamburger {
            background: linear-gradient(135deg, rgba(247, 249, 252, 0.85), rgba(238, 242, 247, 0.9));
            border-color: rgba(0, 0, 0, 0.15);
        }

        [data-theme="light"] .hamburger:hover {
            background: linear-gradient(135deg, rgba(247, 249, 252, 0.92), rgba(238, 242, 247, 0.96));
            border-color: rgba(0, 0, 0, 0.25);
        }

        [data-theme="light"] .hamburger.active {
            background: linear-gradient(135deg, rgba(247, 249, 252, 0.85), rgba(238, 242, 247, 0.92));
            border-color: rgba(0, 212, 255, 0.35);
        }

        [data-theme="light"] .hamburger .bar {
            background: linear-gradient(90deg, #0b1220 0%, rgba(11, 18, 32, 0.8) 50%, #0b1220 100%);
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
        }

        [data-theme="light"] .hamburger.active .bar:nth-child(1),
        [data-theme="light"] .hamburger.active .bar:nth-child(3) {
            background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
        }

        /* Theme Toggle - Mobile inside menu, Desktop next to hamburger */
        .theme-toggle-mobile {
            display: none;
        }

        .theme-toggle-desktop {
            display: none;
        }

        @media (max-width: 768px) {
            .theme-toggle-mobile {
                display: block !important;
            }
            .theme-toggle-desktop {
                display: none !important;
                visibility: hidden !important;
            }
            .theme-toggle-btn {
                color: rgba(255, 255, 255, 0.9) !important;
                width: 100%;
                text-align: left;
                padding: 0.4rem 0.7rem !important;
                margin: 0 !important;
                display: flex !important;
                align-items: center !important;
                gap: 0.4rem !important;
                font-weight: 500 !important;
                font-size: 0.85rem !important;
                letter-spacing: 0.2px !important;
                border-left: 3px solid transparent !important;
                position: relative !important;
            }
            .theme-toggle-btn i {
                flex-shrink: 0;
            }
            .theme-toggle-btn:hover {
                color: var(--primary) !important;
            }
        }

        @media (min-width: 769px) {
            .theme-toggle-mobile {
                display: none !important;
            }
            .theme-toggle-desktop {
                display: inline-flex !important;
                align-items: center !important;
                gap: 0.5rem !important;
                margin-left: 1rem;
                position: relative;
                z-index: 1;
            }
        }

        [data-theme="light"] .theme-toggle-btn {
            color: #0b1220 !important;
        }

        [data-theme="light"] .theme-toggle-btn:hover {
            color: var(--primary) !important;
        }

        [data-theme="light"] .theme-toggle-btn i {
            color: #0b1220 !important;
        }

        [data-theme="light"] .theme-toggle-btn:hover i {
            color: var(--primary) !important;
        }

        /* Light mode mobile nav-menu styling - defined earlier in file */

        /* CRITICAL: Override any styles.css theme conflicts - must be last */
        html[data-theme="light"],
        body[data-theme="light"] {
            background: #f7f9fc !important; /* Match hero section */
            background-color: #f7f9fc !important;
        }

        /* Force article card text to be dark in light mode - override ALL gradients */
        [data-theme="light"] .article-card .article-title a {
            color: #0b1220 !important;
            background: none !important;
            background-image: none !important;
            -webkit-background-clip: unset !important;
            -webkit-text-fill-color: #0b1220 !important;
            background-clip: unset !important;
        }

        [data-theme="light"] .article-card:hover .article-title a {
            color: #0b1220 !important;
            background: none !important;
            background-image: none !important;
            -webkit-background-clip: unset !important;
            -webkit-text-fill-color: #0b1220 !important;
            background-clip: unset !important;
        }

        [data-theme="light"] .article-card .article-excerpt {
            color: #0b1220 !important;
            opacity: 0.85 !important;
        }

        /* Mobile-specific theme fixes - Ensure all sections match hero background on mobile */
        @media (max-width: 768px) {
            /* Light mode navbar - ensure solid white on mobile */
            [data-theme="light"] .navbar {
                background: #ffffff !important;
            }
            
            [data-theme="light"] .navbar.scrolled {
                background: #ffffff !important;
            }
            
            /* Light mode - all sections match hero */
            [data-theme="light"] .articles-hero,
            [data-theme="light"] .articles-listing,
            [data-theme="light"] .article-card,
            [data-theme="light"] .coming-soon,
            [data-theme="light"] .footer {
                background: #f7f9fc !important;
                background-color: #f7f9fc !important;
            }
            
            /* Dark mode - all sections match hero */
            [data-theme="dark"] .articles-hero,
            html:not([data-theme="light"]) .articles-hero,
            [data-theme="dark"] .articles-listing,
            html:not([data-theme="light"]) .articles-listing,
            [data-theme="dark"] .article-card,
            html:not([data-theme="light"]) .article-card,
            [data-theme="dark"] .coming-soon,
            html:not([data-theme="light"]) .coming-soon,
            [data-theme="dark"] .footer,
            html:not([data-theme="light"]) .footer {
                background: #0b1220 !important;
                background-color: #0b1220 !important;
            }
        }

/* Block 2 */
/* Force article card text to be dark in light mode - override ALL gradients and styles.css */
        [data-theme="light"] .article-card .article-title a {
            color: #0b1220 !important;
            background: none !important;
            background-image: none !important;
            -webkit-background-clip: unset !important;
            -webkit-text-fill-color: #0b1220 !important;
            background-clip: unset !important;
        }

        [data-theme="light"] .article-card:hover .article-title a {
            color: #0b1220 !important;
            background: none !important;
            background-image: none !important;
            -webkit-background-clip: unset !important;
            -webkit-text-fill-color: #0b1220 !important;
            background-clip: unset !important;
        }

        [data-theme="light"] .article-card .article-excerpt {
            color: #0b1220 !important;
            opacity: 0.85 !important;
        }

        [data-theme="light"] .article-card .article-title {
            color: #0b1220 !important;
        }

        [data-theme="light"] .article-card .article-date,
        [data-theme="light"] .article-card .read-time {
            color: rgba(11, 18, 32, 0.72) !important;
        }

        [data-theme="light"] .article-card .article-footer .article-views {
            color: rgba(11, 18, 32, 0.72) !important;
        }

        [data-theme="light"] .article-card .article-footer .article-views .views-count {
            color: rgba(11, 18, 32, 0.88) !important;
        }

        [data-theme="light"] .articles-hero h1 {
            background: linear-gradient(135deg, #0b1220 0%, rgba(11, 18, 32, 0.8) 100%) !important;
            -webkit-background-clip: text !important;
            -webkit-text-fill-color: transparent !important;
            background-clip: text !important;
        }

        [data-theme="light"] .articles-hero p {
            color: rgba(11, 18, 32, 0.7) !important;
        }

/* Block 4 — loading screen (from body) */
        .loading-screen {
            position: fixed;
            inset: 0;
            background: #0b1220;
            z-index: 99999;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
        }

        .loaded .loading-screen {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }

        .loader {
            position: relative;
            width: 120px;
            height: 120px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .loader-ring {
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            border: 1px solid transparent;
        }

        .loader-ring:nth-child(1) {
            border-top-color: rgba(0, 212, 255, 0.8);
            animation: spin 1.5s cubic-bezier(0.68, -0.15, 0.32, 1.15) infinite;
        }

        .loader-ring:nth-child(2) {
            width: 85%;
            height: 85%;
            border-right-color: rgba(117, 141, 147, 0.6);
            animation: spin 2s cubic-bezier(0.68, -0.15, 0.32, 1.15) infinite reverse;
        }

        .loader-ring:nth-child(3) {
            width: 70%;
            height: 70%;
            border-bottom-color: rgba(163, 181, 192, 0.4);
            animation: spin 1.8s cubic-bezier(0.68, -0.15, 0.32, 1.15) infinite;
        }

        .loader-text {
            font-family: 'Sansation', -apple-system, BlinkMacSystemFont, sans-serif;
            font-size: 1.5rem;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.9);
            letter-spacing: 0.1em;
            z-index: 1;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        [data-theme="light"] .loading-screen {
            background: #fafbfc;
        }

        [data-theme="light"] .loader-ring:nth-child(1) {
            border-top-color: rgba(0, 153, 204, 0.8);
        }

        [data-theme="light"] .loader-ring:nth-child(2) {
            border-right-color: rgba(90, 122, 133, 0.6);
        }

        [data-theme="light"] .loader-ring:nth-child(3) {
            border-bottom-color: rgba(26, 35, 50, 0.3);
        }

        [data-theme="light"] .loader-text {
            color: rgba(26, 35, 50, 0.9);
        }

        .loading {
            opacity: 0.7;
            pointer-events: none;
        }

        .loaded {
            opacity: 1;
            pointer-events: auto;
        }
