
/* Override menu current item styling to only affect direct descendant links */
.site-header #site-navigation #primary-menu-list > li.menu-current-item > a {
  color: rgba(37, 31, 31, 0.8);
  pointer-events: none;
}

/* Restore pointer-events on current items that have dropdowns so hover works */
.site-header #site-navigation #primary-menu-list > li.menu-current-item.menu-item-has-children > a {
  pointer-events: auto;
}

@media screen and (max-width: 1120px) {
  .site-header #site-navigation #primary-menu-list > li.menu-current-item > a {
    pointer-events: auto;
  }
}

/* Reset styles for nested links in dropdowns */
.site-header #site-navigation #primary-menu-list > li.menu-current-item .dropdown-menu a,
.site-header #site-navigation #primary-menu-list > li.menu-current-item .submenu a {
  pointer-events: auto;
}

.header-lang-bar__lang img {
  width: 29px !important;
  height: 17px !important;
  object-fit: contain;
}

/* Language bar desktop/mobile views */
.header-lang-bar {
  position: relative;
}

.header-lang-bar__desktop {
  display: flex;
  gap: 10px;
}

.header-lang-bar__mobile {
  display: none;
  position: relative;
}

/* Mobile dropdown toggle button */
.header-lang-bar__toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #650002;
  border: none;
  cursor: pointer;
  padding: 6px 12px;
  color: #fff;
  border-radius: 35px;
  min-width: 109px;
  height: 32px;
  transition: background-color 0.3s ease;
}

.header-lang-bar__toggle-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-lang-bar__toggle:hover {
  background-color: #7a0002;
}

.header-lang-bar__toggle img {
  width: 29px !important;
  height: 17px !important;
  object-fit: contain;
}

.header-lang-bar__toggle span {
  color: #fff;
  font-weight: 500;
  font-size: 14px;
}

.header-lang-bar__toggle svg {
  transition: transform 0.3s ease;
  width: 12px;
  height: 8px;
}

.header-lang-bar__toggle.active svg {
  transform: rotate(180deg);
}

/* Mobile dropdown menu */
.header-lang-bar__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 1000;
  overflow: hidden;
}

.header-lang-bar__dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-lang-bar__dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.header-lang-bar__dropdown-item:hover {
  background-color: #f5f5f5;
}

.header-lang-bar__dropdown-item.active {
  background-color: #650002;
  color: #fff;
  font-weight: 600;
}

.header-lang-bar__dropdown-item.active span {
  color: #fff;
}

.header-lang-bar__dropdown-item img {
  width: 20px !important;
  height: 12px !important;
  object-fit: contain;
}

/* Media queries for mobile/desktop switching */
@media (max-width: 991px) {
  .header-lang-bar__desktop {
    display: none;
  }
  
  .header-lang-bar__mobile {
    display: block;
  }
  
  .header-lang-bar {
    padding: 0 !important;
  }
}

.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}
.admin-bar .site-header.on-scroll {
    top: -16px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header.on-scroll {
    top: 0px;
  }
}
/* Header logo sizing - max 157x51px on all viewports */
.site-logo img {
  max-width: 157px;
  max-height: 51px;
  width: auto;
  height: auto;
}

@media(max-width:768px){
.main-bar a.site-logo{
    margin-right: 20px;
}
}