/* Unique CSS Reset to prevent external global stylesheet conflicts */
.custom-navbar, .custom-navbar * {
  box-sizing: border-box;
  margin: 0;
  padding: 0; 
}

.custom-navbar {
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 9999; /* Keeps menu above all standard page elements */
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
}

.nav-logo a {
  color: #ffffff;
  font-size: 17.536px;
  font-weight: bold;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
}

.nav-item {
  margin-left: 20px;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 17.536px;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #00bcd4; /* Accent color on hover */
}

/* Hide hamburger menu button on desktop screen sizes */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
}
#js-nav-menu li {
  padding: 0 15px;
}
.hamburger-bar {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #111;
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}
#js-nav-menu li a.active {
  color: #ff3c1e;
}
 #js-nav-menu li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--circuit-teal);
  transition: width .2s ease;
}
/* ==========================================================================
   Mobile/Tablet Layout Adjustments (Break Point: 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%; /* Drop right below the top header strip */
    left: -100%; /* Hidden off-screen left by default */
    flex-direction: column;
    background-color: #fff;
    width: 100%;
    text-align: center;
    transition: 0.3s ease-in-out;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  }

  /* Reveals the vertical navigation deck sliding in from the side */
  .nav-menu.is-active {
    left: 0;
  }
#js-nav-menu li {
  padding: 15px;
}
  .nav-item {
    margin: 15px 0;
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 10px 0;
    font-size: 1.2rem;
  }

  /* Hamburger transform animation to an "X" when clicked active */
  .nav-toggle.is-active .hamburger-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .nav-toggle.is-active .hamburger-bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.is-active .hamburger-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

@media screen and (max-width: 768px) {
  #navToggle {
  display: none;
}
}