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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1a1a2e;
    background: #fff;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

.skip-link {
    position: absolute; top: -100px; left: 16px;
    background: #10b981; color: #fff; padding: 10px 18px;
    border-radius: 8px; font-weight: 600; z-index: 10000;
    transition: top 0.2s;
}
.skip-link:focus { top: 10px; }

:focus-visible { outline: 2px solid #10b981; outline-offset: 2px; }
button:focus-visible, a:focus-visible { outline: 2px solid #10b981; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.back-to-top {
    display: inline-flex; margin-left: 12px; color: rgba(255,255,255,0.5);
    transition: color 0.3s;
}
.back-to-top:hover { color: #fff; }

.nav-links > li > .dropdown-toggle,
.nav-links > li > a.dropdown-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 24px 6px 24px 20px; font-size: 15px; font-weight: 600;
    color: #333; background: none; border: none; cursor: pointer;
    font-family: inherit; transition: color 0.2s; white-space: nowrap;
    text-decoration: none;
}
.nav-links > li > .dropdown-toggle:hover,
.nav-links > li > .dropdown-toggle.active,
.nav-links > li > a.dropdown-toggle:hover,
.nav-links > li > a.dropdown-toggle.active {
    color: #10b981;
}
.dropdown-arrow {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 24px 16px 24px 0; background: none; border: none;
    cursor: pointer; color: #999; transition: all 0.2s; font-size: 12px;
}
.dropdown-arrow:hover { color: #10b981; }
.dropdown-arrow i { transition: transform 0.2s; }
.nav-links > li:hover > .dropdown-arrow i,
.nav-links > li:hover > a.dropdown-toggle + .dropdown-arrow i {
    transform: rotate(180deg);
}

/* Header / Navbar */
.site-header {
    background: white;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-top {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 8px 0;
    font-size: 13px;
}

.nav-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-top a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s;
}

.nav-top a:hover { color: white; }

.nav-main {
    padding: 0;
}

.nav-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 24px;
    font-weight: 800;
    color: #1a1a2e;
}

.logo-core {
    color: #10b981;
}

.logo-mcqs {
    color: #fff;
    -webkit-text-stroke: 1.2px #1a1a2e;
    paint-order: stroke fill;
}

.footer-brand .logo-core {
    color: #10b981;
    text-shadow: 0 0 10px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.4);
}

.footer-brand .logo-mcqs {
    color: white;
    -webkit-text-stroke-color: rgba(255,255,255,0.4);
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 800;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
}

.nav-links > li {
    position: relative;
}

.nav-links > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 24px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s;
    white-space: nowrap;
    text-decoration: none;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
    color: #10b981;
    background: rgba(16,185,129,0.05);
}

.nav-links > li > a i {
    font-size: 10px;
    transition: transform 0.3s;
}

.nav-links > li:hover > a i {
    transform: rotate(180deg);
}

.nav-links > li > .dropdown-toggle,
.nav-links > li > a.dropdown-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 24px 6px 24px 20px; font-size: 15px; font-weight: 600;
    color: #333; background: none; border: none; cursor: pointer;
    font-family: inherit; transition: color 0.2s; white-space: nowrap;
    text-decoration: none;
}
.nav-links > li > .dropdown-toggle:hover,
.nav-links > li > .dropdown-toggle.active,
.nav-links > li > a.dropdown-toggle:hover,
.nav-links > li > a.dropdown-toggle.active {
    color: #10b981;
    background: rgba(16,185,129,0.05);
}
.dropdown-arrow {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 24px 16px 24px 0; background: none; border: none;
    cursor: pointer; color: #999; transition: all 0.2s; font-size: 12px;
}
.dropdown-arrow:hover { color: #10b981; }
.dropdown-arrow i { transition: transform 0.2s; }
.nav-links > li:hover > .dropdown-arrow i,
.nav-links > li:hover > a.dropdown-toggle + .dropdown-arrow i {
    transform: rotate(180deg);
}

.nav-links > li .admin-link {
    padding: 24px 20px;
}

.nav-links > li .admin-link a {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.nav-links > li .admin-link a:hover {
    box-shadow: 0 6px 20px rgba(16,185,129,0.4);
    transform: translateY(-2px);
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
    padding: 24px;
    min-width: 520px;
    max-width: 640px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 100;
}

.nav-links > li:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.mega-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
}

.mega-menu-item:hover {
    background: #f5f7fa;
}

.mega-menu-item .icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    flex-shrink: 0;
}

.mega-menu-item h4 {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.3;
}

.mega-menu-item p {
    font-size: 11px;
    color: #999;
    margin: 2px 0 0;
    line-height: 1.3;
}

.mega-footer {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #eee;
    text-align: center;
}

.mega-footer a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #10b981;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.mega-footer a:hover {
    color: #059669;
}

/* Simple Dropdown */
.simple-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: white;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    padding: 6px;
    z-index: 100;
}

.nav-links > li:hover .simple-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}

.simple-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    transition: background 0.15s;
}

.simple-dropdown a:hover {
    background: #f5f7fa;
    color: #10b981;
}

.simple-dropdown a i {
    width: 18px;
    color: #10b981;
    font-size: 14px;
}

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

/* Hero */
.hero {
    padding: 80px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
    position: relative;
}

.hero-stat {
    text-align: center;
}

.hero-stat h3 {
    font-size: 36px;
    font-weight: 800;
    color: #34d399;
}

.hero-stat p {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

/* Sections */
.section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 45px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.section-header p {
    color: #888;
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto;
}

/* Category Cards */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.category-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border: 1px solid rgba(0,0,0,0.04);
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.category-card .cat-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    flex-shrink: 0;
}

.category-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1a1a2e;
}

.category-card p {
    font-size: 13px;
    color: #888;
}

.category-card .quiz-count {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #10b981;
}

/* Quiz Cards */
.quiz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.quiz-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border: 1px solid rgba(0,0,0,0.04);
}

.quiz-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.quiz-card-body {
    padding: 28px;
}

.quiz-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.quiz-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.quiz-card .description {
    font-size: 14px;
    color: #888;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.quiz-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.quiz-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.quiz-meta-item i {
    color: #10b981;
}

.quiz-card-footer {
    padding: 16px 28px;
    background: #fafbfc;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quiz-card-footer .btn {
    padding: 10px 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(16,185,129,0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #10b981;
    border: 2px solid #10b981;
}

.btn-outline:hover {
    background: #10b981;
    color: white;
}

.btn-white {
    background: white;
    color: #10b981;
}

.btn-white:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
}

.btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
}

.btn-success:hover {
    box-shadow: 0 8px 25px rgba(16,185,129,0.4);
    transform: translateY(-2px);
}

.btn-warning {
    background: linear-gradient(135deg, #fc4a1a 0%, #f7b733 100%);
    color: white;
}

.btn-warning:hover {
    box-shadow: 0 8px 25px rgba(252,74,26,0.4);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #ff6a00 100%);
    color: white;
}

.btn-danger:hover {
    box-shadow: 0 8px 25px rgba(238,9,121,0.4);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
    border-radius: 8px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 12px;
}

.btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.25);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success { background: #d4edda; color: #155724; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-info { background: #d1ecf1; color: #0c5460; }
.badge-primary { background: #e0d4f5; color: #5a2d82; }
.badge-easy { background: #d4edda; color: #155724; }
.badge-medium { background: #fff3cd; color: #856404; }
.badge-hard { background: #f8d7da; color: #721c24; }
.badge-mixed { background: #d1ecf1; color: #0c5460; }

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px 0 20px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    background: white;
    color: #333;
    border: 1px solid #e1e5e9;
}

.pagination a:hover {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.pagination .active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
}

.pagination .disabled {
    color: #ccc;
    pointer-events: none;
}

/* Footer */
.site-footer {
    background: linear-gradient(160deg, #0a1f1a 0%, #0f2e24 40%, #0d2920 70%, #091a15 100%);
    color: white;
    padding: 60px 0 30px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle, rgba(16,185,129,0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    z-index: 0;
}

.site-footer::after {
    content: '';
    position: absolute;
    width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(16,185,129,0.1) 0%, transparent 70%);
    top: -200px; left: -100px;
    z-index: 0;
}

.site-footer .container {
    position: relative; z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 15px;
}

.footer-brand p {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
    color: white;
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    transition: all 0.3s;
}

.footer-col ul li a:hover {
    color: #10b981;
    padding-left: 5px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 14px;
    padding: 20px 0 0;
    margin-top: 20px;
    border-top: 1px solid rgba(16,185,129,0.15);
}
.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 16px;
    transition: all 0.3s;
}
.footer-social a:hover {
    background: rgba(16,185,129,0.3);
    color: #10b981;
    transform: translateY(-2px);
}
.footer-bottom {
    padding-top: 25px;
    border-top: 1px solid rgba(16,185,129,0.15);
    text-align: center;
    color: rgba(255,255,255,0.3);
    font-size: 13px;
}

/* Quiz Taking Page */
.quiz-take-container {
    max-width: 800px;
    margin: 40px auto;
}

.quiz-take-header {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 24px;
}

.quiz-take-header h1 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 10px;
}

.quiz-progress {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.quiz-progress span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar .fill {
    height: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.question-card {
    background: white;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

.question-number {
    font-size: 13px;
    font-weight: 700;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.question-text {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 25px;
    line-height: 1.6;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 15px;
}

.option-item:hover {
    border-color: #10b981;
    background: #f8f9ff;
}

.option-item.selected {
    border-color: #10b981;
    background: #eef0ff;
    font-weight: 600;
}

.option-item .option-letter {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    transition: all 0.3s;
}

.option-item.selected .option-letter {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.option-item.correct {
    border-color: #28a745;
    background: #d4edda;
}

.option-item.incorrect {
    border-color: #dc3545;
    background: #f8d7da;
}

.quiz-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
}

/* Timer */
.quiz-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #10b981;
    padding: 12px 20px;
    background: #f0f3ff;
    border-radius: 12px;
}

.quiz-timer.warning {
    color: #dc3545;
    background: #fff0f0;
}

/* Result Page */
.result-container {
    max-width: 700px;
    margin: 60px auto;
    text-align: center;
}

.result-card {
    background: white;
    border-radius: 24px;
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.result-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 25px;
}

.result-icon.pass {
    background: #d4edda;
    color: #28a745;
}

.result-icon.fail {
    background: #f8d7da;
    color: #dc3545;
}

.result-card h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.result-score {
    font-size: 64px;
    font-weight: 800;
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 20px 0;
}

.result-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.result-detail-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 14px;
}

.result-detail-item h3 {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a2e;
}

.result-detail-item p {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 0;
    font-size: 14px;
    color: #888;
}

.breadcrumb a {
    color: #10b981;
    transition: color 0.3s;
}

.breadcrumb a:hover { color: #059669; }

.breadcrumb .separator {
    color: #ccc;
}

/* Empty state */
.empty-frontend {
    text-align: center;
    padding: 80px 20px;
}

.empty-frontend i {
    font-size: 72px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-frontend h2 {
    font-size: 24px;
    color: #666;
    margin-bottom: 10px;
}

.empty-frontend p {
    color: #999;
    font-size: 16px;
}

/* Page Loader */
.site-loader {
    position: fixed;
    inset: 0;
    background: #0f172a;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transition: opacity .5s ease, visibility .5s ease;
}
.site-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.site-loader .ld-logo {
    display: flex;
    align-items: center;
    gap: 0;
    animation: ldPulse 1.5s ease-in-out infinite;
}
.site-loader .ld-logo-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 14px;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 20px rgba(16,185,129,0.3);
}
.site-loader .ld-logo-text {
    font-size: 26px;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    letter-spacing: -.5px;
}
.site-loader .ld-track {
    width: 160px;
    height: 3px;
    background: rgba(255,255,255,.1);
    border-radius: 3px;
    overflow: hidden;
}
.site-loader .ld-bar {
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669, #10b981);
    border-radius: 3px;
    animation: ldSlide 1.2s ease-in-out infinite;
}
@keyframes ldSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}
@keyframes ldPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .7; }
}

/* Mobile Nav */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: #1a1a2e;
    cursor: pointer;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    position: relative;
    z-index: 1002;
}
.mobile-toggle:hover {
    background: #f1f5f9;
}

/* Backdrop Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.45);
    z-index: 998;
    opacity: 0;
    transition: opacity .3s ease;
}
.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
    .mega-menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav-top { display: none; }
    .mobile-toggle { display: flex; }
    
    .nav-main .container { height: 60px; }
    .logo { font-size: 20px; }
    
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100% - 60px);
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        overflow-y: auto;
        z-index: 1001;
        transform: translateX(-100%);
        transition: transform .3s cubic-bezier(.4,0,.2,1);
        display: flex;
    }
    .nav-links.active { transform: translateX(0); }
    
    .nav-links > li > a {
        padding: 14px 24px;
        font-size: 15px;
        font-weight: 500;
        color: #334155;
        border-bottom: 1px solid #f1f5f9;
        transition: background .15s, color .15s;
        justify-content: flex-start;
    }
    .nav-links > li > a:hover,
    .nav-links > li > a.active {
        background: #f8fafc;
        color: #10b981;
    }

    .nav-links > li > .dropdown-toggle,
    .nav-links > li > a.dropdown-toggle {
        padding: 14px 24px;
        font-size: 15px;
        font-weight: 500;
        color: #334155;
        border-bottom: 1px solid #f1f5f9;
        transition: background .15s, color .15s;
        justify-content: flex-start;
        cursor: pointer;
        width: auto;
        flex: 1;
    }
    .nav-links > li > .dropdown-arrow {
        padding: 14px 24px 14px 0;
        border-bottom: 1px solid #f1f5f9;
    }
    .nav-links > li > .dropdown-toggle:hover,
    .nav-links > li > .dropdown-toggle.active,
    .nav-links > li > a.dropdown-toggle:hover,
    .nav-links > li > a.dropdown-toggle.active {
        background: #f8fafc;
        color: #10b981;
    }
    .nav-links > li:last-child > a { border-bottom: none; }
    
    .nav-links > li .simple-dropdown {
        position: static;
        transform: none;
        min-width: auto;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        pointer-events: all;
        border-top: none;
        box-shadow: none;
        background: #f8fafc;
        margin: 0;
        display: none;
        padding: 4px 0;
        border-bottom: 1px solid #f1f5f9;
    }

    .nav-links > li.has-dropdown.open .simple-dropdown {
        display: block;
    }

    .nav-links > li .simple-dropdown a {
        padding: 11px 24px 11px 40px;
        font-size: 14px;
        color: #475569;
        border-radius: 0;
    }
    .nav-links > li .simple-dropdown a:hover {
        background: #eef2ff;
        color: #10b981;
    }
    
    .nav-links > li > .dropdown-arrow i.fa-chevron-down {
        font-size: 10px;
        transition: transform .25s;
    }
    .nav-links > li.has-dropdown.open > .dropdown-arrow i.fa-chevron-down {
        transform: rotate(180deg);
    }

    .mega-menu {
        position: static;
        transform: none;
        min-width: auto;
        border-radius: 12px;
        display: none;
        border-top: none;
    }
    
    .mega-menu-grid { grid-template-columns: 1fr; }
    
    .hero-stats { gap: 20px; flex-wrap: wrap; }
    .hero-stat h3 { font-size: 28px; }
    
    .footer-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: 1fr; }
    .quiz-grid { grid-template-columns: 1fr; }
    .result-details { grid-template-columns: 1fr; }
}

/* Ad Containers */
.ad-container { margin: 20px auto; text-align: center; max-width: 728px; overflow: visible; padding: 0 16px; }
.ad-label { font-size: 10px; color: #aaa; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; font-weight: 500; }
.ad-label i { margin-right: 3px; }
.ad-content { overflow: visible; border-radius: 8px; max-width: 100%; line-height: normal; min-height: 20px; }
.ad-content img { max-width: 100% !important; height: auto !important; display: block !important; margin: 0 auto !important; border-radius: 8px; }
.ad-content iframe { max-width: 100% !important; border: none; }
.ad-content ins.adsbygoogle { display: block !important; max-width: 100% !important; }
.ad-header { padding: 10px 0; }
.ad-between_content { margin: 30px auto; padding: 10px 0; }
.ad-sidebar { margin: 16px 0; }
.ad-inline { margin: 20px auto; }
.ad-footer { margin: 0 auto; padding: 10px 0; }
@media (max-width: 768px) {
    .ad-container { max-width: 100%; padding: 0 12px; }
}

.pdf-link { display: inline-flex; align-items: center; gap: 8px; margin: 6px 0; padding: 8px 16px 8px 12px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; color: #b91c1c; font-weight: 600; font-size: 14px; text-decoration: none; transition: all .2s; }
.pdf-link:hover { background: #fee2e2; border-color: #fca5a5; box-shadow: 0 1px 4px rgba(220,38,38,0.1); }
.pdf-link::before { content: 'PDF'; display: inline-block; padding: 3px 7px; background: #dc2626; color: #fff; border-radius: 5px; font-size: 10px; font-weight: 800; letter-spacing: .5px; line-height: 1; margin-right: 4px; }
