
        @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

        /* ===== VARIABLES ===== */
        :root {
            /* Colors */
         /* Colors */
            --primary-color: #fd3132;
            --primary-hover: #d50404;
            --primary-light: rgba(253, 49, 50, 0.1);
            --secondary-color: #2a3d66;
            --secondary-hover: #16274b;
            --secondary-light: rgba(42, 61, 102, 0.1);
            --text-color: #333333;
            --text-light: #666666;
            --white: #ffffff;
            --light-gray: #f8f9fa;
            --mid-gray: #e9ecef;
            --dark-gray: #adb5bd;
            --success-color: #10B981;
            --error-color: #EF4444;
            --warning-color: #F59E0B;
            --info-color: #06B6D4;
            
            /* Typography */
            --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            --font-size-sm: 0.875rem;
            --font-size-base: 1rem;
            --font-size-lg: 1.125rem;
            
        
            /* Shadows */
            --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
            --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
            --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
            
            /* Border Radius */
            --radius-sm: 4px;
            --radius-md: 8px;
            --radius-lg: 12px;
            --radius-full: 999px;
            
            /* Transitions */
            --transition: all 0.3s ease;
            
            /* Typography */
            --h1-size: 2.5rem;
            --h2-size: 2rem;
            --h3-size: 1.5rem;
            --h4-size: 1.25rem;
            --body-size: 1rem;
            --small-size: 0.875rem;
            --smaller-size: 0.75rem;
            
                        /* Typography */
            --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            --font-size-sm: 0.875rem;
            --font-size-base: 1rem;
            --font-size-lg: 1.125rem;
            
            
            /* Spacing */
            --header-height: 70px;
            --border-radius: 12px;
            --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
            --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
        }

        /* ===== RESET ===== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: var(--font-family);
            background-color: var(--light-gray);
            color: var(--text-color);
            font-size: var(--font-size-base);
            overflow-x: hidden;
            padding-top: var(--header-height);
        }
        /* Header Styles */
        header {
            background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
            color: var(--white);
            height: var(--header-height);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 2rem;
            box-shadow: var(--shadow);
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
        }
        
        .header-left {
            display: flex;
            align-items: center;
            gap: 3rem;
        }
        
        .logo {
            color: var(--white);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            font-weight: 700;
            font-size: 1.25rem;
            transition: all 0.3s;
        }
        
        .logo:hover {
            transform: scale(1.05);
            color: var(--white);
        }
        
        .logo i {
            font-size: 1.75rem;
        }
        
        header nav {
            display: flex;
            gap: 0.5rem;
        }
        
        header nav a {
            color: var(--white);
            text-decoration: none;
            padding: 0.5rem 1.25rem;
            border-radius: 8px;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: 500;
            transition: all 0.3s;
            font-size: var(--font-size-sm);
        }
        
        header nav a:hover,
        header nav a.active {
            background: rgba(255, 255, 255, 0.2);
        }
        
        .header-right {
            display: flex;
            gap: 0.75rem;
        }
        
        .btn-share,
        .btn-print,
        .btn-exit {
            color: var(--white);
            background: rgba(255, 255, 255, 0.15);
            border: 1px solid rgba(255, 255, 255, 0.2);
            padding: 0.5rem 1rem;
            border-radius: 8px;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: 500;
            transition: all 0.3s;
            font-size: var(--font-size-sm);
        }
        
        .btn-share:hover,
        .btn-print:hover {
            background: rgba(255, 255, 255, 0.25);
            color: var(--white);
        }
        
        .btn-exit:hover {
            background: var(--white);
            color: var(--primary-color);
        }

        /* Mobile Menu */
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            font-size: 1.5rem;
            color: var(--text-color);
            cursor: pointer;
        }

        .mobile-menu {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: var(--white);
            border-top: 1px solid var(--border-color);
            box-shadow: var(--shadow-md);
            z-index: 99;
        }

        .mobile-menu.active {
            display: block;
        }

        .mobile-nav-links {
            list-style: none;
            padding: 20px;
        }

        .mobile-nav-links li {
            margin-bottom: 15px;
        }

        .mobile-nav-links .nav-link {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 16px;
            border-radius: var(--radius-md);
            font-size: 1rem;
        }

        .mobile-tab-section {
            border-top: 1px solid var(--border-color);
            padding: 20px;
            background: var(--light-gray);
        }

        .mobile-tab-title {
            font-size: var(--small-size);
            font-weight: 600;
            color: var(--text-light);
            margin-bottom: 15px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .mobile-tabs {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .mobile-tab {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 16px;
            text-decoration: none;
            color: var(--text-color);
            font-weight: 500;
            border-radius: var(--radius-md);
            transition: var(--transition);
            background: var(--white);
            border: 1px solid var(--border-color);
        }

        .mobile-tab:hover {
            color: var(--primary-color);
            background: var(--primary-light);
            border-color: var(--primary-color);
        }

        .mobile-tab.active {
            color: var(--white);
            background: var(--primary-color);
            border-color: var(--primary-color);
        }

        .mobile-tab i {
            font-size: 1.1rem;
        }

        /* ===== TAB NAVIGATION ===== */

        /* ===== MAIN CONTENT ===== */
        .main-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 20px;
        }

        .page-header {
            text-align: center;
            margin-bottom: 40px;
        }

        .page-header h1 {
            font-size: var(--h1-size);
            font-weight: 700;
            color: var(--text-color);
            margin-bottom: 15px;
        }

        .page-header p {
            color: var(--text-light);
            font-size: 1.125rem;
            max-width: 600px;
            margin: 0 auto;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 12px 24px;
            border-radius: var(--radius-full);
            text-decoration: none;
            font-weight: 600;
            transition: var(--transition);
            border: 2px solid transparent;
            cursor: pointer;
            font-size: var(--body-size);
        }

        .btn-primary {
            background: var(--primary-color);
            color: var(--white);
        }

        .btn-primary:hover {
            background: var(--primary-hover);
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }

        .btn-outline {
            background: transparent;
            color: var(--primary-color);
            border-color: var(--primary-color);
        }

        .btn-outline:hover {
            background: var(--primary-color);
            color: var(--white);
        }

        /* ===== TESTS GRID ===== */
        .tests-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 30px;
            margin-bottom: 50px;
        }

        .test-card {
            background: var(--white);
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: var(--shadow-md);
            transition: var(--transition);
            border: 1px solid var(--border-color);
        }

        .test-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-lg);
        }

        .test-image {
            position: relative;
            height: 200px;
            background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-color) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .test-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .default-image {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        }

        .default-image i {
            font-size: 4rem;
            color: var(--white);
            opacity: 0.8;
        }

        .test-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            background: var(--primary-color);
            color: var(--white);
            padding: 6px 12px;
            border-radius: var(--radius-full);
            font-size: var(--smaller-size);
            font-weight: 600;
        }

        .test-info {
            padding: 25px;
        }

        .test-title {
            font-size: var(--h4-size);
            font-weight: 600;
            color: var(--text-color);
            margin-bottom: 15px;
            line-height: 1.4;
        }

        .test-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 20px;
        }

        .test-meta span {
            display: flex;
            align-items: center;
            gap: 6px;
            color: var(--text-light);
            font-size: var(--small-size);
        }

        .test-meta i {
            color: var(--primary-color);
        }

        .test-categories {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 10px;
        }

        .test-category {
            background: var(--primary-light);
            color: var(--primary-color);
            padding: 6px 12px;
            border-radius: var(--radius-full);
            font-size: var(--small-size);
            font-weight: 600;
        }

        .questions-count {
            display: flex;
            align-items: center;
            gap: 6px;
            color: var(--text-light);
            font-size: var(--small-size);
            font-weight: 500;
        }

        .test-buttons {
            display: flex;
            gap: 12px;
        }

        .test-btn {
            flex: 1;
            justify-content: center;
            font-size: var(--small-size);
        }

        /* ===== PAGINATION ===== */
        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            margin-top: 50px;
        }

        .page-btn {
            background: var(--white);
            border: 1px solid var(--border-color);
            color: var(--text-color);
            padding: 10px 15px;
            border-radius: var(--radius-md);
            cursor: pointer;
            transition: var(--transition);
            font-weight: 500;
            text-decoration: none;
        }

        .page-btn:hover:not(:disabled) {
            background: var(--primary-color);
            color: var(--white);
            border-color: var(--primary-color);
        }

        .page-btn.active {
            background: var(--primary-color);
            color: var(--white);
            border-color: var(--primary-color);
        }

        .page-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* ===== NO RESULTS ===== */
        .no-results {
            text-align: center;
            padding: 80px 20px;
            grid-column: 1 / -1;
        }

        .no-results i {
            font-size: 4rem;
            color: var(--text-light);
            margin-bottom: 20px;
        }

        .no-results h3 {
            font-size: var(--h3-size);
            color: var(--text-color);
            margin-bottom: 10px;
        }

        .no-results p {
            color: var(--text-light);
        }

        /* ===== LOADING OVERLAY ===== */
        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.9);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .spinner {
            width: 50px;
            height: 50px;
            border: 4px solid var(--border-color);
            border-top: 4px solid var(--primary-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        /* ===== ANIMATIONS ===== */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* ===== RESPONSIVE DESIGN ===== */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }

            .mobile-menu-btn {
                display: block;
            }

            .header-tabs {
                display: none;
            }

            .header-left {
                gap: 15px;
            }

            .page-header h1 {
                font-size: 2rem;
            }

            .page-header p {
                font-size: 1rem;
            }

            .tests-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .test-meta {
                justify-content: space-between;
            }

            .test-buttons {
                flex-direction: column;
            }

            .main-content {
                padding: 20px 15px;
            }
        }

        @media (max-width: 480px) {
            .header-container {
                padding: 0 15px;
                height: 70px;
                position: relative;
            }

            .header-left {
                width: auto;
                justify-content: flex-start;
            }

            .test-info {
                padding: 20px;
            }
        }

    
        /* Ad Container Styles */
        .ad-container {
            margin: 30px auto;
            text-align: center;
            min-height: 100px;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .ad-container.top-ad {
            margin: 20px auto 30px;
            background: #f8f9fa;
            padding: 15px;
            border-radius: 8px;
        }
        
        .ad-container.mid-ad {
            margin: 40px auto;
            padding: 20px 0;
            border-top: 1px solid #e0e0e0;
            border-bottom: 1px solid #e0e0e0;
        }
        
        .ad-container.bottom-ad {
            margin: 40px auto 20px;
        }
        
        .ad-label {
            font-size: 11px;
            color: #999;
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        /* Responsive ad spacing */
        @media (max-width: 768px) {
            .ad-container {
                margin: 20px auto;
            }
            
            .ad-container.top-ad {
                margin: 15px auto 20px;
                padding: 10px;
            }
            
            .ad-container.mid-ad {
                margin: 25px auto;
                padding: 15px 0;
            }
        }
    