/*----------------------------------------------
    # Nav bar
----------------------------------------------*/
.navbar.navbar-area.white .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.50)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}
.navbar.navbar-area .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 0.50)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

.mobile-logo {
  display: none;
}

@media only screen and (max-width: 991px) {
  .mobile-logo {
    display: block;
  }
  .desktop-logo {
    display: none !important;
  }
}

.logo-wrapper {
  .site-title {
    font-size: 30px;
    line-height: 40px;
    font-weight: 700;
    font-family: var(--heading-font);
  }
}

.navbar-area {
  padding: 0;
  z-index: 9;
  border-bottom: 1px solid #066ccb14;

  &.nav-absolute {
    position: absolute;
    left: 0;
    width: 100%;
    top: 0px;
    z-index: 1;
  }

  &.navigation-style-01 {

    .custom-container {
      background-color: transparent;
      box-shadow: none;
      border-radius: 0;
      padding: 0;
      padding-left: 20px;

      .logo-wrapper {
        max-width: 240px;
      }

      .nav-right-content {
        display: flex;
        align-items: center;

        ul {
          li {
            color: var(--main-color-one);

            + li {
              margin-left: 10px;
            }
          }
        }
      }

      .navbar-collapse {
        .navbar-nav {
          text-align: center;

          li {
            &.current-menu-item {
              a {
                color: var(--main-color-one);
              }

              &:before {
                color: var(--main-color-one);
              }
            }

            &.menu-item-has-children {
              z-index: initial;

              &:before {
                color: var(--main-color-one);
              }

              .sub-menu {
                li {
                  a {
                    color: var(--paragraph-color);

                    &:hover {
                      color: var(--main-color-one);
                    }
                  }
                }

                .menu-item-has-children {
                  &:hover > .sub-menu {
                    li {
                      &:hover {
                        &:before {
                          color: $white;
                        }
                      }

                      a {
                      }
                    }
                  }
                }
              }
            }

            a {
              @include transition($transition);
              color: #19232D;
            }

            &:hover {
              &.menu-item-has-children {
                &:before {
                  color: var(--main-color-one);
                }
              }

              a {
                color: var(--main-color-one);
              }
            }
          }
        }
      }
    }
  }

  .custom-container {
    background-color: #fff;
    padding: 0 15px;
    

    .nav-right-content {
      display: flex;
      align-items: center;

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

      ul {
        margin: 0;
        padding: 0;
        list-style: none;
        margin-left: 15px;
        display: flex;

        li {
          display: inline-block;
          color: #19232D;

          a {
            color: #19232D;
            @include transition($transition);

            &:hover {
              color: var(--main-color-one);

              i {
                color: var(--main-color-one);
              }
            }

            i {
              color: #19232D;
              padding-right: 6px;
              font-weight: 800;
            }
          }

          &.search {
            cursor: pochakra petch;
            @include transition($transition);

            &:hover {
              color: var(--main-color-one);
            }
          }

          &.nav-btn {
            .btn-boxed {
              font-weight: 600;
              text-transform: capitalize;
              border-radius: 5px;
              background-color: var(--main-color-one);
              &:hover {
                background-color: var(--main-color-one);
              }
            }
          }
        }
      }
    }

    .navbar-brand {
      .site-title {
        font-weight: 700;
        font-size: 30px;
        font-family: var(--heading-font);
        line-height: 90px;
        color: var(--heading-color);
      }
    }

    .navbar-collapse {
      .navbar-nav {
        display: block;
        width: 100%;
        text-align: right;

        li {
          display: inline-block;
          font-family: var(--heading-font);
          text-transform: capitalize;
          font-weight: 500;
          line-height: 80px;

          + li {
            margin-left: 18px;
          }

          &.current-menu-item {
            a {
              color: var(--main-color-one);
            }
          }

          &.menu-item-has-children {
            position: relative;
            z-index: 0;

            &:hover > .sub-menu {
              visibility: visible;
              opacity: 1;
            }

            .sub-menu {
              position: absolute;
              text-align: left;
              min-width: 250px;
              margin: 0;
              padding: 0;
              list-style: none;
              left: 0;
              top: 100%;
              box-shadow: 0 0 15px 0 rgba(#000, .05);
              background-color: #fff;
              z-index: 9;
              visibility: hidden;
              opacity: 0;
              @include transition($transition);

              li {
                display: block;
                margin-left: 0;
                line-height: 22px;
                font-size: 14px;

                + li {
                  border-top: 1px solid rgba(186, 151, 120, 0.16);
                }

                a {
                  display: block;
                  padding: 12px 15px;
                  white-space: nowrap;
                  color: var(--paragraph-color);
                  @include transition($transition);
                  font-size: 15px;

                  &:hover {
                    color: var(--main-color-one) !important;
                    padding-left: 15px;
                  }

                  &:before {
                    display: none;
                  }
                }
              }

              .menu-item-has-children {
                position: relative;
                z-index: 0;
                padding-right: 0px;

                > .sub-menu {
                  left: -240px;
                  top: 0;
                  margin-bottom: 0;

                  .sub-menu {
                    .sub-menu {
                      left: auto;
                      right: 100%;
                    }
                  }
                }

                &:hover > .sub-menu {
                  visibility: visible;
                  opacity: 1;

                  li {
                    &:hover {
                      &:before {
                        color: $white;
                      }
                    }

                    a {
                    }
                  }
                }
              }
            }
          }

          a {
            @include transition($transition);
            display: block;
            font-size: 16px;
          }
        }
      }
    }
  }

  .nav-container {
    max-width: 1500px !important;
  }
}

.nav-right-part {
    .navbar-phone {
        height: 82px;
        color: #fff;
        border-radius: 0;
        position: relative;
        display: inline-block;
        background: var(--main-color-one);
        padding: 15px 25px 11px 85px;
        .icon {
            position: absolute;
            left: 20px;
            background: rgba(255, 255, 255, 0.1);
            display: inline-block;
            height: 50px;
            width: 50px;
            line-height: 47px;
            text-align: center;
            border-radius: 50%;
            top: 50%;
            transform: translateY(-50%)
        }
        span {
            font-weight: 500;
            color: #fff;
            display: inline-block;
            margin-bottom: 2px;
            font-size: 15px;
        }
        h5 {
            font-size: 16px;
            font-weight: 600;
            color: #fff;
            margin-bottom: 0;
        }
    }
    a {
        margin-left: 15px;
    }
    .search-bar-btn {
        margin-top: -22px;
    }
    .search-bar {
        &:hover {
            background: var(--main-color-one);
            border: 1px solid var(--main-color-one);
        }
    }
    .btn-base {
        svg {
            margin-top: 22px;
        }
    }
}
.nav-right-part-desktop {
    margin-left: 20px;
}
.nav-right-part-mobile {
    display: none;
}

@media only screen and (max-width: 991px) {
  .navbar-area {
    &.navigation-style-02 {
      .custom-container {
        padding: 20px 15px;
        background-color: var(--secondary-color);

        &.style-01 {
          background-color: #fff;
        }

        .navbar-toggler {
          background-color: #fff;
        }

        .navbar-collapse {
          .navbar-nav {
            padding: 0;

            li {
              &.menu-item-has-children {
                .sub-menu {
                  li {
                    a {
                      background-color: transparent;
                      color: var(--main-color-one);
                    }
                  }
                }
              }
            }
          }
        }
      }
    }

    &.navigation-style-01 {
      .custom-container {
        padding: 22px 10px;

        .responsive-mobile-menu {
          .navbar-toggler {
            background-image: none;
            box-shadow: none;
          }
        }

        .navbar-collapse {
          .navbar-nav {
            text-align: left;

            li {
              line-height: 30px;

              &.current-menu-item {
                a {
                  color: var(--main-color-one);
                }

                &.menu-item-has-children {
                  &:before {
                    color: var(--main-color-one);
                    z-index: -1;
                  }
                }
              }

              &.menu-item-has-children {
                z-index: initial;

                &:before {
                  color: var(--main-color-one);
                }

                .sub-menu {
                  li {
                    a {
                      background-color: transparent;
                      color: var(--heading-color);

                      &:hover {
                        background-color: transparent;
                        color: #fff;
                      }
                    }
                  }

                  .menu-item-has-children {
                    &:hover > .sub-menu {
                      li {
                        &:hover {
                          &:before {
                            color: #656565;
                          }
                        }

                        a {
                        }
                      }
                    }
                  }
                }
              }

              a {
                @include transition($transition);
                color: var(--heading-color);
              }

              &:hover {
                &.menu-item-has-children {
                  &:before {
                    color: var(--main-color-one);
                    z-index: -1;
                  }
                }

                a {
                  color: var(--main-color-one);
                }
              }
            }
          }
        }
      }
    }

    .custom-container {
      position: relative;
      z-index: 9999;
      min-height: 80px;
      padding: 40px 10px;

      .responsive-mobile-menu {
        display: block;
        position: relative;
        width: 100%;

        .navbar-toggler {
          position: absolute;
          right: 15px;
          top: 50%;
          @include transform(translateY(-50%));
          border: 1px solid rgba(0, 0, 0, .2);
          background-color: #fff;
        }
      }

      .navbar-brand {
        display: block;

        .navbar-toggler {
          position: absolute;
          right: 10px;
          border: 1px solid rgba(#111, .6);
        }
      }

      .navbar-collapse {
        .navbar-nav {
          display: block;
          margin-top: 22px;

          li {
            display: block;
            text-align: left;
            line-height: 30px;
            padding: 10px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.17);

            &:last-child {
              border-bottom: none;
            }

            + li {
              margin-left: 0;
            }

            &.menu-item-has-children {
              &:before {
                top: 25px;
                right: 20px;
              }

              &:hover {
                > .sub-menu {
                  visibility: visible;
                  opacity: 1;
                  margin-top: 10px;
                  margin-bottom: -10px;
                }
              }

              .sub-menu {
                position: initial;
                width: 100%;
                border-top: none;
                -webkit-box-shadow: none;
                box-shadow: none;
                margin-left: 0;
                height: auto;
                overflow: hidden;
                max-height: 235px;
                overflow-y: scroll;
                background-color: transparent;
                padding: 0;
                border-bottom: none;
                display: none;
                -webkit-transition: none;
                transition: none;
                visibility: visible;
                opacity: 1;

                .sub-menu .menu-item-has-children:before {
                  content: "\f067";
                }

                li {
                  &.menu-item-has-children {
                    &:hover {
                      &:before {
                        color: var(--main-color-one);
                      }
                    }
                  }

                  padding: 0;

                  + li {
                    border-top: none;
                  }

                  &:first-child {
                    border-top: 1px solid #f1f1f1;
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

.navbar.navbar-area.navbar-expand-lg.navigation-style-01.navbar-default .custom-container .navbar-collapse .navbar-nav li.menu-item-has-children .sub-menu li:before {
  right: 20px;
}
