/* ==========================================================================
   Terapan.id — Home versi ringkas (alur home lama, UI sekarang)
   Dipakai setelah home.css. Revisi meeting 2026-10-18: header transparan di atas hero,
   tombol hero di paling bawah, Why OJT + For Who, dropdown posisi, slider kartu, alumni.
   ========================================================================== */

/* ---------- Hero: tagline OJT sebagai judul utama ---------- */
.th-hr-hero {
    display: flex;
    align-items: center;
    min-height: min(86vh, 700px);
    /* header transparan menimpa hero: ruang atas = tinggi header */
    padding: calc(var(--th-header-h) + 40px) 0 56px;
}

.th-hr-hero .container {
    width: 100%;
}

.th-hr-hero-copy {
    max-width: 780px;
}

.th-hr-title {
    text-wrap: balance;
}

.th-hr-title span {
    display: block;
}

.th-hr-desc {
    max-width: 640px;
    margin-top: 18px !important;
    font-size: var(--th-fs-md) !important;
    text-wrap: pretty;
}

/* Bukti singkat: "Diikuti oleh 535+ Peserta | Studi Kasus Real Project | ..." */
.th-hr-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 0;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    color: rgba(255, 255, 255, .88);
    font-size: var(--th-fs-sm);
    line-height: 1.4;
}

.th-hr-proof li {
    display: inline-block;
    padding: 0 14px;
    border-left: 2px solid #ffb27a;
}

.th-hr-proof li:first-child {
    padding-left: 0;
    border-left: 0;
}

.th-hr-proof b {
    color: #fff;
}

/* tombol di paling bawah hero */
.th-hr-actions {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

/* ---------- Gradasi hijau Terapan di section setelah hero (token di layout.css) ---------- */
.th-hr-why {
    /* sengaja tidak di-position: latar section ini harus tergambar DI BAWAH hero,
       supaya kartu Why OJT yang naik (margin negatif) terlihat melayang di atas hero */
    position: static;
}

/* ---------- Why OJT?: teks kiri, For Who + gambar kanan ---------- */
.th-hr-why-grid {
    display: grid;
    gap: 32px;
}

.th-hr-kicker {
    display: inline-block;
    margin-bottom: 12px !important;
    color: #b44a00;
    font-family: poppins, sans-serif;
    font-size: var(--th-fs-lg);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
}

.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-md);
    font-weight: 700;
}

.th-hr-story dd {
    margin: 0;
    color: #3f5157;
    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;
}

.th-hr-why-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* For Who? */
.th-hr-forwho {
    padding: 20px 22px;
    border: 1px solid rgba(15, 122, 92, .18);
    border-radius: 16px;
    background: rgba(255, 255, 255, .78);
    box-shadow: var(--th-shadow);
}

.th-hr-forwho-title {
    display: inline-block;
    margin-bottom: 12px !important;
    padding: 4px 12px;
    border-radius: 8px;
    background: var(--th-green);
    color: #fff;
    font-family: poppins, sans-serif;
    font-size: var(--th-fs-md);
    font-weight: 700;
    line-height: 1.3;
}

.th-hr-forwho ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.th-hr-forwho li {
    padding: 6px 14px;
    border: 1px solid rgba(15, 122, 92, .3);
    border-radius: 999px;
    background: #fff;
    color: var(--th-primary-dark);
    font-family: poppins, sans-serif;
    font-size: var(--th-fs-sm);
    font-weight: 600;
    line-height: 1.35;
}

/* Gambar proporsional dengan kolom teks: mengisi sisa tinggi kolom kanan */
.th-hr-why-media {
    position: relative;
    flex: 1 1 auto;
    min-height: 240px;
    margin: 0;
    overflow: hidden;
    border-radius: 20px;
    background: var(--th-primary-dark);
    box-shadow: var(--th-shadow-lg);
}

.th-hr-why-media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
    transform-origin: 50% 40%;
    animation: th-kenburns 18s ease-in-out infinite alternate;
}

@keyframes th-kenburns {
    from { transform: scale(1); }
    to { transform: scale(1.07); }
}

@media (prefers-reduced-motion: reduce) {
    .th-hr-why-media img {
        animation: none;
    }
}

/* ---------- Pilih posisi karir ---------- */
.th-hr-pos-head {
    display: grid;
    gap: 16px;
    margin-bottom: 22px;
}

.th-hr-sub {
    margin-top: 10px !important;
    color: var(--th-muted);
    font-size: var(--th-fs-base);
}

/* Kartu posisi. HP: daftar ringkas (foto kecil + nama). Desktop: kartu bergambar dalam slider. */
.th-pos-slider {
    position: relative;
}

.th-pos-track {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.th-pos-card {
    position: relative;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    height: 100%;
    padding: 12px 14px;
    border: 1px solid var(--th-border);
    border-radius: 14px;
    background: #fff;
    color: var(--th-text) !important;
    text-decoration: none !important;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.th-pos-card:hover,
.th-pos-card:focus-visible {
    border-color: #a9c9cf;
    box-shadow: var(--th-shadow);
}

.th-pos-media {
    display: block;
    width: 56px;
    height: 56px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--th-primary-soft);
}

.th-pos-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.th-pos-body {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.th-pos-badge {
    display: none;
}

.th-pos-name {
    color: var(--th-primary-dark);
    font-family: poppins, sans-serif;
    font-size: var(--th-fs-base);
    font-weight: 700;
    line-height: 1.3;
}

.th-pos-name small {
    display: none;
}

.th-pos-for,
.th-pos-count {
    color: var(--th-muted);
    font-size: 13px;
    line-height: 1.4;
}

.th-pos-count {
    color: var(--th-primary);
    font-weight: 600;
}

.th-pos-count em {
    color: #b44a00;
    font-style: normal;
}

.th-pos-cta {
    color: var(--th-primary);
}

.th-pos-cta span {
    display: none;
}

.th-pos-nav {
    display: none;
}

.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;
}

/* ---------- Alumni Kami: geser otomatis (berhenti saat disentuh/hover) ---------- */
.th-hr-alumni {
    overflow: hidden;
    background: #fff;
}

.th-hr-alumni-title {
    color: #b44a00;
    text-align: center;
}

.th-hr-alumni-sub {
    max-width: 620px;
    margin: 10px auto 0 !important;
    text-align: center;
}

/* slider selebar container, sama dengan section lain */
.th-alumni-marquee {
    margin-top: 28px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}

.th-alumni-track {
    display: flex;
    gap: 16px;
    width: max-content;
    margin: 0;
    padding: 6px 0 12px;
    list-style: none;
    animation: th-marquee 140s linear infinite;
}

.th-alumni-marquee:hover .th-alumni-track,
.th-alumni-marquee:focus-within .th-alumni-track {
    animation-play-state: paused;
}

@keyframes th-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 8px)); }
}

.th-alumni-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 300px;
    padding: 16px;
    border: 1px solid var(--th-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(9, 78, 93, .06);
}

.th-alumni-card img,
.th-alumni-initial {
    flex: none;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--th-primary-soft);
}

.th-alumni-initial {
    display: grid;
    place-items: center;
    color: var(--th-primary);
    font-family: poppins, sans-serif;
    font-size: 24px;
    font-weight: 700;
}

.th-alumni-text {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.th-alumni-text b {
    display: -webkit-box;
    overflow: hidden;
    color: var(--th-primary-dark);
    font-family: poppins, sans-serif;
    font-size: 15px;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.th-alumni-text small {
    display: -webkit-box;
    overflow: hidden;
    color: var(--th-muted);
    font-size: 13px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.th-alumni-org {
    color: #3f5157 !important;
}

.th-alumni-org i {
    width: 14px;
    color: var(--th-accent);
    font-size: 11px;
}

@media (prefers-reduced-motion: reduce) {
    .th-alumni-marquee {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .th-alumni-track {
        animation: none;
        padding-left: 16px;
    }
}

/* ---------- 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;
    }
}

/* ---------- ≥768px: kartu posisi jadi slider kartu bergambar ---------- */
@media (min-width: 768px) {
    .th-hr-pos-head {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
        align-items: end;
    }

    .th-pos-track {
        display: flex;
        gap: 20px;
        padding: 4px 2px 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        overscroll-behavior-x: contain;
        /* scrollbar disembunyikan: geser lewat tombol panah, trackpad, atau sentuh */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .th-pos-track::-webkit-scrollbar {
        display: none;
    }

    .th-pos-track > li {
        flex: 0 0 calc((100% - 20px) / 2.25);
        scroll-snap-align: start;
    }

    .th-pos-card {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        overflow: hidden;
        border-radius: 16px;
        box-shadow: 0 1px 2px rgba(9, 78, 93, .06);
    }

    .th-pos-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--th-shadow-lg);
    }

    .th-pos-media {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
        border-radius: 0;
    }

    .th-pos-card:hover .th-pos-media img {
        transform: scale(1.04);
    }

    .th-pos-media img {
        transition: transform .4s ease;
    }

    .th-pos-body {
        flex: 1 1 auto;
        align-content: start;
        gap: 6px;
        padding: 16px 18px 6px;
    }

    .th-pos-badge {
        position: absolute;
        top: 12px;
        left: 12px;
        display: inline-block;
        padding: 3px 10px;
        border-radius: 999px;
        background: rgba(255, 255, 255, .92);
        color: var(--th-primary-dark);
        font-size: 12px;
        font-weight: 600;
    }

    .th-pos-name {
        font-size: var(--th-fs-md);
    }

    .th-pos-name small {
        display: block;
        margin-bottom: 2px;
        color: var(--th-accent);
        font-size: 11px;
        letter-spacing: .12em;
    }

    .th-pos-cta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 8px 18px 0;
        padding: 12px 0 16px;
        border-top: 1px solid var(--th-border);
        color: var(--th-accent);
        font-family: poppins, sans-serif;
        font-size: var(--th-fs-sm);
        font-weight: 600;
    }

    .th-pos-cta span {
        display: inline;
    }

    .th-pos-cta i {
        display: grid;
        place-items: center;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: var(--th-accent-soft);
        font-size: 12px;
    }

    .th-pos-nav {
        position: absolute;
        top: calc(50% - 30px);
        z-index: 2;
        display: grid;
        place-items: center;
        width: 46px;
        height: 46px;
        border: 1px solid var(--th-border);
        border-radius: 50%;
        background: #fff;
        color: var(--th-primary);
        box-shadow: var(--th-shadow-lg);
        cursor: pointer;
        transition: background-color .2s, color .2s, opacity .2s;
    }

    .th-pos-nav[hidden] {
        display: none;
    }

    .th-pos-nav:hover:not(:disabled) {
        background: var(--th-primary);
        color: #fff;
    }

    .th-pos-nav:disabled {
        opacity: 0;
        pointer-events: none;
    }

    .th-pos-nav--prev {
        left: -18px;
    }

    .th-pos-nav--next {
        right: -18px;
    }
}

/* ---------- ≥992px ---------- */
@media (min-width: 992px) {
    .th-hr-hero {
        min-height: min(88vh, 720px);
        padding: calc(var(--th-header-h) + 48px) 0 72px;
    }

    .th-hr-why-grid {
        grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
        gap: 56px;
        align-items: stretch;
    }

    .th-hr-story {
        gap: 20px;
    }

    .th-hr-why-media {
        min-height: 320px;
    }

    .th-pos-track > li {
        flex-basis: calc((100% - 40px) / 3);
    }
}

/* 2026-10-20: desktop lebar pun tetap 3 kartu posisi terlihat (dulu 4 di >=1200px); sisanya digeser */

/* ---------- HP: hero setinggi isinya, jarak antar bagian lebih rapat ---------- */
@media (max-width: 767.98px) {
    .th-hr-hero {
        min-height: 0;
        padding: calc(var(--th-header-h) + 24px) 0 36px;
    }

    .th-hr-title {
        font-size: 30px;
        line-height: 1.18;
    }

    .th-hr-desc {
        margin-top: 14px !important;
        font-size: var(--th-fs-base) !important;
    }

    .th-hr-proof {
        gap: 6px 0;
        font-size: 13px;
    }

    .th-hr-proof li {
        padding: 0 10px;
    }

    .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-why-media {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .th-hr-forwho {
        padding: 16px;
    }

    .th-hr-forwho li {
        font-size: 15px;
    }

    .th-hr-pos-head {
        margin-bottom: 16px;
    }

    .th-hr-more {
        margin-top: 16px !important;
    }

    .th-alumni-card {
        width: 260px;
        padding: 14px;
    }

    .th-hr-trusted {
        padding: 28px 0 32px;
    }
}

/* ==========================================================================
   Why OJT sebagai kartu melayang (revisi 2026-10-18 malam):
   kartu putih bergradasi tipis, naik menimpa bagian bawah hero, lebar sedikit melebihi konten.
   Ukuran teks diseimbangkan: judul tidak lagi sebesar judul section biasa.
   ========================================================================== */
.th-hr .th-hr-why {
    padding-top: 0;
}

.th-hr-why-wrap {
    position: relative;
    z-index: 2;
}

.th-hr-why-card {
    margin-top: -48px;
    padding: 24px 18px;
    border: 1px solid rgba(9, 78, 93, .08);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 55%, #f2f9f6 100%);
    box-shadow: 0 24px 60px rgba(6, 40, 48, .18), 0 2px 6px rgba(6, 40, 48, .06);
}

.th-hr-why-card .th-hr-h2 {
    font-size: clamp(22px, 2.3vw, 30px);
    line-height: 1.3;
}

.th-hr-why-card .th-hr-kicker {
    font-size: var(--th-fs-md);
}

.th-hr-why-card .th-hr-story {
    gap: 14px;
    margin-top: 18px;
}

.th-hr-why-card .th-hr-story dt {
    font-size: var(--th-fs-base);
}

.th-hr-why-card .th-hr-story dd {
    font-size: 15px;
    line-height: 1.65;
}

.th-hr-why-card .th-hr-result {
    margin-top: 18px !important;
    font-size: var(--th-fs-base);
}

.th-hr-why-card .th-hr-cta {
    margin-top: 22px;
}

.th-hr-why-card .th-hr-forwho {
    box-shadow: none;
    background: #f4faf8;
}

/* hero memberi ruang di bawah untuk kartu yang menimpa */
.th-hr-hero {
    padding-bottom: 96px;
}

@media (min-width: 768px) {
    .th-hr-why-card {
        margin-top: -88px;
        padding: 36px 36px;
        border-radius: 24px;
    }

    .th-hr-hero {
        padding-bottom: 140px;
    }
}

@media (min-width: 992px) {
    .th-hr-why-card {
        margin-top: -120px;
        padding: 44px 48px;
        gap: 48px;
    }

    .th-hr-hero {
        padding-bottom: 176px;
    }

    .th-hr-why-media {
        min-height: 300px;
    }
}

/* kartu Kenapa OJT selebar container, sama dengan navbar & section lain */

/* mode gelap: kartu gelap */
:root[data-theme="dark"] .th-hr-why-card {
    border-color: var(--th-dk-line);
    background: var(--th-dk-card);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}

:root[data-theme="dark"] .th-hr-why-card .th-hr-forwho {
    background: var(--th-dk-card-2);
}

/* ==========================================================================
   Hero lebih fresh (revisi 2026-10-18 malam): badge kecil di atas judul,
   overlay kiri-gelap ke kanan-terang supaya foto industri terlihat,
   bukti sosial = foto alumni bertumpuk + chip ber-ikon.
   ========================================================================== */
/* bukti sosial */
.th-hr-proof {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, .9);
}

.th-hr-proof-people {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 !important;
    font-size: var(--th-fs-sm);
    line-height: 1.3;
}

.th-hr-proof-people b {
    color: #ffb27a;
    font-size: var(--th-fs-md);
}

.th-hr-avatars {
    display: inline-flex;
}

.th-hr-avatars img {
    width: 36px;
    height: 36px;
    margin-left: -10px;
    /* bingkai seragam (revisi 2026-10-20): latar putih bulat + garis oranye brand */
    border: 2px solid #e8650a;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}

.th-hr-avatars img:first-child {
    margin-left: 0;
}

.th-hr-proof-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.th-hr-proof .th-hr-proof-list li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-left: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    font-size: 13px;
    line-height: 1.3;
}

.th-hr-proof-list i {
    color: #ffb27a;
    font-size: 12px;
}

@media (min-width: 992px) {
    /* overlay: teks kiri tetap kontras, foto industri di kanan lebih terlihat */
    .th-hr-hero .th-hero-overlay {
        background:
            linear-gradient(90deg, rgba(5, 34, 41, .96) 0%, rgba(6, 48, 58, .86) 38%, rgba(8, 66, 79, .45) 70%, rgba(9, 78, 93, .2) 100%),
            linear-gradient(180deg, rgba(5, 34, 41, .35) 0%, transparent 30%, transparent 70%, rgba(5, 34, 41, .55) 100%);
    }

    .th-hr-title {
        font-size: clamp(40px, 3.6vw, 56px);
        letter-spacing: -.02em;
    }

    .th-hr-hero {
        min-height: min(84vh, 700px);
    }
}

@media (max-width: 767.98px) {
    .th-hr-proof {
        gap: 12px;
        margin-top: 18px;
    }

    .th-hr-proof .th-hr-proof-list li {
        padding: 5px 10px;
        font-size: 12.5px;
    }
}

/* ==========================================================================
   Jarak antar section di desktop dirapatkan (whitespace berlebih)
   ========================================================================== */
@media (min-width: 768px) {
    .th-hr .th-hr-why {
        padding-bottom: 48px;
    }

    .th-hr .th-hr-pos {
        padding: 56px 0 48px;
    }

    .th-hr .th-hr-pos .th-hr-more {
        margin-top: 16px !important;
    }

    .th-hr .th-hr-alumni {
        padding: 56px 0 36px;
    }

    .th-hr .th-hr-alumni .th-alumni-marquee {
        margin-top: 22px;
    }

    .th-hr .th-hr-trusted {
        padding: 24px 0 44px;
    }
}

/* ==========================================================================
   Kartu Why OJT v2: tidak lagi kotak putih polos memanjang.
   Garis aksen gradasi di atas, rona hijau halus, 3 kartu poin ber-ikon, bar "Hasilnya" gelap + tombol.
   ========================================================================== */
.th-hr-why-card {
    position: relative;
    overflow: hidden;
    display: block;
    padding: 26px 18px 18px;
    background: #fff;
}

.th-hr-why-top {
    display: grid;
    gap: 20px;
}

.th-hr-why-head .th-hr-h2 {
    font-size: clamp(22px, 2.2vw, 30px);
}

.th-hr-why-head .th-hr-forwho {
    margin-top: 18px;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
}

.th-hr-why-head .th-hr-forwho-title {
    margin-bottom: 10px !important;
    font-size: var(--th-fs-base);
}

.th-hr-why-head .th-hr-forwho ul {
    gap: 6px;
}

.th-hr-why-head .th-hr-forwho li {
    padding: 5px 12px;
    font-size: 13px;
}

/* foto: sejajar tinggi kolom judul */
.th-hr-why-top .th-hr-why-media {
    flex: none;
    min-height: 0;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(6, 40, 48, .18);
}

/* 3 kartu poin */
.th-hr-steps3 {
    display: grid;
    gap: 12px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.th-hr-step3 {
    position: relative;
    padding: 18px 18px 16px;
    border: 1px solid #e3eef0;
    border-radius: 16px;
    background: linear-gradient(180deg, #fbfdfd 0%, #f3f9f8 100%);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.th-hr-step3:hover {
    border-color: #cfe3e0;
    box-shadow: 0 10px 24px rgba(9, 78, 93, .1);
    transform: translateY(-2px);
}

.th-hr-step3-icon {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    border-radius: 12px;
    font-size: 17px;
}

.th-hr-step3.is-1 .th-hr-step3-icon {
    background: #fff1e6;
    color: #e8650a;
}

.th-hr-step3.is-2 .th-hr-step3-icon {
    background: #fdecec;
    color: #c2410c;
}

.th-hr-step3.is-3 .th-hr-step3-icon {
    background: #e3f5ee;
    color: #0f7a5c;
}

.th-hr-step3 h3 {
    margin-bottom: 6px !important;
    color: var(--th-primary-dark);
    font-size: var(--th-fs-base);
    font-weight: 700;
    line-height: 1.35;
}

.th-hr-step3 p {
    color: #4a5d63;
    font-size: 14.5px;
    line-height: 1.6;
}

.th-hr-step3 mark,
.th-hr-resultbar mark {
    padding: 0 2px;
    background: linear-gradient(transparent 58%, #ffd9bd 58%);
    color: inherit;
    font-weight: 600;
}

/* bar Hasilnya */
.th-hr-resultbar {
    display: grid;
    gap: 14px;
    align-items: center;
    margin-top: 14px;
    padding: 18px 18px;
    border-radius: 16px;
    background: linear-gradient(110deg, #063743 0%, #0a4d5b 60%, #0b5a4c 100%);
    color: rgba(255, 255, 255, .9);
}

.th-hr-resultbar p {
    font-family: poppins, sans-serif;
    font-size: var(--th-fs-base);
    font-weight: 500;
    line-height: 1.5;
}

.th-hr-resultbar b {
    color: #ffb27a;
}

.th-hr-resultbar mark {
    background: linear-gradient(transparent 60%, rgba(232, 101, 10, .55) 60%);
    color: #fff;
}

.th-hr-resultbar .th-btn {
    white-space: nowrap;
}

@media (min-width: 768px) {
    .th-hr-why-card {
        padding: 34px 32px 26px;
    }

    .th-hr-steps3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
        margin-top: 26px;
    }

    .th-hr-resultbar {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 24px;
        padding: 20px 24px;
    }
}

@media (min-width: 992px) {
    .th-hr-why-card {
        padding: 40px 44px 30px;
    }

    .th-hr-why-top {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        gap: 44px;
        align-items: stretch;
    }

    .th-hr-why-top .th-hr-why-media {
        aspect-ratio: auto;
        min-height: 230px;
    }
}

/* jarak ke section berikutnya lebih rapat */
@media (min-width: 768px) {
    .th-hr .th-hr-why {
        padding-bottom: 32px;
    }

    .th-hr .th-hr-pos {
        padding-top: 44px;
    }
}

/* mode gelap */
:root[data-theme="dark"] .th-hr-why-card {
    background: var(--th-dk-card);
}

:root[data-theme="dark"] .th-hr-step3 {
    border-color: var(--th-dk-line);
    background: var(--th-dk-card-2);
}

:root[data-theme="dark"] .th-hr-step3 h3 {
    color: var(--th-dk-head);
}

:root[data-theme="dark"] .th-hr-step3 p {
    color: var(--th-dk-body);
}

:root[data-theme="dark"] .th-hr-why-head .th-hr-forwho {
    background: none;
}

/* HP: ikon sejajar judul kartu poin supaya lebih ringkas */
@media (max-width: 767.98px) {
    .th-hr-step3 {
        display: grid;
        grid-template-columns: 36px minmax(0, 1fr);
        column-gap: 12px;
        align-items: center;
        padding: 14px;
    }

    .th-hr-step3-icon {
        width: 36px;
        height: 36px;
        margin: 0;
        font-size: 15px;
    }

    .th-hr-step3 h3 {
        margin: 0 !important;
    }

    .th-hr-step3 p {
        grid-column: 1 / -1;
        margin-top: 8px !important;
    }
}

/* Judul kartu Why OJT diperkecil supaya seimbang dengan isi kartu (tidak "besar sendirian") */
.th-hr-why-head .th-hr-kicker {
    margin-bottom: 8px !important;
    font-size: var(--th-fs-base);
}

.th-hr-why-head .th-hr-h2 {
    font-size: clamp(19px, 1.7vw, 24px);
    font-weight: 700;
    line-height: 1.4;
}

.th-hr-why-head .th-hr-forwho {
    margin-top: 16px;
}

.th-hr-why-head .th-hr-forwho-title {
    padding: 3px 10px;
    font-size: var(--th-fs-sm);
}

@media (min-width: 992px) {
    .th-hr-why-head {
        align-self: center;
    }
}

/* Kalimat "skill gap" + judul: tampil di semua ukuran layar dengan gaya yang sama seperti desktop
   (teks reguler, hanya kata kunci tebal) supaya konsisten (2026-10-21) */
.th-hr-why-lede,
.th-hr-why-head .th-hr-h2 {
    color: var(--th-primary-dark);
    font-family: poppins, sans-serif;
    font-size: clamp(20px, 5.4vw, 26px);
    font-weight: 400;
    line-height: 1.4;
}

.th-hr-why-lede {
    margin: 12px 0 10px !important;
}

.th-hr-why-lede b,
.th-hr-why-head .th-hr-h2 b {
    font-weight: 700;
}

/* ==========================================================================
   Kartu Kenapa OJT desktop (revisi 2026-10-20, sketsa klien):
   [Kenapa OJT? + kalimat skill gap + judul | foto lebih tinggi] > 3 kartu selebar kartu
   > "Untuk Siapa?" sebaris dengan chip > bar Hasilnya.
   Pembungkus judul & foto dibuka (display: contents) supaya tiap bagian bisa ditempatkan di grid kartu;
   blok teks & foto sama tinggi: foto merentang mengikuti tinggi teks ("Kenapa OJT?" rata atas, judul rata bawah),
   huruf teks dibuat besar supaya foto tetap tinggi.
   HP & tablet tidak berubah.
   ========================================================================== */
@media (min-width: 992px) {
    .th-hr-why-card {
        display: grid;
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        grid-template-rows: auto auto auto auto auto auto;
        gap: 0 44px; /* jarak antar baris lewat margin tiap bagian */
    }

    .th-hr-why-top,
    .th-hr-why-head {
        display: contents;
    }

    .th-hr-why-head .th-hr-kicker {
        grid-column: 1;
        grid-row: 1;
        align-self: start;
    }

    .th-hr-why-lede,
    .th-hr-why-head .th-hr-h2 {
        color: var(--th-primary-dark);
        font-family: poppins, sans-serif;
        font-size: clamp(24px, 2.3vw, 34px);

        font-weight: 400;
        line-height: 1.38;
    }

    .th-hr-why-lede {
        display: block;
        grid-column: 1;
        grid-row: 2;
        margin: 14px 0 18px !important;
    }

    .th-hr-why-head .th-hr-h2 {
        grid-column: 1;
        grid-row: 3;
        margin: 0;
    }

    .th-hr-why-lede b,
    .th-hr-why-head .th-hr-h2 b {
        font-weight: 700;
    }

    .th-hr-why-top .th-hr-why-media {
        grid-column: 2;
        grid-row: 1 / 4;
        min-height: 0;
    }

    .th-hr-steps3,
    .th-hr-why-card > .th-hr-story-plain {
        grid-column: 1 / -1;
        grid-row: 4;
    }

    .th-hr-why-head .th-hr-forwho {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
        grid-column: 1 / -1;
        grid-row: 5;
        margin-top: 22px;
    }

    .th-hr-why-head .th-hr-forwho-title {
        margin-bottom: 0 !important;
    }

    .th-hr-resultbar,
    .th-hr-why-card > .th-hr-cta {
        grid-column: 1 / -1;
        grid-row: 6;
        margin-top: 20px;
    }
}

:root[data-theme="dark"] .th-hr-why-lede,
:root[data-theme="dark"] .th-hr-why-head .th-hr-h2 {
    color: var(--th-dk-head);
}

/* mode gelap: highlight (mark) di kartu Kenapa OJT pakai stripe oranye gelap, teks tetap terang */
:root[data-theme="dark"] .th-hr-step3 mark,
:root[data-theme="dark"] .th-hr-why-card mark {
    background: linear-gradient(transparent 55%, rgba(232, 101, 10, .5) 55%);
    color: #fff;
}

/* ==========================================================================
   Hero HP lebih lega (revisi 2026-10-20): judul & deskripsi sedikit lebih kecil,
   chip berbingkai jadi baris teks ber-ikon tanpa kotak, avatar lebih kecil.
   Desktop tidak berubah.
   ========================================================================== */
@media (max-width: 767.98px) {
    .th-hr-hero {
        padding-top: calc(var(--th-header-h) + 36px);
        padding-bottom: 112px;
    }

    .th-hr-title {
        font-size: 26px;
        line-height: 1.22;
    }

    .th-hr-desc {
        margin-top: 18px !important;
        color: rgba(255, 255, 255, .82) !important;
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    .th-hr-proof {
        gap: 14px;
        margin-top: 28px;
    }

    .th-hr-proof-people {
        gap: 10px;
    }

    .th-hr-avatars img {
        width: 30px;
        height: 30px;
        margin-left: -8px;
    }

    .th-hr-proof-list {
        gap: 8px 14px;
    }

    .th-hr-proof .th-hr-proof-list li {
        gap: 6px;
        padding: 0;
        border: 0;
        background: none;
        color: rgba(255, 255, 255, .85);
        font-size: 13px;
    }

    .th-hr-actions {
        margin-top: 32px;
    }
}

/* Label "Kenapa OJT?" & "Untuk Siapa?" distandarkan (revisi 2026-10-20): outline oranye, tanpa latar hijau */
.th-hr-why-head .th-hr-kicker,
.th-hr-why-head .th-hr-forwho-title {
    display: inline-block;
    justify-self: start;
    width: fit-content;
    padding: 3px 12px;
    border: 1.5px solid #e8650a;
    border-radius: 999px;
    background: transparent;
    color: #b44a00;
    font-family: poppins, sans-serif;
    font-size: var(--th-fs-sm);
    font-weight: 700;
    line-height: 1.4;
}

:root[data-theme="dark"] .th-hr-why-head .th-hr-kicker,
:root[data-theme="dark"] .th-hr-why-head .th-hr-forwho-title {
    border-color: #ff9f5c;
    background: transparent;
    color: #ff9f5c;
}

/* Desktop (revisi 2026-10-20): kolom foto lebih lebar (1:1), tinggi foto = tinggi blok teks
   ("Kenapa OJT?" rata atas foto, kalimat terakhir rata bawah foto). Huruf teks dibesarkan
   supaya foto tetap tinggi & proporsional. HP & tablet tetap 16:10. */
@media (min-width: 992px) {
    .th-hr-why-card {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .th-hr-why-top .th-hr-why-media {
        align-self: stretch;
        min-height: 0;
        aspect-ratio: auto;
    }

    .th-hr-why-lede,
    .th-hr-why-head .th-hr-h2 {
        font-size: clamp(26px, 2.7vw, 38px);
        line-height: 1.36;
    }

    .th-hr-why-lede {
        margin: 18px 0 16px !important;
    }
}

/* HP & tablet (revisi 2026-10-23): "Untuk Siapa?" dipindah ke bawah 3 kartu, tepat sebelum bar Hasilnya
   (urutan sama seperti desktop). Pembungkus judul & foto dibuka (display: contents) lalu diurutkan lewat order.
   Desktop tidak berubah. */
@media (max-width: 991.98px) {
    .th-hr-why-card {
        display: flex;
        flex-direction: column;
    }

    .th-hr-why-top,
    .th-hr-why-head {
        display: contents;
    }

    .th-hr-why-head .th-hr-kicker {
        align-self: flex-start;
    }

    .th-hr-why-top .th-hr-why-media {
        margin-top: 20px;
    }

    .th-hr-why-head .th-hr-forwho {
        order: 1;
        margin-top: 22px;
    }

    .th-hr-resultbar,
    .th-hr-why-card > .th-hr-cta {
        order: 2;
    }
}
