$svg-bg-height: 23.75rem;
$menu-bg-color: theme-color('light-secondary');

.x-navigation-menu {
  background-color: $menu-bg-color;
  padding: 3rem;
  padding-top: 4rem;
  position: relative;

  &::before, &::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
  }

  &::before {
    background-color: theme-color('white');
    background-image: url('/assets/images/leap/menu-search-bg.svg');
    background-repeat: repeat-x;
    background-position: top center;
    background-size: 90%;
    height: $svg-bg-height;
    z-index: 0;
    top: 0;
  }

  &::after {
    $gradient-offset: 8rem;
    @include gradient-y(transparent, $menu-bg-color, 0%, 30%);
    height: calc(#{$svg-bg-height} - #{$gradient-offset});
    z-index: 1;
    top: $gradient-offset;
  }

  .x-menu-home-heading {
    &::after {
      content: '';
      position: absolute;
      background-repeat: no-repeat;
      background-image: url('/assets/images/leap/menu-search-illustration.svg');
      background-size: contain;
      width: 15.875rem;
      height: 10rem;
      display: block;
      top: -3.125rem;
      right: -0.5625rem;
    }
  }

  > * {
    z-index: 10;
    display: block;
    position: relative;
  }

  &-search-content {
    position: relative;
    width: 100%;
  }

  &-search {
    left: 0;
    right: 0;
    min-width: 100%;
    max-height: 20rem;
    display: block;
    overflow-y: auto;
    margin-top: 0.125rem;

    a {
      display: block;
      font-size: 0.875rem;
    }
  }

  &-search-input {
    position: relative;

    .x-icon-container {
      position: absolute !important;
      top: 0.6875rem;
      left: 0.5rem;
      color: theme-color('info');
    }

    .form-control {
      width: 26.25rem;
      border-width: 0.125rem !important;
      padding-left: 2rem;
    }
  }

  &-group {
    @extend %mb-3, 
            %font-size-base;

    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 1rem;
    grid-row-gap: 2rem;
    margin-top: 3rem;

    a {
      @extend %text-decoration-none,
              %mb-2;

      font-size: 1rem;
      &:last-child {
        margin-bottom: 0;
      }
    }

    > div {
      .x-divider-horizontal:last-child {
        display: none !important;
      }
    }
  }
}