/* =========================================================================
 * EIASM Course Module Table — Spotlight Variant
 *
 * Dark immersive presentation: ink background, decorative blur blobs,
 * translucent card surfaces, gradient-fill title, white text throughout.
 * Dark-mode defeat of Elementor color globals is crucial — every text/
 * background rule uses !important where Elementor can inject a contrast
 * via --e-global-color-* or Theme Style.
 * ========================================================================= */

.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-spotlight {
    position: relative;
    background: var(--eiasm-ink) !important;  /* beats Elementor bg overrides */
    border-radius: var(--eiasm-radius-xl);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2.5rem 1.5rem;
    z-index: 0;
    color: #fff !important;
}
@media (min-width: 768px) {
    .eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-spotlight {
        padding: 3rem 2.5rem;
    }
}

/* Flip all heading colors on dark surface. !important required — beats the
   base-stylesheet heading rule which is itself !important. Specificity
   (0,4,x) on doubled wrap + variant + element. */
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight.eiasm-cmt-wrap--spotlight h1,
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight.eiasm-cmt-wrap--spotlight h2,
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight.eiasm-cmt-wrap--spotlight h3,
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight.eiasm-cmt-wrap--spotlight h4 {
    color: #fff !important;
}

/* ── Decorative blur blobs ───────────────────────────────────────────── */
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-sp-blob {
    position: absolute;
    width: 24rem;
    height: 24rem;
    border-radius: 9999px;
    filter: blur(80px);
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 0;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-sp-blob--a {
    top: 0;
    left: 0;
    background: rgba(21, 135, 168, 0.2);
    transform: translate(-33%, -33%);
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-sp-blob--b {
    bottom: 8rem;
    right: 0;
    background: rgba(168, 200, 52, 0.1);
    transform: translate(33%, 25%);
}

/* ── Header (gradient title + light desc) ────────────────────────────── */
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-sp-header {
    position: relative;
    z-index: 10;
    margin-bottom: 2.5rem;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-sp-title {
    font-size: 40px !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem !important;
    background: linear-gradient(to right, var(--eiasm-teal), var(--eiasm-lime));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent !important;  /* required for fallback rendering */
}
@media (max-width: 640px) {
    .eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-sp-title {
        font-size: 32px !important;
    }
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-sp-desc {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7) !important;
    max-width: 600px;
    font-family: var(--eiasm-font-body) !important;
}
@media (min-width: 640px) {
    .eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-sp-desc {
        font-size: 16px;
    }
}

/* ── Section ─────────────────────────────────────────────────────────── */
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-sp-section {
    position: relative;
    z-index: 10;
    margin-bottom: 2.5rem;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-sp-section__eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.6) !important;
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--eiasm-font-body) !important;  /* smaller caps not display */
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-sp-section__heading {
    font-size: 24px !important;
    line-height: 1.2 !important;
    margin-bottom: 1.25rem !important;
    color: #fff !important;
}
@media (max-width: 640px) {
    .eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-sp-section__heading {
        font-size: 20px !important;
    }
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-sp-section__caption {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.6) !important;
    margin-bottom: 1rem;
}

/* ── Grid + cards ────────────────────────────────────────────────────── */
/*
 * Mobile: 2-col default at 420px+ for compact scanning (v1.6.2).
 * Very narrow viewports fall back to 1-col.
 */
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-sp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
@media (min-width: 420px) {
    .eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-sp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.875rem;
    }
}
@media (min-width: 1024px) {
    .eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-sp-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }
}

.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-sp-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--eiasm-radius-lg);
    padding: 1rem;
    transition: border-color 0.2s ease;
    z-index: 10;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
@media (min-width: 640px) {
    .eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-sp-card {
        padding: 1.5rem;
        gap: 0.75rem;
    }
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-sp-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-sp-card__chip-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-sp-card__name {
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: #fff !important;
    font-family: var(--eiasm-font-display) !important;
    margin: 0 !important;
}
@media (max-width: 640px) {
    .eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-sp-card__name {
        font-size: 15px !important;
    }
}

/* Chip */
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-sp-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.625rem;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--eiasm-radius-sm);
    color: #fff !important;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.15);
    /* Long type labels ("RESEARCH METHODOLOGY") must wrap rather than push
       the credit pill off-card on narrow columns. */
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    min-width: 0;
    flex-shrink: 1;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-sp-chip--capstone {
    background: var(--eiasm-lime) !important;
    color: var(--eiasm-ink) !important;
    border-color: var(--eiasm-lime);
}

/* Credits */
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-sp-credits {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.625rem;
    border-radius: var(--eiasm-radius-sm);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.3;
    white-space: nowrap;
    flex-shrink: 0;  /* pin width so long chips don't push credits off-card */
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-sp-credits--standard {
    background: transparent;
    color: var(--eiasm-teal) !important;
    border: 1px solid var(--eiasm-teal);
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-sp-credits--capstone {
    background: var(--eiasm-lime) !important;
    color: var(--eiasm-ink) !important;
    border: 1px solid var(--eiasm-lime);
}

/* Bucket card (dual-stage) */
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-sp-bucket-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-sp-card--bucket {
    width: 100%;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-sp-topics {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-sp-topics li {
    position: relative;
    padding-left: 1rem;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7) !important;
    font-family: var(--eiasm-font-body) !important;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-sp-topics li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.625rem;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 9999px;
}

/* Dual-stage stage header */
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-sp-stage {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-sp-stage__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-sp-stage__credits {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Price row (dual-stage) */
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-sp-price {
    position: relative;
    z-index: 10;
    padding: 1rem 1.25rem;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--eiasm-radius-lg);
    text-align: right;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-sp-price__amount {
    color: var(--eiasm-teal) !important;
    font-family: var(--eiasm-font-display) !important;
    font-size: 16px;
    font-weight: 700;
    margin-right: 0.5rem;
}

/* ── Track accordion (tracked-pool) ──────────────────────────────────── */
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-track-list--spotlight {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-track--spotlight {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--eiasm-radius-lg);
    overflow: hidden;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-track--spotlight .eiasm-cmt-track__toggle {
    width: 100%;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: transparent !important;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-track--spotlight .eiasm-cmt-track__toggle:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-track--spotlight .eiasm-cmt-track__name {
    font-family: var(--eiasm-font-display) !important;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-track--spotlight.eiasm-cmt-track--expanded .eiasm-cmt-track__name {
    color: #fff;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-track--spotlight .eiasm-cmt-track__count {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-left: auto;
    margin-right: 0.75rem;
}
@media (max-width: 640px) {
    .eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-track--spotlight .eiasm-cmt-track__count {
        display: none;
    }
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-track--spotlight .eiasm-cmt-track__chevron {
    display: inline-flex;
    width: 1.25rem;
    height: 1.25rem;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.2s ease, color 0.2s ease;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-track--spotlight .eiasm-cmt-track__chevron svg {
    width: 100%;
    height: 100%;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-track--spotlight.eiasm-cmt-track--expanded .eiasm-cmt-track__chevron {
    transform: rotate(180deg);
    color: var(--eiasm-teal);
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-track--spotlight .eiasm-cmt-track__body {
    display: none;
    padding: 0 1.5rem 1.5rem;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-track--spotlight.eiasm-cmt-track--expanded .eiasm-cmt-track__body {
    display: block;
}

/* ── Residual row ────────────────────────────────────────────────────── */
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-sp-residual {
    position: relative;
    z-index: 10;
    padding: 1.25rem;
    margin-top: 1rem;
    background: rgba(168, 200, 52, 0.1);
    border: 1px solid rgba(168, 200, 52, 0.3);
    border-radius: var(--eiasm-radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-sp-residual__label {
    font-size: 14px !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff !important;
}

/* ── Total strip ─────────────────────────────────────────────────────── */
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-sp-total {
    position: relative;
    z-index: 10;
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
    background: linear-gradient(to right, rgba(21, 135, 168, 0.15), rgba(168, 200, 52, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--eiasm-radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-sp-total__label {
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #fff !important;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--spotlight .eiasm-cmt-sp-total__credits {
    font-family: var(--eiasm-font-display) !important;
    font-weight: 700;
    font-size: 14px;
    color: #fff !important;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
