/* ===== HEADER ===== */
.pkp_structure_head {
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0 auto;
    max-width: 1200px;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    overflow: visible;
    z-index: 1000;
}

.pkp_site_name .is_img img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    z-index: 1;
}

/* === MENU NAVIGASI === */
.pkp_navigation {
    position: relative;
    z-index: 100;
    display: block;
}

.pkp_navigation_primary li {
    position: relative;
}

.pkp_navigation_primary li ul {
    position: absolute;
    background: white;
    z-index: 200;
    display: none;
}

.pkp_navigation_primary li:hover > ul {
    display: block;
}

/* ===== Layout Utama: header, konten, footer ===== */
.pkp_structure_head,
.pkp_structure_footer {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    border: none;
}

body {
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
}

/* ===== Layout Utama Flexbox (Pengganti Float) ===== */
.pkp_structure_content {
    background-color: #ffffff;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Mengatur Konten Utama dan Sidebar agar sejajar rapi */
.pkp_structure_main {
    flex: 1 1 68%;
    max-width: 68%;
    box-sizing: border-box;
}

.pkp_structure_sidebar {
    flex: 1 1 28%;
    max-width: 28%;
    box-sizing: border-box;
    padding-left: 15px;
}

/* Memastikan Metadata Artikel (OJS 3) Tetap Terbagi 2 Kolom */
.obj_article_details {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.obj_article_details .main_entry {
    flex: 1 1 65%;
    max-width: 65%;
}

.obj_article_details .entry_details {
    flex: 1 1 30%;
    max-width: 30%;
}

/* ===== FORMAT TEKS RATA KIRI-KANAN HALAMAN ARTIKEL ===== */
.obj_article_details .item.abstract,
.obj_article_details .item.references,
.obj_article_details .item.copyright,
.obj_article_details .item.license,
.obj_article_details .item.articles_margin,
.obj_article_details .item.similar_articles,
.citation,
#references,
.references,
#similarArticles {
  text-align: justify !important;
  hyphens: auto !important;
  -webkit-hyphens: auto !important;
  -moz-hyphens: auto !important;
  word-break: break-word !important;
  line-height: 1.6;
}

/* Mengatur paragraf dan list item di dalam elemen artikel */
.obj_article_details .item.license ul li,
.obj_article_details .item.copyright p,
.obj_article_details .item.articles_margin ul li,
.obj_article_details .item.similar_articles ul li,
#similarArticles ul li {
  text-align: justify !important;
  word-break: break-word !important;
}
.pkp_block {
    position: relative;
    margin-bottom: 5px;
    padding-bottom: 5px;
    margin-left: 10px;  
    margin-right: 5px; 
}

.pkp_block .title {
    background-color: #f1f1f1;
    padding: 8px 10px; 
    border-radius: 5px;
    margin-bottom: 8px;
}

.pkp_block.block_language li {
    border-bottom: 1px solid #FF7F00;
    padding-bottom: 5px;
    margin-bottom: 5px;
    list-style: none;
}

.block_custom {
    display: flex;
    flex-direction: column;
    max-width: 500px;
}

.block_custom img:not(#flagcounter) {
    max-width: 100px;
    display: block;
}

#sidebar.block_custom #Supplementary_Application img,
#sidebar.block_custom #Collaboration img {
    display: inline-block;
    width: 60px;
    height: auto;
    margin: 0px;
    border-radius: 1px;
    object-fit: cover;
}

.block_licence {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  text-align: justify;
  word-wrap: break-word;
  hyphens: auto;
  line-height: 1.6;
  max-width: 100%;
  font-size: 85%;
}

.block_licence img {
  height: 160px;
  width: auto;
  margin-right: 0;
}

/* ===== FOOTER ===== */
.pkp_structure_footer_wrapper {
    background: #f0f0f0;
    border-bottom: none;
}

.pkp_footer_content {
    float: left;
    width: 80%;
    padding-top: 10px;
    padding-bottom: 10px;
}

.pkp_footer_content a {
    color: #00ffcc;
}
.pkp_footer_content a:hover {
    color: #ff6600;
}

.pkp_structure_footer {
    background: linear-gradient(to bottom, #005377, #003A58);
    box-shadow: 0px -5px 10px rgba(0, 0, 0, 0.2);
    color: white;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    overflow: hidden;
    padding: 5px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.pkp_brand_footer {
    float: right;
    width: 20%;
    padding-top: 10px;
    padding-bottom: 5px;
}

.pkp_brand_footer img {
    max-width: 80px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.footer-container {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin: 0 auto;
}

.footer-left {
    flex: 10%;
    text-align: left;
    margin: 0 auto;
}

.footer-left img {
    max-width: 80px;
    height: auto;
    margin-left: 0;
}

.footer-center {
    flex: 90%;
    text-align: left;
    margin-left: 5px;
    margin-top: 0;
    padding-top: 0;
}

/* ===== PERBAIKAN RESPONSIVE LAYAR HP & TABLET ===== */

/* Menjaga metadata 2 kolom khusus di layar laptop/desktop */
@media screen and (min-width: 769px) {
  .obj_article_details {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
  }
  .obj_article_details .main_entry {
      flex: 1 1 65%;
      max-width: 65%;
  }
  .obj_article_details .entry_details {
      flex: 1 1 30%;
      max-width: 30%;
  }
}

/* Pengaturan Responsif untuk HP (Termasuk Samsung A57 5G) & Tablet */
@media screen and (max-width: 768px) {
  /* Ubah layout utama & sidebar menjadi 1 kolom menumpuk */
  .pkp_structure_sidebar,
  .pkp_structure_main,
  .pkp_structure_content {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
  }

  /* Ubah metadata artikel menjadi 1 kolom di HP agar mudah dibaca */
  .obj_article_details .main_entry,
  .obj_article_details .entry_details {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .pkp_navigation_primary li ul li a {
    color: #000 !important;
  }

  .pkp_structure_page,
  .pkp_structure_row,
  .pkp_workflow,
  .pkp_page_content {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .pkp_controllers_grid,
  .pkp_grid_container,
  .pkp_manage_submissions,
  .pkp_panel {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    margin: 0 auto !important;
    padding: 5px !important;
  }
}