.menu-top-1a {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.menu-top-1a li {
  position: relative;
}

.menu-top-1a li:hover {
  color: #8d191c;
}

.dropdown {
  position: relative;
}

.dropbtn {
  background-color: #fff;
  color: #000000;
  padding: 1vw;
  font-size: 1.1vw;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-weight: normal;
  font-family: var(--font-raleway);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Dropdown Arrow Styles */
.dropdown-arrow {
  font-size: 0.8em;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 8px;
}

.dropbtn.active .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-content {
  max-height: 0;
  overflow: hidden;
  position: relative;
  background-color: #f9f9f9;
  z-index: 1;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease,
    padding 0.3s ease;
  opacity: 0;
  padding: 0;
}

.dropdown-content.show {
  max-height: 500px;
  opacity: 1;
  padding: 5px 0;
}

.dropdown-content a {
  color: #000000;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transform: translateX(-10px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.2s ease,
    color 0.2s ease;
}

.dropdown-content.show a {
  transform: translateX(0);
  opacity: 1;
}

.dropdown-content.show a:nth-child(1) {
  transition-delay: 0.05s;
}
.dropdown-content.show a:nth-child(2) {
  transition-delay: 0.1s;
}
.dropdown-content.show a:nth-child(3) {
  transition-delay: 0.15s;
}
.dropdown-content.show a:nth-child(4) {
  transition-delay: 0.2s;
}
.dropdown-content.show a:nth-child(5) {
  transition-delay: 0.25s;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
  color: #8d191c;
  padding-left: 20px;
}

/* Nested Dropdown Styles */
.nested-dropdown {
  position: relative;
  width: 100%;
}

.nested-dropbtn {
  background-color: transparent;
  color: #000000;
  padding: 12px 16px;
  font-size: 1.1vw;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-weight: normal;
  font-family: var(--font-raleway);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.2s ease, color 0.2s ease,
    padding-left 0.2s ease;
}

.nested-dropbtn:hover {
  background-color: #f1f1f1;
  color: #8d191c;
  padding-left: 20px;
}

.nested-dropbtn .dropdown-arrow {
  font-size: 0.7em;
}

.nested-dropbtn.active .dropdown-arrow {
  transform: rotate(180deg);
}

.nested-dropdown-content {
  max-height: 0;
  overflow: hidden;
  background-color: #ececec;
  margin-left: 15px;
  border-left: 2px solid #ddd;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease,
    padding 0.3s ease;
  opacity: 0;
  padding: 0;
}

.nested-dropdown-content.show {
  max-height: 200px;
  opacity: 1;
  padding: 5px 0;
}

.nested-dropdown-content a {
  color: #000000;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
  font-size: 1vw;
  transform: translateX(-10px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.2s ease,
    color 0.2s ease, padding-left 0.2s ease;
}

.nested-dropdown-content.show a {
  transform: translateX(0);
  opacity: 1;
}

.nested-dropdown-content.show a:nth-child(1) {
  transition-delay: 0.05s;
}
.nested-dropdown-content.show a:nth-child(2) {
  transition-delay: 0.1s;
}

.nested-dropdown-content a:hover {
  background-color: #e0e0e0;
  color: #8d191c;
  padding-left: 22px;
}

#bg-white-5 {
  background-color: #e4e4e4;
}

@media only screen and (max-width: 1100px) {
  .dropdown button {
    font-size: 16px !important;
  }
  .menu-top li:hover::before {
    display: none;
  }
  .dropbtn {
    padding: 10px;
  }
  .dropdown {
    margin-bottom: 0px;
  }
  .nested-dropbtn {
    font-size: 14px !important;
  }
  .nested-dropdown-content a {
    font-size: 13px !important;
  }
}
