/* =====================
   CSS VARIABLES
   ===================== */
:root {
    --primary: #0A3D62;
    --primary-light: #3EADCF;
    --primary-dark: #051F33;
    --accent: #FFD700;
    --accent-dark: #E6C200;
    --white: #FFFFFF;
    --light-bg: #F8FAFC;
    --dark-bg: #0B1120;
    --text: #1E293B;
    --text-light: #64748B;
    --border: #E2E8F0;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================
   RESET & BASE
   ===================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Outfit', sans-serif; color: var(--text); background: var(--white); line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
input, textarea, select, button { font-family: inherit; }

/* =====================
   CONTAINER
   ===================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* =====================
   TOPBAR
   ===================== */
.topbar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar-left { display: flex; gap: 20px; }
.topbar-left span { display: flex; align-items: center; gap: 6px; }
.topbar-left i { color: var(--accent); }
.topbar-right { display: flex; gap: 15px; }
.topbar-right a { color: rgba(255,255,255,0.8); display: flex; align-items: center; gap: 5px; }
.topbar-right a:hover { color: var(--accent); }

/* =====================
   NAVBAR
   ===================== */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}
.navbar.scrolled { 
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md); 
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { font-size: 32px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main { font-size: 20px; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.logo-main strong { color: var(--primary-light); }
.logo-sub { font-size: 10px; font-weight: 700; color: var(--text-light); letter-spacing: 2.5px; text-transform: uppercase; margin-top: -2px; }

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}
.hero-badge {
    animation: pulse 2s infinite;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links li a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}
.nav-links li a:hover { background: var(--light-bg); color: var(--primary); }
.nav-links li a.active { color: var(--primary); font-weight: 600; }

.btn-nav {
    background: var(--primary) !important;
    color: white !important;
    padding: 9px 22px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
}
.btn-nav:hover { background: var(--primary-light) !important; transform: translateY(-1px); }

.btn-admin {
    background: rgba(231,76,60,0.1) !important;
    color: var(--danger) !important;
    border-radius: var(--radius-sm) !important;
}
.btn-admin:hover { background: var(--danger) !important; color: white !important; }

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* =====================
   BUTTONS
   ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}
.btn-primary { background: var(--accent); color: var(--primary-dark); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255,215,0,0.3); }
.btn-secondary { background: var(--primary); color: white; }
.btn-secondary:hover { background: var(--primary-light); transform: translateY(-2px); }
.btn-outline { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.1); }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; }

/* =====================
   HERO
   ===================== */
.hero {
    background: radial-gradient(circle at top right, var(--primary-light), transparent),
                linear-gradient(135deg, var(--dark-bg) 0%, var(--primary) 100%);
    color: white;
    padding: 100px 0 90px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255,215,0,0.06) 0%, transparent 70%);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(21,101,192,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,215,0,0.12);
    border: 1px solid rgba(255,215,0,0.3);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}
.hero h1 { font-size: 44px; font-weight: 800; line-height: 1.2; margin-bottom: 18px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 16px; color: rgba(255,255,255,0.8); margin-bottom: 30px; line-height: 1.8; }
.hero-btns { display: flex; gap: 15px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 35px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); }
.hero-stat .num { font-size: 30px; font-weight: 800; color: var(--accent); display: block; }
.hero-stat .lbl { font-size: 13px; color: rgba(255,255,255,0.65); }

/* Hero Card */
.hero-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
}
.hero-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hero-card-title a { font-size: 12px; color: rgba(255,255,255,0.6); }
.hero-card-title a:hover { color: var(--accent); }
.quiz-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: var(--transition);
    cursor: pointer;
}
.quiz-preview:hover { background: rgba(255,255,255,0.1); transform: translateX(3px); }
.quiz-preview-icon { font-size: 26px; width: 46px; height: 46px; background: rgba(255,255,255,0.08); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.quiz-preview-info { flex: 1; }
.quiz-preview-info strong { display: block; font-size: 14px; margin-bottom: 3px; }
.quiz-preview-info span { font-size: 12px; color: rgba(255,255,255,0.55); }
.quiz-preview-arrow { color: var(--accent); font-size: 12px; }

/* =====================
   STATS BAR
   ===================== */
.stats-bar { background: var(--primary); padding: 28px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-box { color: white; }
.stat-box .num { font-size: 38px; font-weight: 800; color: var(--accent); display: block; line-height: 1; }
.stat-box .lbl { font-size: 14px; color: rgba(255,255,255,0.75); margin-top: 5px; }

/* =====================
   ADS PLACEHOLDER
   ===================== */
.ads-box {
    background: var(--light-bg);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 12px;
    margin: 20px 0;
}

/* =====================
   SECTIONS COMMON
   ===================== */
section { padding: 70px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-tag {
    display: inline-block;
    background: rgba(10,61,98,0.08);
    color: var(--primary);
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.section-header h2 { font-size: 36px; font-weight: 800; color: var(--primary); margin-bottom: 12px; }
.section-header p { font-size: 16px; color: var(--text-light); max-width: 550px; margin: 0 auto; }
.section-header .underline {
    width: 60px; height: 4px;
    background: var(--accent);
    border-radius: 2px;
    margin: 15px auto 0;
}
.view-all-wrap { text-align: center; margin-top: 40px; }
.view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 13px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}
.view-all:hover { background: var(--primary-light); transform: translateY(-2px); }

/* =====================
   CATEGORIES
   ===================== */
.categories-section { background: var(--light-bg); }
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.cat-card {
    background: white;
    border-radius: var(--radius);
    padding: 35px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: inherit;
}
.cat-card:hover { 
    transform: translateY(-10px); 
    box-shadow: var(--shadow-lg); 
    border-color: var(--primary-light);
    background: linear-gradient(to bottom, #FFFFFF, var(--light-bg));
}
.cat-emoji { 
    font-size: 40px; 
    color: var(--primary);
    margin-bottom: 15px; 
    transition: var(--transition);
}
.cat-card:hover .cat-emoji {
    transform: scale(1.1);
    color: var(--primary-light);
}
.cat-card h3 { font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.cat-card .quiz-count { 
    font-size: 12px; 
    color: var(--text-light);
    background: var(--light-bg);
    padding: 4px 12px;
    border-radius: 20px;
}

/* =====================
   QUIZ CARDS
   ===================== */
.quiz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.quiz-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}
.quiz-card:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-lg); 
    border-color: var(--primary-light);
}
.quiz-card-top {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 25px;
    color: white;
    position: relative;
    overflow: hidden;
}
.quiz-card-top::after {
    content: '';
    position: absolute;
    top: -20px; right: -20px;
    width: 80px; height: 80px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.quiz-badge {
    position: absolute;
    top: 12px; right: 12px;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}
.quiz-card-top h3 { font-size: 17px; font-weight: 700; margin-bottom: 5px; padding-right: 70px; }
.quiz-card-top p { font-size: 13px; opacity: 0.75; }
.quiz-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.quiz-meta { display: flex; gap: 15px; margin-bottom: 15px; }
.quiz-meta span { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-light); }
.quiz-meta i { color: var(--primary); }
.btn-start {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 11px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}
.btn-start:hover { background: var(--primary-light); }

/* =====================
   PDF CARDS
   ===================== */
.pdf-section { background: var(--light-bg); }
.pdf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pdf-card {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 18px;
    transition: var(--transition);
    border: 1px solid var(--border);
}
.pdf-card:hover { 
    transform: translateY(-5px); 
    box-shadow: var(--shadow-md); 
    border-color: var(--primary-light);
}
.pdf-icon-box {
    width: 50px; height: 50px;
    background: rgba(231,76,60,0.1);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #E74C3C;
    flex-shrink: 0;
}
.pdf-info { flex: 1; }
.pdf-info h4 { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.pdf-info .pdf-meta { font-size: 12px; color: var(--text-light); margin-bottom: 12px; display: flex; gap: 10px; }
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--primary);
    color: white;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
}
.btn-download:hover { background: var(--primary-light); }

/* =====================
   HOW IT WORKS
   ===================== */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; }
.steps-grid::before {
    content: '';
    position: absolute;
    top: 30px; left: 10%; right: 10%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}
.step-item { text-align: center; position: relative; z-index: 1; }
.step-num {
    width: 60px; height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 800;
    margin: 0 auto 18px;
    box-shadow: 0 4px 15px rgba(10,61,98,0.3);
}
.step-item h3 { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.step-item p { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* =====================
   CTA
   ===================== */
.cta-section {
    background: linear-gradient(135deg, var(--dark-bg), var(--primary));
    color: white;
    text-align: center;
    padding: 80px 0;
}
.cta-section h2 { font-size: 38px; font-weight: 800; margin-bottom: 15px; }
.cta-section h2 span { color: var(--accent); }
.cta-section p { font-size: 17px; color: rgba(255,255,255,0.8); margin-bottom: 35px; }

/* =====================
   FOOTER
   ===================== */
.footer { 
    background: #050A15; 
    color: rgba(255,255,255,0.7); 
    padding: 80px 0 0; 
}
.footer-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr 1fr; 
    gap: 50px; 
    padding-bottom: 50px; 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
}
.footer-logo { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    font-size: 20px; 
    font-weight: 800; 
    color: white; 
    margin-bottom: 20px; 
}
.footer-logo i { color: var(--accent); }
.footer-col p { 
    font-size: 14.5px; 
    line-height: 1.8; 
    margin-bottom: 25px; 
    color: rgba(255,255,255,0.6);
}
.footer-col h4 { 
    font-size: 15px; 
    font-weight: 700; 
    color: white; 
    margin-bottom: 25px; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { 
    font-size: 14px; 
    color: rgba(255,255,255,0.5); 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    transition: var(--transition);
}
.footer-col ul li a:hover { 
    color: var(--accent); 
    transform: translateX(5px);
}
.social-links { display: flex; gap: 12px; }
.social-links a {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 16px;
    transition: var(--transition);
}
.social-links a:hover { 
    background: var(--primary-light); 
    color: white; 
    transform: translateY(-5px);
}
.footer-bottom {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* =====================
   ALERTS
   ===================== */
.alert { padding: 14px 20px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.alert-success { background: rgba(39,174,96,0.1); color: #1B5E20; border-left: 4px solid var(--success); }
.alert-danger { background: rgba(231,76,60,0.1); color: #C0392B; border-left: 4px solid var(--danger); }
.alert-warning { background: rgba(243,156,18,0.1); color: #7D5A00; border-left: 4px solid var(--warning); }

/* =====================
   FORMS
   ===================== */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    background: white;
    transition: var(--transition);
    outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(10,61,98,0.08); }

/* =====================
   PAGE HERO
   ===================== */
.page-hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 55px 0;
    text-align: center;
}
.page-hero h1 { font-size: 38px; font-weight: 800; margin-bottom: 10px; }
.page-hero p { font-size: 16px; opacity: 0.8; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; margin-top: 15px; font-size: 13px; color: rgba(255,255,255,0.6); }
.breadcrumb a { color: var(--accent); }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 1024px) {
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .quiz-grid, .pdf-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-card { display: none; }
    .hero h1 { font-size: 32px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .quiz-grid, .pdf-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid::before { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 25px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .menu-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: white;
        flex-direction: column;
        padding: 15px;
        box-shadow: var(--shadow-lg);
        border-top: 2px solid var(--primary);
    }
    .nav-links.active { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links li a { display: block; padding: 12px 15px; border-radius: var(--radius-sm); }
    .topbar-left { display: none; }
    .hero-stats { gap: 20px; flex-wrap: wrap; }
    .section-header h2 { font-size: 28px; }
    .cta-section h2 { font-size: 28px; }
}

@media (max-width: 480px) {
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-btns { flex-direction: column; }
    .hero-btns .btn { width: 100%; justify-content: center; }
}

/* =====================
   RESULT PAGE STYLES
   ===================== */
.result-hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
    padding: 60px 0 !important;
    color: white;
    text-align: center;
}
.result-summary {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    margin: -50px auto 40px;
    max-width: 800px;
    position: relative;
    z-index: 10;
    border: 1px solid var(--border);
}
.score-card { text-align: center; margin-bottom: 35px; }
.grade-circle {
    width: 100px; height: 100px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; font-weight: 800;
    margin: 0 auto 15px;
    color: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.grade-aplus { background: #27AE60; }
.grade-a { background: #2ECC71; }
.grade-b { background: #F1C40F; }
.grade-c { background: #E67E22; }
.grade-d { background: #7F8C8D; }
.grade-f { background: #E74C3C; }

.score-number { font-size: 42px; font-weight: 800; color: var(--primary); margin-bottom: 5px; }
.percentage { font-size: 16px; font-weight: 600; color: var(--text-light); }

.review-list { max-width: 800px; margin: 0 auto; }
.review-card {
    background: white;
    border-radius: var(--radius-sm);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border-left: 5px solid transparent;
}
.review-card h5 { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 15px; }
.option-item {
    margin-bottom: 8px;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition);
}
.explanation {
    margin-top: 15px;
    padding: 15px;
    background: #F8F9FA;
    border-radius: 8px;
    font-size: 13px;
    border-left: 3px solid var(--primary-light);
}

/* =====================
   ACTIVE QUIZ STYLES
   ===================== */
.quiz-container {
    padding: 60px 0;
    min-height: 80vh;
    background: var(--light-bg);
}
.quiz-header {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    border: 1px solid var(--border);
}
.quiz-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
}
.quiz-title-bar h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}
.timer {
    background: rgba(10, 61, 98, 0.05);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 120px;
    justify-content: center;
    border: 2px solid var(--border);
}
.progress-bar-container {
    height: 10px;
    background: #EEE;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 15px;
}
.progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s ease;
}
.question-count {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 600;
}
.question-slide {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    border: 1px solid var(--border);
    animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.question-text h4 {
    font-size: 20px;
    line-height: 1.5;
    color: var(--text);
    margin-bottom: 30px;
}
.options-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.option-label {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}
.option-label:hover {
    border-color: var(--primary-light);
    background: rgba(21, 101, 192, 0.02);
}
.option-label input {
    margin-right: 15px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}
.option-label.selected {
    border-color: var(--primary);
    background: rgba(10, 61, 98, 0.05);
    box-shadow: 0 4px 15px rgba(10, 61, 98, 0.1);
}
.option-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
}
.quiz-navigation {
    display: flex;
    gap: 20px;
    align-items: center;
}
.btn-success {
    background: var(--success);
    color: white;
}
.btn-success:hover {
    background: #219150;
    transform: translateY(-2px);
}

.scroll-top-btn:hover { background: var(--primary-light); transform: translateY(-5px); }
/* =====================
   AUTH PAGES
   ===================== */
.auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}
.auth-card {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}
.auth-icon {
    font-size: 45px;
    display: block;
    margin-bottom: 12px;
}
.auth-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}
.auth-header p {
    font-size: 14px;
    color: var(--text-light);
}
.auth-header p a {
    color: var(--primary-light);
    font-weight: 600;
}
.input-icon {
    position: relative;
}
.input-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 14px;
}
.input-icon .form-control {
    padding-left: 40px;
}
.toggle-pass {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 14px;
}
.auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
    color: var(--text-light);
    font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.auth-footer-links {
    text-align: center;
}
.auth-footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid var(--primary);
    border-radius: 25px;
    transition: var(--transition);
}
.auth-footer-links a:hover {
    background: var(--primary);
    color: white;
}
.auth-info {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius);
    padding: 40px 30px;
    color: white;
}
.auth-info h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--accent);
}
.auth-info ul { list-style: none; }
.auth-info ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 15px;
    color: rgba(255,255,255,0.9);
}
.auth-info ul li i {
    color: var(--accent);
    font-size: 16px;
    flex-shrink: 0;
}
.checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px !important;
    color: var(--text-light);
    cursor: pointer;
    font-weight: 400 !important;
}
.checkbox-label input { margin-top: 3px; }
.checkbox-label a { color: var(--primary-light); }

@media (max-width: 768px) {
    .auth-wrapper { grid-template-columns: 1fr; }
    .auth-info { display: none; }
}
.page-hero {
    margin-top: 0;
}
/* =====================
   DASHBOARD
   ===================== */
.dash-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.dash-stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 18px;
}
.dash-stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.dash-stat-info { flex: 1; }
.dash-stat-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    display: block;
    line-height: 1;
}
.dash-stat-label {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
    display: block;
}
.dash-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 25px;
}
.dash-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
}
.dash-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    background: var(--light-bg);
}
.dash-card-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.results-table-wrap { overflow-x: auto; }
.results-table {
    width: 100%;
    border-collapse: collapse;
}
.results-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}
.results-table td {
    padding: 13px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.results-table tr:last-child td { border-bottom: none; }
.results-table tr:hover td { background: var(--light-bg); }
.result-cat { margin-right: 6px; }
.result-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
}
.profile-info {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
}
.profile-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 800;
    flex-shrink: 0;
}
.profile-details { flex: 1; }
.profile-details strong {
    display: block;
    font-size: 17px;
    color: var(--primary);
    margin-bottom: 4px;
}
.profile-details span {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 2px;
}
.cat-performance { padding: 20px; }
.perf-item { margin-bottom: 20px; }
.perf-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
}
.perf-bar {
    height: 8px;
    background: var(--light-bg);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4px;
}
.perf-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
}
.perf-item small {
    font-size: 12px;
    color: var(--text-light);
}
.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    padding: 22px;
}
.quick-card {
    background: var(--light-bg);
    border-radius: var(--radius);
    padding: 20px 12px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.quick-card:hover {
    border-color: var(--primary);
    background: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.quick-icon { font-size: 32px; }
.quick-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}
.quick-action {
    font-size: 11px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 1024px) {
    .dash-stats { grid-template-columns: repeat(2, 1fr); }
    .dash-grid { grid-template-columns: 1fr; }
    .quick-access-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .dash-stats { grid-template-columns: repeat(2, 1fr); }
    .quick-access-grid { grid-template-columns: repeat(2, 1fr); }
}
/* =====================
   ABOUT PAGE
   ===================== */
.about-card {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    border: 1px solid var(--border);
}
.about-card h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
}
.about-card p { font-size: 15px; color: #444; line-height: 1.9; }
.about-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 20px;
    margin-bottom: 25px;
}
.about-feature {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--border);
}
.about-icon { font-size: 40px; display: block; margin-bottom: 12px; }
.about-feature h3 { font-size: 17px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.about-feature p { font-size: 14px; color: var(--text-light); line-height: 1.7; }
.about-list { list-style: none; }
.about-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    color: #333;
}
.about-list li:last-child { border-bottom: none; }
.about-list li i { color: var(--success); font-size: 16px; }

/* =====================
   CONTACT PAGE
   ===================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
}
.contact-info-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius);
    padding: 35px;
    color: white;
}
.contact-info-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 25px;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 22px;
}
.contact-icon {
    width: 42px; height: 42px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}
.contact-item strong { display: block; font-size: 14px; color: var(--accent); margin-bottom: 3px; }
.contact-item span { font-size: 13px; color: rgba(255,255,255,0.8); }
.contact-form-card {
    background: white;
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.contact-form-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 25px;
}

/* =====================
   POLICY PAGES
   ===================== */
.policy-card {
    background: white;
    border-radius: var(--radius);
    padding: 50px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    line-height: 1.9;
}
.policy-card h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    margin: 30px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--light-bg);
}
.policy-card h2:first-child { margin-top: 0; }
.policy-card p { font-size: 15px; color: #444; margin-bottom: 10px; }
.policy-card a { color: var(--primary-light); }

@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .policy-card { padding: 25px; }
}

/* =====================
   CATEGORY TABS (PAGES)
   ===================== */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 25px 0 45px;
    padding: 0 10px;
}
.category-tabs .tab {
    padding: 12px 24px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 10px;
}
.category-tabs .tab i {
    font-size: 16px;
    color: var(--primary-light);
    transition: var(--transition);
}
.category-tabs .tab:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.category-tabs .tab:hover i {
    transform: scale(1.2) rotate(10deg);
}
.category-tabs .tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(10, 61, 98, 0.4);
}
.category-tabs .tab.active i {
    color: var(--accent);
}
.filter-section {
    text-align: center;
    margin-bottom: 20px;
}
.search-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto 25px;
    gap: 10px;
}
.search-form input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--border);
    border-radius: 30px;
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}
.search-form input:focus {
    border-color: var(--primary);
}
.search-form .btn {
    border-radius: 30px;
    padding: 12px 25px;
}