body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}
header {
  background-color: #f8f9fa;
  position: relative;
}

.navbar {
  display: flex;
  justify-content: center;
  padding: 0.5rem; /* Adjust padding to prevent overflow */
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

.nav-left .nav-brand {
  font-size: 1.4rem;
  font-weight: bold;
  color: #343a40;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
  font-size: 17px;
  font-weight: 600;
}

.nav-links a {
  text-decoration: none;
  color: #000000;
}

.nav-right a {
  color: #000000;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
}

.hamburger-button {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #343a40;
}

@media (max-width: 768px) {
  .hamburger-button {
    display: block; /* Show Hamburger */
  }

  .nav-middle {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-width: 100%; /* Prevent overflow */
    box-sizing: border-box;
    overflow-x: hidden;
    background: #f8f9fa;
    padding: 1rem;
    z-index: 1000;
    text-align: center;
  }

  .nav-middle.active {
    display: block;
  }

  .nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column; /* Stack links vertically */
    gap: 1rem;
    width: 100%; /* Ensure links don't exceed the container width */
  }

  .nav-right a {
    color: #000000;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
  }

  .nav-left .nav-brand {
    font-size: 1.1rem;
    font-weight: bold;
    color: #343a40;
    text-decoration: none;
  }
  .hamburger-button {
    display: block;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #343a40;
  }
}
