* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  text-decoration: none;
  font-family: "Inter", sans-serif;
}

main {
  max-width: 1300px;
  margin: 0 auto;
  float: none;
}

nav {
  width: 100%;
  height: 3rem;
  background-color: #cc0202;
  color: white;
  font-size: 0.9rem;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* -------------------- HEADER -------------------- */
#header-logo {
  width: 100%;
  margin: 0.2rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

#header-logo img {
  height: 125px;
}

.nav-links {
  width: 100%;
  height: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links li {
  width: 100%;
  height: 100%;
  list-style: none;
  white-space: nowrap;
}

.nav-links a {
  width: 100%;
  height: 100%;
  padding: 0 0.25rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-links a:hover {
  background-color: rgb(100, 10, 10);
  color: inherit;
}
.nav-links a:hover::after {
  position: absolute;
  content: "";
  width: 3rem;
  height: 0.1rem;
  margin-top: 1.4rem;
  border-radius: 2rem;
  background-color: red;
}

ul.nav-links > li a:hover {
  background-color: rgb(100, 10, 10);
  color: inherit;
}

.search-box form {
  margin: 0 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.search-box form input {
  background-color: #fff;
  max-width: 10rem;
  height: 1.8rem;
  margin: 0;
  border: none;
  border-radius: 2rem 0 0 2rem;
  outline: none;
}

.search-box form button {
  cursor: pointer;
  background-color: #fff;
  border: none;
  height: 1.8rem;
  border-radius: 0 2rem 2rem 0;
}

/*=========== menu dropdown ==========*/
.dropdown-documents {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 48px;
  background-color: #cc0202;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  padding: 12px 16px;
  z-index: 99;
  line-height: 30px;
}

.dropdown-documents:hover .dropdown-content {
  display: block;
}

/*********************************/

.dropdown-content {
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
  background-color: #cc0202;
}

.dropdown-content li {
  position: relative;
}

.dropdown-content li a {
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  line-height: 50px;
}

.dropdown-content li ul {
  position: absolute;
  top: 0%;
  margin: 0;

  list-style: none;
  display: none;
  left: 100%;
  line-height: normal;
  background-color: #cc0202;
}

.dropdown-content li ul li ul {
  left: 100%;
  top: 0;
}

ul li:hover > ul {
  display: block;
}

.dropdown-documents {
  width: 100%;
}
/*********************************/

.hamburger {
  display: block;
  position: relative;
  z-index: 1;
  appearance: none;
  border: none;
  outline: none;
  background: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 32px;
  height: 5px;
  position: relative;
  background-color: white;
  border-radius: 6px;
  transform-origin: 0 0;
  transition: 0.4s;
}
.hamburger:hover span {
  background-color: rgb(100, 10, 10);
}

.hamburger span:nth-child(1),
.hamburger span:nth-child(2) {
  margin-bottom: 5px;
}

.hamburger.is-active span:nth-child(1) {
  transform: translate(0px, 0px) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
  transform: translate(-3px, 3px) rotate(-45deg);
}

.hamburger.is-active:hover span,
.hamburger.is-active:active span {
  background-color: rgb(100, 10, 10);
}

.dropdown {
  display: none;
}

.dropdown.is-active {
  position: absolute;
  top: 10.2rem;
  right: 0;
  z-index: 3;
  width: fit-content;
  background-color: #cc0202;
  padding: 0 0.5rem 0.5rem 0.5rem;
  border-radius: 0 0 0 0.5rem;
  box-shadow: 1px 2px 2px black;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.2rem;
}

.dropdown a {
  width: 100%;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border-bottom: 1px solid #fff;
  color: white;
  text-align: center;
}

div.dropdown > li {
  width: 100%;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border-bottom: 1px solid #fff;
  color: white;
  text-align: center;
}

.dropdown a:hover,
.dropdown a:active {
  background-color: rgb(100, 10, 10);
  transition: 0.4s ease;
}

@media screen and (min-width: 780px) {
  .hamburger {
    display: none;
  }

  .dropdown,
  .dropdown.is-active {
    display: none;
  }
}

@media screen and (max-width: 780px) {
  #header-logo {
    position: absolute;
    top: 3rem;
  }

  nav {
    position: relative;
    flex-direction: row-reverse;
    justify-content: space-around;
    margin-bottom: 8.2rem;
  }

  .nav-links {
    display: none;
  }

  .search-box form {
    margin: 0;
    flex-direction: row-reverse;
  }

  .search-box form input {
    border-radius: 0 2rem 2rem 0;
  }

  .search-box form button {
    border-radius: 2rem 0 0 2rem;
    padding-left: 0.2rem;
  }

  .dropdown.is-active {
    top: 3rem;
  }

  .dropdown-content {
    position: absolute;
    top: -5px;
    right: 194px;
    border-radius: 0.5rem;
  }
}
