/* nav-bar — server-rendered light-DOM content styling (ported from the
   former shadow-scoped <style> block; selectors now root at the tag name
   instead of :host since the markup lives in light DOM). */

nav-bar .main-header {
  filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.1));
  padding: 0px 12px 0px 60px;
  background-color: rgb(245, 245, 245);
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  right: 0;
}

nav-bar .sub-header {
  padding: 0px 60px;
  background-color: rgb(245, 245, 245);
  position: fixed;
  padding: 2vw 0vw 1.5vw 0;
  left: 0;
  top: 47px;
  right: 0;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 9998;
  filter: drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.3));
}

nav-bar .sub-header.active {
  transform: translateY(0);
  opacity: 1;
}

nav-bar .sub-header-content {
  display: flex;
  justify-content: center;
}

nav-bar .sub-header-content ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(1, 2fr);
}

nav-bar .sub-header-content li {
  background: none;
  margin: 10px 44px 10px 0px;
}

nav-bar .main-nav {
  display: flex;
  align-items: center;
  overflow: hidden;
  justify-content: space-between;
  margin: 0.3em 0em;
}

nav-bar .main-nav .logo {
  height: 40px;
  justify-self: start;
  transform: translateX(0);
}

nav-bar .logo-wrapper {
  width: 17%;
  overflow: hidden;
  display: inline-block;
  transition: width 0.5s ease;
  min-width: 40px;
}

nav-bar .main-nav .no-search {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
  gap: 42px;
  margin-left: 0%;
  transition: opacity 0.4s ease, transform 0.4s ease, max-height 0.4s ease;
  opacity: 1;
  transform: translateY(0);
  max-height: 200px;
  overflow: hidden;
}

nav-bar .main-nav .no-search li {
  background: none;
  flex: 1 1 16%;
  text-align: center;
}

nav-bar .nav-item a {
  position: relative;
  background: none;
  color: #000;
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s ease-out;
  white-space: nowrap;
}

nav-bar .nav-item a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 1px;
  background-color: #002f5d;
  transition: width 0.2s ease-out;
}

nav-bar .nav-item a:hover::after,
nav-bar .nav-item.active a::after {
  width: 100%;
}

nav-bar .nav-item a:hover,
nav-bar .nav-item.active a {
  color: #002f5d;
}

nav-bar .nav-item.active a {
  font-weight: 700;
}

nav-bar .box-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #000;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.25em 0.5em;
  transition: color 0.2s ease-out, transform 0.2s ease-out;
}

nav-bar .box-link:hover,
nav-bar .box-link.active {
  color: #002f5d;
  transform: scale(1.05);
}

nav-bar .box-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background-color: #dc3545;
  color: #fff;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

nav-bar .box-badge.visible {
  opacity: 1;
  transform: scale(1);
}

nav-bar .box-badge.pulse {
  animation: badge-pulse 0.5s ease-out;
}

@keyframes badge-pulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.45); box-shadow: 0 0 0 6px rgba(220, 53, 69, 0.18); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

@media (prefers-reduced-motion: reduce) {
  nav-bar .box-badge.pulse { animation: none; }
}

nav-bar .language-dropdown {
  display: block;
}

nav-bar .language-dropdown label,
nav-bar .language-dropdown ul li {
  display: block;
  cursor: pointer;
}

nav-bar .language-dropdown ul.lang-list {
  position: absolute;
  visibility: hidden;
  opacity: 0;
  z-index: 1;
}

nav-bar .language-dropdown ul.lang-list li {
  border-bottom: 1px solid #ECECEC;
}

nav-bar .language-dropdown ul.lang-list li:last-child {
  border-bottom-right-radius: 2px;
  border-bottom-left-radius: 2px;
}

nav-bar .language-dropdown ul.lang-list li.selected {
  display: none;
}

nav-bar .language-dropdown.open ul.lang-list {
  visibility: visible;
  opacity: 1;
}

nav-bar .language-dropdown label {
  position: relative;
  z-index: 2;
}

nav-bar .language-dropdown.open label {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
}

nav-bar .language-dropdown .lang-flag,
nav-bar .language-dropdown .lang-list {
  transition: all 0.2s;
  backface-visibility: hidden;
  cursor: pointer;
  padding: 0em 0.5em 0.25em 0.5em;
}

nav-bar .menu-collapsed {
  display: none;
}

nav-bar #nav-icon3 {
  width: 32px;
  height: 23px;
  position: relative;
  margin: 50px 0px 50px 15px;
  transform: rotate(0deg);
  transition: .5s ease-in-out;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

nav-bar #nav-icon3:focus-visible {
  outline: 2px solid #002f5d;
  outline-offset: 4px;
  border-radius: 4px;
}

nav-bar .language-dropdown label:focus-visible,
nav-bar .language-dropdown ul li:focus-visible {
  outline: 2px solid #002f5d;
  outline-offset: 2px;
  border-radius: 2px;
}

nav-bar #nav-icon3 span {
  display: block;
  position: absolute;
  height: 5px;
  width: 100%;
  background: #002f5d;
  border-radius: 9px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

nav-bar #nav-icon3 span:nth-child(1) { top: 0px; }
nav-bar #nav-icon3 span:nth-child(2),
nav-bar #nav-icon3 span:nth-child(3) { top: 10px; }
nav-bar #nav-icon3 span:nth-child(4) { top: 20px; }

nav-bar #nav-icon3.open span:nth-child(1),
nav-bar #nav-icon3.open span:nth-child(4) { opacity: 0; }

nav-bar #nav-icon3.open span:nth-child(2) {
  transform: rotate(-45deg) translate(-4px, -6px);
  width: 63%;
  transform-origin: right center;
}

nav-bar #nav-icon3.open span:nth-child(3) {
  transform: rotate(45deg) translate(-4px, 6px);
  width: 63%;
  transform-origin: right center;
}

nav-bar .menu-pane {
  transform: translateX(105%);
  transition: transform 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 40px 20px;
  width: 30%;
  height: 100%;
  background-color: #fff;
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  overflow: scroll;
  min-width: 160px;
}

nav-bar .menu-pane.open {
  transform: translateX(0);
}

nav-bar .menu-links {
  margin-top: 30px;
  list-style: none;
  width: 100%;
  padding: 0;
}

nav-bar .menu-links li {
  list-style: none;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

nav-bar .menu-links a {
  color: #000;
  text-decoration: none;
  font-size: 1rem;
}

nav-bar .menu-links a:hover {
  color: #002f5d;
}

@media (max-width: 1800px) {
  nav-bar .logo-wrapper { width: 2%; }
  nav-bar .sub-header { padding: 2vw 0vw 1.5vw 0; }
  nav-bar .main-nav .no-search { margin-left: 13%; }
}

@media (max-width: 1200px) {
  nav-bar .main-nav .no-search li { flex: 1 1 20%; }
}

@media (max-width: 992px) {
  nav-bar .main-nav .no-search {
    opacity: 0;
    transform: translateY(-100%);
    max-height: 0;
    pointer-events: none;
  }
  nav-bar .menu-collapsed { display: block; }
}

@media (max-width: 768px) {
  nav-bar .main-header { padding: 0px 20px; }
}
