body {
  background-color: #ffffff;
  color: #333333;
  font-family: "Arial", sans-serif;
  line-height: 1.6;
}

#navbar-global {
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  height: 60px;
  transition: color 0.3s ease-in-out;
}

.logo img {
  height: 100%;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #333333;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease-in-out;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #007bff;
  transition: width 0.3s ease-in-out;
}

.nav-links a:hover {
  color: #007bff;
}

.nav-links a:hover::after {
  width: 100%;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    background-color: #ffffff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    min-width: 200px;
    z-index: 1001;

    opacity: 0;
    visibility: hidden;
    transform: translateY(0px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.dropdown-menu li {
    margin: 0;
    padding: 0 20px;
}

.dropdown-menu a {
    display: block;
    padding: 8px 0;
    white-space: nowrap;
    position: static;
    font-weight: 400;
}

.dropdown-menu a::after {
    content: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
}


.dropdown-icon {
    display: inline-block;
    transform: rotate(-90deg);
    transition: transform 0.3s;
}

.dropdown:hover .dropdown-icon {
    transform: rotate(0deg);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #333333;
  margin-bottom: 4px;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 641px) {
  .main-nav {
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .logo {
    position: relative;
    right: 10vw;
    display: flex;
    align-items: center;
    height: fit-content;
    transition: color 0.3s ease-in-out;
  }

  .logo img {
    height: 50px;
    width: auto;
  }

  .nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
  }

  .nav-links.active {
    max-height: 500px;
  }

  .nav-links li {
    margin: 10px 0;
    text-align: center;
  }

  .dropdown-menu {
        position: static;
        box-shadow: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: max-height 0.5s ease-in-out;
        /* border-top: 1px solid #eee; */
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 500px;
    }

    .dropdown-icon {
        /* border-color: #333333; */
    }

    .dropdown-menu a:nth-last-child(1) {
      padding-bottom: 0;
    }

    .dropdown-menu li:nth-last-child(1) {
      margin-bottom: 0;
    }

  .hamburger {
    display: flex;
    position: absolute;
    right: 20px;
    top: 20px;
  }
}
