nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px;
  background-color: white;
  font-family: sans-serif;
}

.logo img {
  width: 100px;
  height: 100%;
  padding-left: 15px;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin-right: 20px;
}

.nav-links li.active a {
  background-color: #223965;
  color: white;
  font-weight: bold;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  padding: 12px 16px;
}

.nav-links a:hover {
  text-decoration: none;
  background-color: #223965;
  color: white;
  font-weight: bold;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 12px 20px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #223965;
  color: white;
}

.dropdown:hover .dropdown-content {
  display: block;
}



/*HAMBURGER MENU*/
.menu-icon {
  display: none;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 50%;
  width: 50px;
  height: 50px;
}

.menu-icon img {
  width: 30px;
  height: 30px;
}

/* Responsive Styles */
@media (max-width: 770px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        right: 0;
        width: 100%;
        background-color: #f9f9f9;
        flex-direction: column;
        align-items: flex-end;
        z-index: 999;
        transition: all 0.3s ease-in-out;
      }
  
    .nav-links li {
        margin: 0;
        padding: 15px 20px;
        text-align: right;
    }
  
    .nav-links li.active a {
        background-color: #f9f9f9;
        color: black;
        font-weight: bold;
    }
    
    .nav-links a:hover {
        text-decoration: none;
        background-color: #f9f9f9;
        color: black;
        font-weight: bold;
    }

    nav {
        display: flex;
    }

    .menu-icon {
        display: block;
        position: absolute;
        top: 30px;
        right: 10px;
    }


    .nav-links.active {
        display: flex;
    }

    .dropdown-content {
        position: relative;
        top: 100%;
        left: 0;
        text-align: left;
        background-color: #223965;
        min-width: 350px;
        box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
        z-index: 1;splay: block; /* Show the dropdown content on hover */
    }
    
    .dropdown-content a {
        color: white;
        padding: 12px 20px;
        text-decoration: none;
        display: block;
    }
}