/* ==========================================================================
   Terapan.id — Halaman detail course / topik OJT (mobile-first)
   Dibangun di atas home.css (token .th-*) + posisi.css (komponen produk .th-pd-*)
   ========================================================================== */

.th-cd #prosedur,
.th-cd #paket {
    scroll-margin-top: 90px;
}

/* Judul course biasanya panjang: sedikit lebih kecil dari judul posisi */

/* ---------- Kartu harga: upsell paket & brosur ---------- */

/* ---------- Kurikulum ---------- */

.th-cd-modules {
    margin-top: 18px;
}

.th-cd-module .th-cd-row {
    grid-template-columns: 40px minmax(0, 1fr) 24px;
}

/* modul tanpa rincian materi: tampil sebagai baris biasa, tidak bisa dibuka */
.th-cd-module.is-static .th-cd-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
}

.th-cd-num {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--th-primary-soft);
    color: var(--th-primary);
    font-family: poppins, sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.th-cd-module[open] .th-cd-num {
    background: var(--th-primary);
    color: #fff;
}

.th-cd-module.is-final {
    border-color: #f6c9a6;
    background: linear-gradient(180deg, #fffaf6 0%, #fff 100%);
}

.th-cd-module.is-final .th-cd-num {
    background: var(--th-accent);
    color: #fff;
}

.th-cd-module.is-final .th-syllabus li.is-final {
    margin-top: 10px;
}

.th-syllabus li.is-group {
    margin-top: 8px;
    padding: 12px 2px 6px;
    border-bottom: 0;
    color: var(--th-primary-dark);
    font-family: poppins, sans-serif;
    font-size: var(--th-fs-sm);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.th-syllabus li.is-group span {
    padding-top: 0;
}

.th-syllabus li.is-group:first-child {
    margin-top: 0;
}

/* ---------- Prosedur belajar (timeline vertikal) ---------- */
.th-cd-proc {
    position: relative;
    display: grid;
    gap: 0;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.th-cd-proc li {
    position: relative;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding-bottom: 18px;
}

.th-cd-proc li:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 38px;
    bottom: 2px;
    left: 17px;
    width: 2px;
    border-radius: 2px;
    background: #d3e3e7;
}

.th-cd-proc-num {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border: 2px solid var(--th-primary);
    border-radius: 50%;
    background: #fff;
    color: var(--th-primary);
    font-family: poppins, sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.th-cd-proc p {
    padding-top: 6px;
    color: #34464c;
    font-size: var(--th-fs-base);
    line-height: 1.55;
}

.th-cd-proc li.is-last {
    padding-bottom: 0;
}

.th-cd-proc li.is-last .th-cd-proc-num {
    border-color: var(--th-accent);
    background: var(--th-accent);
    color: #fff;
    font-size: 15px;
}

.th-cd-proc li.is-last p {
    color: #8a3a00;
    font-weight: 600;
}

/* ---------- Paket bundling ---------- */

/* ---------- FAQ dari admin ---------- */
.th-cd-faq-a {
    margin-top: 0;
    padding-bottom: 18px;
    font-size: var(--th-fs-base);
    line-height: 1.7;
}

/* ---------- Final ---------- */

/* ---------- <576px: hero ringkas agar harga cepat terlihat ---------- */

/* ---------- ≥576px ---------- */

/* ---------- ≥768px ---------- */
@media (min-width: 768px) {
    .th-cd-module .th-cd-row {
        grid-template-columns: 48px minmax(0, 1fr) 28px;
    }

    .th-cd-module.is-static .th-cd-row {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 18px;
        padding: 16px;
    }

    .th-cd-num {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .th-cd .th-topic-body {
        padding-left: 82px;
    }

    .th-cd-proc {
        grid-template-columns: 1fr 1fr;
        column-gap: 32px;
    }

    .th-cd-proc li {
        padding-bottom: 22px;
    }

    .th-cd-proc li::before {
        display: none;
    }

    .th-cd-proc li.is-last {
        padding-bottom: 22px;
    }

    .th-cd-proc li.is-last:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

/* ---------- ≥992px ---------- */

