/* AISCH OJS Custom Theme - clean health journal style */

:root {
  --navy: #123f4a;
  --teal: #0f8f83;
  --mint: #62c9aa;
  --gold: #f2b94b;
  --coral: #e86f5c;
  --text: #203936;
  --muted: #667a77;
  --line: #dce9e6;
  --soft: #f4fbf9;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(18, 63, 74, .12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  background:
    radial-gradient(circle at top left, rgba(15, 143, 131, .14), transparent 30rem),
    linear-gradient(180deg, #f4fbf9 0%, #ffffff 42rem);
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: .18em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* Layout */
.pkp_structure_page {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.pkp_structure_content {
  max-width: 1180px;
  margin: 34px auto 0;
  padding: 0 20px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 30px;
}

.pkp_structure_content:before,
.pkp_structure_content:after {
  display: none;
}

.pkp_structure_main,
.pkp_structure_sidebar {
  float: none !important;
  width: auto !important;
  min-width: 0;
}

/* AISCH HEADER + MENU FINAL FIX */

/* Reset area header */
.pkp_structure_head {
  background: #ffffff !important;
  border: 0 !important;
  box-shadow: 0 12px 35px rgba(16, 63, 73, .14) !important;
}

.pkp_structure_head:after {
  display: none !important;
}

.pkp_head_wrapper {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Banner full lebar */
.pkp_site_name_wrapper,
.pkp_site_name {
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #ffffff !important;
  line-height: 0 !important;
}

.pkp_site_name a,
.pkp_site_name .is_img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}

.pkp_site_name img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: scale(1.07) !important;
  transform-origin: center center !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* User menu kanan atas */
.pkp_navigation_user_wrapper {
  position: absolute !important;
  top: 28px !important;
  right: 36px !important;
  z-index: 1000 !important;
}

.pkp_navigation_user > li > a {
  color: #ffffff !important;
  background: rgba(16, 63, 73, .82) !important;
  border-radius: 999px !important;
  padding: 9px 14px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

.pkp_navigation_user > li > a:hover {
  background: #119384 !important;
}

/* Bar menu */
/* FIX MENU BAR - HIDE SEARCH */

/* Hilangkan search di menu */
.pkp_navigation_search_wrapper,
.pkp_search,
.pkp_search_desktop,
.pkp_search_mobile,
#navigationSearch,
a[href*="/search"] {
  display: none !important;
  visibility: hidden !important;
}

/* Rapikan bar menu */
.pkp_site_nav_menu {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #103f49 !important;
  border-top: 5px solid #f4bd4f !important;
}

/* Wrapper menu */
.pkp_navigation_primary_row,
.pkp_navigation_primary_wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 66px !important;
  margin: 0 !important;
  padding: 0 20px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Menu utama */
#navigationPrimary,
.pkp_navigation_primary {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  width: auto !important;
  margin: 0 auto !important;
  padding: 0 !important;
  float: none !important;
  clear: none !important;
  text-align: center !important;
}

/* Item menu */
#navigationPrimary > li,
.pkp_navigation_primary > li {
  display: inline-flex !important;
  position: relative !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: none !important;
}

/* Link menu */
#navigationPrimary > li > a,
.pkp_navigation_primary > li > a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 46px !important;
  padding: 0 18px !important;
  color: #ffffff !important;
  background: transparent !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}

#navigationPrimary > li > a:hover,
#navigationPrimary > li > a:focus,
#navigationPrimary > li.current > a,
.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus,
.pkp_navigation_primary > li.current > a {
  color: #ffffff !important;
  background: #119384 !important;
  text-decoration: none !important;
}

/* Dropdown About */
#navigationPrimary > li,
.pkp_navigation_primary > li {
  position: relative !important;
}

#navigationPrimary ul,
.pkp_navigation_primary ul {
  top: calc(100% + 6px) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  min-width: 240px !important;
  padding: 8px !important;
  margin: 0 !important;
  background: #ffffff !important;
  border-radius: 8px !important;
  box-shadow: 0 14px 34px rgba(16, 63, 73, .18) !important;
}

/* Hilangkan jarak bawaan item dropdown */
#navigationPrimary ul li,
.pkp_navigation_primary ul li {
  margin: 0 !important;
  padding: 0 !important;
}

/* Rapikan tinggi item dropdown */
#navigationPrimary ul a,
.pkp_navigation_primary ul a {
  padding: 9px 12px !important;
  line-height: 1.3 !important;
  text-align: center !important;
}

#navigationPrimary ul a:hover,
.pkp_navigation_primary ul a:hover {
  color: #ffffff !important;
  background: #119384 !important;
}

/* Mobile */
@media (max-width: 768px) {
  .pkp_navigation_primary_row,
  .pkp_navigation_primary_wrapper {
    min-height: auto !important;
    padding: 10px 12px !important;
  }

  #navigationPrimary,
  .pkp_navigation_primary {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  #navigationPrimary > li > a,
  .pkp_navigation_primary > li > a {
    height: 40px !important;
    padding: 0 13px !important;
    font-size: 13px !important;
  }

  #navigationPrimary ul,
  .pkp_navigation_primary ul {
    position: static !important;
    margin-top: 6px !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .pkp_site_name img {
    height: 145px !important;
    transform: scale(1.1) !important;
  }

  .pkp_navigation_user_wrapper {
    top: 12px !important;
    right: 12px !important;
  }

  .pkp_navigation_primary_row {
    display: block !important;
    min-height: auto !important;
    padding: 12px 14px !important;
  }

  #navigationPrimary,
  .pkp_navigation_primary {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .pkp_navigation_primary > li > a {
    height: 40px !important;
    padding: 0 13px !important;
    font-size: 13px !important;
  }

  .pkp_navigation_search_wrapper {
    margin: 10px 0 0 !important;
  }

  .pkp_navigation_search_wrapper a {
    width: 100% !important;
  }

  .pkp_navigation_primary ul {
    position: static !important;
    margin-top: 6px !important;
  }
}

/* Main content */
.page {
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.page h1,
.page h2,
.page h3,
.page h4 {
  color: var(--navy);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0;
}

.page h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  font-size: 1.45rem;
}

.page h2:before {
  content: "";
  width: 8px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--teal), var(--gold));
}

.homepage_about {
  margin-bottom: 30px;
  padding: 24px;
  background: linear-gradient(180deg, #ffffff, #f7fffd);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.current_issue_title {
  padding: 14px 18px;
  color: var(--navy);
  font-weight: 800;
  background: #e8f7f3;
  border-left: 5px solid var(--teal);
  border-radius: 6px;
}

.obj_issue_toc .cover img,
.cover img {
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(18, 63, 74, .16);
}

.obj_issue_toc .section > h3 {
  margin: 30px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2f0ed;
  font-size: 1.1rem;
}

/* Article cards */
.cmp_article_list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cmp_article_list > li {
  margin-bottom: 14px;
}

.obj_article_summary {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(18, 63, 74, .08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.obj_article_summary:hover {
  transform: translateY(-2px);
  border-color: var(--mint);
  box-shadow: 0 16px 36px rgba(18, 63, 74, .14);
}

.obj_article_summary .title {
  margin: 0 0 10px;
  font-size: 1.02rem;
  line-height: 1.4;
}

.obj_article_summary .title a {
  color: var(--navy);
  overflow-wrap: anywhere;
}

.obj_article_summary .authors,
.obj_article_summary .pages {
  color: var(--muted);
  font-size: .94rem;
}

.obj_article_summary .pages {
  display: inline-flex;
  margin-top: 8px;
  padding: 3px 10px;
  background: #f1f7f6;
  border-radius: 999px;
}

/* Buttons and PDF links */
.obj_galley_link,
.cmp_manuscript_button,
.block_make_submission a,
.btn-primary,
input[type="submit"],
button.submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 15px;
  color: var(--white) !important;
  background: var(--teal);
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(15, 143, 131, .24);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.obj_galley_link:hover,
.cmp_manuscript_button:hover,
.block_make_submission a:hover,
.btn-primary:hover,
input[type="submit"]:hover,
button.submit:hover {
  background: var(--navy);
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 14px 26px rgba(18, 63, 74, .25);
}

/* Sidebar */
.pkp_structure_sidebar .block {
  margin-bottom: 18px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(18, 63, 74, .08);
}

.pkp_structure_sidebar .block .title {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: .9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.pkp_structure_sidebar ul {
  margin: 0;
  padding-left: 18px;
}

.pkp_structure_sidebar li {
  margin: 7px 0;
}

/* Forms */
input,
select,
textarea {
  max-width: 100%;
  padding: 10px 12px;
  color: var(--text);
  background: var(--white);
  border: 1px solid #cbdad7;
  border-radius: 8px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 143, 131, .12);
}

/* Footer */
.pkp_structure_footer_wrapper {
  margin-top: 28px;
  color: #dff7f2;
  background: #123f4a;
}

.pkp_structure_footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px;
}

.pkp_structure_footer a {
  color: var(--white);
}

/* Mobile */
@media (max-width: 992px) {
  .pkp_structure_content {
    grid-template-columns: 1fr;
  }

  .pkp_structure_sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .pkp_head_wrapper {
    padding: 26px 16px 20px;
  }

  .pkp_site_name a,
  .pkp_site_name .is_text {
    font-size: 28px;
  }

  .pkp_structure_content {
    margin-top: 22px;
    padding: 0 14px 42px;
  }

  .page {
    padding: 22px 16px;
  }

  .homepage_about,
  .obj_article_summary,
  .pkp_structure_sidebar .block {
    padding: 16px;
  }

  .pkp_structure_sidebar {
    grid-template-columns: 1fr;
  }

  .obj_galley_link {
    width: 100%;
  }
}
/* FIX HEADER + MENU OJS AISCH */

:root {
  --aisch-navy: #103f49;
  --aisch-teal: #119384;
  --aisch-green: #27b52d;
  --aisch-gold: #f4bd4f;
  --aisch-white: #ffffff;
}

/* FOOTER FIX - hide PKP logo and remove bright green */

/* Hilangkan logo/tulisan PKP */
.pkp_brand_footer,
.pkp_brand_footer img,
.pkp_brand_footer a,
.pkp_structure_footer .pkp_brand_footer,
.pkp_structure_footer_wrapper .pkp_brand_footer {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Footer utama */
.pkp_structure_footer_wrapper,
.pkp_structure_footer {
  background: #103f49 !important;
  color: #ffffff !important;
}

/* Hilangkan warna hijau terang di bawah footer */
.pkp_structure_page,
.pkp_structure_footer_wrapper,
.pkp_structure_footer,
body {
  border-bottom: 0 !important;
}
/* FOOTER FULL WIDTH FIX */

.pkp_structure_footer_wrapper {
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: 0 !important;
  background: #138173 !important;
  border: 0 !important;
  overflow: hidden !important;
}

.pkp_structure_footer {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 70px 24px 45px !important;
  background: #138173 !important;
  color: #ffffff !important;
  border: 0 !important;
  box-sizing: border-box !important;
}

/* Kalau footer content sebelumnya berbentuk kartu, jadikan full */
.pkp_structure_footer .pkp_footer_content {
  width: 100% !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-align: center !important;
}

/* Jaga area konten utama tetap terang */
.pkp_structure_content {
  background: transparent !important;
}

.pkp_structure_main,
.page {
  background-color: #ffffff !important;
}

/* Hilangkan logo PKP */
.pkp_brand_footer,
.pkp_brand_footer a,
.pkp_brand_footer img {
  display: none !important;
}

/* Copyright/footer text */
.pkp_structure_footer p,
.pkp_structure_footer div,
.pkp_structure_footer a {
  color: #ffffff !important;
}

/* FIX GAP BEFORE FOOTER */

/* Kurangi ruang kosong sebelum footer */
.pkp_structure_content {
  padding-bottom: 24px !important;
  margin-bottom: 0 !important;
}

.pkp_structure_main,
.pkp_structure_sidebar,
.page {
  margin-bottom: 0 !important;
}

/* Footer langsung naik setelah konten */
.pkp_structure_footer_wrapper {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Kurangi tinggi area hijau sebelum isi footer */
.pkp_structure_footer {
  padding-top: 32px !important;
}

/* Jika footer custom memakai card/container */
.pkp_structure_footer .pkp_footer_content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Kalau ada blok kosong bawaan sebelum footer */
.pkp_structure_content:after,
.pkp_structure_main:after,
.pkp_structure_sidebar:after {
  display: none !important;
}

/* FIX SIDEBAR TOP-BOTTOM SPACING */

.pkp_structure_sidebar .block,
.pkp_structure_sidebar .block_make_submission,
.pkp_structure_sidebar .block_information,
.pkp_structure_sidebar .block_language,
.pkp_structure_sidebar .block_custom {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

/* Tombol Make a Submission */
.block_make_submission {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  align-items: center;
  width: 100%;
}

.block_make_submission a {
  min-height: 42px !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Judul blok seperti INFORMATION */
.pkp_structure_sidebar .block .title,
.pkp_structure_sidebar .block_information .title {
  margin-top: 0 !important;
  margin-bottom: 8px !important;
  padding-top: 0 !important;
  padding-bottom: 6px !important;
}

/* Isi link seperti For Readers */
.pkp_structure_sidebar .block ul,
.pkp_structure_sidebar .block ol,
.pkp_structure_sidebar .block p {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.pkp_structure_sidebar .block li {
  margin-top: 4px !important;
  margin-bottom: 4px !important;
}

