/* Base reset */
* {
  box-sizing: border-box;
}


.navbar {
  background-color: #333;
  color: white;
  position: relative;
  width: 100%;
  height: 60px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;

  z-index: 1000;
}

.navbar a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}

/* Brand section: logo and title */
.brand {
  display: flex;
  align-items: center;
  margin-right: auto;
  gap: 10px;
}

.brand img {
  width: 40px;
  height: 40px;
}

.brand h3 {
  margin: 0;
  font-size: 20px;
  color: white;
}

/* Hamburger menu */
.hamburger {
  display: none;
  font-size: 26px;
  color: white;
  padding: 14px 16px;
  cursor: pointer;
}

.toggle-menu {
  display: none;
}

/* Nav links container */
.nav-links {
  flex-grow: 1;
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
}

/* Left group: absolutely centered */
.nav-left {
  position: absolute;
  left: 46%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  align-items: center;
}

/* Left group links */
.nav-left a {
  color: white;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;          
  padding: 0 12px;       
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

/* Right group styling */
.nav-right {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav-right img {
  width: 40px;
  height: 40px;
}

.nav-links li {
  list-style: none;
}

.nav-links li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

.nav-links li a:hover:not(.active) {
  background-color: #111;
}

.active {
  background-color: #04AA6D;
}

/* Mobile responsiveness */
@media only screen and (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 60px; /* below navbar */
    left: 0;
    width: 100%;
    background-color: #333;
    flex-direction: column;
    align-items: center;
    gap: 0;
    display: none; /* hidden by default */
    padding-bottom: 16px;
  }

  /* Show nav-links when toggle is checked */
  .toggle-menu:checked + .hamburger + .brand-link + .nav-links {
    display: flex;
  }

  .nav-left {
    position: static;
    transform: none;
    flex-direction: column;
    width: 100%;
  }

  .nav-left a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid #444;
    text-align: center;
  }

  .nav-right {
    display: none; /* hide right icons on mobile */
  }
}