.navigation-clean {
  background: #fff;
  padding-top: .75rem;
  padding-bottom: .75rem;
  color: #333;
  border-radius: 0;
  box-shadow: none;
  border: none;
  border-bottom: 1px solid #fff;
  margin-bottom: 0;
  height:130px;
}

/* Custom nav container - full width with centered logo */
.nav-container {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    position: relative;
    padding: 0 20px;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Left links: take up left half, center content within that half */
.nav-left {
    flex: 1;
    justify-content: center;
    padding-right: 80px; /* Buffer for logo */
}

/* Right links: take up right half, center content within that half */
.nav-right {
    flex: 1;
    justify-content: center;
    padding-left: 80px; /* Buffer for logo */
}

.navbar-mobile {
    display: none;
}

@media (max-width: 1199px) {
    .navigation-clean {
        display:none;
    }
    .navbar-mobile {
        display: flex;
    }
}


.navbar-brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); /* Center the brand horizontally and vertically */
}

.nav-logo {
    max-height: 90px;
    width: auto;
}

 .navbar {
    transition: background-color 0.3s, padding 0.3s;
}
.navbar .navbar-brand img {
    transition: src 0.3s; /* Smooth transition for logo change */
}

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

.navbar.scrolled {
    background-color: #fff; /* white background on scroll */
}

@media (min-width:768px) {
  .navigation-clean {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}

.navigation-clean .navbar-brand {
  font-weight: bold;
  color: inherit;
}

.navigation-clean .navbar-brand:hover {
  color: #222;
}

.navigation-clean .navbar-toggler {
  border-color: #ddd;
}

.navigation-clean .navbar-toggler:hover, .navigation-clean .navbar-toggler:focus {
  background: none;
}

.navigation-clean .navbar-toggler {
  color: #888;
}

.navigation-clean.navbar-light .navbar-nav .nav-link.active, .navigation-clean.navbar-light .navbar-nav .nav-link.active:focus, .navigation-clean.navbar-light .navbar-nav .nav-link.active:hover {
  color: #8f8f8f;
  box-shadow: none;
  background: none;
  pointer-events: none;
}

.navigation-clean.navbar .navbar-nav .nav-link {
  padding-left: 14px;
  padding-right: 14px;
  white-space: nowrap;
}

/* Reduce padding progressively as nav gets crowded */
@media (max-width: 1500px) {
  .navigation-clean.navbar .navbar-nav .nav-link {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 1400px) {
  .navigation-clean.navbar .navbar-nav .nav-link {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 0.9rem;
  }
}

@media (max-width: 1300px) {
  .navigation-clean.navbar .navbar-nav .nav-link {
    padding-left: 6px;
    padding-right: 6px;
    font-size: 0.85rem;
  }
}


.navigation-clean.navbar-light .navbar-nav .nav-link {
  color: rgb(var(--brand-color));
  text-transform: uppercase;
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
}

.navigation-clean.navbar-light .navbar-nav .nav-btn {
    background-color: rgb(var(--brand-color));
    color: #fff;
}


.navigation-clean.navbar-light .navbar-nav .nav-link:focus, .navigation-clean.navbar-light .navbar-nav .nav-link:hover {
  color: rgb(var(--hover-color)) !important;
  background-color: transparent;
}
.nav-btn:hover {
  color: rgb(var(--brand-color)) !important;
  background-color: #fff!important;
  border: 1px solid rgb(var(--brand-color));
  margin: -1px;
}

.navigation-clean .navbar-nav > li > .dropdown-menu {
  margin-top: -5px;
  box-shadow: none;
  background-color: #fff;
  border-radius: 2px;
}

.navigation-clean .dropdown-menu .dropdown-item:focus, .navigation-clean .dropdown-menu .dropdown-item {
  line-height: 2;
  color: #37434d;
}

.navigation-clean .dropdown-menu .dropdown-item:focus, .navigation-clean .dropdown-menu .dropdown-item:hover {
  background: #eee;
  color: inherit;
}


/* Full-screen menu (for mobile) */
.full-screen-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(var(--brand-color));
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: max-height 0.3s ease;
  z-index: 99999;
  max-height: 0;
  overflow-y: auto;
  padding: 60px 20px 20px 20px;
  box-sizing: border-box;
}

.full-screen-menu.show {
  display: flex;
  max-height: 100vh;
}

.full-screen-menu .nav-link {
  color: #fff !important;
  font-size: 24px;
  margin: 10px 0;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  font-size: 60px;
  background: none;
  border: none;
  line-height: 1;
  cursor: pointer;
}

/* Small screen adjustments for mobile menu */
@media (max-width: 400px) {
  .full-screen-menu .nav-link {
    font-size: 20px;
    margin: 8px 0;
  }

  .close-btn {
    font-size: 48px;
    top: 15px;
    right: 15px;
  }
}

@media (max-height: 600px) {
  .full-screen-menu .nav-link {
    font-size: 18px;
    margin: 6px 0;
  }
}
