.navbar {
  padding: 0;
  position: unset;
  align-items: unset;
  @include media-breakpoint-down(md) {
    padding: 0.5rem 0;
  }
  &-wrapper {
    position: sticky;
    top: 0;
    z-index: 99;
    filter: drop-shadow(0px 0px 16px rgba(0, 0, 0, 0.16));
  }

  &-home {
    background-color: $white;
    position: relative;
    box-shadow: 0px 0.5rem 1rem rgba(180, 180, 187, 0.16),
      0px 0.25rem 0.5rem rgba(180, 180, 187, 0.24);

    .navbar-nav {
      align-items: center;

      @include media-breakpoint-down(md) {
        align-items: center;
        margin-right: 0;
        background-color: white;
      }
      & > li {
        @include media-breakpoint-down(md) {
          padding: 0 0.75rem;
        }
        &:not(:last-child) {
          margin-right: 1.5rem;

          @include media-breakpoint-down(md) {
            margin: 0;
            margin-bottom: 1.5rem;
          }
        }
        & > a {
          &.active {
            font-weight: 600;
            position: relative;
            &:after {
              content: "";
              position: absolute;
              bottom: -1.5rem;
              left: 50%;
              transform: translateX(-50%);
              height: 0.25rem;
              width: 100%;
              background-color: $primary;
              @include media-breakpoint-down(md) {
                bottom: -0.5rem;
              }
            }
          }
          display: block;
          // @include rfs(14);
          padding: 0.5rem 0;
          @include media-breakpoint-up(lg) {
            padding: 0;
          }

          @include hover {
            color: $primary;
          }
        }
      }

      .dropdown {
        @include media-breakpoint-down(md) {
          text-align: center;
        }
        &-menu {
          > a {
            color: $gray-400;
            @include rfs(14);
            @include hover {
              color: $secondary;
            }
            &.active {
              color: $secondary;
            }
            &:hover,
            &:focus,
            &:active {
              background-color: white;
              color: $secondary;
            }
          }
          @include media-breakpoint-down(md) {
            position: absolute;
          }
        }
        &-toggle {
          &::after {
            content: "\e905";
            font-family: "icomoon";
            border: none;
            margin-left: 0.25rem;
            vertical-align: middle;
            @include media-breakpoint-down(md) {
              color: unset;
            }
          }
        }
      }
    }
    .search {
      &-card {
        position: absolute;
        right: 0;
        z-index: 1;
        top: 50%;
        width: 100%;
        transition: all 0.2s $time-func-2;
        transform: translateY(-200%) scale(0);
        opacity: 0;
        @include media-breakpoint-down(md) {
          width: 50%;
          right: 1.5rem;
        }
        @include media-breakpoint-down(sm) {
          width: 65%;
        }
        @include media-breakpoint-down(xs) {
          left: 50%;
          transform: translateY(-200%) scale(0);
          width: 96%;
        }
        input {
          height: 50px;
          // margin: 0 1rem;
          @include media-breakpoint-down(md) {
            margin: 0;
          }
          @include media-breakpoint-down(xs) {
            height: 40px;
          }
        }
        &.toggle {
          transform: translateY(-50%) scale(1);
          opacity: 1;
          @include media-breakpoint-down(xs) {
            transform: translate(-50%, -50%) scale(1);
          }
        }
        .close {
          position: absolute;
          top: 50%;
          transform: translateY(-50%);
          right: 1rem;
          cursor: pointer;
          @include rfs(18);
        }
      }
    }
  }
  &-dropdown {
    & > h6 {
      @include rfs(14);
      display: flex;
      align-items: center;
      color: $gray-400;
      font-weight: 400;
      i {
        @include rfs(12);
        margin-right: 0.5rem;
      }
    }
  }
  &-actions {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    @include media-breakpoint-up(lg) {
      order: 3;
      margin-top: 0;
    }
  }
  &-collapse {
    flex-grow: unset;
    align-items: unset;
    position: relative;
    @include media-breakpoint-down(lg) {
      padding-left: 2rem;
    }
    @include media-breakpoint-down(md) {
      position: absolute;
      height: 100vh;
      width: 100vw;
      top: -35px;
      bottom: 0;
      left: 0;
      background: white;
      padding: 2rem;
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 1;
      transform: translateX(-100%);
      transition: transform 1s $time-func-2;

      &:after {
        display: none;
      }
    }
    &.show {
      transform: translateX(0);
    }
  }
  &-toggler {
    color: $gray-700;
    // color: white;
    // margin-left: 1rem;
    &.toggle-close {
      position: absolute;
      top: 2rem;
      right: 2rem;
      @include rfs(12);
    }
  }
  &-brand {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    img {
      height: 3rem;
    }
    @include media-breakpoint-down(md) {
      img {
        height: 2.5rem;
      }
    }
    h6 {
      color: $black;
      @include rfs(16);
      line-height: 1.3;
      font-weight: 600;
    }
  }
  &-shadow {
    box-shadow: 0px 4px 16px rgba(224, 224, 224, 0.8);
  }
  &-expand {
    &-lg {
      justify-content: space-between;
    }
  }
  &-menus {
    @include media-breakpoint-up(lg) {
      position: relative;
    }
    @include flex(center);
  }
}
.dropdown {
  &-menu {
    padding: 0;
    border: 0;
    margin-top: 1.5rem;
    box-shadow: 0px 0px 24px rgba(0, 0, 0, 0.16);
    border-radius: 0;
    &:before {
      content: "\e907";
      font-family: "icomoon";
      color: white;
      @include rfs(16);
      position: absolute;
      top: -1rem;
      right: 2rem;
    }
  }
  &-toggle {
    &:after {
    }
  }
  &-item {
    padding: 0.75rem 1.5rem;
    color: $gray-400;
    @include rfs(14);
    &:hover,
    &:focus,
    &:active {
      background-color: white;
      color: $secondary;
      position: relative;
      font-weight: 500;
      &::before {
        content: "";
        width: 0.375rem;
        height: 100%;
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        background-color: $secondary;
      }
    }
    &.active {
      color: $secondary;
      position: relative;
      font-weight: 500;
      background-color: white;
      &::before {
        content: "";
        width: 0.375rem;
        height: 100%;
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        background-color: $secondary;
      }
    }
  }
}
