/* ══════════════════════════════════════════════════════════════
   CAREERKU.ID — Beranda v3 (khusus index.html)
   Dimuat SETELAH style.css. Memakai kelas berawalan sendiri (hn-, bn-, ms-, hero2, sbox, jc-, …)
   sehingga halaman lain yang memakai style.css TIDAK terpengaruh.
   Prinsip: HP dulu (≥320px), lalu melebar. Teks isi 16px, keterangan 12–14px.
   ══════════════════════════════════════════════════════════════ */

:root {
  --hn-h: 56px;
  --bn-h: 60px;
  --h-bg:   #F4F6FB;
  --h-line: #E4E9F2;
  --h-ink:  #0F172A;
  --h-text: #334155;
  --h-mute: #5B6678;
  --h-blue: #2563EB;
  --h-blue-d: #1E3A8A;
  --h-green: #15803D;
  --h-radius: 14px;
}

/* Font dasar 18px → 16px (khusus beranda). Judul tetap tegas lewat ukuran, bukan lewat font dasar. */
html { font-size: 16px; scroll-padding-top: calc(var(--hn-h) + 12px); }

body.home {
  background: var(--h-bg);
  color: var(--h-ink);
  padding-top: var(--hn-h);
  overflow-x: clip;               /* jaring pengaman; akar masalah lebar sudah diperbaiki di .jobs2 (minmax(0,1fr)) */
  -webkit-tap-highlight-color: transparent;
}
body.home :focus-visible { outline: 3px solid #93C5FD; outline-offset: 2px; border-radius: 6px; }
body.home .btn { min-height: 44px; justify-content: center; }
body.home .btn-sm { min-height: 40px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

@media (min-width: 1100px) {
  :root { --hn-h: 64px; }
  .wrap { padding: 0 24px; }
}

/* ───────────────────────── BAR ATAS ───────────────────────── */
.hn {
  position: fixed; top: 0; left: 0; right: 0; height: var(--hn-h); z-index: 1000;
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--h-line);
}
.hn-in { height: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 8px; }
.hn-logo {
  display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
  font-weight: 800; font-size: 1.1875rem; letter-spacing: -.3px; color: var(--h-blue-d); text-decoration: none;
}
.hn-logo-icon { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, #1E3A8A, #2563EB); }
.hn-logo-text { white-space: nowrap; }                       /* satu kotak → "Careerku.id" tidak terpecah lagi */
.hn-logo-text em { font-style: normal; color: var(--h-blue); }
.hn-logo--light { color: #fff; }
.hn-logo--light .hn-logo-text em { color: #93C5FD; }

.hn-links { display: none; }
.hn-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hn-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px;
  border-radius: 10px; font-size: .9375rem; font-weight: 700; text-decoration: none; white-space: nowrap; border: 1.5px solid transparent;
  transition: background .15s, border-color .15s;
}
.hn-btn--ghost { color: var(--h-blue-d); background: #fff; border-color: var(--h-line); }
.hn-btn--ghost:hover { background: #F8FAFF; border-color: #C7D6F5; }
.hn-btn--solid { color: #fff; background: var(--h-blue); }
.hn-btn--solid:hover { background: #1D4ED8; }
.only-lg { display: none; }

@media (max-width: 359px) {
  .sbox-filters { grid-template-columns: 1fr; }
  .hn-in { padding: 0 12px; gap: 6px; }
  .hn-logo { font-size: 1.0625rem; gap: 6px; }
  .hn-logo-icon { width: 30px; height: 30px; flex-basis: 30px; }
  .hn-btn { padding: 0 10px; font-size: .875rem; }
}
@media (min-width: 1100px) {
  .hn-links { display: flex; align-items: center; gap: 2px; margin-left: 20px; }
  .hn-link { padding: 8px 10px; border-radius: 8px; font-size: .875rem; font-weight: 600; color: #475569; text-decoration: none; white-space: nowrap; }
  .hn-link:hover { background: #EFF4FF; color: var(--h-blue); }
  .hn-link.is-active { color: var(--h-blue); background: #EFF4FF; }
  .hn-link.is-accent { color: var(--h-blue); }
  .only-lg { display: inline; }
}
/* Menu atas kini 10 tautan (+ Latihan Tes): di 1100–1299px dirapatkan supaya tombol Masuk/Daftar Anggota (atau "Halo, nama" + Keluar) tidak terpotong */
@media (min-width: 1100px) and (max-width: 1299px) {
  .hn-links { margin-left: 8px; gap: 0; }
  .hn-link { padding: 8px 6px; font-size: .8125rem; }
}

/* ───────────────────────── NAVIGASI BAWAH (HP / tablet) ───────────────────────── */
.bn { display: none; }
@media (max-width: 1099px) {
  .bn {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    background: #fff; border-top: 1px solid var(--h-line); box-shadow: 0 -4px 16px rgba(15,23,42,.06);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .bn-i {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: var(--bn-h); padding: 6px 2px; background: none; border: 0; font: inherit;
    font-size: .75rem; font-weight: 600; line-height: 1.1; color: #64748B; text-decoration: none; cursor: pointer;
  }
  .bn-i svg { width: 22px; height: 22px; }
  .bn-i.is-active { color: var(--h-blue); }
  .bn-i.is-active::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--h-blue); }
  .bn-i:active { background: #F1F5FF; }

  /* Widget bawaan (chat & popup notifikasi) naik di atas navigasi bawah. Selektor "body …" menang atas style yang disuntik skripnya. */
  body #ck-chat-bubble { bottom: calc(var(--bn-h) + 14px + env(safe-area-inset-bottom)); right: 14px; width: 48px; height: 48px; font-size: 22px; }
  body #ck-chat-panel  { bottom: calc(var(--bn-h) + 70px + env(safe-area-inset-bottom)); right: 12px; max-height: 70vh; }
  body .ckp-card { bottom: calc(var(--bn-h) + 10px + env(safe-area-inset-bottom)); padding: 12px; gap: 10px; }
  body .ckp-card .ckp-d { display: none; }              /* ringkas: judul + dua tombol saja, tidak menutupi daftar lowongan */
  body .ckp-card .ckp-b { margin-top: 8px; }
}

/* ───────────────────────── MENU (lembar dari bawah) ───────────────────────── */
.ms-back { position: fixed; inset: 0; z-index: 100000; background: rgba(15,23,42,.5); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.ms {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100001; max-height: 86vh; overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border-radius: 20px 20px 0 0; padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
  transform: translateY(105%); visibility: hidden; transition: transform .25s ease, visibility .25s;
}
body.ms-open .ms-back { opacity: 1; visibility: visible; }
body.ms-open .ms { transform: translateY(0); visibility: visible; }
body.ms-open { overflow: hidden; }
.ms-grab { width: 40px; height: 4px; border-radius: 4px; background: #CBD5E1; margin: 4px auto 8px; }
.ms-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 8px; }
.ms-head h2 { font-size: 1.125rem; font-weight: 800; }
.ms-close { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: #F1F5F9; border-radius: 50%; color: #334155; cursor: pointer; }
.ms-list { list-style: none; border-top: 1px solid var(--h-line); }
.ms-list li { border-bottom: 1px solid var(--h-line); }
.ms-list a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; font-size: 1rem; font-weight: 600; color: var(--h-ink); text-decoration: none; }
.ms-list a small { display: block; font-size: .8125rem; font-weight: 500; color: var(--h-mute); }
.ms-list svg { color: #94A3B8; flex: 0 0 auto; }
.ms-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
@media (min-width: 1100px) { .ms, .ms-back { display: none; } }

/* ───────────────────────── HERO ───────────────────────── */
.hero2 { background: linear-gradient(160deg, #0B1B5A 0%, #1E3A8A 48%, #2563EB 100%); color: #fff; padding: 20px 0 22px; }
.hero2-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.hero2-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 600; color: rgba(255,255,255,.85); margin-bottom: 8px; }
.hero2-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; animation: h-pulse 2.2s infinite; }
@keyframes h-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.hero2 h1 { font-size: 1.5rem; line-height: 1.2; font-weight: 800; letter-spacing: -.3px; color: #fff; }
.hero2 h1 em { font-style: normal; color: #93C5FD; }
.hero2-sub { font-size: .9375rem; line-height: 1.55; color: rgba(255,255,255,.82); margin: 8px 0 16px; max-width: 540px; }

.sbox { display: grid; gap: 8px; background: #fff; border-radius: 16px; padding: 10px; box-shadow: 0 10px 30px rgba(2,6,23,.25); }
.sbox-kw { position: relative; display: flex; align-items: center; min-width: 0; }
.sbox-kw svg { position: absolute; left: 14px; color: #94A3B8; pointer-events: none; }
.sbox-kw input {
  width: 100%; min-width: 0; min-height: 48px; padding: 0 14px 0 42px; border: 0; border-radius: 10px;
  background: #F1F5F9; font-size: 1rem; color: var(--h-ink); outline: 0;
}
.sbox-kw input::placeholder { color: #7B8798; }
.sbox-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; min-width: 0; }
.sbox select {
  width: 100%; min-width: 0; min-height: 46px; padding: 0 32px 0 12px; border: 0; border-radius: 10px; outline: 0;
  font-size: 1rem; color: var(--h-ink); cursor: pointer; -webkit-appearance: none; appearance: none;
  background: #F1F5F9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='3'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 11px center;
  text-overflow: ellipsis;
}
.sbox .btn-search {
  min-height: 48px; border: 0; border-radius: 10px; background: var(--h-blue); color: #fff; cursor: pointer;
  font-size: 1rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.sbox .btn-search:hover { background: #1D4ED8; }

.chips { display: flex; gap: 8px; overflow-x: auto; min-width: 0; max-width: 100%; padding: 12px 0 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; min-height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer; font: inherit; font-size: .875rem; font-weight: 600;
  color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35);
}
.chip.is-on { background: #fff; color: var(--h-blue-d); border-color: #fff; }

.hero2-stats { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 12px; font-size: .8125rem; color: rgba(255,255,255,.78); }
.hero2-stats strong { color: #fff; font-size: 1rem; font-weight: 800; margin-right: 3px; }

.hero2 .hero-visual { display: none; }

@media (min-width: 600px) {
  .hero2 { padding: 28px 0 30px; }
  .hero2 h1 { font-size: 2rem; }
  .hero2-sub { font-size: 1rem; }
}
@media (min-width: 1100px) {
  .sbox { display: flex; align-items: center; gap: 0; padding: 8px 8px 8px 4px; border-radius: 18px; max-width: 720px; }
  .sbox-kw { flex: 1 1 auto; }
  .sbox-kw input { background: transparent; font-size: .9375rem; padding-left: 40px; }
  .sbox-filters { display: flex; flex: 0 0 auto; gap: 0; }
  .sbox select { width: 158px; font-size: .9375rem; border-left: 1px solid var(--h-line); border-radius: 0; background-color: transparent; }
  .sbox .btn-search { padding: 0 18px; margin-left: 6px; white-space: nowrap; flex: 0 0 auto; }
}
@media (min-width: 1025px) {
  .hero2 { padding: 56px 0 64px; }
  .hero2-inner { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: center; }
  .hero2 h1 { font-size: 2.75rem; letter-spacing: -1px; }
  .hero2 .hero-visual { display: block; width: 100%; max-width: 340px; }
}

@media (min-width: 1100px) { .chips { flex-wrap: wrap; overflow: visible; } }

/* ───────────────────────── PITA KEPERCAYAAN ───────────────────────── */
.trust { background: #fff; border-bottom: 1px solid var(--h-line); }
.trust-in { max-width: 1180px; margin: 0 auto; padding: 0 16px; display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; }
.trust-in::-webkit-scrollbar { display: none; }
.trust-i { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: .8125rem; font-weight: 600; color: var(--h-text); white-space: nowrap; }
.trust-i svg { color: var(--h-green); flex: 0 0 auto; }
@media (min-width: 1100px) { .trust-in { padding: 0 24px; justify-content: space-between; overflow: visible; } .trust-i { font-size: .9375rem; min-height: 56px; } }

/* ───────────────────────── SECTION UMUM ───────────────────────── */
.sec { padding: 24px 0; }
.sec--white { background: #fff; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-head h2 { font-size: 1.25rem; font-weight: 800; letter-spacing: -.2px; line-height: 1.25; }
.sec-head p { font-size: .875rem; color: var(--h-mute); margin-top: 2px; }
.sec-link { font-size: .875rem; font-weight: 700; color: var(--h-blue); text-decoration: none; white-space: nowrap; padding: 8px 0; }
.sec-more { display: flex; justify-content: center; margin-top: 16px; }
#lowongan { scroll-margin-top: calc(var(--hn-h) + 8px); }
@media (min-width: 1100px) {
  .sec { padding: 48px 0; }
  .sec-head { margin-bottom: 22px; }
  .sec-head h2 { font-size: 1.625rem; }
  .sec-head p { font-size: 1rem; }
}

/* ───────────────────────── KATEGORI ───────────────────────── */
.cats-row { display: flex; gap: 4px; overflow-x: auto; min-width: 0; padding: 2px 0 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cats-row::-webkit-scrollbar { display: none; }
.cat { flex: 0 0 78px; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 4px 0; background: none; border: 0; cursor: pointer; font: inherit; font-size: .75rem; font-weight: 600; line-height: 1.25; color: var(--h-text); text-align: center; }
.cat-ic { width: 52px; height: 52px; border-radius: 50%; background: #EAF1FF; color: var(--h-blue); display: grid; place-items: center; transition: background .15s, color .15s; }
.cat:hover .cat-ic, .cat:active .cat-ic { background: var(--h-blue); color: #fff; }
@media (min-width: 1100px) { .cats-row { justify-content: center; gap: 12px; } .cat { flex-basis: 96px; font-size: .875rem; } .cat-ic { width: 60px; height: 60px; } }

/* ───────────────────────── LOWONGAN ───────────────────────── */
/* AKAR MASALAH layar melebar: kolom "1fr" tidak boleh lebih sempit dari isi terpanjangnya. minmax(0,1fr) membolehkan menyusut. */
.jobs2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.jobs-list2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }
.side2 { display: none; }

.jc {
  display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px;
  background: #fff; border: 1px solid var(--h-line); border-radius: var(--h-radius); color: inherit; text-decoration: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.jc:hover { border-color: #BFD3FB; box-shadow: 0 6px 20px rgba(37,99,235,.10); }
.jc:active { background: #F8FAFF; }
.jc-top { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.jc-logo { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 10px; border: 1px solid var(--h-line); background: #fff; display: grid; place-items: center; overflow: hidden; }
.jc-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.jc-logo span { font-weight: 800; font-size: .9375rem; color: var(--h-blue-d); }
.jc-head { flex: 1 1 auto; min-width: 0; }
.jc-title { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.3; color: var(--h-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.jc-company { margin-top: 2px; font-size: .8125rem; color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jc-meta { list-style: none; display: grid; gap: 5px; font-size: .875rem; color: var(--h-text); }
.jc-meta li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.jc-meta li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jc-meta svg { flex: 0 0 16px; color: var(--h-blue); }
.jc-gaji { font-weight: 700; color: var(--h-green); }
.jc-gaji svg { color: var(--h-green); }
.jc-foot { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid #EEF1F6; font-size: .75rem; color: #64748B; min-width: 0; }
.jc-time { flex: 0 0 auto; }
.jc-tags { flex: 1 1 auto; min-width: 0; display: flex; justify-content: flex-end; align-items: center; gap: 6px; flex-wrap: wrap; }
.jc-pill { padding: 2px 8px; border-radius: 999px; background: #FEF3C7; color: #92400E; font-weight: 700; }
.jc-deadline { color: #B91C1C; font-weight: 600; }
.jc-go { flex: 0 0 auto; color: #94A3B8; display: grid; place-items: center; }
.jc-empty { padding: 28px 18px; border: 1.5px dashed var(--h-line); border-radius: var(--h-radius); background: #fff; color: var(--h-mute); text-align: center; font-size: .9375rem; }

.jc-skel { height: 168px; border-radius: var(--h-radius); border: 1px solid var(--h-line); background: linear-gradient(100deg, #fff 30%, #EEF2F9 50%, #fff 70%) 0 0 / 200% 100%; animation: h-shimmer 1.3s linear infinite; }
@keyframes h-shimmer { to { background-position: -200% 0; } }

#jobs-more { display: none; justify-content: center; margin-top: 14px; }

@media (min-width: 700px) { .jobs-list2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .jc-empty { grid-column: 1 / -1; } }
@media (min-width: 1025px) {
  .jobs2 { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
  .side2 { display: grid; gap: 14px; position: sticky; top: calc(var(--hn-h) + 16px); }
}

.side-card { border-radius: var(--h-radius); padding: 18px; color: #fff; }
.side-card h3 { font-size: 1.0625rem; font-weight: 800; line-height: 1.3; margin-bottom: 6px; }
.side-card p { font-size: .875rem; line-height: 1.5; opacity: .92; margin-bottom: 14px; }
.side-card--blue { background: linear-gradient(135deg, #1E3A8A, #2563EB); }
.side-card--orange { background: linear-gradient(135deg, #C2410C, #EA580C); }

/* ───────────────────────── LOKER PER KOTA ───────────────────────── */
.city-links { display: flex; flex-wrap: wrap; gap: 8px; }
.city-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--h-line); font-size: .875rem; font-weight: 600; color: var(--h-blue); text-decoration: none; }
.city-links a:hover { background: #EFF4FF; border-color: #BFD3FB; }
.city-links a.is-green { color: #166534; background: #F0FDF4; border-color: #BBF7D0; }

/* ───────────────────────── PROMO (latihan tes + paket + afiliasi) ───────────────────────── */
/* auto-fit: jumlah kolom mengikuti jumlah kartu yang tampil (kartu Paket disembunyikan untuk akun yang sudah punya) */
.promo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.promo-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; border-radius: 18px; padding: 20px; color: #fff; text-decoration: none; min-width: 0; }
.promo-card h3 { font-size: 1.25rem; font-weight: 800; line-height: 1.25; }
.promo-card p { font-size: .9375rem; line-height: 1.55; opacity: .94; margin-bottom: 8px; }
.promo-card .btn { margin-top: auto; }
.promo-card--blue   { background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%); }
.promo-card--orange { background: linear-gradient(135deg, #C2410C 0%, #EA580C 100%); }
.promo-card--green  { background: linear-gradient(135deg, #065F46 0%, #059669 100%); }
.promo-tag { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
@media (min-width: 700px) { .promo { gap: 16px; } .promo-card { padding: 26px; } }

/* ───────────────────────── EBOOK & ARTIKEL (geser di HP, grid di desktop) ───────────────────────── */
.hs { display: flex; gap: 12px; overflow-x: auto; min-width: 0; padding: 2px 16px 6px; margin: 0 -16px; scroll-padding: 0 16px; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hs::-webkit-scrollbar { display: none; }
.hs > * { scroll-snap-align: start; }
@media (min-width: 1100px) {
  .hs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); overflow: visible; padding: 0; margin: 0; gap: 18px; scroll-padding: 0; }
}

.eb { flex: 0 0 148px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; min-width: 0; }
.eb-cover { aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #1E3A8A, #2563EB); border: 1px solid var(--h-line); display: grid; place-items: center; color: rgba(255,255,255,.7); }
.eb-cover img { width: 100%; height: 100%; object-fit: cover; }
.eb-t { font-size: .9375rem; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.eb-p { font-size: .9375rem; font-weight: 800; color: var(--h-blue); }
.eb-p s { font-size: .75rem; font-weight: 500; color: #94A3B8; margin-left: 4px; }
.eb-k { align-self: flex-start; font-size: .75rem; font-weight: 700; color: #9A3412; background: #FFEDD5; border-radius: 6px; padding: 2px 8px; }
@media (min-width: 1100px) { .eb { flex-basis: auto; } }

.ar { flex: 0 0 240px; display: flex; flex-direction: column; gap: 8px; padding: 16px; background: #fff; border: 1px solid var(--h-line); border-radius: var(--h-radius); text-decoration: none; color: inherit; min-width: 0; }
.ar:hover { border-color: #BFD3FB; }
.ar-cat { align-self: flex-start; font-size: .75rem; font-weight: 700; color: #1D4ED8; background: #DBEAFE; border-radius: 999px; padding: 2px 10px; }
.ar-t { font-size: 1rem; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ar-d { margin-top: auto; font-size: .75rem; color: var(--h-mute); }
@media (min-width: 1100px) { .ar { flex-basis: auto; } }

/* ───────────────────────── TESTIMONI (memakai kartu dari style.css, hanya tata letaknya) ───────────────────────── */
body.home .testimoni-grid { display: flex; gap: 12px; overflow-x: auto; max-width: none; min-width: 0; padding: 2px 16px 6px; margin: 0 -16px; scroll-padding: 0 16px; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
body.home .testimoni-grid::-webkit-scrollbar { display: none; }
body.home .testimoni-card { flex: 0 0 86%; max-width: 340px; scroll-snap-align: start; padding: 18px; }
body.home .testimoni-text { font-size: .9375rem; line-height: 1.65; }
@media (min-width: 1100px) {
  body.home .testimoni-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; padding: 0; margin: 0; gap: 20px; }
  body.home .testimoni-card { flex: none; max-width: none; padding: 22px 24px 24px; }
}

/* ───────────────────────── AJAKAN DAFTAR ───────────────────────── */
.cta2 { background: linear-gradient(135deg, #0B1B5A 0%, #1E3A8A 40%, #1D4ED8 100%); color: #fff; text-align: center; padding: 36px 0; }
.cta2 h2 { font-size: 1.5rem; font-weight: 800; line-height: 1.2; letter-spacing: -.3px; margin-bottom: 10px; }
.cta2-desc { font-size: .9375rem; line-height: 1.6; color: rgba(255,255,255,.82); max-width: 520px; margin: 0 auto 20px; }
.cta2-btns { display: flex; flex-direction: column; gap: 10px; max-width: 360px; margin: 0 auto 20px; }
.cta2-btns .btn-ghostw { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.cta2-feats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: .875rem; color: rgba(255,255,255,.85); }
.cta2-feats span { display: inline-flex; align-items: center; gap: 6px; }
.cta2-feats svg { color: #4ADE80; }
@media (min-width: 700px) { .cta2 { padding: 56px 0; } .cta2 h2 { font-size: 2rem; } .cta2-btns { flex-direction: row; justify-content: center; max-width: none; } }

/* ───────────────────────── FOOTER (kelas lama dari style.css, tata letak HP dirapikan) ───────────────────────── */
body.home .footer { padding: 32px 16px 0; }
body.home .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 28px; }
body.home .footer-brand { grid-column: 1 / -1; }
body.home .footer-col:last-child { grid-column: 1 / -1; }
body.home .footer-brand p { max-width: none; }
body.home .footer-col li { margin-bottom: 4px; }
body.home .footer-col a { display: inline-block; padding: 6px 0; font-size: .9375rem; }
body.home .footer-contact { font-size: .9375rem; }
body.home .footer-social a { width: 44px; height: 44px; }
@media (max-width: 1099px) { body.home .footer-bottom { padding: 18px 0 calc(24px + var(--bn-h) + env(safe-area-inset-bottom)); } }
@media (min-width: 1100px) {
  body.home .footer { padding: 56px 24px 0; }
  body.home .footer-inner { grid-template-columns: 2.2fr 1fr 1fr 1.3fr; gap: 48px; padding-bottom: 48px; }
  body.home .footer-brand, body.home .footer-col:last-child { grid-column: auto; }
}

/* Footer: teks lebih terang agar terbaca di HP (kontras) */
body.home .footer-brand p, body.home .footer-col a, body.home .footer-contact { color: rgba(255,255,255,.76); }
body.home .footer-col a:hover { color: #fff; }
body.home .footer-bottom p { color: rgba(255,255,255,.6); }

/* ───────────────────────── MEMBER YANG SUDAH LOGIN ───────────────────────── */
body.home [hidden] { display: none !important; }
.hn-me { gap: 8px; padding: 0 12px 0 6px; }
.hn-me-av { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--h-blue); color: #fff; font-size: .8125rem; font-weight: 800; }
.hn-me-name { max-width: 104px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hn-out { display: none; }
@media (max-width: 359px) { .hn-me { padding: 0 6px; } .hn-me-name { display: none; } }
@media (min-width: 1100px) { .hn-out { display: inline-flex; } .hn-me-name { max-width: 150px; } }
.ms-user { display: flex; align-items: center; gap: 12px; padding: 0 0 14px; }
.ms-user-av { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--h-blue); color: #fff; font-size: 1.0625rem; font-weight: 800; }
.ms-user strong { display: block; font-size: 1rem; line-height: 1.3; }
.ms-user small { font-size: .8125rem; color: var(--h-mute); }

/* ───────────────────────── TAB "AKSES SAYA" (akun berbayar) ─────────────────────────
   Akses Saya kini halaman sendiri (akses-saya.html). Di beranda tinggal tautan: "Halo, <nama>", lembar Menu, dan tab bulat oranye ini. */
/* Tab "Akses Saya" di navigasi bawah akun berbayar: tombol bulat oranye yang menonjol di tengah bar */
.bn-akses { color: #C2410C; font-weight: 800; justify-content: flex-end; padding-bottom: 7px; }
.bn-akses-ic {
  display: grid; place-items: center; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%;
  background: linear-gradient(135deg, #FB923C, #EA580C); color: #fff; border: 3px solid #fff;
  box-shadow: 0 6px 16px rgba(234,88,12,.45);
}
.bn-akses:active .bn-akses-ic { transform: scale(.95); }
.bn-akses[aria-expanded="true"] .bn-akses-ic { background: linear-gradient(135deg, #F97316, #C2410C); }
.promo--one { grid-template-columns: minmax(0, 1fr) !important; }

/* Hormati pengguna yang mematikan animasi */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero2-eyebrow i, .jc-skel { animation: none; }
  .ms, .ms-back { transition: none; }
}
