.nav-header {
  position: relative;
  z-index: 41;
}

.sticky-wrapper {
  transition: 0.4s ease-in-out;

  &.sticky {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    background-color: $white-color;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.07);
    animation: stickyAni 0.4s ease-in-out;
  }
}

@keyframes stickyAni {
  0% {
    transform: translate3d(0, -40px, 0) scaleY(0.8);
    opacity: 0.7;
  }

  100% {
    transform: translate3d(0, 0, 0) scaleY(1);
    opacity: 1;
  }
}

.main-menu {
  a {
    display: block;
    position: relative;
    font-weight: 600;
    font-size: 18px;
    color: #ffffff;
    font-family: $title-font;

    &:hover {
      color: $title-color;
    }
  }

  >ul {
    >li {
      margin: 0 27px;

      >a {
        padding: 36px 0;

        &:hover {
          color: $title-color;
        }
      }
    }
  }

  ul {
    margin: 0;
    padding: 0;

    li {
      list-style-type: none;
      display: inline-block;
      position: relative;

      &.menu-item-has-children {
        >a {
          &:after {
            content: "\f078";
            position: relative;
            font-family: $icon-font;
            margin-left: 4px;
            font-weight: 700;
            top: 0;
            font-size: 12px;
          }
        }
      }

      &:last-child {
        margin-right: 0 !important;
      }

      &:first-child {
        margin-left: 0 !important;
      }

      &:hover {
        >ul.sub-menu {
          visibility: visible;
          opacity: 1;
          transform: scaleY(1);
          z-index: 9;
        }
      }
    }
  }

  ul.sub-menu {
    position: absolute;
    text-align: left;
    top: 100%;
    left: 0;
    background-color: #d2a530;
    visibility: hidden;
    min-width: 190px;
    width: max-content;
    padding: 7px;
    left: -14px;
    opacity: 0;
    z-index: -1;
    border: 0;
    box-shadow: 0px 4px 15px rgba(1, 15, 28, 0.06);
    border-radius: 0;
    transform: scaleY(0);
    transform-origin: top center;
    transition: all 0.4s ease 0s;

    a {
      font-size: 16px;
      line-height: 30px;
    }
  }

  ul.sub-menu {
    padding: 18px 20px 18px 18px;
    left: -27px;

    li {
      display: block;
      margin: 0 0;
      padding: 0px 9px;

      &.menu-item-has-children {
        >a:after {
          content: "\f105";
          float: right;
          top: 1px;
        }
      }

      a {
        position: relative;
        padding-left: 23px;
        text-transform: capitalize;

        &:before {
          content: "\f105";
          position: absolute;
          top: 8px;
          left: 0;
          font-family: $icon-font;
          width: 11px;
          height: 11px;
          text-align: center;
          border-radius: 50%;
          display: inline-block;
          font-size: 1em;
          line-height: 1;
          color: $title-color;
          font-weight: 500;
        }
      }

      ul.sub-menu {
        left: 100%;
        right: auto;
        top: 0;
        margin: 0 0;
        margin-left: 20px;

        li {
          ul {
            left: 100%;
            right: auto;
          }
        }
      }
    }
  }
}

/****header-top*****/
.main-menu {
  a {
    display: block;
    position: relative;
    font-weight: 600;
    font-family: $body-font;
    font-size: 18px;
    color: #ffffff;

    &:hover {
      color: $title-color;
    }
  }

  >ul {
    >li {
      margin: 0 11px;

      >a {
        padding: 31.5px 0;

        &.active {
          color: $title-color;
        }

        &:hover {
          color: $title-color;
        }
      }
    }
  }

  ul {
    margin: 0;
    padding: 0;

    li {
      list-style-type: none;
      display: inline-block;
      position: relative;

      &.menu-item-has-children {
        >a {
          &:after {
            content: "\f107";
            position: relative;
            font-family: $icon-font;
            margin-left: 5px;
            font-weight: 600;
            top: 0;
            font-size: 12px;
            display: inline-block;
            transition: 0.4s;
            transform: rotate(0deg);
          }
        }

        &:hover {
          >a {
            &:after {
              transform: rotate(180deg);
            }
          }
        }
      }

      &:last-child {
        margin-right: 0 !important;
      }

      &:first-child {
        margin-left: 0 !important;
      }

      &:hover {
        >ul.sub-menu {
          visibility: visible;
          opacity: 1;
          transform: scaleY(1);
          z-index: 9;
        }
      }
    }
  }

  ul.sub-menu {
    position: absolute;
    text-align: left;
    top: 100%;
    left: 0;
    background-color: #d2a530;
    visibility: hidden;
    min-width: 190px;
    width: max-content;
    left: -14px;
    opacity: 0;
    z-index: -1;
    border: 0;
    box-shadow: 0px 4px 15px rgba(1, 15, 28, 0.06);
    border-radius: 0;
    transform: scaleY(0);
    transform-origin: top center;
    transition: all 0.4s ease 0s;
    padding: 18px 20px 18px 18px;
    left: -27px;

    a {
      font-size: 16px;
      line-height: 30px;

      span {
        font-size: 12px;
        padding: 0px 5px;
        margin-left: 4px;
        background-color: $theme-color;
        color: $white-color;
        padding: 2px 5px;
        border-radius: 4px;
        position: relative;
        top: -1px;
      }
    }

    li {
      display: block;
      margin: 0 0;
      padding: 0px 9px;

      &.menu-item-has-children {
        >a:after {
          float: right;
          top: 1px;
          font-size: 16px;
          transform: none;
          transition: 0.4s;
        }

        &:hover {
          >a:after {
            opacity: 0;
            margin-right: 5px;
          }
        }
      }

      a {
        position: relative;
        padding-left: 0px;
        text-transform: capitalize;

        &.active {
          color: $theme-color;
        }

        &:before {
          content: "\f105";
          position: absolute;
          top: 5px;
          left: 10px;
          font-family: $icon-font;
          width: 11px;
          height: 11px;
          text-align: center;
          border-radius: 50%;
          display: inline-block;
          font-size: 18px;
          line-height: 1;
          color: $title-color;
          font-weight: 700;
          opacity: 0;
          transition: 0.4s;
        }

        &:hover {
          padding-left: 15px;

          &:before {
            opacity: 1;
            left: 0;
          }
        }
      }

      ul.sub-menu {
        left: 100%;
        right: auto;
        top: 0;
        margin: 0 0;
        margin-left: 20px;

        li {
          ul {
            left: 100%;
            right: auto;
          }
        }
      }
    }
  }
}

.simple-icon {
  border: none;
  background-color: transparent;
  color: $title-color;
  padding: 0;
  font-size: 22px;
  position: relative;

  .badge {
    padding: 0.35em 0.57em;
    font-size: 10px;
    font-weight: 500;
    top: -6px;
    right: 0;
    left: auto;
  }

  &:has(.badge) {
    padding-right: 12px;
  }
}

.header-button {
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px 40px;

  .th-btn {
    margin-left: 10px;
  }
}

.social-links {
  display: inline-flex;
  gap: 40px;
  align-items: center;
  line-height: normal;

  a {
    font-size: 32px;
    display: inline-block;
    color: $body-color;
    margin: 0;

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

    &:hover {
      color: $theme-color;
    }
  }
}

.header-logo {
  padding-top: 15px;
  padding-bottom: 15px;
}

.header-links {
  >ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
    align-items: center;
  }

  li {
    display: inline-block;
    position: relative;
    font-size: 18px;
    font-weight: 400;

    &:not(:last-child) {
      margin: 0 35px 0 0;
    }

    >i {
      margin-right: 10px;
      color: $theme-color;
    }
  }

  li,
  span,
  p,
  a {
    color: $white-color;
    font-family: $title-font;
  }

  a:hover {
    color: $theme-color;
  }

  b,
  strong {
    font-weight: 600;
    margin-right: 6px;
  }
}

.header-grid-info {
  ul {
    padding: 0;
    margin: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  li {
    display: inline-flex;
    gap: 15px;

    &:not(:last-child) {
      border-right: 1px solid $border-color;
      padding-right: 30px;
      margin-right: 30px;
    }

    .icon {
      font-size: 32px;
      color: $theme-color;
    }

    .header-grid-info-details {
      p {
        margin-bottom: 2px;
        font-family: $title-font;
        font-size: 18px;
        font-weight: 400;
        margin-top: -0.4em;
      }

      h6 {
        font-size: 20px;
        font-weight: 700;
        margin-bottom: -0.3em;
      }
    }
  }
}

/* Header 1 ---------------------------------- */
.header-layout1 {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;

  .sticky-wrapper {
    background: $white-color;

    &.sticky {
      .header-navbar-logo {
        margin-top: 25px;
      }
    }
  }

  .header-top {
    background: transparent;
    padding: 12px 0;
  }

  .social-links {
    position: relative;
    padding-right: 20px;

    &:after {
      content: "";
      position: absolute;
      left: -20px;
      right: 0;
      bottom: -14px;
      top: -15px;
      background: rgba(255, 255, 255, 0.1);
      z-index: -1;
    }
  }

  .header-navbar-logo {
    margin-top: 0;
    padding: 15px 0;
    padding-left: 60px;
    position: absolute;
    z-index: 3;
  }

  .menu-area {
    position: relative;

    .logo-bg {
      position: absolute;
      height: calc(100% + 80px);
      width: 14.2%;
      top: -50px;
      left: 0;
      background: $theme-color;
      border-radius: 0 0 5px 0;
    }
  }

  .navbar-right-desc {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;

    .navbar-right-desc-details {
      .title {
        font-size: 18px;
        font-weight: 400;
        display: block;
        margin-bottom: -2px;
      }

      .link {
        font-size: 20px;
        font-weight: 700;
        font-family: $title-font;
      }
    }

    i {
      margin-right: 10px;
      transform: rotate(-45deg);
    }

    a {
      color: $title-color;

      &:hover {
        color: $theme-color;
      }
    }
  }
}

@media screen and (min-width: 1200px) and (max-width: 1366px) {
  .main-menu a {
    font-size: 16px;
  }
}

@media (max-width: 992px) {
  .main-menu a {
    font-size: 15px !important;
  }
}
  @media (max-width: 1700px) {
    .header-layout1 .header-navbar-logo {
      padding-left: 35px;
    }

    .header-layout1 .header-top {
      .header-links {
        padding-left: 160px;
      }
    }

    .header-layout1 .menu-area {
      .main-menu {
        padding-left: 160px;
      }

      .logo-bg {
        width: 16%;
      }
    }
  }

  @include xxl {
    .header-layout1 .header-top .header-links {
      padding-left: 0;
    }

    .header-layout1 .menu-area .main-menu {
      padding-left: 200px;
    }

    .header-layout1 .menu-area .logo-bg {
      height: calc(100% + 10px);
      width: 17%;
      top: 0;
    }

    .header-layout1 .header-navbar-logo {
      margin-top: 13px;
    }

    .header-layout1 .sticky-wrapper.sticky .header-navbar-logo {
      margin-top: 15px;
    }
  }

  @include ml {
    .header-layout1 .menu-area .main-menu {
      padding-left: 160px;
    }

    .header-layout1 .header-navbar-logo {
      padding-left: 30px;
    }
  }

  @include xl {
    .header-layout1 .menu-area .main-menu {
      padding-left: 230px;
    }

    .header-layout1 .menu-area .logo-bg {
      width: 20%;
    }

    .main-menu a {
      font-size: 16px;
    }
  }

  @include lg {
    .header-layout1 .menu-area .logo-bg {
      display: none;
    }

    .header-layout1 .header-navbar-logo {
      display: none;
    }

    .header-layout1 .menu-area .main-menu {
      padding-left: 0;
    }

    .header-layout1 {
      .header-logo {
        background: $theme-color;
        padding: 25px;
        position: relative;

        &:after {
          content: "";
          position: absolute;
          width: 100%;
          height: calc(100% + 10px);
          top: 0;
          left: 0;
          background: $theme-color;
          border-radius: 0 0 5px 5px;
          z-index: -1;
        }
      }
    }
  }

  @include md {
    .header-layout1 .sticky-wrapper {
      padding: 0px 20px 0;
    }

    .header-layout1 .header-navbar-logo {
      margin-top: 0;

      img {
        max-width: none;
      }
    }

    .header-layout1 .sticky-wrapper.sticky {
      top: 0;
    }

    .header-layout1 .social-links {
      padding-right: 20px;
      padding-left: 20px;
    }

    .header-layout1 .social-links:after {
      left: 0;
    }
  }

  @include xs {
    .header-layout1 .sticky-wrapper {
      padding: 0;
    }
  }

  /* Header 2 ---------------------------------- */
  .header-layout2 {
    .header-top {
      padding: 15px 0;
    }

    .header-navbar-logo {
      display: none;
    }

    .menu-area {
      background: $theme-color;
    }

    .main-menu>ul>li>a {
      padding: 16px 0;
      color: $white-color;
    }

    .social-links {
      gap: 25px;

      a {
        color: $white-color;
      }
    }

    .sticky-wrapper.sticky {
      .header-navbar-logo {
        display: block;
      }

      .main-menu>ul>li>a {
        padding: 31px 0;
      }
    }
  }

  @include md {
    .header-layout2 {
      .header-navbar-logo {
        display: block;
      }

      .icon-btn {
        background: $white-color;
        color: $title-color;
      }
    }
  }

  @include xs {
    .header-layout2 .header-top {
      display: none;
    }
  }

  /* Header 3 ---------------------------------- */
  .header-layout3 {
    .sticky-wrapper {
      background: #d2a530;

      &.sticky {
        .header-navbar-logo {
          margin-top: 25px;
        }
      }
    }

    .header-top {
      background: $title-color;
      padding: 12px 0;
    }

    .social-links {
      position: relative;
      padding-right: 20px;

      &:after {
        content: "";
        position: absolute;
        left: -20px;
        right: 0;
        bottom: -14px;
        top: -15px;
        background: rgba(255, 255, 255, 0.1);
        z-index: -1;
      }
    }

    .header-navbar-logo {
      margin-top: 0;
      padding: 15px 0;
      padding-left: 60px;
      position: absolute;
      z-index: 3;
    }
  }

  /* Header 4 ---------------------------------- */
  .header-search-wrap {
    .search-form {
      display: flex;
      border: 1px solid $border-color;
      padding: 3px 3px 3px 0;
      border-radius: 5px;
      align-items: center;

      .form-control {
        background: transparent;
        height: 36px;
        border: transparent;
        border-right: 1px solid $border-color;
        min-width: 480px;

        @include ml {
          min-width: 280px;
        }

        @include lg {
          min-width: auto;
        }
      }

      .form-select {
        background-color: transparent;
        line-height: 36px;
        height: 36px;
        border: transparent;
        background-position: right 18px center;
        min-width: 250px;

        @include lg {
          min-width: auto;
        }
      }

      .icon-btn {
        flex: none;
      }
    }
  }

  .header-user-wrap {
    ul {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      gap: 20px;
      flex-wrap: wrap;
      align-items: center;
    }

    .simple-icon {
      display: flex;
    }
  }

  .header-grid-wrap {
    display: flex;
    gap: 18px;
    align-items: center;

    .header-grid-text {
      font-size: 11px;
      font-weight: 500;
      margin-bottom: 0;
      margin-top: -0.3em;
      display: block;
      opacity: 0.4;
    }

    .header-grid-title {
      font-size: 14px;
      font-weight: 500;
      margin-bottom: -0.3em;
      margin-top: -0.4em;

      a {
        color: inherit;

        &:hover {
          color: $theme-color;
        }
      }
    }
  }

  .header-layout4 {
    .header-top {
      padding: 20px 0 0;
    }

    .navbar-right-desc {
      display: flex;
      align-items: center;
      gap: 15px;
      flex-wrap: wrap;

      .icon {
        height: 50px;
        width: 50px;
        line-height: 50px;
        text-align: center;
        position: relative;

        &:after {
          content: "";
          position: absolute;
          inset: 0;
          border-radius: 50%;
          background: $theme-color;
          opacity: 0.1;
        }
      }

      .navbar-right-desc-details {
        .title {
          font-size: 18px;
          font-weight: 400;
          display: block;
          margin-bottom: -2px;
        }

        .link {
          font-size: 20px;
          font-weight: 700;
          font-family: $title-font;
        }
      }

      i {
        margin-right: 10px;
        transform: rotate(-45deg);
      }

      a {
        color: $title-color;

        &:hover {
          color: $theme-color;
        }
      }
    }

    .menu-area {
      .form-select {
        height: 48px;
        line-height: 48px;
      }

      .form-group {
        >i {
          right: 25px;
          top: 18px;
        }
      }
    }

    .header-sticky-logo {
      display: none;
    }

    .sticky-wrapper.sticky {
      .header-sticky-none {
        display: none !important;
      }

      .header-sticky-logo {
        display: block;
      }
    }

    @include lg {
      .sticky-wrapper.sticky {
        .header-lg-sticky-none {
          display: none !important;
        }
      }
    }

    @include md {
      .header-search-wrap .search-form {
        .form-select {
          display: none;
        }
      }

      .sticky-wrapper.sticky .header-sticky-logo {
        display: none;
      }
    }
  }

  .pl-135 {
    padding-left: 135px;
  }

  @media(max-width:1440px) {
    .pl-135 {
      padding-left: 150px !important;
    }
  }

  @media(max-width:1024px) {
    .pl-135 {
      padding-left: 0px !important;
    }
  }

  @media(max-width:768px) {
    .pl-135 {
      padding-left: 0px !important;
    }
  }

  @media(max-width: 500px) {
    .pl-135 {
      padding-left: 0px !important;
    }
  }

  @media only screen and (max-width: 1200px) and (min-width: 992px) {
    .main-menu>ul>li {
      margin: 0 7px;
    }
  }