/* ========================================================================
   Jurnal Farmasi Galenika (Galenika Journal of Pharmacy) - OJS 3 Stylesheet
   Adapted from IJBiotech clean academic design (Navy #31496C & Green #3cb467)
   ======================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;1,400&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css');

/* 1. Typography (Longgar, Jelas, Tidak Mepet) */
html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: #2c3440;
  background-color: #fcfcfc;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lato', Helvetica, Arial, sans-serif;
  color: #242424;
  line-height: 1.38;
  letter-spacing: 0.01em;
  margin-top: 1.2em;
  margin-bottom: 0.55em;
}

h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.55rem; font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1.12rem; font-weight: 700; }
h5 { font-size: 1rem; font-weight: 700; }
h6 { font-size: 0.9rem; font-weight: 700; }

p {
  line-height: 1.75;
  margin-top: 0;
  margin-bottom: 1rem;
  text-align: left;
}

/* Global links (tidak menimpa tombol & menu gelap) */
.pkp_structure_main a,
.pkp_structure_sidebar a,
.pkp_structure_footer a {
  color: #31496C;
  text-decoration: none;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.pkp_structure_main a:hover,
.pkp_structure_sidebar a:hover,
.pkp_structure_footer a:hover {
  color: #3cb467;
  text-decoration: none;
}

/* 2. Layout & Structure (OJS 3) */
.pkp_structure_page {
  background-color: #fcfcfc;
}

.pkp_structure_content {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 10px;
  padding-bottom: 30px;
}

.pkp_structure_main {
  padding: 24px 32px;
  background-color: #fcfcfc;
}

.pkp_structure_main::before,
.pkp_structure_main::after {
  border-color: #cad5e6;
}

/* 3. Header & Navbar (Seragam penuh #31496C dari ujung ke ujung) */
.pkp_structure_head,
.pkp_head_wrapper,
.pkp_site_name_wrapper,
.pkp_navigation_primary_row,
.pkp_navigation_primary_wrapper,
.pkp_navigation_user_wrapper,
.pkp_navigation_search_wrapper,
.pkp_site_nav_menu {
  background-color: #31496C !important;
  background-image: none !important;
}

.pkp_structure_head {
  border-bottom: 3px solid #3cb467;
}

.pkp_navigation_primary_row {
  border: none !important;
  box-shadow: none !important;
}

.pkp_site_name_wrapper {
  padding-top: 14px;
  padding-bottom: 10px;
}

.pkp_site_name .is_text,
.pkp_site_name a {
  font-family: 'Lato', Helvetica, Arial, sans-serif;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.pkp_site_name a:hover {
  color: #e6f4ec;
}

.pkp_navigation_primary > li > a,
.pkp_navigation_user > li > a {
  font-family: 'Lato', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #ffffff;
  padding: 10px 14px;
  text-transform: none;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus,
.pkp_navigation_user > li > a:hover,
.pkp_navigation_user > li > a:focus {
  color: #3cb467;
  border-bottom-color: #3cb467;
}

/* Dropdown menu tetap putih dengan teks navy agar jelas terbaca */
.pkp_navigation_primary ul,
.pkp_navigation_user ul {
  background-color: #ffffff !important;
  border: 1px solid #cad5e6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pkp_navigation_primary ul a,
.pkp_navigation_user ul a {
  color: #31496C !important;
  padding: 8px 14px;
  line-height: 1.45;
}

.pkp_navigation_primary ul a:hover,
.pkp_navigation_user ul a:hover {
  background-color: #f0f5fa;
  color: #3cb467 !important;
}

/* 4. Breadcrumbs */
.cmp_breadcrumbs {
  font-size: 13px;
  color: #6d7587;
  padding: 6px 0 10px;
  margin-bottom: 18px;
  border-bottom: 1px solid #e2e9f2;
  background: transparent;
}

.cmp_breadcrumbs a {
  color: #6d7587;
}

.cmp_breadcrumbs a:hover {
  color: #31496C;
}

/* 5. Announcements */
.cmp_announcements,
.obj_announcement_summary {
  border-top: 1px solid #cad5e6;
  padding-top: 16px;
  margin-top: 16px;
}

.obj_announcement_summary h2,
.obj_announcement_summary h3 {
  font-size: 1.15rem;
  line-height: 1.45;
  margin-top: 0;
}

.obj_announcement_summary .date {
  font-size: 13px;
  color: #6d7587;
  margin-bottom: 8px;
}

/* 6. Table of Contents / Daftar Artikel (Gaya IJBiotech) */
.obj_issue_toc .section h2,
.obj_issue_toc .section h3 {
  font-size: 1.25rem;
  color: #242424;
  padding-bottom: 8px;
  border-bottom: 2px solid #cad5e6;
  margin-top: 24px;
  margin-bottom: 10px;
}

.obj_issue_toc .articles > li {
  margin-bottom: 0;
}

.obj_article_summary {
  padding: 18px 0;
  border-bottom: 1px solid #cad5e6;
  overflow: hidden;
}

/* Thumbnail / Cover Artikel di kiri */
.obj_article_summary .cover {
  float: left;
  width: 115px;
  margin: 2px 18px 10px 0;
}

.obj_article_summary .cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
  border: 1px solid #e2e8f0;
}

/* Judul Artikel - lega & mudah dibaca */
.obj_article_summary > .title,
.obj_article_summary > h3.title,
.obj_article_summary > h4.title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.48;
  letter-spacing: 0.01em;
  margin: 0 0 6px 0;
}

.obj_article_summary > .title a {
  color: #223b5e;
}

.obj_article_summary > .title a:hover {
  color: #3cb467;
}

/* Nama Penulis & Nomor Halaman */
.obj_article_summary .meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 16px;
  margin-top: 4px;
  margin-bottom: 8px;
  line-height: 1.55;
}

.obj_article_summary .authors {
  color: #5f6b7e;
  font-size: 14px;
  font-weight: 400;
  flex: 1 1 70%;
}

.obj_article_summary .pages {
  color: #242424;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

/* Baris Keterangan DOI + Abstract Views + PDF Views */
.galenika-article-stats,
.obj_article_summary .article-stats,
.obj_article_summary .view-counter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 8px;
  margin-bottom: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #2c3440;
}

.galenika-article-stats .doi-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #31496C;
}

.galenika-article-stats .doi-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #f4b400;
  color: #1f2937;
  font-size: 9px;
  font-weight: 700;
  text-transform: lowercase;
}

.galenika-article-stats .stat-sep {
  color: #9aa5b5;
}

.galenika-article-stats .stat-abstract i {
  color: #2e9e5b;
  margin-right: 4px;
}

.galenika-article-stats .stat-pdf i {
  color: #d93025;
  margin-right: 4px;
}

/* Tombol Galley / PDF */
.obj_article_summary .galleys_links {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.obj_galley_link,
a.obj_galley_link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid #31496C;
  border-radius: 4px;
  color: #31496C;
  background-color: #ffffff;
  transition: all 0.25s ease;
}

.obj_galley_link:hover,
a.obj_galley_link:hover {
  background-color: #3cb467;
  border-color: #3cb467;
  color: #ffffff;
}

.obj_galley_link.pdf::before {
  color: #d93025;
}

.obj_galley_link.pdf:hover::before {
  color: #ffffff;
}

/* 7. Sidebar & Custom Block Menu */
.pkp_structure_sidebar {
  padding-top: 24px;
  padding-left: 24px;
}

.pkp_block {
  margin-bottom: 24px;
}

.pkp_block .title {
  font-family: 'Lato', Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #242424;
  text-transform: none;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 2px solid #cad5e6;
}

.pkp_block ul {
  padding-left: 0;
  list-style: none;
}

.pkp_block li {
  padding: 5px 0;
  line-height: 1.5;
}

/* Proteksi warna Custom Block JOURNAL MENU */
.galenika-journal-menu td a {
  color: #ffffff !important;
  transition: background-color 0.2s ease;
}

.galenika-journal-menu td a:hover {
  background-color: #1b2840;
  color: #ffffff !important;
}

/* Tombol Make a Submission */
.block_make_submission a.block_make_submission_link {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border-radius: 5px;
  background-color: #31496C;
  color: #ffffff !important;
  font-weight: 700;
  text-align: center;
  border: none;
}

.block_make_submission a.block_make_submission_link:hover {
  background-color: #3cb467;
  color: #ffffff !important;
}

/* 8. Buttons & Form Inputs */
.cmp_button,
button,
input[type="submit"],
input[type="button"],
.btn-ijb {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 5px;
  border: none;
  background-color: #31496C;
  color: #ffffff !important;
  font-family: 'Lato', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.cmp_button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.btn-ijb:hover {
  background-color: #3cb467;
  color: #ffffff !important;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
select,
textarea {
  font-family: 'Lato', Helvetica, Arial, sans-serif;
  font-size: 14px;
  padding: 8px 10px;
  border: 1px solid #cfd8e3;
  border-radius: 4px;
  color: #2c3440;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #31496C;
}

/* 9. Indexers (Efek Grayscale ke Warna saat Hover) */
.indexed-in a img {
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.indexed-in a img:hover {
  filter: grayscale(0%);
}

/* 10. Footer */
.pkp_structure_footer_wrapper {
  background-color: #f3f6fa;
  border-top: 2px solid #cad5e6;
  margin-top: 30px;
  color: #4a5568;
  font-size: 14px;
  line-height: 1.65;
}

/* 11. Responsive (Mobile) */
@media (max-width: 767px) {
  .pkp_structure_main {
    padding: 16px;
  }

  .pkp_structure_sidebar {
    padding: 16px;
  }

  .obj_article_summary .cover {
    float: none;
    width: 100%;
    max-width: 180px;
    margin: 0 0 12px 0;
  }

  .obj_article_summary .meta {
    flex-direction: column;
    gap: 4px;
  }
}