/* Desktop stays the same */
header {
  height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-bottom: 2.4px solid #122983;
}

.top-header {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 10px;
  position: relative;
}

.logo {
  max-width: 100px;
  height: auto;
  margin-right: 50px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
  font-family: helvetica, sans-serif;
  font-weight: 700;
}

.nav-links li a {
  text-decoration: none;
  color: #122983;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: rgb(25, 116, 214);
}

.header-line {
  height: 3px;
  background-color: #30469c;
  width: 100%;
}

/* Hamburger Icon */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 55px;
  height: 55px;
  background: none;
  border: 2px solid #0b1644;
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  /* margin-left: 40%; */
  position: absolute;
  right: -50px;
  top: 12%;
  transform: translateY(-50%);
  align-items: center;
  transform: rotate(180deg);
}

.hamburger span {
  display: none;  
  display: block;
  width: 90%;
  height: 3px;
  /* justify-content: center;
  align-items: center; */
  background-color: #0b1644;
  border-radius: 2px;
  transform: rotate(180deg);
}


.close-btn {
  display: none;              /* hide on desktop */
}

/* Mobile Styles */
@media (max-width: 768px) {
  .top-header {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .logo {
    margin: 20px auto; /* center horizontally */
    margin-top: 30px;
    margin-bottom: 30px;
  }

  /* Optional: move hamburger below or above logo depending on design */
  .hamburger {
    /*position: absolute;*/
    top: 20px;
    right: -110px;
  }

  .close-btn {
    display: block;              /* hide on desktop */
    position: absolute;
    top: 40px;
    right: 40px;
    width: 55px;
    height: 55px;
    padding: 0;
    background: none;
    border: 1px solid #263d98;  /* thin square border */
    border-radius: 0px;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: #122983;
    display: flex;
    align-items: center;
    justify-content: center;
  }


  .nav-links {
    display: none;
    flex-direction: column;
    gap: 25px;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 70%;
    background: white;
    padding: 100px 20px 20px;
    box-shadow: -4px 0 8px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  .nav-links li {
    text-align: left;
  }

  .nav-links li a {
    font-size: 18px;
    color: #555;
  }

  .nav-links li a.active {
    color: rgb(25, 116, 214);
  }

  .nav-links.open {
    display: flex;
    animation: slideIn 0.3s ease forwards;
  }

  @keyframes slideIn {
    from { right: -100%; }
    to { right: 0; }
  }

  .hamburger {
    display: flex;
  }
}
