
/* =========================================
   NEXTGEN LEARNING - COURSE DETAIL PAGES
   ========================================= */

.cd-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.cd-hero {
    position: relative;
    overflow: hidden;
    padding: 90px 0;
    background: radial-gradient(circle at 85% 20%, rgba(255, 191, 0, .12), transparent 35%), linear-gradient(135deg, #121212, #211d10);
    color: #fff;
}

.cd-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: 65px;
}

.cd-eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: #bd8700;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.6;
    text-transform: uppercase;
}

.cd-hero .cd-eyebrow,
.cd-cta .cd-eyebrow {
    color: #ffc400;
}

.cd-hero h1 {
    max-width: 720px;
    margin: 0 0 22px;
    color: #fff;
    font-size: clamp(36px, 5vw, 62px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.5px;
}

    .cd-hero h1 span {
        color: #ffc400;
    }

.cd-hero-text {
    max-width: 600px;
    margin: 0;
    color: #dedbd2;
    font-size: 17px;
    line-height: 1.9;
}

.cd-hero-actions,
.cd-cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
}

.cd-btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 23px;
    border: 1px solid transparent;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}

    .cd-btn:hover {
        transform: translateY(-2px);
    }

.cd-btn-gold {
    background: #ffc000;
    color: #171717;
}

    .cd-btn-gold:hover {
        background: #e9ae00;
        color: #171717;
    }

.cd-btn-outline {
    border-color: rgba(255, 255, 255, .45);
    background: transparent;
    color: #fff;
}

    .cd-btn-outline:hover {
        border-color: #ffc000;
        background: rgba(255, 192, 0, .1);
        color: #ffc000;
    }

.cd-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin-top: 30px;
    color: #e7e4dc;
    font-size: 13px;
}

    .cd-hero-points span::first-letter {
        color: #ffc000;
    }

.cd-hero-visual {
    position: relative;
    display: flex;
    min-height: 340px;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border: 1px solid rgba(255, 192, 0, .3);
    border-radius: 28px;
    background: rgba(255, 255, 255, .045);
}

    .cd-hero-visual img {
        display: block;
        width: min(100%, 330px);
        aspect-ratio: 1;
        object-fit: contain;
        border-radius: 20px;
        filter: drop-shadow(0 20px 28px rgba(0, 0, 0, .22));
    }

.cd-visual-caption {
    position: absolute;
    right: 15px;
    bottom: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 15px 18px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: rgba(15, 15, 15, .91);
}

    .cd-visual-caption strong {
        color: #ffc000;
        font-size: 14px;
    }

    .cd-visual-caption span {
        color: #e3e0d7;
        font-size: 12px;
    }

.cd-section {
    padding: 85px 0;
    background: #fff;
}

.cd-section-light {
    background: #f8f7f3;
}

.cd-two-column {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    align-items: start;
    gap: 65px;
}

.cd-section h2,
.cd-cta h2 {
    margin: 0;
    color: #171717;
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.6px;
}

.cd-two-column p {
    margin: 0 0 18px;
    color: #626262;
    font-size: 16px;
    line-height: 1.9;
}

.cd-heading-center {
    max-width: 720px;
    margin: 0 auto 42px;
    text-align: center;
}

    .cd-heading-center p {
        margin: 14px 0 0;
        color: #666;
        font-size: 15px;
        line-height: 1.8;
    }

.cd-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.cd-card {
    padding: 28px;
    border: 1px solid #e9e3d7;
    border-radius: 18px;
    background: #fff;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

    .cd-card:hover {
        transform: translateY(-5px);
        border-color: #efbd36;
        box-shadow: 0 14px 35px rgba(30, 25, 10, .07);
    }

.cd-card-number {
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 12px;
    background: #ffc000;
    color: #171717;
    font-size: 13px;
    font-weight: 800;
}

.cd-card h3 {
    margin: 0 0 12px;
    color: #171717;
    font-size: 19px;
    font-weight: 800;
}

.cd-card p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

.cd-check-list {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .cd-check-list li {
        position: relative;
        padding: 0 0 16px 35px;
        border-bottom: 1px solid #eee9df;
        color: #444;
        font-size: 16px;
        line-height: 1.7;
    }

        .cd-check-list li::before {
            position: absolute;
            top: 0;
            left: 0;
            display: flex;
            width: 23px;
            height: 23px;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: #ffc000;
            color: #171717;
            content: "✓";
            font-size: 13px;
            font-weight: 800;
        }

.cd-cta {
    padding: 70px 0;
    background: #171717;
}

.cd-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.cd-cta h2 {
    max-width: 650px;
    color: #fff;
}

.cd-cta p {
    margin: 14px 0 0;
    color: #d2d0ca;
    font-size: 15px;
    line-height: 1.8;
}

.cd-cta-actions {
    flex-shrink: 0;
    margin-top: 0;
}

/* Tablet */
@media (max-width: 991px) {
    .cd-hero {
        padding: 70px 0;
    }

    .cd-hero-grid {
        grid-template-columns: 1fr .8fr;
        gap: 30px;
    }

    .cd-hero-visual {
        min-height: 280px;
        padding: 20px;
    }

    .cd-two-column {
        gap: 35px;
    }

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

    .cd-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .cd-cta-actions {
        flex-wrap: wrap;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .cd-container {
        width: calc(100% - 32px);
    }

    .cd-hero {
        padding: 55px 0;
    }

    .cd-hero-grid,
    .cd-two-column {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .cd-hero h1 {
        font-size: clamp(34px, 9vw, 48px);
        letter-spacing: -.8px;
    }

    .cd-hero-text {
        font-size: 15px;
    }

    .cd-hero-visual {
        min-height: 280px;
    }

        .cd-hero-visual img {
            width: min(100%, 260px);
        }

    .cd-section {
        padding: 58px 0;
    }

        .cd-section h2,
        .cd-cta h2 {
            font-size: 30px;
        }

    .cd-card-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cd-card {
        padding: 24px;
    }

    .cd-heading-center {
        margin-bottom: 30px;
    }

    .cd-hero-actions,
    .cd-cta-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .cd-btn {
        width: 100%;
    }

    .cd-hero-points {
        flex-direction: column;
        gap: 10px;
    }

    .cd-cta {
        padding: 55px 0;
    }
}
