/* =====================================================================
   OJSHub – Tema global v2 (hijau + kuning, sesuai logo OJSHub Tools)
   Dimuat setelah style.css & CSS halaman. Prefix class: .oh-
   ===================================================================== */
:root {
    --oh-green: #0e6b63;
    --oh-green-2: #0a4f49;
    --oh-green-3: #14a090;
    --oh-deep: #062e2c;
    --oh-mint: #e6f5f2;
    --oh-mint-2: #f3faf8;
    --oh-yellow: #f6b819;
    --oh-yellow-2: #e5a400;
    --oh-yellow-soft: #fff6db;
    --oh-ink: #0f2220;
    --oh-ink-2: #3a4c4a;
    --oh-muted: #687b78;
    --oh-line: #e2ebe9;
    --oh-bg: #f6f9f8;
    --oh-radius: 18px;
    --oh-shadow: 0 1px 2px rgba(15,34,32,.04), 0 10px 30px -12px rgba(15,34,32,.14);
    --oh-shadow-lg: 0 2px 4px rgba(15,34,32,.05), 0 26px 60px -22px rgba(6,46,44,.4);
    --oh-hero: linear-gradient(120deg, #052826 0%, #0a4a45 48%, #0f6b62 100%);
    --oh-font: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    /* variabel lama di style.css diarahkan ke palet baru */
    --primary: #0e6b63;
    --primary-dark: #0a4f49;
    --text: #0f2220;
    --muted: #687b78;
    --border: #e2ebe9;
    --background: #f6f9f8;
}

html { scroll-behavior: smooth; }
body.oh-body {
    font-family: var(--oh-font);
    background: radial-gradient(900px 380px at 85% -60px, rgba(246,184,25,.12), transparent 70%),
                linear-gradient(180deg, #e4f3ef 0, var(--oh-bg) 460px) no-repeat, var(--oh-bg);
    color: var(--oh-ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.oh-body button, body.oh-body input, body.oh-body select, body.oh-body textarea { font-family: inherit; }
body.oh-body ::selection { background: #ffe08a; color: var(--oh-ink); }
.oh-ic { display: inline-block; flex: none; vertical-align: middle; }
.oh-shell { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
.oh-skip { position: absolute; left: -999px; top: 8px; z-index: 2000; padding: 10px 14px; border-radius: 10px; background: var(--oh-yellow); color: var(--oh-ink); font-weight: 800; }
.oh-skip:focus { left: 12px; }
:focus-visible { outline: 3px solid rgba(246,184,25,.75); outline-offset: 2px; }

/* ---------------- tombol ---------------- */
.oh-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
    border-radius: 12px; border: 1px solid transparent; font-size: 14px; font-weight: 800; text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.oh-btn:hover { transform: translateY(-1px); }
.oh-btn:active { transform: translateY(0); }
.oh-btn-lg { min-height: 52px; padding: 0 24px; font-size: 15px; border-radius: 14px; }
.oh-btn-yellow { background: var(--oh-yellow); color: #1d1600; border-color: var(--oh-yellow-2); box-shadow: 0 10px 22px -10px rgba(229,164,0,.8); }
.oh-btn-yellow:hover { background: #ffc83a; color: #1d1600; }
.oh-btn-green { background: var(--oh-green); color: #fff; border-color: var(--oh-green-2); box-shadow: 0 10px 22px -10px rgba(14,107,99,.8); }
.oh-btn-green:hover { background: var(--oh-green-2); color: #fff; }
.oh-btn-ghost { background: #fff; color: var(--oh-ink); border-color: var(--oh-line); }
.oh-btn-ghost:hover { border-color: #b9dcd6; color: var(--oh-green); }
.oh-btn-glass { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); }
.oh-btn-glass:hover { background: rgba(255,255,255,.16); color: #fff; }
.oh-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--oh-green); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.oh-kicker::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--oh-yellow); }
.oh-kicker-light { color: var(--oh-yellow); }
.oh-new { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--oh-yellow); color: #1d1600; font-size: 10px; font-style: normal; font-weight: 800; letter-spacing: .02em; vertical-align: 2px; line-height: 1.6; }

/* ---------------- header ---------------- */
.site-header.oh-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,.86);
    backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.site-header.oh-header.is-scrolled { background: rgba(255,255,255,.95); border-bottom-color: var(--oh-line); box-shadow: 0 8px 24px -16px rgba(15,34,32,.35); }
.oh-nav { width: min(1280px, calc(100% - 32px)); margin: 0 auto; min-height: 74px; display: flex; align-items: center; gap: 18px; transition: min-height .2s ease; }
.oh-header.is-scrolled .oh-nav { min-height: 64px; }
.oh-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--oh-ink); flex: none; }
.oh-brand img { width: 62px; height: auto; display: block; transition: transform .25s ease; }
.oh-brand:hover img { transform: rotate(-4deg) scale(1.04); }
.oh-brand-text strong { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--oh-ink); }
.oh-brand-text strong em { font-style: normal; color: var(--oh-green); }
.oh-brand-text small { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--oh-muted); }

.oh-menu { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.oh-link {
    position: relative; display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 12px; border: 0; border-radius: 10px;
    background: transparent; color: var(--oh-ink-2); font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background .15s, color .15s;
}
.oh-link:hover, .oh-dd.is-open > .oh-link { background: var(--oh-mint); color: var(--oh-green-2); }
.oh-link.is-active { color: var(--oh-green); }
.oh-link.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px; border-radius: 3px; background: var(--oh-yellow); }
.oh-link .oh-ic { transition: transform .2s; opacity: .7; }
.oh-dd.is-open > .oh-link .oh-ic, .oh-dd:hover > .oh-link .oh-ic { transform: rotate(180deg); }

.oh-dd { position: relative; }
.oh-dd-panel {
    position: absolute; top: calc(100% + 10px); left: 50%; z-index: 30; width: 360px; padding: 8px;
    background: #fff; border: 1px solid var(--oh-line); border-radius: 16px; box-shadow: var(--oh-shadow-lg);
    opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.oh-dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.oh-dd:hover > .oh-dd-panel, .oh-dd.is-open > .oh-dd-panel, .oh-dd:focus-within > .oh-dd-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.oh-dd-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--oh-ink); transition: background .15s; }
.oh-dd-item:hover { background: var(--oh-mint-2); color: var(--oh-ink); }
.oh-dd-item.is-active { background: var(--oh-mint); }
.oh-dd-ic { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; background: var(--oh-mint); color: var(--oh-green); transition: background .15s, color .15s; }
.oh-dd-item:hover .oh-dd-ic, .oh-dd-item.is-active .oh-dd-ic { background: var(--oh-green); color: var(--oh-yellow); }
.oh-dd-txt strong { display: block; font-size: 14px; font-weight: 800; line-height: 1.3; }
.oh-dd-txt small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--oh-muted); line-height: 1.45; }

.oh-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.oh-lang { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--oh-mint-2); border: 1px solid var(--oh-line); }
.oh-lang a { display: grid; place-items: center; min-width: 34px; height: 30px; padding: 0 8px; border-radius: 8px; font-size: 12px; font-weight: 800; color: var(--oh-muted); text-decoration: none; }
.oh-lang a:hover { color: var(--oh-green); }
.oh-lang a.is-active { background: var(--oh-green); color: #fff; box-shadow: 0 4px 10px -4px rgba(14,107,99,.7); }
.oh-cta { min-height: 40px; }
.oh-burger { display: none; place-items: center; width: 42px; height: 42px; border: 1px solid var(--oh-line); border-radius: 12px; background: #fff; color: var(--oh-ink); cursor: pointer; }
.oh-burger:hover { background: var(--oh-mint); color: var(--oh-green); }

/* ---------------- drawer mobile ---------------- */
.oh-scrim { position: fixed; inset: 0; z-index: 1090; background: rgba(5,30,28,.5); backdrop-filter: blur(2px); }
.oh-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 1100; width: min(380px, 92vw); display: flex; flex-direction: column;
    background: #fff; box-shadow: -20px 0 60px rgba(5,30,28,.25); transform: translateX(105%); transition: transform .28s cubic-bezier(.2,.8,.2,1); visibility: hidden;
}
.oh-drawer-open .oh-drawer { transform: none; visibility: visible; }
.oh-drawer-open { overflow: hidden; }
.oh-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--oh-line); }
.oh-drawer-head .oh-brand img { width: 52px; }
.oh-drawer-head .oh-burger { display: grid; }
.oh-drawer-body { flex: 1; overflow-y: auto; padding: 10px 12px; display: grid; gap: 4px; align-content: start; }
.oh-m-link { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; color: var(--oh-ink); font-weight: 750; text-decoration: none; }
.oh-m-link .oh-ic { color: var(--oh-green); }
.oh-m-link:hover, .oh-m-link.is-active { background: var(--oh-mint); color: var(--oh-green-2); }
.oh-m-group { border-radius: 12px; }
.oh-m-group summary { display: flex; align-items: center; justify-content: space-between; padding: 12px; border-radius: 12px; font-weight: 800; cursor: pointer; list-style: none; color: var(--oh-ink); }
.oh-m-group summary::-webkit-details-marker { display: none; }
.oh-m-group summary:hover { background: var(--oh-mint-2); }
.oh-m-group summary .oh-ic { transition: transform .2s; color: var(--oh-muted); }
.oh-m-group[open] summary .oh-ic { transform: rotate(180deg); }
.oh-m-group[open] { background: var(--oh-mint-2); }
.oh-m-group a { display: flex; align-items: center; gap: 10px; margin: 0 6px; padding: 9px 10px; border-radius: 10px; color: var(--oh-ink-2); font-size: 14px; font-weight: 650; text-decoration: none; }
.oh-m-group a:last-child { margin-bottom: 8px; }
.oh-m-group a:hover, .oh-m-group a.is-active { background: #fff; color: var(--oh-green); }
.oh-m-group .oh-dd-ic { width: 32px; height: 32px; flex-basis: 32px; border-radius: 9px; background: #fff; }
.oh-drawer-foot { display: grid; gap: 10px; padding: 14px 16px 18px; border-top: 1px solid var(--oh-line); }
.oh-drawer-foot .oh-lang { justify-self: start; }

/* ---------------- footer ---------------- */
.site-footer.oh-footer { position: relative; margin-top: 80px; padding: 0; background: var(--oh-hero); color: #cfe3df; border: 0; overflow: hidden; }
.oh-footer::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 20px 20px; pointer-events: none; }
.oh-footer > * { position: relative; }
.oh-foot-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 48px; padding: 30px 34px;
    border-radius: 22px; background: linear-gradient(120deg, rgba(255,255,255,.1), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.14);
}
.oh-foot-cta h2 { margin: 8px 0 6px; color: #fff; font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.oh-foot-cta p { margin: 0; color: #b9d5d0; font-size: 14.5px; }
.oh-foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 32px; padding: 52px 0 40px; }
.oh-foot-logo { display: inline-block; padding: 10px 14px; border-radius: 16px; background: #fff; box-shadow: 0 10px 26px -14px rgba(0,0,0,.6); }
.oh-foot-logo img { width: 104px; height: auto; display: block; }
.oh-foot-brand p { margin: 16px 0 16px; font-size: 13.5px; line-height: 1.75; color: #b9d5d0; max-width: 340px; }
.oh-foot-contact { display: grid; gap: 8px; font-size: 13.5px; font-weight: 650; }
.oh-foot-contact span, .oh-foot-contact a { display: inline-flex; align-items: center; gap: 8px; color: #e6f3f1; text-decoration: none; }
.oh-foot-contact .oh-ic { color: var(--oh-yellow); }
.oh-foot-contact a:hover { color: var(--oh-yellow); }
.oh-foot-col h4 { margin: 4px 0 14px; color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.oh-foot-col a { display: block; padding: 5px 0; color: #b9d5d0; font-size: 14px; text-decoration: none; transition: color .15s, transform .15s; }
.oh-foot-col a:hover { color: var(--oh-yellow); transform: translateX(3px); }
.oh-foot-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 13px; color: #9cc2bc; }
.oh-foot-bottom .oh-shell { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; }
.oh-foot-bottom nav { display: flex; gap: 18px; }
.oh-foot-bottom a { color: #cfe3df; text-decoration: none; }
.oh-foot-bottom a:hover { color: var(--oh-yellow); }
.oh-heart { color: var(--oh-yellow); }

.oh-totop {
    position: fixed; right: 20px; bottom: 20px; z-index: 900; display: grid; place-items: center; width: 46px; height: 46px;
    border: 0; border-radius: 14px; background: var(--oh-green); color: var(--oh-yellow); cursor: pointer; box-shadow: 0 14px 28px -12px rgba(6,46,44,.8);
    opacity: 0; transform: translateY(14px); pointer-events: none; transition: all .2s ease;
}
.oh-totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.oh-totop:hover { background: var(--oh-green-2); }
.jf-totop { display: none !important; }

/* animasi muncul */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------------- harmonisasi halaman tools ---------------- */
body.oh-body h1, body.oh-body h2, body.oh-body h3 { letter-spacing: -.015em; }
body.oh-body input:focus, body.oh-body textarea:focus, body.oh-body select:focus { outline-color: var(--oh-green); }

/* ---------------- responsive ---------------- */
@media (max-width: 1240px) {
    .oh-link { padding: 0 9px; font-size: 13.5px; }
    .oh-cta span { display: none; }
    .oh-cta { padding: 0 11px; }
}
@media (max-width: 1080px) {
    .oh-menu { display: none; }
    .oh-burger { display: grid; }
    .oh-actions { margin-left: auto; }
    .oh-foot-grid { grid-template-columns: 1fr 1fr 1fr; }
    .oh-foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .oh-nav { min-height: 64px; gap: 10px; }
    .oh-brand img { width: 50px; }
    .oh-brand-text small { display: none; }
    .oh-actions .oh-lang, .oh-actions .oh-cta { display: none; }
    .oh-shell { width: calc(100% - 28px); }
    .oh-foot-cta { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
    .oh-foot-cta .oh-btn { width: 100%; }
    .oh-foot-cta h2 { font-size: 20px; }
    .oh-foot-grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
    .oh-header, .oh-footer, .oh-drawer, .oh-scrim, .oh-totop { display: none !important; }
}
