.nav-item {
  position: relative;
}

/* Base dropdown behavior */
.nav-item .dropdown-menu {
  position: absolute;
  left: 0;
  margin-top: 0.75rem;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 30;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Card look like in your screenshot */
.dropdown-panel {
  background: #ffffff;
  border-radius: 24px;
  padding: 16px 20px;
  box-shadow:
    0 20px 40px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(226, 232, 240, 0.9); /* soft border */
}

/* Title "About us" at top */
.dropdown-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827; /* gray-900 */
  margin-bottom: 8px;
}

/* Items */
.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  color: #374151; /* gray-700 */
  text-decoration: none;
  border-top: 1px solid #f3f4f6; /* separator lines */
}

.dropdown-item:first-of-type {
  border-top: none;
}

.dropdown-item:hover {
  color: #ec4899; /* pink-500 */
}

.dropdown-arrow {
  font-size: 14px;
  color: #9ca3af; /* gray-400 */
}

.dropdown-item:hover .dropdown-arrow {
  color: #ec4899;
}






/* === Menu Button === */
.menu-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: #e11d48; /* pink/red */
  cursor: pointer;
}

.menu-arrow {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* === Mega Menu Container === */
.nav-item {
  position: relative;
}

.mega-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  top: 100%;
  width: 720px;
  background: #ffffff;
  border-radius: 24px;
  padding: 22px 26px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.15);
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* ✅ 3 columns */
  column-gap: 30px;
  row-gap: 10px;

  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
  z-index: 999;
}

/* Hover Open */
.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* === Single Link Item === */
.mega-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
  text-decoration: none;
  padding: 8px 4px;
  border-bottom: 1px solid #f1f5f9;
}

.mega-item span {
  color: #94a3b8;
  font-size: 16px;
}

.mega-item:hover {
  color: #ec4899;
}

.mega-item:hover span {
  color: #ec4899;
}




/* Hamburger to X */
.hamburger span {
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg);
}