/* === OJS header: Akademos === */

/* 1) Header background */
.pkp_head_wrapper,
.pkp_navigation_primary_wrapper {
  background-color: #34328C !important;
  color: #FFFFFF;
}

/* 2) One row layout: logo | menu items | search (all left-aligned) */
.pkp_head_wrapper .pkp_container,
.pkp_navigation_primary_wrapper .pkp_container {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 20px;
  flex-wrap: nowrap;
  padding: 14px 0;
}

/* 3) Logo on the left, 120px tall */
.pkp_site_name { margin: 0 !important; }
.pkp_site_name a { display: inline-block !important; }
.pkp_site_name img {
  height: 120px !important;
  width: auto !important;
  display: block !important;
}
/* If your theme renders a text title instead of an <img>, force the logo as bg */
.pkp_site_name a:not(:has(img)) {
  width: 300px; height: 120px;
  background: url("/public/journals/3/pageHeaderLogoImage_ro.png") left center / contain no-repeat;
  text-indent: -9999px; overflow: hidden; white-space: nowrap;
}

/* 4) Primary menu left-aligned on the same row */
.pkp_navigation_primary_wrapper { padding: 0 !important; }
.pkp_navigation_primary {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 28px;
  margin: 0 !important;
  padding: 0 !important;
}
.pkp_navigation_primary > li {
  list-style: none;
  display: inline-block;
  float: none !important;
}

/* 5) Put the Search control in the very same row, just another item on the left */
.pkp_search,
.pkp_site_nav_menu .pkp_search,
.pkp_navigation_primary .pkp_search {
  order: 99;                  /* after menu items */
  float: none !important;
  margin: 0 !important;
  padding-left: 8px;
  display: inline-flex !important;
  align-items: center;
}

/* 6) Colors and hover states for links on dark header */
.pkp_navigation_primary a,
.pkp_site_nav_menu a,
.pkp_search a,
.pkp_search button {
  color: #FFFFFF !important;
}
.pkp_navigation_primary a:hover,
.pkp_site_nav_menu a:hover { opacity: 0.85; }

/* 7) Remove extra spacing that can push the row taller than needed */
.pkp_site_nav_menu,
.pkp_navigation_primary_wrapper .pkp_site_nav_menu {
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

/* 8) Make it behave on smaller screens (stack only when necessary) */
@media (max-width: 992px) {
  .pkp_head_wrapper .pkp_container { flex-wrap: wrap; }
  .pkp_navigation_primary { flex-wrap: wrap; gap: 16px; }
  .pkp_site_name img { height: 96px !important; }
}

/* Submenu (dropdown) contrast fix */

/* Panel */
.pkp_navigation_primary > li ul,
.pkp_navigation_primary .dropdown-menu,
.navbar .dropdown-menu {
  background: #FFFFFF !important;
  color: #34328C !important;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  z-index: 1002 !important;
}

/* Links: default = brand blue */
.pkp_navigation_primary > li ul a,
.pkp_navigation_primary .dropdown-menu a,
.navbar .dropdown-menu li > a {
  color: #34328C !important;   /* changed */
  padding: 10px 14px;
  display: block;
  text-decoration: none;
  white-space: nowrap;
}

/* Hover/focus: invert for contrast */
.pkp_navigation_primary > li ul a:hover,
.pkp_navigation_primary .dropdown-menu a:hover,
.pkp_navigation_primary > li ul a:focus,
.pkp_navigation_primary .dropdown-menu a:focus,
.navbar .dropdown-menu li > a:hover,
.navbar .dropdown-menu li > a:focus {
  background: #34328C !important;
  color: #FFFFFF !important;
  outline: none;
}

/* Optional separators */
.pkp_navigation_primary .dropdown-menu li + li > a {
  border-top: 1px solid #ECEFF3;
}
