/* ==========================================================================
   PETCIX ACADEMY — COURSE DETAIL PAGE STYLES (GEN-Z RESPONSIVE REDESIGN)
   ==========================================================================
   Extends base.css with a polished, compact, accessible, and responsive
   design system tailored for modern learners across all device breakpoints.
   ========================================================================== */

/* ==========================================================================
   0. COLOR & ACCENT TOKENS
   ========================================================================== */
:root {
    --cd-primary-magenta: #ce4ede;
    --cd-primary-purple: #6d3dd2;
    --cd-accent: #e8629a;
    --cd-accent-light: #f472b6;
    --cd-accent-soft: #fda4c8;
    --cd-accent-alt: #9b7bef;
    --cd-accent-alt-lt: #c4a8ff;
    --cd-accent-rose: #fb7fac;
    --cd-accent-blush: #fdf2f8;
    --cd-surface-card: #ffffff;
    --cd-surface-card-subtle: #faf8fd;
    --cd-border-subtle: rgba(206, 78, 222, 0.12);
    --cd-border-hover: rgba(206, 78, 222, 0.28);
    --cd-table-header-bg: #6c3ceb;
    --cd-table-row-hover: #faf8ff;
    --cd-table-border: #ece7fb;
    --cd-text-primary: #1e1026;
    --cd-text-secondary: #4a3633;
    --cd-text-muted: #6e5e5b;
}


/* ==========================================================================
   1. PAGE CONTAINER & BASE SPACING
   ========================================================================== */
.cd-page {
    padding-top: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, #fae9f9 0%, #fdf6fc 350px, #faf4fb 100%);
}


/* ==========================================================================
   2. HERO SECTION (RESPONSIVE & BALANCED CROPPING)
   ========================================================================== */
.cd-hero {
    position: relative;
    width: calc(100% - 3rem);
    max-width: var(--container-max, 1240px);
    margin: 0.5rem auto 1.5rem;
    padding-top: 6.5rem;
    padding-bottom: 2.25rem;
    min-height: clamp(420px, 48vh, 520px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: 0 0 36px 36px;
    box-shadow: 0 12px 36px rgba(109, 61, 210, 0.14);
}

.cd-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cd-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    transform: scale(1.01);
    transition: transform 0.6s var(--ease-premium), object-position 0.3s ease;
}

.cd-hero:hover .cd-hero-bg img {
    transform: scale(1.03);
}

.cd-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(20, 10, 30, 0.1) 0%,
            rgba(20, 10, 30, 0.32) 42%,
            rgba(15, 8, 22, 0.88) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Watermarks */
.cd-hero-decor {
    position: absolute;
    font-size: 7rem;
    opacity: 0.08;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

.cd-hero-decor--1 {
    top: 20px;
    right: 40px;
    transform: rotate(15deg);
}

.cd-hero-decor--2 {
    bottom: 30px;
    left: 20px;
    transform: rotate(-20deg);
    font-size: 5rem;
}

.cd-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 0.5rem;
}

.cd-hero-paw {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(232, 98, 154, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    font-size: 1.25rem;
    margin-bottom: 0.65rem;
    border: 1px solid rgba(244, 114, 182, 0.4);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(232, 98, 154, 0.3);
}

.cd-hero-title {
    color: #ffffff;
    font-size: clamp(1.4rem, 3.2vw, 2.35rem);
    font-weight: 800;
    line-height: 1.22;
    margin-bottom: 0.85rem;
    max-width: 820px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    word-break: break-word;
}

.cd-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.cd-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full, 9999px);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: all 0.25s var(--ease-premium);
}

.cd-hero-badge:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

.cd-hero-badge--fee {
    background: linear-gradient(135deg, rgba(206, 78, 222, 0.45), rgba(109, 61, 210, 0.55));
    border-color: rgba(255, 255, 255, 0.45);
    font-weight: 700;
}


/* ==========================================================================
   2B. FREE ENROLLMENT BONUS STRIP
   ========================================================================== */
.cd-bonus-strip {
    background: linear-gradient(135deg, #fff5fb 0%, #faf0ff 52%, #f5eefc 100%);
    border: 1px solid rgba(206, 78, 222, 0.22);
    border-radius: 16px;
    padding: 0.65rem 1.25rem;
    margin-bottom: 0.45rem;
    box-shadow: 0 4px 18px rgba(109, 61, 210, 0.05), 0 1px 3px rgba(206, 78, 222, 0.08);
    transition: all 0.25s var(--ease-premium, cubic-bezier(0.16, 1, 0.3, 1));
}

.cd-bonus-strip:hover {
    border-color: rgba(206, 78, 222, 0.36);
    box-shadow: 0 6px 22px rgba(109, 61, 210, 0.09), 0 2px 6px rgba(206, 78, 222, 0.12);
}

.cd-bonus-strip-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.cd-bonus-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: transparent;
}

.cd-bonus-gift-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    background: transparent;
    border: none;
    outline: none;
    filter: drop-shadow(0 4px 8px rgba(109, 61, 210, 0.18));
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cd-bonus-strip:hover .cd-bonus-gift-img {
    transform: scale(1.08) rotate(-3deg);
}

.cd-bonus-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
    min-width: 0;
}

.cd-bonus-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.cd-bonus-eyebrow {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--cd-primary-purple, #6d3dd2);
    background: rgba(109, 61, 210, 0.08);
    padding: 2.5px 8px;
    border-radius: var(--radius-full, 9999px);
    display: inline-block;
    line-height: 1.2;
}

.cd-bonus-sep {
    font-size: 0.75rem;
    color: rgba(109, 61, 210, 0.35);
    user-select: none;
}

.cd-bonus-title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
    color: #3b1459;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

.cd-bonus-emoji {
    font-size: 0.98rem;
    line-height: 1;
}

.cd-bonus-details {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem 1.15rem;
}

.cd-bonus-list {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.cd-bonus-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #241432;
    line-height: 1.35;
}

.cd-bonus-check {
    font-size: 0.82rem;
    color: var(--cd-primary-purple, #6d3dd2);
    flex-shrink: 0;
}

.cd-bonus-note {
    font-size: 0.76rem;
    font-weight: 500;
    color: #6e5e5b;
    font-style: italic;
    line-height: 1.3;
}

.cd-bonus-badge-wrap {
    margin-left: auto;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.cd-bonus-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff;
    background: linear-gradient(135deg, #ce4ede 0%, #6d3dd2 100%);
    padding: 5px 12px;
    border-radius: var(--radius-full, 9999px);
    box-shadow: 0 2px 8px rgba(109, 61, 210, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.35);
    white-space: nowrap;
}

.cd-bonus-pill i {
    font-size: 0.68rem;
}


/* ==========================================================================
   3. TWO-COLUMN GRID LAYOUT
   ========================================================================== */
.cd-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1.75rem;
    padding: 0.75rem 0 3.5rem;
    align-items: start;
}

.cd-left-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}

.cd-right-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: sticky;
    top: 90px;
    min-width: 0;
}


/* ==========================================================================
   4. TOP ACTION BAR (BACK LINK + FLOATING ENROLL)
   ========================================================================== */
.cd-top-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 0.25rem;
}

.cd-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--cd-primary-purple);
    text-decoration: none;
    transition: all 0.25s var(--ease-premium);
    padding: 6px 12px;
    background: rgba(109, 61, 210, 0.06);
    border: 1px solid rgba(109, 61, 210, 0.14);
    border-radius: var(--radius-full, 9999px);
}

.cd-back-link:hover {
    background: rgba(109, 61, 210, 0.12);
    color: var(--cd-primary-magenta);
    gap: 8px;
    transform: translateX(-2px);
}

.cd-back-link i {
    font-size: 0.76rem;
    transition: transform 0.25s var(--ease-premium);
}

.cd-enroll-action-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cd-admissions-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(206, 78, 222, 0.22);
    border-radius: var(--radius-full, 9999px);
    font-size: 0.75rem;
    font-weight: 700;
    color: #86198f;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 8px rgba(206, 78, 222, 0.08);
}

.cd-admissions-badge i {
    color: #e11d48;
    font-size: 0.78rem;
}

.cd-badge-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    animation: cd-pulse-green 2s infinite;
}

@keyframes cd-pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.cd-enroll-compact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    font-family: var(--font-sans);
    color: #ffffff;
    background: linear-gradient(135deg, #ff4081 0%, var(--cd-primary-magenta) 50%, var(--cd-primary-purple) 100%);
    border: none;
    border-radius: var(--radius-full, 9999px);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(206, 78, 222, 0.35);
    transition: all 0.3s var(--ease-premium);
}

.cd-enroll-compact-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(206, 78, 222, 0.48);
    color: #ffffff;
}

.cd-enroll-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    font-size: 0.72rem;
}

.cd-enroll-btn-text {
    font-size: 0.88rem;
    font-weight: 800;
}

.cd-enroll-btn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    transition: transform 0.25s var(--ease-premium);
}

.cd-enroll-compact-btn:hover .cd-enroll-btn-arrow {
    transform: translateX(3px);
}


/* ==========================================================================
   5. SHARED CARD STYLES
   ========================================================================== */
.cd-card {
    background: var(--cd-surface-card);
    border-radius: 24px;
    padding: 1.75rem;
    box-shadow: 0 4px 20px rgba(109, 61, 210, 0.05),
        0 1px 3px rgba(49, 27, 23, 0.03);
    border: 1px solid var(--cd-border-subtle);
    transition: all 0.3s var(--ease-premium);
    position: relative;
}

.cd-card:hover {
    border-color: var(--cd-border-hover);
    box-shadow: 0 8px 28px rgba(109, 61, 210, 0.08);
}

.cd-card-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--cd-primary-magenta);
    background: rgba(206, 78, 222, 0.08);
    border: 1px solid rgba(206, 78, 222, 0.18);
    border-radius: var(--radius-full, 9999px);
    margin-bottom: 0.75rem;
}

.cd-card-heading {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1.15rem;
    color: var(--cd-text-primary);
    line-height: 1.3;
}


/* ==========================================================================
   6. COURSE ESSENTIALS GRID (CLEAN & COMPACT)
   ========================================================================== */
.cd-essentials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.cd-essential-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--cd-surface-card-subtle);
    border: 1px solid rgba(206, 78, 222, 0.1);
    border-radius: 16px;
    transition: all 0.25s var(--ease-premium);
}

.cd-essential-card:hover {
    background: #ffffff;
    border-color: rgba(206, 78, 222, 0.25);
    box-shadow: 0 4px 14px rgba(206, 78, 222, 0.07);
    transform: translateY(-1px);
}

.cd-essential-card--wide {
    grid-column: 1 / -1;
}

.cd-essential-card--fee {
    background: linear-gradient(145deg, #ffffff 0%, #fff7fb 100%);
    border-color: rgba(206, 78, 222, 0.22);
}

.cd-essential-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cd-primary-magenta), var(--cd-primary-purple));
    border-radius: 10px;
    font-size: 0.95rem;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(206, 78, 222, 0.25);
}

.cd-essential-body {
    flex: 1;
    min-width: 0;
}

.cd-essential-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--cd-text-muted);
    margin-bottom: 2px;
}

.cd-essential-value {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--cd-text-primary);
    line-height: 1.45;
    word-break: break-word;
}

.cd-hours-pill {
    display: inline-block;
    padding: 2px 7px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--cd-primary-purple);
    background: rgba(109, 61, 210, 0.08);
    border: 1px solid rgba(109, 61, 210, 0.16);
    border-radius: 6px;
    margin-left: 5px;
    vertical-align: middle;
}

.cd-fee-highlight {
    font-size: 1.05rem;
    font-weight: 800;
    color: #a21caf;
}

.cd-install-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    font-size: 0.68rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    color: #ffffff;
    border-radius: var(--radius-full, 9999px);
    margin-left: 6px;
    letter-spacing: 0.2px;
}

.cd-eligibility-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 3px;
}

.cd-eligibility-item {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--cd-text-secondary);
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.cd-eligibility-item i {
    color: #22c55e;
    font-size: 0.78rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.cd-outcome-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
}

.cd-outcome-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(109, 61, 210, 0.07);
    color: var(--cd-primary-purple);
    border-radius: var(--radius-full, 9999px);
    border: 1px solid rgba(109, 61, 210, 0.15);
    transition: all 0.2s var(--ease-premium);
}

.cd-outcome-tag:hover {
    background: var(--cd-primary-purple);
    color: #ffffff;
    border-color: var(--cd-primary-purple);
    transform: translateY(-1px);
}


/* ==========================================================================
   7. BATCH INFORMATION
   ========================================================================== */
.cd-batches-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 0.25rem;
}

.cd-batch-card {
    background: linear-gradient(145deg, #ffffff 0%, #fdf8fb 100%);
    border: 1.5px solid rgba(206, 78, 222, 0.16);
    border-radius: 18px;
    padding: 1.25rem;
    transition: all 0.3s var(--ease-premium);
    position: relative;
    box-shadow: 0 2px 10px rgba(109, 61, 210, 0.04);
}

.cd-batch-card:hover {
    transform: translateY(-2px);
    border-color: rgba(206, 78, 222, 0.4);
    box-shadow: 0 8px 24px rgba(206, 78, 222, 0.12);
}

.cd-batch-card--primary {
    border-color: rgba(109, 61, 210, 0.35);
    background: linear-gradient(145deg, #ffffff 0%, #f7f4fe 100%);
}

.cd-batch-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px dashed rgba(206, 78, 222, 0.18);
}

.cd-batch-title-box {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.cd-batch-badge {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--cd-text-primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cd-batch-badge i {
    color: var(--cd-primary-magenta);
}

.cd-batch-pill-primary {
    background: rgba(206, 78, 222, 0.1);
    color: var(--cd-primary-magenta);
    border: 1px solid rgba(206, 78, 222, 0.25);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.cd-batch-num {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--cd-primary-purple);
    background: rgba(109, 61, 210, 0.08);
    padding: 2px 7px;
    border-radius: 6px;
}

.cd-batch-meta-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cd-batch-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cd-batch-meta-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(206, 78, 222, 0.08);
    color: var(--cd-primary-magenta);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.cd-batch-card--primary .cd-batch-meta-icon {
    background: rgba(109, 61, 210, 0.08);
    color: var(--cd-primary-purple);
}

.cd-batch-meta-label {
    display: block;
    font-size: 0.68rem;
    color: var(--cd-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    line-height: 1.2;
}

.cd-batch-meta-val {
    display: block;
    font-size: 0.85rem;
    color: var(--cd-text-primary);
    font-weight: 700;
    line-height: 1.3;
}


/* ==========================================================================
   8. MODULE BREAKDOWN (ACCORDION + DUAL VIEW)
   ========================================================================== */
.cd-modules-header-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0.35rem;
}

.cd-phases-count-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background: rgba(109, 61, 210, 0.08);
    border: 1px solid rgba(109, 61, 210, 0.2);
    border-radius: var(--radius-full, 9999px);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--cd-primary-purple);
    white-space: nowrap;
}

.cd-modules-subtext {
    font-size: 0.85rem;
    color: var(--cd-text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.cd-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cd-accordion-item {
    border: 1px solid rgba(206, 78, 222, 0.15);
    border-radius: 16px;
    background: #ffffff;
    overflow: hidden;
    transition: all 0.25s var(--ease-premium);
    box-shadow: 0 2px 8px rgba(109, 61, 210, 0.03);
}

.cd-accordion-item:hover {
    border-color: rgba(206, 78, 222, 0.32);
    box-shadow: 0 4px 16px rgba(109, 61, 210, 0.06);
}

.cd-accordion-item.is-expanded {
    border-color: rgba(109, 61, 210, 0.4);
    box-shadow: 0 6px 20px rgba(109, 61, 210, 0.08);
}

/* Accordion Header Button */
.cd-accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: #ffffff;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s var(--ease-premium);
    font-family: inherit;
}

.cd-accordion-header:hover {
    background: #faf8fd;
}

.cd-accordion-item.is-expanded .cd-accordion-header {
    background: #f8f5fe;
    border-bottom: 1px solid rgba(109, 61, 210, 0.12);
}

.cd-accordion-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.cd-accordion-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 9px;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--cd-primary-purple);
    background: rgba(109, 61, 210, 0.08);
    border: 1px solid rgba(109, 61, 210, 0.18);
    border-radius: 8px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cd-accordion-item.is-expanded .cd-accordion-num {
    background: var(--cd-primary-purple);
    color: #ffffff;
    border-color: var(--cd-primary-purple);
}

.cd-accordion-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--cd-text-primary);
    margin: 0;
    line-height: 1.35;
    word-break: break-word;
}

.cd-accordion-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cd-accordion-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--cd-primary-magenta);
    background: rgba(206, 78, 222, 0.08);
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid rgba(206, 78, 222, 0.18);
    white-space: nowrap;
}

.cd-accordion-chevron {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(109, 61, 210, 0.06);
    color: var(--cd-primary-purple);
    font-size: 0.78rem;
    transition: transform 0.3s var(--ease-premium), background 0.3s var(--ease-premium);
}

.cd-accordion-item.is-expanded .cd-accordion-chevron {
    transform: rotate(180deg);
    background: var(--cd-primary-purple);
    color: #ffffff;
}

/* Accordion Collapse Body */
.cd-accordion-collapse {
    display: none;
    padding: 0;
    background: #ffffff;
    animation: cd-fade-slide-down 0.25s var(--ease-premium);
}

.cd-accordion-collapse.is-open {
    display: block;
}

@keyframes cd-fade-slide-down {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cd-accordion-content {
    padding: 14px 18px 18px;
}

.cd-empty-phase {
    font-size: 0.85rem;
    color: var(--cd-text-muted);
    font-style: italic;
    padding: 10px 0;
}

/* Desktop View (Table layout for screens > 768px) */
.cd-desktop-curriculum {
    display: block;
}

.cd-mobile-curriculum {
    display: none;
}

.cd-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid var(--cd-table-border);
    box-shadow: 0 2px 8px rgba(108, 60, 235, 0.03);
    background: #ffffff;
}

.cd-curriculum-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
    background: #ffffff;
    text-align: left;
}

.cd-curriculum-table thead tr {
    background: var(--cd-table-header-bg) !important;
}

.cd-curriculum-table th {
    background: var(--cd-table-header-bg) !important;
    color: #ffffff !important;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 10px 16px;
    border: none;
}

.cd-th-module {
    width: 26%;
}

.cd-th-topic {
    width: 32%;
}

.cd-th-outcomes {
    width: 42%;
}

.cd-curriculum-table tbody tr {
    border-bottom: 1px solid var(--cd-table-border);
    transition: background 0.15s ease;
}

.cd-curriculum-table tbody tr:last-child {
    border-bottom: none;
}

.cd-curriculum-table tbody tr:hover {
    background: var(--cd-table-row-hover);
}

.cd-curriculum-table td {
    padding: 12px 16px;
    vertical-align: top;
    line-height: 1.5;
    font-size: 13.5px;
    border: none;
}

.cd-td-module {
    font-weight: 700;
    color: var(--cd-text-primary);
}

.cd-td-topic {
    color: var(--cd-text-secondary);
    font-weight: 500;
}

.cd-td-outcomes {
    color: var(--cd-text-secondary);
    font-weight: 500;
    white-space: pre-line;
}

/* Mobile View (Stacked Cards for screens <= 768px) */
.cd-mobile-card {
    background: #faf8fd;
    border: 1px solid rgba(206, 78, 222, 0.14);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    transition: all 0.2s var(--ease-premium);
}

.cd-mobile-card:last-child {
    margin-bottom: 0;
}

.cd-mobile-card:hover {
    background: #ffffff;
    border-color: rgba(206, 78, 222, 0.28);
    box-shadow: 0 2px 10px rgba(206, 78, 222, 0.08);
}

.cd-mobile-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px dashed rgba(206, 78, 222, 0.18);
}

.cd-m-badge {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--cd-primary-purple);
    background: rgba(109, 61, 210, 0.1);
    padding: 2px 6px;
    border-radius: 6px;
}

.cd-m-module-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--cd-text-primary);
}

.cd-mobile-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cd-mobile-meta-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cd-m-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--cd-primary-magenta);
}

.cd-m-val {
    font-size: 0.84rem;
    color: var(--cd-text-secondary);
    line-height: 1.45;
}

.cd-m-outcomes {
    white-space: pre-line;
}


/* ==========================================================================
   9. DAILY RHYTHM
   ========================================================================== */
.cd-rhythm-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cd-rhythm-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-bottom: 1px solid rgba(206, 78, 222, 0.08);
    transition: all 0.2s var(--ease-premium);
    border-radius: 10px;
}

.cd-rhythm-row:last-child {
    border-bottom: none;
}

.cd-rhythm-row:hover {
    background: rgba(109, 61, 210, 0.03);
    padding-left: 12px;
}

.cd-rhythm-row--lunch {
    background: rgba(232, 98, 154, 0.06);
    border: 1px solid rgba(232, 98, 154, 0.16);
    margin: 4px 0;
}

.cd-rhythm-row--lunch:hover {
    background: rgba(232, 98, 154, 0.12);
}

.cd-rhythm-time {
    min-width: 125px;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--cd-primary-purple);
    font-variant-numeric: tabular-nums;
}

.cd-rhythm-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cd-primary-magenta), var(--cd-primary-purple));
}

.cd-rhythm-label {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--cd-text-primary);
}


/* ==========================================================================
   10. EARNING POTENTIAL & CAREER PATHS
   ========================================================================== */
.cd-earnings {
    border-top: 4px solid var(--cd-primary-magenta);
}

.cd-salary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 1.15rem;
}

.cd-salary-badge {
    padding: 14px 16px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(49, 27, 23, 0.08);
    box-shadow: 0 2px 8px rgba(49, 27, 23, 0.03);
    transition: all 0.25s var(--ease-premium);
}

.cd-salary-badge--employee {
    background: linear-gradient(180deg, #ffffff 0%, #fff7fb 100%);
    border-left: 4px solid var(--cd-primary-magenta);
}

.cd-salary-badge--indie {
    background: linear-gradient(180deg, #ffffff 0%, #f9f7ff 100%);
    border-left: 4px solid var(--cd-primary-purple);
}

.cd-salary-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(49, 27, 23, 0.06);
}

.cd-salary-type {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--cd-text-muted);
    margin-bottom: 4px;
}

.cd-salary-amount {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a21caf 0%, #581c87 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.25;
}

.cd-salary-unit {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--cd-text-muted);
    margin-top: 2px;
}

.cd-placement-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1.15rem;
}

.cd-placement-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    font-size: 0.74rem;
    font-weight: 700;
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid rgba(22, 163, 74, 0.25);
    border-radius: var(--radius-full, 9999px);
}

.cd-career-paths-header {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--cd-primary-purple);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px dashed rgba(109, 61, 210, 0.2);
}

.cd-job-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cd-job-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(49, 27, 23, 0.08);
    transition: all 0.2s var(--ease-premium);
}

.cd-job-item:hover {
    background: #fdf8fc;
    padding-left: 18px;
    border-color: rgba(206, 78, 222, 0.3);
}

.cd-job-item-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cd-primary-magenta), var(--cd-primary-purple));
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.75rem;
}

.cd-job-item-text {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--cd-text-primary);
}


/* ==========================================================================
   11. RIGHT COLUMN (SIDEBAR CARDS)
   ========================================================================== */
.cd-sidebar-desc {
    font-size: 0.84rem;
    color: var(--cd-text-muted);
    line-height: 1.55;
    margin-bottom: 0.85rem;
}

.cd-why-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cd-why-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
    transition: all 0.2s var(--ease-premium);
}

.cd-why-item:hover {
    background: rgba(206, 78, 222, 0.05);
    transform: translateX(3px);
}

.cd-why-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(206, 78, 222, 0.12), rgba(109, 61, 210, 0.12));
    border-radius: 10px;
    font-size: 0.95rem;
}

.cd-why-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--cd-text-primary);
    margin-bottom: 2px;
}

.cd-why-desc {
    font-size: 0.76rem;
    color: var(--cd-text-muted);
    line-height: 1.45;
}

.cd-cert-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cd-cert-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(206, 78, 222, 0.03);
    border-radius: 12px;
    transition: all 0.2s var(--ease-premium);
}

.cd-cert-item:hover {
    background: rgba(206, 78, 222, 0.08);
    padding-left: 14px;
}

.cd-cert-check {
    width: 22px;
    height: 22px;
    min-width: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cd-primary-magenta), var(--cd-primary-purple));
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.65rem;
}

.cd-cert-text {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--cd-text-primary);
}

.cd-self-employ {
    background: linear-gradient(135deg, rgba(206, 78, 222, 0.08), rgba(109, 61, 210, 0.08));
    border: 1px solid rgba(206, 78, 222, 0.18);
    border-radius: 20px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s var(--ease-premium);
}

.cd-self-employ:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(109, 61, 210, 0.08);
}

.cd-self-employ-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cd-primary-magenta), var(--cd-primary-purple));
    border-radius: 14px;
    font-size: 1.2rem;
    color: #ffffff;
}

.cd-self-employ-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--cd-text-primary);
    margin-bottom: 2px;
}

.cd-self-employ-desc {
    font-size: 0.76rem;
    color: var(--cd-text-muted);
    line-height: 1.45;
}

/* Sidebar CTA Button */
.cd-cta-wrap {
    padding-top: 0.25rem;
}

.cd-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 24px;
    font-family: var(--font-sans);
    font-size: 0.98rem;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cd-primary-magenta) 0%, var(--cd-primary-purple) 100%);
    border: none;
    border-radius: var(--radius-full, 9999px);
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(206, 78, 222, 0.38);
    transition: all 0.3s var(--ease-premium);
}

.cd-cta-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 32px rgba(109, 61, 210, 0.45);
    color: #ffffff;
}

.cd-cta-arrow {
    font-size: 0.9rem;
    transition: transform 0.25s var(--ease-premium);
}

.cd-cta-btn:hover .cd-cta-arrow {
    transform: translateX(4px);
}


/* ==========================================================================
   12. RESPONSIVE BREAKPOINTS (ALL DEVICES & SCREEN SIZES)
   ========================================================================== */

/* --- Laptop Standard & Small (1024px to 1439px) --- */
@media (max-width: 1200px) {
    .cd-hero {
        min-height: clamp(380px, 45vh, 460px);
        padding-top: 6rem;
        padding-bottom: 2rem;
        border-radius: 0 0 32px 32px;
    }

    .cd-hero-bg img {
        object-position: center 25%;
    }

    .cd-grid {
        grid-template-columns: 1fr 320px;
        gap: 1.25rem;
    }

    .cd-card {
        padding: 1.5rem;
    }
}

/* --- Tablet (768px to 1023px) --- */
@media (max-width: 1023px) {
    .cd-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-bottom: 2.5rem;
    }

    .cd-right-col {
        position: static;
    }

    .cd-hero {
        width: calc(100% - 2rem);
        min-height: clamp(340px, 42vh, 420px);
        padding-top: 5.5rem;
        padding-bottom: 1.85rem;
        border-radius: 0 0 28px 28px;
        margin-top: 0.5rem;
    }

    .cd-hero-bg img {
        object-position: center 22%;
    }

    .cd-essentials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Mobile Breakpoint (<= 768px): Switch Module Presentation to Stacked Cards --- */
@media (max-width: 768px) {
    /* Free Enrollment Bonus Mobile */
    .cd-bonus-strip {
        padding: 0.65rem 0.9rem;
        margin-bottom: 0.4rem;
        border-radius: 14px;
    }

    .cd-bonus-strip-inner {
        align-items: flex-start;
        gap: 0.75rem;
    }

    .cd-bonus-badge-wrap {
        display: none;
    }

    .cd-bonus-visual {
        width: 40px;
        height: 40px;
        margin-top: 1px;
        background: transparent;
    }

    .cd-bonus-gift-img {
        width: 40px;
        height: 40px;
        background: transparent;
    }

    .cd-bonus-header {
        gap: 0.35rem;
    }

    .cd-bonus-sep {
        display: none;
    }

    .cd-bonus-title {
        font-size: 0.94rem;
    }

    .cd-bonus-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        margin-top: 0.15rem;
    }

    .cd-bonus-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .cd-bonus-item {
        font-size: 0.82rem;
    }

    .cd-bonus-note {
        font-size: 0.74rem;
        margin-top: 1px;
    }

    .cd-hero {
        width: calc(100% - 1.5rem);
        padding-top: 5rem;
        padding-bottom: 1.65rem;
        min-height: clamp(300px, 44vh, 360px);
        border-radius: 0 0 24px 24px;
        margin-bottom: 1rem;
    }

    .cd-hero-bg img {
        object-position: center 20%;
    }

    .cd-hero-decor {
        display: none;
    }

    .cd-hero-title {
        font-size: clamp(1.25rem, 4.8vw, 1.75rem);
    }

    .cd-hero-badges {
        gap: 6px;
    }

    .cd-hero-badge {
        font-size: 0.72rem;
        padding: 5px 10px;
    }

    .cd-card {
        border-radius: 20px;
        padding: 1.25rem;
    }

    .cd-card-heading {
        font-size: 1.15rem;
    }

    /* Switch Module presentation from table to stacked cards */
    .cd-desktop-curriculum {
        display: none;
    }

    .cd-mobile-curriculum {
        display: block;
    }

    .cd-accordion-header {
        padding: 12px 14px;
    }

    .cd-accordion-content {
        padding: 10px 12px 14px;
    }

    .cd-accordion-title {
        font-size: 0.88rem;
    }

    .cd-accordion-num {
        font-size: 0.68rem;
        padding: 2px 7px;
    }

    .cd-salary-grid {
        grid-template-columns: 1fr;
    }

    .cd-self-employ {
        flex-direction: row;
        text-align: left;
    }

    .cd-rhythm-time {
        min-width: 95px;
        font-size: 0.75rem;
    }
}

/* --- Small Mobile (<= 480px) --- */
@media (max-width: 480px) {
    .cd-bonus-strip {
        padding: 0.55rem 0.75rem;
        margin-bottom: 0.35rem;
        border-radius: 12px;
    }

    .cd-bonus-visual {
        width: 36px;
        height: 36px;
        margin-top: 1px;
        background: transparent;
    }

    .cd-bonus-gift-img {
        width: 36px;
        height: 36px;
        background: transparent;
    }

    .cd-bonus-title {
        font-size: 0.88rem;
    }

    .cd-bonus-eyebrow {
        font-size: 0.65rem;
        padding: 1px 6px;
    }

    .cd-bonus-item {
        font-size: 0.78rem;
    }

    .cd-bonus-note {
        font-size: 0.72rem;
    }

    .cd-hero {
        width: calc(100% - 1rem);
        padding-top: 4.5rem;
        padding-bottom: 1.4rem;
        min-height: clamp(280px, 42vh, 340px);
        border-radius: 0 0 20px 20px;
    }

    .cd-hero-bg img {
        object-position: center 20%;
    }

    .cd-hero-paw {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }

    .cd-top-action-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .cd-back-link {
        justify-content: center;
    }

    .cd-enroll-action-bar {
        justify-content: space-between;
        width: 100%;
    }

    .cd-essentials-grid {
        grid-template-columns: 1fr;
    }

    .cd-card {
        padding: 1rem;
        border-radius: 16px;
    }

    .cd-essential-card {
        padding: 10px 12px;
    }

    .cd-accordion-header {
        padding: 10px 12px;
        gap: 8px;
    }

    .cd-accordion-badge {
        display: none;
    }

    .cd-accordion-title {
        font-size: 0.84rem;
    }

    .cd-self-employ {
        flex-direction: column;
        text-align: center;
    }

    .cd-self-employ-icon {
        margin: 0 auto;
    }

    .cd-cta-btn {
        padding: 13px 18px;
        font-size: 0.92rem;
    }
}

/* --- Extra Small Mobile (<= 360px) --- */
@media (max-width: 360px) {
    .cd-hero {
        min-height: clamp(260px, 40vh, 300px);
        padding-top: 4rem;
        padding-bottom: 1.25rem;
        border-radius: 0 0 16px 16px;
    }

    .cd-hero-bg img {
        object-position: center 18%;
    }

    .cd-hero-title {
        font-size: 1.15rem;
    }

    .cd-enroll-compact-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .cd-admissions-badge {
        font-size: 0.7rem;
        padding: 5px 8px;
    }

    .cd-card {
        padding: 0.85rem;
    }

    .cd-rhythm-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}