/* Menü kapsayıcıları için overflow ve z-index düzeltmeleri */
.header-main-one-wrapper,
.header-main,
.main-header,
.nav-area,
.main-menu,
.mega-menu-item {
  overflow: visible !important;
  z-index: 30;
}

/* Menü kaybolmasın: hover ve focus birlikte */
.mega-menu-item:hover > .mega-menu-wrapper,
.mega-menu-item:focus-within > .mega-menu-wrapper,
.mega-menu-wrapper:hover,
.mega-menu-wrapper:focus-within {
  display: block;
}

/* Modern ve sade mega menü tasarımı */
.mega-menu-wrapper {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 600px;
  width: max-content;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  z-index: 100;
  display: none;
  padding: 20px 28px;
  border-radius: 18px;
  margin-top: 14px;
}
.mega-menu-item { position: relative; }
.mega-menu-content {
  width: 100%;
  margin: 0 auto;
}
.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.mega-menu-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s, background 0.2s;
  display: flex;
  flex-direction: row;
  align-items: center;
  min-height: 56px;
  padding: 8px 14px;
  gap: 14px;
}
.mega-menu-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  background: #f5f7fa;
}
.mega-card-image {
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
}
.mega-card-image img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  background: #eaeaea;
  border: 2px solid #f0f0f0;
}
.mega-card-content {
  padding: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.mega-card-content h6 {
  margin: 0 0 4px 0;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.2;
  color: #2563eb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mega-card-content p {
  margin: 0;
  font-size: 0.97rem;
  color: #444;
  line-height: 1.35;
  max-width: 220px;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 991px) {
  .mega-menu-wrapper {
    min-width: 0;
    width: 98vw;
    left: -10vw;
    padding: 10px 2vw;
  }
  .mega-menu-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .mega-menu-card {
    width: 100%;
    height: auto;
    flex-direction: row;
    padding: 8px 8px;
  }
  .mega-card-image img {
    width: 40px;
    height: 40px;
  }
}
