.sticky-nav,
.dnd-section--sticky {
  position: sticky;
  top: var(--header-height, 80px);
  transition: .2s all;
  z-index: 999;
  /* Accordion  Edit */
    z-index: 99;
  box-shadow: 0 4px 20px 0 rgba(0,0,0,.05);
}

.dnd-section--sticky {
  padding-top: 0;
  padding-bottom: 0;
}

.dnd-section--sticky.dnd-section--full-width>.row-fluid {
  max-width: none;
}

.sticky-nav.js-inactive,
.dnd-section--sticky.js-inactive {
  /* Accordion edit */
  /*
  opacity: 0;
  transform: translateY(-100%);
  visibility: hidden;
  */ 
}

.sticky-nav:after {
  content: '';
  width: 2em;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(to right,rgba(var(--color-background, 255,255,255),0),rgba(var(--color-background, 255,255,255),1));
  pointer-events: none;
}

.sticky-nav__inner {
  overflow-x: auto;
  padding: 10px var(--site-gutter) !important;
  /* Accordion edit */
  overflow: hidden !important;
}

.sticky-nav__items {
  display: flex;
  list-style: none !important;
  margin: 0 -0.6rem;
  transition: height 1s ease-in-out; /* Adjust the duration and easing as needed */

}

/* Accordion edit */
.sticky-nav__items {
  flex-direction: column;
  overflow: hidden; /* Ensure content is hidden when height is 0 */
  height: 0; /* Initially, set the height to 0 */
}




.show-nav {
  animation-name: slideDown;
  animation-duration: 0.5s; /* Adjust the duration as needed */
  animation-timing-function: ease-in-out; /* Adjust the timing function as needed */
  animation-fill-mode: forwards; /* Keeps the final state of the animation */
}
.hide-nav {
  animation-name: slideUp;
  animation-duration: 0.5s; /* Adjust the duration as needed */
  animation-timing-function: ease-in-out; /* Adjust the timing function as needed */
  animation-fill-mode: forwards; /* Keeps the final state of the animation */
}

@keyframes slideDown {
  0% {
    height: 0;
    opacity: 0;
  }
  100% {
    height: auto; /* or a specific height in pixels */
    opacity: 1;
  }
}

@keyframes slideUp {
  0% {
    height: auto; /* or a specific height in pixels */
    opacity: 1;
  }
  100% {
    height: 0;
    opacity: 0;
  }
}


.nav-toggle {
  padding: 20px;
  text-align: center;
  cursor: pointer;
}

.nav-toggle span {
  margin-right: 10px;
}

.nav-toggle i {
  transition: .5s;
}
.rotated {
  transform: rotate(180deg);
}

{#
.nav-toggle {
  display: none !important;
} 

@media (max-width: 767px) {
  .nav-toggle {
    display: block !important;
  }
}
#} 

.sticky-nav__item {
  display: inline-block;
  flex-shrink: 0;
}

.sticky-nav__item:last-child {
  padding-right: 2em;
}

.sticky-nav__link {
  border-bottom: 3px solid transparent;
  display: block;
  font-size: 13px;
  font-weight: normal;
  padding: 1rem .6rem;
  padding: 5px;
}

@media (min-width: 600px) {
  .sticky-nav__link {
    font-size: .85rem;
  }
}

@media (min-width: 900px) {
  .sticky-nav__link {
    align-items: center;
    display: flex;
    font-size: .95rem;
  }
}

.sticky-nav__link.js-active {
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: currentColor;
}

.sticky-nav__link.js-active,
.sticky-nav__link:hover {
  border-color: currentColor;
}

.sticky-nav__icon {
  display: block;
  margin: 0 auto 0;
}

@media (min-width: 900px) {
  .sticky-nav__icon {
    margin: 0 var(--mh-sn-icon-gap, 10px) 0 0;
  }
}

html:not(.hs-inline-edit) .dnd-page-section,
html:not(.hs-inline-edit) .dnd-section section.row-module--sectioned {
  margin-top: calc(calc(var(--header-height) + 2.85rem) * -1);
  padding-top: calc(var(--header-height) + 2.85rem);
}

@media (min-width: 768px) {
  .sticky-nav--jc-left\@tablet {
    justify-content: flex-start;
  }
  
  .sticky-nav--jc-center\@tablet {
    justify-content: center;
  }

  .sticky-nav--jc-right\@tablet {
    justify-content: flex-end;
  }

  .sticky-nav__items {
    margin: 0 -0.8rem;
  }

  .sticky-nav__item:last-child {
    padding-right: 0;
  }

  .sticky-nav__link {
    padding: 1.1rem calc(var(--mh-sn-link-gap, 40px) / 2);
    padding: 5px;
  }

  html:not(.hs-inline-edit) .dnd-page-section,
  html:not(.hs-inline-edit) .dnd-section section.row-module--sectioned {
    margin-top: calc(calc(var(--header-height) + 3.05rem) * -1);
    padding-top: calc(var(--header-height) + 3.05rem);
  }
}

@media (min-width: 1025px) {
  .sticky-nav--jc-left\@desktop {
    justify-content: flex-start;
  }
  
  .sticky-nav--jc-center\@desktop {
    justify-content: center;
  }

  .sticky-nav--jc-right\@desktop {
    justify-content: flex-end;
  }
  .sticky-nav__items {
    justify-content: center;
    transform: translateX(-20px);
  }
}



