/**
 * EBA Single Course Detail — Theme Builder ready
 */

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

/* ===== HERO ===== */
.eba-cp__hero {
    position: relative;
    background: var(--eba-charcoal);
    color: #ffffff;
    padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
    overflow: hidden;
    isolation: isolate;
}

.eba-cp__hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.55;
    z-index: 0;
}

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

.eba-cp__hero-inner {
    position: relative;
    z-index: 2;
}

.eba-cp__category {
    color: var(--eba-gold-light) !important;
    margin-bottom: var(--eba-space-3) !important;
}

.eba-cp__title {
    font-family: var(--eba-font-heading);
    font-size: clamp(2rem, 3.5vw + 0.5rem, 3.5rem);
    color: #ffffff;
    line-height: 1.1;
    font-weight: 400;
    margin: 0 0 var(--eba-space-4);
    letter-spacing: -0.01em;
    max-width: 18ch;
}

.eba-cp__excerpt {
    font-size: clamp(1.0625rem, 1vw + 0.5rem, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0 0 var(--eba-space-5);
    max-width: 60ch;
}

.eba-cp__meta {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1rem, 2vw, 2rem);
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--eba-text-sm);
    margin-bottom: var(--eba-space-5);
    padding-bottom: var(--eba-space-5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.eba-cp__meta span { display: inline-flex; align-items: center; gap: 6px; }
.eba-cp__meta svg { color: var(--eba-gold-light); }

.eba-cp__hero-actions {
    display: flex;
    align-items: center;
    gap: var(--eba-space-4);
    flex-wrap: wrap;
}

.eba-cp__price {
    font-family: var(--eba-font-heading);
    font-size: clamp(1.875rem, 2.5vw, 2.75rem);
    color: var(--eba-gold-light);
    font-weight: 500;
    line-height: 1;
}

.eba-cp__progress {
    display: flex;
    align-items: center;
    gap: var(--eba-space-3);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    padding: var(--eba-space-3) var(--eba-space-4);
    border-radius: var(--eba-radius-full);
    flex: 1;
    min-width: 240px;
    max-width: 360px;
}

.eba-cp__progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--eba-radius-full);
    overflow: hidden;
}

.eba-cp__progress-bar span {
    display: block;
    height: 100%;
    background: var(--eba-gradient-gold);
    border-radius: inherit;
    transition: width 0.6s var(--eba-ease);
}

.eba-cp__progress-text {
    color: var(--eba-gold-light);
    font-size: var(--eba-text-xs);
    font-weight: 600;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ===== BODY (2-column) ===== */
.eba-cp__body { padding: clamp(3rem, 5vw, 5rem) 0; }

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

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

.eba-cp__section { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.eba-cp__section:last-child { margin-bottom: 0; }

.eba-cp__section-title {
    font-family: var(--eba-font-heading);
    font-size: clamp(1.5rem, 2vw + 0.5rem, 2.25rem);
    color: var(--eba-charcoal);
    font-weight: 500;
    margin: 0 0 var(--eba-space-5);
    letter-spacing: -0.01em;
}

/* ===== OUTCOMES ===== */
.eba-cp__outcomes-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--eba-space-3) var(--eba-space-5);
    background: #ffffff;
    border: 1px solid var(--eba-border);
    border-radius: var(--eba-radius-lg);
    padding: clamp(1.5rem, 3vw, 2rem);
}

.eba-cp__outcomes-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--eba-space-2);
    color: var(--eba-text);
    font-size: var(--eba-text-base);
    line-height: 1.5;
}

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

/* ===== ABOUT (description) ===== */
.eba-cp__description {
    font-size: var(--eba-text-lg);
    line-height: 1.75;
    color: var(--eba-text-muted);
}

.eba-cp__description p { margin-bottom: var(--eba-space-4); }
.eba-cp__description h2,
.eba-cp__description h3,
.eba-cp__description h4 { color: var(--eba-charcoal); margin-top: var(--eba-space-5); margin-bottom: var(--eba-space-3); }
.eba-cp__description ul, .eba-cp__description ol { margin: var(--eba-space-3) 0 var(--eba-space-4) var(--eba-space-5); }

/* ===== CURRICULUM ===== */
.eba-cp__curriculum-section {
    background: #ffffff;
    border: 1px solid var(--eba-border);
    border-radius: var(--eba-radius-lg);
    padding: clamp(1.5rem, 3vw, 2rem);
}

.eba-cp__curriculum-meta {
    color: var(--eba-text-muted);
    font-size: var(--eba-text-sm);
    margin: -1rem 0 var(--eba-space-4);
}

.eba-cp__lesson-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ===== Module-grouped curriculum (Course Player) ===== */
.eba-cp__modules {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.eba-cp__module {
    border: 1px solid #eee6d3;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.eba-cp__module[open] {
    box-shadow: 0 2px 12px rgba(15, 28, 46, 0.06);
}

.eba-cp__module-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background 0.2s ease;
}
.eba-cp__module-head::-webkit-details-marker { display: none; }
.eba-cp__module-head::marker { content: ''; }
.eba-cp__module-head:hover {
    background: rgba(201, 154, 84, 0.05);
}

.eba-cp__module-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(201, 154, 84, 0.12);
    color: #c99a54;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}
.eba-cp__module[open] > .eba-cp__module-head .eba-cp__module-chevron {
    transform: rotate(90deg);
}

.eba-cp__module-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.eba-cp__module-title {
    font-family: var(--eba-font-heading);
    font-size: 17px;
    font-weight: 600;
    color: #0f1c2e;
    line-height: 1.35;
    letter-spacing: 0.005em;
}

.eba-cp__module-meta {
    font-family: var(--eba-font-body);
    font-size: 13px;
    color: var(--eba-text-muted);
    font-weight: 400;
}

.eba-cp__module .eba-cp__lesson-list {
    padding: 4px 14px 16px;
    gap: 4px;
    background: #fbf8f0;
    border-top: 1px solid #f3ecdb;
}

.eba-cp__lesson-link {
    display: flex;
    align-items: center;
    gap: var(--eba-space-3);
    padding: var(--eba-space-3) var(--eba-space-4);
    border: 1px solid var(--eba-border);
    border-radius: var(--eba-radius-md);
    text-decoration: none;
    color: var(--eba-charcoal) !important;
    transition: all 0.2s var(--eba-ease);
    background: #ffffff;
}

.eba-cp__lesson-link:hover:not(.is-disabled) {
    background: var(--eba-gold-soft);
    border-color: var(--eba-gold);
    transform: translateX(4px);
}

.eba-cp__lesson-link.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: var(--eba-ivory);
}

.eba-cp__lesson-status {
    width: 32px;
    height: 32px;
    border-radius: var(--eba-radius-full);
    background: var(--eba-ivory-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--eba-text-muted);
    flex-shrink: 0;
}

.eba-cp__lesson.is-completed .eba-cp__lesson-status {
    background: var(--eba-gradient-gold);
    color: #ffffff;
}

.eba-cp__lesson-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.eba-cp__lesson-title {
    font-weight: 500;
    line-height: 1.4;
    font-size: var(--eba-text-base);
    color: var(--eba-charcoal);
}

.eba-cp__lesson-meta {
    font-size: var(--eba-text-xs);
    color: var(--eba-text-muted);
}

.eba-cp__lesson.is-preview .eba-cp__lesson-meta strong { color: var(--eba-gold-dark); }

/* ===== INSTRUCTOR ===== */
.eba-cp__instructor-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: var(--eba-space-5);
    background: #ffffff;
    border: 1px solid var(--eba-border);
    border-radius: var(--eba-radius-lg);
    padding: clamp(1.5rem, 3vw, 2rem);
    align-items: start;
}

.eba-cp__instructor-photo {
    width: 140px;
    height: 140px;
    border-radius: var(--eba-radius-full);
    object-fit: cover;
    border: 4px solid var(--eba-gold-soft);
}

.eba-cp__instructor-name {
    font-family: var(--eba-font-heading);
    font-size: var(--eba-text-2xl);
    color: var(--eba-charcoal);
    margin: 0 0 4px;
    font-weight: 500;
}

.eba-cp__instructor-title {
    color: var(--eba-gold-dark);
    font-size: var(--eba-text-sm);
    margin: 0 0 var(--eba-space-3);
    font-weight: 500;
}

.eba-cp__instructor-bio {
    color: var(--eba-text-muted);
    line-height: 1.7;
    margin: 0 0 var(--eba-space-3);
}

.eba-cp__instructor-credentials {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.eba-cp__instructor-credentials li {
    display: flex;
    align-items: center;
    gap: var(--eba-space-2);
    font-size: var(--eba-text-sm);
    color: var(--eba-text-muted);
}

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

/* ===== FAQ ===== */
.eba-cp__faq-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--eba-space-3);
}

.eba-cp__faq-item {
    background: #ffffff;
    border: 1px solid var(--eba-border);
    border-radius: var(--eba-radius-md);
    overflow: hidden;
    transition: all 0.2s var(--eba-ease);
}

.eba-cp__faq-item.is-open { border-color: var(--eba-gold); box-shadow: var(--eba-shadow-sm); }

.eba-cp__faq-q {
    width: 100%;
    background: transparent;
    border: 0;
    padding: var(--eba-space-4) var(--eba-space-5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--eba-space-3);
    cursor: pointer;
    text-align: left;
    font-family: var(--eba-font-heading);
    font-size: var(--eba-text-lg);
    color: var(--eba-charcoal);
    line-height: 1.4;
}

.eba-cp__faq-q svg {
    flex-shrink: 0;
    color: var(--eba-text-muted);
    transition: transform 0.2s var(--eba-ease);
}

.eba-cp__faq-item.is-open .eba-cp__faq-q svg { transform: rotate(180deg); color: var(--eba-gold-dark); }

.eba-cp__faq-a {
    padding: 0 var(--eba-space-5) var(--eba-space-4);
    color: var(--eba-text-muted);
    line-height: 1.7;
}

.eba-cp__faq-a p { margin-bottom: var(--eba-space-2); }

/* ===== STICKY ENROLLMENT CARD ===== */
.eba-cp__sidebar {
    position: sticky;
    top: 100px;
}

.eba-cp__enroll-card {
    background: #ffffff;
    border: 1px solid var(--eba-border);
    border-radius: var(--eba-radius-xl);
    overflow: hidden;
    box-shadow: var(--eba-shadow-lg);
}

.eba-cp__enroll-thumb {
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
}

.eba-cp__enroll-body {
    padding: var(--eba-space-5);
}

.eba-cp__enroll-price {
    font-family: var(--eba-font-heading);
    font-size: clamp(2rem, 2.5vw, 2.75rem);
    color: var(--eba-gold-dark);
    font-weight: 500;
    line-height: 1;
    margin-bottom: var(--eba-space-4);
    letter-spacing: -0.01em;
}

.eba-cp__enroll-progress {
    display: flex;
    align-items: center;
    gap: var(--eba-space-2);
    margin-top: var(--eba-space-3);
    font-size: var(--eba-text-xs);
    color: var(--eba-text-muted);
}

.eba-cp__enroll-progress .eba-cp__progress-bar {
    height: 4px;
}

.eba-cp__enroll-includes {
    margin-top: var(--eba-space-5);
    padding-top: var(--eba-space-4);
    border-top: 1px solid var(--eba-border);
}

.eba-cp__enroll-includes h4 {
    font-family: var(--eba-font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--eba-text-subtle);
    margin: 0 0 var(--eba-space-3);
    font-weight: 600;
}

.eba-cp__enroll-includes ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.eba-cp__enroll-includes li {
    display: flex;
    align-items: center;
    gap: var(--eba-space-2);
    font-size: var(--eba-text-sm);
    color: var(--eba-text-muted);
}

.eba-cp__highlight-icon,
.eba-cp__enroll-includes svg {
    color: var(--eba-gold-dark);
    flex-shrink: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .eba-cp__layout { grid-template-columns: 1fr; }
    .eba-cp__sidebar { position: static; order: -1; max-width: 480px; margin: 0 auto; }
    .eba-cp__outcomes-list { grid-template-columns: 1fr; }
    .eba-cp__instructor-card { grid-template-columns: 1fr; text-align: center; }
    .eba-cp__instructor-photo { margin: 0 auto; }
    .eba-cp__instructor-credentials { align-items: center; }
    .eba-cp__instructor-credentials li { justify-content: center; }
}

@media (max-width: 640px) {
    .eba-cp__hero-actions { flex-direction: column; align-items: stretch; }
    .eba-cp__hero-actions .eba-btn { width: 100%; justify-content: center; }
    .eba-cp__progress { max-width: none; }
    .eba-cp__price { text-align: center; }
}
