.sm {
  box-sizing: border-box;
  position: relative;
  z-index: 9999;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.sm,
.sm ul,
.sm li {
  display: block;
  list-style: none;
  margin: 0;
  padding: 0;
  line-height: normal;
  direction: ltr;
  text-align: left;
}

.sm-rtl,
.sm-rtl ul,
.sm-rtl li {
  direction: rtl;
  text-align: right;
}

.sm>li>h1,
.sm>li>h2,
.sm>li>h3,
.sm>li>h4,
.sm>li>h5,
.sm>li>h6 {
  margin: 0;
  padding: 0;
}

.sm ul {
  display: none;
}

.sm li,
.sm a {
  position: relative;
}

.sm a {
  display: block;
}

.sm a.disabled {
  cursor: default;
}

.sm::after {
  content: "";
  display: block;
  height: 0;
  clear: both;
  overflow: hidden;
}

.sm *,
.sm *::before,
.sm *::after {
  box-sizing: inherit;
}

.sm-menu {
  background: transparent;
}

.sm-menu li>ul {
  background: rgb(0, 0, 0);
  background: -moz-linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(35, 80, 51, 1) 100%);
  background: -webkit-linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(35, 80, 51, 1) 100%);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(35, 80, 51, 1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000", endColorstr="#235033", GradientType=1);
}

.sm-menu li>ul ul {
  background: rgb(0, 0, 0);
  background: -moz-linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(28, 64, 40, 1) 100%);
  background: -webkit-linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(28, 64, 40, 1) 100%);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(28, 64, 40, 1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000", endColorstr="#1C4028", GradientType=1);
}

.sm-menu a,
.sm-menu a:hover,
.sm-menu a:focus,
.sm-menu a:active {
  text-align: right;
  padding: .8rem 2rem .8rem 1rem;
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  outline-color: #000;
}

.sm-menu li>ul ul,
.sm-menu li>ul li a {
  border-bottom: 1px solid #1D8F4C;
}

.sm-menu li>ul li:last-child a {
  border-bottom: 0;
}

.sm-menu a .sub-arrow {
  position: absolute;
  top: 50%;
  margin-top: -10px;
  left: auto;
  right: 5px;
  overflow: hidden;
}

.sm-menu a .sub-arrow::before {
  content: '';
  background: url(../images/icons/down-arrow.svg) no-repeat;
  background-size: cover;
  width: 12px;
  height: 12px;
  transition: 0.3s ease;
  display: inline-block;
}

.sm-menu a.highlighted .sub-arrow::before {
  content: '';
  transform: rotate(180deg);
}

@media (min-width: 992px) {

  .sm-menu ul {
    position: absolute;
    width: 12em;
  }

  .sm-menu li>ul ul {
    border-bottom: 0;
  }

  .sm-menu li {
    float: left;
    padding: 0 5px;
  }

  .sm-menu.sm-rtl li {
    float: right;
  }

  .sm-menu ul li,
  .sm-menu.sm-rtl ul li,
  .sm-menu.sm-vertical li {
    float: none;
  }

  .sm-menu a,
  .sm-menu a:hover,
  .sm-menu a:focus,
  .sm-menu a:active {
    text-align: left;
    padding: .5rem 1.5rem .5rem 1rem;
  }

  .sm-menu ul a,
  .sm-menu.sm-vertical a {
    white-space: normal;
  }

  .sm-menu .sm-nowrap>li>a,
  .sm-menu .sm-nowrap>li> :not(ul) a {
    white-space: nowrap;
  }

  .sm-menu a,
  .sm-menu a:hover,
  .sm-menu a:focus,
  .sm-menu a:active,
  .sm-menu a.highlighted {
    color: #fff;
  }

  .sm-menu a .sub-arrow {
    border: 0 !important;
    background: url(../images/icons/down-arrow.svg) no-repeat;
    background-size: cover;
    width: 12px;
    height: 12px;
    transition: 0.3s ease;
    float: right;
    margin-top: -5px;
  }

  .sm-menu a[aria-expanded="true"] .sub-arrow {
    transform: rotate(180deg);
  }

  .sm-menu a .sub-arrow::before {
    display: none;
  }

  .sm-menu ul {
    border-radius: 0;
    border: 0;
    background: transparent;
    margin: 0;
  }

  #main-menu>li>ul {
    top: 38px !important;
    padding: 12px 0 0 !important;
    background: transparent !important;
  }

  #main-menu>li:last-child>ul {
    left: auto !important;
    right: 0 !important;
    background: transparent !important;
  }

  #main-menu>li>ul li {
    padding: 0 !important;
  }

  #main-menu>li>ul li a {
    background: #235033;
    color: #fff;
    font-size: 17px;
    text-decoration: none;
    display: block;
    padding: .5rem 1.5rem;
    outline: 0;
    border: 1px solid transparent;
    border-bottom-color: #1D8F4C;
    cursor: pointer;
  }

  #main-menu>li>ul li:last-child a {
    border-bottom: 0;
  }

  #main-menu ul ul {
    /* position: relative !important;
    margin-left: 0 !important;
    margin-top: 0 !important; */
    /* border-left: 1px solid transparent !important;
    border-right: 1px solid transparent !important; */
  }

  #main-menu>li>ul ul li a {
    background: #183823;
  }

  #main-menu>li>ul li a:hover,
  #main-menu>li>ul li a:focus,
  #main-menu>li>ul li a:active,
  #main-menu>li>ul li a.highlighted {
    color: #fff;
    background: #1B8143;
  }

  .sm-menu ul a .sub-arrow {
    top: 50%;
    margin-top: -5px;
    bottom: auto;
    left: auto;
    margin-left: 0;
    right: 10px;
    border-style: dashed dashed dashed solid;
    border-color: transparent transparent transparent #a1d1e8;
  }

  .sm-menu ul li {
    border: 0;
  }

  .sm-menu .scroll-up,
  .sm-menu .scroll-down {
    position: absolute;
    display: none;
    visibility: hidden;
    overflow: hidden;
    background: #fff;
    height: 20px;
  }

  .sm-menu .scroll-up-arrow,
  .sm-menu .scroll-down-arrow {
    position: absolute;
    top: -2px;
    left: 50%;
    margin-left: -8px;
    width: 0;
    height: 0;
    overflow: hidden;
    border-width: 8px;
    border-style: dashed dashed solid dashed;
    border-color: transparent transparent #2b82ac transparent;
  }

  .sm-menu .scroll-down-arrow {
    top: 6px;
    border-style: solid dashed dashed dashed;
    border-color: #2b82ac transparent transparent transparent;
  }

  .sm-menu.sm-rtl.sm-vertical a .sub-arrow {
    right: auto;
    left: 10px;
    border-style: dashed solid dashed dashed;
    border-color: transparent #a1d1e8 transparent transparent;
  }

  .sm-menu.sm-rtl>li:first-child>a,
  .sm-menu.sm-rtl>li:first-child> :not(ul) a {
    border-radius: 0 8px 8px 0;
  }

  .sm-menu.sm-rtl>li:last-child>a,
  .sm-menu.sm-rtl>li:last-child> :not(ul) a {
    border-radius: 8px 0 0 8px !important;
  }

  .sm-menu.sm-rtl>li:first-child {
    border-left: 1px solid #2b82ac;
  }

  .sm-menu.sm-rtl>li:last-child {
    border-left: 0;
  }

  .sm-menu.sm-rtl ul a .sub-arrow {
    right: auto;
    left: 10px;
    border-style: dashed solid dashed dashed;
    border-color: transparent #a1d1e8 transparent transparent;
  }

  .sm-menu.sm-vertical {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  }

  .sm-menu.sm-vertical a {
    padding: 9px 23px;
  }

  .sm-menu.sm-vertical a .sub-arrow {
    top: 50%;
    margin-top: -5px;
    bottom: auto;
    left: auto;
    margin-left: 0;
    right: 10px;
    border-style: dashed dashed dashed solid;
    border-color: transparent transparent transparent #a1d1e8;
  }

  .sm-menu.sm-vertical>li:first-child>a,
  .sm-menu.sm-vertical>li:first-child> :not(ul) a {
    border-radius: 8px 8px 0 0;
  }

  .sm-menu.sm-vertical>li:last-child>a,
  .sm-menu.sm-vertical>li:last-child> :not(ul) a {
    border-radius: 0 0 8px 8px !important;
  }

  .sm-menu.sm-vertical>li {
    border-left: 0 !important;
  }

  .sm-menu.sm-vertical ul {
    border-radius: 4px !important;
  }

  .sm-menu.sm-vertical ul a {
    padding: 9px 23px;
  }
}
