.mainmenu_wrap {
}
#main-menu {
  text-align: end;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-bottom: 2px solid var(--bs-primary);
}
#main-menu a {
  color: var(--mg-body);
  padding: 3px 10px;
  transition: all 0.3 ease-out;
  display: block;
  position: relative;
  font-weight: 400;
  font-family: var(--mg-font-second);
  font-size: 15px;
  text-transform: uppercase;
  text-align: center;
}
#main-menu > li > a {
  padding: 15px;
  border-top: 1px solid rgba(var(--bs-primary-rgb), 0.1);
}
#main-menu a .sub-arrow {
  display: inline-block;
  width: 9px;
  height: 6px;
  background: url("../img/arrow.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  margin-left: 10px;
  margin-bottom: 3px;
}
/* #main-menu a.highlighted .sub-arrow:before {
  transform: rotate(180deg);
} */
#main-menu a:hover,
#main-menu li.active a {
  color: var(--bs-primary);
}
#main-menu ul {
  padding-left: 30px;
}
#main-menu ul a {
  padding: 10px 15px;
  padding-right: 30px;
  border-bottom: 1px solid var(--bs-gray-200);
  position: relative;
}
#main-menu ul a .sub-arrow {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}
.sm-mgtheme {
  z-index: 990 !important;
}
@media (min-width: 992px) {
  .sm-mgtheme ul {
    position: absolute;
    width: 12em;
    background-color: #fff;
    border: 1px solid var(--bs-gray-200);
  }
  .sm-mgtheme li {
    float: left;
    position: relative;
  }
  .sm-mgtheme.sm-rtl li {
    float: right;
  }
  .sm-mgtheme ul li,
  .sm-mgtheme.sm-rtl ul li,
  .sm-mgtheme.sm-vertical li {
    float: none;
  }
  .sm-mgtheme a {
    white-space: nowrap;
  }
  .sm-mgtheme ul a,
  .sm-mgtheme.sm-vertical a {
    white-space: normal;
  }
  .sm-mgtheme .sm-nowrap > li > a,
  .sm-mgtheme .sm-nowrap > li > :not(ul) a {
    white-space: nowrap;
  }

  /*  */
  #main-menu {
    position: static;
    background: transparent;
    border-bottom: none;
  }
  #main-menu > li > a {
    line-height: 70px;
    padding: 0px 15px;
    border-bottom: 2px solid transparent;
    color: #fff;
  }
  #main-menu > li > a:hover {
    border-bottom-color: #fff;
    color: #fff;
  }
  #main-menu ul {
    padding-left: 0;
  }
}
@media (min-width: 1200px) {
  #main-menu > li > a {
    line-height: 70px;
    padding: 0px 25px;
    border-bottom: 2px solid transparent;
    color: #fff;
  }
}
@media (min-width: 1400px) {
  #main-menu > li > a {
    line-height: 70px;
    padding: 0px 35px;
    border-bottom: 2px solid transparent;
    color: #fff;
  }
}
.main-menu-btn {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 28px;
  text-indent: 28px;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
/* hamburger icon */
.main-menu-btn-icon,
.main-menu-btn-icon:before,
.main-menu-btn-icon:after {
  position: absolute;
  top: 50%;
  left: 2px;
  height: 2px;
  width: 24px;
  background: #bbb;
  -webkit-transition: all 0.25s;
  transition: all 0.25s;
}
.main-menu-btn-icon:before {
  content: "";
  top: -7px;
  left: 0;
}
.main-menu-btn-icon:after {
  content: "";
  top: 7px;
  left: 0;
}
/* x icon */
#main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon {
  height: 0;
  background: transparent;
}
#main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon:before {
  top: 0;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}
#main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon:after {
  top: 0;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}
/* hide menu state checkbox (keep it visible to screen readers) */
#main-menu-state {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}
/* hide the menu in mobile view */
#main-menu-state:not(:checked) ~ #main-menu {
  display: none;
}
#main-menu-state:checked ~ #main-menu {
  display: block;
}
@media (min-width: 992px) {
  /* hide the button in desktop view */
  .main-menu-btn {
    position: absolute;
    top: -99999px;
  }
  /* always show the menu in desktop view */
  #main-menu-state:not(:checked) ~ #main-menu {
    display: block;
  }
}
/* 
|---------------------------------------------------------------
| menu light
|---------------------------------------------------------------
*/
.mainmenu_wrap.light #main-menu > li > a {
  color: var(--bs-primary);
}
.mainmenu_wrap.light .main-menu-btn-icon,
.mainmenu_wrap.light .main-menu-btn-icon:before,
.mainmenu_wrap.light .main-menu-btn-icon:after {
  background: var(--bs-primary);
}
.mainmenu_wrap.light #main-menu > li > a:hover {
  border-bottom-color: var(--bs-primary);
}
