header {
  z-index: 9999;
  box-shadow: 0px 3px 6px #00000029;
  top: 0;

  ol,
  ul,
  li {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #3b3b3a;
    font-size: 16px;
  }
}

.site-logo {
  min-width: 70px;
  width: min-content;
  max-width: 180px;
  height: auto;
}

.nav-item {
  font-size: 16px;

  &:first-child {
    margin-left: 0;
  }
}

.dropdownPanel {
  display: none;
  position: absolute;
  top: 90px;
  background-color: #fff;
  overflow: hidden;
  transition: all 500ms ease-in-out;
  border-radius: 0 0 5px 5px;

  a {
    font-size: 16px;
    line-height: 2rem;
  }

  .submenu {
    height: 0;
    overflow: hidden;
    transition: all 500ms ease;
    background-color: #f1f1f1;
  }
}

.dropdownPanelAnimation {
  animation: dropDown 500ms ease-in-out forwards;
  transform-origin: top center;
}

@keyframes dropDown {
  0% {
    transform: scaleY(0);
  }

  80% {
    transform: scaleY(1.1);
  }

  100% {
    transform: scaleY(1);
  }
}

.menu-items-container {
  width: 100%;
}
.back-button .fa {
  transform: rotate(270deg);
}
.menu-items {
  padding: 1rem 0;
  font-weight: 500;
  border-top: solid 5px #931913;
  background-color: #ededed;
  width: 100%;
  text-align: center;

  &:first-child {
    padding: 0;
  }

  a {
    display: grid;
    padding: 0.25rem 1rem;
    width: 100%;

    &:hover {
      /* background: #dde7ef; */
      /* border-top: solid 5px #931913; */
    }
  }
}

#language-switcher a {
  font-size: 16px;
  font-weight: bold;
}

.burger-icon {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  right: 0;
  z-index: 2;
}

.burger-icon-line {
  display: block;
  width: 30px;
  height: 3px;
  margin: 0 0 10px 0;
  background: #931913;
  transition: all 0.5s ease-out;
}

.burger-icon-line:last-child {
  margin: 0;
}

.close .burger-icon-line:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.close .burger-icon-line:nth-child(2) {
  opacity: 0;
}

.close .burger-icon-line:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

.submenu-item > a {
  display: inline-block;
  color: #2b2b29;
}
.custom-w {
  width: 80% !important;
}
@media screen and (min-width: 1400px) {
  .burger-icon {
    display: none;
  }

  .navbar-nav {
    justify-content: end;
  }

  .nav-item,
  .grand-link {
    color: #2b2b29;
  }

  .back-button {
    display: none;
  }

  .logged-in .dropdownPanel {
    padding-top: 0rem;
    margin-top: 2rem;
  }
}

@media screen and (max-width: 1399px) {
  .navbar-nav {
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    z-index: 2;
    top: 95px;
    right: 0;
    left: 0;
    width: 0;
    transition: height 0.5s ease, width 0.5s ease, visibility 0.2s ease;
    height: 0;
    visibility: hidden;
    pointer-events: none;
    position: fixed;
    max-width: 100dvw;
    padding-top: 3rem;
  }

  .logged-in .navbar-nav {
    top: 127px;
  }

  .hiddenNav {
    max-width: 100dvw;
    width: 100%;
    height: 100%;
    top: 95px;
    visibility: visible;
    z-index: 9999;
    pointer-events: all;
    flex-direction: column !important;
    padding-top: 3rem;
  }

  .logged-in .hiddenNav {
    height: 100%;
    top: 102px !important;
  }

  .dropdownPanel {
    top: 0;
    height: 100vh;
    width: 100vw;
    padding-top: 3rem;
  }

  .nav-item {
    padding: 0;
    color: #2b2b29 !important;
  }

  .back-button {
    border: none;
    background-color: #fff;
    gap: 5px;
    position: relative;
    display: flex;
    flex-direction: row;
    margin-left: 10px;
    color: #931913;
  }

  .menu-items {
    gap: 2rem;
  }
  .scrolled .navbar .collapse .hiddenNav {
    top: 70px;
  }
}

@media screen and (max-width: 783px) {
  .logged-in .navbar-nav {
    top: 127px !important;
  }
  .logged-in .hiddenNav {
    top: 154px !important;
  }
  .logged-in .scrolled .navbar .collapse .hiddenNav {
    top: 70px !important;
  }
  .scrolled .navbar .collapse .hiddenNav {
    top: 70px;
  }
}
