/* BS5 Navbar */

header {
  background: var(--white);
  border-left: 1px solid var(--gray);
  border-right: 1px solid var(--gray);
  -webkit-box-shadow: var(--container-box-shadow);
  -moz-box-shadow: var(--container-box-shadow);
  box-shadow: var(--container-box-shadow);
  padding: 0 5rem;
}

.navbar {
  padding: 4rem 0 2rem;
}

.nav-logo-text {
  gap: 1rem;
}

.nav-logo {
  width: 240px;
  height: auto;
}

.navbar span,
.navbar .nav-link {
  color: var(--body-color);
  font-size: 1.2rem;
  font-weight: 600;
}

.navbar .nav-link {
  position: relative;
}

.navbar .nav-link::after {
  content: '';
  background: var(--bs-primary);
  height: 2px;
  position: absolute;
  right: 0;
  width: 0;
  bottom: -10px;
  transition: all 300ms ease-in-out;
}

.navbar .nav-link:hover::after {
  width: 100%;
  height: 4px;
  left: 0;
  right: auto;
  transition: all 500ms ease-in-out;
}
.nav-item {
  padding: 0 1rem;
}

.nav-link {
  padding: 0 1rem;
}

.nav-item:first-child,
.nav-link:first-child {
  padding-left: 0 !important;
}

.nav-item:last-child,
.nav-link:last-child {
  padding-right: 0 !important;
}

@media (max-width: 1599.98px) {
}

@media (max-width: 1399.98px) {
  .navbar {
    padding: 3rem 0 2rem;
  }
  .nav-logo {
    width: 150px;
    height: auto;
  }
  .navbar span,
  .navbar .nav-link {
    font-size: 1rem;
  }
}

@media (max-width: 1199.98px) {
  header {
    padding: 0 2.5rem;
  }
}

@media (max-width: 991.98px) {
  .navbar {
    padding: 2rem 0 1rem;
    position: inherit;
  }

  .navbar .nav-item {
    padding: 0;
    border-bottom: 1px solid rgba(237, 113, 0, 0.2);
    line-height: 2.3;
  }

  .navbar-toggler,
  .navbar-toggler:focus {
    padding: 13px 14px;
    height: 35px;
    border: none;
    box-shadow: none;
    z-index: 9999999;
    background: transparent;
    outline: none;
    border-radius: 60px;
    background: rgba(237, 113, 0, 0.2);
  }

  .hamburger {
    gap: 0.2rem;
  }

  .hamburger .line {
    width: 20px;
    height: 1px;
    background: var(--body-color);
    transition: all 300ms ease-in-out;
  }

  .navbar-toggler[aria-expanded='true'] .line:nth-child(1) {
    transform: rotate(45deg);
  }

  .navbar-toggler[aria-expanded='true'] .line:nth-child(2) {
    transform: rotate(-45deg);
    margin-top: -4px;
  }
  .navbar-toggler[aria-expanded='true'] .line:last-child {
    display: none;
  }

  .navbar .collapse:not(.show) {
    position: absolute;
    display: block;
    left: -1000px;
    top: 0;
    bottom: 0;
    height: 100vh !important;
    transition: all 300ms ease-in-out;
    padding: 2rem;
  }

  .nav-backdrop {
    position: absolute;
    display: block;
    left: -1000px;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100vh !important;
    transition: all 300ms ease-in-out;
    z-index: 1;
    background: rgba(0, 0, 0, 0.2);
  }

  .nav-backdrop.active {
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
    transition: all 300ms ease-in-out;
  }

  .navbar .collapse.show {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 100vh !important;
    background: var(--white);
    z-index: 2;
    transition: all 300ms ease-in-out;
    padding: 2rem;
  }
  .navbar .collapsing {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100vh !important;
    background: var(--white);
    z-index: 2;
    transition: all 300ms ease-in-out;
    padding: 2rem;
  }
  .navbar .nav-link::after {
    bottom: 0;
  }
}

@media (max-width: 767.98px) {
}

@media (max-width: 575.98px) {
  header {
    padding: 0 1.2rem;
  }
  .nav-logo-text {
    z-index: 9999;
  }

  .navbar .collapsing,
  .navbar .collapse.show,
  .navbar .collapse:not(.show) {
    width: 100%;
    padding-top: 8rem;
  }
}


