/* Custom styles for nested dropdown menu - matching original design */
.universities-dropdown .dropdown-menu {
  min-width: 490px;
  left: 30px;
  transform: translateX(-50%);
  border-radius: 4px;
  border: 1px solid #4b4b4b;
  box-shadow: 0px 3px 40px 0px rgba(0, 0, 0, 0.07);
  padding: 16px 16px 0px 16px;
  background: #101015;
}

.programs-trigger {
  position: relative;
}

.programs-btn {
  display: block;
  width: 100%;
  padding: 8px 16px;
  margin-bottom: 16px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #4FA3D9, #241C6A);
}

.programs-btn:hover {
  background: linear-gradient(135deg, #4FA3D9, #241C6A);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(79, 163, 217, 0.3);
}

.programs-btn-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.programs-btn-content span:first-child {
  color: #000000;
  font-size: 20px;
  font-weight: 600;
  line-height: 120%;
  letter-spacing: 0.2px;
}

.programs-submenu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 490px;
  background: #101015;
  border: 1px solid #4b4b4b;
  border-radius: 4px;
  box-shadow: 0px 3px 40px 0px rgba(0, 0, 0, 0.07);
  padding: 16px 16px 0px 16px;
  z-index: 1000;
}

.programs-trigger:hover .programs-submenu {
  display: block;
}

/* Mobile styles for nested menu - matching original design */
.programs-trigger-mobile {
  width: 100%;
}

.programs-btn-mobile {
  width: 100%;
  padding: 16px 24px;
  background: transparent;
  color: #fff;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  line-height: 140%;
  letter-spacing: 0.32px;
  margin-bottom: 16px;
  border-radius: 4px;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #4FA3D9, #241C6A);
}

.programs-btn-mobile:hover {
  background: linear-gradient(135deg, #4FA3D9, #241C6A);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(79, 163, 217, 0.3);
}

.programs-btn-mobile:hover span:first-child {
  color: #ffffff;
}

.programs-btn-mobile .arrow {
  transition: transform 0.3s ease;
}

.programs-btn-mobile.active .arrow {
  transform: rotate(90deg);
}

.programs_mobile {
  display: none;
  padding-left: 0;
  margin: 0;
}

.programs_mobile.show {
  display: block;
}

@media screen and (max-width: 991px) {
  .universities-dropdown .dropdown-menu {
    transform: none;
    padding: 0;
    border: none;
  }
  
  .programs-submenu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    padding: 16px 0px;
  }
  
  .programs-trigger:hover .programs-submenu {
    display: none;
  }
  
  .programs-dropdown-mobile {
    display: none;
  }
  
  .programs-dropdown-mobile.show {
    display: block;
  }
}