/*
    Theme Name: addiz
    Theme URI: http://underscores.me/
    Description: Тема вордпресс
    Author: dim
    Author URI: freelance.ru/array1432
    Version: 1.0.0
*/

.menu-item {
  position: relative;
}

.header__menu > li.menu-item-has-children > .custom-sub-menu {
  display: none;
  position: absolute;
  left: -10px;
  top: calc(100% + 2px);
  background: #ffffff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  width: 550px;
  border-radius: 20px;
  padding: 15px;
}

.header__menu > li.menu-item-has-children > .custom-sub-menu > ul {
  display: flex;
  gap: 20px;
}

.header__menu > li.menu-item-has-children > .custom-sub-menu > ul > li > a {
  font-weight: bold;
  text-decoration: none !important;
}

.header__menu > li > .custom-sub-menu > ul > li > .custom-sub-menu {
  margin-top: 10px;
}

.header__menu li.menu-item-has-children .custom-sub-menu a {
  font-size: 18px;
}

.header__menu li.menu-item-has-children .custom-sub-menu a:hover {
  text-decoration: underline;
}

.header__menu .custom-sub-menu .custom-sub-menu ul {
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.custom-sub-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.custom-sub-menu li {
  display: block;
}

.custom-sub-menu a {
  color: #555;
  text-align: left;
}

/* Show the dropdown on hover */
.header__menu li:hover > .custom-sub-menu {
  display: block;
}

/* Responsive adjustments might be necessary based on your layout */
@media (max-width: 768px) {
  .custom-sub-menu {
    width: 100%;
  }
}

.sidebar__menu .custom-sub-menu .custom-sub-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar__menu > * {
  margin-top: 20px;
}

.sidebar__menu ul {
  margin-left: 10px;
}

.sidebar__menu > li.menu-item-has-children > div > ul > li > a {
  color: #989898;
}

.sidebar__menu > li.menu-item-has-children > div > ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.sidebar__menu
  > li.menu-item-has-children
  > .custom-sub-menu
  > ul
  > li
  > .custom-sub-menu
  > ul {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 5px;
}
