/* --- CUSTOM THEME: PJBM (Corporate Navy & Pijar Amber) --- */

/* Definisi Variabel Warna */
:root {
  --warna-utama: #002D62;       /* Corporate Navy */
  --warna-aksen: #FF9900;       /* Pijar Amber */
  --warna-bg: #F8F9FA;          /* Cool White */
  --warna-putih: #ffffff;
}

@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

/* Set Background Cool White */
body {
  background-color: var(--warna-bg);
  color: #333;
}

/* Header */
.header {
  background-color: var(--warna-utama);
  border-bottom: 3px solid var(--warna-aksen);
}

@media (max-width: 746px) {
  .header {
    background-color: var(--warna-utama);
    overflow: hidden;
  }

  .journal-logo {
    width: 100%;
  }

  .card-body .row .col-md-4 {
    display: flex;
    justify-content: center;
  }

  .card-body .row .col-md-4 img {
    max-width: 48%;
  }
}

.nav-link {
  color: var(--warna-putih);
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  box-shadow: none;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--warna-aksen);
}

.container-page {
  padding-top: 40px;
  padding-bottom: 70px;
}

/* --- PERBAIKAN JARAK (Agar tidak menutupi gambar) --- */

.additional_content {
  /* GANTI dari -100px menjadi 30px agar turun ke bawah gambar */
  margin-top: 30px; 
}

/* Style Tambahan untuk Card Body agar lebih rapi */
.card-body {
  background-color: var(--warna-putih);
  padding: 30px; /* Memberi ruang di dalam kotak */
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}

.announcements {
  /* GANTI dari -100px menjadi 30px agar sejajar dengan deskripsi jurnal */
  margin: 30px 0 140px; 
  background-color: var(--warna-putih);
  padding: 20px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.1);
  border-top: 2px solid var(--warna-aksen);
  border-radius: 5px;
}

.sidebar_wrapper {
  display: contents;
}

/* Homepage Image (Full Width) */
.homepage_image {
  width: 100vw; 
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px; 
}

.additional_indexing_container {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: repeat(1, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.journal-logo {
  max-height: 100%;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 746px) {
  .additional_indexing_container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(1, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
  }

  .homepage_image {
    min-height: 200px; 
    background-size: contain; 
    width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
  }

  .additional_content {
    /* Reset margin mobile agar tidak menumpuk */
    margin-top: 20px; 
  }

  .announcements {
    /* Reset margin mobile */
    margin: 20px 0 140px; 
    background-color: var(--warna-putih);
    padding: 20px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  }
}

.pkpbrand-wrapper {
  max-width: 25%;
  flex: 0 0 25%;
  display: none;
  justify-content: flex-end;
}

.user-page-footer {
  max-width: 100%;
  flex: 0 0 100%;
}

main {
  text-align: justify;
}

.page_index_journal .container-page {
  padding-top: 40px;
  padding-bottom: 70px;
  display: flex;
  flex-direction: column-reverse;
}

.current_issue {
  margin-top: 40px;
}

.current_issue header {
  margin-bottom: 10px;
  color: var(--warna-utama);
  border-bottom: 1px solid #ddd;
}

.site-footer {
  background-color: var(--warna-putih);
  padding-top: 60px;
  padding-bottom: 60px;
  border-top: 4px solid var(--warna-utama);
}

/* --- TOMBOL PDF (GALLEYS) --- */
.galleys_links .galley-link {
  display: block;
  width: 100%;
  border: none;
  margin-bottom: 5px;
  background-color: var(--warna-utama) !important;
  color: var(--warna-putih);
  padding: 8px 28px;
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.galleys_links .galley-link:hover {
  display: block;
  width: 100%;
  border: 2px solid var(--warna-aksen);
  background-color: var(--warna-putih) !important;
  color: var(--warna-aksen);
  padding: 8px 28px;
  font-size: 16px;
  cursor: pointer;
  text-align: center;
}

.galleys_links .galley_info {
  margin-top: 10px;
  width: 100%;
  border: none;
  font-size: 13px;
  text-align: center;
}

.summary_meta .authors .bi {
  color: var(--warna-aksen);
}

.galleys_links .galley_info .bi {
  color: var(--warna-utama);
}
/* ==========================================================================
   FIX HALAMAN STATIS: RESET TABEL & FORMAT TEKS
   ========================================================================== */

/* 1. MENGATUR KONTAINER UTAMA AGAR DI TENGAH */
.container-page.container-narrow {
    width: 100% !important;
    max-width: 1000px !important; /* Batasi lebar maksimal agar enak dibaca */
    margin: 0 auto !important;    /* Paksa posisi tengah */
    float: none !important;
    padding: 0 15px; /* Beri jarak aman di HP */
}

/* 2. MENGHANCURKAN STRUKTUR TABEL YANG KAKU */
/* Ini akan menonaktifkan width="709" dan width="520" bawaan HTML */
.container-page table,
.container-page tbody,
.container-page tr,
.container-page td {
    display: block !important;      /* Ubah tabel jadi blok biasa */
    width: 100% !important;         /* Paksa lebar penuh */
    max-width: 100% !important;
    height: auto !important;        /* Reset tinggi */
    box-sizing: border-box !important;
}

/* 3. MEMASTIKAN TEKS RATA KIRI-KANAN (JUSTIFY) */
.container-page td,
.container-page p {
    text-align: justify !important;
    line-height: 1.8 !important;    /* Jarak antar baris agar lega */
    margin-bottom: 15px !important;
    font-size: 16px !important;     /* Ukuran font standar yang nyaman */
}

/* 4. MEMASTIKAN JUDUL TETAP DI TENGAH */
h1.page_title {
    text-align: center !important;
    margin-bottom: 30px !important;
    margin-top: 10px !important;
    width: 100% !important;
}