.header-item {
  background-color: #F1D6CA;
}

.header-item .menu {
  display: flex;
  justify-content: center;
  position: relative;
}

.fa-angle-down {
  font-size: 12px;
  margin-left: 5px;
}

.header .item-right {
  flex: 0 0 17%;
  display: flex;
  justify-content: flex-end;
}

.header .item-right a {
  text-decoration: none;
  font-size: 16px;
  color: #555555;
  display: inline-block;
  margin-left: 10px;
  transition: color 0.3s ease;
}

.header .menu>ul>li {
  display: inline-block;
  position: relative;
}


.header .menu>ul>li>a {
  font-size: 16px;
  color: #FFFFFF;
  position: relative;
  text-transform: capitalize;
  transition: color 0.3s ease;
  text-decoration: none;
  padding: 15px 15px;
}

.header.inner-header .menu>ul>li>a {
  color: #222222;
}

/* .header .menu>ul>li>a:after {
  content: "";
  height: 80%;
  width: 1px;
  background-color: #fff;
  right: 0;
  position: absolute;
  top: 0px;
  bottom: 0px;
  margin: auto;
} */

.header .menu>ul>li:last-child a:after {
  display: none;
}

.for-mobile-only li a {
  color: #000000;
}

.header .menu>ul>li>a.active,
.for-mobile-only li a.active {
  color: var(--primary-color);
}

@media(min-width: 1200px) {
  .header .menu>ul>li .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 240px;
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
    z-index: 500;
  }

  .header .menu>ul>li .sub-menu::before,
  .header .menu>ul>li .sub-menu::after,
  .header .menu>ul>li .sub-menu::before,
  header .menu>ul>li .sub-menu::after {
    display: none !important;
  }

  .header .menu>ul>li.menu-item-has-children:hover .sub-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  /* Enable mega-menu layout by resetting li positioning */
  .header .menu>ul>li.menu-item-has-children {
    position: static;
  }



  .header .menu>ul>li.menu-item-has-children:hover .sub-menu.mega-menu {
    transform: translateY(0);
  }

  .header .menu>ul>li .sub-menu .list-item {
    width: 100%;
    padding: 0;
  }

  .header .menu>ul>li .sub-menu.mega-menu .list-item {
    flex: 1;
    padding: 0 0px;
    min-width: 150px;
    width: auto;
  }

  .header .menu>ul>li .sub-menu .list-item ul {
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .header .menu>ul>li .sub-menu .list-item ul li {
    display: block;
    line-height: normal;
    padding: 0;
  }

  .header .menu>ul>li .sub-menu .list-item ul li a {
    display: block;
    padding: 10px 24px;
    font-size: 15px;
    color: #333333;
    transition: all 0.25s ease;
    text-decoration: none;
    text-transform: capitalize;
  }

  .header .menu>ul>li .sub-menu .list-item ul li a:hover {
    color: var(--primary-color);
    background-color: #f7f9f6;
    padding-left: 28px;
  }

  .header .menu>ul>li:first-child a {
    padding-left: 0;
  }

  .header .menu>ul>li:last-child a {
    border-right: none;
    padding-left: 0px;
  }
}

@media(max-width: 1600px) {
  .header .menu>ul>li>a {
    font-size: 15px;
  }
}

@media(max-width: 1280px) {
  .header .menu>ul>li>a {
    font-size: 14px;
    padding: 15px 10px;
  }
}

.mobile-menu-head,
.mobile-menu-trigger {
  display: none;
}

/*responsive*/

@media(max-width: 1199px) {
  .header .item-center {
    order: 3;
    flex: 0 0 100%;
  }

  .header .item-left,
  .header .item-right {
    flex: 0 0 auto;
  }

  .v-center {
    justify-content: space-between;
  }

  .header .mobile-menu-trigger {
    display: flex;
    height: 30px;
    width: 30px;
    margin-left: 0px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
  }

  .header .mobile-menu-trigger span {
    display: block;
    height: 2px;
    background-color: #ffffff;
    width: 24px;
    position: relative;
  }

  .header .mobile-menu-trigger span:before,
  .header .mobile-menu-trigger span:after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
  }

  .header.inner-header .mobile-menu-trigger span {
    background-color: #222222;
  }

  .header.inner-header .mobile-menu-trigger span:before,
  .header.inner-header .mobile-menu-trigger span:after {
    background-color: #222222;
  }

  .header .mobile-menu-trigger span:before {
    top: -6px;
  }

  .header .mobile-menu-trigger span:after {
    top: 6px;
  }

  .header .item-right {
    align-items: center;
  }

  .header .menu {
    position: fixed;
    width: 300px;
    background-color: #ffffff;
    left: 0;
    top: 0;
    height: 100%;
    overflow: hidden;
    transform: translate(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1099;
    display: flex;
    flex-direction: column;
  }

  .header .menu.active {
    transform: translate(0%);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.15);
  }

  .header .menu>ul>li {
    line-height: 1;
    margin: 0;
    display: block;
    position: unset;
  }

  .header .menu>ul>li>a,
  .for-mobile-only li a {
    line-height: 24px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f5f5f5;
    border-radius: 0px;
    text-transform: capitalize;
    color: #333333;
    font-size: 15px;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
    text-decoration: none;
  }

  .header .menu>ul>li>a:hover,
  .for-mobile-only li a:hover {
    background-color: #fafafa;
    color: var(--primary-color);
  }

  .header .menu>ul>li>a i {
    font-size: 12px;
    color: #999999;
    transition: transform 0.2s;
  }

  .header .menu .mobile-menu-head {
    display: flex;
    height: 60px;
    border-bottom: 1px solid #f0f0f0;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 501;
    background-color: #ffffff;
    padding: 0 16px;
    flex-shrink: 0;
  }

  .header .menu .mobile-menu-head .go-back {
    height: 36px;
    width: 36px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 36px;
    text-align: center;
    color: #333333;
    font-size: 16px;
    background-color: #f5f5f5;
    transition: all 0.2s ease;
    display: none;
  }

  .header .menu .mobile-menu-head .go-back:hover {
    background-color: #e0e0e0;
  }

  .header .menu .mobile-menu-head.active .go-back {
    display: block;
  }

  .header .menu .mobile-menu-head .current-menu-title {
    font-size: 16px;
    color: #222222;
    text-decoration: none;
    text-transform: capitalize;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
  }

  .header .menu .mobile-menu-head .mobile-menu-close {
    height: 36px;
    width: 36px;
    border-radius: 50%;
    cursor: pointer;
    background-color: #f5f5f5;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header .menu .mobile-menu-head .mobile-menu-close:hover {
    background-color: #e0e0e0;
  }

  /* .header .menu .mobile-menu-head .mobile-menu-close img {
    width: 12px;
    height: 12px;
  } */

  .header .menu .menu-main {
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
    /* padding: 10px 0; */
  }

  .header .menu>ul>li .sub-menu {
    visibility: visible;
    opacity: 1;
    position: absolute;
    box-shadow: none;
    margin: 0;
    padding: 15px 0;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100% - 60px);
    max-width: none;
    min-width: auto;
    display: none;
    background-color: #ffffff;
    border: none;
    border-radius: 0;
    z-index: 100;
    overflow-y: auto;
  }

  .header .menu>ul>li .sub-menu.active {
    display: block;
  }

  .header .menu>ul>li .sub-menu.mega-menu {
    padding: 15px 0;
  }

  .header .menu>ul>li .sub-menu .list-item {
    width: 100%;
    padding: 0;
  }

  .header .menu>ul>li .sub-menu .list-item ul {
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .header .menu>ul>li .sub-menu .list-item ul li {
    display: block;
  }

  .header .menu>ul>li .sub-menu .list-item ul li a {
    display: block;
    padding: 12px 24px;
    border-bottom: 1px solid #f5f5f5;
    color: #444444;
    font-size: 14px;
    text-transform: capitalize;
    transition: color 0.2s, background-color 0.2s;
    text-decoration: none;
  }

  .header .menu>ul>li .sub-menu .list-item ul li a:hover {
    color: var(--primary-color);
    background-color: #fcfcfc;
  }

  @keyframes slideLeft {
    0% {
      opacity: 0;
      transform: translateX(100%);
    }

    100% {
      opacity: 1;
      transform: translateX(0%);
    }
  }

  @keyframes slideRight {
    0% {
      opacity: 1;
      transform: translateX(0%);
    }

    100% {
      opacity: 0;
      transform: translateX(100%);
    }
  }

  .menu-overlay {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1098;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }

  .menu-overlay.active {
    visibility: visible;
    opacity: 1;
  }

  .header-item {
    margin-top: 10px;
  }
}