/* =========================================================
   JHSSR OJS 3.x Clean Full-Width Stylesheet
   Purpose: make the site full-width like ijbssrnet.com while
   keeping content readable and mobile responsive.
   Upload in: Dashboard > Settings > Website > Appearance > Advanced
   ========================================================= */

/* ---------- 1. Base page / full-width layout ---------- */
html,
body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: #ffffff !important;
  overflow-x: hidden;
}

body {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.pkp_structure_page {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  background: #ffffff !important;
}

.pkp_structure_head,
.pkp_structure_footer_wrapper {
  width: 100% !important;
  max-width: 100% !important;
}

/* Main inner wrappers. Increase max-width if you want even wider content. */
.pkp_head_wrapper,
.pkp_site_nav_menu,
.pkp_structure_content,
.pkp_structure_footer {
  width: 100% !important;
  max-width: 1320px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

.pkp_structure_content {
  padding: 0 22px !important;
  background: #ffffff;
}

/* Desktop content + sidebar proportions */
@media (min-width: 1080px) {
  .pkp_structure_main {
    float: left;
    width: calc(100% - 310px) !important;
    padding: 0 2.143rem 6.429rem !important;
    box-sizing: border-box;
  }

  .pkp_structure_sidebar {
    float: right;
    width: 300px !important;
    padding-left: 20px;
    box-sizing: border-box;
  }
}

@media (max-width: 1079px) {
  .pkp_structure_main,
  .pkp_structure_sidebar {
    float: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
  }
}

/* ---------- 2. Header ---------- */
.pkp_structure_head {
  background-color: #727477;
  border-bottom: 1px solid #22545f;
}

.pkp_site_name_wrapper {
  background-color: #0c3695;
}

.has_site_logo .pkp_site_name,
.has_site_logo .pkp_navigation_primary_wrapper {
  width: auto;
  padding-left: 15px;
}

.has_site_logo .pkp_head_wrapper {
  width: 96% !important;
  max-width: 1320px !important;
}

.pkp_site_name .is_img img {
  display: inline-block;
  max-width: 100%;
  width: auto;
  height: auto;
}

.pkp_site_name .is_text {
  display: inline-block;
  vertical-align: top;
  margin-top: 25px;
  padding: 5px;
  font-size: 20px;
  color: #e0f4ff;
  text-transform: uppercase;
  text-shadow: 1px 1px #888;
}

/* User menu: avoid the old fixed 25% width problem */
.pkp_navigation_user_wrapper {
  top: 12px;
  right: 0;
  left: auto;
  width: auto !important;
  max-width: none !important;
  transform: none;
  padding-right: 15px;
}

.pkp_navigation_user_wrapper a,
.pkp_navigation_user > li > a {
  color: #ffffff;
}

/* ---------- 3. Navigation ---------- */
.pkp_navigation_primary_row,
.pkp_navigation_primary_wrapper {
  width: 100% !important;
  max-width: 100% !important;
}

.pkp_site_nav_menu a:hover,
.pkp_site_nav_menu a:focus,
a.pkp_search.pkp_search_desktop,
a.pkp_search.pkp_search_desktop:hover {
  color: #888;
}

/* ---------- 4. Typography ---------- */
a {
  color: #333300;
}

.pkp_structure_main h1 {
  font-weight: 600;
  font-size: 20px;
}

.pkp_structure_main h1,
.pkp_structure_main h2,
.pkp_structure_main h3,
.pkp_structure_main h4 {
  margin: 0.5rem 0;
}

.pkp_structure_main h4 {
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}

.pkp_structure_main p {
  line-height: 24px;
  margin: 11px 0;
  text-align: justify;
  text-justify: inter-word;
  font-size: 15px;
}

li,
u,
.page ul li {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

li {
  font-size: small;
}

.page ul li {
  font-size: 14px;
  line-height: 24px;
}

u {
  text-decoration: underline;
}

/* ---------- 5. Homepage ---------- */
.pkp_page_index .homepage_image img {
  display: block;
  width: 29%;
  height: auto;
  float: right;
  margin: 45px 20px 20px;
}

body.pkp_page_index .homepage_image {
  margin-top: 0;
}

.pkp_page_index .homepage_about {
  margin-bottom: 9%;
}

.pkp_page_index .cmp_announcements {
  border-top: 0;
}

.pkp_page_index .cmp_announcements > .obj_announcement_summary:before,
.pkp_page_index .cmp_announcements > .more:before {
  border: none;
}

@media (min-width: 768px) {
  .pkp_page_index .cmp_announcements > .obj_announcement_summary {
    width: 100%;
    background-color: #5bb2fd;
  }

  .pkp_page_index .cmp_announcements .more {
    width: 100%;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    background-color: #2cc9b6;
    margin-top: 2px;
  }
}

@media (min-width: 992px) {
  .cmp_announcements.highlight_first .obj_announcement_summary,
  .pkp_page_index .cmp_announcements h2 + .obj_announcement_summary {
    padding-top: 20px;
    padding-bottom: 20px;
	margin-left: 20px;
  }

  .pkp_page_index .cmp_announcements .more {
    padding-top: 2px;
    padding-bottom: 2px;
  }
}

/* ---------- 6. Current issue / issue table of contents ---------- */
.pkp_page_index .current_issue h2,
.obj_issue_toc .section h2 {
  display: inline-block;
  padding-bottom: 0;
  border-bottom: 3px solid #ffb106;
  text-transform: capitalize;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.54);
}

.pkp_page_index .current_issue .current_issue_title {
  margin: 1rem 0;
  font-size: 14px;
}

.pkp_page_index .current_issue .read_more {
  margin: 20px 0;
}

.obj_issue_toc .heading .published .label {
  text-transform: capitalize;
  font-size: 90%;
}

.obj_issue_toc .section h2 {
  position: relative;
  top: auto;
  left: auto;
  padding: 0 0 5px;
  background: transparent;
}

.obj_issue_toc .section h2 {
  margin-top: 20px;
}

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

@media (min-width: 768px) {
  .obj_issue_toc .galleys,
  .obj_issue_toc .section {
    padding: 5px 2.143rem;
  }
}

@media (min-width: 992px) {
  .obj_issue_toc .galleys,
  .obj_issue_toc .section {
    margin: 0 -2.143rem;
  }
}

.current_issue .obj_issue_toc .articles {
  margin-top: 0;
}

/* ---------- 7. Article list layout ---------- */
.obj_article_summary {
  padding-bottom: 20px !important;
  border-bottom: solid 1px #ffb106 !important;
  font-size: 12px;
}

.obj_article_summary > .title {
  font-size: 14.5px;
  line-height: 20px;
  font-weight: 100;
}

.cmp_article_list > li {
  margin-top: 20px;
  margin-bottom: 1rem;
}

/* Section headers with square icons */
.pkp_page_index .current_issue > h2,
.obj_issue_toc .section > h3 {
  position: relative;
  padding-left: 34px;
  font-weight: 700;
  border-bottom: 0 !important;
}

.pkp_page_index .current_issue > h2:before,
.obj_issue_toc .section > h3:before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
}

.pkp_page_index .current_issue > h2:before {
  background: #22545f;
}

.obj_issue_toc .section > h3:before {
  background: #ff7a00;
  margin-left: 10px !important;
}

.cmp_article_list.articles > li {
  padding: 18px 0 14px;
  border-bottom: 2px solid #ffb106;
}

.cmp_article_list.articles .obj_article_summary {
  padding-bottom: 6px !important;
  border-bottom: 0 !important;
  display: block;
}

.cmp_article_list.articles .obj_article_summary .title {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.cmp_article_list.articles .obj_article_summary .title a {
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  color: #22545f;
  line-height: 1.35;
}

.cmp_article_list.articles .obj_article_summary .meta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cmp_article_list.articles .obj_article_summary .meta .pages {
  float: none !important;
  margin: 0 !important;
  font-weight: 700;
  color: #22545f;
  white-space: nowrap;
}

.cmp_article_list.articles .obj_article_summary .meta .pages:before {
  content: "Page: ";
  font-weight: 700;
  color: #22545f;
}

.cmp_article_list.articles .obj_article_summary .authors {
  font-size: 15px;
  color: #22545f;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cmp_article_list.articles .obj_article_summary .authors i.fa {
  font-size: 16px;
  color: #000;
  opacity: 0.85;
}

/* ---------- 8. Article details ---------- */
.obj_article_details .main_entry {
  max-width: 100% !important;
}

.obj_article_details .main_entry .label {
  display: inline-block;
  padding: 0 0 5px;
  border-bottom: 3px solid #ffb106;
  color: rgba(0, 0, 0, 0.54);
  text-transform: capitalize;
}

.obj_article_details .abstract {
  text-align: justify;
  font-family: Tahoma, Geneva, sans-serif;
}

.obj_article_details .copyright a[rel="license"] + p,
.obj_article_details .entry_details .item.copyright > a > img {
  display: none;
}

.obj_article_details section.item.references {
  width: 100% !important;
  max-width: 100% !important;
}

.main_entry section.item.references p {
  text-align: left;
  word-break: break-word;
}

/* ---------- 9. Article DOI / stats / galley buttons ---------- */
.doi-url-view {
  display: inline-block;
  padding-right: 15px;
  vertical-align: middle;
}

.doi-url-view > a {
  vertical-align: top;
  padding-left: 3px;
  font-size: 15px;
}

h4.abstract-views {
  display: inline;
}

ul.galleys_links.inline {
  display: inline-block;
  padding-left: 15px;
}

.article-stats-wrapper {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.article-stats-wrapper .doi-url-view {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #22545f;
}

.article-stats-wrapper .doi-url-view img {
  width: 18px;
  height: 18px;
}

.article-stats-wrapper .doi-url-view a {
  color: #22545f;
  text-decoration: none;
}

.article-stats-wrapper .doi-url-view a:hover {
  text-decoration: underline;
}

.article-stats-wrapper .abstract-views {
  margin: 0 !important;
  padding: 6px 10px;
  background: #19d3df;
  color: #003b40;
  font-weight: 700;
  font-size: 14px;
  border-radius: 2px;
  display: inline-block;
}

.article-stats-wrapper .galleys_links.inline {
  margin-left: auto;
  padding-left: 0;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.article-stats-wrapper .obj_galley_link.pdf {
  background: #6d6d6d;
  color: #ffffff !important;
  border: 0;
  border-radius: 2px;
  padding: 7px 12px;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.article-stats-wrapper .obj_galley_link.pdf sup {
  font-size: 12px;
  opacity: 0.95;
}

.article-stats-wrapper .obj_galley_link.pdf i.fa-download {
  font-size: 14px;
}

/* ---------- 10. Sidebar blocks / custom menu ---------- */
.pkp_block {
  clear: both;
  font-size: 14px;
  line-height: 20px;
}

.pkp_block .title {
  display: inline-block;
  padding-bottom: 0;
  border-bottom: 3px solid #ffb106;
  font-weight: 600;
  text-transform: capitalize;
}

.hoverTable {
  width: 100%;
  border-collapse: collapse;
}

.hoverTable th {
  height: 30px;
  background: #f1f1f1;
  color: #004aadcc;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.hoverTable td {
  height: 30px;
  padding-top: 3px;
  vertical-align: middle;
  border-bottom: 1px solid #ffffff;
  text-align: center;
}

.hoverTable td a {
  width: 100%;
  display: block;
}

.hoverTable tr {
  background: #3a607029;
  background-image: linear-gradient(156deg, #e0ba7473 3%, #004aad6e 51%, #004aad9e 94%);
  color: #ffffff;
}

.hoverTable tr:hover {
  background-color: #0c426b;
}

.hoverTable a {
  color: #f3f8ff;
  font-style: normal;
  font-family: system-ui;
  font-size: medium;
  font-variant-caps: all-petite-caps;
}

.hoverTable a:hover {
  color: #ffb106;
}

.cmp_manuscript_button,
.block_make_submission a {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-weight: 700;
  text-align: center;
  font-size: larger;
  text-transform: uppercase;
  background: #ffb106;
  color: #ffffff;
  border: none;
  width: 240px;
  height: 40px;
  padding: 5px;
}

.cmp_manuscript_button:hover,
.block_make_submission a:hover {
  background: #3377ba;
}

/* ---------- 11. Indexing page ---------- */
ul.indexing-abstracting {
  padding-left: 0;
}

ul.indexing-abstracting li {
  list-style: none;
  display: inline;
}

ul.indexing-abstracting li a {
  text-decoration: none;
}

ul.indexing-abstracting li a img {
  width: 170px;
  height: 54px;
  margin-right: 10px;
  margin-bottom: 10px;
  box-shadow: 1px 2px 9px #ddd;
}

/* ---------- 12. Footer ---------- */
.pkp_structure_footer_wrapper {
  border-top: 1px solid #22545f;
  border-bottom: 1.43rem solid #22545f;
}

.pkp_structure_footer {
  text-align: center;
}

.pkp_footer_content {
  padding-bottom: 0;
}

.footer-author-logo {
  height: 80px;
}

.footer-author-logo > a > img {
  width: 100px;
  float: left;
  display: block;
}

.footer-author-logo > h4 {
  padding-left: 13px;
  vertical-align: middle;
  height: 71px;
  display: table-cell;
}

.footer-author-logo > a > img,
div#footer-author-info h4,
div#footer-author-info p {
  padding-left: 30px;
}

div#footer-author-info h4,
div#footer-author-info p {
  text-align: left;
  padding-right: 15px;
}

div#footer-author-info h4 {
  margin: 0;
}

div#footer-author-info p {
  margin-top: 2px;
}

div#footer-author-info .footer-author-logo > h4 {
  padding-left: 15px;
  font-size: 19px;
}

div#footer-author-info .footer-author-logo > h4 > a {
  text-decoration: none;
  color: #000000;
}

div#footer-author-info .footer-author-logo > h4 > a:hover {
  text-decoration: none;
  color: #66c23a;
}

/* ---------- 13. Icons ---------- */
.orcid-icon img {
  margin-left: 6px;
  vertical-align: middle;
}

.email-icon {
  margin-left: 6px;
  color: #555555;
}

.email-icon:hover {
  color: #000000;
}

/* ---------- 14. Responsive fixes ---------- */
@media (max-width: 768px) {
  .pkp_structure_content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .pkp_page_index .homepage_image img {
    float: none;
    width: 100%;
    max-width: 320px;
    margin: 20px auto;
  }

  .cmp_article_list.articles .obj_article_summary .title,
  .cmp_article_list.articles .obj_article_summary .meta,
  .article-stats-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-stats-wrapper .galleys_links.inline {
    margin-left: 0;
  }
}

/* =========================================================
   JHSSR 90% FULL-WIDTH LAYOUT OVERRIDE
   Header + Body + Footer content width = 90%
   Paste this at the VERY END of your OJS stylesheet.
   ========================================================= */

:root {
  --jhssr-content-width: 90%;
  --jhssr-content-max-width: none;
  --jhssr-sidebar-width: 280px;
  --jhssr-content-gap: 65px;
}

html,
body {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #ffffff !important;
}

/* Full-width outer structure */
.pkp_structure_page,
.pkp_structure_head,
.pkp_site_name_wrapper,
.pkp_navigation_primary_row,
.pkp_structure_footer_wrapper {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Header content, menu content, body content, footer content = 90% */
.pkp_head_wrapper,
.pkp_site_nav_menu,
.pkp_structure_content,
.pkp_structure_footer {
  width: var(--jhssr-content-width) !important;
  max-width: var(--jhssr-content-max-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* Keep the top user menu aligned with the 90% header area */
.pkp_navigation_user_wrapper {
  width: auto !important;
  max-width: none !important;
  right: 5% !important;
  left: auto !important;
  top: 12px !important;
  transform: none !important;
  padding-right: 0 !important;
}

/* Body layout: main content + sidebar inside the 90% content area */
.pkp_structure_content {
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

@media (min-width: 992px) {
  .pkp_structure_main {
    float: left !important;
    width: calc(100% - var(--jhssr-sidebar-width) - var(--jhssr-content-gap)) !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  .pkp_structure_sidebar {
    float: right !important;
    width: var(--jhssr-sidebar-width) !important;
    max-width: var(--jhssr-sidebar-width) !important;
    min-width: var(--jhssr-sidebar-width) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }
}

/* Footer should follow the same 90% alignment */
.pkp_structure_footer {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Article detail pages should not use old fixed widths */
.obj_article_details .main_entry,
.obj_article_details .entry_details,
.obj_article_details section.item.references {
  max-width: 100% !important;
  width: auto !important;
  box-sizing: border-box !important;
}

/* Large homepage image should stay neat inside wider layout */
.pkp_page_index .homepage_image img {
  max-width: 360px !important;
}

/* Tablet and mobile: use normal full screen width with padding */
@media (max-width: 991px) {
  .pkp_head_wrapper,
  .pkp_site_nav_menu,
  .pkp_structure_content,
  .pkp_structure_footer {
    width: 94% !important;
    max-width: 94% !important;
  }

  .pkp_navigation_user_wrapper {
    right: 3% !important;
  }

  .pkp_structure_main,
  .pkp_structure_sidebar {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 576px) {
  .pkp_head_wrapper,
  .pkp_site_nav_menu,
  .pkp_structure_content,
  .pkp_structure_footer {
    width: 94% !important;
    max-width: 94% !important;
  }
}


/* =========================================================
   FINAL HEADER/NAV WIDTH UPDATE — 96%
   Makes pkp_site_name_wrapper and pkp_site_nav_menu content wider
   ========================================================= */

/* Header background remains full browser width */
.pkp_site_name_wrapper,
.pkp_navigation_primary_row {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}

/* Header logo/title inner container = 96% */
.pkp_site_name_wrapper .pkp_head_wrapper,
.has_site_logo .pkp_head_wrapper,
.pkp_head_wrapper {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

/* Navigation white menu inner container = 96% */
.pkp_site_nav_menu,
.pkp_navigation_primary_wrapper {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

/* Keep user menu aligned inside the wider header */
.pkp_navigation_user_wrapper {
  right: 2% !important;
  width: auto !important;
  max-width: none !important;
}

/* Mobile: use full width with safe padding */
@media (max-width: 767px) {
  .pkp_site_name_wrapper .pkp_head_wrapper,
  .has_site_logo .pkp_head_wrapper,
  .pkp_head_wrapper,
  .pkp_site_nav_menu,
  .pkp_navigation_primary_wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .pkp_navigation_user_wrapper {
    right: 15px !important;
  }
}
