@charset "utf-8";
@import "../initial";
.container>.navbar-collapse {
  @media (max-width: 767px) {
    margin-left: 0;
    margin-right: 0;
  }
}
.modules-menu {
  font-family: $sub-font;
  max-height: none;
  // @media (max-width: 767px) {
  //   margin: 0px;
  //   position: absolute;
  //   top: 5em;
  //   background: white;
  //   padding: 1em 0px;
  //   left: 0px;
  //   opacity: 0.9;
  // }
  li {
    white-space: nowrap;
    & > a,
    & > .fa {
      color: #333;
    }
    &:hover {
      & > a,
      & > .fa {
        color:#333;
        text-decoration: none;
      }
    }
  }
  .modules-menu-level-0 {
    width: 100%;
    height: auto;
    text-align: center;
    margin: 0;
    padding: 0;
    list-style: none;

    .has-dropdown.level-1.active {
      .modules-menu-level-1 {
        display: block;
      }
    }
    .has-dropdown.level-2.active {
      .modules-menu-level-2 {
        display: block;
      }
    }
    .dropdown-toggle-icon {
      position: absolute;
      top: 8px;
      right: 5px;
      width: 40px;
      height: 40px;
      cursor: pointer;
      line-height: 40px;
      font-size: 1em;
      text-align: center;
      border-radius: 2px;
      behavior: url("/assets/ie_support/PIE2/PIE.htc");
      display: none;
    }
    .dropdown-toggle-icon.level-1 {
      background-color: lighten($theme-gray, 10%);
    }
    .dropdown-toggle-icon.level-2 {
      background-color: lighten($theme-gray, 10%);
    }
    & > li {
      float: none;
      display: inline-block;
      position: relative;
      margin: 0 0.3em;
      padding: 0;
      border-bottom: 1px solid lighten($theme-gray, 5%);
      @media (max-width:767px){
        margin: 0;
        padding: 0 1em;
        width: 75%;
        border: transparent;
       }

      & > a {
        display: block;
        padding: 18px 0;
        font-family: $main-font;
        @media (max-width:767px){
          padding: 0.5em 0;
         }
      }
      &:hover {
        background: #6E5140;
        color: #fff;
        border-radius: 0.3em;
        & > a {
          background-color: transparent;
          @media (max-width: 767px) {
            color:#fff;
          }

        }
      }
      @media (min-width: $screen-sm) {
        position: relative;
        margin: 2px 0;
        padding: 0 10px;
        border-bottom: none;
        &:first-child {
          margin-left: 0;
        }
        &:last-child {
          margin-right: 0;
          .modules-menu-level-1 {
            right: 15px;
            left: auto;
            &:before {
              right: 10px;
              left: auto;
            }
            & > li {
              padding-right: 15px;
              padding-left: 15px;
              & > a {
                padding-left: 0;
              }
            }
            .modules-menu-level-2 {
              right: 100%;
              left: auto;
              &:before {
                right: -6px;
                left: auto;
                @include arrow("left", 6px, 6px, $theme-gray-darker);
              }
            }
          }
        }
        & > a {
          font-weight: bold;
          padding-top:20px;
          padding-bottom:10px;
          border-bottom: 0.5rem solid transparent;
        }
        & > .fa {
          position: static;
          @include size(auto, auto);
          padding: 0;
          line-height: 1;
          font-size: 1em;
          cursor: default;
        }
        &:hover {
          & > a {
            // border-bottom-color: #2b9f53;
            color: #fff;
          }
          .modules-menu-level-1 {
            display: block;
          }
        }
      }
      @media (width:768px) {
        margin: 0;
        padding: 0 10px 0 0;
      }
    }
  }
  .modules-menu-level-1 {
    display: none;
    min-width: 100%;
    margin: 0 -15px;
    padding: 0;
    background-color: #6E5140;
    list-style: none;
    z-index: 1;
    & > li {
      position: relative;
      & + li {
        border-top: 1px solid lighten($theme-gray-dark, 5%);
      }
      & > a {
        text-align: left;
        color:#fff;
        display: block;
        padding: 17px 25px;
        font-family: $main-font;
        font-size: 0.9375em;
      }
      &:hover {
        background-color: darken(#6E5140, 10%);
        & > a,
        & > .fa {
          color: #FFF;
        }
      }
    }
    @media (min-width: $screen-sm) {
      position: absolute;
      left: 15px;
      margin-top: -0.5rem;
      border-top: 0.5rem solid #363636;
      &:before {
        content: "";
        display: block;
        position: absolute;
        top: -16px;
        left: 10px;
        @include arrow("bottom", 10px, 8px, #363636);
      }
      & > li {
        padding-right: 30px;
        & > a {
          padding-left: 15px;
        }
        & > .fa {
          position: static;
          @include size(auto, auto);
          padding: 0;
          margin-right: 0;
          line-height: 1;
          float: none;
          font-size: 1em;
          cursor: default;
        }
        &:hover {
          .modules-menu-level-2 {
            display: block;
          }
        }
      }
      .fa {
        &:before {
          content: "\f105";
        }
      }
    }
  }
  .modules-menu-level-2 {
    display: none;
    margin: 0;
    padding: 0;
    background-color: #6E5140;
    list-style: none;
    & > li {
      & + li {
        border-top: 1px solid lighten($theme-gray-dark, 5%);
      }
      & > a {
        text-align: left;
        color:#fff;
        display: block;
        padding: 17px 25px;
        font-family: $main-font;
        font-size: 0.9375em;
      }
      &:hover {
        background-color: darken(#6E5140, 10%);
        & > a {
          color: #FFF;
        }
      }
    }
    @media (min-width: $screen-sm) {
      position: absolute;
      top: 0;
      left: 100%;
      &:before {
        content: "";
        display: block;
        position: absolute;
        top: 13px;
        left: -6px;
        @include arrow("right", 6px, 6px, $theme-gray-darker);
      }
      & > li {
        padding-right: 15px;
        & > a {
          padding-left: 15px;
        }
      }
    }
  }
}

.has-mobile-dropdown {
  .modules-menu {
    .dropdown-toggle-icon {
      display: block;
    }
  }
}