/*
 * IJPHS — International Scientific Journal
 * Purple gradient + balanced 8-second organic motion
 * OJS 3.3 / 3.4 supplementary stylesheet
 *
 * Inspired by the contemporary, spacious journal presentation of Narra X,
 * while retaining an original IJPHS visual identity.
 */

:root {
  --ijphs-purple-950: #160d35;
  --ijphs-purple-900: #21104b;
  --ijphs-purple-800: #32156c;
  --ijphs-purple-700: #4b2690;
  --ijphs-violet: #7651c8;
  --ijphs-lilac: #b9a4f2;
  --ijphs-pink: #d9a8ed;
  --ijphs-ice: #eeeaff;
  --ijphs-ink: #29243b;
  --ijphs-muted: #77718a;
  --ijphs-line: #e9e4f2;
  --ijphs-white: #fff;
}

/* Base */
html { scroll-behavior: smooth; }
body {
  color: var(--ijphs-ink);
  background: #fff;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.7;
}
a {
  color: #6542a8;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .25s ease;
}
a:hover, a:focus { color: #a04fc0; }

/* Header: layered purple gradient with slow animated light fields */
.pkp_structure_head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--ijphs-white);
  background:
    radial-gradient(ellipse at 12% 8%, rgba(184,157,255,.24), transparent 34%),
    radial-gradient(ellipse at 88% 78%, rgba(210,137,231,.20), transparent 36%),
    radial-gradient(ellipse at 62% 18%, rgba(190,157,245,.13), transparent 22%),
    radial-gradient(ellipse at 35% 88%, rgba(222,174,239,.12), transparent 25%),
    radial-gradient(ellipse at 75% 58%, rgba(133,99,207,.16), transparent 20%),
    linear-gradient(120deg, #180d38 0%, #2a155d 42%, #4b268b 72%, #25124f 100%);
  background-size: 150% 150%;
  animation: ijphs-header-glow 2s ease-in-out infinite alternate;
  border-bottom: 1px solid rgba(220,203,255,.38);
  box-shadow: 0 12px 34px rgba(32,16,74,.15);
}
@keyframes ijphs-header-glow {
  0% { background-position: 0% 35%; }
  100% { background-position: 100% 65%; }
}
.pkp_structure_head::before,
.pkp_structure_head::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 48% 52% 61% 39% / 42% 43% 57% 58%;
}
.pkp_structure_head::before {
  width: 440px;
  height: 340px;
  top: -185px;
  right: -85px;
  background:
    radial-gradient(ellipse at 36% 60%, rgba(213,195,255,.26), rgba(161,120,226,.10) 48%, transparent 72%);
  border: 1px solid rgba(224,211,255,.20);
  box-shadow:
    0 0 0 26px rgba(221,205,255,.035),
    0 0 0 56px rgba(221,205,255,.025);
  animation: ijphs-blob-one 2s ease-in-out infinite alternate;
}
.pkp_structure_head::after {
  width: 270px;
  height: 230px;
  left: 37%;
  bottom: -175px;
  background: radial-gradient(ellipse, rgba(204,151,235,.20), rgba(131,92,204,.06) 62%, transparent 74%);
  border: 1px solid rgba(224,211,255,.12);
  animation: ijphs-blob-two 2s ease-in-out infinite alternate;
}
@keyframes ijphs-blob-one {
  0% { transform: translate3d(0,0,0) rotate(-8deg) scale(1); border-radius: 48% 52% 61% 39% / 42% 43% 57% 58%; }
  100% { transform: translate3d(-32px,25px,0) rotate(12deg) scale(1.08); border-radius: 62% 38% 43% 57% / 55% 40% 60% 45%; }
}
@keyframes ijphs-blob-two {
  0% { transform: translate3d(0,0,0) rotate(0deg); border-radius: 48% 52% 61% 39% / 42% 43% 57% 58%; }
  100% { transform: translate3d(25px,-22px,0) rotate(18deg); border-radius: 65% 35% 50% 50% / 40% 60% 40% 60%; }
}
.pkp_head_wrapper {
  position: relative;
  z-index: 1;
  padding-top: 30px;
  padding-bottom: 24px;
}
.pkp_site_name {
  padding-top: 12px;
  padding-bottom: 16px;
}
.pkp_site_name a,
.pkp_site_name a:hover {
  color: #fff !important;
  text-decoration: none;
  text-shadow: 0 3px 20px rgba(9,4,25,.25);
}
.pkp_site_name .is_img img {
  max-height: 100px;
  width: auto;
  filter: drop-shadow(0 7px 16px rgba(9,4,25,.22));
}
.pkp_site_name .is_text {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.12;
  font-weight: 760;
  letter-spacing: .025em;
}

/* Navigation */
.pkp_navigation_primary_wrapper {
  position: relative;
  z-index: 2;
  width: min(1000px, calc(100% - 32px));
  min-height: 20px;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f4fc; /* matches the light main-content surface */
  border: 1px solid #e9e4f2;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 7px 22px rgba(48,27,91,.07);
}
.pkp_navigation_primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  width: 100%;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 7px 4px;
}
.pkp_navigation_primary > li > a {
  display: block;
  padding: 11px 15px;
  color: #32156c !important;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .065em;
  text-transform: uppercase;
  transition: color .25s ease, background .25s ease, box-shadow .25s ease;
}
.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus,
.pkp_navigation_primary > li > a[aria-current="page"] {
  color: #fff !important;
  background: linear-gradient(110deg, #4a2789, #7651c8);
  box-shadow: 0 4px 12px rgba(83,48,143,.18);
}
.pkp_navigation_user_wrapper { background: transparent; }
.pkp_navigation_user > li > a,
.pkp_navigation_search_wrapper a { color: #ffffff !important; }

/* Main page */
.pkp_structure_content {
  padding-top: 36px;
  padding-bottom: 50px;
}
.pkp_structure_main h1,
.pkp_structure_main h2,
.pkp_structure_main h3 {
  color: var(--ijphs-purple-900);
  font-weight: 720;
  letter-spacing: -.018em;
}
.pkp_structure_main h2 {
  padding-bottom: 11px;
  border-bottom: 1px solid var(--ijphs-line);
}
.obj_article_summary {
  padding: 21px 23px;
  margin-bottom: 18px;
  background: #fff;
  border: 1px solid var(--ijphs-line);
  border-left: 3px solid var(--ijphs-violet);
  border-radius: 7px;
  box-shadow: 0 5px 20px rgba(48,27,91,.045);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.obj_article_summary:hover {
  transform: translateY(-3px);
  border-left-color: #bd78d5;
  box-shadow: 0 13px 30px rgba(48,27,91,.10);
}
.obj_article_summary .title a {
  color: var(--ijphs-purple-900);
  font-weight: 720;
}
.obj_article_summary .title a:hover { color: #8754bd; }

/* Buttons */
.cmp_button,
.pkp_button,
button,
input[type="submit"] {
  border-radius: 5px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.cmp_button,
.pkp_button,
input[type="submit"] {
  color: #fff;
  background: linear-gradient(110deg, #4a2789, #7651c8);
  border-color: #6542a8;
}
.cmp_button:hover,
.pkp_button:hover,
input[type="submit"]:hover {
  color: #fff;
  background: linear-gradient(110deg, #6741a7, #9b60c4);
  border-color: #8a59b7;
  box-shadow: 0 6px 16px rgba(83,48,143,.22);
  transform: translateY(-1px);
}

/* Sidebar */
.pkp_block {
  padding: 18px;
  margin-bottom: 20px;
  background: linear-gradient(145deg, #fbfaff, #f5f1fc);
  border: 1px solid #ebe4f5;
  border-radius: 7px;
}
.pkp_block .title {
  color: var(--ijphs-purple-900);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .085em;
  text-transform: uppercase;
}

/* Footer: deep violet with drifting translucent organic forms */
.pkp_structure_footer_wrapper {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: rgba(255,255,255,.82);
  background:
    radial-gradient(ellipse at 8% 12%, rgba(143,104,211,.25), transparent 36%),
    radial-gradient(ellipse at 88% 90%, rgba(196,125,218,.18), transparent 35%),
    radial-gradient(ellipse at 42% 18%, rgba(195,160,245,.13), transparent 23%),
    radial-gradient(ellipse at 72% 42%, rgba(213,157,232,.12), transparent 20%),
    radial-gradient(ellipse at 22% 82%, rgba(139,104,212,.15), transparent 24%),
    linear-gradient(130deg, #160d35 0%, #24104f 48%, #3b1d70 100%);
  border-top: 0;
}
.pkp_structure_footer_wrapper::before,
.pkp_structure_footer_wrapper::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}
.pkp_structure_footer_wrapper::before {
  width: 390px;
  height: 300px;
  right: -105px;
  top: -145px;
  background: radial-gradient(ellipse, rgba(202,174,255,.22), rgba(152,112,218,.07) 58%, transparent 74%);
  border: 1px solid rgba(225,211,255,.14);
  box-shadow: 0 0 0 30px rgba(218,198,255,.025), 0 0 0 62px rgba(218,198,255,.018);
  animation: ijphs-footer-float 2s ease-in-out infinite alternate;
}
.pkp_structure_footer_wrapper::after {
  width: 260px;
  height: 220px;
  left: 16%;
  bottom: -150px;
  background: radial-gradient(ellipse, rgba(191,132,221,.19), rgba(119,78,184,.05) 62%, transparent 75%);
  animation: ijphs-footer-float 2s ease-in-out infinite alternate-reverse;
}
@keyframes ijphs-footer-float {
  0% { transform: translate3d(0,0,0) scale(1) rotate(-5deg); }
  100% { transform: translate3d(28px,-20px,0) scale(1.12) rotate(12deg); }
}
.pkp_structure_footer {
  position: relative;
  z-index: 1;
  padding-top: 44px;
  padding-bottom: 34px;
}
.pkp_footer_content,
.pkp_brand_footer { color: rgba(255,255,255,.79); }
.pkp_structure_footer a {
  color: #d8c7ff;
  text-decoration: none;
}
.pkp_structure_footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.pkp_structure_footer .pkp_brand_footer img {
  max-height: 48px;
  opacity: .9;
  filter: grayscale(1) brightness(0) invert(1);
}
.pkp_structure_footer::after {
  content: "Advancing Pharmaceutical and Health Sciences Through Research";
  display: block;
  max-width: 780px;
  margin: 22px auto 0;
  padding-top: 18px;
  color: rgba(231,220,255,.75);
  border-top: 0;
  font-size: 11px;
  letter-spacing: .085em;
  text-align: center;
}


/* Additional floating amoeba accents: increases organic depth without JS. */
.pkp_head_wrapper::before,
.pkp_head_wrapper::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 58% 42% 36% 64% / 47% 55% 45% 53%;
  background: radial-gradient(ellipse, rgba(215,190,255,.19), rgba(170,128,230,.06) 60%, transparent 74%);
  border: 1px solid rgba(230,215,255,.12);
}
.pkp_head_wrapper::before {
  width: 190px;
  height: 145px;
  left: 8%;
  top: 12px;
  animation: ijphs-blob-one 2s ease-in-out infinite alternate-reverse;
}
.pkp_head_wrapper::after {
  width: 145px;
  height: 120px;
  right: 27%;
  bottom: 8px;
  animation: ijphs-blob-two 2s ease-in-out infinite alternate;
}
.pkp_structure_footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  width: 180px;
  height: 145px;
  left: 48%;
  top: 28px;
  border-radius: 63% 37% 48% 52% / 45% 58% 42% 55%;
  background: radial-gradient(ellipse, rgba(205,174,255,.18), rgba(156,113,220,.05) 62%, transparent 75%);
  border: 1px solid rgba(225,211,255,.12);
  animation: ijphs-footer-float 2s ease-in-out infinite alternate;
}

/* Footer dimensions: full-width band, content aligned to a 1440px canvas. */
.pkp_structure_footer_wrapper {
  width: 100%;
  min-height: 310px;
  box-sizing: border-box;
}
.pkp_structure_footer {
  width: 100%;
  max-width: 1440px;
  min-height: 310px;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}

/* Focus and responsive */
:focus-visible {
  outline: 3px solid #d8c7ff;
  outline-offset: 3px;
}
@media (max-width: 767px) {
  .pkp_head_wrapper { padding-top: 19px; padding-bottom: 16px; }
  .pkp_site_name .is_img img { max-height: 74px; }
  .pkp_site_name::after { font-size: 8px; letter-spacing: .11em; }
  .pkp_navigation_primary_wrapper { width: calc(100% - 20px); min-height: 90px; height: auto; margin: 0 10px; padding: 8px; border-radius: 0 0 14px 14px; }
  .pkp_navigation_primary { justify-content: center; gap: 3px; }
  .pkp_navigation_primary > li > a { padding: 10px 11px; }
  .pkp_structure_content { padding-top: 24px; }
  .pkp_structure_footer { padding-top: 31px; padding-bottom: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}


/* =========================================================
   IJPHS NAVIGATION UPDATE
   Primary navigation: 1160px wide x 40px high
   Dropdown menus: purple gradient
   ========================================================= */

.pkp_navigation_primary_wrapper {
  width: min(1160px, calc(100% - 32px)) !important;
  max-width: 1160px !important;
  height: 40px !important;
  min-height: 40px !important;
  box-sizing: border-box !important;
  margin: 0 auto !important;
  padding: 0 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f7f4fc !important;
  border: 1px solid #e9e4f2 !important;
  border-radius: 0 0 16px 16px !important;
  box-shadow: 0 6px 18px rgba(48,27,91,.07) !important;
}

.pkp_navigation_primary {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.pkp_navigation_primary > li {
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
}

.pkp_navigation_primary > li > a {
  display: flex !important;
  height: 32px !important;
  align-items: center !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  color: #32156c !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .055em !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus,
.pkp_navigation_primary > li > a[aria-current="page"] {
  color: #fff !important;
  background: linear-gradient(110deg, #4a2789, #7651c8) !important;
  box-shadow: 0 3px 10px rgba(83,48,143,.18) !important;
}

/* Dropdown panel — cover OJS nested lists and Bootstrap-style menus. */
.pkp_navigation_primary li ul,
.pkp_navigation_primary li .dropdown-menu,
.pkp_navigation_primary .dropdown-menu {
  min-width: 190px !important;
  padding: 7px !important;
  margin-top: 0 !important;
  background: linear-gradient(145deg, #32156c 0%, #4b2690 55%, #7651c8 100%) !important;
  border: 1px solid rgba(221,205,255,.28) !important;
  border-radius: 9px !important;
  box-shadow: 0 12px 28px rgba(22,13,53,.24) !important;
  z-index: 9999 !important;
}

.pkp_navigation_primary li ul li,
.pkp_navigation_primary .dropdown-menu li {
  display: block !important;
  width: 100% !important;
}

.pkp_navigation_primary li ul a,
.pkp_navigation_primary li .dropdown-menu a,
.pkp_navigation_primary .dropdown-menu a {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 10px 13px !important;
  color: #f7f2ff !important;
  background: transparent !important;
  border-radius: 5px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  text-transform: none !important;
  white-space: normal !important;
  transition: background .2s ease, color .2s ease, padding-left .2s ease !important;
}

.pkp_navigation_primary li ul a:hover,
.pkp_navigation_primary li ul a:focus,
.pkp_navigation_primary li .dropdown-menu a:hover,
.pkp_navigation_primary li .dropdown-menu a:focus,
.pkp_navigation_primary .dropdown-menu a:hover,
.pkp_navigation_primary .dropdown-menu a:focus {
  color: #fff !important;
  background: rgba(220,203,255,.20) !important;
  padding-left: 17px !important;
}

/* Mobile: preserve a compact navigation bar and allow wrapping if needed. */
@media (max-width: 767px) {
  .pkp_navigation_primary_wrapper {
    width: calc(100% - 20px) !important;
    height: auto !important;
    min-height: 40px !important;
    margin: 0 10px !important;
    padding: 4px 6px !important;
  }

  .pkp_navigation_primary {
    height: auto !important;
    min-height: 32px !important;
    flex-wrap: wrap !important;
    gap: 2px !important;
  }

  .pkp_navigation_primary > li {
    height: auto !important;
  }

  .pkp_navigation_primary > li > a {
    height: 30px !important;
    padding: 0 10px !important;
    font-size: 9px !important;
  }
}


/* =========================================================
   IJPHS NAVIGATION TRANSPARENCY + DROPDOWN VISIBILITY FIX
   OJS 3.3 / Default theme
   ========================================================= */

/* The full-width navigation row outside the centered menu is transparent,
   allowing the animated purple header background to remain visible. */
.pkp_navigation_primary_row {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Keep the centered navigation panel itself softly lavender. */
.pkp_navigation_primary_wrapper {
  position: relative !important;
  z-index: 10020 !important;
  overflow: visible !important;
  background: rgba(247, 244, 252, 0.94) !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* Do not clip the dropdown at the bottom edge of the animated header. */
.pkp_structure_head {
  position: relative !important;
  z-index: 10000 !important;
  overflow: visible !important;
}

.pkp_head_wrapper,
.pkp_site_nav_menu,
.pkp_navigation_primary,
.pkp_navigation_primary > li {
  overflow: visible !important;
}

.pkp_navigation_primary > li {
  position: relative !important;
}

/* OJS 3.3 default theme places nested menu lists off-canvas until hover.
   Restore them directly below their parent menu item. */
.pkp_navigation_primary > li > ul,
.pkp_navigation_primary > li > .dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: auto !important;
  transform: none !important;
  display: block !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  min-width: 210px !important;
  max-width: 280px !important;
  height: auto !important;
  margin: 5px 0 0 !important;
  padding: 7px !important;
  overflow: visible !important;
  background: linear-gradient(145deg, #32156c 0%, #4b2690 55%, #7651c8 100%) !important;
  border: 1px solid rgba(221, 205, 255, 0.35) !important;
  border-radius: 10px !important;
  box-shadow: 0 14px 30px rgba(22, 13, 53, 0.28) !important;
  z-index: 10050 !important;
  transition: opacity .18s ease, visibility .18s ease !important;
}

/* Reveal on hover and keyboard focus. */
.pkp_navigation_primary > li:hover > ul,
.pkp_navigation_primary > li:focus-within > ul,
.pkp_navigation_primary > li:hover > .dropdown-menu,
.pkp_navigation_primary > li:focus-within > .dropdown-menu,
.pkp_navigation_primary > li > .dropdown-menu.show {
  left: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Purple dropdown item styling. */
.pkp_navigation_primary > li > ul > li,
.pkp_navigation_primary > li > .dropdown-menu > li {
  display: block !important;
  width: 100% !important;
  position: relative !important;
}

.pkp_navigation_primary > li > ul a,
.pkp_navigation_primary > li > .dropdown-menu a {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 10px 13px !important;
  color: #f7f2ff !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  text-align: left !important;
  text-transform: none !important;
  white-space: normal !important;
}

.pkp_navigation_primary > li > ul a:hover,
.pkp_navigation_primary > li > ul a:focus,
.pkp_navigation_primary > li > .dropdown-menu a:hover,
.pkp_navigation_primary > li > .dropdown-menu a:focus {
  color: #fff !important;
  background: rgba(220, 203, 255, 0.22) !important;
  padding-left: 17px !important;
}

/* Ensure the dropdown layer sits above the page content below the header. */
.pkp_structure_content {
  position: relative;
  z-index: 1;
}

/* Mobile navigation remains usable; OJS controls its open/closed state. */
@media (max-width: 767px) {
  .pkp_structure_head {
    overflow: visible !important;
  }

  .pkp_navigation_primary > li > ul,
  .pkp_navigation_primary > li > .dropdown-menu {
    position: static !important;
    display: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 4px 0 8px !important;
  }

  .pkp_navigation_primary > li:hover > ul,
  .pkp_navigation_primary > li:focus-within > ul,
  .pkp_navigation_primary > li:hover > .dropdown-menu,
  .pkp_navigation_primary > li:focus-within > .dropdown-menu,
  .pkp_navigation_primary > li > .dropdown-menu.show {
    display: block !important;
  }
}

/* =========================================================
   PRIMARY NAVIGATION ROW ONLY — Narra X inspired layout
   All header, animation, content, sidebar, and footer styles
   above remain unchanged.
   ========================================================= */
.pkp_navigation_primary_row {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.pkp_navigation_primary_wrapper {
  width: min(81.25%, 1240px) !important;
  max-width: 1240px !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 auto !important;
  padding: 0 18px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
  background: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.pkp_navigation_primary {
  width: 100% !important;
  height: 100% !important;
  min-height: 44px !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.pkp_navigation_primary > li {
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
}

.pkp_navigation_primary > li > a {
  display: flex !important;
  height: 100% !important;
  align-items: center !important;
  padding: 0 13px !important;
  border-radius: 0 !important;
  color: #666 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .01em !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  text-transform: uppercase !important;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus,
.pkp_navigation_primary > li > a[aria-current="page"] {
  color: #4b2690 !important;
  background: #f5f1fb !important;
  box-shadow: none !important;
}

@media (max-width: 767px) {
  .pkp_navigation_primary_wrapper {
    width: calc(100% - 20px) !important;
    height: auto !important;
    min-height: 44px !important;
    margin: 0 10px !important;
    padding: 4px 7px !important;
  }

  .pkp_navigation_primary {
    height: auto !important;
    min-height: 36px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 2px !important;
  }

  .pkp_navigation_primary > li {
    height: 34px !important;
  }

  .pkp_navigation_primary > li > a {
    height: 34px !important;
    padding: 0 9px !important;
    font-size: 9px !important;
  }
}


/* =========================================================
   IJPHS SCIENTIFIC PEAK-FRAGMENT MOTION
   Subtle LC-MS / chromatogram-inspired signal fragments.
   Replaces the previous amoeba-like decorative motion.
   CSS only — compatible with OJS 3.3 / 3.4.
   ========================================================= */

/* A restrained scientific signal layer: fine baseline + irregular peaks. */
:root {
  --ijphs-spectrum-bright: rgba(224, 211, 255, .34);
  --ijphs-spectrum-soft: rgba(190, 164, 242, .20);
}

/* Remove the old organic blob shapes so the visual language stays consistent. */
.pkp_structure_head::before,
.pkp_structure_head::after,
.pkp_head_wrapper::before,
.pkp_head_wrapper::after,
.pkp_structure_footer_wrapper::before,
.pkp_structure_footer_wrapper::after,
.pkp_structure_footer::before {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  animation: none !important;
}

/* Header: low-contrast spectral traces drifting horizontally at different speeds. */
.pkp_structure_head {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 250' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23e0d3ff' stroke-width='1.15' opacity='.42'%3E%3Cpath d='M0 208H1440' opacity='.35'/%3E%3Cpath d='M0 208 L74 208 82 202 88 208 146 208 153 188 158 208 226 208 234 197 240 208 318 208 325 151 331 208 392 208 401 190 407 208 475 208 484 174 490 208 548 208 556 198 562 208 632 208 640 126 646 208 704 208 713 184 719 208 781 208 790 194 796 208 862 208 871 163 877 208 940 208 948 190 954 208 1025 208 1034 139 1040 208 1105 208 1113 191 1119 208 1187 208 1196 177 1202 208 1270 208 1278 195 1284 208 1350 208 1359 158 1365 208 1440 208'/%3E%3C/g%3E%3Cg fill='none' stroke='%23c5aaf5' stroke-width='.8' opacity='.25'%3E%3Cpath d='M0 224 L105 224 112 217 118 224 202 224 210 207 216 224 294 224 301 213 307 224 386 224 394 185 400 224 478 224 486 212 492 224 570 224 578 197 584 224 664 224 672 215 678 224 756 224 764 179 770 224 850 224 858 211 864 224 944 224 952 192 958 224 1038 224 1046 214 1052 224 1132 224 1140 187 1146 224 1226 224 1234 212 1240 224 1320 224 1328 201 1334 224 1440 224'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(ellipse at 12% 8%, rgba(184,157,255,.24), transparent 34%),
    radial-gradient(ellipse at 88% 78%, rgba(210,137,231,.20), transparent 36%),
    radial-gradient(ellipse at 62% 18%, rgba(190,157,245,.13), transparent 22%),
    linear-gradient(120deg, #180d38 0%, #2a155d 42%, #4b268b 72%, #25124f 100%) !important;
  background-repeat: repeat-x, no-repeat, no-repeat, no-repeat, no-repeat !important;
  background-size: 1440px 100%, auto, auto, auto, 150% 150% !important;
  background-position: 0 100%, center, center, center, 0% 35% !important;
  animation: ijphs-spectrum-drift 34s linear infinite,
             ijphs-header-glow 18s ease-in-out infinite alternate !important;
}

/* Footer: a second, finer signal trace to echo the header without competing with text. */
.pkp_structure_footer_wrapper {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 220' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23d8c7ff' stroke-width='1' opacity='.30'%3E%3Cpath d='M0 178H1440' opacity='.4'/%3E%3Cpath d='M0 178 L92 178 100 165 106 178 190 178 198 151 204 178 286 178 294 168 300 178 382 178 390 137 396 178 478 178 486 160 492 178 574 178 582 146 588 178 670 178 678 164 684 178 766 178 774 128 780 178 862 178 870 158 876 178 958 178 966 143 972 178 1054 178 1062 164 1068 178 1150 178 1158 133 1164 178 1246 178 1254 161 1260 178 1342 178 1350 148 1356 178 1440 178'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(ellipse at 8% 12%, rgba(143,104,211,.25), transparent 36%),
    radial-gradient(ellipse at 88% 90%, rgba(196,125,218,.18), transparent 35%),
    linear-gradient(130deg, #160d35 0%, #24104f 48%, #3b1d70 100%) !important;
  background-repeat: repeat-x, no-repeat, no-repeat, no-repeat !important;
  background-size: 1440px 100%, auto, auto, auto !important;
  background-position: 0 100%, center, center, center !important;
  animation: ijphs-footer-spectrum-drift 42s linear infinite !important;
}

/* Keep the signal decorative and behind all readable content. */
.pkp_structure_head,
.pkp_structure_footer_wrapper {
  isolation: isolate;
}

.pkp_head_wrapper,
.pkp_structure_footer {
  position: relative;
  z-index: 1;
}

/* Slow, continuous movement — closer to instrument signal acquisition than a pulse effect. */
@keyframes ijphs-spectrum-drift {
  from { background-position: 0 100%, center, center, center, 0% 35%; }
  to   { background-position: -1440px 100%, center, center, center, 100% 65%; }
}

@keyframes ijphs-footer-spectrum-drift {
  from { background-position: 0 100%, center, center, center; }
  to   { background-position: -1440px 100%, center, center, center; }
}

/* Reduced-motion accessibility: retain a static scientific trace. */
@media (prefers-reduced-motion: reduce) {
  .pkp_structure_head,
  .pkp_structure_footer_wrapper {
    animation: none !important;
  }
}


/* =========================================================
   IJPHS / IJCRHS — EMERALD CASE-REPORT IDENTITY
   Navigation surface matches the content area.
   Animated case-report motifs (5-second cycle).
   OJS 3.3 / 3.4
   ========================================================= */

:root {
  --ijphs-emerald-950: #062d27;
  --ijphs-emerald-900: #064e3b;
  --ijphs-emerald-800: #047857;
  --ijphs-emerald-700: #059669;
  --ijphs-emerald-600: #10b981;
  --ijphs-mint: #6ee7b7;
  --ijphs-pale: #d1fae5;
  --ijphs-content: #ffffff;
}

/* Emerald gradient identity across header and footer. */
.pkp_structure_head {
  background-color: var(--ijphs-emerald-950) !important;
  background-image:
    radial-gradient(ellipse at 12% 18%, rgba(110,231,183,.24), transparent 34%),
    radial-gradient(ellipse at 86% 78%, rgba(16,185,129,.22), transparent 38%),
    radial-gradient(ellipse at 58% 5%, rgba(167,243,208,.13), transparent 28%),
    linear-gradient(118deg,
      #032b25 0%,
      #064e3b 28%,
      #047857 58%,
      #059669 78%,
      #064e3b 100%) !important;
  background-size: 180% 180% !important;
  background-position: 0% 50% !important;
  animation: ijphs-emerald-gradient 2s ease-in-out infinite alternate !important;
  border-bottom-color: rgba(167,243,208,.32) !important;
}

.pkp_structure_footer_wrapper {
  background-color: var(--ijphs-emerald-950) !important;
  background-image:
    radial-gradient(ellipse at 10% 10%, rgba(110,231,183,.20), transparent 36%),
    radial-gradient(ellipse at 90% 88%, rgba(16,185,129,.20), transparent 38%),
    linear-gradient(125deg, #032b25 0%, #064e3b 42%, #047857 72%, #022c22 100%) !important;
  background-size: 180% 180% !important;
  background-position: 100% 50% !important;
  animation: ijphs-emerald-gradient 2s ease-in-out infinite alternate-reverse !important;
  border-top: 0 !important;
}

@keyframes ijphs-emerald-gradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 55% 50%; }
  100% { background-position: 100% 50%; }
}

/* Navigation row and menu surface use the same white as the main content. */
.pkp_structure_content {
  background: var(--ijphs-content) !important;
}

.pkp_navigation_primary_row {
  background: var(--ijphs-content) !important;
  border: 0 !important;
  box-shadow: none !important;
}

.pkp_navigation_primary_wrapper {
  background: var(--ijphs-content) !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.pkp_navigation_primary > li > a {
  color: var(--ijphs-emerald-900) !important;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus,
.pkp_navigation_primary > li > a[aria-current="page"] {
  color: #ffffff !important;
  background: linear-gradient(110deg, #047857 0%, #10b981 100%) !important;
  box-shadow: 0 3px 10px rgba(4,120,87,.16) !important;
}

/* Dropdowns follow the emerald palette. */
.pkp_navigation_primary li ul,
.pkp_navigation_primary li .dropdown-menu,
.pkp_navigation_primary .dropdown-menu,
.pkp_navigation_primary > li > ul,
.pkp_navigation_primary > li > .dropdown-menu {
  background: linear-gradient(145deg, #064e3b 0%, #047857 55%, #10b981 100%) !important;
  border-color: rgba(167,243,208,.32) !important;
  box-shadow: 0 14px 30px rgba(3,43,37,.24) !important;
}

.pkp_navigation_primary > li > ul a,
.pkp_navigation_primary > li > .dropdown-menu a,
.pkp_navigation_primary li ul a,
.pkp_navigation_primary li .dropdown-menu a {
  color: #ecfdf5 !important;
}

.pkp_navigation_primary > li > ul a:hover,
.pkp_navigation_primary > li > ul a:focus,
.pkp_navigation_primary > li > .dropdown-menu a:hover,
.pkp_navigation_primary > li > .dropdown-menu a:focus,
.pkp_navigation_primary li ul a:hover,
.pkp_navigation_primary li .dropdown-menu a:hover {
  color: #ffffff !important;
  background: rgba(167,243,208,.18) !important;
}

/* Main headings, links, cards and controls use emerald accents. */
a { color: #047857; }
a:hover, a:focus { color: #059669; }

.pkp_structure_main h1,
.pkp_structure_main h2,
.pkp_structure_main h3,
.obj_article_summary .title a,
.pkp_block .title {
  color: #064e3b !important;
}

.pkp_structure_main h2 {
  border-bottom-color: #d1fae5 !important;
}

.obj_article_summary {
  border-color: #d1fae5 !important;
  border-left-color: #10b981 !important;
}

.obj_article_summary:hover {
  border-left-color: #047857 !important;
}

.cmp_button,
.pkp_button,
input[type="submit"] {
  background: linear-gradient(110deg, #047857, #10b981) !important;
  border-color: #047857 !important;
}

.cmp_button:hover,
.pkp_button:hover,
input[type="submit"]:hover {
  background: linear-gradient(110deg, #065f46, #34d399) !important;
  border-color: #059669 !important;
  box-shadow: 0 6px 16px rgba(4,120,87,.20) !important;
}

.pkp_block {
  background: linear-gradient(145deg, #fbfffd, #f0fdf4) !important;
  border-color: #d1fae5 !important;
}

.pkp_structure_footer a {
  color: #a7f3d0 !important;
}
.pkp_structure_footer a:hover {
  color: #ffffff !important;
}
.pkp_structure_footer::after {
  color: rgba(209,250,229,.78) !important;
}

/* Replace chromatogram peaks with subtle case-report / clinical-pharmacy motifs:
   manuscript page, clinical note lines, medical cross, capsule and case pathway.
   The motif is decorative, low contrast and kept behind text. */
.pkp_structure_head {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 240'%3E%3Cg fill='none' stroke='%23d1fae5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' opacity='.30'%3E%3C!-- case report document --%3E%3Cpath d='M110 64h54l18 18v83h-72z M164 64v19h18 M124 103h42 M124 116h42 M124 129h30 M124 142h36'/%3E%3C!-- medical cross --%3E%3Cpath d='M340 93h16v16h16v16h-16v16h-16v-16h-16v-16h16z'/%3E%3C!-- capsule --%3E%3Cpath d='M535 108a17 17 0 0 1 24-24l22 22a17 17 0 0 1-24 24z M547 96l24 24'/%3E%3C!-- case pathway nodes --%3E%3Cpath d='M760 105h42l18-18h34 M802 105l18 18h34 M820 87v36'/%3E%3Ccircle cx='760' cy='105' r='5'/%3E%3Ccircle cx='854' cy='87' r='5'/%3E%3Ccircle cx='854' cy='123' r='5'/%3E%3C!-- clinical record / checklist --%3E%3Crect x='1010' y='68' width='76' height='94' rx='5'/%3E%3Cpath d='M1025 94l5 5 9-11 M1048 96h24 M1025 119l5 5 9-11 M1048 121h24 M1025 144h47'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(ellipse at 12% 18%, rgba(110,231,183,.24), transparent 34%),
    radial-gradient(ellipse at 86% 78%, rgba(16,185,129,.22), transparent 38%),
    radial-gradient(ellipse at 58% 5%, rgba(167,243,208,.13), transparent 28%),
    linear-gradient(118deg, #032b25 0%, #064e3b 28%, #047857 58%, #059669 78%, #064e3b 100%) !important;
  background-repeat: repeat-x, no-repeat, no-repeat, no-repeat, no-repeat !important;
  background-size: 1200px 240px, auto, auto, auto, 180% 180% !important;
  background-position: 0 50%, center, center, center, 0% 50% !important;
  animation: ijphs-case-report-motion 2s linear infinite,
             ijphs-emerald-gradient 2s ease-in-out infinite alternate !important;
}

.pkp_structure_footer_wrapper {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200'%3E%3Cg fill='none' stroke='%23d1fae5' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round' opacity='.23'%3E%3Crect x='130' y='54' width='62' height='82' rx='4'/%3E%3Cpath d='M143 77h36 M143 90h36 M143 103h25 M143 116h31 M420 86h14v14h14v14h-14v14h-14v-14h-14v-14h14z M690 103h38l17-17h30 M728 103l17 17h30'/%3E%3Ccircle cx='690' cy='103' r='5'/%3E%3Ccircle cx='783' cy='86' r='5'/%3E%3Ccircle cx='783' cy='120' r='5'/%3E%3Cpath d='M990 90a15 15 0 0 1 21-21l22 22a15 15 0 0 1-21 21z M1001 80l22 22'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(ellipse at 10% 10%, rgba(110,231,183,.20), transparent 36%),
    radial-gradient(ellipse at 90% 88%, rgba(16,185,129,.20), transparent 38%),
    linear-gradient(125deg, #032b25 0%, #064e3b 42%, #047857 72%, #022c22 100%) !important;
  background-repeat: repeat-x, no-repeat, no-repeat, no-repeat !important;
  background-size: 1200px 200px, auto, auto, auto !important;
  background-position: 0 50%, center, center, center !important;
  animation: ijphs-case-report-footer-motion 2s linear infinite,
             ijphs-emerald-gradient 2s ease-in-out infinite alternate-reverse !important;
}

@keyframes ijphs-case-report-motion {
  from { background-position: 0 50%, center, center, center, 0% 50%; }
  to   { background-position: -1200px 50%, center, center, center, 100% 50%; }
}

@keyframes ijphs-case-report-footer-motion {
  from { background-position: 0 50%, center, center, center; }
  to   { background-position: -1200px 50%, center, center, center; }
}

/* Maintain legibility and preserve the user's reduced-motion preference. */
@media (prefers-reduced-motion: reduce) {
  .pkp_structure_head,
  .pkp_structure_footer_wrapper {
    animation: none !important;
  }
}

@media (max-width: 767px) {
  .pkp_navigation_primary_row,
  .pkp_navigation_primary_wrapper {
    background: #ffffff !important;
  }
}
