/* Shared navbar styles */
.header {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  position: relative;
}

.logo img {
  height: 42px;
  width: auto;
  display: block;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.nav {
  display: block;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.nav-list li {
  position: relative;
}

.nav-list a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-list a:hover,
.nav-list a.active-link {
  color: #597a33;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: none;
  z-index: 1001;
}

.submenu li {
  width: 100%;
}

.submenu a {
  display: block;
  padding: 10px 14px;
  font-size: 0.93rem;
  color: #333;
}

.submenu a:hover {
  background: #f6f8f3;
}

.has-submenu:hover .submenu,
.has-submenu.active .submenu {
  display: block;
}

.member-login-btn {
  background: #597a33;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
}

@media (max-width: 900px) {
  .header .container {
    min-height: 60px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .logo img {
    height: 35px;
  }

  .mobile-menu-toggle {
    display: flex;
    z-index: 1002;
  }

  .member-login-btn {
    display: none;
  }

  .nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: #ffffff;
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    z-index: 1001;
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 0;
  }

  .nav-list li {
    border-bottom: 1px solid #efefef;
  }

  .nav-list a {
    display: block;
    padding: 13px 18px;
  }

  .submenu {
    position: static;
    min-width: 100%;
    border-radius: 0;
    box-shadow: none;
    background: #f9faf7;
  }

  .submenu a {
    padding: 10px 24px;
  }
}
