/* ==================== */
/* CSS Variables & Reset */
/* ==================== */
:root {
    /* Vibrant Cyber-Tech Gradients */
    --primary-gradient: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    --secondary-gradient: linear-gradient(135deg, #ff007a 0%, #7c3aed 100%);
    --accent-gradient: linear-gradient(135deg, #00e676 0%, #14b8a6 100%);
    --dark-gradient: radial-gradient(circle at top right, #1a1c2c 0%, #0a0b10 100%);
    
    /* Core Colors */
    --primary-color: #00d2ff;
    --secondary-color: #7c3aed;
    --accent-color: #14b8a6;
    --success-color: #00e676;
    --danger-color: #ff1744;
    --warning-color: #ff9100;
    --info-color: #0ea5e9;
    
    /* Dark Theme & Glass Basics */
    --bg-dark: #0a0b10;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-light: #94a3b8;
    --white: #ffffff;
    
    /* Upgraded Shadows & Structure */
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --hover-glow: 0 10px 30px -10px rgba(0, 210, 255, 0.4);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    background: var(--bg-dark);
    background-image: var(--dark-gradient);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
}

/* ==================== */
/* Navigation */
/* ==================== */
.navbar {
    background: rgba(10, 11, 16, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.6rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 60px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-text {
    background: var(--primary-gradient);
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 500;
}

.nav-link:hover {
    background: var(--glass-bg);
    color: var(--primary-color);
}

.nav-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 0.6rem 1.5rem;
    color: var(--text-main);
}

.nav-btn:hover {
    background: var(--primary-gradient);
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--hover-glow);
}

.register-btn {
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
}

.logout-btn {
    background: rgba(255, 23, 68, 0.2);
    color: var(--danger-color);
    border-color: rgba(255, 23, 68, 0.3);
}

.logout-btn:hover {
    background: var(--danger-color);
    color: var(--white);
    box-shadow: 0 10px 30px -10px rgba(255, 23, 68, 0.5);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-main);
    border-radius: 3px;
    transition: var(--transition);
}

/* ==================== */
/* Glassmorphism Cards (Applied Everywhere) */
/* ==================== */
.card, .form-card, .feature-card, .stat-card, .quiz-card, 
.quick-link-card, .recent-activity, .category-card, 
.question-palette, .result-card,  
.admin-stat-card, .admin-action-card, .attempt-card, .quiz-info-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 2rem;
    transition: var(--transition);
    color: var(--text-main);
}
/* ==================== */
/* 🚀 AI-LEVEL RESOURCE CARDS */
/* ==================== */

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* CARD BASE */
.resource-card {
    position: relative;
    padding: 2rem;
    background: linear-gradient(
        145deg,
        rgba(255,255,255,0.05),
        rgba(255,255,255,0.01)
    );
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    backdrop-filter: blur(18px);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

/* 🔥 GLOW BORDER EFFECT */
.resource-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 18px;
    background: linear-gradient(
        120deg,
        transparent,
        var(--primary-color),
        transparent
    );
    opacity: 0;
    transition: 0.4s;
    z-index: 0;
}

.resource-card:hover::before {
    opacity: 0.4;
}

/* INNER CONTENT ABOVE GLOW */
.resource-card > * {
    position: relative;
    z-index: 1;
}

/* HOVER */
.resource-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(0,210,255,0.4);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

/* ==================== */
/* ICON */
/* ==================== */
.resource-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;

    background: linear-gradient(
        135deg,
        rgba(0,210,255,0.15),
        rgba(124,58,237,0.15)
    );

    font-size: 1.5rem;
    color: var(--primary-color);

    transition: var(--transition);
}

.resource-card:hover .resource-icon {
    transform: rotate(8deg) scale(1.1);
    background: var(--primary-gradient);
    color: white;
}

/* ==================== */
/* BADGE (TOP RIGHT) */
/* ==================== */
.resource-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;

    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;

    background: rgba(0,210,255,0.1);
    color: var(--primary-color);
    border: 1px solid rgba(0,210,255,0.3);

    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;

    transition: var(--transition);
}

.resource-card:hover .resource-badge {
    background: var(--primary-gradient);
    color: rgb(15, 107, 192);
}

/* ==================== */
/* TEXT */
/* ==================== */
.resource-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

.resource-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* ==================== */
/* LINK (ADVANCED) */
/* ==================== */
.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;

    color: var(--text-light);
    text-decoration: none;
    position: relative;

    transition: var(--transition);
}

/* underline animation */
.resource-link::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--primary-color);
    transition: 0.3s;
}

.resource-link:hover {
    color: var(--primary-color);
}

.resource-link:hover::after {
    width: 100%;
}

/* arrow */
.resource-link span {
    transition: transform 0.25s ease;
}

.resource-link:hover span {
    transform: translateX(6px);
}

.card:hover, .feature-card:hover, .stat-card:hover, 
.quick-link-card:hover, .category-card:hover, 
.resource-card:hover, .admin-action-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 210, 255, 0.3);
    box-shadow: var(--hover-glow);
    background: rgba(255, 255, 255, 0.05);
}

.card p, .feature-card p, .category-card p, .resource-card p {
    color: var(--text-light);
}

/* ==================== */
/* Main Layout & Sections */
/* ==================== */
.main-content {
    margin-top: 60px;
    min-height: calc(100vh - 200px);
    padding: 0;
}

.container, .form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.form-container {
    max-width: 450px;
    margin: 3rem auto;
}

/* ==================== */
/* Upgraded Buttons */
/* ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--hover-glow);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-main);
}

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

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

.btn-success { background: var(--success-color); color: var(--bg-dark); }
.btn-danger { background: var(--danger-color); color: var(--white); }
.btn-white { background: var(--text-main); color: var(--bg-dark); }

.btn-block { width: 100%; display: block; }
.btn-small { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-large { padding: 1rem 3rem; font-size: 1.1rem; }

/* ==================== */
/* Hero Section */
/* ==================== */
.hero {
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== */
/* Sleek Form Inputs */
/* ==================== */
.form-header { text-align: center; margin-bottom: 2rem; }
.form-header h2 { font-size: 2rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--text-light); }

.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-main);
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

.form-control::placeholder { color: #5a6b82; }
textarea.form-control { min-height: 120px; resize: vertical; }

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
}

.form-footer { text-align: center; margin-top: 1.5rem; color: var(--text-light); }
.form-footer a { color: var(--primary-color); text-decoration: none; font-weight: 500; }
.form-footer a:hover { text-decoration: underline; }

/* ==================== */
/* Dashboard & Features */
/* ==================== */
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.section-title p { color: var(--text-light); font-size: 1.1rem; }

.features-grid, .stats-grid, .quick-links, .categories-grid, .resources-grid, .admin-stats, .admin-actions {
    display: grid;
    gap: 2rem;
}
.features-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.stats-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.quick-links { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.categories-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.feature-icon, .feature-icon-svg, .stat-icon, .quick-link-icon, .category-icon, .resource-icon, .admin-stat-icon, .admin-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: var(--white);
    background: var(--primary-gradient);
}
.feature-icon, .feature-icon-svg { width: 64px; height: 64px; margin: 0 auto 1.5rem; }
.stat-icon { width: 60px; height: 60px; margin: 0 auto 1rem; font-size: 1.5rem; }
.category-icon { width: 70px; height: 70px; font-size: 2rem; margin-bottom: 1.5rem; }
.quick-link-icon { width: 50px; height: 50px; font-size: 1.5rem; }

/* Dashboard Specific Colors */
.stat-icon.blue { background: rgba(0, 210, 255, 0.15); color: var(--primary-color); }
.stat-icon.green { background: rgba(0, 230, 118, 0.15); color: var(--success-color); }
.stat-icon.purple { background: rgba(124, 58, 237, 0.15); color: var(--secondary-color); }
.stat-icon.orange { background: rgba(255, 145, 0, 0.15); color: var(--warning-color); }

.stat-value { font-size: 2rem; font-weight: 700; color: var(--text-main); }
.stat-label { color: var(--text-light); font-size: 0.9rem; }
.stat-number { font-size: 2.5rem; font-weight: 700; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Recent Activity List */
.activity-item { padding: 1rem 0; border-bottom: 1px solid var(--glass-border); display: flex; justify-content: space-between; align-items: center; }
.activity-item:last-child { border-bottom: none; }
.activity-info { display: flex; align-items: center; gap: 1rem; color: var(--text-main); }
.activity-score { font-weight: 600; color: var(--success-color); }

/* ==================== */
/* Quiz Interface */
/* ==================== */
.quiz-header {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.quiz-info-label { font-size: 0.8rem; color: var(--text-light); text-transform: uppercase; }
.quiz-info-value { font-size: 1.5rem; font-weight: 700; color: var(--primary-color); }
.quiz-timer { background: rgba(255, 23, 68, 0.2); color: #ff5252; padding: 0.5rem 1.5rem; border-radius: 25px; font-weight: 600; border: 1px solid rgba(255, 23, 68, 0.3); }

.question-number { background: var(--glass-border); color: var(--text-main); padding: 0.3rem 1rem; border-radius: 20px; font-size: 0.9rem; margin-bottom: 1rem; }
.question-text { font-size: 1.2rem; margin-bottom: 2rem; color: var(--text-main); }

.option-label {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
}
.option-label:hover { border-color: rgba(0, 210, 255, 0.5); background: rgba(0, 210, 255, 0.05); color: var(--text-main); }
.option-input { display: none; }
.option-input:checked + .option-label { border-color: var(--primary-color); background: rgba(0, 210, 255, 0.1); color: var(--text-main); box-shadow: 0 0 15px rgba(0, 210, 255, 0.1); }

.option-marker { width: 30px; height: 30px; border: 2px solid var(--text-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 1rem; font-weight: 600; color: var(--text-light); transition: 0.3s; }
.option-input:checked + .option-label .option-marker { background: var(--primary-color); color: var(--bg-dark); border-color: transparent; }

.palette-item {
    width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 600; cursor: pointer; transition: var(--transition); border: 1px solid var(--glass-border);
}
.palette-item.unanswered { background: rgba(0,0,0,0.3); color: var(--text-light); }
.palette-item.answered { background: var(--success-color); color: var(--bg-dark); border-color: transparent; }
.palette-item.current { border: 2px solid var(--primary-color); box-shadow: 0 0 10px rgba(0, 210, 255, 0.3); }

/* ==================== */
/* Results & History */
/* ==================== */
.score-display { font-size: 4rem; font-weight: 700; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.result-stat.correct { background: rgba(0, 230, 118, 0.15); color: var(--success-color); }
.result-stat.wrong { background: rgba(255, 23, 68, 0.15); color: var(--danger-color); }
.result-stat.unanswered { background: rgba(148, 163, 184, 0.15); color: var(--text-light); }

.history-score .percentage { padding: 0.2rem 0.6rem; border-radius: 20px; }
.history-score .percentage.high { background: rgba(0, 230, 118, 0.15); color: var(--success-color); }
.history-score .percentage.medium { background: rgba(255, 145, 0, 0.15); color: var(--warning-color); }
.history-score .percentage.low { background: rgba(255, 23, 68, 0.15); color: var(--danger-color); }

/* ==================== */
/* Admin Table Enhancements */
/* ==================== */
.admin-table { width: 100%; border-collapse: collapse; margin-top: 1rem; color: var(--text-main); }
.admin-table th, .admin-table td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--glass-border); }
.admin-table th { background: rgba(255, 255, 255, 0.05); font-weight: 600; color: var(--primary-color); }
.admin-table tr:hover { background: rgba(255, 255, 255, 0.02); }

/* ==================== */
/* Flash Messages */
/* ==================== */
.flash-container { position: fixed; top: 80px; right: 20px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.flash-message { padding: 1rem 1.5rem; border-radius: 12px; color: #fff; background: rgba(10, 11, 16, 0.9); backdrop-filter: blur(10px); border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-width: 300px; animation: slideIn 0.3s ease; box-shadow: var(--card-shadow); }
.flash-success { border-left: 4px solid var(--success-color); }
.flash-error, .flash-danger { border-left: 4px solid var(--danger-color); }
.flash-warning { border-left: 4px solid var(--warning-color); }
.flash-info { border-left: 4px solid var(--info-color); }
.flash-close { background: none; border: none; color: inherit; font-size: 1.5rem; cursor: pointer; line-height: 1; }

@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }

/* ==================== */
/* HOMEPAGE ROADMAP BANNER */
/* ==================== */
.roadmap-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 80px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    margin: 40px 0; /* Add margin to separate it */
}

.roadmap-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.roadmap-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.roadmap-content h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 800;
}

.roadmap-content p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* ==================== */
/* Footer */
/* ==================== */
.footer { background: rgba(0, 0, 0, 0.4); border-top: 1px solid var(--glass-border); color: var(--text-light); padding: 3rem 0 1rem; margin-top: 4rem; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--glass-border); }
.footer-section h3, .footer-section h4 { color: var(--text-main); margin-bottom: 1rem; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.5rem; }
.footer-section ul li a { color: var(--text-light); text-decoration: none; transition: var(--transition); }
.footer-section ul li a:hover { color: var(--primary-color); padding-left: 5px; }
.footer-bottom { text-align: center; padding-top: 1.5rem; font-size: 0.9rem; }

/* ==================== */
/* Responsive Design */
/* ==================== */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu { position: absolute; top: 60px; left: 0; right: 0; background: rgba(10, 11, 16, 0.95); backdrop-filter: blur(15px); border-bottom: 1px solid var(--glass-border); flex-direction: column; padding: 1.5rem; gap: 1rem; transform: translateY(-150%); opacity: 0; transition: var(--transition); }
    .nav-menu.active { transform: translateY(0); opacity: 1; }
    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }
    .hero h1 { font-size: 2.2rem; }
    .roadmap-content h2 { font-size: 2rem; }
    .quiz-header { flex-direction: column; text-align: center; }
    .quiz-info { width: 100%; justify-content: space-around; }
    .flash-container { left: 20px; right: 20px; }
    .flash-message { min-width: auto; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .hero h1 { font-size: 1.8rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; }
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.hidden { display: none; } .visible { display: block; }


#backToTop {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    background-color: #6200ea; /* Use your theme color */
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}