.cp-navigation {
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

#menu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: #fdfdef ;
  padding-bottom: 20px;
  flex-direction: column;
  border-radius: 8px 8px 0px 0px;
  width: 100%;
  margin: -120px auto 0;
  max-width: calc(100vw - 40px);
  padding: 20px;
  z-index:999;
}

#menu a {
  font: normal normal bold 18px/35px Muli;
  letter-spacing: -0.36px;
  color: #1F1F40;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.3em 0.6em;
  transition: all .125s ease-in-out;
  -webkit-transition: all .125s ease-in-out;
  width: 100%;
}

#menu ul {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 1130px;
}

#menu li:hover {
  cursor: pointer;
}

#menu li:hover > a {
  cursor: pointer;
}

#menu .main-menu {
  display: none;
}

#tm:checked + .main-menu {
  display: block;
  width: 100%;
  background-color: #fdfdef ;
}

#menu input[type="checkbox"], 
#menu ul span.drop-icon {
  display: none;
}

/* #menu li, 
#toggle-menu, 
#menu .sub-menu {
  border-style: solid;
  border-color: rgba(0, 0, 0, .05);
} */

#menu .item-wrapper > li {
  border-bottom: 1px solid #717d17;
}

#menu li, 
#toggle-menu {
  border-width: 0 0 1px;
}

#menu .sub-menu {
  border-width: 1px 1px 0;
  margin: 0 1em;
   background-color: #fdfdef !important;
  z-index:99;
}

#menu .sub-menu li:last-child {
  border-width: 0;
  padding-bottom: 0;
}

#menu li, 
#toggle-menu, 
#menu a {
  position: relative;
  display: block;
}

#toggle-menu {
  /* background: #333; */
}

#toggle-menu {
  padding: 0.3em 0.6em;
  padding-bottom: 30px;
}

#menu a:hover,
#menu .sub-menu a:hover {
  /* background-color: var(--menu-item-hover-bg); */
  /* color: var(--menu-item-hover-text); */
}

#menu .sub-menu {
  display: none;
}

#menu input[type="checkbox"]:checked + .sub-menu {
  display: block;
}

.menu-item .menu-depth-2 a {
background-color:#fdfdef;
}

.menu-item .menu-depth-2 a:hover {
color:#717d17!important;
}


#menu .hamburger-menu {
  right: 24px;
  top: 0;
  width: 20px;
  height: 20px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  height: 100%;
  
  background-position: 100%;
  background-repeat: no-repeat;
  background-size: contain;
  height: 20px;
  height: 100%;
  /* position: absolute; */
  /* right: 24px; */
  top: 0;
  width: 100%;
  /* padding: 0px 92px; */

  font: normal normal 700 18px/35px Muli;
}

#toggle-menu {
  width: 100%;
  max-width: 1130px;
}

#toggle-menu:hover {
  cursor: pointer;
}

#menu .hamburger-menu.closed {
  background-image: url("https://6518621.fs1.hubspotusercontent-na1.net/hubfs/6518621/Inpo%202023%20website/minus-icon.svg");
  width: 100%;
}

#menu .hamburger-menu.opened {
  background-image: url("https://6518621.fs1.hubspotusercontent-na1.net/hubfs/6518621/Inpo%202023%20website/plus-icon.svg");
}

#toggle-menu .drop-icon, 
#menu li label.drop-icon {
  position: absolute;
  right: 0;
  top: -4px;
  width: 100px;
}

#menu label.drop-icon, 
#toggle-menu span.drop-icon {
  font-size: 20px;
  text-align: center;
  padding: 12px 24px;
  transition: transform 0.15s;
  transform-origin: center;
  display: flex;
  justify-content: flex-end;
}

#menu label.drop-icon {
  padding-right: 14px;
}

#menu li label.drop-icon:after, 
#menu li label.drop-icon:focus {
  content: url("https://6518621.fs1.hubspotusercontent-na1.net/hubfs/6518621/Inpo%202023%20website/arrow-down.svg");
  text-align: right;
  transform: rotate(270deg);
}

#menu li label.drop-icon.active:after {
  transform: rotate(180deg);
}

#menu li label.drop-icon:hover {
  cursor: pointer;
}

#menu label.drop-icon.active{
  -webkit-transform: scaleY(-1); /* Safari and Chrome */
  -moz-transform: scaleY(-1); /* Firefox */
  -ms-transform: scaleY(-1); /* Internet Explorer */
  -o-transform: scaleY(-1); /* Opera */
  transform: scaleY(-1); /* Standard syntax */
}

#menu .sub-menu .item-wrapper {
  padding: 0;
}

#menu .sub-menu a {
  border: none;
}

/* #toggle-menu {
  display: none;
} */

@media only screen and (min-width: 1180px){
#menu {
    max-width:1144px;
}
}

@media only screen and (min-width: 1280px) {
  #menu {
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    border-radius: 8px 8px 0px 0px;
    top: -130px;
    height: 80px;
    padding-bottom: 0;
    margin: 0;
    max-width: 100%;
    padding: 0;
  }

  #menu .item-wrapper > li {
    border-bottom: none;
  }

  #menu a {
    border-right: 1px solid #c6d014;
    font-size: 16px;
    padding: 10px 26px;
  }
    #menu a:last-child {
    border-right: 0px;

  }

  #menu .item-wrapper {
    padding: 8px 0;
  }

  #toggle-menu .drop-icon, 
  #menu li label.drop-icon {
    top: 0;
  }

  #menu .main-menu {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
  }

  #tm:checked + .main-menu {
    display: block;
    left: 0;
    width: 100%;
    background-color: #fdfdef ;

    position: absolute;
    top: 80px;
    /* height: calc(100vh - 80px); */
  }

  #menu a {
    height: 100%;
    display: flex;
    align-items: center;
  }

  #toggle-menu, 
  #menu label.drop-icon {
    display: none;
  }

  {##menu ul {
    max-width: 150%;
  }#} 

  #menu li {
    float: left;
    border-width: 0 1px 0 0;
    height: 100%;
  }

  #menu li.active-branch > a,
  #menu li.active > a {

  }
  
  #menu .sub-menu li {
    float: none;
    background-color: #fdfdef ;
  }

  #menu .sub-menu {
    border-width: 0;
    margin: 0;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 3000;
  }

  #menu .sub-menu, 
  #menu input[type="checkbox"]:checked + .sub-menu {
    display: none;
  }

  #menu .sub-menu li {
    border-width: 0 0 1px;
  }

  #menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
  }

  #menu .sub-menu .drop-icon {
    position: absolute;
    top: 0;
    right: 0;
    padding: 1em;
  }

  #menu li:hover > input[type="checkbox"] + .sub-menu {
    display: block;
  }

  #menu li.has-sub > a::after {
    content: url("https://6518621.fs1.hubspotusercontent-na1.net/hubfs/6518621/Inpo%202023%20website/arrow-down.svg");
    margin-left: 12px;
    transition: transform 0.15s;
    transform-origin: center;
    height: 30px;
    margin-top:5px;
  }

  #menu li.has-sub:hover > a::after {
    -webkit-transform: rotate(180deg); /* Safari and Chrome */
    -moz-transform: rotate(180deg); /* Firefox */
    -ms-transform: rotate(180deg); /* Internet Explorer */
    -o-transform: rotate(180deg); /* Opera */
    transform: rotate(180deg); /* Standard syntax */
  }
}

@media only screen and (min-width: 1340px) {
  #menu a {
    font-size: 16px;
  }
}