/* <!-- NAVBAR ---------------------------------------------------------------------------------------------> */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 11vh;
  background-color: #0b1c41bd;
  color: white;
  padding: 0.625rem 1.25rem;
  font-size: 1.75rem;
  font-weight: 900;
  z-index: 1000;
}

#menu-icon {
  font-size: 5rem;
  z-index: 10001;
  cursor: pointer;
  display: none;
  height: 100%;
}

.mobile-logo {
  display: none;
  position: absolute;
}

.menu-content {
  display: flex;
  justify-content: space-between;
  /* Distribute space between the left, logo, and right sections */
  align-items: center;
  /* Vertically center items */
}

.nav-left {
  display: flex;
  /* Display the list items inline */
  flex: auto;
  justify-content: flex-end;
  align-items: center;
}

.nav-center {
  display: flex;
  justify-content: center;
  /* Center the logo horizontally */
  flex: 2.8;
  /* Prevent the center section from growing */
}

.nav-center a {
  display: flex;
}

.nav-center img {
  max-height: 5rem;
}

.nav-right {
  display: flex;
  /* Display the list items inline */
  flex: auto;
  justify-content: flex-start;
  align-items: center;
}

/* <!-- Icons ----------------!> */
.nav-icons {
  display: flex;
  flex: auto;
  gap: 1.875rem;
  justify-content: flex-start;
  align-items: center;
}

.nav-icons .icon {
  width: 1.5rem;
  height: 1.5rem;
}

/* Instagram */
.instagram {
  background-image: url("/assets/icons/instagram.png");
  background-size: contain;
}

/* Twitter */
.twitter {
  background-image: url("/assets/icons/twitter.png");
  background-size: contain;
}

/* <!-- Language + Dropdown ----------------!> */
/* Language */
.language {
  background-image: url("/assets/icons/language.png");
  background-size: contain;
  display: none; /* Bring back later */
}

.nav-icons .language {
  position: relative;
}

/* Dropdown */
.nav-icons .language .dropdown {
  display: none;
  position: absolute;
  top: 0;
  /* Adjust as needed to position it below the icon */
  left: -4rem;
  background-color: white;
  padding: 0.625rem;
  text-align: center;
  z-index: 1001;
}

.nav-icons .language .dropdown a {
  display: block;
  color: #1C449B;
  padding: 0.5rem 1.25rem;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 900;
}

.nav-icons .language .dropdown a:hover {
  color: #0B1C41;
}

/* Show the dropdown when hovering over the language icon */
.nav-icons .language:hover .dropdown {
  display: block;
}

/* <!-- Buttons ----------------!> */
.nav-btn {
  text-decoration: none;
  background-color: #0B1C41;
  color: white;
  padding: 0.75rem 1.875rem;
  text-align: center;
  margin: 0.625rem;
  transition: background-color 0.3s;
  height: 90%;
}

.nav-left ul, .nav-right ul {
  display: flex;
  gap: 1.875rem;
  list-style: none;
}

.nav-left ul li, .nav-right ul li {
  margin: 0 1rem;
  /* Space between navigation items */
}

.nav-left .links, .nav-right .links {
  text-decoration: none;
  color: white;
}

/* <!-- NAVBAR Hover States ----------------!> */
.nav-left .links:hover, .nav-right .links:hover {
  border-bottom: 0.3rem solid white;
  transition: 0.1s;
}

.nav-btn:hover {
  background-color: white;
  color: #0B1C41;
  transition: background-color 0.3s;
}

/* <!-- MEDIA QUERIES ---------------------------------------------------------------------------------------------> */
/* <!-- Laptop ----------------!> */
@media only screen and (min-width: 1025px) and (max-width: 1440px) {
  .navbar {
    padding: 0.625rem 1.25rem;
    font-size: 1.3rem;
  }

  .nav-center img {
    max-height: 4.5rem;
  }

  .nav-left {
    flex: none;
  }

  .nav-center {
    flex: 5;
  }

  .nav-right {
    flex: none;
  }

  .nav-icons {
    gap: 1.25rem;
  }

  .nav-icons .icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  .nav-left ul, .nav-right ul {
    gap: 1.5rem;
  }

  .nav-icons .language .dropdown a {
    font-size: 1rem;
  }
}

/* <!-- Desktop + Scale (125% Scale) ----------------!> */
@media (max-width: 1536px) and (min-width: 1535px) and (min-resolution: 120dpi) and (max-resolution: 121dpi) {
  .navbar {
    padding: 0.5rem 8rem;
    font-size: 1.25rem;
  }

  .nav-center img {
    max-height: 4rem;
  }

  .nav-left {
    flex: none;
  }

  .nav-center {
    flex: 2.5;
  }

  .nav-right {
    flex: none;
  }

  .nav-icons {
    gap: 1rem;
  }

  .nav-icons .icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  .nav-left ul, .nav-right ul {
    gap: 0.5rem;
  }

  .nav-icons .language .dropdown a {
    font-size: 0.75rem;
  }
}

/* <!-- Desktop + Scale (150% Scale) ----------------!> */
@media (max-width: 1280px) and (min-width: 1279px) and (min-resolution: 144dpi) and (max-resolution: 145dpi) {
  .navbar {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }

  .nav-center img {
    max-height: 3.25rem;
  }

  .nav-left {
    flex: none;
  }

  .nav-center {
    flex: 5;
  }

  .nav-right {
    flex: none;
  }

  .nav-icons {
    gap: 1rem;
  }

  .nav-icons .icon {
    width: 1rem;
    height: 1rem;
  }

  .nav-left ul, .nav-right ul {
    gap: 1rem;
  }

  .nav-icons .language .dropdown a {
    font-size: 0.75rem;
  }
}

@media only screen and (max-width: 767px),
only screen and (orientation: portrait) {
  .navbar {
    height: 10vh;
    width: 100vw;
    padding: 0;
    transition: 0.3s ease;
    background-color: #0b1c41f5;
    font-size: 1.5rem;
  }

  .menu-content {
    display: none;
    /* Initially hide the menu */
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    align-items: center;
    padding: 8rem 0;
    gap: 4rem;
    text-align: center;
  }

  .menu-content ul {
    flex-direction: column;
    gap: 4rem;
  }

  .menu-content ul li {
    margin: 0;
  }

  .nav-btn {
    border: 0.3rem solid white;
  }

  .nav-left, .nav-right {
    display: contents;
    flex: auto;
  }

  .nav-icons {
    margin-top: 0;
    justify-content: center;
    gap: 3rem;
    align-items: flex-start;
  }

  .mobile-logo{
    display: block;
    height: 10vh;
    padding: 1rem 0 1rem 1rem;
  }

  .mobile-logo img {
    max-height: 100%;
  }

  #menu-icon {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: absolute;
    top: 0;
    right: 1rem;
    height: 10vh;
  }

  .menu-active .menu-content {
    display: flex;
  }

  .nav-center {
    display: none;
  }

  .nav-icons .language .dropdown {
    display: none;
    position: absolute;
    top: -5rem;
    /* Adjust as needed to position it below the icon */
    left: -15rem;
    background-color: white;
    padding: 0.625rem;
    text-align: center;
    z-index: 1001;
  }

  .nav-icons .language:hover .dropdown {
    display: flex;
  }

  .nav-icons .language .dropdown.visible {
    display: flex;
  }
}
