/* Article Modal Styles */
#articleModal .modal-dialog {
    max-width: 900px;
}

#articleModal .modal-header {
    position: relative;
}

#articleModal .modal-header .btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: white;
    opacity: 1;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    padding: 0;
}

#articleModal .modal-header .btn-close:hover {
    opacity: 0.8;
}

#articleModal .modal-body {
    padding: 2rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

#articleModal .modal-body h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

#articleModal .modal-body h4 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #444;
}

#articleModal .modal-body h5 {
    font-size: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    color: #555;
    font-weight: 600;
}

#articleModal .modal-body p {
    margin-bottom: 1rem;
    color: #333;
}

#articleModal .modal-body ul {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

#articleModal .modal-body ul.explanations {
    list-style-type: none;
    padding-left: 1rem;
    margin-bottom: 1rem;
}

#articleModal .modal-body img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto;
    display: block;
    border-radius: 10px;
}

/* Quiz Styles */
.quiz-section {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.quiz-section h5 {
    color: #0066cc;
    margin-bottom: 1rem;
}

.quiz-question {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.quiz-options {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.quiz-options li {
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    background-color: white;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-options li:hover {
    background-color: #e9ecef;
    border-color: #0066cc;
}

.quiz-options li.selected {
    font-weight: 600;
}

.quiz-options li.correct {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.quiz-options li.incorrect {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.quiz-answer {
    display: none;
    background-color: #d4edda;
    border: 2px solid #28a745;
    border-radius: 5px;
    padding: 1rem;
    margin-top: 1rem;
}

.quiz-answer.show {
    display: block;
}

.quiz-answer strong {
    color: #155724;
}

.correct-feedback {
    background-color: #d4edda;
    border: 2px solid #28a745;
    border-radius: 5px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    color: #155724;
    font-size: 1.1rem;
}

.incorrect-feedback {
    background-color: #f8d7da;
    border: 2px solid #dc3545;
    border-radius: 5px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    color: #721c24;
    font-size: 1.1rem;
}

.show-answer-btn {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.show-answer-btn:hover {
    background-color: #0052a3;
}

.show-answer-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* Category Badge */
.category-badge {
    display: inline-block;
    background-color: #0066cc;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    #articleModal .modal-dialog {
        margin: 0.5rem;
    }
    
    #articleModal .modal-body {
        padding: 1rem;
        font-size: 1rem;
    }
}
