
/* ============================
   INDONESIAN JOURNAL OF LIFE SCIENCES (IJLS)
   Modern CSS Theme for OJS 3.1.0.1 (Stable)
=============================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

html, body {
  font-family: 'Poppins', sans-serif !important;
  color: #333 !important;
  background-color: #f9fafc !important;
  margin: 0;
  padding: 0;
}

/* HEADER FIX UNTUK OJS 3.1.0.1 */
.pkp_site_name_wrapper,
.pkp_head_wrapper {
  height: auto !important;
  min-height: 100px !important;
  padding: 10px 0 !important;
  text-align: center !important;
  background-color: #ffffff !important;
  border-bottom: none !important;
}

.pkp_site_name .is_img img {
  max-height: 100px !important;
  width: auto !important;
  height: auto !important;
  display: inline-block !important;
  margin: 0 auto !important;
}

/* NAVIGATION BAR */
.pkp_navigation_primary_row {
  margin-top: 0 !important;
  border-top: 3px solid #d72638 !important;
  background: linear-gradient(90deg, #8b0000, #d72638) !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  padding: 0 !important;
}

.pkp_navigation_primary_wrapper {
  text-align: center !important;
}

.pkp_navigation_primary_wrapper ul {
  display: inline-block !important;
  float: none !important;
  margin: 0;
  padding: 0;
}

.pkp_navigation_primary_wrapper ul li a {
  color: #fff !important;
  padding: 10px 20px !important;
  line-height: 40px !important;
  font-weight: 500 !important;
  letter-spacing: 0.4px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.pkp_navigation_primary_wrapper ul li a:hover {
  background: rgba(255,255,255,0.15) !important;
}

/* PAGE STRUCTURE */
.pkp_structure_page {
  width: 95%;
  max-width: 1200px;
  margin: 20px auto;
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

/* ARTICLE CARDS */
.obj_article_summary {
  background: #fff;
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 20px;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.obj_article_summary:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  background-color: #fafafa !important;
}

.pkp_page_index .obj_article_summary .title a {
  font-weight: 600 !important;
  color: #b30000 !important;
  font-size: 1.15rem !important;
  line-height: 1.35em !important;
  margin-bottom: 3px !important;
  text-decoration: none !important;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.pkp_page_index .obj_article_summary .title a:hover {
  color: #c1121f !important;
  text-shadow: 0 0 2px rgba(0,112,184,0.2);
}

.pkp_page_index .obj_article_summary .authors {
  font-size: 0.9rem !important;
  color: #4a4a4a !important;
  line-height: 1.45em !important;
  margin-bottom: 6px !important;
}

/* SIDEBAR */
.pkp_structure_sidebar {
  background: #fff0f0;
  border-left: 1px solid #e0e0e0;
  padding: 10px;
  border-radius: 0 0 10px 0;
}

/* BUTTONS */
.cmp_button_wire, .obj_galley_link {
  border: 1px solid #b30000;
  background: #b30000;
  color: #fff;
  padding: 6px 14px;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.25s ease;
}
.cmp_button_wire:hover, .obj_galley_link:hover {
  background: #c1121f;
  border-color: #c1121f;
}

/* FOOTER */
.pkp_structure_footer {
  background: #b30000 !important;
  color: #fff !important;
  padding: 30px 0;
  text-align: center;
  font-size: 0.9rem;
}

.pkp_structure_footer a {
  color: #ffb3b3 !important;
  text-decoration: none;
}
.pkp_structure_footer a:hover {
  text-decoration: underline;
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 768px) {
  .pkp_navigation_primary_wrapper ul li a {
    padding: 0 10px !important;
    line-height: 45px !important;
  }
  .pkp_structure_page {
    width: 100%;
    box-shadow: none;
    border-radius: 0;
  }
  .pkp_site_name .is_img img {
    max-height: 80px !important;
  }
}

/* === FIX TAMBAHAN UNTUK LOGO TERPOTONG === */
.pkp_site_name {
  height: auto !important;
  min-height: 120px !important;
}

.pkp_site_name .is_img img {
  max-height: none !important;
  height: auto !important;
  width: auto !important;
  display: inline-block !important;
}

.pkp_head {
  height: auto !important;
  min-height: 120px !important;
}


/* ====== FOOTER STYLING FIX ====== */

/* Samakan warna footer dengan menu bar */
.pkp_structure_footer {
  background: linear-gradient(90deg, #8b0000, #d72638) !important;
  color: #fff !important;
  padding: 40px 0 20px 0 !important;
  text-align: center;
  font-size: 0.9rem;
  border-top: 4px solid #d72638;
  margin-top: 40px !important; /* beri jarak dari konten */
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

/* Hapus padding bawah berlebihan di wrapper agar tidak turun terlalu jauh */
.pkp_structure_footer_wrapper {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Teks di dalam footer */
.pkp_structure_footer p,
.pkp_structure_footer a {
  color: #ffe6e6 !important;
  font-weight: 400;
  line-height: 1.6em;
}

.pkp_structure_footer a:hover {
  color: #fff !important;
  text-decoration: underline;
}

/* Logo PKP di pojok kanan */
.pkp_brand_footer {
  display: block !important;
  background: transparent !important;
  padding: 10px 0;
  filter: brightness(0) invert(1);
}
