/* CSS Reset and Custom Properties */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            /* Light Theme Colors */
            --primary-navy: #1e293b;
            --primary-blue: #2563eb;
            --primary-cyan: #06b6d4;
            --accent-teal: #14b8a6;
            --text-dark: #1f2937;
            --text-light: #6b7280;
            --bg-light: #ffffff;
            --bg-gray: #f8fafc;
            --border-light: #e5e7eb;
            --success-green: #10b981;
            --warning-yellow: #f59e0b;
            --error-red: #ef4444;
            
            /* Gradients */
            --gradient-hero: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
            --gradient-accent: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
            
            /* Shadows */
            --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
            --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
            --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
            
            /* Typography */
            --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
        }

        [data-theme="dark"] {
            --primary-navy: #0f172a;
            --primary-blue: #3b82f6;
            --primary-cyan: #22d3ee;
            --accent-teal: #2dd4bf;
            --text-dark: #f9fafb;
            --text-light: #d1d5db;
            --bg-light: #111827;
            --bg-gray: #1f2937;
            --border-light: #374151;
            --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
            --success-green: #10b981;
            --warning-yellow: #f59e0b;
            --error-red: #ef4444;
        }

        body {
            font-family: var(--font-primary);
            line-height: 1.6;
            color: var(--text-dark);
            background-color: var(--bg-light);
            transition: all 0.3s ease;
        }

        /* Skip to Content Link */
        .skip-to-content {
            position: absolute;
            top: -40px;
            left: 0;
            background: var(--primary-blue);
            color: white;
            padding: 0.5rem 1rem;
            text-decoration: none;
            z-index: 9999;
            transition: top 0.3s;
        }

        .skip-to-content:focus {
            top: 0;
        }

        /* Older header/nav CSS removed - see SITE-NAV CONSISTENCY OVERRIDE block below */

        /* Container */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
        }

        /* Hero Section from topics.html */
        .hero-section {
            background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-navy) 100%);
            color: white;
            padding: 4rem 0 3rem;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .hero-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: url('/assets/images/backgrounds/Hero-Topics.webp');
            background-size: cover;
            background-position: center;
            opacity: 0.3;
            z-index: 1;
        }

        .hero-content {
            position: relative;
            z-index: 3;
        }

        .hero-title {
            font-size: clamp(2.5rem, 6vw, 3.5rem);
            font-weight: 700;
            margin-bottom: 0.5rem;
            text-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .hero-description {
            font-size: clamp(1rem, 2vw, 1.1rem);
            opacity: 0.9;
            max-width: 900px;
            margin: 0 auto 2rem;
            line-height: 1.7;
        }

        .status-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: #f39c12;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            margin-bottom: 1.5rem;
            font-size: 0.9rem;
            color: #1e293b;
            border: 2px solid #e67e22;
            font-weight: 700;
            text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
        }

        .status-badge .badge-text {
            font-weight: 700;
            color: #1e293b;
        }

        /* Filter Section */
        .filter-section {
            background: var(--bg-gray);
            padding: 3rem 0;
            border-bottom: 2px solid var(--border-light);
        }

        .community-disclaimer {
            background: var(--bg-light);
            border-left: 4px solid var(--primary-blue);
            padding: 1.5rem;
            margin-bottom: 2rem;
            border-radius: 8px;
        }

        .filter-group {
            margin-bottom: 2rem;
        }

        .filter-label {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 1rem;
            font-size: 1.1rem;
        }

        .filter-options {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
        }

        .filter-btn {
            background: var(--bg-light);
            border: 2px solid var(--border-light);
            padding: 0.6rem 1.2rem;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 0.4rem;
            font-size: 0.9rem;
        }

        .filter-btn:hover {
            border-color: var(--primary-blue);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
        }

        .filter-btn.active {
            background: var(--primary-blue);
            color: white;
            border-color: var(--primary-blue);
        }

        .filter-btn .badge {
            background: rgba(0,0,0,0.1);
            padding: 0.1rem 0.4rem;
            border-radius: 10px;
            font-size: 0.75rem;
            font-weight: 600;
        }

        .filter-btn.active .badge {
            background: rgba(255,255,255,0.3);
        }

        /* Control Buttons */
        .control-buttons {
            display: flex;
            gap: 1rem;
            justify-content: center;
            margin-top: 2rem;
        }

        .btn {
            display: inline-block;
            padding: 0.75rem 1.5rem;
            border-radius: 6px;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            text-align: center;
        }

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

        .btn-primary:hover {
            background: var(--primary-navy);
            transform: translateY(-2px);
        }

        .btn-outline {
            background: transparent;
            color: var(--primary-blue);
            border: 2px solid var(--primary-blue);
        }

        .btn-outline:hover {
            background: var(--primary-blue);
            color: white;
        }

        /* Top 9 Section - Based on index.html layout */
        .top9-section {
            padding: 3rem 0;
            background: var(--bg-gray);
        }

        .top9-section h2 {
            text-align: center;
            font-size: 2.5rem;
            color: var(--primary-navy);
            margin-bottom: 1rem;
        }

        [data-theme="dark"] .top9-section h2 {
            color: var(--primary-cyan);
        }

        .top9-section .sub {
            text-align: center;
            color: var(--text-light);
            margin-bottom: 2rem;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
        }

        .top9-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
        }

        .top9-card {
            background: var(--bg-light);
            border: 1px solid var(--border-light);
            border-radius: 10px;
            padding: 2rem;
            box-shadow: var(--shadow-sm);
            text-align: center;
            transition: transform 0.3s;
        }

        .top9-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-lg);
        }

        .top9-card h3 {
            color: var(--primary-navy);
            margin-bottom: 1rem;
            font-size: 1.2rem;
        }

        [data-theme="dark"] .top9-card h3 {
            color: var(--primary-cyan);
        }

        .top9-card p {
            color: var(--text-light);
            font-size: 0.95rem;
            line-height: 1.5;
            text-align: left;
        }

        .top9-card p strong {
            color: var(--primary-navy);
        }

        [data-theme="dark"] .top9-card p strong {
            color: var(--primary-cyan);
        }

        /* Topics Section */
        .topics-full {
            padding: 3rem 0;
            background: var(--bg-light);
        }

        .category-section {
            margin: 3rem 0;
        }

        .category-header {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 2px solid var(--border-light);
        }

        .category-icon {
            font-size: 2rem;
        }

        .category-title {
            font-size: 1.8rem;
            color: var(--primary-navy);
            margin: 0;
        }

        [data-theme="dark"] .category-title {
            color: var(--primary-cyan);
        }

        .category-count {
            margin-left: auto;
            color: var(--text-light);
            background: var(--bg-gray);
            padding: 0.25rem 0.75rem;
            border-radius: 15px;
            font-size: 0.9rem;
        }

        .topics-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
        }

        .topic-card {
            background: var(--bg-gray);
            border: 1px solid var(--border-light);
            border-radius: 10px;
            padding: 1.5rem;
            box-shadow: var(--shadow-sm);
            transition: all 0.3s ease;
        }

        .topic-card:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-md);
        }

        .topic-card.filtered-out {
            display: none;
        }

        .topic-title {
            font-size: 1.1rem;
            margin: 0.5rem 0;
            color: var(--primary-navy);
        }

        [data-theme="dark"] .topic-title {
            color: var(--primary-cyan);
        }

        .topic-desc {
            font-size: 0.9rem;
            color: var(--text-dark);
            line-height: 1.5;
        }

        .topic-badges {
            margin-bottom: 0.5rem;
        }

        .badge {
            display: inline-block;
            background: rgba(37, 99, 235, 0.12);
            color: var(--primary-blue);
            padding: 0.15rem 0.5rem;
            border-radius: 6px;
            font-size: 0.8rem;
            margin-right: 0.35rem;
        }

        /* Footer - STANDARDIZED COLORS */
        .footer {
            background: #1e293b;  /* Explicit darker navy */
            color: white;
            padding: 3rem 0 1rem;
        }

        [data-theme="dark"] .footer {
            background: #0f1419;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 3rem;
            margin-bottom: 2rem;
        }

        .footer-section h3,
        .footer-section h4 {
            margin-bottom: 1rem;
            color: #4fc3f7;
        }

        .footer-tagline {
            font-style: italic;
            color: #ccc;
            margin-bottom: 1rem;
        }

        .footer-section p {
            color: #ccc;
            margin-bottom: 1.5rem;
            line-height: 1.6;
        }

        .footer-section ul {
            list-style: none;
        }

        .footer-section ul li {
            margin-bottom: 0.5rem;
        }

        .footer-section ul li a {
            color: #ccc;
            text-decoration: none;
            line-height: 1.8;
            transition: color 0.3s ease;
            cursor: pointer;
        }

        .footer-section ul li a:hover {
            color: white;
        }

        .footer-bottom {
            max-width: 1200px;
            margin: 0 auto;
            padding: 1rem 2rem 0;
            border-top: 1px solid #2c5aa0;
            text-align: center;
            color: #ccc;
            font-size: 0.9rem;
        }

        .footer-bottom a {
            color: #4fc3f7;
            text-decoration: none;
        }

        .footer-bottom a:hover {
            color: white;
            text-decoration: underline;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .mobile-menu-button {
                display: block;
            }
            
            .nav-menu {
                display: none;
            }
            
            .nav-menu.mobile-open {
                left: 0;
            }

            .top9-grid,
            .topics-grid {
                grid-template-columns: 1fr;
            }

            .footer-content {
                grid-template-columns: 1fr;
                text-align: center;
            }

            .filter-options {
                display: grid;
                grid-template-columns: 1fr;
            }

            .control-buttons {
                flex-direction: column;
                width: 100%;
            }

            .btn {
                width: 100%;
            }
        }

        @media (max-width: 900px) {
            .top9-grid,
            .topics-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 480px) {
            .header-content {
                padding: 1rem;
            }

            .container {
                padding: 0 1rem;
            }

            .hero-title {
                font-size: 1.75rem;
            }
        }
