/* =====================================================================
   PESANTREN — Studies in Islamic School and Social Education
   Custom stylesheet untuk OJS 3.3 / 3.4 (Default Theme)
   Palet: hijau gradasi kuning cerah | Font: Amiri + Plus Jakarta Sans
   Ikon: FontAwesome 4.7 (sudah dibawa oleh Default Theme OJS)
   ===================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

:root {
  --hijau-tua: #0A5C36;
  --hijau: #13914B;
  --hijau-muda: #6DBE45;
  --kuning: #F4D03F;
  --kuning-lembut: #FFF6C7;
  --latar: #F3F9EF;
  --teks: #1E2B23;
  --teks-redup: #5B6B60;
  --garis: #DCEBD6;
  --gradasi: linear-gradient(120deg, #0A5C36 0%, #13914B 38%, #6DBE45 70%, #F4D03F 100%);
  --gradasi-tombol: linear-gradient(135deg, #13914B 0%, #6DBE45 60%, #F4D03F 130%);
  --bayangan-1: 0 2px 6px rgba(10, 92, 54, .08);
  --bayangan-2: 0 10px 28px rgba(10, 92, 54, .14);
  --bayangan-3: 0 18px 40px rgba(10, 92, 54, .22);
  --radius: 14px;
  --font-judul: "Amiri", "Times New Roman", Georgia, serif;
  --font-teks: "Plus Jakarta Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --ikon: "FontAwesome";
}

/* ---------- 1. DASAR ---------- */
body {
  background: var(--latar) !important;
  color: var(--teks);
  font-family: var(--font-teks);
  font-size: 15.5px;
  line-height: 1.7;
}
.pkp_structure_page { background: transparent; max-width: 1200px; margin: 0 auto; }
a { color: var(--hijau); transition: color .2s ease; }
a:hover, a:focus { color: var(--hijau-tua); }
h1, h2, h3, h4 { font-family: var(--font-judul); color: var(--hijau-tua); line-height: 1.3; }
:focus-visible { outline: 3px solid var(--kuning); outline-offset: 2px; }

/* ---------- 2. HEADER ---------- */
body .pkp_structure_head {
  position: relative;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.13' stroke-width='1.2'%3E%3Crect x='22' y='22' width='36' height='36'/%3E%3Crect x='22' y='22' width='36' height='36' transform='rotate(45 40 40)'/%3E%3Ccircle cx='40' cy='40' r='7'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 60%),
    var(--gradasi) !important;
  border-bottom: 0 !important;
  box-shadow: 0 6px 24px rgba(10, 92, 54, .25);
}
.pkp_head_wrapper { position: relative; max-width: 1200px; padding-left: 1.25rem; padding-right: 1.25rem; }

.pkp_site_name_wrapper { text-align: center; }
.pkp_site_name {
  margin: 0 auto;
  padding: 0;
  text-align: center;
  font-size: 1rem;
}

/* Nama jurnal + subjudul (menggantikan teks judul bawaan) */
.pkp_site_name .is_text {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font-size: 0 !important;
  line-height: 1;
  color: #fff !important;
  text-decoration: none !important;
}
.pkp_site_name .is_text::before {
  content: "Pesantren";
  font-family: var(--font-judul);
  font-weight: 700;
  font-size: 4.4rem;
  line-height: 1.05;
  letter-spacing: .02em;
  color: #fff;
  text-shadow: 0 3px 14px rgba(0, 0, 0, .28);
}
.pkp_site_name .is_text::after {
  content: "Studies in Islamic School and Social Education";
  margin-top: .7rem;
  padding-top: .65rem;
  border-top: 1px solid rgba(255, 246, 199, .6);
  font-family: var(--font-teks);
  font-weight: 500;
  font-size: 1.12rem;
  letter-spacing: .04em;
  color: var(--kuning-lembut);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .25);
}

/* e-ISSN — pojok kanan atas */
.pkp_site_name::before {
  content: "\f02d\00a0\00a0 e-ISSN: 3030-9042";
  font-family: var(--ikon), var(--font-teks);
  font-size: .85rem;
  font-weight: 700;
  color: var(--hijau-tua);
  background: var(--kuning);
  padding: .45rem 1rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  white-space: nowrap;
}

/* Penerbit — tengah bawah */
.pkp_site_name::after {
  content: "\f19c\00a0\00a0 Penerbit: Maktabah Andalus Indonesia";
  display: table;
  margin: 1.4rem auto 0;
  font-family: var(--ikon), var(--font-teks);
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
  background: rgba(10, 92, 54, .35);
  border: 1px solid rgba(255, 255, 255, .35);
  padding: .5rem 1.25rem;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
  backdrop-filter: blur(4px);
}

/* Logo gambar (jika masih dipakai) */
.pkp_site_name .is_img img { max-height: 120px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); }

/* ---------- 3. MENU UTAMA (desktop) ---------- */
@media (min-width: 992px) {
  body .pkp_structure_head { margin-bottom: 3.25rem; }
  .pkp_head_wrapper { padding-top: 3rem; }

  .pkp_site_name_wrapper,
  .pkp_site_name { position: static; }
  .pkp_site_name_wrapper { padding: 1.5rem 0 3.4rem; height: auto; }

  .pkp_site_name::before { position: absolute; top: .75rem; right: 1.25rem; }

  /* Menu pengguna (Login/Daftar) pindah ke kiri atas */
  .pkp_navigation_user_wrapper {
    position: absolute !important;
    top: .7rem; left: 1.25rem; right: auto !important;
    padding: 0; background: transparent;
  }
  #navigationUser > li > a {
    color: #fff !important;
    font-size: .85rem; font-weight: 600;
    padding: .35rem .85rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.1);
    transition: background .2s ease;
  }
  #navigationUser > li > a:hover { background: rgba(255,255,255,.25); border-color: #fff; }

  .pkp_site_nav_menu { background: transparent; padding: 0; }

  /* Bar menu melayang dengan bayangan */
  .pkp_navigation_primary_row {
    position: relative;
    z-index: 30;
    max-width: 1160px;
    margin: 0 auto -1.9rem;
    padding: .3rem .6rem;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--bayangan-3);
    border-bottom: 3px solid transparent;
    background-image: linear-gradient(#fff, #fff), var(--gradasi);
    background-origin: border-box;
    background-clip: padding-box, border-box;
  }
  .pkp_navigation_primary_wrapper {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: .25rem; padding: 0;
  }
  #navigationPrimary { display: flex; flex-wrap: wrap; float: none; margin: 0; padding: 0; }
  #navigationPrimary > li > a {
    display: inline-flex; align-items: center;
    margin: 0 .1rem;
    padding: .8rem .95rem;
    color: var(--hijau-tua);
    font-weight: 600; font-size: .92rem;
    border: 0 !important;
    border-radius: 10px;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
  }
  #navigationPrimary > li > a:hover,
  #navigationPrimary > li > a:focus,
  #navigationPrimary > li:hover > a {
    color: #fff;
    background: var(--gradasi-tombol);
    box-shadow: 0 6px 14px rgba(19, 145, 75, .3);
  }

  /* Dropdown */
  #navigationPrimary ul {
    background: #fff;
    border: 0;
    border-radius: 12px;
    padding: .4rem;
    box-shadow: var(--bayangan-3);
    border-top: 3px solid var(--kuning);
  }
  #navigationPrimary ul a {
    display: block;
    padding: .55rem .9rem;
    color: var(--teks) !important;
    font-size: .9rem;
    border: 0 !important;
    border-radius: 8px;
  }
  #navigationPrimary ul a:hover { background: var(--latar); color: var(--hijau) !important; }

  /* Tombol cari */
  .pkp_navigation_search_wrapper { float: none; padding: 0; }
  .pkp_navigation_search_wrapper a {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .55rem 1.1rem;
    color: var(--hijau-tua) !important;
    font-weight: 600; font-size: .9rem;
    background: var(--kuning-lembut);
    border: 1px solid #F1E28A !important;
    border-radius: 999px;
    transition: box-shadow .2s ease, background .2s ease;
  }
  .pkp_navigation_search_wrapper a:hover { background: var(--kuning); box-shadow: 0 6px 14px rgba(244, 208, 63, .45); }
}

/* ---------- 4. IKON MENU ---------- */
#navigationPrimary a::before,
#navigationUser a::before {
  font-family: var(--ikon);
  font-weight: normal;
  margin-right: .5rem;
  font-size: 1em;
  opacity: .9;
  content: "\f0da"; /* default: caret */
}
#navigationPrimary a[href$="/index"]::before,
#navigationPrimary a[href$="/pesantren"]::before        { content: "\f015"; } /* home */
#navigationPrimary a[href$="/issue/current"]::before    { content: "\f02d"; } /* book */
#navigationPrimary a[href$="/issue/archive"]::before    { content: "\f187"; } /* archive */
#navigationPrimary a[href$="/announcement"]::before     { content: "\f0a1"; } /* bullhorn */
#navigationPrimary a[href$="/about"]::before            { content: "\f05a"; } /* info */
#navigationPrimary a[href$="/about/editorialTeam"]::before { content: "\f0c0"; } /* users */
#navigationPrimary a[href$="/about/submissions"]::before   { content: "\f1d8"; } /* send */
#navigationPrimary a[href$="/about/contact"]::before       { content: "\f0e0"; } /* envelope */
#navigationPrimary a[href$="/about/privacy"]::before       { content: "\f023"; } /* lock */
#navigationPrimary a[href*="focus" i]::before       { content: "\f140"; } /* bullseye */
#navigationPrimary a[href*="ethic" i]::before       { content: "\f24e"; } /* balance */
#navigationPrimary a[href*="review" i]::before      { content: "\f00c"; } /* check */
#navigationPrimary a[href*="guideline" i]::before,
#navigationPrimary a[href*="template" i]::before    { content: "\f15c"; } /* file */
#navigationPrimary a[href*="index" i]:not([href$="/index"])::before { content: "\f0ac"; } /* globe */
#navigationPrimary a[href*="plagiar" i]::before     { content: "\f002"; }
#navigationPrimary a[href*="fee" i]::before,
#navigationPrimary a[href*="apc" i]::before         { content: "\f0d6"; } /* money */
#navigationPrimary a[href*="open" i][href*="access" i]::before { content: "\f09c"; } /* unlock */
#navigationPrimary > li > a.dropdown-toggle::after,
#navigationPrimary > li > a[aria-haspopup]::after {
  font-family: var(--ikon); content: "\f107"; margin-left: .4rem; border: 0; vertical-align: 0;
}
#navigationUser a[href*="/login"]::before    { content: "\f090"; }
#navigationUser a[href*="/register"]::before { content: "\f234"; }
#navigationUser a[href*="/submissions"]::before,
#navigationUser a[href*="/dashboard"]::before { content: "\f0e4"; }
#navigationUser a[href*="/user/profile"]::before { content: "\f007"; }
#navigationUser a[href*="/logout"]::before   { content: "\f08b"; }

/* ---------- 5. TATA LETAK KONTEN ---------- */
.pkp_structure_content { padding: 1.5rem 1.25rem 3rem; }
@media (min-width: 992px) {
  .pkp_structure_content.has_sidebar {
    display: flex; align-items: flex-start; gap: 2rem;
    max-width: 1200px; margin: 0 auto;
  }
  .pkp_structure_content.has_sidebar::before,
  .pkp_structure_content.has_sidebar::after { display: none !important; }
  .pkp_structure_content.has_sidebar .pkp_structure_main {
    flex: 1 1 auto; min-width: 0; width: auto; float: none; margin: 0;
  }
  .pkp_structure_content.has_sidebar .pkp_structure_sidebar {
    flex: 0 0 300px; width: 300px; float: none; margin: 0; padding: 0;
  }
  .pkp_structure_main::before,
  .pkp_structure_main::after { display: none !important; }
}

.pkp_structure_main {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 2.25rem !important;
  box-shadow: var(--bayangan-2);
}
.pkp_structure_main h1,
.pkp_structure_main h2 {
  font-size: 1.85rem;
  padding-bottom: .45rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--hijau) 0%, var(--kuning) 100%) left bottom / 72px 3px no-repeat;
}
.pkp_structure_main h3 { font-size: 1.4rem; }

/* Breadcrumbs */
.cmp_breadcrumbs ol { font-size: .85rem; color: var(--teks-redup); }
.cmp_breadcrumbs li:first-child a::before { font-family: var(--ikon); content: "\f015"; margin-right: .35rem; }

/* Ringkasan artikel / daftar isi */
.obj_issue_toc .sections .section > h2,
.obj_issue_toc .sections .section > h3 {
  display: inline-block;
  font-family: var(--font-teks);
  font-size: .95rem; font-weight: 700;
  color: #fff;
  background: var(--gradasi-tombol);
  padding: .35rem 1rem;
  border-radius: 999px;
  box-shadow: var(--bayangan-1);
}
.obj_article_summary {
  position: relative;
  padding: 1.1rem 1.25rem 1.1rem 1.4rem !important;
  margin-bottom: 1rem;
  border: 1px solid var(--garis);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--bayangan-1);
  transition: box-shadow .25s ease, transform .25s ease;
}
.obj_article_summary::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px;
  border-radius: 0 4px 4px 0; background: linear-gradient(180deg, var(--hijau), var(--kuning));
}
.obj_article_summary:hover { box-shadow: var(--bayangan-2); transform: translateY(-2px); }
.obj_article_summary .title a { color: var(--hijau-tua); font-weight: 700; font-size: 1.05rem; }
.obj_article_summary .title a:hover { color: var(--hijau); }
.obj_article_summary .authors { color: var(--teks-redup); font-size: .9rem; }
.obj_article_summary .authors::before { font-family: var(--ikon); content: "\f007"; margin-right: .4rem; color: var(--hijau-muda); }
.obj_article_summary .pages { color: var(--teks-redup); font-size: .85rem; }

/* Tombol PDF / galley */
.obj_galley_link,
a.obj_galley_link {
  border: 1.5px solid var(--hijau) !important;
  color: var(--hijau) !important;
  border-radius: 999px !important;
  padding: .3rem .95rem !important;
  font-weight: 600;
  transition: all .2s ease;
}
.obj_galley_link:hover {
  background: var(--gradasi-tombol) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 6px 14px rgba(19, 145, 75, .3);
}

/* Tombol umum */
.cmp_button, .pkp_button, button.submit, .cmp_form .buttons button,
.page_search .submit button, .block_make_submission a {
  display: inline-block;
  color: #fff !important;
  background: var(--gradasi-tombol) !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: .6rem 1.4rem !important;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(19, 145, 75, .28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cmp_button:hover, .pkp_button:hover, button.submit:hover,
.cmp_form .buttons button:hover, .block_make_submission a:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(19, 145, 75, .35);
}

/* Formulir */
.cmp_form input[type="text"], .cmp_form input[type="email"], .cmp_form input[type="password"],
.cmp_form select, .cmp_form textarea, .page_search input[type="text"] {
  border: 1px solid var(--garis); border-radius: 10px; padding: .55rem .8rem;
}
.cmp_form input:focus, .cmp_form select:focus, .cmp_form textarea:focus {
  border-color: var(--hijau-muda); box-shadow: 0 0 0 3px rgba(109, 190, 69, .25); outline: 0;
}

/* Beranda: sampul & tentang jurnal */
.homepage_image img, .obj_issue_toc .cover img, .obj_issue_summary .cover img {
  border-radius: 12px; box-shadow: var(--bayangan-2);
}
.homepage_about, .page_index_journal .additional_content {
  background: linear-gradient(135deg, #F7FCF4 0%, #FFFBE6 100%);
  border: 1px solid var(--garis);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

/* ---------- 6. SIDEBAR ---------- */
.pkp_structure_sidebar .pkp_block {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.3rem !important;
  margin-bottom: 1.4rem;
  box-shadow: var(--bayangan-2);
  border: 0;
  transition: box-shadow .25s ease;
}
.pkp_structure_sidebar .pkp_block::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gradasi);
}
.pkp_structure_sidebar .pkp_block:hover { box-shadow: var(--bayangan-3); }
.pkp_structure_sidebar .pkp_block .title {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--font-teks);
  font-size: 1rem; font-weight: 700;
  color: var(--hijau-tua);
  padding-bottom: .65rem; margin-bottom: .85rem;
  border-bottom: 1px dashed var(--garis);
}
.pkp_structure_sidebar .pkp_block .title::before {
  font-family: var(--ikon); font-weight: normal;
  content: "\f02e";
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; flex: 0 0 30px;
  color: #fff; font-size: .85rem;
  background: var(--gradasi-tombol);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(19, 145, 75, .3);
}
.pkp_block.block_information .title::before  { content: "\f05a"; }
.pkp_block.block_language .title::before     { content: "\f1ab"; }
.pkp_block.block_web_feed .title::before     { content: "\f09e"; }
.pkp_block.block_developed_by .title::before { content: "\f121"; }
.pkp_block.block_keyword_cloud .title::before{ content: "\f02c"; }

/* Daftar tautan di blok kustom */
.pkp_structure_sidebar .pkp_block ul { list-style: none; margin: 0; padding: 0; }
.pkp_structure_sidebar .pkp_block ul li { margin: 0; border-bottom: 1px solid #F0F6EC; }
.pkp_structure_sidebar .pkp_block ul li:last-child { border-bottom: 0; }
.pkp_structure_sidebar .pkp_block ul li a {
  display: block; padding: .5rem .4rem; color: var(--teks); font-size: .92rem;
  border-radius: 8px; transition: background .2s ease, padding .2s ease, color .2s ease;
}
.pkp_structure_sidebar .pkp_block ul li a::before {
  font-family: var(--ikon); content: "\f105"; margin-right: .55rem; color: var(--hijau-muda);
}
.pkp_structure_sidebar .pkp_block ul li a:hover {
  background: var(--latar); color: var(--hijau); padding-left: .75rem;
}
.block_make_submission { text-align: center; }
.block_make_submission a::before { font-family: var(--ikon); content: "\f1d8"; margin-right: .5rem; }

/* ---------- 7. FOOTER ---------- */
.pkp_structure_footer_wrapper {
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.12) 100%),
    linear-gradient(120deg, #0A5C36 0%, #0F7A42 60%, #13914B 100%) !important;
  color: #E8F5E3;
  border-top: 4px solid var(--kuning);
  margin-top: 1rem;
}
.pkp_structure_footer { max-width: 1200px; margin: 0 auto; }
.pkp_footer_content { padding: 2.25rem 1.25rem 1.5rem; color: #E8F5E3; }
.pkp_footer_content a { color: var(--kuning); }
.pkp_footer_content a:hover { color: #fff; }
.pkp_brand_footer { padding: 1rem 1.25rem 1.5rem; border-top: 1px solid rgba(255,255,255,.12); }
.pkp_brand_footer img { filter: brightness(0) invert(1); opacity: .8; }

/* ---------- 8. MOBILE ---------- */
@media (max-width: 991px) {
  .pkp_site_name_wrapper { padding: 1rem 3.25rem 1.5rem; height: auto; }
  .pkp_site_name::before {
    display: table; margin: 0 auto .9rem; font-size: .78rem; padding: .35rem .85rem;
  }
  .pkp_site_name .is_text::before { font-size: 2.7rem; }
  .pkp_site_name .is_text::after  { font-size: .9rem; margin-top: .5rem; }
  .pkp_site_name::after { font-size: .78rem; margin-top: 1rem; }
  .pkp_site_nav_toggle { color: #fff; top: 1rem; }
  .pkp_site_nav_menu { background: #fff; border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--bayangan-3); }
  #navigationPrimary a { color: var(--hijau-tua); font-weight: 600; }
  .pkp_structure_main { padding: 1.4rem 1.2rem !important; }
  .pkp_structure_sidebar { margin-top: 1.5rem; }
}

/* ---------- 9. AKSESIBILITAS ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; transform: none !important; }
}
