.navbar {
  max-width: 1150px;
  margin: 0 auto 20px auto;
  color: var(--white, #ffffff);
  border-radius: 4px;
  background-color: var(--black, #0f172a);
}

.navbar .menu {
  position: relative;
  display: inline-flex;
  background: var(--black, #0f172a);
  background: linear-gradient(180deg, var(--black, #0f172a) 0%, var(--dark-gray, #64748b) 51%, var(--black, #0f172a) 100%);
  gap:1px;
}

.navbar .menu li {
  display: flex;
  text-align: center;
  flex: 1;
  background-color: var(--black, #0f172a);
  position: relative;
}

.navbar .menu a {
  position: relative;
  display: inline-flex;
  padding: 20px 20px;
  text-decoration: none;
  color: var(--white, #ffffff);
  flex: 1;
  justify-content: center;
  white-space:nowrap;
}

.navbar .menu a.reset {
  text-decoration: none;
  padding: 0;
  color: var(--primary-blue, #1e3a8a);
}

.navbar .menu a.reset:hover {
  background-color: transparent;
  color: #3b82f6;
}

.navbar .menu a:hover {
  background-color: var(--primary-blue, #1e3a8a);
  color: var(--white, #ffffff);
}

@media(max-width:950px){.navbar .menu a {  padding: 20px  clamp(10px, 1.5vw, 20px);}}
@media(max-width:880px){.navbar .menu a {  padding: 20px  clamp(10px, 1.1vw, 20px);}}



.navbar .menu a > .fa {
  font-weight: bold;
  margin-left: 8px;
}

.navbar .menu li:hover {
  background: linear-gradient(135deg, var(--primary-blue, #1e3a8a), #3b82f6);
}
.navbar .menu li.active {
  background: var(--primary-blue, #1e3a8a);
}



.navbar .menu li:hover .container {
  display: flex;
}

/* hover-híd: az <li> hover zónáját kiterjeszti a .container tetejéig */
.navbar .menu li::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 10px;
  display: none;
}
.navbar .menu li:hover::after {
  display: block;
}

a.hasDropdown:after {
  position: absolute;
  z-index: 2;
  bottom: -16px;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: var(--primary-blue, #1e3a8a);

}

li:hover a.hasDropdown:after {
  content: '';
  border-top-color: #8f3985;
}

/* End Navigation Bar */

/* Start Single Section Menu */

.container {
  position: absolute;
  z-index: 1;
  top: 100%;
  right: auto;
  left: 0;
  display: none;
  margin-bottom: 30px;
  min-width: 600px;
  text-align: left;
  background: var(--white, #ffffff);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--medium-gray, #e2e8f0);
  border-radius: 12px;
  overflow: hidden;
}

.container__list {
  display: flex;
  min-width: 0;
  padding: 20px 0;
  flex: 1;
  flex-wrap: wrap;
  flex-direction: column;
}

.container__listItem {
  overflow: hidden;
  padding: 15px 25px;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 0 0 100%;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.2s ease;
}

.container__listItem:last-child {
  border-bottom: none;
}

.container__listItem:hover {
  background: var(--light-gray, #f8fafc);
}

.container__listItem > div {
  cursor: pointer;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--primary-blue, #1e3a8a);
  font-weight: 500;
}

.container__listItem:hover > div {
  color: #3b82f6;
}

/* End Single Section Menu */

/* Start Multiple Section Menu */

.container.has-multi .container__listItem {
  flex-basis: 100%;
}

.container.has-multi .container__list {
  border-radius: 4px;
  flex-basis: 33.333%;
}

.container.has-multi .container__list:not(:last-child) {
  margin-right: 20px;
  border-right: solid 1px #f3f3f3;
}

/* End Multiple Section Menu */

/* Start Responsive Menu */

.mobile-menu {
  display: none;
}

@media only screen and (max-width: 768px) {
  .mobile-menu {
    display: block;
    background: var(--primary-blue, #1e3a8a);
    margin:0 -5px;
    padding-left: 5px;
    color: var(--white, #ffffff);
  }
  .mobile-menu > i {
    cursor: pointer;
  }
  .navbar {
    position: absolute;
    transition: top .3s ease-in;
    top: -100%;
    border-radius: 0;
    will-change: top;
  }
  .navbar--is-visible {
    top: 48px;
    z-index:20;
    margin-left:-5px;
  }
  .navbar .menu {
    flex-direction: column;
  }
  .navbar .menu li {
    position: relative;
    flex-direction: column;
    transition: initial;
  }
  .navbar .menu li:hover {
    background-color: initial;
  }
  .navbar .menu li.is-selected {
    position: relative;
    background-color: #8f3985;
  }
  .container {
    position: static;
    display: flex;
    overflow: hidden;
    max-height: 0;
    min-width: 0;
    margin-bottom: 0;
    transition: all .3s ease;
  }

  a.hasDropdown:after {
    display: none;
  }
  .container--is-visible {
    max-height: 1000px !important;
  }
  .container__list .container__listItem:nth-child(n + 11) {
    display: none;
  }
  .container.has-multi .container__list-multi:not(:first-child) {
    display: none;
  }
  .menu .container.has-multi .container__list {
    margin-right: 0;
    border-right: 0;
  }
  .navbar .menu li .container__listItem {
    flex-basis: 100%;
  }
}

@media only screen and (max-width: 600px) {
  .mobile-menu {
    margin: 0 -5px;
    padding: 10px 5px;
    width: calc(100vw - 10px);
    box-sizing: border-box;
  }
  
  .navbar--is-visible {
    left: -5px;
    right: -5px;
    width: calc(100vw - 10px);
    margin-left: 0;
  }
  
  .navbar .menu {
    width: 100%;
  }
  
  .navbar .menu li {
    width: 100%;
  }
  
  .navbar .menu a {
    width: 100%;
    padding: 15px 20px;
    text-align: left;
  }
  
  .container {
    width: 100%;
    min-width: 0;
    left: 0;
    right: 0;
  }
  
  .container__listItem {
    padding: 15px 20px;
    flex-basis: 100%;
  }
}

/* End Responsive Menu */