
.navigation-item {
  margin: 0 11px;
}

.navigation-dropdown-item {
  position: relative;
}

.navigation-menu > .navigation-item {
  padding: 20px 0;
}

.navigation-menu > li > a.navigation-link:before {
  content: '';
  display: block;
  width: 80%;
  height: 2px;
  border-top: 2px solid;
  border-top-color: var(--primary-accent-color);
  position: absolute;
  right: 0;
  bottom: 5px;
  opacity: 0;
  transition: all .3s ease;
}

.navigation-menu > li > a.navigation-link:after {
  content: '';
  display: block;
  position: absolute;
  width: 15%;
  height: 2px;
  border-top: 2px solid;
  border-top-color: var(--primary-accent-color);
  left: 0;
  bottom: 5px;
  opacity: 0;
  transition: all .3s ease;
}

.navigation-menu > li:hover > a:after,
.navigation-menu > li:hover > a:before,
.navigation-menu > li.current-menu-item > a:before,
.navigation-menu > li.current-menu-item > a:after {
  opacity: 1;
}

.navigation-menu > li.has-megamenu .megamenu ul > li:hover i.seoicon-right-arrow,
.navigation-menu > li.has-megamenu .megamenu ul > li:hover a,
.navigation-menu > li.current-menu-item,
.navigation-menu > li.current-menu-item a,
.navigation-menu > li.active > a,
.navigation-menu > li.current-menu-item a,
.navigation-menu > li.current-menu-item,
.navigation-menu > li:hover > a,
.navigation-menu > li:hover > i,
.navigation-menu ul.sub-menu a:hover > i,
.navigation-menu > li.menu-item-has-mega-menu .megamenu ul > li a:hover i,
.navigation-menu > li.menu-item-has-mega-menu .megamenu ul > li > ul > li:hover a,
.navigation-menu > li.menu-item-has-mega-menu .megamenu ul > li a:hover,
.navigation-menu ul.sub-menu li:hover > a,
.navigation-menu li ul.sub-menu li:hover > a .indicator,
.navigation-menu > li:hover > a > .indicator,
.navigation-body-close-button:hover {
  color: var(--primary-accent-color);
}

.navigation-menu ul.sub-menu.sub-menu-has-icons li a:before {
  background-color: var(--primary-accent-color);
}

.navigation-menu > li > a:before,
.navigation-menu > li > a:after {
  border-top-color: var(--primary-accent-color);
}

.megamenu-item-info-text {
  font-size: 14px;
  color: var(--header-font-color);
  line-height: 1.3;
}

.megamenu-item-info-title {
  margin-top: 0;
  margin-bottom: 0;
  color: var(--header-font-color);
}

.megamenu-item-info {
  padding: 0 35px 0;
  margin-bottom: 10px;
}

.navigation-menu ul.navigation-dropdown li > a {
  font-size: 16px;
  font-weight: 400;
  padding: 13px 35px 13px 35px;
  position: relative;
  color: var(--header-font-color);
  transition: all .4s ease-out;
  display: flex;
  align-items: center;

  &:hover {
    color: var(--primary-accent-color);

    .menu-item-icon {
      color: var(--primary-accent-color);
    }
  }
}

.sub-menu-has-icons a .menu-item-icon {
  font-size: 24px;
  opacity: 1;
  margin-right: 15px;
  margin-left: 0;
  vertical-align: middle;
  position: relative;
  color: var(--header-font-color);
  transition: all .3s ease;
}

.navigation-dropdown a .seoicon-right-arrow {
  margin-left: 10px;
  opacity: 0;
  transition: all .4s ease;
  font-size: 12px;
  color: var(--primary-accent-color);
}

.navigation-dropdown li a:hover > .seoicon-right-arrow {
  opacity: 1;
}

.navigation-dropdown .navigation-dropdown-item {
  margin: 0;
  width: 100%;

  &:last-child {
    padding-bottom: 15px;
  }

  &:first-child {
    padding-top: 15px;
  }
}

.sub-menu-has-icons a .seoicon-right-arrow {
  display: none;
}

.sub-menu-has-icons li a:before {
  content: '';
  display: block;
  height: 100%;
  width: 3px;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transition: all .3s ease;
  background-color: var(--primary-accent-color);
}

.sub-menu-has-icons li a:hover::before {
  opacity: 1;
}

/*================= Styles for Mega menu =========*/

.navigation-megamenu {

  .navigation-dropdown {
    right: auto;
    position: relative;
    display: inline-block;
    opacity: 1;
    max-height: 100%;
    top: 0;
    margin-top: 0;
    background-color: transparent;
    box-shadow: none;
    width: auto;
  }

  .mega-menu-row {
    margin: 30px 0 20px;
  }

  .megamenu-item-info-text {
    img {
      margin-bottom: 20px;
    }

    p {
      font-size: 16px;
      line-height: 1.5;
    }
  }

  .megamenu-item-info {
    padding: 0 10px 0;
  }

  ul.navigation-dropdown li > a {
    padding: 10px;
  }

  .submenu-indicator {
    display: none;
  }

  .navigation-dropdown .navigation-dropdown-item:first-child {
    padding-top: 0;
  }

  .navigation-dropdown .navigation-dropdown-item:last-child {
    padding-bottom: 0;
  }
}

@media (max-width: 992px) {
  .navigation-menu > li > a:after,
  .navigation-menu > li > a:before,
  .navigation-menu > li:hover > a:after,
  .navigation-menu > li:hover > a:before,
  .navigation-menu > li.current-menu-item > a:before,
  .navigation-menu > li.current-menu-item > a:after {
    display: none;
  }

  .navigation-menu > .navigation-item {
    padding: 0;
  }

  .navigation-item {
    margin: 0;
  }

  .navigation-dropdown .navigation-dropdown-item:first-child {
    padding-top: 0;
  }

  .navigation-dropdown .navigation-dropdown-item:last-child {
    margin-bottom: 0;
  }

  .megamenu-item-info {
    padding: 15px 30px 0;
  }

  .navigation-dropdown .navigation-dropdown .navigation-dropdown-item {
    &:last-child {
      padding-bottom: 0;
    }

    &:first-child {
      padding-top: 0;
    }
  }

  .navigation-menu ul.navigation-dropdown li > a {
    padding: 10px 30px;
    font-size: 14px;
  }

  .megamenu-item-info-title {
    font-size: 16px;
  }

  .navigation-megamenu ul.navigation-dropdown li > a {
    padding: 10px 20px;
  }

  .navigation-megamenu .megamenu-item-info {
    padding: 0 20px 0;
  }

  .navigation-megamenu .mega-menu-row {
    margin: 15px 0;

    & > .navigation-dropdown-item {
      margin-bottom: 15px;

      &:last-child {
        margin-bottom: 0;
      }
    }
  }
}

@media (min-width: 992px) {
  .navigation-megamenu .mega-menu-row > .navigation-dropdown-item {
    margin: 0 20px;
  }

  .navigation-dropdown {
    .navigation-dropdown-item.has-submenu .submenu-indicator {
      transform: rotate(-90deg);
    }
  }
}

/*================= Animation for primary menu =========*/

.navigation-menu > li:hover > a:after {
  width: 15%;
  animation: primary-short .5s linear;

  @keyframes primary-short {

    0% {
      width: 0;
    }

    50% {
      width: 40%;
    }

    100% {
      width: 15%;
    }

  }
}

.navigation-menu > li:hover > a:before {
  width: 80%;
  animation: primary-long .5s linear;

  @keyframes primary-long {

    0% {
      width: 100%;
    }

    50% {
      width: 55%;
    }

    100% {
      width: 80%;
    }
  }
}