.has-mega-insurances {
  position: relative;
  display: inline-block;
}

.has-mega-insurances > a {
  cursor: pointer;
  font-weight: 600;
}

.has-mega-insurances .mega-menu {
  display: none; /* keep it hidden until hover */
  position: absolute;
  top: 100%;
  left: 0;
  width: 1000px; /* adjust based on your layout */
  background: #fff;
  padding: 25px 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  border-radius: 4px;
}

.has-mega-insurances:hover .mega-menu,
.has-mega-insurances:focus-within .mega-menu {
  display: grid; /* show as grid on hover */
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
}

.mega-col {
  display: flex;
  flex-direction: column;
  min-width: 150px; /* ensures even spacing */
}

.mega-col h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  border-bottom: 2px solid #eee;
  padding-bottom: 5px;
  color: #222;
}

.mega-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mega-col ul li {
  margin-bottom: 8px;
}

.mega-col ul li a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
  transition: color 0.3s ease;
  display: block;
}

.mega-col ul li a:hover {
  color: #0c7cd5;
  text-decoration: underline;
}

.mega-col ul li > ul {
  padding-left: 15px;
  margin-top: 4px;
}

.mega-col ul li > ul li {
  margin-bottom: 6px;
}
