.pkp_search .pkp_search_desktop {
  display: flex;
  align-items: center;
  gap: 4px;
}
.cmp_breadcrumbs {
  display: none;
}
.pkp_navigation_user_wrapper {
    left: 48% !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pkp_structure_head {
  background: #174739;
}

.pkp_navigation_primary ul a {
  padding: 0.75rem 0.2rem !important;
}

/* Site Name Wrapper with Wavy SVG */
.pkp_site_name_wrapper {
  padding: 3rem 0.4% 2rem;
  position: relative;
  text-align: left;
  overflow: visible;
}

.pkp_site_name_wrapper .pkp_site_name {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pkp_site_name_wrapper .pkp_site_name a {
  color: white;
  text-decoration: none;
  font-size: 2rem;
  font-weight: 700;
  display: inline-block;
}

.pkp_site_name_wrapper h1 {
  position: absolute;
  left: -9999px;
}

.pkp_site_nav_toggle {
  display: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: white;
  color: #0d4d85;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  z-index: 10;
}

/* Navigation Menu - 80% Width, Aligned with Site Name */
.pkp_site_nav_menu {
  width: 91.8%;
  margin-left: 1%;
  background: #0b3d2e;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 4px 15px rgba(13, 77, 133, 0.3);
  position: relative;
  z-index: 99 !important;
}

.pkp_navigation_primary_row {
  width: 100%;
}

.pkp_navigation_primary_wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
}

/* Navigation Items - Align Left */
.pkp_navigation_primary {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.pkp_navigation_primary > li {
  position: static !important;
  display: inline-flex;
  align-items: center;
}

/* Separator Between Nav Items */
.pkp_navigation_primary > li:not(:last-child)::after {
  content: "|";
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0.5rem;
  font-weight: 300;
}

.pkp_navigation_primary > li > a {
  display: block;
  padding: 1.25rem 1.5rem;
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.pkp_navigation_primary > li > a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.pkp_navigation_primary > li:first-child > a {
  padding-left: 2rem;
}

/* Full-Width Dropdown Menu */
#navigationPrimary .dropdown-menu,
.pkp_navigation_primary .dropdown-menu {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: 0 !important;
  top: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  background: #0b3d2e !important;
  border: none !important;
  border-radius: 0 0 12px 12px !important;
  padding: 1rem 2rem !important;
  box-shadow: 0 8px 20px rgba(13, 77, 133, 0.3) !important;
  z-index: 1000 !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 0 !important;
  list-style: none !important;
  pointer-events: none !important;
}

/* Show dropdown on hover */
#navigationPrimary > li:hover .dropdown-menu,
.pkp_navigation_primary > li:hover .dropdown-menu,
#navigationPrimary .dropdown-menu:hover,
.pkp_navigation_primary .dropdown-menu:hover {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  animation: dropdownSlide 0.2s ease forwards;
}

@keyframes dropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dropdown Items - Horizontal with Separators */
#navigationPrimary .dropdown-menu > li,
.pkp_navigation_primary .dropdown-menu > li {
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center;
}

/* Separator Between Dropdown Items */
#navigationPrimary .dropdown-menu > li:not(:last-child)::after,
.pkp_navigation_primary .dropdown-menu > li:not(:last-child)::after {
  content: "|";
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0.5rem;
  font-weight: 300;
}

#navigationPrimary .dropdown-menu > li > a,
.pkp_navigation_primary .dropdown-menu > li > a {
  display: inline-block !important;
  padding: 0.75rem 1rem !important;
  color: white !important;
  text-decoration: none !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  border-radius: 6px !important;
}

#navigationPrimary .dropdown-menu > li > a:hover,
.pkp_navigation_primary .dropdown-menu > li > a:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: white !important;
}

.pkp_head_wrapper {
    padding-top: 1.286rem !important;
}

.pkp_page_index .additional_content {
  padding: 0;
}
.pkp_structure_content {
    padding: 0;
    width: auto;
}

.pkp_structure_main {
    padding: 0 2.143rem 1.429rem;
    width: -webkit-fill-available;
}

.additional_content{
    padding: 40px 65px;
}
.pkp_structure_main:after {
    width: 0;
}
.pkp_navigation_search_wrapper a {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* REMOVE LEFT BORDER (OJS OVERRIDE) */
li.profile,
li.profile > a,
.dropdown-menu,
.dropdown-menu li.profile a {
    border-left: 0 !important;
}

/* PROFILE BUTTON */
li.profile > a {
    background: #0b3d2e;          /* Base green */
    color: #e8f5e9 !important;
    padding: 10px 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.25s ease;
}

/* PROFILE BUTTON HOVER */
li.profile > a:hover,
li.profile.open > a {
    background: #145c44;          /* Slightly lighter green */
    color: #ffffff !important;
    text-decoration: none;
}

/* TASK COUNT BADGE */
li.profile .task_count {
    background: #4caf50;
    color: #ffffff;
    font-size: 12px;
    padding: 2px 7px;
    border-radius: 12px;
    font-weight: 600;
}

/* DROPDOWN MENU */
.dropdown-menu {
    background: #0b3d2e;          /* Same base green */
    border: none;
    border-radius: 10px;
    padding: 6px 0;
    margin-top: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.35);
}

/* DROPDOWN LINKS */
.dropdown-menu li.profile a {
    color: #e0f2f1 !important;
    padding: 10px 18px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.25s ease;
}

/* DROPDOWN HOVER */
.dropdown-menu li.profile a:hover {
    background: #145c44;          /* Light green hover */
    color: #ffffff !important;
    text-decoration: none;
}

/* OPTIONAL SUBTLE DIVIDER */
.dropdown-menu li.profile:not(:last-child) a {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* SIDEBAR CONTAINER */
.pkp_structure_sidebar.left {
      display: flex;
    width: 100vw;
    justify-content: center;
    gap: 20px;
    background: transparent;
    border-left: 0 !important;
}

/* SIDEBAR BLOCK */
.pkp_structure_sidebar .pkp_block {
    background: #0b3d2e;                  /* Base green */
    border-radius: 10px;         /* Left side only */
    width: 250px;
    margin-bottom: 14px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.22);
    overflow: hidden;
    border-left: 0 !important;
}

/* BLOCK TITLE */
.pkp_structure_sidebar .pkp_block .title {
    background: #0b3d2e;
    color: #e8f5e9;
    font-size: 15px;
    font-weight: 700;
    padding: 9px 12px;                    /* Reduced padding */
    margin: 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

/* BLOCK CONTENT */
.pkp_structure_sidebar .pkp_block .content {
    padding: 8px 12px;                    /* Reduced padding */
}

/* LIST RESET */
.pkp_structure_sidebar .pkp_block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* LIST ITEM */
.pkp_structure_sidebar .pkp_block ul li {
    margin-bottom: 4px;
}

/* LINKS */
.pkp_structure_sidebar .pkp_block ul li a {
    display: block;
    padding: 6px 8px;                     /* Reduced padding */
    color: #e0f2f1;
    font-size: 13.5px;
    border-radius: 6px 0 0 6px;           /* Left only */
    transition: background 0.25s ease;
    border-left: 0 !important;
}

/* LINK HOVER */
.pkp_structure_sidebar .pkp_block ul li a:hover {
    background: #145c44;                  /* Light green hover */
    color: #ffffff;
    text-decoration: none;
}

/* VISITOR BLOCK ALIGNMENT */
#customblock-visitors .content {
    text-align: center;
}

/* FLAG COUNTER IMAGE */
#customblock-visitors img {
    max-width: 100%;
    border-radius: 6px 0 0 6px;            /* Left only */
    box-shadow: 0 5px 12px rgba(0,0,0,0.22);
    background: #ffffff;
    padding: 3px;                         /* Reduced padding */
}

.pkp_footer_content {
    padding: 0;
}
.pkp_brand_footer {
    display: none;
}
.pkp_structure_footer {
    width: auto;
}

#navigationPrimary .dropdown-menu > li > a, .pkp_navigation_primary .dropdown-menu > li > a {
    border-left: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .pkp_site_nav_menu {
    width: 90%;
    margin-left: 5%;
    border-radius: 8px 8px 0 0;
  }

  .pkp_site_name_wrapper {
    padding: 3rem 5% 2rem;
  }
}

@media (max-width: 768px) {
  .pkp_site_nav_toggle {
    display: block;
  }

  .pkp_site_name_wrapper {
    text-align: center;
  }

  .pkp_site_name_wrapper .pkp_site_name a {
    font-size: 1.5rem;
  }

  .pkp_site_nav_menu {
    width: 90%;
    margin-left: 5%;
  }

  .pkp_navigation_primary {
    display: none !important;
    flex-direction: column;
    width: 100%;
  }

  .pkp_navigation_primary.mobile-open {
    display: flex !important;
  }

  .pkp_navigation_primary > li {
    width: 100%;
  }

  .pkp_navigation_primary > li:not(:last-child)::after {
    display: none;
  }

  .pkp_navigation_primary > li > a {
    width: 100%;
    text-align: center;
    padding: 1rem !important;
  }

  .pkp_navigation_primary > li:first-child > a {
    padding-left: 1rem !important;
  }

  #navigationPrimary .dropdown-menu,
  .pkp_navigation_primary .dropdown-menu {
    position: static !important;
    width: 100% !important;
    border-radius: 0 !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0.5rem 1rem !important;
    pointer-events: auto !important;
  }

  #navigationPrimary .dropdown-menu > li,
  .pkp_navigation_primary .dropdown-menu > li {
    display: block !important;
    width: 100%;
  }

  #navigationPrimary .dropdown-menu > li:not(:last-child)::after,
  .pkp_navigation_primary .dropdown-menu > li:not(:last-child)::after {
    display: none;
  }

  #navigationPrimary .dropdown-menu > li > a,
  .pkp_navigation_primary .dropdown-menu > li > a {
    width: 100% !important;
    text-align: center !important;
  }
}
