/* ==========================================================================
   Terapan.id — Halaman detail posisi / paket OJT (mobile-first)
   Memakai token & komponen dari home.css (.th-*)
   ========================================================================== */

.th-pd #tentang,
.th-pd #kurikulum,
.th-pd #mentor,
.th-pd #faq,
.th-pd #cari-ojt {
    scroll-margin-top: 90px;
}

/* ---------- Tombol tambahan ---------- */

/* ---------- Hero ---------- */

.th-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, .7);
    font-size: var(--th-fs-sm);
    line-height: 1.4;
}

.th-crumb a {
    color: rgba(255, 255, 255, .85) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.th-crumb a:hover {
    color: #fff !important;
}

.th-crumb i {
    font-size: 9px;
    opacity: .7;
}

.th-crumb span {
    color: #fff;
    font-weight: 600;
}

/* ---------- Layout ---------- */

/* ---------- Kartu harga ---------- */

/* ---------- Blok konten ---------- */

.th-pd-h2 {
    color: var(--th-primary-dark);
    font-size: var(--th-fs-h2);
    font-weight: 700;
    line-height: 1.3;
}

.th-pd-h3 {
    margin: 28px 0 12px !important;
    color: var(--th-primary-dark);
    font-size: var(--th-fs-md);
    font-weight: 600;
}

.th-pd-sub {
    margin-top: 8px !important;
    color: var(--th-muted);
    font-size: var(--th-fs-base);
    line-height: 1.6;
}

.th-prose {
    max-width: 68ch;
    margin-top: 16px;
    color: #34464c;
    font-size: var(--th-fs-base);
    line-height: 1.8;
}

.th-prose p,
.th-prose ul,
.th-prose ol {
    margin: 0 0 14px;
}

.th-prose p,
.th-prose li {
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.th-prose p:last-child {
    margin-bottom: 0;
}

.th-prose ul,
.th-prose ol {
    padding-left: 22px;
}

.th-prose b,
.th-prose strong {
    color: var(--th-text);
}

/* ---------- Kurikulum / topik ---------- */
.th-topics {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.th-topic {
    border: 1px solid var(--th-border);
    border-radius: var(--th-radius);
    background: #fff;
    box-shadow: 0 1px 2px rgba(9, 78, 93, .05);
    transition: border-color .2s, box-shadow .2s;
}

.th-topic[open] {
    border-color: #c6dadf;
    box-shadow: var(--th-shadow);
}

.th-topic summary {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 24px;
    gap: 14px;
    align-items: center;
    padding: 14px;
    cursor: pointer;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
}

.th-topic summary::-webkit-details-marker {
    display: none;
}

.th-topic summary:focus-visible {
    outline: 3px solid var(--th-accent);
    outline-offset: 2px;
    border-radius: var(--th-radius);
}

.th-topic-head {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.th-topic-num {
    color: var(--th-accent);
    font-size: var(--th-fs-xs);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.th-topic-name {
    color: var(--th-primary-dark);
    font-family: poppins, sans-serif;
    font-size: var(--th-fs-base);
    font-weight: 600;
    line-height: 1.35;
}

.th-topic-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 14px;
    color: var(--th-muted);
    font-size: var(--th-fs-sm);
}

.th-topic-meta i {
    margin-right: 3px;
    color: var(--th-primary);
    font-size: 11px;
}

.th-topic-caret {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--th-primary-soft);
    color: var(--th-primary);
    font-size: 11px;
    transition: transform .25s;
}

.th-topic[open] .th-topic-caret {
    transform: rotate(180deg);
}

.th-topic-body {
    padding: 0 14px 14px;
}

.th-syllabus {
    margin: 0;
    padding: 4px 0 0;
    border-top: 1px solid var(--th-border);
    list-style: none;
    counter-reset: lesson;
}

.th-syllabus li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 2px;
    border-bottom: 1px dashed #dde7ea;
    color: #34464c;
    font-size: var(--th-fs-base);
    line-height: 1.45;
}

.th-syllabus li i {
    display: grid;
    place-items: center;
    flex: 0 0 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--th-primary-soft);
    color: var(--th-primary);
    font-size: 9px;
}

.th-syllabus li span {
    padding-top: 3px;
}

.th-syllabus li.is-final {
    margin-top: 6px;
    padding: 10px;
    border: 0;
    border-radius: 10px;
    background: var(--th-accent-soft);
    color: #8a3a00;
    font-weight: 600;
}

.th-syllabus li.is-final i {
    background: var(--th-accent);
    color: #fff;
    font-size: 11px;
}

.th-topic-empty {
    padding-top: 12px;
    border-top: 1px solid var(--th-border);
    color: var(--th-muted);
    font-size: var(--th-fs-sm);
}

.th-topic-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-top: 6px;
    color: var(--th-accent) !important;
    font-family: poppins, sans-serif;
    font-size: var(--th-fs-sm);
    font-weight: 600;
    text-decoration: none !important;
}

.th-topic-link i {
    font-size: 12px;
    transition: transform .2s;
}

.th-topic-link:hover i {
    transform: translateX(3px);
}

/* ---------- Mentor ---------- */

/* ---------- Cara belajar (pakai .th-steps dari home.css, versi kolom sempit) ---------- */

/* ---------- FAQ ---------- */
.th-faq {
    margin-top: 16px;
    border-top: 1px solid var(--th-border);
}

.th-faq details {
    border-bottom: 1px solid var(--th-border);
}

.th-faq summary {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    padding: 14px 0;
    color: var(--th-primary-dark);
    font-family: poppins, sans-serif;
    font-size: var(--th-fs-base);
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
}

.th-faq summary::-webkit-details-marker {
    display: none;
}

.th-faq summary:focus-visible {
    outline: 3px solid var(--th-accent);
    outline-offset: 2px;
}

.th-faq summary i {
    flex: 0 0 auto;
    color: var(--th-primary);
    font-size: 13px;
    transition: transform .25s;
}

.th-faq details[open] summary i {
    transform: rotate(45deg);
}

.th-faq details p {
    max-width: 68ch;
    padding: 0 0 18px;
    color: #34464c;
    font-size: var(--th-fs-base);
    line-height: 1.7;
}

/* ---------- Final CTA ---------- */

/* ---------- Cari OJT lain ---------- */
.th-pd-finder-grid {
    display: grid;
    gap: 24px;
}

.th-pd-finder .th-pd-sub {
    margin-bottom: 18px !important;
}

/* ---------- Not found ---------- */
.th-pd-notfound {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

.th-pd-notfound-icon {
    display: inline-grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--th-primary-soft);
    color: var(--th-primary);
    font-size: 26px;
}

.th-pd-notfound h1 {
    color: var(--th-primary-dark);
    font-size: var(--th-fs-xl);
    font-weight: 700;
}

.th-pd-notfound p {
    margin: 10px 0 24px !important;
    color: var(--th-muted);
    font-size: var(--th-fs-base);
    line-height: 1.6;
}

/* ---------- Sticky CTA (mobile & tablet) ---------- */
.th-pd-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 990;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 48px;
    gap: 10px;
    align-items: center;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -6px 20px rgba(9, 78, 93, .14);
    transform: translateY(110%);
    transition: transform .3s ease;
}

.th-pd-bar.is-visible {
    transform: translateY(0);
}

.th-pd-bar-price {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}

.th-pd-bar-price del,
.th-pd-bar-price small {
    color: #7b8a8f;
    font-size: var(--th-fs-xs);
}

.th-pd-bar-price strong {
    overflow: hidden;
    color: var(--th-primary-dark);
    font-family: poppins, sans-serif;
    font-size: var(--th-fs-md);
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.th-pd-bar .th-btn {
    min-height: 48px;
    box-shadow: none;
}

.th-pd-bar .th-btn--primary {
    padding: 10px 16px;
}

@media (max-width: 991.98px) {
    body .float {
        display: none;
    }

    body #scroll-to-top {
        display: none !important;
    }
}

@media (max-width: 359.98px) {
    .th-pd-bar {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

/* ---------- ≥576px ---------- */

/* ---------- ≥768px ---------- */
@media (min-width: 768px) {

    .th-topic summary {
        grid-template-columns: 96px minmax(0, 1fr) 28px;
        gap: 18px;
        padding: 16px;
    }

    .th-topic-name {
        font-size: var(--th-fs-md);
    }

    .th-topic-body {
        padding: 0 16px 16px 130px;
    }

    .th-topic-body .th-syllabus {
        border-top: 0;
        padding-top: 0;
    }

    .th-topic-empty {
        border-top: 0;
        padding-top: 0;
    }
}

/* ---------- ≥992px: dua kolom, kartu harga sticky ---------- */
@media (min-width: 992px) {

    /* langkah tetap vertikal di kolom sempit */
    

    .th-pd-finder-grid {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: 48px;
        align-items: center;
    }

    .th-pd-bar {
        display: none;
    }
}

/* layar pendek: kartu sticky harus tetap muat di viewport */

@media (prefers-reduced-motion: reduce) {
    .th-pd-bar,
.th-topic-caret,
.th-faq summary i {
        transition: none !important;
    }
}
