/* =========================================
   OJS Home â€“ Apple-style readable intro
   Scope: .pkp_page_index #main-content .home-intro
   Safe for OJS 3.3â€“3.4
   ========================================= */

:root{
  --accent: var(--pkp-primary, var(--theme-primary, #0a84ff));
  --text: #1c1c1e;
  --muted: #6e6e73;
  --soft: #f5f7fa;
  --radius: 16px;
}

/* Container */
.pkp_page_index #main-content .home-intro{
  max-width: 960px;
  margin: 1rem auto 2rem;
  padding: 1.25rem 1rem;
  background: #fff;
  color: var(--text);
}

/* Title */
.pkp_page_index #main-content .home-intro .title{
  font-size: clamp(1.6rem, 2.2vw + 1rem, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .2px;
  margin: 0 0 .5rem 0;
}

/* Lead paragraph */
.pkp_page_index #main-content .home-intro .lead{
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 .9rem 0;
}

/* Body text */
.pkp_page_index #main-content .home-intro p{
  margin: 0 0 .85rem 0;
  line-height: 1.55;
}

/* Callout (Healthier Lives goal) */
.pkp_page_index #main-content .home-intro .goal-callout{
  margin-top: .5rem;
  background: color-mix(in srgb, var(--accent) 6%, white);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, white);
  border-radius: var(--radius);
  padding: .85rem 1rem;
}
.pkp_page_index #main-content .home-intro .goal-callout strong{
  color: var(--text);
}

/* Optional SDG badge grid if you add icons under the callout */
.pkp_page_index #main-content .home-intro .sdg-badges{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: .6rem;
}
.pkp_page_index #main-content .home-intro .sdg-badges img{
  width: 100%;
  height: 120px;
  object-fit: contain;         /* no stretching */
  background: #fff;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  padding: 6px;
}

/* Kill random empty paragraphs & <br> gaps often saved by the editor */
.pkp_page_index #main-content .home-intro p:empty{ display:none; }
.pkp_page_index #main-content .home-intro br + br{ display:none; }

/* Compact on narrow screens */
@media (max-width: 600px){
  .pkp_page_index #main-content .home-intro{ padding: 1rem .75rem; }
  .pkp_page_index #main-content .home-intro .sdg-badges img{ height: 100px; }
}

/* =========================================
   SDG Badge Row â€“ Compact, Single Line on Desktop
   ========================================= */

.sdg-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;              /* space between tiles */
  margin-top: 1rem;
  margin-bottom: 0;
  padding: 0;
}

.sdg-badges img {
  flex: 1 1 120px;        /* auto-size grid cells */
  max-width: 120px;       /* fixed width for uniform look */
  height: auto;           /* keep proportion, no stretch */
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.15);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  padding: 4px;
  object-fit: contain;
  transition: transform .15s ease, box-shadow .15s ease;
}

.sdg-badges img:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
}

/* Keep layout tidy on smaller screens */
@media (max-width: 768px) {
  .sdg-badges img {
    max-width: 90px;
    flex: 1 1 90px;
  }
}
@media (max-width: 480px) {
  .sdg-badges {
    gap: 8px;
  }
  .sdg-badges img {
    max-width: 75px;
    flex: 1 1 75px;
    padding: 3px;
  }
}










/* =========================================
   OJS Home Hero Slide Compact Layout
   Target: .main-slider-four .slide (single slide)
   Safe for OJS 3.3â€“3.4 themes using custom blocks or sliders
   ========================================= */

/* Compact the hero slide area */
.main-slider-four .slide {
  padding-top: 40px !important;     /* reduced from ~190px */
  padding-bottom: 40px !important;
  min-height: auto !important;      /* remove forced height */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;        /* clean white backdrop */
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  overflow: hidden;
}

/* Remove big inner container spacing */
.main-slider-four .slide > div,
.main-slider-four .slide .container,
.main-slider-four .slide .content-box {
  padding: 0 !important;
  margin: 0 auto !important;
  max-width: 1100px;
  text-align: center;
}

/* Title and text inside the slide */
.main-slider-four .slide h1,
.main-slider-four .slide h2,
.main-slider-four .slide h3 {
  font-size: 1.8rem !important;
  line-height: 1.25;
  font-weight: 600;
  color: #1c1c1e;
  margin-bottom: 0.5rem;
  letter-spacing: 0.3px;
}

.main-slider-four .slide p {
  font-size: 1.05rem;
  line-height: 1.45;
  color: #6e6e73;
  margin-bottom: 1rem;
}

/* Optional: style CTA button inside the slide */
.main-slider-four .slide a.btn,
.main-slider-four .slide a.cmp_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem !important;
  border-radius: 0.9rem;
  background: var(--pkp-primary, #0a84ff);
  color: #fff !important;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.main-slider-four .slide a.btn:hover,
.main-slider-four .slide a.cmp_button:hover {
  background: color-mix(in srgb, var(--pkp-primary, #0a84ff) 90%, white);
  transform: translateY(-1px);
}

/* Remove any background overlays or huge gaps added by plugins */
.main-slider-four .owl-stage-outer,
.main-slider-four .owl-stage,
.main-slider-four .owl-item {
  min-height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Responsive fine-tuning */
@media (max-width: 768px) {
  .main-slider-four .slide {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
  }
  .main-slider-four .slide h1,
  .main-slider-four .slide h2 {
    font-size: 1.5rem !important;
  }
}
@media (max-width: 480px) {
  .main-slider-four .slide {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }
}







/* ============================
   OJS Page Title Padding Fix
   Compact Apple-style spacing
   ============================ */

/* Reduce huge padding on top/bottom of page titles */
.page-title,
.pkp_page_title,
.obj_article_details .page-title {
  padding-top: 20px !important;
  padding-bottom: 20px !important;
  margin-top: 0 !important;
  margin-bottom: 0.75rem !important;
}

/* Optional: tighten text itself for clean hierarchy */
.page-title h1,
.page-title h2,
.pkp_page_title h1 {
  font-size: 1.6rem;
  line-height: 1.2;
  font-weight: 600;
  color: #1c1c1e;
  margin: 0;
  letter-spacing: 0.2px;
}

/* Prevent theme banner overlap (if theme uses banner header above title) */
.pkp_page_index .page-title,
.pkp_page_about .page-title,
.pkp_page_submissions .page-title {
  margin-top: 0 !important;
}

/* Responsive adjustment: small screens keep proportionate spacing */
@media (max-width: 600px) {
  .page-title,
  .pkp_page_title {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }
}













/* ============================
   OJS Apple Sidebar Polish
   Scope: targets your custom sidebar block found in #sidebar and #sidebar_content
   Safe for OJS 3.3â€“3.4; non-destructive overrides
   ============================ */

:root {
  /* Inherit theme brand color when available; fall back to link color or a tasteful blue */
  --ojs-accent: var(--pkp-primary, var(--theme-primary, var(--link-color, #0a84ff)));
  --ojs-text: #1c1c1e;
  --ojs-subtle: #f2f2f7; /* subtle hover background */
  --ojs-radius: 16px;
}

/* Normalize the custom sidebar containers to white cards */
#sidebar .pkp_block#customblock-side .content,
#sidebar_content .pkp_block#customblock-side .content,
#sidebar .pkp_block#customblock-indexing .content {
  background: #fff !important;         /* kill light grey */
  border: 0 !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.06); /* light, Apple-like depth */
  border-radius: var(--ojs-radius);
  padding: 1.25rem 1rem;
  color: var(--ojs-text);
}

/* Remove any grey wrappers applied above/below the inner .sidebar container */
#sidebar .sidebar,
#sidebar_content .sidebar {
  background: transparent !important;
  border: 0 !important;
  padding: 0;
}

/* Heading: "Instructions to Authors" (increase by ~20%) */
#sidebar .sidebar > h3,
#sidebar_content .sidebar > h3 {
  font-size: 1.2em;        /* +20% relative to current context */
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 .75rem 0;
  color: var(--ojs-text);
  letter-spacing: .2px;
}

/* Sidebar list reset */
#sidebar .sidebar ul,
#sidebar_content .sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Items: +30% text size, comfortable tap targets, Apple feel */
#sidebar .sidebar li a,
#sidebar_content .sidebar li a {
  display: block;
  font-size: 1.3em;         /* +30% */
  line-height: 1.35;
  padding: .55rem .65rem;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;           /* respects theme color scheme */
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

/* Hover/Focus states with your theme accent */
#sidebar .sidebar li a:hover,
#sidebar .sidebar li a:focus,
#sidebar_content .sidebar li a:hover,
#sidebar_content .sidebar li a:focus {
  background: var(--ojs-subtle);
  color: var(--ojs-accent);
  outline: 2px solid transparent;
  outline-offset: 2px;
}

/* Keyboard focus visible */
#sidebar .sidebar li a:focus-visible,
#sidebar_content .sidebar li a:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ojs-accent) 35%, white);
}

/* Compact separators between groups (if you add blank <p> or <hr> in the block) */
#sidebar .sidebar hr,
#sidebar_content .sidebar hr {
  border: 0;
  border-top: 1px solid rgba(0,0,0,.08);
  margin: .75rem 0;
}

/* Logos & badges inside sidebar: tidy and responsive */
#sidebar .sidebar img,
#sidebar_content .sidebar img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: .5rem 0;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}

/* Card spacing if you have multiple blocks stacked */
#sidebar .pkp_block,
#sidebar_content .pkp_block {
  margin-bottom: 1rem;
}

/* Mobile polish */
@media (max-width: 768px) {
  #sidebar .pkp_block#customblock-side .content,
  #sidebar_content .pkp_block#customblock-side .content {
    padding: 1rem .875rem;
    border-radius: 14px;
  }
  #sidebar .sidebar li a,
  #sidebar_content .sidebar li a {
    padding: .6rem .7rem;
  }
}

/* Motion sensitivity */
@media (prefers-reduced-motion: reduce) {
  #sidebar .sidebar li a,
  #sidebar_content .sidebar li a {
    transition: none;
  }
}


/* ============================
   OJS Footer â€“ Academic Apple Style
   Scope: #pkp_structure_footer, .pkp_footer_content
   Safe for OJS 3.3â€“3.4; non-destructive
   ============================ */

:root {
  --footer-bg: #f9fafb;
  --footer-text: #1c1c1e;
  --footer-accent: var(--pkp-primary, var(--theme-primary, #0a84ff));
  --footer-muted: #6e6e73;
}

/* Base footer container */
#pkp_structure_footer,
.pkp_footer_content {
  background: var(--footer-bg);
  color: var(--footer-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding: 2.5rem 1rem;
  text-align: center;
}

/* Footer inner layout */
#pkp_structure_footer .pkp_footer_content {
  max-width: 960px;
  margin: 0 auto;
}

/* Journal name */
#pkp_structure_footer .journal-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--footer-text);
  margin-bottom: 0.25rem;
}

/* Publisher info */
#pkp_structure_footer .publisher-address {
  font-size: 0.95rem;
  color: var(--footer-muted);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

/* Divider line */
#pkp_structure_footer .footer-divider {
  width: 60px;
  height: 1px;
  background: rgba(0,0,0,0.1);
  margin: 0.75rem auto 1.25rem auto;
}

/* Copyright */
#pkp_structure_footer .copyright {
  font-size: 0.9rem;
  color: var(--footer-muted);
}

/* Links inside footer (if added later) */
#pkp_structure_footer a {
  color: var(--footer-accent);
  text-decoration: none;
}
#pkp_structure_footer a:hover,
#pkp_structure_footer a:focus {
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 600px) {
  #pkp_structure_footer {
    padding: 2rem 1rem;
  }
  #pkp_structure_footer .journal-title {
    font-size: 1.1rem;
  }
}









/* =========================================
   Global Heading Scale â€“ content areas only
   Keeps masthead/slider/sidebars unchanged
   ========================================= */

:root{
  /* Type scale (tweak if needed) */
  --h1-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.0rem);
  --h2-size: clamp(1.35rem, 1.0rem + 0.9vw, 1.6rem);
  --h3-size: clamp(1.15rem, 0.95rem + 0.5vw, 1.3rem);
  --h4-size: 1.05rem;
  --h5-size: 1rem;
  --h6-size: 0.95rem;
  --heading-color: #1c1c1e;
}

/* Scope to main content columns so headers in nav/slider stay as-is */
#main-content h1,
#main-content .ojs-policy h1,
#main-content .ojs-guidelines h1 {
  font-size: var(--h1-size) !important;
  line-height: 1.2;
  font-weight: 700;
  color: var(--heading-color);
  margin: 0.6rem 0 0.6rem;
  letter-spacing: .2px;
}

#main-content h2,
#main-content .ojs-policy h2,
#main-content .ojs-guidelines h2 {
  font-size: var(--h2-size) !important;
  line-height: 1.25;
  font-weight: 600;
  color: var(--heading-color);
  margin: 1rem 0 0.5rem;
  letter-spacing: .1px;
}

#main-content h3,
#main-content .ojs-policy h3,
#main-content .ojs-guidelines h3 {
  font-size: var(--h3-size) !important;
  line-height: 1.3;
  font-weight: 600;
  color: var(--heading-color);
  margin: 0.85rem 0 0.4rem;
}

#main-content h4 { font-size: var(--h4-size) !important; font-weight: 600; line-height: 1.35; margin: 0.75rem 0 0.35rem; color: var(--heading-color); }
#main-content h5 { font-size: var(--h5-size) !important; font-weight: 600; line-height: 1.4;  margin: 0.6rem 0 0.3rem;  color: var(--heading-color); }
#main-content h6 { font-size: var(--h6-size) !important; font-weight: 600; line-height: 1.4;  margin: 0.6rem 0 0.3rem;  color: var(--heading-color); }

/* Tighten headings inside policy/guideline blocks a touch */
.ojs-policy h1, .ojs-guidelines h1 { margin-top: .2rem; }
.ojs-policy h2 + p, .ojs-guidelines h2 + p { margin-top: .1rem; }

/* Small screens: slightly smaller H1 only */
@media (max-width: 600px){
  #main-content h1 { font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.8rem) !important; }
}

/* Do not affect: page masthead title already handled by .page-title rules */




/* =========================================
   Global Text Justification + Word Wrapping
   Safe for OJS 3.3â€“3.4
   ========================================= */

/* Justify body text across main content, home intro, and policy/guideline pages */
#main-content,
#main-content p,
#main-content li,
.pkp_page_index #main-content .home-intro,
.pkp_page_index #main-content .home-intro p,
.ojs-policy p,
.ojs-guidelines p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  overflow-wrap: break-word;
  word-wrap: break-word;
  line-height: 1.6;
}

/* Ensure nested lists or long lines don't overflow */
#main-content ul,
#main-content ol {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  overflow-wrap: break-word;
}

/* Sidebar blocks â€“ keep menu justified but readable */
#sidebar .sidebar li a,
#sidebar_content .sidebar li a {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Homepage lead & general paragraphs keep justified appearance */
.pkp_page_index #main-content .home-intro .lead,
.pkp_page_index #main-content .home-intro p {
  text-align: justify;
  text-justify: inter-word;
}

/* Prevent justified text on buttons or nav links (keep centered or left) */
nav a,
.menu a,
.pkp_navigation_primary a,
a.cmp_button,
a.btn {
  text-align: center !important;
  text-justify: auto !important;
  white-space: normal;
}

/* Keep footer readable with natural left alignment */
#pkp_structure_footer,
#pkp_structure_footer p {
  text-align: center;
  hyphens: none;
}

/* Smooth wrapping of long unbreakable words or URLs */
p, li, td, blockquote {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}




/* =========================================
   Homepage Hero Text Visibility Fix
   For .main-slider-four .slide content
   Ensures readable, non-fading text
   ========================================= */

/* Force visible text and stable contrast */
.main-slider-four .slide h1,
.main-slider-four .slide h2,
.main-slider-four .slide h3 {
  color: #000000 !important;           /* pure black for maximum readability */
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.4); /* soft lift for colored bg */
  opacity: 1 !important;
  visibility: visible !important;
}

.main-slider-four .slide p {
  color: #1a1a1a !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
  opacity: 1 !important;
  visibility: visible !important;
}

/* Optional: stronger emphasis for hero heading */
.main-slider-four .slide h1 {
  font-weight: 700 !important;
  letter-spacing: 0.2px;
}

/* Button styling stays bright and distinct */
.main-slider-four .slide a.btn,
.main-slider-four .slide a.cmp_button {
  background-color: #ffcc00 !important;     /* rich yellow Apple-style CTA */
  color: #000 !important;
  border: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.main-slider-four .slide a.btn:hover,
.main-slider-four .slide a.cmp_button:hover {
  background-color: #ffd633 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

/* Fix disappearing text caused by auto slider opacity fade */
.main-slider-four .slide * {
  opacity: 1 !important;
  visibility: visible !important;
  transition: none !important;
}

/* Prevent the slider background overlay from hiding text */
.main-slider-four .owl-item,
.main-slider-four .owl-stage-outer {
  background: none !important;
}

