 :root {
            --primary: #2C4C93;
            --primary-dark: #1F3A73;
            --bg: #fff;
            --text: #222;
            --footer-bg: #f8fafc;
        }
        [data-theme="dark"] {
            --primary: #90cdf4;
            --primary-dark: #2a4365;
            --bg: #181a1b;
            --text: #f3f4f6;
            --footer-bg: #23272a;
        }
        html, body {
            background: var(--bg);
            color: var(--text);
        }
        /* Reset and Base Styles */
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            min-height: 100vh;
            background: var(--bg);
            color: var(--text);
        }

        /* Header and Logo */
        .logo-container {
            text-align: center;
            margin-top: 4.5rem;
            margin-bottom: 2.5rem;
        }
        .logo-container img {
            height: 3.5rem;
            width: auto;
            max-width: 90vw;
        }
        .logo-container p {
            margin-top: 0.5rem;
            font-size: 0.95rem;
            color: #6b7280;
            font-weight: 300;
        }

        /* Search Section */
        .search-container {
            max-width: 32rem;
            width: 100%;
            margin: 3rem auto 2.5rem auto;
            text-align: center;
            padding: 0 1.5rem;
        }
        .search-container input[type="search"] {
            width: 100%;
            padding: 0.75rem 1rem;
            border: 1px solid #d1d5db;
            border-radius: 9999px;
            font-size: 0.95rem;
            outline: none;
            text-align: center;
            box-sizing: border-box;
        }
        .search-container input[type="search"]:focus {
            border-color: #2C4C93;
            box-shadow: 0 0 0 2px rgba(44, 76, 147, 0.2);
        }
        .search-buttons {
            margin-top: 2rem;
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            flex-wrap: wrap;
        }
        .btn-primary {
            background-color: var(--primary);
            color: #fff;
            padding: 0.5rem 1.5rem;
            border: none;
            border-radius: 0.375rem;
            font-size: 0.95rem;
            cursor: pointer;
            transition: background-color 0.2s, box-shadow 0.2s;
            font-weight: 500;
            box-shadow: 0 1px 4px rgba(44,76,147,0.07);
        }
        .btn-primary:hover {
            background-color: var(--primary-dark);
            box-shadow: 0 2px 8px rgba(44,76,147,0.13);
        }
        .btn-secondary {
            background-color: var(--bg);
            color: var(--primary);
            padding: 0.5rem 1.5rem;
            border: 1px solid #2C4C93;
            border-radius: 0.375rem;
            font-size: 0.95rem;
            cursor: pointer;
            transition: background-color 0.2s, box-shadow 0.2s;
            font-weight: 500;
            box-shadow: 0 1px 4px rgba(44,76,147,0.07);
        }
        .btn-secondary:hover {
            background-color: #f3f4f6;
            box-shadow: 0 2px 8px rgba(44,76,147,0.13);
        }

        /* Education Levels */
        .levels-container {
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
            text-align: center;
            margin-bottom: 3rem;
        }
        .levels-container p {
            font-size: 0.75rem;
            color: #6b7280;
            margin-bottom: 0.5rem;
        }
        .levels-container p a {
            color: #2C4C93;
            text-decoration: underline;
        }
        .level-chips {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            gap: 1rem;
            margin: 0 auto;
            max-width: 100%;
        }
        .level-chip {
            padding: 0.5rem 1.25rem;
            font-size: 0.85rem;
            color: #374151;
            background: none;
            border: 1px solid #d1d5db;
            border-radius: 0.375rem;
            cursor: pointer;
            transition: all 0.2s;
        }
        .level-chip:hover {
            background-color: #e5e7eb;
            border-color: #9ca3af;
        }
        .level-chip.active {
            background-color: #e8f0fe;
            color: #2C4C93;
            border-color: #2C4C93;
        }

        /* Auth Buttons */
        .auth-buttons {
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
            display: flex;
            gap: 0.5rem;
            z-index: 10;
        }
        .auth-buttons a {
            padding: 0.5rem 1rem;
            border-radius: 0.375rem;
            font-size: 0.95rem;
            text-decoration: none;
            display: inline-block;
        }
        .auth-buttons .btn-secondary {
            border: 1px solid #2C4C93;
        }
        .auth-buttons .btn-primary {
            background-color: #2C4C93;
            color: white;
        }
        @media (max-width: 600px) {
            .auth-buttons {
                position: static;
                margin-top: 1.2rem;
                margin-bottom: 0.5rem;
                justify-content: center;
            }
            .logo-container {
                margin-top: 1.2rem;
            }
        }

        /* Version Indicator */
        .version-indicator {
            margin: 0 auto 2.5rem auto;
            background: #f8fafc;
            color: #2C4C93;
            font-size: 0.75rem;
            font-weight: 500;
            padding: 0.25rem 1rem;
            border-radius: 0.75rem;
            box-shadow: 0 1px 4px rgba(44, 76, 147, 0.07);
            opacity: 0.85;
            pointer-events: none;
            text-align: center;
            width: fit-content;
            display: block;
        }

        /* Footer */
        .footer-main {
            background: var(--footer-bg);
            padding: 2rem 0 1.5rem 0;
            color: var(--text);
            text-align: center;
            width: 100%;
        }
        .footer-links, .footer-social {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin-bottom: 1rem;
            flex-wrap: wrap;
        }
        .footer-links a, .footer-social a {
            color: var(--primary);
            text-decoration: none;
            font-weight: 500;
            font-size: 1rem;
            transition: color 0.2s;
            padding: 0.5rem 0.4rem;
        }
        .footer-links a:hover, .footer-social a:hover {
            color: var(--primary-dark);
            text-decoration: underline;
        }
        .footer-social a {
            font-size: 1.3rem;
        }
        .footer-copyright {
            color: #6b7280;
            font-size: 0.85rem;
        }
        .dark-toggle {
            position: fixed;
            bottom: 1.5rem;
            right: 1.5rem;
            background: var(--primary);
            color: #fff;
            border: none;
            border-radius: 50%;
            width: 48px;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            cursor: pointer;
            box-shadow: 0 2px 8px rgba(44,76,147,0.13);
            z-index: 100;
        }
        .dark-toggle:focus {
            outline: 2px solid var(--primary-dark);
        }
        
		.forgot-link {
			display: block;
			text-align: center;
			margin: 1rem auto 0 auto;
		}
		.btn-primary, .btn.btn-info[type="submit"], .btn.g-recaptcha[type="submit"] {
			text-align: center;
		}
		.btn-primary, .btn.btn-info[type="submit"], .btn.g-recaptcha[type="submit"] {
			width: 80% !important;
			display: block;
		}
		.dark-toggle { display: none; }
		
    /* Help icon and modal styles */
    .help-icon-btn {
        background: none;
        border: none;
        color: #2C4C93;
        font-size: 1.5em;
        cursor: pointer;
        margin-left: 0.7em;
        transition: color 0.2s;
    }
    .help-icon-btn:hover {
        color: #1F3A73;
    }
    
        .custom-modal-backdrop {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(44,76,147,0.18);
            z-index: 10000;
            display: none;
        }
        .custom-modal {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: #fff;
            color: #222;
            border-radius: 1em;
            box-shadow: 0 8px 32px rgba(44,76,147,0.18);
            z-index: 10001;
            width: 95vw;
            max-width: 420px;
            padding: 0;
            display: none;
            animation: fadeIn 0.2s;
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translate(-50%, -60%); }
            to { opacity: 1; transform: translate(-50%, -50%); }
        }
        .custom-modal-header {
            padding: 1.1em 1.5em 0.7em 1.5em;
            border-bottom: 1px solid #e5e7eb;
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: #f7f9fc;
            border-radius: 1em 1em 0 0;
        }
        .custom-modal-title {
            font-size: 1.15em;
            font-weight: 600;
            color: #2C4C93;
            display: flex;
            align-items: center;
            gap: 0.5em;
        }
        .custom-modal-close {
            background: none;
            border: none;
            font-size: 1.3em;
            color: #888;
            cursor: pointer;
            transition: color 0.2s;
        }
        .custom-modal-close:hover {
            color: #b91c1c;
        }
        .custom-modal-body {
            padding: 1.2em 1.5em 1.1em 1.5em;
            font-size: 1.08em;
            line-height: 1.7;
        }
        .custom-modal-footer {
            padding: 0.7em 1.5em 1.1em 1.5em;
            text-align: right;
            border-top: 1px solid #e5e7eb;
            background: #f7f9fc;
            border-radius: 0 0 1em 1em;
        }
        .custom-modal-footer button {
            background: #2C4C93;
            color: #fff;
            border: none;
            border-radius: 0.5em;
            padding: 0.5em 1.2em;
            font-size: 1em;
            cursor: pointer;
            transition: background 0.2s;
        }
        .custom-modal-footer button:hover {
            background: #1F3A73;
        }