.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 60px;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 999;
  border-bottom: 1px solid #ddd;
}

.navbar .logo img {
  max-height: 25px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 5rem;
}

.nav-links a {
  font-size: 1rem;
  padding: 0.5rem 0;
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
  color: #222;
}

/* underline effect (default) */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 5px;
  background-color: #ffbf04;
  transform: scaleX(0);
  transition: transform 0.1s ease;
  transform-origin: center;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* ❌ remove underline from dropdown menu items */
.dropdown-menu a::after {
  display: none !important;
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  z-index: 1001;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 100%;
    background-color: #ffffff;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding-right: 2rem;
    transition: right 0.3s ease;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.5rem;
  }
}

/* Dropdown wrapper */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  position: fixed;     /* instead of absolute */
  top: 60px;           /* same as navbar height */
  left: 0;             /* start from left edge */
  width: 100%;         /* span entire width */
  background: #fff;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding: 2rem;
  border-top: 2px solid #ffbf04;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 998;
}

/* Dropdown items (big button style) */
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1rem;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 5px;
  font-size: 1rem;
  color: #222;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.dropdown-menu a:hover {
  background: #fff;
  color: #222;
  transform: translateY(-3px);
}

/* Show on hover (desktop only) */
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Responsive (mobile) */
@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    width: 100%;
    grid-template-columns: 1fr;
    padding: 1rem;
    box-shadow: none;
    border: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .dropdown.active .dropdown-menu {
    display: grid;
  }
}