/* Theme matching Media Penelitian dan Pengembangan Kesehatan (jurnal.polkesban.ac.id) */

/* Global Body & Background */
html, body {
  background: #e2e8e4 url("https://img.freepik.com/premium-photo/background-designer-with-light-white-green-ornament-william-morris-style_235573-6331.jpg") repeat;
  background-size: 300px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #333333;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Typography & Links */
a {
  color: #235728;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

a:hover, a:focus {
  color: #1b5e20;
  text-decoration: underline;
}

/* Main Container Structure */
.pkp_structure_page {
  max-width: 1140px;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.15);
  padding: 0;
}

/* Header Container */
.pkp_structure_head {
  background: #235728;
  margin-bottom: 0;
  padding: 0;
  position: relative;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.pkp_head_wrapper {
  background: #235728;
  position: relative;
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pkp_site_name_wrapper {
  width: 100%;
  text-align: center;
  margin: 0;
}

.pkp_site_name {
  text-align: center;
  display: block;
  max-width: 100%;
}

.pkp_site_name .is_img img,
.pkp_structure_head img {
  max-width: 100%;
  height: auto;
  max-height: 160px;
  margin: 0 auto;
  display: block;
  object-fit: contain;
}

/* User Navigation (Register / Login Top Right) */
.pkp_navigation_user_wrapper {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
}

.pkp_navigation_user {
  margin: 0;
  padding: 4px;
  display: flex;
  gap: 6px;
  list-style: none;
  background: rgba(121, 140, 126, 0.85);
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.pkp_navigation_user > li > a {
  color: #ffffff !important;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  padding: 5px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-block;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.pkp_navigation_user > li > a:hover {
  background: #235728;
  border-color: #ffffff;
  color: #ffffff !important;
}

/* Primary Navigation Menu Bar */
.pkp_site_nav_menu {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e1e8e5;
  border-top: 1px solid #e1e8e5;
}

.pkp_navigation_primary_row {
  width: 100%;
  background: #ffffff;
}

.pkp_navigation_primary_wrapper {
  background: #ffffff;
  box-shadow: none;
  border-radius: 0;
  margin: 0;
}

.pkp_navigation_primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0 15px;
}

.pkp_navigation_primary > li > a {
  color: #444444 !important;
  font-weight: 700;
  padding: 14px 18px !important;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
  display: inline-block;
  text-decoration: none !important;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li:hover > a {
  background-color: #f4f7f5 !important;
  color: #235728 !important;
}

/* Icons for Navigation Items */
.pkp_navigation_primary > li > a::before {
  font-family: FontAwesome, "Font Awesome 5 Free", sans-serif;
  margin-right: 6px;
  font-weight: 900;
}

.pkp_navigation_primary > li:nth-child(1) > a::before { content: "\f015"; } /* Home */
.pkp_navigation_primary > li:nth-child(2) > a::before { content: "\f139"; } /* About */
.pkp_navigation_primary > li:nth-child(3) > a::before { content: "\f0c0"; } /* People */
.pkp_navigation_primary > li:nth-child(4) > a::before { content: "\f07c"; } /* Issues */
.pkp_navigation_primary > li:nth-child(5) > a::before { content: "\f0a1"; } /* Announcements */

/* Header Search Prompt */
.headerSearchPrompt,
.pkp_navigation_primary_wrapper .search_prompt {
  margin-left: auto;
  color: #444444 !important;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  padding: 14px 18px;
}

/* Submenus */
.pkp_navigation_primary ul {
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
  border-radius: 0 0 4px 4px;
  border-top: 3px solid #235728;
}

.pkp_navigation_primary ul a {
  color: #333333 !important;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: none;
}

.pkp_navigation_primary ul a:hover {
  background: #f0f7f2 !important;
  color: #235728 !important;
}

/* Content Area & Sidebar Layout */
.pkp_structure_content {
  background: #ffffff;
  padding: 25px 30px;
  margin: 0;
  box-shadow: none;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .pkp_structure_content.has_sidebar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  
  .pkp_structure_content.has_sidebar .pkp_structure_main {
    width: 72%;
    flex: 0 0 72%;
    box-sizing: border-box;
  }

  .pkp_structure_content.has_sidebar .pkp_structure_sidebar {
    width: 25%;
    flex: 0 0 25%;
    display: block !important;
    box-sizing: border-box;
  }
}

/* Sidebar Styling matching JMP2K */
.pkp_structure_sidebar {
  box-sizing: border-box;
}

/* Make a Submission Button Block */
.block_make_submission {
  background: #235728 !important;
  border-radius: 3px !important;
  margin-bottom: 20px !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.block_make_submission .content {
  padding: 0;
}

.block_make_submission_link {
  display: block !important;
  background: #235728 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  font-size: 0.9rem !important;
  padding: 12px 15px !important;
  text-align: center !important;
  border-radius: 3px !important;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  transition: background 0.2s ease;
}

.block_make_submission_link:hover {
  background: #173f1b !important;
  color: #ffffff !important;
}

/* Custom Blocks & Sidebar Cards */
.pkp_block {
  background: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 3px;
  margin-bottom: 20px;
  padding: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  word-wrap: break-word;
  overflow: hidden;
}

.pkp_block .title {
  background: #235728;
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 15px;
  margin: 0;
  border-bottom: none;
  text-transform: none;
  letter-spacing: 0;
}

.pkp_block .content {
  padding: 12px 15px;
}

.pkp_block img {
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 8px auto !important;
  border-radius: 3px;
}

.pkp_block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pkp_block li {
  padding: 8px 0;
  border-bottom: 1px solid #eef2f0;
}

.pkp_block li:last-child {
  border-bottom: none;
}

.pkp_block li a {
  color: #235728;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  display: block;
}

.pkp_block li a:hover {
  color: #2386fb;
  text-decoration: none;
}

/* Homepage Image Banner */
.homepage_image {
  margin: 0 !important;
  padding: 0;
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 25px !important;
}

.homepage_image img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  border-radius: 4px;
}

/* Homepage About Section */
.homepage_about {
  background: transparent;
  border-left: none;
  padding: 0;
  margin-bottom: 30px;
}

.homepage_about h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #222222;
  border-bottom: none;
  margin-bottom: 15px;
}

.homepage_about p {
  text-align: justify;
  font-size: 0.95rem;
  color: #333333;
  line-height: 1.7;
}

.homepage_about a {
  color: #235728;
  font-weight: 700;
  text-decoration: underline;
}

/* Current Issue & Article Cards */
.current_issue {
  display: block;
}

.obj_issue_toc .heading h2,
.current_issue h2,
.page_title {
  color: #235728;
  font-weight: 700;
  margin-bottom: 15px;
  border-bottom: 2px solid #235728;
  padding-bottom: 6px;
  font-size: 1.25rem;
}

/* Tighten section spacing */
.obj_issue_toc .section,
.obj_issue_toc .galleys {
  margin: 10px 0 !important;
  padding: 10px 0 !important;
}

.obj_issue_toc .sections:not(:first-child) {
  margin-top: 15px !important;
}

.obj_issue_toc .section:before {
  top: 30px !important;
}

.obj_issue_toc .section > h2,
.obj_issue_toc .section > h3 {
  left: 0 !important;
  padding: 0 10px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #235728 !important;
}

/* Compact article cards */
.obj_article_summary {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 12px 15px !important;
  margin-bottom: 8px !important;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.obj_article_summary:last-child {
  margin-bottom: 0 !important;
}

.obj_article_summary:hover {
  border-color: #235728;
  box-shadow: 0 4px 14px rgba(35, 87, 40, 0.1);
}

.obj_article_summary .title a {
  font-weight: 700;
  font-size: 1rem;
  color: #235728;
}

.obj_article_summary .title a:hover {
  color: #2386fb;
}

.obj_article_summary .authors {
  font-size: 0.88rem;
  color: #555555;
  margin-top: 4px;
}

.obj_article_summary .galleys {
  margin-top: 10px;
}

.obj_galley_link {
  display: inline-block;
  background: #235728;
  color: #ffffff !important;
  padding: 5px 14px;
  border-radius: 3px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-decoration: none !important;
  transition: background 0.2s ease;
}

.obj_galley_link:hover {
  background: #173f1b;
  color: #ffffff !important;
}

/* Footer Styling */
.pkp_structure_footer {
  background: #235728;
  color: #ffffff;
  padding: 25px 0;
  margin-top: 30px;
  border-top: 3px solid #173f1b;
}

.pkp_structure_footer a {
  color: #d1e7dd;
}

.pkp_structure_footer a:hover {
  color: #ffffff;
}

.pkp_brand_footer {
  padding: 0px;
  text-align: center;
}

/* Responsive Media Queries */
@media (max-width: 991px) {
  .pkp_navigation_user_wrapper {
    position: relative;
    top: auto;
    right: auto;
    margin-bottom: 10px;
  }
  .pkp_structure_sidebar {
    width: 100% !important;
    margin-top: 30px;
  }
  .pkp_structure_content.has_sidebar .pkp_structure_main {
    width: 100% !important;
  }
}

@media (max-width: 600px) {
  .homepage_about {
    width: 100%;
    padding: 0;
  }
  .pkp_structure_content {
    padding: 15px;
  }
}
