/* =================================
FONT
================================= */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&display=swap');

/* =================================
GLOBAL
================================= */
body {
    font-family: 'Quicksand', sans-serif;
}

.vmcq-container {
    max-width: 820px;
    margin: 40px auto;
    padding: 0 15px;
}

/* =================================
GRID + CARD (UNIFIED SYSTEM)
================================= */
.vq-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.vq-card {
    display: block;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 16px;
    padding: 18px;
    text-decoration: none !important;
    color: #111 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: all 0.2s ease;
}

.vq-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}

.vq-card-title {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 8px;
}

.vq-card-meta {
    font-size: 14px;
    color: #555;
}

.vq-card-cta {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #2563eb;
}

/* =================================
QUIZ UI
================================= */
.vmcq-question-title {
    font-size: 20px;
    margin-bottom: 20px;
}

.vmcq-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vmcq-option {
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
}

.vmcq-option:hover {
    border-color: #3b82f6;
}

.correct-option {
    border: 2px solid #16a34a;
    background: #ecfdf5;
}

.wrong-option {
    border: 2px solid #dc2626;
    background: #fef2f2;
}

/* =================================
BUTTONS
================================= */
.vmcq-btn {
    background: #1e3a5f;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

/* =================================
RESULT PAGE
================================= */
.vmcq-result-card {
    max-width: 720px;
    margin: 40px auto;
    text-align: center;
}

.vmcq-result-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

.vmcq-meta {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

/* Stats */
.vmcq-result-stats {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.vmcq-result-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 18px;
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}

.vmcq-result-row:first-child {
    background: #1f5f7a;
    color: #fff;
    font-weight: 600;
}

.vmcq-result-row:last-child {
    border-bottom: none;
}


/* =================================
ANSWER REVIEW
================================= */
.vmcq-answer-review {
    max-width: 800px;
    margin: 40px auto;
    text-align: left;
}

.vmcq-answer-review h3 {
    text-align: center;
    margin-bottom: 25px;
}

.vmcq-review-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 18px;
}

.vmcq-review-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.vmcq-review-qno {
    font-weight: 700;
}

.vmcq-review-status {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
}

/* Status colors */
.vmcq-review-correct .vmcq-review-status {
    background: #ecfdf5;
    color: #16a34a;
}

.vmcq-review-wrong .vmcq-review-status {
    background: #fef2f2;
    color: #dc2626;
}

.vmcq-review-question {
    margin-bottom: 10px;
    line-height: 1.5;
}

.vmcq-review-meta {
    font-size: 14px;
    margin-bottom: 8px;
}

.vmcq-review-explanation {
    background: #f9fafb;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
}

/* =================================
MOBILE
================================= */
@media (max-width: 1024px) {
    .vq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .vq-grid {
        grid-template-columns: 1fr;
    }
}
/* =================================
RESULT CLEAN UI (LIKE YOUR IMAGE)
================================= */

.vmcq-result-nav {
    max-width: 720px;
    margin: 25px auto;
    text-align: center;
}

/* Breadcrumb text */
.vmcq-result-breadcrumb {
    font-size: 15px;
    font-weight: 600;
    color: #444;
    margin-bottom: 20px;
}



/* Bottom actions */


/* Button styles */
.vmcq-btn {
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

/* Variants */
.vmcq-btn.primary {
    background: #1e3a5f;
    color: #fff;
}

.vmcq-btn.secondary {
    background: #f3f4f6;
    color: #111;
}
/* =================================
FINAL RESULT NAV (PERFECT ALIGNMENT)
================================= */

/* Breadcrumb */
.vmcq-result-breadcrumb {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    margin: 20px 0 25px;
    color: #444;
}

/* 3-column layout */
.vmcq-result-actions-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin: 20px 0;
}

/* LEFT */
.vmcq-left {
    justify-self: start;
}

/* CENTER */
.vmcq-center {
    justify-self: center;
}

/* RIGHT */
.vmcq-right {
    justify-self: end;
}

/* MAIN HUB */
.vmcq-main-hub {
    text-align: center;
    margin-top: 15px;
}

/* BUTTON STYLES */
.vmcq-btn {
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

/* Variants */
.vmcq-btn.primary {
    background: #2563eb;
    color: #fff;
}

.vmcq-btn.secondary {
    background: #f3f4f6;
    color: #111;
}

.vmcq-btn.dark {
    background: #111827;
    color: #fff;
}

/* Hover */
.vmcq-btn:hover {
    opacity: 0.9;
}
.vmcq-btn.dark {
    background: #111827;
    color: #fff;
}

/* Hover */
.vmcq-btn:hover {
    opacity: 0.9;
}
/* =================================
FINAL RESULT PAGE (COMPLETE)
================================= */

/* Breadcrumb */
.vmcq-result-breadcrumb {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    margin: 10px 0 25px;
    color: #444;
}

/* Stats */
.vmcq-result-stats {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.vmcq-result-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 18px;
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}

.vmcq-result-row:first-child {
    background: #1f5f7a;
    color: #fff;
    font-weight: 600;
}

.vmcq-result-row:last-child {
    border-bottom: none;
}

/* Subject + Chapter chips */
.vmcq-result-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.vmcq-chip {
    background: #f3f4f6;
    padding: 8px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    color: #111;
}

.vmcq-chip:hover {
    background: #e5e7eb;
}

/* Navigation layout */
.vmcq-result-actions-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin: 20px 0;
}

.vmcq-left { justify-self: start; }
.vmcq-center { justify-self: center; }
.vmcq-right { justify-self: end; }

/* Main hub */
.vmcq-main-hub {
    text-align: center;
    margin-top: 15px;
}

/* Buttons */
.vmcq-btn {
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}

.vmcq-btn.primary {
    background: #2563eb;
    color: #fff;
}

.vmcq-btn.secondary {
    background: #f3f4f6;
    color: #111;
}

.vmcq-btn.dark {
    background: #111827;
    color: #fff;
}

.vmcq-btn:hover {
    opacity: 0.9;
}
/* =================================
QUIZ NAVIGATION FINAL (LEFT-CENTER-RIGHT)
================================= */

.vmcq-bottom-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-top: 30px;
    gap: 10px;
}

/* LEFT */
.vmcq-bottom-bar .vmcq-left {
    justify-self: start;
}

/* CENTER */
.vmcq-bottom-bar .vmcq-center {
    justify-self: center;
}

/* RIGHT */
.vmcq-bottom-bar .vmcq-right {
    justify-self: end;
}

/* Button sizing (important) */
#vmcq-prev-btn,
#vmcq-next-btn {
    min-width: 110px;
}

/* Mobile fix */
@media (max-width: 640px) {
    .vmcq-bottom-bar {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .vmcq-bottom-bar .vmcq-left,
    .vmcq-bottom-bar .vmcq-center,
    .vmcq-bottom-bar .vmcq-right {
        justify-self: center;
    }
}