/**
 * EBA CE Course Detail — modern single CE course page
 */

.eba-wrapper.eba-ced {
    background: var(--eba-ivory);
}

/* ===== HERO ===== */
.eba-ced__hero {
    position: relative;
    background-color: #0f172a;
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: clamp(3rem, 6vw, 5rem) 0;
    overflow: hidden;
}

.eba-ced__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.75) 100%);
    z-index: 0;
}

.eba-ced__hero-glow {
    position: absolute;
    top: -25%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 162, 76, 0.2) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.eba-ced__hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
}

.eba-ced__hero-content { min-width: 0; }

.eba-ced__hero-badges {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--eba-space-4);
}

.eba-ced__credits-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--eba-gold);
    color: var(--eba-charcoal);
    padding: 8px 14px;
    border-radius: 10px;
    line-height: 1;
    box-shadow: 0 8px 20px -6px rgba(212, 162, 76, 0.5);
}

.eba-ced__credits-badge strong {
    font-family: var(--eba-font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1;
}

.eba-ced__credits-badge small {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.eba-ced__pass-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 500;
    backdrop-filter: blur(8px);
}

.eba-ced__pass-badge svg { color: var(--eba-gold-light); }

.eba-ced__hero-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--eba-gold-light);
    margin-bottom: var(--eba-space-3);
}

.eba-wrapper.eba-ced .eba-ced__hero-title {
    font-family: var(--eba-font-heading);
    font-size: clamp(2rem, 3.5vw + 0.5rem, 3.25rem);
    line-height: 1.1;
    font-weight: 400;
    color: #ffffff !important;
    margin: 0 0 var(--eba-space-4);
    letter-spacing: -0.02em;
}

.eba-wrapper.eba-ced .eba-ced__hero-excerpt {
    font-size: clamp(1rem, 1vw + 0.6rem, 1.125rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88) !important;
    max-width: 56ch;
    margin: 0 0 var(--eba-space-4);
}

.eba-ced__hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.75rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
}

.eba-ced__hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.eba-ced__hero-meta svg {
    color: var(--eba-gold-light);
    flex-shrink: 0;
}

/* Enroll Card (right side of hero) */
.eba-ced__hero-card {
    background: #ffffff;
    color: var(--eba-charcoal);
    border-radius: 16px;
    padding: clamp(1.5rem, 2.5vw, 2rem);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.4);
}

.eba-ced__cert-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 18px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    margin-bottom: var(--eba-space-3);
    text-align: center;
}

.eba-ced__cert-badge svg { color: #15803d; }
.eba-ced__cert-badge strong { font-family: var(--eba-font-heading); font-size: 1.125rem; color: var(--eba-charcoal); }
.eba-ced__cert-badge span { font-size: 0.875rem; color: var(--eba-text-muted); }

.eba-ced__price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: var(--eba-space-3);
}

.eba-ced__price strong {
    font-family: var(--eba-font-heading);
    font-size: clamp(2rem, 2.5vw + 0.5rem, 2.5rem);
    color: var(--eba-gold-dark);
    font-weight: 500;
    line-height: 1;
}

.eba-ced__price small {
    font-size: 0.8125rem;
    color: var(--eba-text-muted);
}

/* Buttons */
.eba-wrapper.eba-ced .eba-ced__btn,
.eba-wrapper.eba-ced a.eba-ced__btn,
.eba-wrapper.eba-ced button.eba-ced__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 22px;
    background: var(--eba-charcoal) !important;
    color: #ffffff !important;
    border: 1px solid var(--eba-charcoal) !important;
    border-radius: 10px;
    font-family: var(--eba-font-body) !important;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
    text-shadow: none;
}

.eba-wrapper.eba-ced .eba-ced__btn--primary {
    background: var(--eba-gold) !important;
    border-color: var(--eba-gold) !important;
    color: var(--eba-charcoal) !important;
    box-shadow: 0 8px 20px -6px rgba(212, 162, 76, 0.5);
}

.eba-wrapper.eba-ced .eba-ced__btn--primary:hover {
    background: var(--eba-gold-light) !important;
    border-color: var(--eba-gold-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -8px rgba(212, 162, 76, 0.6);
}

.eba-wrapper.eba-ced .eba-ced__btn--ghost {
    background: #ffffff !important;
    color: var(--eba-charcoal) !important;
    border-color: var(--eba-border) !important;
    box-shadow: none;
}

.eba-wrapper.eba-ced .eba-ced__btn--ghost:hover {
    background: var(--eba-charcoal) !important;
    color: #ffffff !important;
    border-color: var(--eba-charcoal) !important;
}

.eba-wrapper.eba-ced .eba-ced__btn--sm {
    padding: 8px 16px;
    font-size: 13px;
    width: auto;
}

.eba-wrapper.eba-ced .eba-ced__btn--lg {
    padding: 16px 28px;
    font-size: 15.5px;
    width: auto;
}

.eba-ced__btn svg { transition: transform 0.2s; }
.eba-ced__btn:hover svg { transform: translateX(3px); }

/* Included list (right card) */
.eba-ced__hero-incl {
    list-style: none;
    padding: var(--eba-space-3) 0 0;
    margin: var(--eba-space-3) 0 0;
    border-top: 1px solid var(--eba-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.eba-ced__hero-incl li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--eba-text-muted);
}

.eba-ced__hero-incl svg {
    color: var(--eba-gold-dark);
    flex-shrink: 0;
}

/* ===== BODY LAYOUT ===== */
.eba-ced__body {
    padding: clamp(3rem, 5vw, 4.5rem) 0;
}

.eba-ced__layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
}

.eba-ced__main { min-width: 0; }

/* ===== SECTIONS ===== */
.eba-ced__section {
    background: #ffffff;
    border: 1px solid var(--eba-border);
    border-radius: 14px;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: clamp(1.25rem, 2vw, 1.75rem);
}

.eba-ced__section:last-child { margin-bottom: 0; }

.eba-ced__section-title {
    font-family: var(--eba-font-heading);
    font-size: clamp(1.75rem, 2.2vw + 0.6rem, 2.125rem);
    line-height: 1.15;
    color: var(--eba-charcoal);
    margin: 0 0 20px;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.eba-ced__about {
    color: var(--eba-text);
    font-size: 17px;
    line-height: 1.7;
}

.eba-ced__about h2,
.eba-ced__about h3 {
    font-family: var(--eba-font-heading);
    color: var(--eba-charcoal);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
}

.eba-ced__about h2 { font-size: 24px; }
.eba-ced__about h3 { font-size: 20px; }
.eba-ced__about p  { margin: 0 0 1em; font-size: inherit; }
.eba-ced__about ul, .eba-ced__about ol { margin: 0 0 1em 1.5em; font-size: inherit; }
.eba-ced__about li { margin: 0 0 6px; }

/* Safety-net: prevent the widget's own section H2 from being outclassed by the
   duplicate H2 that older seeded content still ships with. Widget's H2 wins visually. */
.eba-wrapper.eba-ced .eba-ced__section > .eba-ced__section-title:first-child + .eba-ced__about > h2:first-child {
    display: none;
}

/* ===== OBJECTIVES ===== */
.eba-ced__objectives {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.eba-ced__objectives li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--eba-charcoal);
    font-size: 16px;
    line-height: 1.55;
    padding: 14px 16px;
    background: var(--eba-ivory);
    border-radius: 10px;
}

.eba-ced__objectives svg {
    color: var(--eba-gold-dark);
    flex-shrink: 0;
    margin-top: 1px;
}

/* ===== QUIZ ===== */
.eba-ced__quiz-section { background: linear-gradient(135deg, #ffffff 0%, var(--eba-ivory) 100%); }

.eba-ced__quiz-head {
    margin-bottom: var(--eba-space-4);
}

.eba-ced__quiz-head .eba-ced__section-title { margin-bottom: 8px; }
.eba-ced__quiz-head p {
    color: var(--eba-text-muted);
    font-size: 0.9375rem;
    margin: 0;
}

.eba-ced__notice {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: var(--eba-ivory);
    border: 1px dashed var(--eba-border);
    border-radius: 12px;
}

.eba-ced__notice svg { color: var(--eba-gold-dark); flex-shrink: 0; }

.eba-ced__notice > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.eba-ced__notice strong {
    color: var(--eba-charcoal);
    font-size: 0.9375rem;
}

.eba-ced__question {
    border: 1px solid var(--eba-border);
    background: #ffffff;
    border-radius: 12px;
    padding: 18px;
    margin: 0 0 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.eba-ced__question:focus-within {
    border-color: var(--eba-gold);
    box-shadow: 0 0 0 4px rgba(212, 162, 76, 0.12);
}

.eba-ced__question-legend {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: var(--eba-font-heading);
    font-size: 1.0625rem;
    color: var(--eba-charcoal);
    margin-bottom: 14px;
    line-height: 1.4;
    width: 100%;
    padding: 0;
}

.eba-ced__question-num {
    width: 30px;
    height: 30px;
    background: var(--eba-gold);
    color: var(--eba-charcoal);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--eba-font-body);
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.eba-ced__options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 42px;
}

.eba-ced__option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    background: var(--eba-ivory);
    border: 1px solid var(--eba-border);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    position: relative;
}

.eba-ced__option:hover {
    background: #ffffff;
    border-color: var(--eba-gold);
}

.eba-ced__option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.eba-ced__option-marker {
    width: 20px;
    height: 20px;
    border: 2px solid var(--eba-border);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.15s, background 0.15s;
}

.eba-ced__option-marker::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: #ffffff;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.15s;
}

.eba-ced__option input:checked + .eba-ced__option-marker {
    border-color: var(--eba-gold);
    background: var(--eba-gold);
}

.eba-ced__option input:checked + .eba-ced__option-marker::after {
    transform: scale(1);
}

.eba-ced__option input:checked ~ .eba-ced__option-text {
    color: var(--eba-charcoal);
    font-weight: 600;
}

.eba-ced__option-text {
    color: var(--eba-text);
    font-size: 0.9375rem;
    line-height: 1.5;
}

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

.eba-ced__result {
    margin-top: var(--eba-space-4);
    padding: 20px;
    border-radius: 12px;
}

/* ===== FAQ ===== */
.eba-ced__faq-section .eba-ced__section-title {
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.eba-ced__faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: clamp(0.5rem, 1.5vw, 1rem);
}

.eba-ced__faq-item {
    border: 1px solid var(--eba-border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.eba-ced__faq-item[open] {
    border-color: var(--eba-gold);
    box-shadow: 0 6px 18px -8px rgba(212, 162, 76, 0.25);
}

.eba-ced__faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
    color: var(--eba-charcoal);
    font-family: var(--eba-font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s;
}

.eba-ced__faq-q::-webkit-details-marker { display: none; }
.eba-ced__faq-q::marker { content: ''; }

.eba-ced__faq-q:hover { color: var(--eba-gold-dark); }

.eba-ced__faq-caret {
    color: var(--eba-text-muted);
    transition: transform 0.3s, color 0.2s;
    flex-shrink: 0;
}

.eba-ced__faq-item[open] .eba-ced__faq-caret {
    transform: rotate(180deg);
    color: var(--eba-gold-dark);
}

.eba-ced__faq-a {
    padding: 0 20px 16px;
    color: var(--eba-text-muted);
    font-size: 0.9375rem;
    line-height: 1.65;
}

.eba-ced__faq-a p { margin: 0 0 8px; }
.eba-ced__faq-a p:last-child { margin: 0; }

/* ===== SIDEBAR ===== */
.eba-ced__sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: var(--eba-space-3);
}

.eba-ced__provider-card,
.eba-ced__share-card {
    background: #ffffff;
    border: 1px solid var(--eba-border);
    border-radius: 14px;
    padding: clamp(1.25rem, 2vw, 1.5rem);
}

.eba-ced__provider-heading {
    font-family: var(--eba-font-heading);
    font-size: 1.125rem;
    color: var(--eba-charcoal);
    margin: 0 0 var(--eba-space-3);
    font-weight: 500;
}

.eba-ced__provider-logo {
    margin-bottom: var(--eba-space-3);
}

.eba-ced__provider-logo img {
    max-width: 140px;
    height: auto;
    display: block;
}

.eba-ced__provider-name {
    font-weight: 600;
    color: var(--eba-charcoal);
    font-size: 0.9375rem;
    margin: 0 0 var(--eba-space-2);
}

.eba-ced__provider-body {
    color: var(--eba-text-muted);
    font-size: 0.8125rem;
    line-height: 1.65;
    margin: 0;
}

.eba-ced__share-card strong {
    display: block;
    font-family: var(--eba-font-body);
    color: var(--eba-charcoal);
    font-size: 0.875rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.eba-ced__share-buttons {
    display: flex;
    gap: 8px;
}

.eba-wrapper.eba-ced .eba-ced__share-buttons a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--eba-ivory) !important;
    color: var(--eba-charcoal) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.eba-wrapper.eba-ced .eba-ced__share-buttons a:hover {
    background: var(--eba-gold) !important;
    color: var(--eba-charcoal) !important;
    transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .eba-ced__hero {
        padding: clamp(2.5rem, 6vw, 4rem) 0;
    }

    .eba-ced__hero-grid {
        grid-template-columns: 1fr;
        gap: clamp(1.5rem, 3vw, 2rem);
    }

    /* Title + content FIRST, then card (better mobile UX) */
    .eba-ced__hero-content { order: 1; }
    .eba-ced__hero-card    { order: 2; max-width: 100%; margin: 0; }

    .eba-ced__layout       { grid-template-columns: 1fr; }
    .eba-ced__sidebar      { position: static; max-width: 100%; }
}

@media (max-width: 767px) {
    /* Hero — compact mobile rhythm */
    .eba-ced__hero {
        padding: 2rem 0;
    }
    .eba-ced__hero-badges {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 1rem;
    }
    .eba-ced__credits-badge {
        padding: 6px 12px;
    }
    .eba-ced__credits-badge strong { font-size: 1.25rem; }
    .eba-ced__credits-badge small  { font-size: 0.625rem; }

    .eba-ced__pass-badge { padding: 6px 12px; font-size: 11.5px; }

    .eba-ced__hero-eyebrow {
        font-size: 0.6875rem;
        letter-spacing: 0.08em;
        margin-bottom: 0.5rem;
    }

    .eba-ced__hero-title {
        font-size: 1.625rem;
        line-height: 1.15;
        margin-bottom: 0.75rem;
        color: #ffffff !important;
    }

    .eba-ced__hero-excerpt {
        font-size: 0.9375rem;
        line-height: 1.55;
        color: rgba(255, 255, 255, 0.85) !important;
        margin-bottom: 1rem;
    }

    .eba-ced__hero-meta {
        gap: 8px 12px;
        font-size: 0.8125rem;
    }
    .eba-ced__hero-meta svg { width: 14px; height: 14px; }

    /* Compact enrollment card */
    .eba-ced__hero-card {
        padding: 1.25rem;
        border-radius: 14px;
    }

    .eba-ced__price strong { font-size: 1.875rem; }

    .eba-wrapper.eba-ced .eba-ced__btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .eba-ced__hero-incl {
        padding-top: 0.875rem;
        margin-top: 0.875rem;
        gap: 6px;
    }
    .eba-ced__hero-incl li { font-size: 12.5px; }

    /* Body — tighter section padding */
    .eba-ced__body { padding: 2rem 0; }

    .eba-ced__section {
        padding: 1.25rem;
        border-radius: 12px;
        margin-bottom: 1rem;
    }

    .eba-ced__section-title {
        font-size: 1.25rem;
        margin-bottom: 0.875rem;
    }

    .eba-ced__about {
        font-size: 0.9375rem;
        line-height: 1.65;
    }
    .eba-ced__about h2 { font-size: 1.15rem; }
    .eba-ced__about h3 { font-size: 1rem; }

    /* Objectives — single column */
    .eba-ced__objectives { grid-template-columns: 1fr; gap: 8px; }
    .eba-ced__objectives li {
        padding: 10px 12px;
        font-size: 0.875rem;
    }

    /* Quiz */
    .eba-ced__quiz-head p { font-size: 0.875rem; }
    .eba-ced__question { padding: 14px; }
    .eba-ced__question-legend {
        font-size: 0.9375rem;
        gap: 10px;
        margin-bottom: 12px;
    }
    .eba-ced__question-num { width: 26px; height: 26px; font-size: 12px; }
    .eba-ced__options { padding-left: 0; }
    .eba-ced__option {
        padding: 10px 12px;
        gap: 10px;
    }
    .eba-ced__option-text { font-size: 0.875rem; }

    .eba-ced__notice {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
    .eba-ced__notice > div { align-items: center; }

    /* FAQ */
    .eba-ced__faq-q {
        padding: 14px 16px;
        font-size: 0.875rem;
    }
    .eba-ced__faq-a {
        padding: 0 16px 14px;
        font-size: 0.875rem;
    }

    /* Layout — sidebar below main */
    .eba-ced__layout { gap: 1rem; }

    /* Provider sidebar — single card */
    .eba-ced__provider-card,
    .eba-ced__share-card {
        padding: 1.25rem;
    }
    .eba-ced__provider-heading { font-size: 1rem; }
    .eba-ced__provider-name    { font-size: 0.875rem; }
    .eba-ced__provider-body    { font-size: 0.8125rem; }
}

@media (max-width: 420px) {
    .eba-ced__hero-title { font-size: 1.5rem; }
    .eba-ced__hero-meta span:nth-child(n+4) { display: none; } /* Hide overflow meta items */
    .eba-ced__hero-incl { grid-template-columns: 1fr; }
    .eba-ced__hero-card { padding: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .eba-ced__btn,
    .eba-ced__share-buttons a,
    .eba-ced__faq-caret,
    .eba-ced__option-marker::after {
        transition: none !important;
    }
}
