.navbar {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
}

.navbar-brand {
  font-size: 1.3rem;
  font-weight: bold;
  color: #333;
  text-decoration: none;
}

.navbar-menu {
  display: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
  width: 100%;
  flex-direction: column;  /* Ensure vertical stacking */
}

.navbar-item {
  margin: 0;
  width: 100%;  /* Full width for each item */
}

.navbar-link {
  color: #666;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}

.navbar-item:last-child .navbar-link {
  border-bottom: none;
}

.navbar-link:hover {
  color: #007bff;
}

.navbar-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #333;
  cursor: pointer;
}

@media (min-width: 769px) {
  .navbar-menu {
    display: flex;
    width: auto;
    flex-direction: row;  /* Horizontal layout for desktop */
  }

  .navbar-item {
    width: auto;  /* Auto width for desktop */
    margin: 0 0 0 1.5rem;
  }

  .navbar-link {
    padding: 0;
    border-bottom: none;
  }

  .navbar-toggle {
    display: none;
  }
}