/* Pustaka Sosio Edukasi - portal home (OJS 3.3 Static Page) - versi 4 jurnal
   Pasang di: jurnal "pustaka" > Settings > Website > Appearance > Advanced > Journal style sheet
   Tema warna dari logo: navy, biru, emas. Tiap jurnal memakai warna sampulnya.
   Catatan: HTML katalog tidak boleh memuat blok style sendiri, cukup CSS ini. */

/* ---- Lebarkan halaman & sembunyikan sidebar/judul bawaan (hanya halaman yang memuat .pse-home) ---- */
.pkp_structure_content:has(.pse-home) { max-width: 1240px; padding: 0; }
.pkp_structure_content:has(.pse-home) .pkp_structure_sidebar { display: none; }
.pkp_structure_main:has(.pse-home) { width: 100%; float: none; padding: 0; }
.pkp_structure_main:has(.pse-home)::before,
.pkp_structure_main:has(.pse-home)::after { display: none; }
.page:has(.pse-home) > h1,
.page:has(.pse-home) .cmp_breadcrumbs { display: none; }
/* halaman depan jurnal (page_index_journal): buang jarak bawaan di sekitar konten */
.page_index_journal:has(.pse-home),
.page_index_journal .additional_content:has(.pse-home) { margin: 0; padding: 0; }

/* ---- Token ---- */
.pse-home {
  --navy: #0e2459; --navy-deep: #091a42; --blue: #1f6fd6; --gold: #f5a70a; --gold-dark: #c98300;
  --ice: #f4f7fd; --ink: #14213d; --muted: #5b6577; --line: #dde4f0;
  font-family: "Segoe UI", Inter, system-ui, -apple-system, Roboto, sans-serif;
  color: var(--ink); line-height: 1.65; font-size: 16px;
}
.pse-home *, .pse-home *::before, .pse-home *::after { box-sizing: border-box; }
.pse-home img { max-width: 100%; }
.pse-home a { text-underline-offset: 3px; }
.pse-home a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.pse-home .pse-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.pse-home h2, .pse-home h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.2; margin: 0; color: var(--navy); }

/* ---- Tombol ---- */
.pse-home .pse-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.pse-home .pse-btn { display: inline-block; padding: 12px 26px; border-radius: 999px; font-weight: 600; text-align: center; text-decoration: none; border: 2px solid var(--navy); transition: background .15s, color .15s, border-color .15s, transform .15s; }
.pse-home .pse-btn-solid { background: var(--navy); color: #fff; }
.pse-home .pse-btn-solid:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-1px); }
.pse-home .pse-btn-line { background: transparent; color: var(--navy); }
.pse-home .pse-btn-line:hover { background: var(--navy); color: #fff; }

/* ---- Hero (navy gelap, aksen emas) ---- */
.pse-home .pse-hero { background: radial-gradient(circle at 88% 15%, rgba(245,167,10,.25), transparent 45%), linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, #16398a 100%); border-bottom: 5px solid var(--gold); color: #fff; padding: 56px 0 64px; overflow: hidden; }
.pse-home .pse-hero .pse-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.pse-home .pse-brand img { display: block; height: 76px; width: auto; margin: 0 0 26px; background: #fff; padding: 8px 16px; border-radius: 12px; }
.pse-home .pse-hero-title { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 700; letter-spacing: -.01em; }
.pse-home .pse-hero-title::after { content: ""; display: block; width: 72px; height: 4px; border-radius: 4px; background: var(--gold); margin-top: 16px; }
.pse-home .pse-hero p { max-width: 520px; margin: 16px 0 26px; color: rgba(255,255,255,.86); font-size: 1.08rem; }
.pse-home .pse-hero .pse-btn-solid { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.pse-home .pse-hero .pse-btn-solid:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }
.pse-home .pse-hero .pse-btn-line { border-color: rgba(255,255,255,.6); color: #fff; }
.pse-home .pse-hero .pse-btn-line:hover { background: #fff; border-color: #fff; color: var(--navy); }

/* empat sampul bertumpuk */
.pse-home .pse-fan { display: flex; justify-content: center; align-items: center; padding: 14px 0; }
.pse-home .pse-fan a { display: block; flex: 0 1 25%; min-width: 80px; margin: 0 -2.4%; border-radius: 6px; background: #fff; box-shadow: 0 14px 30px rgba(0,0,0,.42); transition: transform .25s; }
.pse-home .pse-fan a:nth-child(1) { transform: rotate(-9deg) translateY(12px); z-index: 1; }
.pse-home .pse-fan a:nth-child(2) { transform: rotate(-3deg) translateY(-6px); z-index: 3; }
.pse-home .pse-fan a:nth-child(3) { transform: rotate(3deg) translateY(-6px); z-index: 3; }
.pse-home .pse-fan a:nth-child(4) { transform: rotate(9deg) translateY(12px); z-index: 1; }
.pse-home .pse-fan a:hover { transform: translateY(-14px) rotate(0); z-index: 5; }
.pse-home .pse-fan img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; }

/* ---- Strip ---- */
.pse-home .pse-strip { background: #fff; border-bottom: 1px solid var(--line); }
.pse-home .pse-strip .pse-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 24px; padding-top: 14px; padding-bottom: 14px; }
.pse-home .pse-strip .pse-wrap > div { margin: 6px 0; padding: 6px 0 6px 16px; border-left: 4px solid var(--gold); color: var(--muted); font-size: .92rem; }
.pse-home .pse-strip strong { display: block; color: var(--navy); font-size: 1.1rem; }

/* ---- Section ---- */
.pse-home .pse-section { padding: 60px 0; background: var(--ice); }
.pse-home .pse-head { max-width: 640px; margin: 0 auto 36px; text-align: center; }
.pse-home .pse-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.pse-home .pse-head h2::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--gold); margin: 14px auto 0; }
.pse-home .pse-head p { margin: 12px 0 0; color: var(--muted); }

/* ---- Kartu jurnal ---- */
.pse-home .pse-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.pse-home .pse-card { --accent: var(--navy); --tint: #eaf0fc; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--accent); border-radius: 14px; overflow: hidden; box-shadow: 0 4px 14px rgba(14,36,89,.06); transition: box-shadow .2s, transform .2s; }
.pse-home .pse-card:hover { box-shadow: 0 16px 34px rgba(14,36,89,.16); transform: translateY(-5px); }
.pse-home .pse-gjesh { --accent: #12295c; --tint: #e8eefb; }
.pse-home .pse-janapada { --accent: #7a1020; --tint: #faeced; }
.pse-home .pse-arogya { --accent: #0b5a45; --tint: #e5f4ee; }
.pse-home .pse-nakom { --accent: #4b2a9a; --tint: #efe9fa; }
.pse-home .pse-cover { background: var(--tint); padding: 22px 22px 18px; text-align: center; }
.pse-home .pse-cover img { display: inline-block; width: 62%; max-width: 230px; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; box-shadow: 0 10px 22px rgba(0,0,0,.24); }
.pse-home .pse-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.pse-home .pse-card h3 { font-size: 1.2rem; }
.pse-home .pse-card h3 a { color: var(--accent); text-decoration: none; }
.pse-home .pse-card h3 a:hover { text-decoration: underline; }
.pse-home .pse-en { margin: 6px 0 12px; font-style: italic; color: var(--muted); font-size: .92rem; }
.pse-home .pse-card p.pse-desc { margin: 0 0 14px; font-size: .96rem; }
.pse-home .pse-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.pse-home .pse-chips li { margin: 0; background: var(--tint); color: var(--accent); font-size: .8rem; font-weight: 600; padding: 3px 11px; border-radius: 999px; }
.pse-home .pse-issue { margin: auto 0 16px; padding: 10px 14px; border-left: 4px solid var(--gold); background: var(--ice); border-radius: 0 8px 8px 0; }
.pse-home .pse-issue small { display: block; color: var(--muted); font-size: .8rem; }
.pse-home .pse-issue strong { color: var(--accent); }
.pse-home .pse-card .pse-btns { gap: 8px; }
.pse-home .pse-card .pse-btn { flex: 1; padding: 9px 14px; font-size: .9rem; border-color: var(--accent); }
.pse-home .pse-card .pse-btn-solid { background: var(--accent); color: #fff; }
.pse-home .pse-card .pse-btn-solid:hover { background: var(--accent); border-color: var(--accent); filter: brightness(1.25); }
.pse-home .pse-card .pse-btn-line { color: var(--accent); }
.pse-home .pse-card .pse-btn-line:hover { background: var(--accent); color: #fff; }

/* ---- Langkah penulis ---- */
.pse-home .pse-authors { background: #fff; text-align: center; }
.pse-home .pse-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 34px 22px; margin: 0 0 30px; padding: 0; list-style: none; counter-reset: s; }
.pse-home .pse-steps li { counter-increment: s; position: relative; margin: 0; background: var(--ice); border: 1px solid var(--line); border-radius: 14px; padding: 36px 20px 22px; color: var(--muted); font-size: .95rem; }
.pse-home .pse-steps li::before { content: counter(s); position: absolute; left: 50%; top: -22px; transform: translateX(-50%); width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold); font-weight: 700; font-size: 1.2rem; display: grid; place-items: center; border: 4px solid #fff; box-shadow: 0 4px 10px rgba(14,36,89,.2); }
.pse-home .pse-steps strong { display: block; color: var(--navy); font-size: 1.05rem; margin-bottom: 4px; }

/* ---- Kontak ---- */
.pse-home .pse-contact { background: var(--navy-deep); color: #fff; padding: 36px 0; border-top: 4px solid var(--gold); }
.pse-home .pse-contact .pse-wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between; }
.pse-home .pse-contact h3 { color: var(--gold); font-size: 1.3rem; }
.pse-home .pse-contact p { margin: 4px 0 0; color: rgba(255,255,255,.82); }
.pse-home .pse-contact a { color: #fff; font-weight: 600; }
.pse-home .pse-contact a:hover { color: var(--gold); }

/* ---- Responsif ---- */
@media (max-width: 900px) {
  .pse-home .pse-hero .pse-wrap { grid-template-columns: 1fr; }
  .pse-home .pse-fan { max-width: 480px; margin: 0 auto; width: 100%; }
  .pse-home .pse-section { padding: 44px 0; }
}
@media (max-width: 520px) {
  .pse-home .pse-hero { padding: 40px 0 48px; }
  .pse-home .pse-strip .pse-wrap { grid-template-columns: 1fr; }
  .pse-home .pse-brand img { height: 62px; }
}
@media (prefers-reduced-motion: reduce) {
  .pse-home * { transition: none !important; }
}

/* ---- Halaman navigasi jurnal ---- */
.pse-home .pse-hero-sm { padding: 36px 0 40px; }
.pse-home .pse-hero-sm .pse-wrap { display: block; }
.pse-home .pse-hero-sm .pse-hero-title { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.pse-home .pse-hero-sm p { margin: 10px 0 18px; }
.pse-home .pse-jump { display: flex; flex-wrap: wrap; gap: 10px; }
.pse-home .pse-jump a { padding: 8px 18px; border-radius: 999px; background: #fff; border: 2px solid #fff; color: var(--navy); font-weight: 600; text-decoration: none; transition: background .15s, color .15s; }
.pse-home .pse-jump a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.pse-home .pse-navcard { scroll-margin-top: 20px; padding: 0; }
.pse-home .pse-navhead { display: flex; gap: 16px; align-items: center; padding: 18px 22px; background: var(--tint); }
.pse-home .pse-navhead img { flex: none; width: 56px; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px; box-shadow: 0 4px 10px rgba(0,0,0,.22); }
.pse-home .pse-navhead h3 { font-size: 1.12rem; }
.pse-home .pse-navhead h3 a { color: var(--accent); text-decoration: none; }
.pse-home .pse-navhead small { display: block; margin-top: 2px; color: var(--muted); font-size: .85rem; }
.pse-home .pse-links { list-style: none; margin: 0; padding: 4px 0; }
.pse-home .pse-links a { display: flex; justify-content: space-between; align-items: center; padding: 12px 22px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); transition: background .15s; }
.pse-home .pse-links li:last-child a { border-bottom: 0; }
.pse-home .pse-links a::after { content: "\203A"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.pse-home .pse-links a:hover { background: var(--tint); color: var(--accent); }
.pse-home .pse-links a.pse-cta { font-weight: 600; color: var(--accent); }
