/* ===== GLOBAL STYLES ===== */
.custom-menu, .custom-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: 'Geist', sans-serif;
  font-size: 20px;
  color: white;
}

.custom-menu {
  display: flex;
  gap: 10px;
}

.custom-menu li {
  position: relative;
}

/* ===== MENU ITEMS ===== */
.menu-item > a, .menu-title {
  display: inline-block;
  padding: 10px 0px;
  cursor: pointer;
  color: white;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.menu-item > a:hover, .menu-title:hover {
  color: white;
  background: white; /* optional if you want hover same as background */
}

/* ===== DROPDOWN ICON ===== */
.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  margin-left: -10px;
  font-size: 20px;
  color: white;
  transition: transform 0.3s;
}

.dropdown-toggle:hover {
    background: none;
}

.dropdown-toggle:focus {
    background: none;
}

.dropdown-toggle[aria-expanded="true"] {
  transform: rotate(180deg);
}

/* ===== SUBMENU ===== */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: black;
  border-radius: 6px;
  box-shadow: none; /* remove shadow for all-white */
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  flex-direction: column;
  z-index: 100;
  color: black !important;
}

.submenu li a {
  padding: 10px 20px;
  display: block;
  color: white;
  text-decoration: none;
}

.submenu li a:hover {
  color: black;
  background: white;
}

/* ===== SHOW DROPDOWN ===== */
.menu-item.active > .submenu {
  max-height: 500px;
  opacity: 1;
  visibility: visible;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .custom-menu {
    flex-direction: column;
  }
  .menu-item {
    width: 100%;
  }
  .submenu {
    position: relative;
    top: 0;
    left: 0;
    border: none;
    box-shadow: none;
  }
}
