/* =================================================================== */
/* 1) DEKLARASIKAN SEMUA GAYA FONT                                     */
/* =================================================================== */

/* Normal (Roman) */
@font-face {
  font-family: "Palatino Linotype";
  src: url("/public/fonts/palatino-roman.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

/* Italic */
@font-face {
  font-family: "Palatino Linotype";
  src: url("/public/fonts/palatino-italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
}

/* Bold */
@font-face {
  font-family: "Palatino Linotype";
  src: url("/public/fonts/palatino-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

/* Bold Italic */
@font-face {
  font-family: "Palatino Linotype";
  src: url("/public/fonts/palatino-bold_italic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
}

/* =================================================================== */
/* 2) TERAPKAN FONT KE ELEMEN OJS                                       */
/* =================================================================== */

body,
p,
div {
  font-family: "Palatino Linotype", Georgia, serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Palatino Linotype", Georgia, serif;
}

strong,
b {
  font-weight: 700;
}
em,
i {
  font-style: italic;
}

/* =================================================================== */
/* 3) HEADER & STRUKTUR                                                */
/* =================================================================== */

.pkp_site_name {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.pkp_site_name > a {
  padding-top: 0;
  padding-bottom: 0;
}
.pkp_site_name .is_img img {
  max-height: 200px !important;
  width: auto;
}

.pkp_site_name_wrapper {
  padding-left: 0;
  padding-right: 0;
}

.pkp_navigation_user_wrapper {
  top: 0;
  right: 0;
  padding-right: 30px;
}

.pkp_structure_page {
  margin-top: 20px !important;
  margin-bottom: 20px !important;
  padding-bottom: 20px !important;
}

/* =================================================================== */
/* 4) FOOTER KIRI–KANAN (FLEX)                                         */
/* =================================================================== */

.pkp_structure_footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.pkp_structure_footer .pkp_footer_content {
  width: 75%;
  margin-bottom: 0;
}

.pkp_structure_footer .pkp_brand_footer {
  width: auto;
  text-align: right;
  margin-top: 0;
}

/* Responsif footer */
@media (max-width: 767px) {
  .pkp_structure_footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .pkp_structure_footer .pkp_footer_content,
  .pkp_structure_footer .pkp_brand_footer {
    width: 100%;
    text-align: left;
    margin-bottom: 15px;
  }
}

/* =================================================================== */
/* 5) EFEK HOVER NAVIGASI                                              */
/* =================================================================== */

.pkp_navigation_primary a:hover,
.pkp_navigation_user a:hover,
.pkp_navigation_primary li.is_current a,
.pkp_navigation_user li.is_current a {
  background-color: transparent !important;
  color: #dab77c !important;
}

/* =================================================================== */
/* 6) TABEL INFORMASI JURNAL (FOOTER)                                  */
/* =================================================================== */

.journal-info-container {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  width: 100%;
}

.journal-cover {
  flex: 0 0 150px;
  margin-right: 20px;
}
.journal-cover img {
  width: 150px;
  height: auto;
}

.journal-info-table {
  flex: 1;
  border-collapse: collapse;
  width: auto;
}
.journal-info-table td {
  padding: 4px 8px;
  border: none;
  vertical-align: top;
}
.journal-info-table td:first-child {
  width: 120px;
  font-weight: 500;
}

/* Responsif tabel informasi */
@media (max-width: 767px) {
  .journal-info-container {
    flex-direction: column;
    align-items: center;
  }
  .journal-cover {
    margin-right: 0;
    margin-bottom: 20px;
  }
  .journal-info-table,
  .journal-info-table tbody,
  .journal-info-table tr,
  .journal-info-table td {
    display: block;
    width: 100%;
    text-align: center;
  }
  .journal-info-table tr {
    margin-bottom: 10px;
  }
  .journal-info-table td:first-child {
    font-weight: 700;
    width: 100%;
  }
  .journal-info-table td:last-child {
    padding-bottom: 10px;
  }
}

/* =================================================================== */
/* 7) PARAGRAF WAJIB JUSTIFY (GLOBAL)                                  */
/* =================================================================== */

p {
  text-align: justify !important;
}

/* (Opsional) pastikan beberapa area konten OJS ikut terjustifikasi */
.obj_article_details p,
.article-summary p,
.page p,
.cmp_announcements p,
.cmp_article_list p,
.pkp_page_about p,
.pkp_page_issue p,
.pkp_page_index p {
  text-align: justify !important;
}

/* ========= JIEDU Intro Grid ========= */
.jiedu-grid {
  display: grid;
  gap: 16px;
  align-items: start;
  margin: 16px 0 24px;
}

/* 2 kolom pada layar ≥768px (tablet/desktop) */
@media (min-width: 768px) {
  .jiedu-grid {
    grid-template-columns: 220px 1fr; /* kiri: gambar | kanan: tabel */
    gap: 24px;
  }
}

/* Kolom kiri: gambar cover */
.jiedu-grid .jiedu-cover img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Kolom kanan: tabel metadata jurnal */
.jiedu-grid .josten-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.5;
}

.jiedu-grid .josten-table td {
  padding: 8px 10px;
  vertical-align: top;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Kolom label sedikit lebih sempit & warna halus */
.jiedu-grid .josten-table td:first-child {
  white-space: nowrap;
  color: #475569; /* slate-600 */
  font-weight: 500;
  width: 140px;
}

/* Kolom pemisah ":" */
.jiedu-grid .josten-table td:nth-child(2) {
  width: 12px;
  color: #94a3b8; /* slate-400 */
}

/* Dark mode (OJS pakai class .dark di <html> atau <body>) */
.dark .jiedu-grid .josten-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.dark .jiedu-grid .josten-table td:first-child {
  color: #cbd5e1;
} /* slate-300 */
.dark .jiedu-grid .josten-table td:nth-child(2) {
  color: #64748b;
} /* slate-500 */

/* Paragraf setelah blok grid → rata kiri-kanan */
.jiedu-grid ~ p {
  text-align: justify;
  text-justify: inter-word;
  margin: 12px 0;
}

/* Opsi: rapikan strong di paragraf */
.jiedu-grid ~ p strong {
  font-weight: 700;
}

/* Responsif kecil: beri jarak bawah gambar saat stack */
@media (max-width: 767.98px) {
  .jiedu-grid .jiedu-cover {
    margin-bottom: 8px;
  }
}

/***** ===============================
   SIDEBAR (Manuscript Theme)
   Fokus: .pkp_sidebar, .pkp_block, .vertical-menu, .editorial-list
   ================================== *****/

/* Container sidebar: spasi & stacking rapi */
.pkp_sidebar {
  display: grid;
  gap: 16px;
}

/* Kartu blok sidebar */
.pkp_block {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* Header judul blok */
.pkp_block .title {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 13px;
  line-height: 1.3;
  color: #0f172a; /* slate-900 */
  background: rgba(218, 183, 124, 0.35);
  border-bottom: 1px solid rgba(255, 245, 228, 0.5);
}

/* Isi blok */
.pkp_block .content,
.pkp_block .block_content,
.pkp_block > div:not(.title) {
  padding: 12px 14px 14px;
}

/* List standar dalam blok */
.pkp_block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pkp_block ul li + li {
  margin-top: 10px;
}
.pkp_block a {
  text-decoration: none;
  color: #0f172a;
}
.pkp_block a:hover {
  text-decoration: underline;
}

/* ================================
   Vertical Menu (Quick Links)
   ================================ */
.pkp_block .vertical-menu {
  width: 100%;
}

.pkp_block .vertical-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff5e4; /* dasar */
  color: #0f172a; /* teks */
  border-left: 3px solid #e8d2ac;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.08s ease;
  font-size: 14px;
  line-height: 1.4;
}

.pkp_block .vertical-menu a:hover {
  background: #dab77c;
  border-left-color: #dab77c;
  color: #0f172a;
}

.pkp_block .vertical-menu a.active {
  background: #dab77c;
  border-left-color: #dab77c;
  color: #0f172a;
  font-weight: 600;
}

/* Hilangkan garis terakhir biar bersih */
.pkp_block .vertical-menu a:last-child {
  border-bottom: none;
}

/* ================================
   Editorial Team (Profile list)
   ================================ */
.pkp_block .editorial-list {
  display: grid;
  gap: 12px;
}

.pkp_block .editorial-list li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Kartu tiap anggota */
.pkp_block .team-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  background: #ffffff;
}

.pkp_block .team-card .imgthumb {
  width: 72px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.pkp_block .team-card .imgthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pkp_block .team-card .team-content {
  margin: 0; /* override margin-left lama */
  min-height: auto;
}

.pkp_block .team-card .name {
  font-weight: 700;
  margin-bottom: 2px;
}
.pkp_block .team-card .role {
  font-size: 13px;
  color: #475569; /* slate-600 */
  margin-bottom: 6px;
}

.pkp_block .team-card .team-aff ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.pkp_block .team-card .team-aff ul li {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  font-size: 13px;
  color: #334155; /* slate-700 */
}
.pkp_block .team-card .team-aff .tm_label {
  width: 84px; /* label rata */
  flex: 0 0 84px;
  color: #64748b; /* slate-500 */
}

/* ================================
   Dark Mode
   ================================ */
.dark .pkp_block {
  background: #0b1220; /* slate-950-ish */
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}
.dark .pkp_block .title {
  color: #e2e8f0; /* slate-200 */
  background: linear-gradient(
    180deg,
    rgba(255, 245, 228, 0.18),
    rgba(255, 245, 228, 0.06)
  );
  border-bottom-color: rgba(255, 245, 228, 0.25);
}
.dark .pkp_block .content,
.dark .pkp_block .block_content,
.dark .pkp_block > div:not(.title) {
  color: #e2e8f0;
}

.dark .pkp_block .vertical-menu a {
  background: #0f172a; /* slate-900 */
  color: #e5e7eb; /* gray-200 */
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
.dark .pkp_block .vertical-menu a:hover {
  background: rgba(218, 183, 124, 0.25);
  border-left-color: #dab77c;
}
.dark .pkp_block .vertical-menu a.active {
  background: rgba(218, 183, 124, 0.35);
  border-left-color: #dab77c;
  color: #f1f5f9;
}

.dark .pkp_block .team-card {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.08);
}
.dark .pkp_block .team-card .role {
  color: #94a3b8;
}
.dark .pkp_block .team-card .team-aff ul li {
  color: #cbd5e1;
}
.dark .pkp_block .team-card .team-aff .tm_label {
  color: #94a3b8;
}

/* ================================
   Optional: Sticky sidebar di desktop
   ================================ */
@media (min-width: 1024px) {
  .pkp_sidebar {
    position: sticky;
    top: 24px;
    align-self: start;
  }
}

/* ================================
   Kompatibilitas: matikan gaya lama
   (hanya saat berada di dalam .pkp_sidebar)
   ================================ */
.pkp_sidebar .editorial-list .img-profile {
  position: static;
  width: auto;
  height: auto;
  border: none;
  padding: 0;
}
.pkp_sidebar .team-content {
  margin-left: 0 !important;
}
