@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #6366f1; /* Indigo 500 */
    --primary-light: #818cf8;
    --primary-hover: #4f46e5;
    --secondary: #10b981; /* Emerald 500 */
    --danger: #ef4444;
    --background-start: #0f172a; /* Slate 900 */
    --background-end: #1e1b4b; /* Indigo 950 */
    --surface: rgba(255, 255, 255, 0.95);
    --surface-glass: rgba(255, 255, 255, 0.85);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 20px;
    --shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3), 0 10px 20px -5px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.4);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--background-start), var(--background-end));
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Glassmorphism App Container */
.app-container {
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    width: 100%;
    max-width: 800px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Add a subtle top border glow */
.app-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary), #ec4899);
}

.hidden {
    display: none !important;
}

h1, h2, h3 {
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.8rem;
    background: linear-gradient(to right, var(--primary), #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

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

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 10px;
    margin-bottom: 25px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--primary), #ec4899);
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    gap: 10px;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px -3px rgba(99, 102, 241, 0.4);
}

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

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: white;
    color: var(--text-main);
    border: 1px solid var(--border);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

/* Quiz Screen */
.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.question-counter {
    font-weight: 600;
    color: var(--primary);
    background: #eef2ff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.question-text {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 35px;
    line-height: 1.5;
    color: #0f172a;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.options-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 40px;
}

.option-btn {
    text-align: left;
    padding: 18px 24px;
    border: 2px solid var(--border);
    border-radius: 14px;
    background: white;
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

/* Option Prefix Letter (A, B, C, D) styling if we want, but we rely on simple hover for now */
.option-btn::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: transparent;
    transition: background 0.3s;
}

.option-btn:hover:not(:disabled) {
    border-color: var(--primary-light);
    background: #f8fafc;
    transform: translateX(8px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.option-btn:hover:not(:disabled)::before {
    background: var(--primary);
}

.option-btn.selected {
    border-color: var(--primary);
    background: #eef2ff;
}

.option-btn.correct {
    border-color: var(--secondary);
    background: #ecfdf5;
    color: #065f46;
}

.option-btn.correct::before {
    background: var(--secondary);
}

.option-btn.wrong {
    border-color: var(--danger);
    background: #fef2f2;
    color: #991b1b;
}

.option-btn.wrong::before {
    background: var(--danger);
}

.option-btn:disabled {
    cursor: not-allowed;
    opacity: 0.9;
}

/* Result Circle Animation */
.result-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: conic-gradient(var(--primary) calc(var(--score) * 1%), #e2e8f0 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.05), 0 10px 20px rgba(99, 102, 241, 0.2);
    transition: background 1.5s ease-out;
}

.result-circle::before {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    background: var(--surface);
    border-radius: 50%;
    box-shadow: inset 0 5px 10px rgba(0,0,0,0.05);
}

.result-score-text {
    position: relative;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    background: linear-gradient(to right, var(--primary), #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feedback-message {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 25px;
}

/* Review Section */
.review-section {
    margin-top: 50px;
    text-align: left;
    background: white;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.review-item {
    background: #f8fafc;
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 15px;
    border-left: 6px solid var(--border);
    transition: transform 0.2s;
}

.review-item:hover {
    transform: scale(1.01);
}

.review-item.is-correct {
    border-left-color: var(--secondary);
    background: #f0fdf4;
}

.review-item.is-wrong {
    border-left-color: var(--danger);
    background: #fef2f2;
}

.review-q {
    font-weight: 700;
    margin-bottom: 12px;
    color: #0f172a;
    font-size: 1.1rem;
}

.review-ans {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.review-ans span {
    font-weight: 600;
}

/* Admin Specific */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.admin-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.upload-zone {
    border: 3px dashed #cbd5e1;
    border-radius: var(--radius);
    padding: 60px 40px;
    text-align: center;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 30px;
}

.upload-zone:hover {
    background: #f8fafc;
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.upload-icon {
    font-size: 4rem;
    color: var(--primary-light);
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.upload-zone:hover .upload-icon {
    transform: scale(1.1);
    color: var(--primary);
}

input[type="file"] {
    display: none;
}

/* Table styling for Admin Preview */
.table-container {
    overflow-x: auto;
    max-height: 450px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th, td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: #f8fafc;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid var(--border);
}

tr:hover td {
    background: #f1f5f9;
}

tr:last-child td {
    border-bottom: none;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.badge-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }

/* Custom Loader */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.loader {
    border: 4px solid #e2e8f0;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
    margin-bottom: 15px;
}

.loader-text {
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 1px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    background: white;
    color: var(--text-main);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    font-weight: 600;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success { border-left: 4px solid var(--secondary); }
.toast.error { border-left: 4px solid var(--danger); }

/* ====== Detailed Review UI ====== */
.review-item-full {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    background: #fafbfc;
    transition: all 0.2s;
}

.review-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.review-q-num {
    font-weight: 800;
    font-size: 0.9rem;
    background: var(--primary);
    color: white;
    padding: 3px 12px;
    border-radius: 20px;
}

.review-q-text {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-main);
    line-height: 1.5;
}

.review-opts-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.review-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: white;
    font-size: 0.95rem;
    pointer-events: none;
}

.review-opt input[type="radio"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.review-opt-correct {
    background: #d1fae5 !important;
    border-color: #10b981 !important;
    font-weight: 600;
}

.review-opt-wrong {
    background: #fee2e2 !important;
    border-color: #ef4444 !important;
}

/* Responsive */
@media (max-width: 640px) {
    .app-container {
        padding: 30px 20px;
        border-radius: 16px;
    }
    h1 {
        font-size: 2.2rem;
    }
    .question-text {
        font-size: 1.3rem;
    }
    .option-btn {
        padding: 14px 18px;
        font-size: 1rem;
    }
    .admin-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

/* =========================================
   CBT Layout Specific Styles
   ========================================= */

.cbt-body-active {
    background: #f8fafc !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 100vh !important;
    overflow: hidden !important;
}

.cbt-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    background: #f8fafc;
}

.cbt-header {
    background: var(--surface);
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 10;
}

.cbt-header h2 {
    font-size: 1.3rem;
    margin: 0;
    background: none;
    -webkit-text-fill-color: var(--text-main);
}

.timer-box {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
    background: #eef2ff;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #c7d2fe;
}

.cbt-main {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.question-area {
    flex: 1;
    padding: 30px 40px;
    overflow-y: auto;
    background: white;
}

.question-header {
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 15px;
}

.badge-primary {
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 1rem;
}

.question-content {
    margin-bottom: 30px;
}

.question-content h3 {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #0f172a;
    font-weight: 600;
}

.options-area {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cbt-option {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.cbt-option:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.cbt-option input[type="radio"] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.cbt-option label {
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
}

/* Right Palette */
.palette-area {
    width: 320px;
    background: #f8fafc;
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.candidate-info {
    display: flex;
    align-items: center;
    padding: 20px;
    background: white;
    border-bottom: 1px solid var(--border);
}

.palette-legends {
    padding: 15px 20px;
    background: white;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.legend-item {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
}

.legend-box {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
}

/* Status colors */
.answered { background: var(--secondary) !important; color: white !important; border-color: var(--secondary) !important; }
.not-answered { background: var(--danger) !important; color: white !important; border-color: var(--danger) !important; }
.not-visited { background: #e2e8f0 !important; color: #475569 !important; border: 1px solid #cbd5e1 !important; }
.review { background: #8b5cf6 !important; color: white !important; border-color: #8b5cf6 !important; }

.palette-grid-container {
    padding: 20px;
    flex: 1;
    background: #f8fafc;
}

.palette-grid-container h4 {
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--text-main);
}

.palette-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.palette-btn {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    transition: transform 0.1s;
}

.palette-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.palette-btn.active {
    box-shadow: 0 0 0 3px rgba(0,0,0,0.2);
}

.cbt-footer {
    height: 70px;
    background: white;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.02);
}

.btn-warning {
    background: #8b5cf6;
    color: white;
}
.btn-warning:hover { background: #7c3aed; }

.btn-success {
    background: var(--secondary);
    color: white;
}
.btn-success:hover { background: #059669; }

@media (max-width: 768px) {
    .cbt-main {
        flex-direction: column;
    }
    .palette-area {
        width: 100%;
        height: 300px;
        border-left: none;
        border-top: 1px solid var(--border);
    }
    .cbt-footer {
        flex-wrap: wrap;
        height: auto;
        padding: 15px;
        gap: 10px;
        justify-content: center;
    }
}

/* =========================================
   Landing Page / Website UI Styles
   ========================================= */

.landing-body {
    background: #f8fafc;
    padding: 0;
    margin: 0;
    display: block;
}

/* Navbar */
.navbar {
    background: white;
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

/* Hero Section */
.hero-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    text-align: left;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(to right, #0f172a, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #475569;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

/* Decorative blob behind glass card */
.hero-image::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary), #ec4899);
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.5;
    z-index: -1;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 50px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Courses Section */
.courses-container {
    background: white;
    padding: 80px 20px;
    border-top: 1px solid var(--border);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #0f172a;
}

.section-header p {
    font-size: 1.1rem;
}

.course-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.course-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.course-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 30px rgba(99,102,241,0.1);
}

.course-card-icon {
    background: #eef2ff;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.course-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

/* Footer */
.landing-footer {
    background: #0f172a;
    color: white;
    text-align: center;
    padding: 30px 20px;
}

.landing-footer p {
    margin: 0;
    color: #94a3b8;
}

/* ---- Tablet ---- */
@media (max-width: 900px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        margin: 30px auto;
        gap: 30px;
    }
    .hero-content h1 {
        text-align: center;
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .hero-image {
        display: none;
    }
    .btn-lg {
        padding: 12px 24px;
        font-size: 1rem;
    }
    .course-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
    .course-card {
        padding: 18px 12px;
        border-radius: 12px;
    }
    .course-card-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 12px;
    }
    .course-card-icon i {
        font-size: 1.8rem !important;
    }
    .course-card h3 {
        font-size: 0.95rem !important;
    }
    .section-header h2 {
        font-size: 1.8rem;
    }
    .courses-container {
        padding: 40px 15px;
    }
    .category-section h3 {
        font-size: 1.3rem !important;
    }
}

/* ---- Mobile ---- */
@media (max-width: 600px) {
    .navbar {
        padding: 12px 0;
    }
    .logo {
        font-size: 1.1rem;
    }
    .hero-section {
        margin: 20px auto;
        padding: 0 15px;
        gap: 20px;
    }
    .hero-content h1 {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    .hero-image {
        display: none;
    }
    .btn-lg {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .quick-access-bar {
        margin: -15px auto 25px !important;
        padding: 0 15px !important;
    }
    .quick-access-bar > div {
        padding: 10px 15px !important;
    }
    .quick-access-bar input {
        font-size: 0.9rem !important;
    }
    .courses-container {
        padding: 30px 10px;
    }
    .section-header {
        margin-bottom: 25px !important;
    }
    .section-header h2 {
        font-size: 1.4rem;
    }
    .section-header p {
        font-size: 0.9rem;
    }
    .course-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .course-card {
        padding: 14px 8px;
        border-radius: 10px;
    }
    .course-card-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 8px;
    }
    .course-card-icon i {
        font-size: 1.4rem !important;
    }
    .course-card h3 {
        font-size: 0.8rem !important;
        margin-bottom: 5px !important;
        line-height: 1.3 !important;
    }
    .course-card .badge {
        font-size: 0.65rem !important;
        padding: 3px 6px !important;
    }
    .category-section {
        margin-bottom: 30px !important;
    }
    .category-section h3 {
        font-size: 1.1rem !important;
        margin-bottom: 12px !important;
    }
    .landing-footer {
        padding: 20px 15px;
    }
    .landing-footer p {
        font-size: 0.85rem;
    }
}

/* ====== Print Styles ====== */
@media print {
    body { background: white !important; }
    .navbar, .cbt-layout, #welcome-screen, #loader, #exam-modal, .btn, #print-btn, #restart-btn { display: none !important; }
    #result-screen { display: block !important; margin: 0 !important; padding: 10px !important; }
    #result-screen > div { box-shadow: none !important; }
    .review-item-full { break-inside: avoid; }
}
