header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 52px !important;
}

.desktop_menu {
  max-width: 652px;
  width: 100%;
}

header ul {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

header ul li a {
  text-decoration: none;
  font-weight: 400;
  font-size: 18px;
  color: #000;
}

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-around;
  width: 25px;
  height: 25px;
}

.burger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #000;
}

.mobile-menu {
  display: none;
}

@media (max-width: 480px) {

  header {
    padding-top: 20px !important;
  }

  header ul {
    display: none;
    flex-direction: column;
    text-align: center;
  }

  .mobile-menu {
    display: block;
  }

  .burger {
    display: flex;
  }

  .burger.active + nav ul {
    display: flex;
  }

  .navbar .menu-items {
    display: flex;
    padding-top: 150px;
  }

  .navbar .nav-container li {
    list-style: none;
    text-align: center;
  }

  .navbar .nav-container a {
    padding: 0.7rem;
    text-decoration: none;
    font-weight: 400;
    font-size: 18px;
    color: #000;
  }

  .navbar .nav-container a:hover {
    font-weight: bolder;
  }

  .nav-container {
    display: block;
    position: relative;
    height: 60px;
  }

  .nav-container .checkbox {
    position: absolute;
    display: block;
    height: 32px;
    width: 32px;
    top: 20px;
    right: 0;
    z-index: 5;
    opacity: 0;
    cursor: pointer;
  }

  .nav-container .hamburger-lines {
    display: block;
    height: 20px;
    width: 25px;
    position: absolute;
    top: 17px;
    right: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .nav-container .hamburger-lines .line {
    display: block;
    height: 3px;
    width: 100%;
    border-radius: 10px;
    background: #0e2431;
  }

  .nav-container .hamburger-lines .line1 {
    transform-origin: 0% 0%;
    transition: transform 0.4s ease-in-out;
  }

  .nav-container .hamburger-lines .line2 {
    transition: transform 0.2s ease-in-out;
  }

  .nav-container .hamburger-lines .line3 {
    transform-origin: 0% 100%;
    transition: transform 0.4s ease-in-out;
  }

  .menu-items {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100%;
    background-color: #fff;
    transform: translateX(100%);
    transition: transform 0.5s ease;
    display: flex;
    flex-direction: column;
    padding-top: 100px;
    z-index: 3;
  }

  .navbar .menu-items li {
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    font-weight: 500;
  }

  .logo {
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 1.2rem;
    color: #0e2431;
  }

  .nav-container input[type="checkbox"]:checked ~ .menu-items {
    transform: translateX(0);
  }

  .nav-container input[type="checkbox"]:checked ~ .hamburger-lines,
  .nav-container input[type="checkbox"]:checked {
    position: fixed; /* Make both checkbox and hamburger fixed */
    top: 37px;
    right: 20px; /* Adjust position as needed */
  }

  .nav-container input[type="checkbox"]:checked {
    z-index: 101; /* Ensure the checkbox remains clickable */
  }

  .nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line1 {
    transform: rotate(45deg);
  }

  .nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line2 {
    transform: scaleY(0);
  }

  .nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line3 {
    transform: rotate(-45deg);
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  header {
    padding-top: 20px !important;
  }

  header ul {
    display: none;
    flex-direction: column;
    text-align: center;
  }

  .mobile-menu {
    display: block;
  }

  .burger {
    display: flex;
  }

  .burger.active + nav ul {
    display: flex;
  }

  .navbar .menu-items {
    display: flex;
  }

  .navbar .nav-container li {
    list-style: none;
  }

  .navbar .nav-container a {
    text-decoration: none;
    color: #0e2431;
    font-weight: 500;
    font-size: 1.2rem;
    padding: 0.7rem;
  }

  .navbar .nav-container a:hover {
    font-weight: bolder;
  }

  .nav-container {
    display: block;
    position: relative;
    height: 60px;
  }

  .nav-container .checkbox {
    position: absolute;
    display: block;
    height: 32px;
    width: 32px;
    top: 20px;
    right: 0;
    z-index: 5;
    opacity: 0;
    cursor: pointer;
  }

  .nav-container .hamburger-lines {
    display: block;
    height: 26px;
    width: 32px;
    position: absolute;
    top: 17px;
    right: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .nav-container .hamburger-lines .line {
    display: block;
    height: 4px;
    width: 100%;
    border-radius: 10px;
    background: #0e2431;
  }

  .nav-container .hamburger-lines .line1 {
    transform-origin: 0% 0%;
    transition: transform 0.4s ease-in-out;
  }

  .nav-container .hamburger-lines .line2 {
    transition: transform 0.2s ease-in-out;
  }

  .nav-container .hamburger-lines .line3 {
    transform-origin: 0% 100%;
    transition: transform 0.4s ease-in-out;
  }

  .menu-items {
    padding-left: 30px;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 60%;
    background-color: #fff;
    transform: translateX(100%);
    transition: transform 0.5s ease;
    display: flex;
    flex-direction: column;
    padding-top: 100px;
    z-index: 2;
  }

  .navbar .menu-items li {
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    font-weight: 500;
  }

  .logo {
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 1.2rem;
    color: #0e2431;
  }

  .nav-container input[type="checkbox"]:checked ~ .menu-items {
    transform: translateX(0);
  }

  .nav-container input[type="checkbox"]:checked ~ .hamburger-lines,
  .nav-container input[type="checkbox"]:checked {
    position: fixed; /* Make both checkbox and hamburger fixed */
    top: 37px;
    right: 20px; /* Adjust position as needed */
  }

  .nav-container input[type="checkbox"]:checked {
    z-index: 101; /* Ensure the checkbox remains clickable */
  }

  .nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line1 {
    transform: rotate(45deg);
  }

  .nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line2 {
    transform: scaleY(0);
  }

  .nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line3 {
    transform: rotate(-45deg);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  header img {
    max-width: 160px;
  }
  nav {
    max-width: 600px;
  }

  ul li a {
    font-size: 16px;
  }
}
