/**
 * EBA CE Courses Widget
 */

.eba-wrapper.eba-ce { padding: clamp(3rem, 6vw, 5rem) 0; }

.eba-ce__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto clamp(2rem, 4vw, 3rem);
}

.eba-ce__badges {
    display: flex;
    justify-content: center;
    gap: var(--eba-space-2);
    flex-wrap: wrap;
    margin-bottom: var(--eba-space-4);
}

.eba-ce__title {
    font-family: var(--eba-font-heading) !important;
    font-size: clamp(2.25rem, 4vw + 0.5rem, 3.5rem) !important;
    color: var(--eba-charcoal) !important;
    line-height: 1.1 !important;
    margin-bottom: var(--eba-space-3) !important;
    font-weight: 400 !important;
}

.eba-ce__provider {
    color: var(--eba-text-muted) !important;
    font-size: var(--eba-text-base) !important;
}

.eba-ce__content {
    max-width: 720px;
    margin: 0 auto clamp(3rem, 6vw, 4rem);
    font-size: var(--eba-text-lg);
    line-height: 1.8;
    color: var(--eba-text-muted);
}

.eba-ce__content h2,
.eba-ce__content h3,
.eba-ce__content h4 {
    margin-top: var(--eba-space-6) !important;
    margin-bottom: var(--eba-space-3) !important;
    color: var(--eba-charcoal) !important;
}

.eba-ce__content p { margin-bottom: var(--eba-space-4); }
.eba-ce__content ul, .eba-ce__content ol { margin: var(--eba-space-3) 0 var(--eba-space-4) var(--eba-space-5); }

/* Quiz */
.eba-ce__quiz {
    max-width: 720px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--eba-border);
    border-radius: var(--eba-radius-xl);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: var(--eba-shadow-md);
}

.eba-ce__quiz-header {
    text-align: center;
    margin-bottom: var(--eba-space-6);
    padding-bottom: var(--eba-space-5);
    border-bottom: 1px solid var(--eba-border);
}

.eba-ce__quiz-header h2 {
    font-family: var(--eba-font-heading) !important;
    font-size: var(--eba-text-3xl) !important;
    color: var(--eba-charcoal) !important;
    margin-bottom: var(--eba-space-2) !important;
}

.eba-ce__quiz-header p { color: var(--eba-text-muted); }

.eba-ce__question {
    border: 0;
    padding: 0;
    margin-bottom: var(--eba-space-6);
}

.eba-ce__question-legend {
    display: flex;
    gap: var(--eba-space-3);
    align-items: flex-start;
    font-size: var(--eba-text-lg);
    color: var(--eba-charcoal);
    font-weight: 500;
    margin-bottom: var(--eba-space-4);
    line-height: 1.5;
    padding: 0;
}

.eba-ce__question-num {
    width: 32px;
    height: 32px;
    border-radius: var(--eba-radius-full);
    background: var(--eba-gradient-gold);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--eba-font-heading);
    font-size: var(--eba-text-sm);
    flex-shrink: 0;
    margin-top: 2px;
}

.eba-ce__option {
    display: flex;
    align-items: center;
    gap: var(--eba-space-3);
    padding: var(--eba-space-3) var(--eba-space-4);
    border: 1.5px solid var(--eba-border);
    border-radius: var(--eba-radius-md);
    cursor: pointer;
    transition: all var(--eba-duration-base) var(--eba-ease);
    margin-bottom: var(--eba-space-2);
    background: #ffffff;
}

.eba-ce__option:hover {
    border-color: var(--eba-gold);
    background: var(--eba-gold-soft);
}

.eba-ce__option input { position: absolute; opacity: 0; pointer-events: none; }

.eba-ce__option-marker {
    width: 20px;
    height: 20px;
    border-radius: var(--eba-radius-full);
    border: 2px solid var(--eba-border);
    flex-shrink: 0;
    transition: all var(--eba-duration-base) var(--eba-ease);
    position: relative;
}

.eba-ce__option input:checked ~ .eba-ce__option-marker {
    border-color: var(--eba-gold);
}

.eba-ce__option input:checked ~ .eba-ce__option-marker::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: inherit;
    background: var(--eba-gradient-gold);
}

.eba-ce__option:has(input:checked) {
    border-color: var(--eba-gold);
    background: var(--eba-gold-soft);
}

.eba-ce__option-text {
    color: var(--eba-charcoal);
    font-size: var(--eba-text-base);
    line-height: 1.5;
}

.eba-ce__quiz-actions {
    text-align: center;
    padding-top: var(--eba-space-5);
    border-top: 1px solid var(--eba-border);
}

.eba-ce__result {
    margin-top: var(--eba-space-5);
    padding: var(--eba-space-6);
    border-radius: var(--eba-radius-lg);
    text-align: center;
    animation: eba-scale-in 0.5s var(--eba-ease-spring);
}

.eba-ce__result.is-pass {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border: 1px solid var(--eba-success);
}

.eba-ce__result.is-fail {
    background: #fee2e2;
    border: 1px solid var(--eba-error);
}

.eba-ce__result h3 {
    font-family: var(--eba-font-heading);
    font-size: var(--eba-text-3xl);
    margin-bottom: var(--eba-space-3);
}

.eba-ce__result .eba-ce__score {
    font-family: var(--eba-font-heading);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 500;
    line-height: 1;
    margin: var(--eba-space-4) 0;
    color: var(--eba-charcoal);
}

.eba-ce__cert-number {
    display: inline-block;
    padding: 6px 14px;
    background: #ffffff;
    border: 1px dashed var(--eba-charcoal);
    border-radius: var(--eba-radius-sm);
    font-family: monospace;
    font-size: var(--eba-text-sm);
    margin: var(--eba-space-3) 0;
}
