header.main-header {  
  background-color: var(--bg-color);
  padding: 0;
  transition: all 0.4s ease 0s;
  height: 90px;
  display: grid;
  align-items: center;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.05);
}

.navbar .navbar-brand {
  color: var(--primary);
  font-size: 26px;
  font-weight: 700;
}

header .navbar .nav-link {
  color: var(--title-color);
  padding: 0;
}

header .navbar ul li {
  padding: 0 15px;
}
nav ul li a,
nav ul li a:after,
nav ul li a:before {
  transition: all .5s; }
  
header .navbar .nav-item .nav-link {
  padding: 14px 0;
}

a.nav-link:before,
a.dropdown-item:before {
  position: absolute;
  content: '';
  background: var(--primary);
  width: 0px;
  height: 2px;
  bottom: 13px;
}
.fixed-top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
  }

.fixed-bottom {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1030; }
.navbar-expand-lg .navbar-nav .nav-link:hover:before,
a.dropdown-item:hover:before {
  width: 20px;
}
a.dropdown-item {
  font-weight: 400;
  font-size: 16px;
  color: var(--title-color);
  position: relative;
  padding-top: 0;
  padding-bottom: 14px; }

a.dropdown-item:hover {
  color: var(--primary); }

.navbar-expand-lg .navbar-nav .dropdown-menu {
  transform: translateX(-50px); }

.navbar-expand-lg .navbar-nav .dropdown-menu:before {
  content: '';
  width: 14px;
  height: 14px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  display: block;
  border-right: none;
  border-bottom: none;
  transform: translateX(-50%) rotateZ(45deg);
  position: absolute;
  top: -7px;
  left: 49%;
  z-index: 1010; }
.navbar-expand-lg .navbar-nav .nav-item {
  padding: 0 15px;
  transition: all 0.5s ease;
  position: relative;
}

.navbar-expand-lg .navbar-nav .nav-item.active .nav-link {
  color: var(--primary);
}

.navbar .search-right .search-search span.fa {
  display: inline-block;
  color: var(--title-color);
  font-size: 15px;
  opacity: .7;
  width: 40px;
  height: 40px;
  line-height: 38px;
  background: var(--light-bg-color);
  text-align: center;
  border-radius: 50px;
  border: 1px solid var(--border-color);
}

header .navbar .search-right .search-search span.fa:hover {
  color: var(---title-color);
  opacity: 1;
}

.search-right .popup form input[type="search"] {
  font-style: normal;
  font-weight: normal;
  font-size: 16px;
  line-height: 25px;
  color: var(--text-color);
  height: 55px;
  padding: 15px 20px 12px;
  background: var(--bg-color);
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 0;
  border-bottom-left-radius: 6px;
  border-top-left-radius: 6px;
  border-right: none;
}

.search-right .popup form button {
  font-size: 17px;
  line-height: 28px;
  text-align: center;
  color: #F5F9FC;
  font-weight: 500;
  height: 55px;
  border: none;
  background: var(--primary);
  padding: 0 25px;
  border-left: none;
  border-radius: initial;
  border-bottom-right-radius: 6px;
  border-top-right-radius: 6px;
}

.search-right .popup form button:hover {
  opacity: .8;
}

.search-right .popup form input:focus {
  outline: none;
}

.search-right .pop-overlay {
  position: fixed;
  top: 0px;
  left: 0;
  right: 0;
  transition: opacity 0ms;
  visibility: hidden;
  opacity: 0;
  z-index: 99;
  background: #000000ba;
  box-shadow: 1px 1px 4px 0 rgba(0, 0, 0, 0.1);
  height: 100%;
  width: 100%;
}

.search-right .pop-overlay:target {
  visibility: visible;
  opacity: 1;
}

.search-right .popup {
  position: relative;
  margin: 0rem auto;
  padding: 15px;
  top: 50%;
  max-width: 600px;
}

.search-right .popup .close {
  position: absolute;
  right: 20px;
  top: -50px;
  transition: all 200ms;
  font-size: 30px;
  text-decoration: none;
  color: #fff;
  opacity: 0.7;
}

.search-right .popup .close:hover {
  opacity: 1;
}



/* DARK THEME */



/*-- toggle switch --*/

.theme-switch-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
}
.theme-switch-wrapper i {
  font-size: 1.2rem;
}

#switchButton .fa-sun {
  display: none;
}

#switchButton .fa-moon {
  display: block;
  color: black;
}

.dark #switchButton .fa-sun {
  display: block;
  color: white;
}

.dark #switchButton .fa-moon {
  display: none;
}


/* RESPONSIVE */

button.navbar-toggler .icon-close {
  display: block; }

button.navbar-toggler .icon-expand {
  display: none; }  

button.navbar-toggler.collapsed .icon-close {
  display: none; }

button.navbar-toggler.collapsed .icon-expand {
  display: block;
  }
  .navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    content: "";
    background: no-repeat center center;
    background-size: 100% 100%; }

@media only screen and (max-width: 991px) {
  a.nav-link:before,
  a.dropdown-item:before {
    bottom: 5px; }
  .navbar .navbar-brand img {
    max-width: 140px; }
  .navbar-toggler {
    border: 0 none;
    font-size: 24px; }
  .navbar-nav {
    -webkit-animation-name: none;
    animation-name: none;
    float: left;
    text-align: center;
    width: 100%;
    padding: 20px 0; }
  .navbar-nav:last-child {
    border: 0; }
  .navbar-expand-lg .navbar-nav .nav-item {
    -webkit-animation-name: none;
    animation-name: none;
    padding: 0; }
  .navbar-expand-lg .navbar-nav.nav_btn > li {
    padding-bottom: 10px; }
  .navbar-nav .dropdown-menu {
    text-align: center; }
  .navbar-nav .dropdown-menu .dropdown-menu {
    background-color: rgba(0, 0, 0, 0.3); }
  .navbar-expand-lg .navbar-nav .nav-item .nav-link.active::before {
    bottom: 0; }
  .navbar-expand-lg .navbar-nav .nav-link {
    display: inline-block;
    padding: 8px 0;
    text-align: center; }
  header.main-header {
    height: auto;
    padding: 15px 0; }
  .navbar-expand-lg .navbar-nav .dropdown-menu {
    transform: translateX(0px); }
  .phone {
    text-align: center; }
  .phone a {
    font-size: 18px;
    color: #fff;
    font-weight: 500; }
  .phone a span {
    color: #fff; }
  header.nav-fixed {
    height: auto;
    padding: 10px 0; }
  .navbar-expand-lg .navbar-nav .nav-link {
    display: block; }
  .navbar-dark .navbar-toggler-icon {
    background-image: none;
    padding: 0;
    width: 34px;
    height: 34px;
    display: inline-block;
    background: var(--primary);
    border-radius: 4px;
    text-align: center; }
  .navbar-toggler-icon.fa {
    line-height: 1.2em;
    color: #fff;
    line-height: 34px;
    background-color: var(--primary);
    border-radius: 5px;
    }
  .navbar-toggler {
    padding: 0rem 0rem !important; } 
  }
