/* =========================================================
 * OJSHub — Katalog Tema OJS (ojshub.com/theme/)
 * Dipakai bersama header/footer /scanner/partials.
 * Semua class diawali .th agar tidak bentrok dengan style.css situs.
 * ========================================================= */
.th {
    --th-primary: #20198c;
    --th-primary-dark: #171064;
    --th-navy: #0e1330;
    --th-text: #172033;
    --th-muted: #5f6b7a;
    --th-border: #e4e7ec;
    --th-soft: #f6f8fc;
    --th-gold: #f5b83d;
    --th-green: #1f9d55;
    --th-tech: #8b1d22;        /* aksen OJSHub Tech Theme (OJS 3.5) */
    --th-tech-soft: #fbeaea;
    --th-classic: #1e6b8a;     /* aksen OJSHub Theme (OJS 3.3) */
    --th-classic-soft: #e6f1f5;
    --th-radius: 16px;
    --th-shadow: 0 12px 32px -14px rgba(23, 16, 100, .22);
    color: var(--th-text);
    line-height: 1.6;
}
.th *, .th *::before, .th *::after { box-sizing: border-box; }
.th img { max-width: 100%; display: block; }
.th h1, .th h2, .th h3, .th h4 { line-height: 1.2; margin: 0; letter-spacing: -.01em; color: inherit; }
.th-container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.th :focus-visible { outline: 3px solid var(--th-gold); outline-offset: 2px; }

/* ---------- Tombol ---------- */
.th-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 20px; border-radius: 10px; border: 2px solid transparent;
    font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.2;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform .15s, background .15s, border-color .15s, box-shadow .15s;
}
.th-btn:hover { transform: translateY(-1px); }
.th-btn--gold { background: var(--th-gold); color: #1b1300; }
.th-btn--gold:hover { box-shadow: 0 8px 20px -8px rgba(245, 184, 61, .85); color: #1b1300; }
.th-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .45); background: transparent; }
.th-btn--ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.th-btn--wa { background: var(--th-green); color: #fff; }
.th-btn--wa:hover { background: #17834a; color: #fff; }
.th-btn--line { background: #fff; color: var(--th-text); border-color: var(--th-border); }
.th-btn--line:hover { border-color: var(--th-text); color: var(--th-text); }

.th-eyebrow { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--th-primary); }
.th-sec { padding: 76px 0; }
.th-sec--alt { background: #fff; border-top: 1px solid var(--th-border); border-bottom: 1px solid var(--th-border); }
.th-head { max-width: 700px; margin: 0 auto 40px; text-align: center; }
.th-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin: 8px 0 12px; }
.th-head p { color: var(--th-muted); margin: 0; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.th-hero {
    position: relative; overflow: hidden; color: #fff;
    padding: 64px 0 120px;
    background:
        radial-gradient(900px 420px at 88% -10%, rgba(245, 184, 61, .2), transparent 60%),
        linear-gradient(135deg, var(--th-primary) 0%, var(--th-primary-dark) 50%, var(--th-navy) 100%);
}
.th-hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 22px 22px;
}
.th-hero .th-container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.th-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.th-pill { font-size: .78rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); }
.th-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; color: #fff; }
.th-hero h1 em { font-style: normal; color: var(--th-gold); }
.th-lead { font-size: 1.1rem; color: #dcdcf5; margin: 16px 0 26px; max-width: 560px; }
.th-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.th-stack { position: relative; min-height: 380px; }
.th-stack .th-frame { position: absolute; width: 82%; }
.th-stack .th-frame:nth-child(1) { top: 0; right: 0; }
.th-stack .th-frame:nth-child(2) { bottom: 0; left: 0; width: 62%; }
.th-stack .th-frame:nth-child(1) .th-view { height: 300px; }
.th-stack .th-frame:nth-child(2) .th-view { height: 190px; }
.th-tag {
    position: absolute; z-index: 2; background: #fff; color: var(--th-text);
    border-radius: 12px; padding: 10px 14px; box-shadow: var(--th-shadow);
    font-size: .8rem; font-weight: 600;
}
.th-tag b { display: block; font-size: 1.15rem; }
.th-tag--tech { top: 18px; left: 4%; }
.th-tag--tech b { color: var(--th-tech); }
.th-tag--classic { bottom: 14px; right: 0; }
.th-tag--classic b { color: var(--th-classic); }

/* ---------- Bingkai browser ---------- */
.th-frame { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 28px 56px -22px rgba(0, 0, 0, .55); }
.th-frame-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #eef1f6; border-bottom: 1px solid var(--th-border); }
.th-frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d5dae3; }
.th-frame-bar i:nth-child(1) { background: #f87171; }
.th-frame-bar i:nth-child(2) { background: #fbbf24; }
.th-frame-bar i:nth-child(3) { background: #34d399; }
.th-frame-bar span { margin-left: 8px; flex: 1; font-size: .72rem; color: #64748b; background: #fff; border-radius: 6px; padding: 2px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-view { overflow: hidden; }
.th-view img { width: 100%; }

/* ---------- Kartu produk ---------- */
.th-products { margin-top: -78px; position: relative; z-index: 2; }
.th-pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.th-card { background: #fff; border-radius: var(--th-radius); border: 1px solid var(--th-border); box-shadow: var(--th-shadow); overflow: hidden; display: flex; flex-direction: column; border-top: 5px solid var(--th-accent, var(--th-primary)); }
.th-card--tech { --th-accent: var(--th-tech); }
.th-card--classic { --th-accent: var(--th-classic); }
.th-thumb { position: relative; height: 220px; overflow: hidden; background: #e9edf4; border-bottom: 1px solid var(--th-border); }
.th-thumb img { width: 100%; object-fit: cover; object-position: top; transition: transform 5s ease; }
.th-card:hover .th-thumb img { transform: translateY(-18%); }
.th-badge { position: absolute; top: 14px; left: 14px; background: var(--th-gold); color: #1b1300; font-weight: 800; font-size: .75rem; padding: 5px 11px; border-radius: 999px; letter-spacing: .04em; }
.th-ojs { position: absolute; top: 14px; right: 14px; background: var(--th-accent); color: #fff; font-weight: 700; font-size: .75rem; padding: 5px 11px; border-radius: 999px; }
.th-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.th-body h3 { font-size: 1.45rem; }
.th-meta { font-size: .85rem; color: var(--th-muted); margin: 4px 0 12px; }
.th-body > p { margin: 0 0 18px; color: #3b4456; font-size: .95rem; }
.th-price { display: flex; align-items: baseline; gap: 8px; }
.th-price b { font-size: 2rem; font-weight: 800; color: var(--th-accent); letter-spacing: -.02em; }
.th-price small { color: var(--th-muted); font-weight: 600; }
.th-note { font-size: .82rem; color: var(--th-muted); margin: 2px 0 18px; }
.th-hl { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 9px; }
.th-hl li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; }
.th-hl svg { flex: none; color: var(--th-green); margin-top: 2px; }
.th-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.th-actions .th-btn { flex: 1; }

/* ---------- Galeri ---------- */
.th-switch { display: flex; justify-content: center; gap: 0; margin: 0 auto 16px; background: #eef0f8; padding: 5px; border-radius: 12px; width: max-content; max-width: 100%; }
.th-switch button { font: inherit; font-weight: 700; font-size: .9rem; border: 0; background: transparent; padding: 9px 18px; border-radius: 9px; cursor: pointer; color: #475467; }
.th-switch button[aria-pressed="true"] { background: #fff; color: var(--th-text); box-shadow: 0 2px 8px rgba(16, 24, 40, .1); }
.th-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.th-tab { font: inherit; font-weight: 700; font-size: .88rem; border: 1.5px solid var(--th-border); background: #fff; padding: 8px 16px; border-radius: 999px; cursor: pointer; color: #344054; }
.th-tab[aria-selected="true"] { background: var(--th-accent, var(--th-primary)); border-color: var(--th-accent, var(--th-primary)); color: #fff; }
.th-gset[data-p="tech"] { --th-accent: var(--th-tech); }
.th-gset[data-p="classic"] { --th-accent: var(--th-classic); }
.th-gset[hidden], .th-panel[hidden] { display: none !important; }
.th-panel { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: center; }
.th-panel .th-frame { border-color: var(--th-border); box-shadow: var(--th-shadow); }
.th-panel .th-view { height: 520px; overflow-y: auto; }
.th-cap h3 { font-size: 1.5rem; margin: 6px 0 10px; }
.th-cap p { color: var(--th-muted); margin: 0 0 16px; }
.th-cap .th-eyebrow { color: var(--th-accent); }
.th-hint { font-size: .82rem; color: var(--th-muted); }

/* ---------- Fitur ---------- */
.th-legend { text-align: center; font-size: .88rem; color: var(--th-muted); margin: -20px 0 36px; }
.th-legend b { color: #c98a00; }
.th-group { margin-bottom: 36px; }
.th-group-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.th-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--th-tech-soft); color: var(--th-tech); }
.th-group-h h3 { font-size: 1.15rem; }
.th-fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.th-f { position: relative; background: var(--th-soft); border: 1px solid var(--th-border); border-radius: 12px; padding: 18px; }
.th-f h4 { font-size: .98rem; margin: 0 0 6px; padding-right: 22px; }
.th-f p { margin: 0; font-size: .88rem; color: var(--th-muted); }
.th-star { position: absolute; top: 14px; right: 14px; color: #c98a00; }
.th-cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.th-c { display: flex; gap: 12px; padding: 16px; border-radius: 12px; background: var(--th-classic-soft); border: 1px solid #cfe2ea; }
.th-c svg { flex: none; color: var(--th-classic); margin-top: 2px; }
.th-c b { display: block; font-size: .95rem; }
.th-c span { font-size: .85rem; color: var(--th-muted); }

/* ---------- Tabel perbandingan ---------- */
.th-table { position: relative; overflow-x: auto; background: #fff; border: 1px solid var(--th-border); border-radius: var(--th-radius); box-shadow: var(--th-shadow); }
.th-table table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .95rem; }
.th-table th, .th-table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--th-border); }
.th-table thead th { color: #fff; background: var(--th-navy); font-size: .9rem; vertical-align: bottom; }
.th-table thead th small { display: block; font-weight: 500; font-size: .78rem; opacity: .75; }
.th-table thead th.th-col-classic { background: var(--th-classic); }
.th-table thead th.th-col-tech { background: var(--th-tech); }
.th-table .th-c-cell { text-align: center; width: 24%; }
.th-table tbody tr:nth-child(even) { background: #fafbfd; }
.th-table .th-yes { color: var(--th-green); }
.th-table .th-no { color: #c4c9d4; }
.th-table .th-txt { font-size: .85rem; color: #344054; }
.th-table svg { display: inline-block; vertical-align: middle; }
.th-table tfoot td { background: #f4f3fc; font-weight: 800; font-size: 1.1rem; border-bottom: 0; }
.th-table tfoot .th-p-classic { color: var(--th-classic); }
.th-table tfoot .th-p-tech { color: var(--th-tech); }
.th-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Yang didapat & langkah ---------- */
.th-inc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.th-inc div { background: var(--th-soft); border: 1px solid var(--th-border); border-radius: 12px; padding: 20px; }
.th-inc b { display: block; margin-bottom: 4px; }
.th-inc span { font-size: .9rem; color: var(--th-muted); }
.th-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; counter-reset: th-s; }
.th-step { background: var(--th-primary-dark); color: #d6d6f0; border-radius: 12px; padding: 22px; }
.th-step::before { counter-increment: th-s; content: counter(th-s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--th-gold); color: #1b1300; font-weight: 800; margin-bottom: 12px; }
.th-step b { display: block; color: #fff; margin-bottom: 4px; }
.th-step span { font-size: .88rem; }

/* ---------- FAQ ---------- */
.th-faq { max-width: 780px; margin: 0 auto; }
.th-faq details { background: #fff; border: 1px solid var(--th-border); border-radius: 12px; margin-bottom: 10px; padding: 0 20px; }
.th-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 17px 0; font-weight: 700; }
.th-faq summary::-webkit-details-marker { display: none; }
.th-faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--th-primary); }
.th-faq details[open] summary::after { content: "–"; }
.th-faq details p { margin: 0 0 18px; color: var(--th-muted); }

/* ---------- CTA ---------- */
.th-ctabox { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; padding: 38px 40px; border-radius: 20px; color: #fff; background: linear-gradient(120deg, var(--th-primary), var(--th-primary-dark)); }
.th-ctabox h2 { font-size: 1.7rem; margin-bottom: 6px; color: #fff; }
.th-ctabox p { margin: 0; color: #d6d6f0; }
.th-ctabox .th-cta { gap: 12px; }

/* ---------- Responsif ---------- */
@media (max-width: 960px) {
    .th-hero { padding: 44px 0 110px; }
    .th-hero .th-container, .th-panel { grid-template-columns: 1fr; }
    .th-stack { min-height: 330px; }
    .th-pgrid { grid-template-columns: 1fr; }
    .th-inc, .th-steps { grid-template-columns: 1fr 1fr; }
    .th-panel .th-view { height: 420px; }
}
@media (max-width: 560px) {
    .th-sec { padding: 56px 0; }
    .th-stack { min-height: 270px; }
    .th-stack .th-frame:nth-child(1) .th-view { height: 200px; }
    .th-stack .th-frame:nth-child(2) .th-view { height: 130px; }
    .th-inc, .th-steps { grid-template-columns: 1fr; }
    .th-body { padding: 22px; }
    .th-ctabox { padding: 26px; }
    .th-panel .th-view { height: 340px; }
    .th-switch button { padding: 8px 12px; font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
    .th *, .th-btn { transition: none !important; }
}
