nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  width: 100%;
  background-color: #fff;
  z-index: 98;
  transition: all 0.3s;
}

nav .nav-row {
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

nav.affix {
  position: sticky;
  left: 0;
  top: 0;
  /* padding: 0.5rem;
   */
}

nav a {
  color: #000;
}

nav .nav-row .ulmenu {
  padding: 0;
  margin: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

nav .nav-row .ulmenu li {
  margin: 0 1rem;
  padding: 1rem 0;
  position: relative;
}


.menu-toggle::after {
  font-family: 'Font Awesome 6 Free';
  content: '\f107';
  font-weight: 900;
  color: #0000004D;
}

@media (max-width: 768px) {
  .menu-toggle.active::after {
    content: '\f106';
  }
}

nav .mclick {
  display: none;
}

#slide-over {
  display: none;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  position: fixed;
  left: 0;
  top: 80px;
  z-index: 96;
}

nav .fixbtnm {
  display: flex;
  align-items: center;
  gap: 2vw;
}

.logo {
  width: 180px;
}

nav .ulmenu .submenu {
  list-style-type: none;
  min-width: 150px;
  display: none;
  padding: 0;
  top: 100%;
  list-style: none;
  position: absolute;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 96;
}

nav .ulmenu .submenu li {
  margin: 0;
  padding: 0;
}

nav .ulmenu .submenu li>a {
  display: block;
  padding: 0.5rem 1rem;
  color: #2E7975;
}

nav .ulmenu .submenu li>a:hover {
  background-color: #d8fffd;
}

nav .ulmenu .submenu li+li {
  border-top: 1px solid #D9D9D9;
}

@media (min-width: 768px) {
  nav .ulmenu>li:hover>ul.submenu {
    display: block;
  }
}

@media (max-width: 768px) {

  nav .ulmenu .submenu.active {
    display: flex;
    position: static;
    margin-top: 0.5rem;
    flex-wrap: wrap;
  }

  nav .ulmenu .submenu {
    box-shadow: none;
    margin-top: 1rem;
  }



  nav .ulmenu .submenu li>a {
    color: #000;
  }

  nav .ulmenu.open-menu li:has(.submenu.active) {
    padding-bottom: 0;
  }

}

@media (max-width: 1200px) {
  nav .nav-row {
    padding-left: 0;
    padding-right: 0;
  }

  nav .nav-row .ulmenu li {
    width: 50%;
  }

}

@media (max-width: 1023px) {
  nav.affix {
    position: sticky;
    padding: 1rem;
    left: 0;
    top: 0;
  }

  nav .mclick {
    border: none;
    outline: none;
    background-color: transparent;
    display: block;
    position: fixed;
    right: 20px;
    top: 30px;
    width: 2rem;
    height: 2rem;
    z-index: 120;
    background-image: url(../img/mclick.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
  }

  nav .mclick.open {
    background-image: url(../img/mclose.png);
  }

  nav .nav-row .ulmenu {
    position: fixed;
    right: -100%;
    top: 0;
    width: 100%;
    height: 100vh;
    background-color: #28DAC2;
    /* padding-left: 1rem; */
    padding-right: 0;
    box-sizing: border-box;
    flex-direction: column;
    transition: all 0.3s;
    padding-top: 5rem;
    align-items: flex-start;
    font-size: 1.2rem;
    z-index: 97;
  }

  nav .nav-row .ulmenu>li {
    display: block;
    color: #fff;
    padding-top: 1rem;
    padding-bottom: 1rem;
    /* padding-left: 1rem; */
    text-indent: 1rem;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  nav .nav-row .ulmenu>li+li {
    border-top: 1px solid rgba(255, 255, 255, 0.5);
  }

  nav .nav-row .ulmenu.open-menu {
    right: 0;
  }

  nav .nav-row .ulmenu a {
    color: #000;
  }

  nav .fixbtnm {
    position: fixed;
    top: -6rem;
    opacity: 0;
  }

  nav .ulmenu.open-menu~.fixbtnm {
    transition: opacity 0.3s 0.2s;
    opacity: 1;
    top: 0;
    left: 1re;
    width: 100%;
    height: 6rem;
    align-items: center;
    z-index: 98;
    background-color: #28DAC2ff;
    /*padding-top: 1rem;
    padding-bottom: 1rem;
     
    justify-content: center;
    border-bottom: 1px solid #eee;*/
  }

  nav .fixbtnm .spbtn {
    padding: 0.5rem 2rem;
  }

  #slide-over.toggle {
    display: block;
  }
}