/*
DSJHSS public website stylesheet
Designed for OJS 3.4.x and the OJS Default Theme.
Upload through: Dashboard > Website > Appearance > Advanced > Journal Stylesheet.

Brand palette:
Deep green: #0e5a4f
Burgundy:   #8a2533
Warm ivory: #f7f4ee
Ink:        #20262e
*/

/* ---------- 1. Base typography and colour ---------- */

:root {
  --dsjhss-green: #0e5a4f;
  --dsjhss-green-dark: #083f38;
  --dsjhss-burgundy: #8a2533;
  --dsjhss-burgundy-dark: #671b26;
  --dsjhss-ivory: #f7f4ee;
  --dsjhss-paper: #ffffff;
  --dsjhss-ink: #20262e;
  --dsjhss-muted: #5e6872;
  --dsjhss-border: #d9dedb;
  --dsjhss-shadow: 0 4px 16px rgba(20, 35, 32, 0.08);
  --dsjhss-radius: 6px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--dsjhss-ivory);
  color: var(--dsjhss-ink);
  font-family: Arial, Helvetica, "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

p,
li,
dd,
td {
  line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6,
.pkp_page_title,
.obj_article_details .page_title {
  color: var(--dsjhss-green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--dsjhss-green);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover,
a:focus {
  color: var(--dsjhss-burgundy);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(138, 37, 51, 0.35);
  outline-offset: 3px;
}

/* ---------- 2. Header and journal identity ---------- */

.pkp_structure_head {
  background: var(--dsjhss-paper);
  border-bottom: 0;
}

.pkp_site_name_wrapper {
  background: var(--dsjhss-paper);
  padding-top: 12px;
  padding-bottom: 12px;
}

.pkp_site_name {
  padding-top: 0;
  padding-bottom: 0;
}

.pkp_site_name .is_img img,
.pkp_site_name img {
  width: auto;
  max-width: 100%;
  max-height: 150px;
}

.pkp_site_name .is_text {
  color: var(--dsjhss-green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

/* ---------- 3. Main navigation ---------- */

.pkp_navigation_primary_wrapper {
  background: var(--dsjhss-green);
  border-top: 4px solid var(--dsjhss-burgundy);
  box-shadow: 0 2px 8px rgba(20, 35, 32, 0.12);
}

.pkp_navigation_primary {
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.pkp_navigation_primary > li > a {
  color: #ffffff;
  padding-top: 15px;
  padding-bottom: 15px;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus {
  color: #ffffff;
  background: var(--dsjhss-green-dark);
  border-color: transparent;
}

.pkp_navigation_primary ul {
  background: var(--dsjhss-paper);
  border: 1px solid var(--dsjhss-border);
  border-radius: 0 0 var(--dsjhss-radius) var(--dsjhss-radius);
  box-shadow: var(--dsjhss-shadow);
}

.pkp_navigation_primary ul a {
  color: var(--dsjhss-ink);
}

.pkp_navigation_primary ul a:hover,
.pkp_navigation_primary ul a:focus {
  color: var(--dsjhss-burgundy);
  background: #f2f5f3;
}

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

.pkp_navigation_user > li > a:hover,
.pkp_navigation_user > li > a:focus,
.pkp_navigation_search_wrapper a:hover,
.pkp_navigation_search_wrapper a:focus {
  color: #ffffff;
  opacity: 0.86;
}

/* ---------- 4. Page layout ---------- */

.pkp_structure_page {
  background: transparent;
}

.pkp_structure_content {
  padding-top: 32px;
  padding-bottom: 44px;
}

.pkp_structure_main {
  background: var(--dsjhss-paper);
  border: 1px solid var(--dsjhss-border);
  border-radius: var(--dsjhss-radius);
  box-shadow: var(--dsjhss-shadow);
  padding: 32px;
}

.pkp_structure_main::before,
.pkp_structure_main::after {
  display: none;
}

.pkp_page_title {
  border-bottom: 3px solid var(--dsjhss-burgundy);
  margin-bottom: 24px;
  padding-bottom: 12px;
}

/* ---------- 5. Breadcrumbs ---------- */

.cmp_breadcrumbs {
  color: var(--dsjhss-muted);
  font-size: 0.88rem;
  margin-bottom: 18px;
}

.cmp_breadcrumbs a {
  color: var(--dsjhss-green);
}

/* ---------- 6. Homepage ---------- */

.pkp_page_index .homepage_image {
  margin-bottom: 28px;
}

.pkp_page_index .homepage_image img {
  border-radius: var(--dsjhss-radius);
  box-shadow: var(--dsjhss-shadow);
  display: block;
  height: auto;
  width: 100%;
}

.pkp_page_index .additional_content,
.pkp_page_index .journal_summary {
  color: var(--dsjhss-ink);
  font-size: 1.02rem;
}

.pkp_page_index .current_issue {
  border-top: 0;
  margin-top: 30px;
  padding-top: 0;
}

.pkp_page_index .current_issue h2,
.pkp_page_index .cmp_announcements > h2 {
  border-left: 5px solid var(--dsjhss-burgundy);
  padding-left: 13px;
}

.cmp_announcements .obj_announcement_summary {
  background: #fbfcfb;
  border: 1px solid var(--dsjhss-border);
  border-left: 5px solid var(--dsjhss-green);
  border-radius: var(--dsjhss-radius);
  margin-bottom: 16px;
  padding: 18px 20px;
}

.cmp_announcements .date {
  color: var(--dsjhss-muted);
  font-size: 0.88rem;
}

/* ---------- 7. Current issue and archive lists ---------- */

.obj_issue_toc .heading {
  background: #f4f7f5;
  border: 1px solid var(--dsjhss-border);
  border-radius: var(--dsjhss-radius);
  margin-bottom: 24px;
  padding: 22px;
}

.obj_issue_toc .cover img,
.obj_issue_summary .cover img {
  border: 1px solid var(--dsjhss-border);
  box-shadow: var(--dsjhss-shadow);
  height: auto;
}

.obj_issue_toc .sections {
  margin-top: 22px;
}

.obj_issue_toc .section > h2,
.obj_issue_toc .section > h3 {
  border-bottom: 2px solid var(--dsjhss-border);
  color: var(--dsjhss-green-dark);
  padding-bottom: 10px;
}

.obj_article_summary {
  border-bottom: 1px solid var(--dsjhss-border);
  padding-top: 21px;
  padding-bottom: 21px;
}

.obj_article_summary:last-child {
  border-bottom: 0;
}

.obj_article_summary .title a {
  color: var(--dsjhss-green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 700;
}

.obj_article_summary .title a:hover,
.obj_article_summary .title a:focus {
  color: var(--dsjhss-burgundy);
}

.obj_article_summary .authors,
.obj_article_summary .pages {
  color: var(--dsjhss-muted);
}

/* ---------- 8. Article detail pages ---------- */

.obj_article_details .page_title {
  color: var(--dsjhss-green-dark);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.obj_article_details .authors,
.obj_article_details .item {
  margin-bottom: 22px;
}

.obj_article_details .label {
  color: var(--dsjhss-burgundy-dark);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.obj_article_details .abstract {
  text-align: justify;
}

.obj_article_details .references {
  overflow-wrap: anywhere;
}

.obj_article_details .references p {
  padding-left: 1.25em;
  text-indent: -1.25em;
}

/* ---------- 9. Buttons and galley links ---------- */

.cmp_button,
.cmp_form .buttons button,
.pkp_button,
.obj_galley_link,
a.block_make_submission_link {
  background: var(--dsjhss-green);
  border: 1px solid var(--dsjhss-green);
  border-radius: 4px;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease;
}

.cmp_button:hover,
.cmp_button:focus,
.cmp_form .buttons button:hover,
.cmp_form .buttons button:focus,
.pkp_button:hover,
.pkp_button:focus,
.obj_galley_link:hover,
.obj_galley_link:focus,
a.block_make_submission_link:hover,
a.block_make_submission_link:focus {
  background: var(--dsjhss-burgundy);
  border-color: var(--dsjhss-burgundy);
  color: #ffffff;
  transform: translateY(-1px);
}

.obj_galley_link {
  padding: 7px 12px;
}

/* ---------- 10. Sidebar blocks ---------- */

.pkp_structure_sidebar {
  padding-left: 28px;
}

.pkp_block {
  background: var(--dsjhss-paper);
  border: 1px solid var(--dsjhss-border);
  border-radius: var(--dsjhss-radius);
  box-shadow: 0 2px 10px rgba(20, 35, 32, 0.05);
  margin-bottom: 22px;
  padding: 20px;
}

.pkp_block .title {
  border-bottom: 2px solid var(--dsjhss-burgundy);
  color: var(--dsjhss-green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 9px;
}

.pkp_block ul {
  padding-left: 1.1rem;
}

.pkp_block img {
  height: auto;
  max-width: 100%;
}

/* ---------- 11. Forms, tables and alerts ---------- */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
select,
textarea {
  background: #ffffff;
  border: 1px solid #aeb8b3;
  border-radius: 4px;
  color: var(--dsjhss-ink);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--dsjhss-green);
  box-shadow: 0 0 0 3px rgba(14, 90, 79, 0.14);
}

table {
  border-collapse: collapse;
  width: 100%;
}

th {
  background: var(--dsjhss-green);
  color: #ffffff;
}

th,
td {
  border: 1px solid var(--dsjhss-border);
  padding: 10px 12px;
  vertical-align: top;
}

tr:nth-child(even) td {
  background: #f8faf9;
}

/* ---------- 12. Footer ---------- */

.pkp_structure_footer_wrapper {
  background: var(--dsjhss-green-dark);
  border-top: 6px solid var(--dsjhss-burgundy);
  color: #ffffff;
}

.pkp_structure_footer {
  padding-top: 30px;
  padding-bottom: 30px;
}

.pkp_structure_footer,
.pkp_structure_footer p,
.pkp_structure_footer li,
.pkp_structure_footer h2,
.pkp_structure_footer h3 {
  color: #ffffff;
}

.pkp_structure_footer a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.pkp_structure_footer a:hover,
.pkp_structure_footer a:focus {
  color: #f3d9dd;
}

/* ---------- 13. Urdu support ---------- */

:lang(ur),
html[lang^="ur"] body {
  font-family: "Noto Nastaliq Urdu", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}

:lang(ur) {
  direction: rtl;
  text-align: right;
}

/* ---------- 14. Responsive adjustments ---------- */

@media (max-width: 991px) {
  .pkp_structure_content {
    padding-top: 18px;
  }

  .pkp_structure_main {
    padding: 22px;
  }

  .pkp_structure_sidebar {
    padding-left: 0;
    padding-top: 24px;
  }

  .pkp_navigation_primary_wrapper {
    border-top-width: 3px;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 15px;
  }

  .pkp_site_name_wrapper {
    padding: 8px 12px;
  }

  .pkp_site_name .is_img img,
  .pkp_site_name img {
    max-height: 105px;
  }

  .pkp_structure_main {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    padding: 18px 15px;
  }

  .obj_article_details .abstract {
    text-align: left;
  }

  :lang(ur) .obj_article_details .abstract {
    text-align: right;
  }

  .obj_issue_toc .heading {
    padding: 16px;
  }
}

/* ---------- 15. Print ---------- */

@media print {
  body {
    background: #ffffff;
    color: #000000;
  }

  .pkp_structure_head,
  .pkp_structure_sidebar,
  .pkp_structure_footer_wrapper,
  .cmp_breadcrumbs,
  .obj_galley_link,
  a.block_make_submission_link {
    display: none !important;
  }

  .pkp_structure_main {
    border: 0;
    box-shadow: none;
    padding: 0;
    width: 100%;
  }

  a {
    color: #000000;
    text-decoration: none;
  }
}

/* ==========================================================
   DSJHSS FULL-BANNER HEADER CORRECTION — July 2026
   Shows the complete banner without cropping and makes the
   surrounding header visually continuous with the artwork.
   ========================================================== */

/* Use a light background matching the banner instead of the
   previous solid-green header background. */
.pkp_structure_head {
  background: #fbf6f2 !important;
  border-bottom: 0 !important;
}

/* Keep Login / Register / Admin visible in a compact strip. */
.pkp_navigation_user_wrapper {
  background: var(--dsjhss-green-dark) !important;
  border-bottom: 2px solid var(--dsjhss-burgundy) !important;
  min-height: 36px;
}

.pkp_navigation_user,
.pkp_navigation_user ul {
  background: transparent !important;
}

.pkp_navigation_user > li > a,
.pkp_navigation_user a,
.pkp_navigation_user .profile > a,
.pkp_navigation_user .tasks > a {
  color: #ffffff !important;
  font-weight: 700;
  text-shadow: none !important;
}

.pkp_navigation_user > li > a:hover,
.pkp_navigation_user > li > a:focus,
.pkp_navigation_user a:hover,
.pkp_navigation_user a:focus {
  background: rgba(255, 255, 255, 0.13) !important;
  color: #ffffff !important;
}

/* Let the banner occupy the complete header width. */
.pkp_site_name_wrapper {
  background: #fbf6f2 !important;
  box-sizing: border-box !important;
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.pkp_site_name {
  display: block !important;
  box-sizing: border-box !important;
  max-width: 2048px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.pkp_site_name > a,
.pkp_site_name .is_img {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Crucial change: use the banner's natural aspect ratio.
   object-fit: contain prevents any top, bottom or side cropping. */
.pkp_site_name .is_img img,
.pkp_site_name img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 2048px !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Navigation remains separate and aligned below the banner. */
.pkp_navigation_primary_wrapper {
  background: var(--dsjhss-green) !important;
  border-top: 4px solid var(--dsjhss-burgundy) !important;
  width: 100% !important;
  margin: 0 !important;
}

.pkp_navigation_primary_wrapper > .pkp_head_wrapper {
  box-sizing: border-box !important;
  max-width: 1280px !important;
  width: calc(100% - 32px) !important;
  margin: 0 auto !important;
}

/* Retain a wider content area and reduce excessive side gaps. */
@media (min-width: 992px) {
  .pkp_structure_content,
  .pkp_structure_footer {
    max-width: 1280px !important;
    width: calc(100% - 32px) !important;
  }

  .pkp_navigation_user_wrapper .pkp_head_wrapper {
    max-width: 1280px !important;
    width: calc(100% - 32px) !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 991px) {
  .pkp_navigation_primary_wrapper > .pkp_head_wrapper,
  .pkp_navigation_user_wrapper .pkp_head_wrapper {
    width: calc(100% - 20px) !important;
  }
}

@media (max-width: 600px) {
  .pkp_navigation_primary_wrapper > .pkp_head_wrapper,
  .pkp_navigation_user_wrapper .pkp_head_wrapper {
    width: 100% !important;
  }

  /* Preserve the complete banner on phones as well. */
  .pkp_site_name .is_img img,
  .pkp_site_name img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
}
