/* CGP Revision Guide Style Explanations */
.explanation {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
}

.explanation .topic-header {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.explanation .sub-header {
    color: #198754;
    font-style: italic;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 2px solid #198754;
    padding-bottom: 0.25rem;
    margin: 1rem 0 0.5rem;
}

.explanation .example-box {
    background: #fff9e6;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.explanation .example-label {
    background: #ffc107;
    color: #000;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.explanation .key-term {
    text-decoration: underline;
    text-decoration-color: #0d6efd;
    text-underline-offset: 2px;
}

.explanation .method {
    color: #198754;
    font-weight: 600;
}

.explanation .warning {
    color: #dc3545;
    font-weight: 600;
}

.explanation .step-list {
    padding-left: 1.5rem;
}

.explanation .step-list li {
    margin-bottom: 0.5rem;
}

.explanation .exam-tip {
    background: #e7f3ff;
    border-left: 4px solid #0d6efd;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
}

.explanation .casual {
    font-style: italic;
    color: #6c757d;
    margin-top: 1rem;
}

.explanation .answer {
    background: #d4edda;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-top: 0.5rem;
}
