/* Reset styles this is a bad idea */
* {
  margin: 0;
  padding: 0;
}
html {
  box-sizing: border-box;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}
body {
  font-family: "Arial", sans-serif;
  font-size: 0.9375rem; /* use rem instead*/
  line-height: 1.6;
  color: #666;
  background-color: #fff;
}

header {
  background: #3f61a1;
  color: #fff;
}

.logobar {
  width: 1200px;
  max-width: 100%;
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.pngsvg {
  width: 21px;
}
.mlogo {
  width: 320px; /* Adjust image size */
  padding-top: 10px;
  margin-right: auto;
  height: auto;
}

.logobar > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.text-wrp {
  font-size: 12px;
  display: flex;
  flex-direction: column;
}
.toptext {
  font-weight: bold;
  font-size: 12px;
}
nav {
  display: flex;
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
}
.topnav {
  position: relative;
  display: flex;
  background-color: #3f61a1;
  font-weight: 600;
}
.topnav a {
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 15px;
}
.active {
  color: 44bef1;
}
.hamburger {
  display: none;
  appearance: none;
  border: none;
  background: transparent;
  margin: 0;
  padding: 0;
}
.hamburger i.fa-bars {
  font-size: 24px;
  color: white;
  cursor: pointer;
  padding: 14px 16px;
}
.dropdown {
  position: relative;
}
.dropbtn {
  font-size: 15px;
  font-weight: 600;
  border: none;
  outline: none;
  color: white;
  padding: 17px 16px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
  white-space: nowrap;
}

.dropdown-content {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  left: 0;
  top: 100%;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  transform: translateY(20px); /* Start lower */
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.dropdown-content a {
  color: black;
  padding: 18px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.topnav a:hover,
.dropdown:hover .dropbtn {
  color: #44bef1;
}
.dropdown-content a:hover {
  background-color: #ddd;
  color: black;
}
.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: initial;
}
.dropbtn i {
  transition: transform 0.3s ease-in-out;
}
.dropdown:hover .dropbtn i {
  transform: rotate(180deg);
}

@media screen and (max-width: 600px) {
  nav {
    align-items: flex-start;
  }
  .hamburger {
    display: block;
  }
  .topnav {
    display: none;
  }
  .topnav.responsive {
    display: block;
    padding: 1rem 0;
  }
  .topnav .dropdown:hover .dropdown-content {
    display: flex;
  }
  .dropdown,
  .dropdown-content {
    display: flex;
    position: static;
    width: auto;
    align-items: center;
  }
  .dropdown-content a {
    padding: 5px 10px;
  }
  .dropdown:hover .dropbtn i {
    transform: rotate(-90deg);
  }
}
