/* ========================================
   NAVBAR
======================================== */
.navbar,
.article-page .navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  padding: 0.75rem 0;
  z-index: 9999;
  border-bottom: 1px solid #e0e0e0;
  transition: transform 0.3s ease;
}

.navbar.hidden,
.article-page .navbar.hidden {
  transform: translateY(-100%);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img {
  height: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-text {
  font-family: 'Lora', serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: #84B082;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  color: #555;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s;
}

.nav-links li a:hover {
  color: #84B082;
}

.signup-link {
  padding: 0.5rem 1.25rem;
  background-color: #84B082;
  border: none;
  border-radius: 6px;
  color: #fff !important;
  font-weight: 600;
}

.signup-link:hover {
  background: #6a9a68;
  color: #fff !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

/* Mobile Menu */
@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 70%;
    background: #ffffff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 999;
    border-radius: 0;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-toggle {
    display: flex;
  }
}

/*
========================================
   for mobile menu, when the menu is open w/ toggle animation
========================================
*/

.nav-toggle.open span:nth-child(1) {
  transform: rotate(75deg) translateY(7px);
}

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

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-75deg) translateY(-7px);
}

/*
========================================
   for mobile menu, when the menu is open
========================================
*/

.nav-toggle {
  position: relative;
  z-index: 10000;
}

@media (max-width: 992px) {
  .nav-links {
    z-index: 9998;
    list-style: none;
    margin: 0;
    padding: 0;
  }
}