/* Dropdown Styles */
.dropdown-item.active,
.dropdown-item:active {
  color: #990000;
  background-color: transparent !important;
  text-decoration: none;
}

.dropdown-item:focus,
.dropdown-item:hover {
  color: #1e2125;
  background-color: transparent !important;
}

/* Dropdown arrow transition */
.dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-left: 0.3em solid transparent;
  transition: transform 0.2s ease-out;
}

.dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

/* Active dropdown link color */
.dropdown-toggle.active {
  color: #990000;
}

/* Restore dropdown focus for toggle buttons */
.dropdown-toggle:focus {
  outline: none;
}

/* Mobile Menu Styles */
.wrapper {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(230, 231, 232, 0.9);
  clip-path: circle(0px at calc(100% - 45px) 45px);
  transition: all 0.3s ease-in-out;
  z-index: 1;
}

#active:checked ~ .wrapper {
  clip-path: circle(75%);
}

/* Menu button */
.menu-btn {
  position: absolute;
  z-index: 2;
  right: 20px;
  top: 20px;
  height: 50px;
  width: 50px;
  border-radius: 50%;
  font-size: 20px;
  color: black;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.menu-btn i {
  transition: transform 0.3s ease-in-out;
}

.rotated {
  transform: rotate(180deg);
}

/* Wrapper Menu Items */
.wrapper ul {
  position: absolute;
  top: 50%;
  right: -5%;
  transform: translate(-50%, -50%);
  list-style: none;
  text-align: right;
  margin: 0;
  padding: 0;
}

.wrapper ul li {
  margin: 17px 0;
}

.wrapper ul li a {
  color: black;
  text-decoration: none;
  font-size: 30px;
  position: relative;
  line-height: 20px;
  transition: all 0.3s ease;
  font-family: "League Spartan", sans-serif;
}

/* Underline animation on hover */
.wrapper ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #990000;
  transform: scaleX(0);
  transform-origin: bottom left;
  transition: transform 0.3s ease;
}

.wrapper ul li a:hover::after {
  transform: scaleX(1);
}

/* Button-like Dropdown Links */
.cusa {
  font-size: 30px !important;
  text-transform: uppercase;
  font-family: "League Spartan", sans-serif;
  padding: 5px 0;
  color: black;
  line-height: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cusas {
  font-size: 16px !important;
  text-transform: uppercase;
  font-family: "League Spartan", sans-serif;
  color: black;
  line-height: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Remove border/outline only for mobile menu nav links */
.wrapper ul li a:focus,
.wrapper ul li a:active {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Disable checkbox display */
input[type="checkbox"] {
  display: none;
}

/* Responsive Text Sizes */
@media screen and (max-width: 700px) {
  .wrapper ul li a {
    font-size: 23px;
  }
  .cusa {
    font-size: 23px !important;
  }
  .wrapper ul li {
    margin: 13px 0;
  }
}

@media screen and (max-width: 600px) {
  .wrapper ul li a {
    font-size: 17px;
  }
  .cusa {
    font-size: 17px !important;
  }
  .menu-btn {
    font-size: 17px;
  }
}

/* Dropdown rotation on hover (desktop only) */
@media screen and (min-width: 768px) {
  .dropdown-toggle:hover::after {
    transform: rotate(180deg);
  }
}
