/* 1. Reset & Background Utama */
html {
  background: none !important;
}

body {
  font-family: "Georgia", serif;
  background-color: #dedede;
  background-image: url("https://www.transparenttextures.com/patterns/arabesque.png");
  color: #333;
  margin: 0;
  padding: 0;
}

.title a {
  color: #ae9159;
}

.title a:hover {
  color: #dfb560;
}

.obj_galley_link {
  display: inline-block;
  padding: 0 1em;
  background: #fff;
  border: 1px solid #ae9159 !important;
  border-radius: 3px;
  font-size: 1rem;
  line-height: calc(2.143rem - 2px);
  color: #ae9159 !important;
  text-decoration: none;
}

.obj_galley_link:hover {
  background-color: #ae9159;
  color: #fff !important;
}

.pkp_navigation_primary > li:last-child a {
  margin-right: 0px;
}

.pkp_navigation_primary > li > a {
  color: #ae9159 !important;
  font-weight: bold;
  font-size: 0.9rem;
}

.pkp_nav_list ul a {
  color: #ae9159;
}

.pkp_navigation_user a {
  color: #fff;
}

.pkp_structure_head {
  background-color: #ae9159;
  padding-top: 10px;
}

/* 3. Navigasi Menu Utama */
.pkp_navigation_primary_wrapper {
  border-top: 1px solid #eee;
  border-bottom: 2px solid #ae9159;
}

.pkp_navigation_primary > li > a {
  color: #fcffff !important;
  font-weight: bold;
  font-size: 0.9rem;
}

.cmp_breadcrumbs a {
  display: inline-block;
  text-decoration: none;
  color: #ae9159;
}

.policies-container a {
  display: block;
  text-decoration: none;
  color: #ae9159;
  padding-top: 2px;
}

.policies-container a:hover {
  color: #dfb560;
}

.pkp_structure_sidebar {
  width: 25% !important;
  padding: 0 10px !important;
}

.pkp_block {
  background: #ffffff;
  border: 1px solid #e1e8e8;
  border-radius: 5px;
  padding: 10px 15px !important;
  margin-bottom: 15px !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.pkp_block .title {
  font-family: "Arial", sans-serif;
  font-size: 0.85rem !important;
  color: #ae9159;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid #ae9159;
  margin-bottom: 10px !important;
  padding-bottom: 5px;
}

/* Memperkecil gambar di sidebar agar tidak meluber */
.pkp_block img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* 5. Konten Utama */
.pkp_structure_main {
  width: 75% !important;
  padding-right: 20px !important;
}

.obj_article_summary {
  border-left: 4px solid #ae9159;
  background: #fff;
  padding: 15px !important;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.obj_issue_summary > h2 > a {
  color: #ae9159;
  text-decoration: none;
}

.read_more {
  color: #ae9159 !important;
}

.pkp_structure_page {
  margin-top: 0;
  margin-bottom: 0;
}

.pkp_navigation_primary_row {
  background: #ae9159;
}

/* 6. Footer Modern */
.pkp_structure_footer_wrapper {
  background: #ae9159 !important;
  color: #fff !important;
  margin-top: 40px;
}

.pkp_structure_footer_wrapper a {
  color: #eee477 !important;
}

.pkp_navigation_search_wrapper a {
  padding-bottom: 6px;
  border-bottom-width: 4px;
  color: #e1e8e8;
}

.pkp_navigation_search_wrapper a:hover {
  padding-bottom: 6px;
  border-bottom-width: 4px;
  color: #dfb560;
}

/* --- STYLING EDITOR TEAM (MODERN CARD) --- */
.editor-card {
  display: flex;
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid #e1e8e8;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.editor-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.editor-photo {
  width: 120px !important;
  height: 150px !important;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 20px;
  border: 2px solid #ae9159;
}

.editor-info {
  flex: 1;
}

.editor-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: #ae9159;
  margin-bottom: 5px;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

.editor-id {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 2px;
  font-family: Arial, sans-serif;
}

.editor-affiliation {
  font-size: 0.9rem;
  font-style: italic;
  color: #666;
  margin-top: 8px;
  line-height: 1.3;
}

h2 {
  color: #ae9159;
  font-size: 1.4rem;
  border-left: 5px solid #ae9159;
  padding-left: 15px;
  margin-top: 40px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.section-divider {
  border: 0;
  height: 1px;
  background: #eee;
  margin: 30px 0;
}

/* --- STYLE UNTUK EDITOR & REVIEWER CARD --- */
.reviewer-container,
.editor-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.reviewer-card,
.editor-card {
  display: flex;
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid #e1e8e8;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.reviewer-photo,
.editor-photo {
  width: 100px !important;
  height: 130px !important;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 15px;
  border: 1px solid #ae9159;
  flex-shrink: 0;
}

.reviewer-info,
.editor-info {
  flex: 1;
}

.reviewer-name,
.editor-name {
  font-size: 1.1rem;
  font-weight: bold;
  color: #ae9159;
  margin-bottom: 5px;
  line-height: 1.2;
}

.reviewer-id,
.editor-id {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 1px;
  font-family: Arial, sans-serif;
}

.reviewer-id a,
.editor-id a {
  color: #ae9159;
  text-decoration: none;
}

.reviewer-affiliation,
.editor-affiliation {
  font-size: 0.85rem;
  font-style: italic;
  color: #444;
  margin-top: 5px;
  line-height: 1.3;
}

h2 {
  color: #ae9159;
  border-left: 5px solid #ae9159;
  padding-left: 10px;
  margin: 30px 0 15px 0;
}

.pkp_brand_footer {
  display: none !important;
}

/* =======================================================
   8. THE ULTIMATE SIDEBAR CLEAN-UP (DIPERBARUI UNTUK 2 KOLOM)
   ======================================================= */

/* Merapikan teks dan wadah utama */
.pkp_structure_sidebar .pkp_block .content {
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Aturan Otomatis 2 Kolom (Bekerja untuk Tools, Template, Association di semua layar) */
.pkp_structure_sidebar .pkp_block .content img {
  width: 45% !important;
  max-width: 100%;
  height: auto;
  display: inline-block !important;
  margin: 8px 1.5% !important;
  vertical-align: middle;
  border-radius: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Pengecualian Pintar: Jika gambar sendirian, tampil penuh 1 kolom! */
.pkp_structure_sidebar .pkp_block .content a:only-child img,
.pkp_structure_sidebar .pkp_block .content img:only-child {
  width: auto !important;
  max-width: 80% !important;
  display: block !important;
  margin: 15px auto !important;
}

/* Efek Animasi Saat Disentuh (Hover) */
.pkp_structure_sidebar .pkp_block .content a:hover img {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 15px rgba(120, 19, 21, 0.2);
}

/* =======================================================
   MEDIA QUERIES: RESPONSIVE MASTER (TABLET & MOBILE)
   ======================================================= */

/* TABLET (641px - 1007px) */
@media (max-width: 1007px) {
  body {
    background-color: #ffffff;
    background-image: none;
  }

  /* Layout utama & Sidebar jadi 100% */
  .pkp_structure_main,
  .pkp_structure_sidebar {
    width: 100% !important;
    float: none !important;
    padding: 15px !important;
  }

  /* Header responsif */
  .pkp_structure_head {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
  }
  .pkp_head_wrapper {
    display: flex !important;
    align-items: center !important;
  }
  .is_img .pkp_site_name img {
    max-height: 70px !important;
    width: auto;
    margin: 0 !important;
  }
  .pkp_site_nav_toggle {
    margin: 0 15px 0 0 !important;
    transform: none !important;
  }

  /* Menu Navigation Fix */
  .pkp_nav_list ul {
    display: none;
    padding: 10px 0 10px 20px !important;
    margin: 0 !important;
    border-top: 1px solid #eee;
    background-color: #fff;
  }
  .pkp_nav_list ul a {
    color: #ae9159;
  }
  .pkp_nav_list li:hover > ul,
  .pkp_nav_list li.unfolded > ul {
    display: block;
  }
  .pkp_navigation_primary > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* SIDEBAR DI TABLET JADI 3 KOLOM (GRID) */
  .pkp_structure_sidebar {
    display: grid !important;
    grid-template-columns: repeat(
      3,
      1fr
    ) !important; /* Diubah menjadi 3 kolom untuk Tablet */
    gap: 20px;
    margin-top: 20px;
  }
  .pkp_structure_sidebar .pkp_block {
    margin-bottom: 0 !important;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  .pkp_structure_sidebar .pkp_block .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Editor/Reviewer Layout Fix Tablet */
  .reviewer-container,
  .editor-container {
    grid-template-columns: 1fr;
  }
}

/* MOBILE (< 640px) */
@media (max-width: 640px) {
  /* SIDEBAR DI HANDPHONE JADI 2 KOLOM (GRID) */
  .pkp_structure_sidebar {
    grid-template-columns: repeat(
      2,
      1fr
    ) !important; /* Diubah menjadi 2 kolom untuk HP */
  }

  /* Editor/Reviewer Card responsif max */
  .editor-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .editor-photo {
    margin-right: 0;
    margin-bottom: 15px;
  }
  .reviewer-card,
  .editor-card {
    padding: 10px;
  }
  .reviewer-photo,
  .editor-photo {
    width: 80px !important;
    height: 110px !important;
  }
}
