/* ==========================================================================
   Terapan.id — Home versi ringkas (alur home lama, UI sekarang)
   Dipakai setelah home.css. Minim kotak & ikon supaya fokus ke pilih posisi karir.
   ========================================================================== */

.th-hr #kenapa-ojt,
.th-hr #posisi {
    scroll-margin-top: 72px;
}

/* ---------- Hero: tagline OJT sebagai judul utama ---------- */
.th-hr-hero {
    display: flex;
    align-items: center;
    min-height: min(78vh, 640px);
    padding: 56px 0;
}

.th-hr-hero .container {
    width: 100%;
}

.th-hr-hero-copy {
    max-width: 760px;
}

.th-hr-title {
    text-wrap: balance;
}

.th-hr-title span {
    display: block;
}

.th-hr-desc {
    max-width: 600px;
    margin-top: 18px !important;
    text-wrap: pretty;
}

.th-hr-actions {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

/* ---------- Kenapa OJT: masalah > solusi, teks saja ---------- */
.th-hr-why-grid {
    display: grid;
    gap: 32px;
}

.th-hr-kicker {
    margin-bottom: 10px !important;
    color: #b44a00;
    font-family: poppins, sans-serif;
    font-size: var(--th-fs-xs);
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.th-hr-h2 {
    color: var(--th-primary-dark);
    font-size: var(--th-fs-h2);
    font-weight: 700;
    line-height: 1.25;
    text-wrap: balance;
}

.th-hr-story {
    display: grid;
    gap: 18px;
    margin: 24px 0 0;
}

.th-hr-story dt {
    margin-bottom: 4px;
    color: var(--th-primary);
    font-family: poppins, sans-serif;
    font-size: var(--th-fs-base);
    font-weight: 700;
}

.th-hr-story dd {
    margin: 0;
    color: var(--th-muted);
    font-size: var(--th-fs-base);
    line-height: 1.7;
}

.th-hr-story mark,
.th-hr-result mark {
    padding: 0 2px;
    background: linear-gradient(transparent 58%, #ffd9bd 58%);
    color: inherit;
    font-weight: 600;
}

.th-hr-result {
    margin-top: 22px !important;
    padding-left: 16px;
    border-left: 4px solid var(--th-accent);
    color: var(--th-primary-dark);
    font-family: poppins, sans-serif;
    font-size: var(--th-fs-md);
    font-weight: 500;
    line-height: 1.55;
}

.th-hr-story-plain p {
    margin-top: 14px !important;
    color: var(--th-muted);
    line-height: 1.7;
}

.th-hr-cta {
    display: flex;
    width: 100%;
    margin-top: 28px;
}

/* Gambar "Kenapa OJT": PNG cutout transparan, jadi diberi panel warna brand sebagai alas.
   Crop hanya dari kiri (area meja yang memudar) supaya wajah & tangan di kanan tidak terpotong. */
.th-hr-why-media {
    position: relative;
    isolation: isolate;
    margin: 0;
}

/* pola titik aksen di belakang panel, memberi kedalaman */
.th-hr-why-media::before {
    content: "";
    position: absolute;
    top: -16px;
    right: -14px;
    z-index: -1;
    width: 132px;
    height: 132px;
    background-image: radial-gradient(var(--th-accent) 1.6px, transparent 1.6px);
    background-size: 14px 14px;
    opacity: .4;
}

.th-hr-why-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 24px;
    background:
        radial-gradient(circle at 80% 15%, rgba(255, 255, 255, .16), transparent 50%),
        linear-gradient(155deg, var(--th-primary) 0%, var(--th-primary-dark) 100%);
    box-shadow: var(--th-shadow-lg);
}

/* tekstur grid halus di panel */
.th-hr-why-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-mask-image: linear-gradient(120deg, #000 0%, transparent 70%);
    mask-image: linear-gradient(120deg, #000 0%, transparent 70%);
}

.th-hr-why-frame img {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 100% 0;
}

.th-hr-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 10px;
    background: #fff;
    border: 1px solid var(--th-border);
    border-radius: 14px;
    box-shadow: var(--th-shadow-lg);
    line-height: 1.3;
}

.th-hr-badge i {
    display: grid;
    flex: none;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--th-accent-soft);
    color: var(--th-accent);
    font-size: 16px;
}

.th-hr-badge--bottom i {
    background: var(--th-primary-soft);
    color: var(--th-primary);
}

.th-hr-badge b {
    display: block;
    color: var(--th-primary-dark);
    font-family: poppins, sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.th-hr-badge small {
    display: block;
    color: var(--th-muted);
    font-size: 12.5px;
}

.th-hr-badge--top {
    top: 22px;
    left: -28px;
}

.th-hr-badge--bottom {
    bottom: -22px;
    left: 32px;
}

/* ---------- Pilih posisi karir ---------- */
.th-hr-pos-head {
    max-width: 640px;
    margin-bottom: 22px;
}

.th-hr-sub {
    margin-top: 10px !important;
    color: var(--th-muted);
    font-size: var(--th-fs-base);
}

.th-hr-search {
    max-width: 420px;
    margin-bottom: 16px;
}

.th-hr-pos .th-picker-list a {
    background: #fff;
}

.th-hr-more {
    margin-top: 22px !important;
    text-align: center;
}

.th-hr-more a {
    color: var(--th-primary) !important;
    font-family: poppins, sans-serif;
    font-size: var(--th-fs-base);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ---------- Logo klien ---------- */
.th-hr-trusted {
    padding: 40px 0 48px;
}

/* ---------- ≥576px ---------- */
@media (min-width: 576px) {
    .th-hr-actions {
        display: flex;
        flex-wrap: wrap;
    }

    .th-hr-cta {
        display: inline-flex;
        width: auto;
    }
}

/* ---------- ≥992px ---------- */
@media (min-width: 992px) {
    .th-hr-hero {
        min-height: min(72vh, 620px);
        padding: 72px 0;
    }

    .th-hr-why-grid {
        grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
        gap: 64px;
        align-items: center;
    }

    .th-hr-story {
        gap: 20px;
    }
}

/* Gambar "Kenapa OJT" cuma hiasan: di HP/tablet (tampil di bawah teks) disembunyikan supaya scroll ke Pilih Posisi lebih pendek.
   Gambar memakai loading="lazy", jadi saat tersembunyi tidak ikut diunduh. */
@media (max-width: 991.98px) {
    .th-hr-why-media {
        display: none;
    }
}

/* ---------- Bukti singkat di bawah tombol hero ---------- */
.th-hr-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    color: rgba(255, 255, 255, .82);
    font-size: var(--th-fs-sm);
    line-height: 1.4;
}

.th-hr-proof li {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.th-hr-proof li::before {
    content: '';
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffb27a;
}

.th-hr-proof b {
    color: #fff;
}

/* ---------- HP: hero setinggi isinya (tanpa ruang kosong), jarak antar bagian lebih rapat ---------- */
@media (max-width: 767.98px) {
    .th-hr-hero {
        min-height: 0;
        padding: 40px 0 36px;
    }

    .th-hr-title {
        font-size: 30px;
        line-height: 1.18;
    }

    .th-hr-desc {
        margin-top: 14px !important;
    }

    .th-hr-actions {
        margin-top: 22px;
    }

    .th-hr .th-section {
        padding: 40px 0;
    }

    .th-hr-story {
        gap: 16px;
        margin-top: 18px;
    }

    .th-hr-cta {
        margin-top: 22px;
    }

    .th-hr-pos-head {
        margin-bottom: 16px;
    }

    .th-hr-more {
        margin-top: 16px !important;
    }

    .th-hr-trusted {
        padding: 28px 0 32px;
    }
}
