/* Keep the address centered in the top bar at desktop widths. */

/* Keep the primary navigation below the contact strip on initial load.
   The template positions it absolutely at top: 0, which otherwise makes it
   overlap the strip. Its scrolled state remains fixed through
   .background-header from the template stylesheet. */
.contact-topbar {
  position: relative !important;
}

.header-area:not(.background-header) {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  clear: both;
}

@media (min-width: 1200px) {
  .contact-topbar .container-fluid {
    position: relative;
  }

  .contact-topbar .topbar-address {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0 !important;
    text-align: center;
    max-width: 40%;
  }
}


/* Add This CSS to make the black strip (above navbar jo h) visible on mobile devices */

/* @media (max-width: 991.98px) {
  .contact-topbar .navbar-collapse {
    display: block !important;
  }

  .contact-topbar .navbar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 767.98px) {
  .contact-topbar .navbar-nav > .nav-item:first-child,
  .contact-topbar .navbar-nav > .topbar-address {
    flex: 0 0 100%;
    margin-right: 0 !important;
    text-align: center;
  }

  .contact-topbar .topbar-address .nav-link {
    margin-right: 0 !important;
    white-space: normal;
    font-size: 14px;
  }
} */

.header-area .main-nav .nav li:nth-child(6) a.contact-nav-link:hover,
.background-header .main-nav .nav li:nth-child(6) a.contact-nav-link:hover,
.header-area .main-nav .nav li:nth-child(6) a.contact-nav-link:focus-visible {
  color: #4b8ef1 !important;
}

.header-area .main-nav .nav .dropbtn.active,
.header-area .main-nav .nav .dropbtn:hover {
  color: #4b8ef1;
}

/* Align the mobile logo with the menu and reserve room for the toggle. */
@media (max-width: 767px) {
  .header-area .main-nav {
    margin-right: 0;
  }

  .header-area .main-nav .logo {
    display: flex;
    align-items: center;
    width: calc(100% - 60px);
    max-width: 300px;
    height: 100px;
    margin: 0 !important; /* Override the Bootstrap mt-3 utility. */
    line-height: normal;
  }

  .header-area .main-nav .logo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    object-position: left center;
  }

  .header-area .main-nav .menu-trigger {
    top: 33px;
  }
}
