/* Quiz Page */
.quiz-page {
    max-width: 800px;
    margin: 0 auto;
}

.quiz-page h1 {
    color: #072946 !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
}

.quiz-page h2 {
    color: #072946 !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
}

.quiz-page h3 {
    color: #072946 !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
}

/* Quiz Header */
.quiz-header {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.quiz-header h1 {
    color: #072946;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.quiz-timer {
    background: #072946;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.quiz-progress .progress-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

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

.quiz-progress .progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #072946, #1a7ab5);
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* Quiz Card */
.quiz-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.quiz-question {
    color: #072946 !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Options */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-option {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 14px 18px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #333;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quiz-option:hover {
    border-color: #1a7ab5;
    background: #eef4fb;
}

.quiz-option.selected {
    border-color: #072946;
    background: #eef4fb;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(7, 41, 70, 0.1);
}

.option-letter {
    background: #e9ecef;
    color: #072946;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.quiz-option.selected .option-letter {
    background: #072946;
    color: #fff;
}

/* Actions */
.quiz-actions {
    margin-top: 1.5rem;
    text-align: right;
}

.btn-quiz-next {
    background: #072946;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-quiz-next:hover:not(:disabled) {
    background: #0a4a6e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(7, 41, 70, 0.2);
}

.btn-quiz-next:disabled {
    background: #adb5bd;
    cursor: not-allowed;
}

/* Result Card */
.quiz-result-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.result-header {
    background: linear-gradient(135deg, #072946 0%, #0e4a6e 100%);
    color: #fff;
    text-align: center;
    padding: 2rem;
}

.result-header h2 {
    color: #fff;
    margin: 0.5rem 0;
    font-size: 1.4rem;
}

.result-icon {
    font-size: 2.5rem;
}

.result-icon.success { color: #ffd700; }
.result-icon.warning { color: #ffc107; }
.result-icon.danger { color: #ff6b6b; }

.result-score {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    margin: 0;
}

.result-body {
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.result-item {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid;
}

.result-item.correct {
    background: #f0fdf4;
    border-left-color: #22c55e;
}

.result-item.wrong {
    background: #fef2f2;
    border-left-color: #ef4444;
}

.result-q {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 4px;
}

.result-a span {
    font-weight: 600;
}

.result-correct span {
    color: #22c55e;
    font-weight: 600;
}

.result-actions {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-quiz-retry {
    background: #072946;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-quiz-retry:hover {
    background: #0a4a6e;
}

.btn-quiz-back {
    background: transparent;
    color: #072946;
    border: 2px solid #072946;
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-quiz-back:hover {
    background: #072946;
    color: #fff;
    text-decoration: none;
}

/* Recommend Section */
.quiz-recommend {
    margin-top: 2rem;
}

.quiz-recommend h3 {
    color: #072946;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.recommend-card {
    background: #f8fbff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    height: 100%;
}

.recommend-card > i {
    font-size: 1.5rem;
    color: #1a7ab5;
    margin-top: 4px;
}

.recommend-card h5 {
    color: #072946;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.recommend-card p {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .quiz-card {
        padding: 1.5rem;
    }
    .quiz-question {
        font-size: 1rem;
    }
    .quiz-option {
        padding: 12px 14px;
        font-size: 0.9rem;
    }
    .result-actions {
        flex-direction: column;
    }
}


/* ==========================================
   QUIZ LISTING PAGE
   ========================================== */

.quiz-listing-page {
    max-width: 1000px;
    margin: 0 auto;
}

.quiz-listing-page h1 {
    color: #072946 !important;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
}

.quiz-listing-page h2 {
    color: #072946 !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
}

.quiz-listing-page h3 {
    color: #072946 !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
}

/* Hero */
.quiz-list-hero {
    background: linear-gradient(135deg, #072946 0%, #0e4a6e 100%);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    color: #fff;
}

.quiz-list-hero h1 {
    color: #fff !important;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.5rem;
}

.quiz-list-hero p {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

.quiz-hero-icon {
    font-size: 4rem;
    color: rgba(255,255,255,0.2);
}

/* Instructions Card */
.quiz-instructions-card {
    background: #f8fbff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.quiz-instructions-card h2 {
    color: #072946;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.quiz-instructions-card h2 i {
    color: #1a7ab5;
    margin-right: 6px;
}

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

.step-num {
    display: inline-flex;
    width: 36px;
    height: 36px;
    background: #072946;
    color: #fff;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.instruction-step p {
    font-size: 0.8rem;
    color: #555;
    margin: 0;
    line-height: 1.4;
}

/* Section Title */
.quiz-section-title {
    color: #072946;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

/* Quiz Card Items */
.quiz-card-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.75rem;
    text-align: center;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.quiz-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.quiz-card-icon {
    width: 50px;
    height: 50px;
    background: #eef4fb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.quiz-card-icon i {
    font-size: 1.2rem;
    color: #072946;
}

.quiz-card-item h3 {
    color: #072946;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.quiz-card-meta {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.btn-quiz-start {
    background: #072946;
    color: #fff;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-quiz-start:hover {
    background: #0a4a6e;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* ==========================================
   QUIZ INSTRUCTION PAGE
   ========================================== */

.quiz-instruction-page {
    max-width: 1000px;
    margin: 0 auto;
}

.quiz-instruction-page h1 {
    color: #072946 !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
}

.quiz-instruction-page h2 {
    color: #072946 !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
}

/* Instruction Card */
.instruction-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.instruction-header {
    background: linear-gradient(135deg, #072946 0%, #0e4a6e 100%);
    padding: 2rem;
    color: #fff;
}

.instruction-header h1 {
    color: #fff !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.5rem;
}

.instruction-subtitle {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    margin: 0;
}

.instruction-body {
    padding: 2rem;
}

.instruction-body h2 {
    color: #072946;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.instruction-body h2 i {
    color: #1a7ab5;
    margin-right: 6px;
}

.instruction-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.instruction-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
    font-size: 0.9rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.instruction-list li:last-child {
    border-bottom: none;
}

.instruction-list li i {
    width: 18px;
    text-align: center;
}

.instruction-note {
    background: #f8fbff;
    border: 1px solid #e0ecf7;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.instruction-note i {
    color: #ffc107;
    font-size: 1.2rem;
    margin-top: 2px;
}

.instruction-note p {
    margin: 0;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
}

.instruction-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-start-quiz {
    background: #072946;
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-start-quiz:hover {
    background: #0a4a6e;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(7,41,70,0.2);
}

.btn-back-quizzes {
    background: transparent;
    color: #072946;
    border: 2px solid #072946;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-back-quizzes:hover {
    background: #072946;
    color: #fff;
    text-decoration: none;
}

/* Sidebar Cards */
.quiz-sidebar-card {
    background: #f8fbff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
}

.quiz-sidebar-card h4 {
    color: #072946;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.quiz-sidebar-card h4 i {
    color: #1a7ab5;
    margin-right: 6px;
}

.quiz-sidebar-card p {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
}

.quiz-stats-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quiz-stats-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.85rem;
}

.quiz-stats-list li:last-child {
    border-bottom: none;
}

.quiz-stats-list li span {
    color: #6c757d;
}

.quiz-stats-list li strong {
    color: #072946;
}

/* Responsive */
@media (max-width: 768px) {
    .quiz-list-hero {
        padding: 2rem 1.5rem;
    }
    .quiz-list-hero h1 {
        font-size: 1.4rem;
    }
    .instruction-header {
        padding: 1.5rem;
    }
    .instruction-body {
        padding: 1.5rem;
    }
    .instruction-actions {
        flex-direction: column;
    }
    .btn-start-quiz,
    .btn-back-quizzes {
        width: 100%;
        justify-content: center;
    }
}


/* Category Instruction List */
.category-instruction-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.category-instruction-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
    font-size: 0.95rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-instruction-list li:last-child {
    border-bottom: none;
}

.category-instruction-list li i {
    color: #1a7ab5;
    width: 20px;
    text-align: center;
}


/* Internal Links Section */
.quiz-internal-links h2 {
    color: #072946;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.internal-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 1.25rem;
    background: #f8fbff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    text-decoration: none;
    color: #072946;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.internal-link-card:hover {
    background: #072946;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(7,41,70,0.15);
}

.internal-link-card i {
    font-size: 1.3rem;
}
