@charset "UTF-8";
/* ==========================================================================
   WJES — Proceedings of National Conference West Java Economic Society
   Custom Stylesheet untuk OJS 3.5.x (Default Theme)
   Tema: "Modern Akademik" — palet diambil dari banner header WJES
   Dibuat: Agustus 2026
   Cara pakai: Settings > Website > Appearance > Journal Stylesheet (upload file ini)
   ========================================================================== */

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

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Warna brand — hasil sampling langsung dari banner header */
  --wjes-red: #c0113f;        /* merah utama WJES */
  --wjes-red-dark: #8e0b2e;   /* merah gelap (hover / gradasi) */
  --wjes-red-soft: #e4144b;   /* merah terang / pink */
  --wjes-orange: #f0603c;     /* oranye gradasi banner */
  --wjes-amber: #f5a623;      /* aksen emas dari logo */
  --wjes-navy: #0b2447;       /* biru tua (teks judul) */

  /* Netral */
  --ink: #1c2431;
  --ink-soft: #4a5568;
  --ink-muted: #6b7787;
  --line: #e6e8ee;
  --line-soft: #f0f2f6;
  --bg: #f6f7fa;
  --surface: #ffffff;
  --surface-tint: #fff5f2;

  /* Gradasi brand */
  --grad-brand: linear-gradient(90deg, var(--wjes-red-dark) 0%, var(--wjes-red) 38%, var(--wjes-red-soft) 66%, var(--wjes-orange) 100%);

  /* Elevasi & radius */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-sm: 0 2px 8px rgba(16, 24, 40, .06);
  --shadow-md: 0 6px 22px rgba(16, 24, 40, .08);
  --shadow-brand: 0 10px 30px rgba(192, 17, 63, .16);

  /* Tipografi */
  --font-head: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, Helvetica, Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   2. DASAR & TIPOGRAFI
   -------------------------------------------------------------------------- */
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.pkp_structure_page {
  background: var(--bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.pkp_structure_main h1,
.pkp_structure_main h2,
.pkp_structure_main h3 {
  font-family: var(--font-head);
  color: var(--wjes-navy);
  letter-spacing: -.01em;
  line-height: 1.3;
}

.pkp_structure_main h1 { font-size: 1.9rem; font-weight: 800; margin-bottom: .6em; }
.pkp_structure_main h2 { font-size: 1.45rem; font-weight: 700; }
.pkp_structure_main h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1.1em; }

a { color: var(--wjes-red); text-decoration: none; transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
a:hover, a:focus { color: var(--wjes-red-dark); text-decoration: underline; }

/* Fokus keyboard yang jelas (aksesibilitas) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(192, 17, 63, .35);
  outline-offset: 2px;
  border-radius: 4px;
}

hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

/* Semua media aman di layar kecil */
img, svg, video, iframe, embed, object { max-width: 100%; }
img, svg, video { height: auto; }
iframe { max-width: 100% !important; }

/* --------------------------------------------------------------------------
   3. HEADER + BANNER (full-width, responsif, tidak terpotong)
   -------------------------------------------------------------------------- */
.pkp_structure_head {
  background: var(--surface);
  border-bottom: 0;
  box-shadow: var(--shadow-xs);
  position: relative;
}

/* Ruang atas cukup supaya menu user (login/profil) yang di-absolute-kan
   oleh tema tidak menimpa banner */
.pkp_head_wrapper { padding-top: 46px !important; padding-bottom: 0 !important; }

/* Reset kontainer supaya banner tidak dipotong OJS */
.pkp_site_name_wrapper,
.pkp_site_name {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  float: none !important;
}

.pkp_site_name .is_img,
.pkp_site_name .is_img a {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 0;
}

/* Banner: proporsi asli terjaga di semua ukuran layar */
.pkp_site_name .is_img img,
.pkp_structure_head .pkp_site_name img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Garis aksen gradasi brand di bawah banner */
.pkp_site_name::after {
  content: "";
  display: block;
  height: 4px;
  margin: 14px 0 0;
  border-radius: 4px;
  background: var(--grad-brand);
}

/* Judul teks (kalau logo dinonaktifkan) */
.pkp_site_name .is_text {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--wjes-navy);
}

/* --------------------------------------------------------------------------
   4. NAVIGASI UTAMA
   -------------------------------------------------------------------------- */
.pkp_navigation_primary_row {
  border-top: 0;
  border-bottom: 1px solid var(--line);
  margin-top: 10px;
}

.pkp_navigation_primary_wrapper { padding: 0; }

#navigationPrimary > li > a,
.pkp_navigation_primary > li > a {
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 14px 16px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  position: relative;
}

#navigationPrimary > li > a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s ease;
}

#navigationPrimary > li > a:hover,
#navigationPrimary > li > a:focus {
  color: var(--wjes-red);
  background: transparent;
  text-decoration: none;
}

#navigationPrimary > li > a:hover::after,
#navigationPrimary > li > a:focus::after,
#navigationPrimary > li.current > a::after,
#navigationPrimary > li.in_focus > a::after { transform: scaleX(1); }

#navigationPrimary > li.current > a { color: var(--wjes-red); }

/* Dropdown menu */
#navigationPrimary li ul {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 6px;
  min-width: 220px;
}

#navigationPrimary li ul li a {
  border-radius: 6px;
  padding: 9px 12px;
  font-size: .92rem;
  color: var(--ink-soft);
}

#navigationPrimary li ul li a:hover {
  background: var(--surface-tint);
  color: var(--wjes-red);
  text-decoration: none;
}

/* Navigasi user (login / profil) */
.pkp_navigation_user > li > a {
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 6px 12px;
  border-radius: 999px;
}

.pkp_navigation_user > li > a:hover {
  color: var(--wjes-red);
  background: var(--surface-tint);
  text-decoration: none;
}

/* Tombol pencarian di navbar */
.pkp_search a,
.pkp_navigation_search_wrapper a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink-soft);
  padding: 12px 14px;
}

.pkp_search a:hover { color: var(--wjes-red); text-decoration: none; }

/* Tombol hamburger (mobile) — hanya kontainer yang di-style,
   ikon garis-garisnya biarkan bawaan tema supaya tidak rusak */
.pkp_site_nav_toggle {
  background: var(--surface-tint) !important;
  border: 1px solid rgba(192, 17, 63, .22) !important;
  border-radius: 10px !important;
  box-shadow: var(--shadow-xs) !important;
}

/* --------------------------------------------------------------------------
   5. LAYOUT KONTEN
   -------------------------------------------------------------------------- */
.pkp_structure_content { padding-top: 34px !important; }

.pkp_structure_main {
  padding-bottom: 60px !important;
}

/* Anchor "skip to content" jangan bikin celah kosong */
.pkp_structure_main > a#pkp_content_main { display: block; height: 0; }

.pkp_structure_main > .page,
.pkp_structure_main > .page_index_journal,
.pkp_structure_main > .page_issue,
.pkp_structure_main > .page_article {
  background: transparent;
}

/* Breadcrumb */
.cmp_breadcrumbs {
  font-size: .85rem;
  color: var(--ink-muted);
  background: transparent;
  padding: 0 0 14px;
  margin: 0 0 18px;
  border-bottom: 1px solid var(--line);
}

.cmp_breadcrumbs a { color: var(--ink-muted); font-weight: 500; }
.cmp_breadcrumbs a:hover { color: var(--wjes-red); }
.cmp_breadcrumbs .current { color: var(--ink); font-weight: 600; }

/* Kartu generik untuk blok konten halaman */
.pkp_structure_main .page > h1:first-child { margin-top: 0; }

/* --------------------------------------------------------------------------
   6. HOMEPAGE
   -------------------------------------------------------------------------- */
.page_index_journal > section { margin-bottom: 30px; }

/* --- Blok "About the Journal" jadi kartu hero --- */
.page_index_journal .homepage_about,
.page_index_journal .about_journal {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 34px 34px 30px;
  overflow: hidden;
}

.page_index_journal .homepage_about::before,
.page_index_journal .about_journal::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--grad-brand);
}

.page_index_journal .homepage_about h2,
.page_index_journal .about_journal h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--wjes-navy);
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.page_index_journal .homepage_about p,
.page_index_journal .about_journal p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.85;
  text-align: justify;
  hyphens: auto;
}

.page_index_journal .homepage_about p:last-child { margin-bottom: 0; }

/* Judul section homepage lainnya (kecuali kartu About yang sudah punya gaya sendiri) */
.page_index_journal > section:not(.homepage_about):not(.about_journal) > h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--wjes-navy);
  margin: 0 0 18px;
  padding-left: 14px;
  border-left: 5px solid var(--wjes-red);
  line-height: 1.35;
}

/* --- Pengumuman --- */
.cmp_announcements,
.page_index_journal .announcements { padding: 0; }

.cmp_announcements .obj_announcement_summary,
.cmp_announcements li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--wjes-amber);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  padding: 20px 24px;
  margin-bottom: 14px;
  list-style: none;
}

.cmp_announcements .obj_announcement_summary h3 { margin-top: 0; }
.cmp_announcements .obj_announcement_summary .date { color: var(--ink-muted); font-size: .85rem; }

/* --- Terbitan terkini di homepage --- */
.page_index_journal .current_issue { }

.page_index_journal .current_issue_title {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--wjes-navy);
  font-size: 1.05rem;
  background: var(--surface-tint);
  border: 1px solid rgba(192, 17, 63, .14);
  border-radius: 999px;
  display: inline-block;
  padding: 7px 18px;
  margin-bottom: 18px;
}

/* --- Konten tambahan homepage --- */
.page_index_journal .additional_content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px 30px;
}

.page_index_journal .additional_content img { border-radius: var(--radius); }

/* --------------------------------------------------------------------------
   7. SIDEBAR
   -------------------------------------------------------------------------- */
.pkp_structure_sidebar { padding-bottom: 60px; }

.pkp_block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  padding: 20px 22px;
  margin-bottom: 22px;
  overflow: hidden;
}

.pkp_block .title {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--wjes-red);
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line-soft);
}

.pkp_block .content { font-size: .95rem; color: var(--ink-soft); }

.pkp_block ul { list-style: none; margin: 0; padding: 0; }

.pkp_block ul li { margin: 0; border-bottom: 1px solid var(--line-soft); }
.pkp_block ul li:last-child { border-bottom: 0; }

/* Custom block sering menaruh tiap tautan di dalam <p> — samakan gayanya */
.pkp_block .content p { margin: 0; }
.pkp_block .content p:not(:last-child) > a { border-bottom: 1px solid var(--line-soft); }

.pkp_block ul li a,
.pkp_block .content > a,
.pkp_block .content p > a {
  display: block;
  padding: 11px 0 11px 18px;
  position: relative;
  font-weight: 500;
  color: var(--ink-soft);
  font-size: .95rem;
  transition: padding .18s ease, color .18s ease;
}

.pkp_block ul li a::before,
.pkp_block .content > a::before,
.pkp_block .content p > a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--wjes-red);
  opacity: .35;
  transition: opacity .18s ease, transform .18s ease;
}

.pkp_block ul li a:hover,
.pkp_block .content > a:hover,
.pkp_block .content p > a:hover {
  color: var(--wjes-red);
  text-decoration: none;
  padding-left: 22px;
}

.pkp_block ul li a:hover::before,
.pkp_block .content > a:hover::before,
.pkp_block .content p > a:hover::before { opacity: 1; transform: scale(1.15); }

.pkp_block img { border-radius: var(--radius-sm); display: block; }

/* Blok cover terbitan di sidebar */
.pkp_block.block_custom img { margin: 0 auto; }

/* Kotak pencarian sidebar */
.pkp_block input[type="text"],
.pkp_block input[type="search"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: .92rem;
}

/* --------------------------------------------------------------------------
   8. TOMBOL
   -------------------------------------------------------------------------- */
.cmp_button,
.cmp_button_wire,
.pkp_button,
.btn-primary,
input[type="submit"],
button[type="submit"],
.obj_galley_link {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff !important;
  background: var(--wjes-red);
  background-image: linear-gradient(135deg, var(--wjes-red) 0%, var(--wjes-red-soft) 100%);
  border: 0;
  border-radius: 999px;
  padding: 11px 22px;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(192, 17, 63, .22);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.cmp_button:hover,
.pkp_button:hover,
.btn-primary:hover,
input[type="submit"]:hover,
button[type="submit"]:hover,
.obj_galley_link:hover,
.cmp_button:focus,
.obj_galley_link:focus {
  filter: saturate(1.08) brightness(1.03);
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand);
  color: #fff !important;
}

.cmp_button:active,
.obj_galley_link:active { transform: translateY(0); }

/* Tombol sekunder / outline */
.cmp_button_wire,
.pkp_button_offset {
  background: transparent !important;
  background-image: none !important;
  color: var(--wjes-red) !important;
  border: 2px solid var(--wjes-red);
  box-shadow: none;
}

.cmp_button_wire:hover {
  background: var(--wjes-red) !important;
  color: #fff !important;
}

/* Galley PDF di daftar artikel */
.obj_galley_link {
  font-size: .8rem;
  padding: 7px 16px;
  margin: 0 6px 6px 0;
}

/* --------------------------------------------------------------------------
   9. DAFTAR ISI TERBITAN & RINGKASAN ARTIKEL
   -------------------------------------------------------------------------- */
.obj_issue_toc .heading,
.obj_issue_toc > h2 {
  font-family: var(--font-head);
  color: var(--wjes-navy);
}

.obj_issue_toc .cover img,
.obj_issue_toc .cover_image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}

.obj_issue_toc .description { color: var(--ink-soft); }

/* Judul seksi (mis. "Articles") */
.obj_issue_toc .sections > .section > h3,
.obj_issue_toc .section > h2 {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--wjes-red);
  border-bottom: 2px solid var(--line);
  padding-bottom: 10px;
  margin: 34px 0 18px;
}

.obj_issue_toc .sections > .section > ul,
.obj_issue_toc .section > ul { list-style: none; margin: 0; padding: 0; }

/* Kartu artikel */
.obj_article_summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  padding: 22px 24px;
  margin-bottom: 16px;
  list-style: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.obj_article_summary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(192, 17, 63, .25);
}

.obj_article_summary > h3,
.obj_article_summary > .title {
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 8px;
}

.obj_article_summary > h3 a,
.obj_article_summary > .title a { color: var(--wjes-navy); }
.obj_article_summary > h3 a:hover,
.obj_article_summary > .title a:hover { color: var(--wjes-red); text-decoration: none; }

.obj_article_summary .subtitle { color: var(--ink-muted); font-weight: 500; }

.obj_article_summary .meta,
.obj_article_summary .authors {
  font-size: .9rem;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.obj_article_summary .pages,
.obj_article_summary .published {
  font-size: .82rem;
  color: var(--ink-muted);
}

.obj_article_summary .galleys_links { margin: 12px 0 0; padding: 0; list-style: none; }
.obj_article_summary .galleys_links li { display: inline-block; margin: 0; }

/* Cover artikel di daftar */
.obj_article_summary .cover img { border-radius: var(--radius-sm); box-shadow: var(--shadow-xs); }

/* --------------------------------------------------------------------------
   10. HALAMAN ARSIP
   -------------------------------------------------------------------------- */
.obj_issue_summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  padding: 20px 22px;
  margin-bottom: 16px;
  list-style: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.obj_issue_summary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.obj_issue_summary .title {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--wjes-navy);
  font-size: 1.05rem;
}

.obj_issue_summary .title:hover { color: var(--wjes-red); text-decoration: none; }
.obj_issue_summary .series,
.obj_issue_summary .description { color: var(--ink-muted); font-size: .9rem; }
.obj_issue_summary .cover img { border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }

/* --------------------------------------------------------------------------
   11. HALAMAN ARTIKEL
   -------------------------------------------------------------------------- */
.page_article .page_title,
.page_article h1 {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--wjes-navy);
  line-height: 1.32;
}

.page_article .subtitle { color: var(--ink-muted); font-weight: 500; }

.page_article .main_entry,
.page_article .entry_details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  padding: 26px 28px;
  margin-bottom: 22px;
}

.page_article .main_entry .authors,
.page_article .item.authors {
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 16px;
  margin-bottom: 18px;
}

.page_article .item .label,
.main_entry .item .label,
.entry_details .item .label {
  font-family: var(--font-head);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--wjes-red);
  margin-bottom: 8px;
}

.page_article .item .value { color: var(--ink-soft); }

.page_article .abstract { line-height: 1.85; color: var(--ink-soft); text-align: justify; }

.entry_details .item.cover_image img { border-radius: var(--radius); box-shadow: var(--shadow-sm); }

.entry_details .item.galleys ul { list-style: none; margin: 0; padding: 0; }
.entry_details .item.galleys li { margin-bottom: 8px; }
.entry_details .item.galleys .obj_galley_link { display: block; font-size: .9rem; padding: 12px 18px; }

.entry_details .item.doi .value a { word-break: break-all; }

/* Blok sitasi */
.item.citation_display,
.citation_formats {
  background: var(--surface-tint) !important;
  border: 1px solid rgba(192, 17, 63, .12);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

/* Referensi */
.references .value p,
.item.references p {
  padding-left: 1.4em;
  text-indent: -1.4em;
  font-size: .93rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   12. FORM, TABEL, NOTIFIKASI, PAGINASI
   -------------------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="number"],
select,
textarea {
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  max-width: 100%;
  box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
select:focus,
textarea:focus {
  border-color: var(--wjes-red);
  box-shadow: 0 0 0 3px rgba(192, 17, 63, .12);
  outline: none;
}

label { font-weight: 600; color: var(--ink); }

/* Tabel responsif */
.pkp_structure_main table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: .93rem;
  margin-bottom: 1.5rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pkp_structure_main table th {
  background: var(--surface-tint);
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--wjes-navy);
  text-align: left;
  padding: 12px 14px;
  border-bottom: 2px solid var(--line);
}

.pkp_structure_main table td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); }
.pkp_structure_main table tr:last-child td { border-bottom: 0; }

/* Notifikasi */
.cmp_notification {
  border: 1px solid var(--line);
  border-left: 4px solid var(--wjes-amber);
  background: #fffaf0;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  color: var(--ink-soft);
  box-shadow: var(--shadow-xs);
}

.cmp_notification.warning { border-left-color: var(--wjes-amber); }
.cmp_notification.error { border-left-color: var(--wjes-red); background: #fff4f6; }
.cmp_notification.success { border-left-color: #17a673; background: #f2fbf7; }

/* Paginasi */
.cmp_pagination { margin: 28px 0; font-size: .92rem; color: var(--ink-muted); }

.cmp_pagination a {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-weight: 600;
  color: var(--ink-soft);
}

.cmp_pagination a:hover {
  background: var(--wjes-red);
  border-color: var(--wjes-red);
  color: #fff;
  text-decoration: none;
}

/* Halaman pencarian */
.cmp_form,
.search_results_wrapper .search_form,
.page_search .search_form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-xs);
}

/* Blok kutipan */
blockquote {
  border-left: 4px solid var(--wjes-orange);
  background: var(--surface-tint);
  margin: 1.4rem 0;
  padding: 14px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   13. FOOTER
   -------------------------------------------------------------------------- */
.pkp_structure_footer_wrapper {
  background: var(--wjes-navy);
  background-image: linear-gradient(160deg, #0b2447 0%, #12172e 55%, #3d0d20 100%);
  color: rgba(255, 255, 255, .8);
  border-top: 4px solid transparent;
  border-image: var(--grad-brand) 1;
  margin-top: 0;
}

.pkp_structure_footer { padding: 42px 0 26px; }

.pkp_footer_content { color: rgba(255, 255, 255, .82); font-size: .93rem; line-height: 1.75; }
.pkp_footer_content p:last-child { margin-bottom: 0; }
.pkp_footer_content a { color: #ffc7a6; font-weight: 600; }
.pkp_footer_content a:hover { color: #fff; }
.pkp_footer_content h1, .pkp_footer_content h2, .pkp_footer_content h3, .pkp_footer_content h4 { color: #fff; }
.pkp_footer_content img { max-width: 100%; height: auto; }

.pkp_brand_footer {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 20px;
  margin-top: 22px;
  opacity: .75;
}

.pkp_brand_footer a { color: rgba(255, 255, 255, .85); }

/* Logo OJS/PKP aslinya gelap — dibalik agar terbaca di footer gelap */
.pkp_brand_footer img {
  max-width: 130px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: .55;
  transition: opacity .18s ease;
}

.pkp_brand_footer a:hover img { opacity: .9; }

/* --------------------------------------------------------------------------
   14. RESPONSIF
   -------------------------------------------------------------------------- */

/* Layar besar — jaga lebar baca tetap nyaman */
@media (min-width: 1400px) {
  .pkp_head_wrapper,
  .pkp_structure_content,
  .pkp_structure_footer { max-width: 1280px; margin-left: auto; margin-right: auto; }
}

/* Tablet & bawah (breakpoint default theme OJS) */
@media (max-width: 991px) {
  body { font-size: 15.5px; }

  /* Tema default OJS meng-absolute-kan .pkp_site_name di mobile sehingga banner
     menimpa konten. Dikembalikan ke alur normal + beri ruang tombol menu. */
  .pkp_head_wrapper { padding-top: 10px !important; }

  .pkp_site_name_wrapper {
    height: auto !important;
    min-height: 0 !important;
    padding-top: 50px !important;
    position: relative !important;
  }

  .pkp_site_name {
    position: static !important;
    width: 100% !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .pkp_site_nav_toggle {
    position: absolute !important;
    top: 4px !important;
    left: 0 !important;
    width: 42px !important;
    height: 38px !important;
  }

  .pkp_site_name .is_img img { border-radius: var(--radius); }

  .pkp_site_name::after { margin-top: 12px; }

  .pkp_navigation_primary_row { margin-top: 6px; }

  /* Menu mobile: hanya warna & jarak, jangan sentuh display agar toggle tetap jalan */
  #navigationPrimary > li > a,
  .pkp_navigation_user > li > a {
    padding: 13px 16px;
    border-radius: var(--radius-sm);
  }

  #navigationPrimary > li > a::after { display: none; }

  #navigationPrimary > li > a:hover { background: var(--surface-tint); }

  .pkp_structure_content { padding-top: 22px !important; }

  .pkp_structure_main,
  .pkp_structure_sidebar {
    float: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .pkp_structure_sidebar { margin-top: 8px; }

  .page_index_journal .homepage_about,
  .page_index_journal .about_journal { padding: 26px 22px; }

  .page_article .main_entry,
  .page_article .entry_details { padding: 22px 20px; }
}

/* Ponsel */
@media (max-width: 640px) {
  body { font-size: 15px; line-height: 1.68; }

  .pkp_structure_main h1 { font-size: 1.45rem; }
  .pkp_structure_main h2 { font-size: 1.22rem; }

  .pkp_site_name .is_img img { border-radius: 10px; box-shadow: var(--shadow-sm); }

  .page_index_journal > section { margin-bottom: 22px; }

  .page_index_journal .homepage_about,
  .page_index_journal .about_journal,
  .page_index_journal .additional_content {
    padding: 22px 18px;
    border-radius: var(--radius);
  }

  .page_index_journal .homepage_about h2 { font-size: 1.25rem; }

  .page_index_journal .homepage_about p,
  .page_index_journal .about_journal p,
  .page_article .abstract { text-align: left; }

  .pkp_block { padding: 18px 18px; border-radius: var(--radius); }

  .obj_article_summary,
  .obj_issue_summary { padding: 18px 18px; }

  .obj_article_summary > h3,
  .obj_article_summary > .title { font-size: 1rem; }

  .cmp_button,
  .pkp_button,
  input[type="submit"],
  button[type="submit"] { width: auto; padding: 11px 20px; }

  .entry_details .item.galleys .obj_galley_link { width: 100%; }

  .pkp_structure_footer { padding: 32px 0 22px; }

  .cmp_pagination a { padding: 7px 11px; margin-bottom: 6px; }
}

/* Ponsel kecil */
@media (max-width: 400px) {
  .page_index_journal .homepage_about,
  .page_index_journal .about_journal { padding: 20px 15px; }
  .pkp_block { padding: 16px 15px; }
  .obj_galley_link { display: block; text-align: center; }
}

/* --------------------------------------------------------------------------
   15. AKSESIBILITAS & CETAK
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .obj_article_summary:hover,
  .obj_issue_summary:hover,
  .cmp_button:hover { transform: none !important; }
}

::selection { background: rgba(192, 17, 63, .16); color: var(--ink); }

@media print {
  .pkp_structure_head,
  .pkp_structure_sidebar,
  .pkp_structure_footer_wrapper,
  .pkp_navigation_primary_row { display: none !important; }

  .pkp_structure_main { float: none !important; width: 100% !important; padding: 0 !important; }

  body { background: #fff; font-size: 12pt; }

  .obj_article_summary,
  .page_article .main_entry,
  .page_article .entry_details { box-shadow: none; border: 1px solid #ccc; }
}
