/* =============================================================================
   Author: PKP PS
   Last updated : 2026-06-23
   ============================================================================= */


/* Variables */
:root {
  --color-header-bg: #a4cc4f;
  --color-footer-bg: #c1c1c11f;
  --color-primary: #006798;
  --color-primary-hover-bg: #ffffff;
  --color-btn-border: #000000;
  --color-btn-bg: #ffffff;
  --color-btn-text: #006798;
  --color-popup-bg: #555555;
  --color-popup-text: #ffffff;
}

/* Fix RTL - Horizontal Scroll */

html {
  overflow-x: hidden !important;
}

/* Index/Home */
.page_index_journal .current_issue {
  display: block !important;
}
.homepage_about h2 {
  display: block !important;
}

/* Header/Footer */
.pkp_brand_footer {
  display: none !important;
}
.pkp_structure_footer_wrapper {
  background: var(--color-footer-bg) !important;
}
.pkp_structure_head {
  background-color: var(--color-header-bg) !important;
}
.pkp_navigation_primary_wrapper {
  background-color: var(--color-header-bg) !important;
}
.pkp_navigation_primary_row {
  background-color: #ffffff !important;
}

/* Issue */
.obj_issue_toc .sections:not(:first-child) {
  margin-top: 0;
}
.obj_issue_toc .galleys,
.obj_issue_toc .section {
  margin: 0.5rem -0.5rem;
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
}

/* Hidden Buttons */
.page_editorial_team .cmp_breadcrumbs {
  display: none !important;
}
div.published {
  display: none;
}
div.pkp_navigation_search_wrapper {
  display: none;
}

/* Buttons */
.nbtn {
  border: 2px solid var(--color-btn-border);
  background-color: var(--color-btn-bg);
  color: var(--color-btn-text);
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 5px;
}
.primary {
  background: var(--color-primary);
  color: var(--color-popup-text); /* white */
}
.primary:hover {
  background: var(--color-primary-hover-bg);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Popup */
.popup {
  position: relative;
  display: inline-block;
  cursor: pointer;
}
.popup .popuptext {
  visibility: hidden;
  width: 160px;
  background-color: var(--color-popup-bg);
  color: var(--color-popup-text);
  text-align: center;
  border-radius: 6px;
  padding: 8px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -80px;
}
.popup .popuptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--color-popup-bg) transparent transparent transparent;
}
.popup .show {
  visibility: visible;
  -webkit-animation: fadeIn 1s;
  animation: fadeIn 1s;
}
@-webkit-keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}