/* Mahasara custom style v3
   Teal + gold header, running announcement, current issue accents,
   and tighter spacing in the main left content column.
*/

:root{
  --mahasara-teal:#0B8793;
  --mahasara-gold:#C57F00;
  --mahasara-gold-light:#FFE9A8;
  --mahasara-navy:#17324D;
}

/* HEADER / NAVIGATION */
.pkp_structure_head,
.pkp_head_wrapper,
.pkp_site_nav_menu,
.pkp_navigation_primary_wrapper {
  background: var(--mahasara-teal);
}

.pkp_structure_head {
  border-bottom: 4px solid var(--mahasara-gold);
}

.pkp_navigation_primary > li > a,
.pkp_navigation_user > li > a,
.pkp_search_desktop {
  color: #fff;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus,
.pkp_navigation_user > li > a:hover,
.pkp_navigation_user > li > a:focus,
.pkp_search_desktop:hover,
.pkp_search_desktop:focus {
  color: var(--mahasara-gold-light);
}

.pkp_navigation_primary > li > a:after {
  background: var(--mahasara-gold);
}

/* ANNOUNCEMENT RUNNING TEXT */
.mahasara-announcement-window {
  overflow: hidden;
  white-space: nowrap;
}

.mahasara-announcement-track {
  display: inline-block;
  white-space: nowrap;
  min-width: 100%;
  padding-left: 100%;
  animation: mahasaraAnnouncementRun 18s linear infinite;
  -webkit-animation: mahasaraAnnouncementRun 18s linear infinite;
}

.mahasara-announcement-window:hover .mahasara-announcement-track {
  animation-play-state: paused;
  -webkit-animation-play-state: paused;
}

@keyframes mahasaraAnnouncementRun {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

@-webkit-keyframes mahasaraAnnouncementRun {
  from { -webkit-transform: translateX(0); }
  to   { -webkit-transform: translateX(-100%); }
}

/* CURRENT ISSUE ACCENT */
.mahasara-issue-box {
  border-left: 4px solid var(--mahasara-gold);
  padding-left: 16px;
  margin: 0 0 12px 0;
}

.mahasara-issue-link {
  display: inline-block;
  margin-top: 6px;
  padding: 8px 14px;
  background: var(--mahasara-gold-light);
  border: 1px solid var(--mahasara-gold);
  border-left: 4px solid var(--mahasara-gold);
  border-radius: 4px;
  color: var(--mahasara-navy) !important;
  font-weight: 700;
  text-decoration: none !important;
}

.mahasara-issue-link:hover,
.mahasara-issue-link:focus {
  background: var(--mahasara-gold);
  color: #fff !important;
}

/* TIGHTER SPACING — MAIN LEFT COLUMN */
.page_index_journal .homepage_about {
  margin-bottom: 24px !important;
  padding-bottom: 0 !important;
}

.page_index_journal .homepage_about h2 {
  margin-bottom: 14px !important;
}

.page_index_journal .homepage_about p {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  line-height: 1.65;
}

.page_index_journal .current_issue {
  margin-top: 18px !important;
  padding-top: 0 !important;
}

.page_index_journal .current_issue > h2 {
  margin-top: 0 !important;
  margin-bottom: 14px !important;
}

.page_index_journal .current_issue .obj_issue_summary {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.page_index_journal .current_issue .obj_issue_summary .title {
  margin-bottom: 14px !important;
}

.page_index_journal .current_issue .obj_issue_summary .description {
  margin-top: 0 !important;
  margin-bottom: 8px !important;
}

.page_index_journal .current_issue .obj_issue_summary .published {
  margin-top: 8px !important;
  margin-bottom: 12px !important;
}

.page_index_journal .current_issue .obj_issue_summary .cover {
  margin-right: 24px !important;
}

.page_index_journal .current_issue .sections {
  margin-top: 26px !important;
  padding-top: 18px !important;
}

/* Slightly tighter article list */
.page_index_journal .current_issue .sections .section {
  margin-top: 0 !important;
}

.page_index_journal .current_issue .sections .obj_article_summary {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}
/* ===== V4: CURRENT ISSUE BUTTON + TIGHTER GAP TO ARTICLES ===== */

/* Style the link inside Current Issue even if OJS strips custom classes */
.page_index_journal .current_issue .obj_issue_summary .description a,
.page_index_journal .current_issue .description a {
  display: inline-block !important;
  margin-top: 8px !important;
  padding: 8px 14px !important;
  background: var(--mahasara-gold-light) !important;
  border: 1px solid var(--mahasara-gold) !important;
  border-left: 4px solid var(--mahasara-gold) !important;
  border-radius: 4px !important;
  color: var(--mahasara-navy) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.page_index_journal .current_issue .obj_issue_summary .description a:hover,
.page_index_journal .current_issue .obj_issue_summary .description a:focus,
.page_index_journal .current_issue .description a:hover,
.page_index_journal .current_issue .description a:focus {
  background: var(--mahasara-gold) !important;
  color: #ffffff !important;
}

/* Add a subtle gold accent to the issue description block */
.page_index_journal .current_issue .obj_issue_summary .description,
.page_index_journal .current_issue .description {
  border-left: 4px solid var(--mahasara-gold);
  padding-left: 16px !important;
}

/* Reduce excess vertical space before Articles */
.page_index_journal .current_issue .obj_issue_summary {
  margin-bottom: 10px !important;
  padding-bottom: 0 !important;
}

.page_index_journal .current_issue .sections {
  margin-top: 12px !important;
  padding-top: 12px !important;
}

.page_index_journal .current_issue .sections > h2,
.page_index_journal .current_issue .sections .section > h2 {
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}
/* ===== V5: ARTICLES LIST — TEAL + GOLD ===== */

/* Section heading */
.page_index_journal .current_issue .sections .section > h2,
.page_index_journal .current_issue .sections > h2 {
  color: var(--mahasara-navy) !important;
  font-weight: 700 !important;
  border-left: 4px solid var(--mahasara-gold);
  padding-left: 12px !important;
  margin-bottom: 14px !important;
}

/* Article title */
.page_index_journal .obj_article_summary .title,
.page_index_journal .obj_article_summary .title a {
  color: var(--mahasara-teal) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.page_index_journal .obj_article_summary .title a:hover,
.page_index_journal .obj_article_summary .title a:focus {
  color: var(--mahasara-gold) !important;
}

/* Author line */
.page_index_journal .obj_article_summary .authors {
  color: #394b52 !important;
  margin-top: 4px !important;
  margin-bottom: 8px !important;
}

/* PDF / galley buttons */
.page_index_journal .obj_article_summary .galleys_links a,
.page_index_journal .obj_article_summary .obj_galley_link {
  display: inline-block !important;
  background: var(--mahasara-teal) !important;
  color: #ffffff !important;
  border: 1px solid var(--mahasara-teal) !important;
  border-bottom: 3px solid var(--mahasara-gold) !important;
  border-radius: 4px !important;
  padding: 7px 13px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: .18s ease-in-out;
}

.page_index_journal .obj_article_summary .galleys_links a:hover,
.page_index_journal .obj_article_summary .galleys_links a:focus,
.page_index_journal .obj_article_summary .obj_galley_link:hover,
.page_index_journal .obj_article_summary .obj_galley_link:focus {
  background: var(--mahasara-gold) !important;
  border-color: var(--mahasara-gold) !important;
  color: #ffffff !important;
}

/* Compact, neat spacing between articles */
.page_index_journal .obj_article_summary {
  padding: 14px 0 16px 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid #e4eaec;
}

.page_index_journal .obj_article_summary:last-child {
  border-bottom: 0;
}
/* ===== V6: ARTICLE HEADING + COMPACT ARTICLE SPACING ===== */

/* Make the "Articles" heading clearer and consistent with teal-gold identity */
.page_index_journal .current_issue .section > h2,
.page_index_journal .current_issue .section h2,
.page_index_journal .current_issue .section_title {
  color: var(--mahasara-teal) !important;
  font-weight: 700 !important;
  border-left: 4px solid var(--mahasara-gold) !important;
  border-bottom: 1px solid #e6ecee !important;
  padding: 0 0 8px 12px !important;
  margin: 0 0 14px 0 !important;
}

/* Compact spacing between article entries */
.page_index_journal .cmp_article_list,
.page_index_journal .current_issue .cmp_article_list {
  margin-top: 0 !important;
}

.page_index_journal .cmp_article_list > li,
.page_index_journal .current_issue .cmp_article_list > li {
  margin: 0 !important;
  padding: 14px 0 16px 0 !important;
  border-bottom: 1px solid #e5ebed !important;
}

.page_index_journal .cmp_article_list > li:last-child,
.page_index_journal .current_issue .cmp_article_list > li:last-child {
  border-bottom: 0 !important;
}

/* Remove excessive internal spacing from article summaries */
.page_index_journal .cmp_article_list .obj_article_summary,
.page_index_journal .current_issue .cmp_article_list .obj_article_summary {
  margin: 0 !important;
  padding: 0 !important;
}

.page_index_journal .cmp_article_list .obj_article_summary .title,
.page_index_journal .current_issue .cmp_article_list .obj_article_summary .title {
  margin: 0 0 5px 0 !important;
  line-height: 1.45 !important;
}

.page_index_journal .cmp_article_list .obj_article_summary .authors,
.page_index_journal .current_issue .cmp_article_list .obj_article_summary .authors {
  margin: 0 0 8px 0 !important;
  line-height: 1.45 !important;
}

.page_index_journal .cmp_article_list .obj_article_summary .galleys_links,
.page_index_journal .current_issue .cmp_article_list .obj_article_summary .galleys_links {
  margin: 0 !important;
}
/* ===== V7: "ARTICLES" SECTION TITLE ===== */

/* Target the section heading directly, without touching article titles */
.page_index_journal .current_issue .sections > .section > h2,
.page_index_journal .current_issue .sections > .section > h3,
.page_index_journal .current_issue .sections > .section > .title {
  position: relative;
  color: var(--mahasara-teal) !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  line-height: 1.35 !important;
  margin: 0 0 18px 0 !important;
  padding: 0 0 10px 14px !important;
  border-left: 4px solid var(--mahasara-gold) !important;
  border-bottom: 1px solid #e4eaec !important;
}

/* Short gold accent line under the heading */
.page_index_journal .current_issue .sections > .section > h2::after,
.page_index_journal .current_issue .sections > .section > h3::after,
.page_index_journal .current_issue .sections > .section > .title::after {
  content: "";
  position: absolute;
  left: 14px;
  bottom: -1px;
  width: 58px;
  height: 3px;
  background: var(--mahasara-gold);
  border-radius: 2px;
}
/* ===== V8: RIGHT SIDEBAR SPACING ===== */

/* Reduce the large vertical gaps between sidebar blocks */
.pkp_structure_sidebar > .pkp_block {
  margin-top: 0 !important;
  margin-bottom: 18px !important;
}

/* OJS custom blocks sometimes add their own outer spacing */
.pkp_structure_sidebar .block_custom {
  margin-top: 0 !important;
  margin-bottom: 18px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Keep the first sidebar block close to the top, but not cramped */
.pkp_structure_sidebar > .pkp_block:first-child {
  margin-top: 0 !important;
}

/* Remove extra blank space caused by paragraphs around custom-block HTML */
.pkp_structure_sidebar .pkp_block p:first-child {
  margin-top: 0 !important;
}

.pkp_structure_sidebar .pkp_block p:last-child {
  margin-bottom: 0 !important;
}

/* Make spacing between major sidebar groups consistent */
.pkp_structure_sidebar .pkp_block + .pkp_block {
  margin-top: 0 !important;
}

/* On desktop, keep the sidebar visually compact */
@media (min-width: 992px) {
  .pkp_structure_sidebar > .pkp_block {
    margin-bottom: 16px !important;
  }
}
/* ===== V9: MAIN LEFT SECTION HEADINGS ===== */

/* About the Journal */
.page_index_journal .homepage_about > h2,
.page_index_journal .homepage_about h2 {
  position: relative;
  color: var(--mahasara-teal) !important;
  font-weight: 700 !important;
  font-size: 22px !important;
  line-height: 1.35 !important;
  margin: 0 0 16px 0 !important;
  padding: 0 0 10px 14px !important;
  border-left: 4px solid var(--mahasara-gold) !important;
  border-bottom: 1px solid #e4eaec !important;
}

.page_index_journal .homepage_about > h2::after,
.page_index_journal .homepage_about h2::after {
  content: "";
  position: absolute;
  left: 14px;
  bottom: -1px;
  width: 64px;
  height: 3px;
  background: var(--mahasara-gold);
  border-radius: 2px;
}

/* Current Issue */
.page_index_journal .current_issue > h2,
.page_index_journal .current_issue h2:first-child {
  position: relative;
  color: var(--mahasara-teal) !important;
  font-weight: 700 !important;
  font-size: 22px !important;
  line-height: 1.35 !important;
  margin: 0 0 16px 0 !important;
  padding: 0 0 10px 14px !important;
  border-left: 4px solid var(--mahasara-gold) !important;
  border-bottom: 1px solid #e4eaec !important;
}

.page_index_journal .current_issue > h2::after,
.page_index_journal .current_issue h2:first-child::after {
  content: "";
  position: absolute;
  left: 14px;
  bottom: -1px;
  width: 64px;
  height: 3px;
  background: var(--mahasara-gold);
  border-radius: 2px;
}
/* ===== V10: PARAGRAPH TYPOGRAPHY — ABOUT + CURRENT ISSUE ===== */

/* About the Journal paragraphs */
.page_index_journal .homepage_about p {
  color: #2f3b40 !important;
  font-size: 15.5px !important;
  line-height: 1.75 !important;
  margin: 0 0 14px 0 !important;
}

.page_index_journal .homepage_about p:last-child {
  margin-bottom: 0 !important;
}

/* Keep emphasis readable without becoming too heavy */
.page_index_journal .homepage_about strong {
  color: #172b35 !important;
  font-weight: 700 !important;
}

/* Current Issue description */
.page_index_journal .current_issue .obj_issue_summary .description,
.page_index_journal .current_issue .description {
  color: #2f3b40 !important;
  font-size: 15.5px !important;
  line-height: 1.72 !important;
}

.page_index_journal .current_issue .obj_issue_summary .description p,
.page_index_journal .current_issue .description p {
  margin: 0 0 12px 0 !important;
}

.page_index_journal .current_issue .obj_issue_summary .description p:last-child,
.page_index_journal .current_issue .description p:last-child {
  margin-bottom: 0 !important;
}

/* Improve the spacing around issue metadata */
.page_index_journal .current_issue .obj_issue_summary .published {
  margin-top: 10px !important;
  line-height: 1.55 !important;
}

/* Keep paragraph width comfortable on wide screens */
@media (min-width: 992px) {
  .page_index_journal .homepage_about {
    max-width: 860px;
  }

  .page_index_journal .current_issue .obj_issue_summary .description,
  .page_index_journal .current_issue .description {
    max-width: 650px;
  }
}
/* ===== V11: CLEAN PARAGRAPH LAYOUT ===== */

/* Let the About section use the available content width */
.page_index_journal .homepage_about {
  max-width: none !important;
}

/* Cleaner paragraph rhythm */
.page_index_journal .homepage_about p {
  max-width: none !important;
  margin: 0 0 16px 0 !important;
  padding: 0 !important;
  color: #2f3b40 !important;
  font-size: 15.5px !important;
  line-height: 1.72 !important;
  text-align: left !important;
  letter-spacing: 0 !important;
}

.page_index_journal .homepage_about p:last-child {
  margin-bottom: 0 !important;
}

/* Keep the first bold journal name visually attached to the paragraph */
.page_index_journal .homepage_about p strong:first-child {
  color: #17324d !important;
  font-weight: 700 !important;
}

/* Current Issue: remove the narrow text restriction that caused awkward wrapping */
.page_index_journal .current_issue .obj_issue_summary .description,
.page_index_journal .current_issue .description {
  max-width: none !important;
  width: auto !important;
  color: #2f3b40 !important;
  font-size: 15.5px !important;
  line-height: 1.70 !important;
  text-align: left !important;
}

/* Paragraph spacing inside Current Issue */
.page_index_journal .current_issue .obj_issue_summary .description p,
.page_index_journal .current_issue .description p {
  margin: 0 0 13px 0 !important;
  padding: 0 !important;
}

.page_index_journal .current_issue .obj_issue_summary .description p:last-child,
.page_index_journal .current_issue .description p:last-child {
  margin-bottom: 0 !important;
}

/* Keep text away from the issue cover and align the block neatly */
@media (min-width: 768px) {
  .page_index_journal .current_issue .obj_issue_summary .description {
    padding-right: 8px !important;
  }
}

/* Published line: compact and aligned */
.page_index_journal .current_issue .obj_issue_summary .published {
  margin-top: 10px !important;
  margin-bottom: 6px !important;
  line-height: 1.5 !important;
}

/* ===== V12: JUSTIFIED, CLEAN ACADEMIC PARAGRAPHS ===== */

.page_index_journal .homepage_about p {
  text-align: justify !important;
  text-justify: inter-word !important;
  hyphens: auto;
  -webkit-hyphens: auto;
  font-size: 15.5px !important;
  line-height: 1.68 !important;
  margin: 0 0 15px 0 !important;
  color: #2f3b40 !important;
}

.page_index_journal .current_issue .obj_issue_summary .description,
.page_index_journal .current_issue .description {
  text-align: justify !important;
  text-justify: inter-word !important;
  hyphens: auto;
  -webkit-hyphens: auto;
  font-size: 15.5px !important;
  line-height: 1.68 !important;
  color: #2f3b40 !important;
}

.page_index_journal .current_issue .obj_issue_summary .description p,
.page_index_journal .current_issue .description p {
  text-align: justify !important;
  text-justify: inter-word !important;
  margin: 0 0 12px 0 !important;
}

.page_index_journal .homepage_about strong {
  color: #17324d !important;
  font-weight: 700 !important;
}
/* ===== V13: POLISHED JUSTIFY — NO AWKWARD HYPHENATION ===== */

/* Keep paragraphs justified but never split words with automatic hyphens */
.page_index_journal .homepage_about p,
.page_index_journal .current_issue .obj_issue_summary .description,
.page_index_journal .current_issue .description,
.page_index_journal .current_issue .obj_issue_summary .description p,
.page_index_journal .current_issue .description p {
  text-align: justify !important;
  text-align-last: left !important;
  text-justify: inter-word !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
  -ms-hyphens: none !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  word-spacing: normal !important;
  letter-spacing: 0 !important;
}

/* Slightly refine reading rhythm */
.page_index_journal .homepage_about p {
  line-height: 1.66 !important;
  margin-bottom: 15px !important;
}

.page_index_journal .current_issue .obj_issue_summary .description,
.page_index_journal .current_issue .description {
  line-height: 1.66 !important;
}
/* ===== V14: FINAL PARAGRAPH BALANCE ===== */

/* About the Journal can remain justified because the text column is wide */
.page_index_journal .homepage_about p {
  text-align: justify !important;
  text-align-last: left !important;
  text-justify: inter-word !important;
  word-spacing: normal !important;
  letter-spacing: 0 !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
}

/* Current Issue is narrower, so left alignment reads much better */
.page_index_journal .current_issue .obj_issue_summary .description,
.page_index_journal .current_issue .description,
.page_index_journal .current_issue .obj_issue_summary .description p,
.page_index_journal .current_issue .description p {
  text-align: left !important;
  text-align-last: auto !important;
  text-justify: auto !important;
  word-spacing: normal !important;
  letter-spacing: 0 !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
  line-height: 1.66 !important;
}
/* ===== V15: TIGHTER CURRENT ISSUE -> ARTICLES GAP ===== */

/* Remove excess blank space below the Current Issue summary */
.page_index_journal .current_issue .obj_issue_summary {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Bring the Articles section closer to the Current Issue */
.page_index_journal .current_issue .sections {
  margin-top: 2px !important;
  padding-top: 2px !important;
}

/* Keep the Articles heading compact but readable */
.page_index_journal .current_issue .sections > .section > h2,
.page_index_journal .current_issue .sections > .section > h3,
.page_index_journal .current_issue .sections > .section > .title {
  margin-top: 0 !important;
  margin-bottom: 14px !important;
}

/* Slightly tighten the published line and button area */
.page_index_journal .current_issue .obj_issue_summary .published {
  margin-top: 8px !important;
  margin-bottom: 0 !important;
}
/* ===== V16: FINAL COMPACT GAP BETWEEN ISSUE AND ARTICLES ===== */

@media (min-width: 992px) {
  .page_index_journal .current_issue .sections {
    margin-top: -22px !important;
    padding-top: 0 !important;
  }
}

/* Keep mobile/tablet safe */
@media (max-width: 991px) {
  .page_index_journal .current_issue .sections {
    margin-top: 8px !important;
    padding-top: 8px !important;
  }
}
/* ===== V17: PROFESSIONAL CURRENT ISSUE LAYOUT ===== */

/* Build a clean two-column layout for the issue summary */
@media (min-width: 768px) {
  .page_index_journal .current_issue .obj_issue_summary {
    display: grid !important;
    grid-template-columns: 215px minmax(0, 1fr) !important;
    column-gap: 32px !important;
    row-gap: 8px !important;
    align-items: start !important;
  }

  /* Issue title spans the full width */
  .page_index_journal .current_issue .obj_issue_summary > .title {
    grid-column: 1 / -1 !important;
    margin: 0 0 10px 0 !important;
  }

  /* Cover stays aligned to the top-left */
  .page_index_journal .current_issue .obj_issue_summary > .cover {
    grid-column: 1 !important;
    grid-row: 2 / span 3 !important;
    margin: 0 !important;
    width: 215px !important;
    max-width: 215px !important;
  }

  .page_index_journal .current_issue .obj_issue_summary > .cover img {
    display: block !important;
    width: 215px !important;
    height: auto !important;
  }

  /* Description sits neatly beside the cover */
  .page_index_journal .current_issue .obj_issue_summary > .description {
    grid-column: 2 !important;
    grid-row: 2 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-left: 0 !important;
    max-width: 650px !important;
  }

  .page_index_journal .current_issue .obj_issue_summary > .description p {
    margin: 0 0 12px 0 !important;
    text-align: left !important;
    line-height: 1.62 !important;
    font-size: 15.5px !important;
  }

  /* Keep the current-issue button visually attached to the description */
  .page_index_journal .current_issue .obj_issue_summary > .description a {
    margin-top: 4px !important;
  }

  /* Published line directly below the description */
  .page_index_journal .current_issue .obj_issue_summary > .published {
    grid-column: 2 !important;
    grid-row: 3 !important;
    margin: 4px 0 0 0 !important;
    padding: 0 !important;
  }

  /* Pull Articles closer without crowding */
  .page_index_journal .current_issue .sections {
    margin-top: 18px !important;
    padding-top: 0 !important;
  }
}

/* Mobile/tablet fallback */
@media (max-width: 767px) {
  .page_index_journal .current_issue .obj_issue_summary {
    display: block !important;
  }

  .page_index_journal .current_issue .obj_issue_summary > .cover {
    margin: 0 0 16px 0 !important;
  }

  .page_index_journal .current_issue .obj_issue_summary > .description {
    max-width: none !important;
  }
}
/* ===== V18: MORE COMPACT CURRENT ISSUE CARD ===== */

@media (min-width: 768px) {
  .page_index_journal .current_issue .obj_issue_summary {
    grid-template-columns: 185px minmax(0, 1fr) !important;
    column-gap: 28px !important;
    row-gap: 6px !important;
  }

  .page_index_journal .current_issue .obj_issue_summary > .cover {
    width: 185px !important;
    max-width: 185px !important;
    margin: 0 !important;
  }

  .page_index_journal .current_issue .obj_issue_summary > .cover img {
    width: 185px !important;
    height: auto !important;
  }

  .page_index_journal .current_issue .obj_issue_summary > .description {
    max-width: none !important;
    margin: 0 !important;
  }

  .page_index_journal .current_issue .obj_issue_summary > .description p {
    line-height: 1.58 !important;
    margin-bottom: 10px !important;
  }

  .page_index_journal .current_issue .obj_issue_summary > .published {
    margin-top: 2px !important;
  }

  /* Pull Articles up closer to the issue block */
  .page_index_journal .current_issue .sections {
    margin-top: -14px !important;
    padding-top: 0 !important;
  }
}
/* ===== V19: STRAIGHT / JUSTIFIED CURRENT ISSUE PARAGRAPH ===== */

/* Make the Current Issue paragraph visually straight on both sides */
@media (min-width: 768px) {
  .page_index_journal .current_issue .obj_issue_summary > .description p {
    text-align: justify !important;
    text-align-last: left !important;
    text-justify: inter-word !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    letter-spacing: 0 !important;
    word-spacing: 0 !important;
    font-size: 15px !important;
    line-height: 1.62 !important;
    max-width: 100% !important;
  }
}

/* Keep smaller screens naturally left-aligned */
@media (max-width: 767px) {
  .page_index_journal .current_issue .obj_issue_summary > .description p {
    text-align: left !important;
  }
}
/* ===== V20: FORCE STRAIGHT CURRENT ISSUE PARAGRAPH ===== */

/* Exact selector for the custom Current Issue box inserted in Issue Description */
.page_index_journal .current_issue .mahasara-issue-box > p:first-child {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 12px 0 !important;
  padding: 0 !important;

  text-align: justify !important;
  text-align-last: left !important;
  text-justify: inter-word !important;

  hyphens: none !important;
  -webkit-hyphens: none !important;
  -ms-hyphens: none !important;

  word-break: normal !important;
  overflow-wrap: normal !important;
  white-space: normal !important;

  font-size: 15px !important;
  line-height: 1.62 !important;
  letter-spacing: 0 !important;
}

/* Keep the button paragraph left-aligned */
.page_index_journal .current_issue .mahasara-issue-box > p:last-child {
  text-align: left !important;
  margin: 0 !important;
}

/* Give the text block a little more horizontal room */
@media (min-width: 768px) {
  .page_index_journal .current_issue .obj_issue_summary {
    grid-template-columns: 180px minmax(0, 1fr) !important;
    column-gap: 24px !important;
  }

  .page_index_journal .current_issue .obj_issue_summary > .cover,
  .page_index_journal .current_issue .obj_issue_summary > .cover img {
    width: 180px !important;
    max-width: 180px !important;
  }

  .page_index_journal .current_issue .mahasara-issue-box {
    width: 100% !important;
    max-width: none !important;
  }
}
/* ===== V21: CURRENT ISSUE PARAGRAPH MATCHES ABOUT THE JOURNAL ===== */

/* Give Current Issue more text width so justify looks like About the Journal */
@media (min-width: 768px) {
  .page_index_journal .current_issue .obj_issue_summary {
    grid-template-columns: 160px minmax(0, 1fr) !important;
    column-gap: 22px !important;
  }

  .page_index_journal .current_issue .obj_issue_summary > .cover,
  .page_index_journal .current_issue .obj_issue_summary > .cover img {
    width: 160px !important;
    max-width: 160px !important;
  }

  .page_index_journal .current_issue .obj_issue_summary > .description,
  .page_index_journal .current_issue .mahasara-issue-box {
    width: 100% !important;
    max-width: none !important;
  }
}

/* Use the SAME paragraph treatment as About the Journal */
.page_index_journal .homepage_about p,
.page_index_journal .current_issue .mahasara-issue-box > p:first-child {
  color: #2f3b40 !important;
  font-size: 15.5px !important;
  line-height: 1.66 !important;

  text-align: justify !important;
  text-align-last: left !important;
  text-justify: inter-word !important;

  hyphens: none !important;
  -webkit-hyphens: none !important;
  -ms-hyphens: none !important;

  word-break: normal !important;
  overflow-wrap: normal !important;
  white-space: normal !important;

  word-spacing: normal !important;
  letter-spacing: 0 !important;

  margin: 0 0 15px 0 !important;
  padding: 0 !important;
}

/* Keep the action button paragraph left-aligned */
.page_index_journal .current_issue .mahasara-issue-box > p:last-child {
  text-align: left !important;
  margin: 0 !important;
}
/* ===== V22: EXACT OJS CURRENT ISSUE PARAGRAPH SELECTOR ===== */
/* OJS uses .obj_issue_toc > .heading > .description for the issue description */

.page_index_journal .current_issue .obj_issue_toc > .heading > .description,
.page_index_journal .current_issue .obj_issue_toc > .heading > .description p {
  text-align: justify !important;
  text-align-last: left !important;
  text-justify: inter-word !important;

  hyphens: none !important;
  -webkit-hyphens: none !important;
  -ms-hyphens: none !important;

  word-break: normal !important;
  overflow-wrap: normal !important;
  white-space: normal !important;

  font-size: 15.5px !important;
  line-height: 1.66 !important;
  letter-spacing: 0 !important;

  width: auto !important;
  max-width: none !important;
}

/* Keep paragraph rhythm identical to About the Journal */
.page_index_journal .current_issue .obj_issue_toc > .heading > .description p {
  margin: 0 0 15px 0 !important;
  padding: 0 !important;
}

/* Keep the action/button row left-aligned */
.page_index_journal .current_issue .obj_issue_toc > .heading > .description p:last-child {
  text-align: left !important;
  text-align-last: left !important;
}
/* ===== V23: VISITOR STATISTICS + FOOTER POLISH ===== */

/* Visitor Statistics: center the counter and keep the block compact */
.pkp_structure_sidebar .pkp_block[class*="visitor"],
.pkp_structure_sidebar .pkp_block[id*="visitor"] {
  text-align: center !important;
}

.pkp_structure_sidebar .pkp_block[class*="visitor"] .content,
.pkp_structure_sidebar .pkp_block[id*="visitor"] .content {
  padding: 14px 12px !important;
  text-align: center !important;
}

.pkp_structure_sidebar .pkp_block[class*="visitor"] img,
.pkp_structure_sidebar .pkp_block[id*="visitor"] img,
.pkp_structure_sidebar .pkp_block[class*="visitor"] iframe,
.pkp_structure_sidebar .pkp_block[id*="visitor"] iframe {
  display: inline-block !important;
  margin: 0 auto !important;
  max-width: 100% !important;
}

/* Footer outer area: cleaner and less empty gray space */
.pkp_structure_footer {
  background: #f4f6f7 !important;
  padding-top: 22px !important;
  padding-bottom: 14px !important;
  margin-top: 24px !important;
}

/* Keep the custom Mahasara footer visually centered */
.pkp_footer_content {
  margin: 0 auto !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* OJS/PKP branding: retain attribution, but make it subtle and aligned */
.pkp_brand_footer {
  margin-top: 14px !important;
  padding: 8px 0 0 !important;
  text-align: center !important;
}

.pkp_brand_footer a {
  display: inline-block !important;
  opacity: 0.62 !important;
}

.pkp_brand_footer img {
  width: auto !important;
  max-width: 105px !important;
  height: auto !important;
}

/* Reduce excessive blank space at the very bottom */
.pkp_structure_footer_wrapper,
.pkp_structure_footer {
  min-height: 0 !important;
}
/* ===== V24: COMPACT HOMEPAGE BOTTOM + CENTER OJS/PKP BRANDING ===== */

/* Reduce the large empty space before the footer on the homepage */
.page_index_journal {
  margin-bottom: 0 !important;
  padding-bottom: 12px !important;
}

.page_index_journal .current_issue {
  margin-bottom: 0 !important;
  padding-bottom: 8px !important;
}

.pkp_structure_content {
  padding-bottom: 14px !important;
}

/* Compact the footer wrapper */
.pkp_structure_footer_wrapper {
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background: #f4f6f7 !important;
}

.pkp_structure_footer {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
  margin-top: 0 !important;
  padding: 18px 0 8px !important;
  min-height: 0 !important;
}

/* Keep Mahasara custom footer full-width and centered */
.pkp_footer_content {
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

/* Move OJS/PKP attribution under the footer and center it */
.pkp_brand_footer {
  float: none !important;
  clear: both !important;
  width: 100% !important;
  max-width: none !important;
  margin: 4px auto 0 !important;
  padding: 0 !important;
  text-align: center !important;
}

.pkp_brand_footer a {
  display: inline-block !important;
  margin: 0 auto !important;
  opacity: 0.55 !important;
}

.pkp_brand_footer img {
  display: block !important;
  width: auto !important;
  max-width: 88px !important;
  height: auto !important;
  margin: 0 auto !important;
}

/* Remove extra bottom whitespace */
.pkp_structure_footer:after,
.pkp_structure_footer_wrapper:after {
  content: none !important;
}
/* ===== V25: FINAL BOTTOM AREA POLISH ===== */

/* Reduce excessive empty space between the last homepage content and footer */
.page_index_journal .pkp_structure_main,
.page_index_journal .pkp_structure_sidebar {
  padding-bottom: 6px !important;
  margin-bottom: 0 !important;
}

.page_index_journal .current_issue {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.pkp_structure_content {
  min-height: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* Footer wrapper */
.pkp_structure_footer_wrapper {
  margin-top: 0 !important;
  padding: 0 !important;
  background: #f4f6f7 !important;
}

/* Make footer stack vertically and keep everything centered */
.pkp_structure_footer {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 18px 0 10px !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
}

.pkp_footer_content {
  float: none !important;
  clear: both !important;
  width: calc(100% - 60px) !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

/* Force OJS/PKP attribution below the custom footer, centered */
.pkp_brand_footer {
  float: none !important;
  clear: both !important;
  position: static !important;
  width: 100% !important;
  max-width: none !important;
  margin: 10px auto 0 !important;
  padding: 0 !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

.pkp_brand_footer a {
  display: inline-block !important;
  float: none !important;
  margin: 0 auto !important;
  opacity: 0.58 !important;
}

.pkp_brand_footer img {
  display: block !important;
  float: none !important;
  width: auto !important;
  max-width: 82px !important;
  height: auto !important;
  margin: 0 auto !important;
}

/* Prevent stray floats from stretching the footer */
.pkp_structure_footer::after,
.pkp_structure_footer_wrapper::after {
  content: "" !important;
  display: table !important;
  clear: both !important;
}
/* ===== V26: REMOVE EXCESS EMPTY SPACE ABOVE FOOTER ===== */

/* OJS may keep a minimum height on the main/sidebar columns.
   Remove it on the homepage so the footer follows the content naturally. */
.page_index_journal .pkp_structure_content,
.page_index_journal .pkp_structure_main,
.page_index_journal .pkp_structure_sidebar {
  min-height: 0 !important;
  height: auto !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Keep only a small breathing space before the footer */
.page_index_journal .pkp_structure_content {
  margin-bottom: 18px !important;
}

/* Compact footer attribution spacing */
.pkp_brand_footer {
  margin-top: 6px !important;
}

.pkp_structure_footer {
  padding-bottom: 6px !important;
}
/* ===== V27: PULL FOOTER CLOSER ON HOMEPAGE ONLY ===== */

/* Modern browsers: reduce the remaining homepage-only blank gap */
@media (min-width: 992px) {
  body:has(.page_index_journal) .pkp_structure_footer_wrapper {
    margin-top: -110px !important;
  }
}

/* Keep smaller screens safe */
@media (max-width: 991px) {
  body:has(.page_index_journal) .pkp_structure_footer_wrapper {
    margin-top: 0 !important;
  }
}
/* ===== V28: FINAL REDUCTION OF BLANK SPACE ABOVE FOOTER ===== */

@media (min-width: 992px) {
  body:has(.page_index_journal) .pkp_structure_footer_wrapper {
    margin-top: -210px !important;
  }
}

/* Keep mobile/tablet safe */
@media (max-width: 991px) {
  body:has(.page_index_journal) .pkp_structure_footer_wrapper {
    margin-top: 0 !important;
  }
}



/* =========================================================
   MAHĀSARĀ — PREMIUM HOMEPAGE BANNER ADD-ON
   Added safely to the original v28 stylesheet.
   This section only targets the homepage image.
   ========================================================= */

.page_index_journal .homepage_image {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.page_index_journal .homepage_image img {
    display: block;
    width: 100%;
    height: auto;
    transform-origin: center center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform, filter;
    animation: mahasaraHomepagePremiumMove 16s ease-in-out infinite alternate;
}

/* Light sweep overlay */
.page_index_journal .homepage_image::after {
    content: "";
    position: absolute;
    z-index: 3;
    top: -35%;
    left: -42%;
    width: 30%;
    height: 180%;
    pointer-events: none;
    opacity: 0;
    transform: rotate(12deg);
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,.08) 24%,
        rgba(255,255,255,.58) 50%,
        rgba(255,246,215,.24) 62%,
        rgba(255,255,255,0) 100%
    );
    animation: mahasaraHomepageLightSweep 9.5s ease-in-out infinite;
}

@keyframes mahasaraHomepagePremiumMove {
    0% {
        transform: scale(1.005) translate3d(0,0,0);
        filter: saturate(1.00) contrast(1.00);
    }

    50% {
        transform: scale(1.040) translate3d(-0.22%, -0.08%, 0);
        filter: saturate(1.035) contrast(1.015);
    }

    100% {
        transform: scale(1.065) translate3d(0.28%, 0.05%, 0);
        filter: saturate(1.025) contrast(1.01);
    }
}

@keyframes mahasaraHomepageLightSweep {
    0%, 18% {
        left: -42%;
        opacity: 0;
    }

    27% {
        opacity: .78;
    }

    50% {
        left: 112%;
        opacity: .20;
    }

    60%, 100% {
        left: 112%;
        opacity: 0;
    }
}

@media (max-width: 600px) {
    .page_index_journal .homepage_image img {
        animation-duration: 20s;
    }

    .page_index_journal .homepage_image::after {
        animation-duration: 13s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page_index_journal .homepage_image img,
    .page_index_journal .homepage_image::after {
        animation: none !important;
        -webkit-animation: none !important;
        transform: none !important;
    }
}



/* =========================================================
   MAHĀSARĀ — SAFE MICRO-INTERACTIONS
   Only affects clickable elements inside Additional Content.
   No typography, layout, sidebar, article list, or footer changes.
   ========================================================= */

/* MOST READ — title links only */
.page_index_journal a[href*="/article/view/7"],
.page_index_journal a[href*="/article/view/11"],
.page_index_journal a[href*="/article/view/9"] {
    transition:
        color .22s ease,
        text-shadow .22s ease,
        opacity .22s ease;
}

.page_index_journal a[href*="/article/view/7"]:hover,
.page_index_journal a[href*="/article/view/11"]:hover,
.page_index_journal a[href*="/article/view/9"]:hover {
    color: #c57f00 !important;
    text-shadow: 0 1px 10px rgba(197,127,0,.12);
}

/* Publication Journey cards only */
.page_index_journal a[title="Submit a manuscript"],
.page_index_journal a[title="Editorial screening process"],
.page_index_journal a[title="View peer review process"],
.page_index_journal a[title="View author guidelines"],
.page_index_journal a[title="View editorial preparation guidelines"],
.page_index_journal a[title="View published issues"] {
    position: relative;
    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease,
        background-color .22s ease;
    will-change: transform;
}

.page_index_journal a[title="Submit a manuscript"]:hover,
.page_index_journal a[title="Editorial screening process"]:hover,
.page_index_journal a[title="View peer review process"]:hover,
.page_index_journal a[title="View author guidelines"]:hover,
.page_index_journal a[title="View editorial preparation guidelines"]:hover,
.page_index_journal a[title="View published issues"]:hover {
    transform: translateY(-4px);
    border-color: #c57f00 !important;
    box-shadow:
        0 10px 22px rgba(11,135,147,.11),
        0 3px 8px rgba(197,127,0,.08);
}

/* Subtle glow on the numbered circles when a journey card is hovered */
.page_index_journal a[title="Submit a manuscript"]:hover > div:first-child,
.page_index_journal a[title="Editorial screening process"]:hover > div:first-child,
.page_index_journal a[title="View peer review process"]:hover > div:first-child,
.page_index_journal a[title="View author guidelines"]:hover > div:first-child,
.page_index_journal a[title="View editorial preparation guidelines"]:hover > div:first-child,
.page_index_journal a[title="View published issues"]:hover > div:first-child {
    box-shadow:
        0 0 0 4px rgba(11,135,147,.08),
        0 4px 12px rgba(11,135,147,.16);
}

/* Explore button: gentle lift */
.page_index_journal a[href="/ojs/issue/archive"]:not([title]) {
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background-color .2s ease;
}

.page_index_journal a[href="/ojs/issue/archive"]:not([title]):hover {
    transform: translateY(-2px);
    background: #087681 !important;
    box-shadow: 0 7px 16px rgba(11,135,147,.18);
}

/* Keyboard accessibility */
.page_index_journal a[title="Submit a manuscript"]:focus-visible,
.page_index_journal a[title="Editorial screening process"]:focus-visible,
.page_index_journal a[title="View peer review process"]:focus-visible,
.page_index_journal a[title="View author guidelines"]:focus-visible,
.page_index_journal a[title="View editorial preparation guidelines"]:focus-visible,
.page_index_journal a[title="View published issues"]:focus-visible,
.page_index_journal a[href*="/article/view/"]:focus-visible {
    outline: 2px solid #c57f00;
    outline-offset: 3px;
}

/* Touch/mobile: no forced lifting */
@media (hover: none) {
    .page_index_journal a[title="Submit a manuscript"]:hover,
    .page_index_journal a[title="Editorial screening process"]:hover,
    .page_index_journal a[title="View peer review process"]:hover,
    .page_index_journal a[title="View author guidelines"]:hover,
    .page_index_journal a[title="View editorial preparation guidelines"]:hover,
    .page_index_journal a[title="View published issues"]:hover,
    .page_index_journal a[href="/ojs/issue/archive"]:not([title]):hover {
        transform: none;
        box-shadow: none;
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .page_index_journal a[title="Submit a manuscript"],
    .page_index_journal a[title="Editorial screening process"],
    .page_index_journal a[title="View peer review process"],
    .page_index_journal a[title="View author guidelines"],
    .page_index_journal a[title="View editorial preparation guidelines"],
    .page_index_journal a[title="View published issues"],
    .page_index_journal a[href*="/article/view/"],
    .page_index_journal a[href="/ojs/issue/archive"]:not([title]) {
        transition: none !important;
        transform: none !important;
    }
}



/* =========================================================
   MAHĀSARĀ — DESKTOP-ONLY NAV HEADER
   Important: all rules below apply only to desktop.
   Mobile/tablet keeps the previous proven responsive design.
   ========================================================= */

@media (min-width: 992px) {

    /* Header */
    .pkp_structure_head {
        position: relative !important;
        z-index: 100 !important;
        background: #0b8793 !important;
        border-bottom: 3px solid #c58a13 !important;
        box-shadow: 0 3px 14px rgba(0,52,64,.10);
        min-height: 0 !important;
    }

    .pkp_head_wrapper {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        position: relative !important;
    }

    /* Hide duplicate journal title on desktop only */
    .pkp_site_name {
        display: none !important;
    }

    /* Navigation */
    .pkp_site_nav_menu {
        background: transparent !important;
        border-top: 0 !important;
        margin-top: 0 !important;
        position: relative !important;
    }

    .pkp_navigation_primary_wrapper {
        background: transparent !important;
        min-height: 52px !important;
        display: flex !important;
        align-items: center !important;
        padding-right: 0 !important;
        overflow: visible !important;
        position: relative !important;
        z-index: 110 !important;
        pointer-events: auto !important;
    }

    .pkp_navigation_primary {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        margin: 0 !important;
        position: relative !important;
        z-index: 110 !important;
        pointer-events: auto !important;
    }

    .pkp_navigation_primary > li,
    .pkp_navigation_primary > li > a {
        pointer-events: auto !important;
        position: relative !important;
        z-index: 111 !important;
    }

    .pkp_navigation_primary > li > a {
        color: #ffffff !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        padding: 16px 17px 14px !important;
        white-space: nowrap !important;
        border-bottom: 3px solid transparent !important;
        cursor: pointer !important;
        transition: background-color .2s ease, border-color .2s ease, color .2s ease;
    }

    .pkp_navigation_primary > li > a:hover,
    .pkp_navigation_primary > li > a:focus {
        color: #ffffff !important;
        background: rgba(255,255,255,.07) !important;
        border-bottom-color: #f1c65c !important;
    }

    /* User/account layer can be wide in OJS.
       Empty area passes clicks through, actual controls remain clickable. */
    .pkp_navigation_user_wrapper {
        top: 9px !important;
        z-index: 120 !important;
        pointer-events: none !important;
    }

    .pkp_navigation_user,
    .pkp_navigation_user li,
    .pkp_navigation_user a,
    .pkp_navigation_user button {
        pointer-events: auto !important;
        position: relative !important;
        z-index: 121 !important;
        cursor: pointer !important;
    }

    .pkp_navigation_user > li > a {
        color: rgba(255,255,255,.92) !important;
        font-size: 12px !important;
    }

    /* Search stays in OJS native position and remains clickable */
    .pkp_search,
    .pkp_search *,
    .pkp_search_desktop,
    .pkp_search_desktop * {
        color: #ffffff !important;
        pointer-events: auto !important;
        position: relative !important;
        z-index: 115 !important;
        cursor: pointer !important;
    }

    /* Decorative layers never block clicks */
    .pkp_structure_head::before,
    .pkp_structure_head::after,
    .pkp_head_wrapper::before,
    .pkp_head_wrapper::after,
    .pkp_site_nav_menu::before,
    .pkp_site_nav_menu::after,
    .pkp_navigation_primary_wrapper::before,
    .pkp_navigation_primary_wrapper::after {
        pointer-events: none !important;
    }
}

/* Keep sidebar tools clickable on every screen size */
.page_index_journal .pkp_structure_sidebar a,
.page_index_journal .pkp_structure_sidebar button {
    pointer-events: auto !important;
    cursor: pointer !important;
}



/* =========================================================
   MAHĀSARĀ — MOBILE PREMIUM FIX v3
   Desktop remains unchanged.
   Mobile gets a compact branded header, working menu/search,
   and cleaner reading typography.
   ========================================================= */

@media (max-width: 991px) {

    /* ---------- MOBILE HEADER ---------- */
    .pkp_structure_head {
        position: relative !important;
        z-index: 500 !important;
        background: #0b8793 !important;
        border-bottom: 3px solid #c58a13 !important;
        box-shadow: 0 3px 12px rgba(0,52,64,.12) !important;
        min-height: 58px !important;
    }

    .pkp_head_wrapper {
        position: relative !important;
        min-height: 58px !important;
        padding: 0 !important;
        background: transparent !important;
    }

    /* Keep the area, but replace the long repeated title
       with a short Mahāsarā brand on phones */
    .pkp_site_name {
        display: flex !important;
        align-items: center !important;
        min-height: 58px !important;
        height: 58px !important;
        margin: 0 !important;
        padding: 0 72px 0 18px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        position: relative !important;
        z-index: 505 !important;
    }

    .pkp_site_name .is_text,
    .pkp_site_name > a {
        font-size: 0 !important;
        line-height: 0 !important;
        color: transparent !important;
        text-shadow: none !important;
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        text-decoration: none !important;
    }

    .pkp_site_name::before {
        content: "Mahāsarā";
        color: #ffffff !important;
        font-family: Georgia, "Times New Roman", serif !important;
        font-size: 23px !important;
        line-height: 1 !important;
        font-weight: 700 !important;
        letter-spacing: .1px !important;
        position: absolute !important;
        left: 18px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        pointer-events: none !important;
    }

    /* Clear, tappable hamburger button */
    .pkp_site_nav_toggle,
    button.pkp_site_nav_toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: absolute !important;
        right: 12px !important;
        top: 8px !important;
        width: 42px !important;
        height: 42px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 1px solid rgba(255,255,255,.24) !important;
        border-radius: 8px !important;
        background: rgba(255,255,255,.08) !important;
        color: transparent !important;
        font-size: 0 !important;
        z-index: 540 !important;
        cursor: pointer !important;
        pointer-events: auto !important;
        box-sizing: border-box !important;
    }

    .pkp_site_nav_toggle::before {
        content: "☰" !important;
        display: block !important;
        color: #ffffff !important;
        font-size: 23px !important;
        line-height: 1 !important;
        font-family: Arial, sans-serif !important;
        font-weight: 400 !important;
        pointer-events: none !important;
    }

    .pkp_site_nav_toggle[aria-expanded="true"]::before {
        content: "×" !important;
        font-size: 30px !important;
        line-height: .8 !important;
    }

    .pkp_site_nav_toggle span {
        display: none !important;
    }

    /* Opened menu */
    .pkp_site_nav_menu {
        background: #0b8793 !important;
        border-top: 1px solid rgba(255,255,255,.12) !important;
        border-bottom: 3px solid #c58a13 !important;
        box-shadow: 0 8px 16px rgba(0,52,64,.13) !important;
        position: relative !important;
        z-index: 530 !important;
    }

    .pkp_navigation_primary,
    .pkp_navigation_primary > li {
        position: relative !important;
        z-index: 535 !important;
        pointer-events: auto !important;
    }

    .pkp_navigation_primary > li > a {
        color: #ffffff !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
        padding: 13px 18px !important;
        border-bottom: 1px solid rgba(255,255,255,.10) !important;
        position: relative !important;
        z-index: 536 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
    }

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

    /* Search remains usable in mobile nav */
    .pkp_search,
    .pkp_search *,
    .pkp_search_mobile,
    .pkp_search_mobile * {
        position: relative !important;
        z-index: 538 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
    }

    .pkp_search a,
    .pkp_search button,
    .pkp_search .search_prompt {
        color: #ffffff !important;
    }

    /* Account controls remain tappable */
    .pkp_navigation_user_wrapper {
        pointer-events: none !important;
    }

    .pkp_navigation_user,
    .pkp_navigation_user li,
    .pkp_navigation_user a,
    .pkp_navigation_user button {
        position: relative !important;
        z-index: 539 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
    }

    .pkp_navigation_user a,
    .pkp_navigation_user button {
        color: #ffffff !important;
    }

    /* ---------- HOMEPAGE MOBILE READING ---------- */

    /* Avoid stretched justified text on narrow screens */
    .page_index_journal .pkp_structure_main p {
        text-align: left !important;
        word-spacing: normal !important;
        letter-spacing: normal !important;
        hyphens: auto;
    }

    /* More comfortable homepage body copy */
    .page_index_journal .pkp_structure_main p {
        line-height: 1.68 !important;
    }

    /* Keep section headings balanced on phones */
    .page_index_journal .pkp_structure_main h2,
    .page_index_journal .pkp_structure_main h3 {
        line-height: 1.2 !important;
        word-break: normal !important;
    }

    /* Make banner sit neatly below the compact header */
    .page_index_journal .pkp_structure_main img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Sidebar cards/management tools remain tappable */
    .page_index_journal .pkp_structure_sidebar a,
    .page_index_journal .pkp_structure_sidebar button {
        position: relative !important;
        z-index: 20 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
    }

    /* Decorative layers must never block taps */
    .pkp_structure_head::before,
    .pkp_structure_head::after,
    .pkp_head_wrapper::before,
    .pkp_head_wrapper::after,
    .pkp_site_nav_menu::before,
    .pkp_site_nav_menu::after {
        pointer-events: none !important;
    }

    html,
    body {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
}

@media (max-width: 480px) {
    .pkp_structure_head,
    .pkp_head_wrapper,
    .pkp_site_name {
        min-height: 56px !important;
        height: 56px !important;
    }

    .pkp_site_name::before {
        font-size: 21px !important;
    }

    .pkp_site_nav_toggle,
    button.pkp_site_nav_toggle {
        top: 7px !important;
    }
}



/* =========================================================
   MAHĀSARĀ — FINAL MOBILE READING FIX
   Only fixes the About the Journal text on phones/tablets.
   Desktop and all other homepage sections remain unchanged.
   ========================================================= */

@media (max-width: 991px) {

    /* Force natural left alignment inside About the Journal */
    .page_index_journal .homepage_about,
    .page_index_journal .homepage_about p,
    .page_index_journal .homepage_about div,
    .page_index_journal .homepage_about span {
        text-align: left !important;
        text-align-last: left !important;
        text-justify: auto !important;
        word-spacing: normal !important;
        letter-spacing: normal !important;
    }

    .page_index_journal .homepage_about p {
        font-size: 16px !important;
        line-height: 1.7 !important;
        margin-bottom: 16px !important;
    }

    /* Keep the heading strong but balanced */
    .page_index_journal .homepage_about h2,
    .page_index_journal .homepage_about h3 {
        text-align: left !important;
        word-spacing: normal !important;
        letter-spacing: normal !important;
    }
}

@media (max-width: 480px) {
    .page_index_journal .homepage_about p {
        font-size: 15.5px !important;
        line-height: 1.68 !important;
    }
}



/* =========================================================
   MAHĀSARĀ — MOBILE PARAGRAPH POLISH v2
   Makes homepage journal description read naturally on phones.
   ========================================================= */

@media (max-width: 767px) {

    .page_index_journal .homepage_about,
    .page_index_journal .homepage_about p,
    .page_index_journal .homepage_about p *,
    .page_index_journal .homepage_about div,
    .page_index_journal .homepage_about div * {
        text-align: left !important;
        text-align-last: left !important;
        text-justify: auto !important;
        word-spacing: 0 !important;
        letter-spacing: 0 !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
        hyphens: none !important;
    }

    .page_index_journal .homepage_about p {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 0 18px 0 !important;
        padding: 0 !important;
        font-size: 15px !important;
        line-height: 1.65 !important;
        font-weight: 400 !important;
    }

    .page_index_journal .homepage_about p strong,
    .page_index_journal .homepage_about p b {
        font-weight: 700 !important;
    }

    .page_index_journal .homepage_about {
        padding-left: 18px !important;
        padding-right: 18px !important;
        box-sizing: border-box !important;
    }
}



/* =========================================================
   MAHĀSARĀ — MOBILE PARAGRAPH BALANCE v3
   Neater two-edge paragraph alignment on phones without
   the large word gaps seen in the earlier justified version.
   ========================================================= */

@media (max-width: 767px) {

    .page_index_journal .homepage_about p {
        text-align: justify !important;
        text-align-last: left !important;
        text-justify: inter-word !important;

        font-size: 14px !important;
        line-height: 1.62 !important;
        font-weight: 400 !important;

        word-spacing: -0.15px !important;
        letter-spacing: 0 !important;

        -webkit-hyphens: auto !important;
        hyphens: auto !important;

        overflow-wrap: normal !important;
        word-break: normal !important;

        margin: 0 0 16px 0 !important;
        padding: 0 !important;
    }

    /* Keep emphasis clear without making the first lines look oversized */
    .page_index_journal .homepage_about p strong,
    .page_index_journal .homepage_about p b {
        font-size: 14px !important;
        line-height: inherit !important;
        font-weight: 700 !important;
        letter-spacing: 0 !important;
        word-spacing: inherit !important;
    }

    /* Slightly wider usable text area on phones */
    .page_index_journal .homepage_about {
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 420px) {
    .page_index_journal .homepage_about p,
    .page_index_journal .homepage_about p strong,
    .page_index_journal .homepage_about p b {
        font-size: 13.8px !important;
    }
}



/* =========================================================
   MAHĀSARĀ — MOBILE ARTICLE ABSTRACT FIX
   Applies only to article pages on phones/tablets.
   Keeps desktop unchanged.
   ========================================================= */

@media (max-width: 767px) {

    /* Abstract heading */
    .page_article .obj_article_details .abstract h2,
    .page_article .obj_article_details .abstract h3,
    .page_article .obj_article_details .item.abstract h2,
    .page_article .obj_article_details .item.abstract h3,
    .page_article .item.abstract h2,
    .page_article .item.abstract h3 {
        margin: 0 0 14px 0 !important;
        padding: 0 !important;
        line-height: 1.25 !important;
        text-align: left !important;
    }

    /* Abstract paragraph */
    .page_article .obj_article_details .abstract,
    .page_article .obj_article_details .abstract p,
    .page_article .obj_article_details .item.abstract,
    .page_article .obj_article_details .item.abstract p,
    .page_article .item.abstract,
    .page_article .item.abstract p {
        text-align: justify !important;
        text-align-last: left !important;
        text-justify: inter-word !important;

        font-size: 14px !important;
        line-height: 1.68 !important;

        word-spacing: 0 !important;
        letter-spacing: 0 !important;

        -webkit-hyphens: auto !important;
        hyphens: auto !important;

        overflow-wrap: normal !important;
        word-break: normal !important;
        white-space: normal !important;
    }

    .page_article .obj_article_details .abstract p,
    .page_article .obj_article_details .item.abstract p,
    .page_article .item.abstract p {
        margin: 0 0 16px 0 !important;
    }

    /* Prevent the floating article toolbar from covering the last lines */
    .page_article .pkp_structure_main,
    .page_article .obj_article_details {
        padding-bottom: 110px !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 420px) {
    .page_article .obj_article_details .abstract,
    .page_article .obj_article_details .abstract p,
    .page_article .obj_article_details .item.abstract,
    .page_article .obj_article_details .item.abstract p,
    .page_article .item.abstract,
    .page_article .item.abstract p {
        font-size: 13.8px !important;
        line-height: 1.66 !important;
    }
}



/* =========================================================
   MAHĀSARĀ — REFERENCES POLISH
   Cleans references on desktop and mobile article pages.
   ========================================================= */

/* ---------- DESKTOP + GENERAL ---------- */
.page_article .item.references,
.page_article .references {
    margin-top: 28px !important;
}

.page_article .item.references h2,
.page_article .item.references h3,
.page_article .references h2,
.page_article .references h3 {
    margin: 0 0 18px 0 !important;
    padding: 0 !important;
    line-height: 1.25 !important;
    text-align: left !important;
}

/* Reference entries */
.page_article .item.references .value,
.page_article .item.references .value p,
.page_article .item.references .value li,
.page_article .references .value,
.page_article .references .value p,
.page_article .references .value li,
.page_article .references p,
.page_article .references li {
    text-align: left !important;
    text-align-last: left !important;
    text-justify: auto !important;

    font-size: 14px !important;
    line-height: 1.58 !important;

    word-spacing: normal !important;
    letter-spacing: normal !important;
    white-space: normal !important;

    overflow-wrap: anywhere !important;
    word-break: normal !important;
    hyphens: none !important;
}

/* Clean list spacing */
.page_article .item.references .value ol,
.page_article .item.references .value ul,
.page_article .references ol,
.page_article .references ul {
    margin: 0 !important;
    padding-left: 0 !important;
    list-style-position: outside !important;
}

/* Hanging-indent bibliography style */
.page_article .item.references .value p,
.page_article .references .value p,
.page_article .references > p {
    margin: 0 0 13px 0 !important;
    padding-left: 24px !important;
    text-indent: -24px !important;
}

.page_article .item.references .value li,
.page_article .references .value li,
.page_article .references li {
    margin: 0 0 13px 0 !important;
    padding-left: 6px !important;
}

/* DOI and URL links */
.page_article .item.references a,
.page_article .references a {
    color: #0b8793 !important;
    text-decoration: none !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

.page_article .item.references a:hover,
.page_article .references a:hover {
    color: #c57f00 !important;
    text-decoration: underline !important;
}


/* ---------- MOBILE ---------- */
@media (max-width: 767px) {

    .page_article .item.references,
    .page_article .references {
        margin-top: 24px !important;
    }

    .page_article .item.references h2,
    .page_article .item.references h3,
    .page_article .references h2,
    .page_article .references h3 {
        margin-bottom: 14px !important;
        font-size: 21px !important;
        line-height: 1.22 !important;
    }

    .page_article .item.references .value,
    .page_article .item.references .value p,
    .page_article .item.references .value li,
    .page_article .references .value,
    .page_article .references .value p,
    .page_article .references .value li,
    .page_article .references p,
    .page_article .references li {
        font-size: 13.5px !important;
        line-height: 1.55 !important;

        text-align: left !important;
        text-align-last: left !important;

        word-spacing: normal !important;
        letter-spacing: normal !important;

        overflow-wrap: anywhere !important;
        word-break: normal !important;
        hyphens: none !important;
    }

    .page_article .item.references .value p,
    .page_article .references .value p,
    .page_article .references > p {
        margin-bottom: 12px !important;
        padding-left: 18px !important;
        text-indent: -18px !important;
    }

    .page_article .item.references .value li,
    .page_article .references .value li,
    .page_article .references li {
        margin-bottom: 12px !important;
        padding-left: 4px !important;
    }
}



/* =========================================================
   MAHĀSARĀ — HOMEPAGE FOOTER GAP FIX
   Reduces only the large empty space before the footer.
   Other pages and footer styling remain unchanged.
   ========================================================= */

@media (min-width: 768px) {
    .page_index_journal .pkp_structure_main {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .page_index_journal .pkp_structure_content {
        margin-bottom: 0 !important;
        padding-bottom: 18px !important;
    }

    .page_index_journal .pkp_structure_footer_wrapper {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

@media (max-width: 767px) {
    .page_index_journal .pkp_structure_main {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .page_index_journal .pkp_structure_content {
        margin-bottom: 0 !important;
        padding-bottom: 12px !important;
    }

    .page_index_journal .pkp_structure_footer_wrapper {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}



/* =========================================================
   MAHĀSARĀ — HOMEPAGE FOOTER GAP FIX v2
   Stronger homepage-only spacing correction.
   Keeps article pages, sidebar, footer styling, and mobile layout intact.
   ========================================================= */

.page_index_journal .pkp_structure_content {
    min-height: 0 !important;
    height: auto !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.page_index_journal .pkp_structure_main {
    min-height: 0 !important;
    height: auto !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.page_index_journal .pkp_structure_footer_wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Desktop: pull footer closer to Publication Journey */
@media (min-width: 992px) {
    .page_index_journal .pkp_structure_footer_wrapper {
        margin-top: -92px !important;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .page_index_journal .pkp_structure_footer_wrapper {
        margin-top: -48px !important;
    }
}

/* Phone: keep a comfortable gap */
@media (max-width: 767px) {
    .page_index_journal .pkp_structure_footer_wrapper {
        margin-top: -18px !important;
    }
}



/* =========================================================
   MAHĀSARĀ — COMPACT MANAGEMENT TOOLS
   Keeps all existing links clickable and only reduces the
   height of the Management Tools sidebar block.
   ========================================================= */

#customblock-management-tools,
.pkp_block[id*="management-tools"] {
    margin-bottom: 16px !important;
}

/* Reduce inner whitespace without changing the title bar */
#customblock-management-tools .content,
.pkp_block[id*="management-tools"] .content {
    padding: 10px 12px 12px !important;
}

/* Compact each clickable tool card */
#customblock-management-tools .content a,
.pkp_block[id*="management-tools"] .content a {
    min-height: 44px !important;
    margin: 7px 0 !important;
    padding: 7px 10px !important;
    border-radius: 7px !important;
    box-sizing: border-box !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;

    line-height: 1.2 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Keep logos/icons tidy */
#customblock-management-tools .content a img,
.pkp_block[id*="management-tools"] .content a img {
    max-height: 30px !important;
    max-width: 92px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 !important;
}

/* If the tool names are normal text, keep them compact */
#customblock-management-tools .content a span,
#customblock-management-tools .content a strong,
.pkp_block[id*="management-tools"] .content a span,
.pkp_block[id*="management-tools"] .content a strong {
    font-size: 13px !important;
    line-height: 1.2 !important;
}

/* Mobile: slightly tighter, still finger-friendly */
@media (max-width: 767px) {
    #customblock-management-tools .content a,
    .pkp_block[id*="management-tools"] .content a {
        min-height: 42px !important;
        margin: 6px 0 !important;
        padding: 6px 9px !important;
    }

    #customblock-management-tools .content a img,
    .pkp_block[id*="management-tools"] .content a img {
        max-height: 28px !important;
        max-width: 86px !important;
    }
}

/* =========================================================
   MAHĀSARĀ — FINAL HOMEPAGE FOOTER GAP TUNING v30
   Homepage desktop only. Keeps footer styling and all other pages intact.
   ========================================================= */
@media (min-width: 992px) {
    body:has(.page_index_journal) .pkp_structure_footer_wrapper {
        margin-top: -315px !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    body:has(.page_index_journal) .pkp_structure_footer_wrapper {
        margin-top: -70px !important;
    }
}

@media (max-width: 767px) {
    body:has(.page_index_journal) .pkp_structure_footer_wrapper {
        margin-top: 0 !important;
    }
}

/* =========================================================
   MAHĀSARĀ — HOMEPAGE FOOTER GAP FINAL v31
   Fine-tunes desktop gap after Publication Journey.
   ========================================================= */
@media (min-width: 992px) {
    body:has(.page_index_journal) .pkp_structure_footer_wrapper {
        margin-top: -400px !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    body:has(.page_index_journal) .pkp_structure_footer_wrapper {
        margin-top: -80px !important;
    }
}

@media (max-width: 767px) {
    body:has(.page_index_journal) .pkp_structure_footer_wrapper {
        margin-top: 0 !important;
    }
}

/* =========================================================
   MAHĀSARĀ — PREMIUM DESKTOP NAV HOVER
   Subtle rounded box for hover + active menu only
   Mobile remains unchanged
   ========================================================= */

@media (min-width: 992px) {

    /* Keep menu links clean in normal state */
    .pkp_navigation_primary > li > a {
        border-radius: 8px !important;
        transition:
            background-color .22s ease,
            color .22s ease,
            box-shadow .22s ease,
            border-color .22s ease,
            transform .22s ease !important;
    }

    /* Soft premium box on hover */
    .pkp_navigation_primary > li > a:hover,
    .pkp_navigation_primary > li > a:focus {
        background: rgba(255,255,255,.10) !important;
        color: #ffffff !important;
        border-bottom-color: #f1c65c !important;
        box-shadow:
            inset 0 0 0 1px rgba(255,255,255,.10),
            0 4px 10px rgba(0,48,58,.08) !important;
        transform: translateY(-1px);
    }

    /* Active/current menu */
    .pkp_navigation_primary > li.current > a,
    .pkp_navigation_primary > li.active > a,
    .pkp_navigation_primary > li.current_page_item > a,
    .pkp_navigation_primary > li > a[aria-current="page"] {
        background: rgba(255,255,255,.12) !important;
        color: #ffffff !important;
        border-bottom: 3px solid #f1c65c !important;
        box-shadow:
            inset 0 0 0 1px rgba(255,255,255,.12),
            0 3px 10px rgba(0,48,58,.08) !important;
    }

    /* Search also gets a subtle hover response */
    .pkp_search:hover,
    .pkp_search_desktop:hover {
        background: rgba(255,255,255,.08) !important;
        border-radius: 8px !important;
    }
}

