.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: #000;
  border-bottom: 2px solid #ffcc00;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  flex-wrap: wrap;
  gap: 20px;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  width: 80px;
  height: auto;
  transition: transform 0.3s ease;
  display: block;
}

/* Keep navbar logo consistent even when page-level CSS has broad img rules */
.navbar .logo {
  width: 80px !important;
  min-width: 80px;
  max-width: 80px;
  height: auto !important;
  object-fit: contain;
}

.logo:hover {
  transform: scale(1.05);
}

.navbar-links {
  display: flex;
  gap: 24px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}

.navbar-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.3s ease;
  position: relative;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffcc00;
  transition: width 0.3s ease;
}

.navbar-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
}

@media (max-width: 768px) {
  .navbar {
    padding: 12px 20px;
  }

  .navbar-links {
    display: none;
  }

  .hamburger {
    display: block;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
  }

  .hamburger:hover {
    background-color: rgba(255, 204, 0, 0.1);
  }

  .hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
  }

  .hamburger.open span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.open span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: none !important;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 50px;
    z-index: 99;
  }

  .mobile-menu.open {
    display: flex !important;
  }

  .mobile-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    margin: 20px 0;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 80%;
    text-align: center;
  }

  .mobile-menu a:hover {
    background: rgba(255, 204, 0, 0.1);
    color: #ffcc00;
    transform: translateY(-2px);
  }
}
