.headbar {
  header {
    background: #0c1013;

    .top-head {
      color: #fff;
      padding: 3px 0;

      a, .btn-link {
        color: #fff;
        font-size: 16px;
        font-size: 1rem;
        text-decoration: none;

        &:hover, &:focus, &:active {
          color: $buttercup-color;
        }
      }

      .bfh-countries, .bfh-selectbox {
        display: inline-block;
        margin-right: 30px;

        .bfh-selectbox-toggle {
          background-color: transparent;
          border: none;
          color: #fff;
          width: initial;
          -webkit-box-shadow: none;
          box-shadow: none;
          line-height: 31px;
          padding: 0;
          height: auto;

          .bfh-selectbox-option {
            height: auto;
          }

          .selectbox-caret {
            display: inline-block;
            margin-left: 0.255em;
            vertical-align: 0.255em;
            content: "";
            border-top: 0.3em solid;
            border-right: 0.3em solid transparent;
            border-bottom: 0;
            border-left: 0.3em solid transparent;
            margin-top: 1rem;
          }
        }
      }

      .bfh-selectbox {
        .bfh-selectbox-options {
          ul {
            li {
              > a {
                font-size: 16px;
                font-size: 1rem;
                text-align: left;
              }
            }
          }
        }
      }

      ul {
        &.right {
          float: right;
          display: -webkit-box;
          display: -ms-flexbox;
          display: flex;
          list-style: none;
          margin-bottom: 0;
          padding-left: 0;

          li {
            color: #fff;
            margin-right: 60px;
            line-height: 1;
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -webkit-box-align: center;
            -ms-flex-align: center;
            align-items: center;

            .mi {
              font-size: 0.8rem;
            }

            .dropdown-toggle {
              color: #fff;
              padding: 0 0;
              font-size: 17px;
              font-size: 1.09rem;
            }

            .dropdown-menu {
              background-color: #0c1013;
              color: #fff;
              padding-left: 10px;
              padding-right: 10px;
              margin-left: -20px !important;

              a {
                &.dropdown-item {
                  font-size: 17px;
                  font-size: 1.09rem;
                  padding: 7px 20px;

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

    .top-nav {
      font-family: $font-family-poppins;
      font-weight: $font-weight-medium;
      background: $primary-color;

      &.header-sticky {
        width: 100%;

        &.sticky {
          -webkit-transition: all 300ms ease-in 0s;
          transition: all 300ms ease-in 0s;
          -webkit-box-shadow: 0 8px 6px -6px rgba(0, 0, 0, 0.4);
          box-shadow: 0 8px 6px -6px rgba(0, 0, 0, 0.4);
          left: 0;
          position: fixed;
          right: 0;
          top: 0;
          z-index: 1049;

          .logo {
            height: 60px;
          }
        }
      }

      .logo {
        padding-bottom: 10px;
        padding-top: 10px;
        height: 60px;
      }

      .navbar {
        .navbar-toggler {
          padding: 0 0;
          outline: none;

          .mi {
            color: #fff;
            font-size: 25px;
            font-size: 1.56rem;
          }
        }
      }

      ul {
        li {
          list-style: none;
          position: relative;

          a {
            &.nav-link {
              color: #fff;
              text-transform: uppercase;
              padding: 0.5rem 1.8rem;
              font-size: 18px;
              font-size: 1.12rem;
            }

            &:hover, &:active {
              color: $buttercup-color;
            }
          }

          &.has-sub {
            .submenu {
              position: absolute;
              left: 0;
              background-color: $primary-color;
              opacity: 0;
              visibility: hidden;
              z-index: 1;
              -webkit-transition: all .5s;
              -moz-transition: all .5s;
              -ms-transition: all .5s;
              -o-transition: all .5s;
              transition: all .5s;
              width: 250px;
              padding: 1rem 0;

              li {
                a {
                  text-transform: capitalize;
                  font-size: 18px;
                  font-size: 1.05rem;
                  padding: 0.2rem 1.8rem 0.3rem 1.8rem;
                  color: #fff;

                  &:hover, &:active {
                    color: $buttercup-color;
                  }
                }

              }
            }

            &:hover {
              a {
                color: $buttercup-color;
              }

              .submenu {
                top: 100%;
                opacity: 1;
                z-index: 1000;
                visibility: visible;
              }
            }
          }

          &.has-sub0 {
            .submenu0 {
              position: absolute;
              top: 0;
              left: 100%;
              background-color: $primary-color;
              opacity: 0;
              visibility: hidden;
              z-index: 1;
              -webkit-transition: all .5s;
              -moz-transition: all .5s;
              -ms-transition: all .5s;
              -o-transition: all .5s;
              transition: all .5s;
              width: 250px;
              padding: 0;

              li {
                a {
                  text-transform: capitalize;
                  font-size: 18px;
                  font-size: 1.05rem;
                  padding: 0.2rem 1.8rem 0.3rem 1.8rem;
                  color: #fff;

                  &:hover, &:active {
                    color: $buttercup-color;
                  }
                }
              }
            }

            &:hover {
              a {
                color: $buttercup-color;
              }

              .submenu0 {
                opacity: 1;
                z-index: 1000;
                visibility: visible;
              }
            }
          }
        }
      }

      .navbar-mobile {
        .navbar-brand {
          padding-top: 5px;
          padding-bottom: 5px;

          .logo {
            height: 35px;
            padding-top: 0;
            padding-bottom: 0;
          }
        }

        .navbar-toggler {
          padding: 0 0;
        }

        .navbar-collapse {
          background: #0c1013;
        }

        ul {
          &.navbar-nav {
            padding: 0rem 1.5rem 0rem 1.5rem;
          }

          li {
            a {
              padding: 0.3rem 0;
              border-bottom: solid 1px $primary-color;
              font-weight: 400;
              font-size: 14px;
              font-size: 0.87rem;
            }

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

            &.has-sub {
              a {
                &.parent {
                  &:after {
                    content: "\EAA9";
                    font-family: 'micon';
                    font-weight: 400;
                    -moz-osx-font-smoothing: grayscale;
                    -webkit-font-smoothing: antialiased;
                    display: inline-block;
                    font-style: normal;
                    font-variant: normal;
                    text-rendering: auto;
                    font-size: 0.55rem;
                    margin-left: 7px;
                  }
                }
              }

              &.active {
                a {
                  &.parent {
                    &:after {
                      content: "\EAAD";
                    }
                  }
                }
              }

              .submenu {
                background: none;
                width: 100%;
                position: relative;
                visibility: visible;
                opacity: 1;
                padding-bottom: 0;
                padding-top: 0;
                display: none;
                -webkit-transition: none;
                -moz-transition: none;
                -ms-transition: none;
                -o-transition: none;
                transition: none;

                li {
                  a {
                    border-bottom: none;
                    font-size: 14px;
                    font-size: 0.87rem;
                    padding: 0.1rem 1rem 0.1rem 1.8rem;
                  }
                }
              }
            }

            &.has-sub0 {
              a {
                &.parent-sub0 {
                  &:after {
                    content: "\EAA9";
                    font-family: 'micon';
                    font-weight: 400;
                    -moz-osx-font-smoothing: grayscale;
                    -webkit-font-smoothing: antialiased;
                    display: inline-block;
                    font-style: normal;
                    font-variant: normal;
                    text-rendering: auto;
                    font-size: 0.55rem;
                    margin-left: 7px;
                  }
                }
              }

              &.active {
                a {
                  &.parent-sub0 {
                    &:after {
                      content: "\EAAD";
                    }
                  }
                }
              }

              .submenu0 {
                left: 0.5rem;
                background: none;
                width: 100%;
                position: relative;
                visibility: visible;
                opacity: 1;
                padding-bottom: 0;
                padding-top: 0;
                display: none;
                -webkit-transition: none;
                -moz-transition: none;
                -ms-transition: none;
                -o-transition: none;
                transition: none;

                li {
                  a {
                    border-bottom: none;
                    font-size: 14px;
                    font-size: 0.87rem;
                    padding: 0.1rem 1rem 0.1rem 1.8rem;
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

@media(max-width: 1100px) {
  .headbar {
    header {
      .top-head {
        ul {
          &.right {
            li {
              margin-right: 30px;
            }
          }
        }
      }
    }
  }
}

@media(min-width: 767px) and (max-width: 1024px) {
  .headbar {
    header {
      .top-nav {
        ul {
          li {
            a {
              &.nav-link {
                font-size: 16px;
                font-size: 1rem;
                padding: 0.5rem 1rem;
              }
            }
          }
        }
      }
    }
  }
}

@media (min-width: 768px) {
  .headbar {
    header {
      .top-nav {
        ul {
          li {
            &.has-sub {
              .submenu {
                li {
                  &:hover {
                    background: $secondary-color;
                  }
                }
              }
            }

            &.has-sub0 {
              .submenu0 {
                li {
                  &:hover {
                    background: $secondary-color;
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

@media(max-width: 767px) {
  .headbar {
    header {
      .top-head {
        padding: 0 0;

        .left-nav {
          text-align: left !important;

          .bfh-selectbox {
            .bfh-selectbox-toggle {
              font-size: 14px;
              font-size: 0.8rem;
              line-height: 20px;
              padding-top: 3px;

              .selectbox-caret {
                margin-top: 0.6rem;
              }
            }
          }
        }

        ul {
          &.right {
            float: none;
            align-items: center;
            justify-content: center;
            padding-left: 0;

            li {
              margin-right: 0;
              padding: 5px 0;
              border-right: none;
              flex-basis: 0;
              flex-grow: 1;
              max-width: 100%;

              a {
                margin: 0 auto;

                .mi {
                  font-size: 16px;
                  font-size: 1rem;
                }
              }
            }
          }
        }
      }
    }
  }
}
