/*! This file is auto-generated */
@charset "UTF-8";
@import "https://fonts.googleapis.com/css2?family=Baloo+Tamma+2&display=swap";
@import 'https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css';

/* ==========================================================
   TATA LETAK: kolom konten utama menempel ke sidebar (desktop)
   Lebar 300px = lebar sidebar; ubah angkanya kalau sidebar
   ingin dibuat lebih lebar atau lebih sempit.
   ========================================================== */
@media (min-width: 992px) {
  .pkp_structure_content {
    display: flex !important;
    align-items: stretch;
  }

  .pkp_structure_main {
    float: none !important;
    flex: 1 1 0% !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    margin-right: 0 !important;
  }

  /* garis vertikal bawaan tema di tepi kanan kolom konten */
  .pkp_structure_main:after {
    display: none !important;
  }

  .pkp_structure_sidebar {
    position: static !important;
    float: none !important;
    flex: 0 0 300px !important;
    width: 300px !important;
    margin-left: 0 !important;
  }
}

/* Semua judul artikel */
.obj_article_summary .title,
.obj_article_summary .title a,
.page_issue .obj_article_summary .title a,
.obj_article_details .page_title,
.obj_article_details h1,
.obj_article_details h1 a,
.current_issue_title,
.current_issue_title a {
  color: #004b9a!important;
  text-decoration: none;
}

/* Membuat semua paragraf dan konten artikel menjadi justified */
.pkp_structure_main p,
.pkp_structure_main div,
.pkp_structure_main span,
.pkp_structure_main li,
.pkp_structure_main td,
.pkp_structure_main th {
    text-align: justify !important;
}

/* Setiap artikel sebagai box profesional */
.cmp_article_list.articles .obj_article_summary {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  border: 1px solid #004b9a;
  padding: 16px;
  border-radius: 8px;
  background-color: #fafafa;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

/* Khusus untuk isi artikel full text */
.obj_article_details .main_entry,
.page_article .article_details,
.page_issue .issue_description {
    text-align: justify !important;
}
/* Logo tetap proporsional */
.collab-logos img {
  max-width: 60px;
  height: auto;
  display: block;
}

/* Container logo horizontal, jarak lebih rapat */
.collab-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px; /* lebih rapat dari sebelumnya */
  margin-top: 8px;
  background-color: transparent; /* atau bisa pakai #ffffff untuk putih */
}

/* nama penulis pada detail */
.name {
    color: #004b9a;
}

.pkp_block .title {
    display: block;
    padding: 10px;
    text-align: left;
    background-color: #004b9a;
    color: white;
    font-weight: bold;
}

/* Hover untuk efek elegan */
.cmp_article_list.articles .obj_article_summary:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Responsif: satu kolom untuk mobile */
@media (max-width: 768px) {
  .cmp_article_list.articles {
    grid-template-columns: 1fr;
  }
}


/* untuk daftar artikel */
a {
    color: #004b9a;
}

a:hover {
    color: #004b9a;
}

.cmp_button_wire,
.obj_galley_link {
    background: #004b9a;
    border: 1px solid #004b9a;
    color: #fff;
}

.obj_article_summary {
    border: 1px solid #004b9a;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 3px 3px #004b9a;
}

html,body {  
  background-image: url("");  
}

.pkp_structure_content {
  background: #fff;
}

.pkp_site_name > a {padding-top: 0; padding-bottom: 0;}
.pkp_navigation_user_wrapper {top: 0; right: 0; padding-right:30px;}

/* ==== GAMBAR/IKON ==== */
.pkp_block img {
    max-width: 100%;
    display: block;
    margin: 0.5rem auto;
}

/* ==== MAPS, FLAG, STATISTIK ==== */
.flagcounter, .statcounter, .googlemaps {
    background: #f0f0f0;
    border: 1px solid #ccc;
    margin: 0.5rem auto;
    padding: 0.5rem;
    border-radius: 8px;
}

/* ==== SIDEBAR CONTAINER ==== */
.pkp_structure_sidebar {
    background-color: #004b9a;
    padding: 1.5rem;
    border-left: 0; /* sebelumnya ada garis abu-abu; dihapus supaya menempel rapat */
}

/* ==== SETIAP BLOK SIDEBAR ==== */
.pkp_block {
    background-color: #f9f9f9;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease-in-out;
}

.pkp_block:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}
/* Target gambar pertama di dalam additional_content */
.pkp_page_index .additional_content > p:first-child,
.pkp_page_index .additional_content > p:first-child > img {
  margin: 0 !important;
  padding: 0 !important;
}

/* Pastikan gambar tidak punya margin/padding dan tampil blok */
.pkp_page_index .additional_content img {
  display: block;
  margin: 0 auto !important;
  padding: 0 !important;
  width: 60%;
  height: auto;
  max-width: 60%;
  border: none;
}

/* Override default container padding if gambar berada di dalamnya */
.pkp_page_index .additional_content {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
/* Hilangkan margin dan padding hanya untuk paragraf pertama yang memuat gambar */
.pkp_page_index .additional_content > p:first-child {
  margin: 0 !important;
  padding: 0 !important;
}
/* Hilangkan margin/padding hanya pada gambar di paragraf pertama */
.pkp_page_index .additional_content > p:first-child > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 !important;
  padding: 0 !important;
  border: none;
}
.pkp_page_index .additional_content p:first-child {
  margin-left: -15px;
  margin-right: -15px;
}

.pkp_page_index .additional_content p:first-child img {
  width: calc(70% + 30px); /* 15px kiri + 15px kanan */
  max-width: unset;
  height: auto;
  display: block;
}

/* ==========================================================
   TABEL "TENTANG BESTARI"
   Hanya aturan tabel. Aturan global (* dan body) dari file
   terpisah sengaja tidak dibawa supaya tidak menimpa tema OJS.
   ========================================================== */
#tentang { margin-top: 36px; }
#tentang h2 { margin: 0 0 14px; font-size: 22px; color: #0b2e47; }
.table-wrap { overflow-x: auto; }
.table-tentang {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.table-tentang th,
.table-tentang td {
  padding: 10px 14px;
  border: 1px solid #ccd3db;
  vertical-align: top;
  line-height: 1.6;
}
.table-tentang th {
  width: 240px;
  background: #f2f5f9;
  color: #0b2e47;
  font-weight: 700;
}
.table-tentang tr:nth-child(even) td { background: #fafafa; }
.table-tentang a { color: #1a5fb4; }

/* Aturan justify di atas memakai !important, jadi rata kiri
   untuk tabel harus ditegaskan dengan !important juga */
.pkp_structure_main .table-tentang th,
.pkp_structure_main .table-tentang td {
  text-align: left !important;
}

@media (max-width: 680px) {
  .table-tentang th { width: 130px; }
}