/* ==========================================================================
   KAPATA: Jurnal Teologi dan Pendidikan Kristen — OJS 3.5 (Default Theme)
   Unggah di: Website > Appearance > Advanced > Journal Style Sheet
   Syarat header: JANGAN unggah "Page header logo". Biarkan judul jurnal tampil
   sebagai teks, karena CSS ini yang mendandani header-nya.
   Ganti warna/teks merek cukup di bagian :root dan bagian "3. Header".
   ========================================================================== */

/* Font opsional. Hapus baris ini jika tidak ingin memanggil Google Fonts. */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Source+Sans+3:wght@400;600;700&family=Source+Serif+4:wght@400;600&display=swap");

/* ---------- 1. Token desain ---------- */
:root {
  --navy-950: #061729;
  --navy-900: #081f3a;
  --navy-800: #0b2a4a;
  --navy-700: #14406b;
  --teal-800: #0b3c52;
  --blue-600: #2b6cb0;
  --blue-700: #235a95;
  --gold-500: #e0a526;
  --gold-100: #f6ecd2;
  --cream:    #ecdcae;

  --ink: #1c2733;
  --muted: #5a6978;
  --line: #dde4ec;
  --page: #f1f4f8;
  --card: #ffffff;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(11, 42, 74, .08);
  --shadow-md: 0 8px 22px rgba(11, 42, 74, .14);

  --font-display: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --font-ui: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-text: "Source Serif 4", Georgia, "Times New Roman", serif;
}

/* ---------- 2. Dasar ---------- */
body {
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
.pkp_structure_page { background: var(--page); }
a { text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
}

/* ---------- 3. Header bermerek ---------- */
body .pkp_structure_head {
  background:
    /* siluet salib tipis di kanan */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 160'%3E%3Cpath d='M52 8h16v44h40v16H68v84H52V68H12V52h40z' fill='none' stroke='%23e0a526' stroke-opacity='.28' stroke-width='1.5'/%3E%3C/svg%3E")
      no-repeat right max(24px, calc((100% - 1128px) / 2 + 24px)) top 18px / auto 120px,
    radial-gradient(80% 160% at 10% -20%, #17497e 0%, transparent 62%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900)) !important;
  border-bottom: 3px solid var(--gold-500);
  box-shadow: 0 4px 14px rgba(6, 23, 41, .35);
}

.pkp_structure_head .pkp_site_name_wrapper { padding-top: 28px; padding-bottom: 22px; }

.pkp_structure_head .pkp_site_name {
  margin: 0;
  padding: 0;
  line-height: 1;
}

/* Judul asli tetap ada di HTML (untuk mesin pencari & pembaca layar);
   tampilan visual dipecah menjadi merek + subjudul. */
.pkp_structure_head .pkp_site_name .is_text {
  display: block;
  font-size: 0;
  line-height: 0;
  color: #fff;
  text-decoration: none;
}
.pkp_structure_head .pkp_site_name .is_text::before {
  content: "KAPATA";
  content: "KAPATA" / "";
  display: block;
  font-family: var(--font-display);
  font-size: clamp(36px, 7vw, 56px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: .16em;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}
.pkp_structure_head .pkp_site_name .is_text::after {
  content: "Jurnal Teologi dan Pendidikan Kristen";
  content: "Jurnal Teologi dan Pendidikan Kristen" / "";
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid rgba(224, 165, 38, .7);
  font-family: var(--font-display);
  font-size: clamp(16px, 2.6vw, 22px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .02em;
  color: var(--cream);
}

/* Jika Anda tetap memakai "Page header logo" (gambar), aturan di atas tidak
   dipakai dan gambar cukup dirapikan di sini. Saran: PNG transparan, tinggi ~120px. */
.pkp_structure_head .pkp_site_name .is_img { display: inline-block; }
.pkp_structure_head .pkp_site_name .is_img img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 120px;
}

/* ---------- 4. Menu navigasi (primary & user) ---------- */
@media (min-width: 992px) {
  /* bar menu selebar layar */
  .pkp_structure_head .pkp_navigation_primary_row {
    background: rgba(4, 16, 32, .5);
    box-shadow: 0 0 0 100vmax rgba(4, 16, 32, .5);
    clip-path: inset(0 -100vmax);
  }
  .pkp_structure_head .pkp_navigation_primary_wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

.pkp_structure_head .pkp_nav_list > li { position: relative; }

.pkp_structure_head .pkp_nav_list > li > a {
  display: flex;
  align-items: center;
  padding: 15px 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 -3px 0 transparent;
  transition: background-color .2s, box-shadow .2s;
}
.pkp_structure_head .pkp_nav_list > li > a:hover,
.pkp_structure_head .pkp_nav_list > li:focus-within > a,
.pkp_structure_head .pkp_nav_list > li.current > a {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  box-shadow: inset 0 -3px 0 var(--gold-500);
}

/* Dropdown */
.pkp_structure_head .pkp_nav_list ul {
  min-width: 230px;
  padding: 8px;
  background: #fff;
  border: 0;
  border-top: 3px solid var(--gold-500);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-md);
}
.pkp_structure_head .pkp_nav_list ul a {
  display: block;
  padding: 9px 12px;
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.pkp_structure_head .pkp_nav_list ul a:hover,
.pkp_structure_head .pkp_nav_list ul a:focus {
  background: var(--page);
  color: var(--navy-700);
}

/* Tombol Search */
.pkp_structure_head .pkp_navigation_search_wrapper a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  transition: background-color .2s, border-color .2s;
}
.pkp_structure_head .pkp_navigation_search_wrapper a:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .55);
}

/* Mobile */
@media (max-width: 991px) {
  .pkp_structure_head .pkp_site_nav_menu { background: var(--navy-900); }
  .pkp_structure_head .pkp_nav_list ul {
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .pkp_structure_head .pkp_nav_list ul a { color: #dbe6f3; }
  .pkp_structure_head .pkp_nav_list ul a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
}

/* ---------- 5. Konten utama ---------- */
.pkp_structure_main::before,
.pkp_structure_main::after { display: none; }

.pkp_structure_main {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.homepage_image img,
.obj_issue_toc .cover img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.pkp_structure_main h2 {
  position: relative;
  margin-bottom: 14px;
  padding-bottom: 8px;
  color: var(--navy-800);
  border-bottom: 3px solid var(--line);
}
.pkp_structure_main h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 56px; height: 3px;
  background: var(--gold-500);
}

/* Kartu artikel pada daftar isi */
.obj_article_summary {
  padding: 16px 18px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: box-shadow .2s, border-color .2s;
}
.obj_article_summary:hover {
  border-color: #c3d0de;
  box-shadow: var(--shadow-sm);
}
.obj_article_summary .title a {
  color: var(--navy-800);
  font-weight: 700;
  text-decoration: none;
}
.obj_article_summary .title a:hover {
  text-decoration: underline;
  text-decoration-color: var(--gold-500);
  text-decoration-thickness: 2px;
}
.obj_galley_link {
  background: var(--blue-600);
  border: 0;
  border-radius: var(--radius-sm);
  color: #fff;
  font-weight: 700;
  transition: background-color .2s;
}
.obj_galley_link:hover { background: var(--blue-700); color: #fff; }

/* ---------- 5b. Isi "About the Journal" (lihat kapata-about-the-journal.html) ---------- */
.about-journal { max-width: 70ch; }

.about-journal p {
  font-family: var(--font-text);
  font-size: 16.5px;
  line-height: 1.75;
  color: #2a3744;
}
.about-journal .about-lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
}

.about-journal h3 {
  margin: 28px 0 12px;
  color: var(--navy-800);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

/* Kartu data cepat (ISSN, frekuensi terbit, dst.) */
.about-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 6px;
  padding: 0;
  list-style: none;
}
.about-meta li {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  padding: 7px 14px;
  background: var(--page);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-500);
  border-radius: var(--radius-sm);
  color: var(--navy-800);
  font-size: 14px;
  font-weight: 700;
}
.about-meta li span { color: var(--muted); font-size: 13px; font-weight: 600; }
.about-meta li a { color: var(--navy-800); }

/* Fokus & lingkup: dua kolom, penanda berlian emas */
.about-scope {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.about-scope li {
  position: relative;
  margin: 0;
  padding: 2px 0 2px 22px;
  font-size: 15px;
  line-height: 1.5;
}
.about-scope li::before {
  content: "";
  position: absolute;
  left: 3px; top: .68em;
  width: 7px; height: 7px;
  background: var(--gold-500);
  transform: rotate(45deg);
}

/* Daftar pengindeks: chip tautan */
.about-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.about-index li { margin: 0; }
.about-index a {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy-800);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s, border-color .2s, color .2s;
}
.about-index a:hover {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #fff;
}

@media (max-width: 600px) {
  .about-scope { grid-template-columns: 1fr; }
}

/* ---------- 6. Sidebar ---------- */
/* Jarak antara kartu konten dan sidebar (desktop). Di layar kecil sidebar
   turun ke bawah konten, jadi jarak ini tidak diperlukan. */
@media (min-width: 992px) {
  .pkp_structure_sidebar .pkp_block { margin-left: 24px; }
}

.pkp_block {
  margin-bottom: 18px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.pkp_block .title {
  display: block;
  margin: 0 0 16px;
  padding: 0;
  color: var(--navy-800);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
}
.pkp_block .title::after {
  content: "";
  display: block;
  width: 40px; height: 3px;
  margin: 8px auto 0;
  background: var(--gold-500);
  border-radius: 2px;
}

/* Daftar tautan pada blok bawaan (Information, Language) */
.pkp_block ul { margin: 0; padding: 0; list-style: none; }
.pkp_block .content ul:not(.sidebar-menu) > li { margin: 0; padding: 6px 0; border-bottom: 1px solid var(--line); }
.pkp_block .content ul:not(.sidebar-menu) > li:last-child { border-bottom: 0; }
.pkp_block .content ul:not(.sidebar-menu) > li a { color: var(--navy-800); font-size: 14px; text-decoration: none; }
.pkp_block .content ul:not(.sidebar-menu) > li a:hover { color: var(--blue-600); text-decoration: underline; }

/* ---- Blok "menu" tunggal (lihat kapata-menu.html) ----
   Beri nama blok "menu" di Custom Block Manager supaya wrapper-nya
   berid "customblock-menu". Wrapper dibuat transparan, kartunya ada di dalam. */
#customblock-menu {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.pkp_block:has(.kmenu) {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
/* judul blok tetap ada untuk pembaca layar, tidak ditampilkan */
#customblock-menu .title {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.pkp_block:has(.kmenu) .title {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.kmenu { display: grid; gap: 18px; }

.kmenu-card {
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.kmenu-title {
  margin: 0 0 16px;
  color: var(--navy-800);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
}
.kmenu-title::after {
  content: "";
  display: block;
  width: 40px; height: 3px;
  margin: 8px auto 0;
  background: var(--gold-500);
  border-radius: 2px;
}
.kmenu-card .btn-sidebar + .sidebar-cert,
.kmenu-card .sidebar-cert + .btn-sidebar { margin-top: 14px; }

/* Blok Make a Submission: tombol emas */
.pkp_block.block_make_submission {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.pkp_block.block_make_submission a {
  display: block;
  padding: 13px 16px;
  background: linear-gradient(180deg, #efb93a, var(--gold-500));
  border-radius: var(--radius-md);
  color: var(--navy-950);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(224, 165, 38, .35);
  transition: transform .15s, box-shadow .2s;
}
.pkp_block.block_make_submission a:hover {
  color: var(--navy-950);
  box-shadow: 0 6px 16px rgba(224, 165, 38, .5);
}
.pkp_block.block_make_submission a:active { transform: translateY(1px); }

/* Tombol biru / navy di sidebar */
.btn-sidebar {
  display: block;
  width: 100%;
  padding: 11px 14px;
  background: var(--blue-600);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: background-color .2s, transform .15s;
}
.btn-sidebar:hover { background: var(--blue-700); color: #fff; }
.btn-sidebar:active { transform: translateY(1px); }
.btn-sidebar--navy { background: var(--navy-800); }
.btn-sidebar--navy:hover { background: var(--navy-700); }
.btn-sidebar--inline { width: auto; display: table; margin: 0 auto; padding: 11px 24px; }

.sidebar-cert {
  display: block;
  width: 136px;
  margin: 14px auto;
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.sidebar-cert img { display: block; width: 100%; height: auto; }

/* Daftar tombol menu gelap */
.sidebar-menu {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sidebar-menu li,
.pkp_block .sidebar-menu li { margin: 0; padding: 0; border: 0; }
.pkp_block .sidebar-menu a,
.pkp_block .sidebar-menu a:visited,
.pkp_block .sidebar-menu a:hover,
.pkp_block .sidebar-menu a:focus { color: #fff !important; text-decoration: none; }
.sidebar-menu a {
  display: block;
  padding: 12px 14px;
  background: linear-gradient(135deg, var(--teal-800), var(--navy-800));
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 0 var(--gold-500);
  transition: box-shadow .2s, transform .15s, filter .2s;
}
.sidebar-menu a:hover,
.sidebar-menu a:focus-visible {
  color: #fff;
  filter: brightness(1.18);
  box-shadow: inset 4px 0 0 0 var(--gold-500);
}
.sidebar-menu a:active { transform: translateY(1px); }

/* Reference management tools: grid logo 2 kolom */
.ref-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 12px;
  align-items: center;
  justify-items: center;
}
.ref-tools a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-800);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.ref-tools .ref-wide { grid-column: 1 / -1; }
.ref-tools img { display: block; max-width: 100%; max-height: 38px; width: auto; }
.ref-tools .ref-wide img { max-height: 54px; }

/* ---------- 7. Footer ---------- */
body .pkp_structure_footer_wrapper {
  background: var(--navy-950);
  color: #c4d0de;
  border-top: 3px solid var(--gold-500);
}
.pkp_structure_footer_wrapper a { color: #fff; }

/* ---------- 8. Responsif & aksesibilitas ---------- */
@media (min-width: 520px) and (max-width: 991px) {
  .sidebar-menu { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  body .pkp_structure_head { background-size: auto 90px, auto, auto !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
