.article-quiz-container {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
    background: #f9f9f9;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

.quiz-start h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.quiz-start p {
    color: #666;
    margin-bottom: 20px;
}

.quiz-start-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.quiz-start-btn:hover {
    background: #005a87;
}

.quiz-content h3 {
    color: #333;
    margin-bottom: 15px;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.quiz-progress {
    background: #e0e0e0;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    color: #555;
}

.quiz-question {
    margin-bottom: 25px;
}

.quiz-question h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2em;
    line-height: 1.4;
}

.quiz-answers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-answers label {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.quiz-answers label:hover {
    border-color: #007cba;
    background: #f0f8ff;
}

.quiz-answers input[type="radio"] {
    margin-right: 10px;
    margin-top: 0;
}

.quiz-answers label input[type="radio"]:checked + * {
    font-weight: bold;
}

.quiz-answers label:has(input[type="radio"]:checked) {
    border-color: #007cba;
    background: #e6f3ff;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.quiz-navigation button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.quiz-prev {
    background: #6c757d;
    color: white;
}

.quiz-prev:hover {
    background: #545b62;
}

.quiz-next {
    background: #007cba;
    color: white;
}

.quiz-next:hover {
    background: #005a87;
}

.quiz-submit {
    background: #28a745;
    color: white;
    font-weight: bold;
}

.quiz-submit:hover {
    background: #218838;
}

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

.quiz-results h3 {
    color: #333;
    margin-bottom: 20px;
}

.quiz-score {
    margin-bottom: 25px;
}

.score-display {
    font-size: 3em;
    font-weight: bold;
    color: #007cba;
    margin-bottom: 10px;
}

.score-details p {
    margin: 5px 0;
    font-size: 1.1em;
}

.correct-answers {
    color: #666;
}

.score-message {
    font-weight: bold;
    font-size: 1.2em !important;
}

.score-excellent {
    color: #28a745;
}

.score-good {
    color: #007cba; 
}

.score-okay {
    color: #ffc107;
}

.score-poor {
    color: #dc3545;
}

.quiz-restart {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.quiz-restart:hover {
    background: #545b62;
}

/* Responsive design */
@media (max-width: 768px) {
    .article-quiz-container {
        padding: 15px;
        margin: 15px 0;
    }
    
    .quiz-answers {
        gap: 8px;
    }
    
    .quiz-answers label {
        padding: 10px;
        font-size: 14px;
    }
    
    .quiz-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .quiz-navigation button {
        width: 100%;
        padding: 12px;
    }
    
    .score-display {
        font-size: 2.5em;
    }
}