/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: white;
  transition: var(--transition);
}

header.scrolled {
  background: var(--primary);

  /* box-shadow: var(--shadow); */
}

header.scrolled .nav-links a {
  color: white;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

.logo span {
  color: var(--secondary);
}

.logo img {
  height: 50px; /* adjust as needed */
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  /* margin-left: 30px; */
}

.nav-links a {
  color: rgb(0, 0, 0);
  text-decoration: none;
  font-size: 22px;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--secondary);
}

.hamburger {
  display: none;
  cursor: pointer;
  color: white;
  font-size: 1.5rem;
}

/* ======== Navbar Layout ======== */
/* .navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 10px 20px;
} */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 10px 20px;
}
/* Default: show links on desktop */
.nav-links {
  /* margin-bottom: 0; */
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

/* Hide hamburger icon on desktop */
.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ======== Mobile View ======== */
@media (max-width: 992px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 70px;
    right: 20px;
    width: 220px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    padding: 15px 0;
    border-radius: 8px;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    text-align: center;
    /* padding: 10px 0; */
  }

  /* Dropdown menu behavior */
  .nav-links li.dropdown .dropdown-menu {
    display: none;
    position: static;
    background: #f9f9f9;
    box-shadow: none;
    padding: 0;
  }

  .nav-links li.dropdown.active .dropdown-menu {
    display: block;
  }
}

/* Dropdown Base */
.nav-links .dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 40px;
  right: 0;
  background: white;
  padding: 10px 0;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  list-style: none;
  width: 200px;
  z-index: 1000;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 15px;
  font-size: 22px;
  color: black;
  text-decoration: none;
}

.dropdown-menu li a:hover {
  background: #f5f5f5;
  color: var(--secondary);
}

/* Show dropdown on click */
.dropdown.open .dropdown-menu {
  display: block;
}

/* On mobile, show dropdown items as normal menu items */
@media (max-width: 992px) {
  .dropdown-menu {
    display: block !important; /* Always visible */
    position: static !important;
    box-shadow: none !important;
    padding-left: 20px; /* indent for clarity */
  }

  /* Hide the "More ▾" button on mobile */
  .more-btn {
    display: none;
  }

  .dropdown {
    /* width: 100%; */
  }
}