@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap');

* {
  padding: 0;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

header {
  z-index: 100;
  display: flex;
  align-items: center;
  background-color: #20368F;
  flex-direction: column;
  width: 100%;
}

.header-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.main-header {
  height: auto; 
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background-color: #20368F;
}

.logo {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.logo img {
  height: 50px;
  margin-right: 10px;
}

.logo label {
  color: white;
  font-size: clamp(12px, 2vw, 24px);
  font-weight: 600;
  white-space: nowrap;
}

.header-btn-container {
  display: flex;
  gap: 10px;
  align-items: center;
}

.loginbtn {
  font-size: clamp(10px, 2vw, 16px);
  font-weight: 600;
  padding: 5px 10px;
}

.bottom-header {
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0C2673;
  color: white;
  padding: 10px 20px;
  gap: 15px;
  overflow-x: auto;
  white-space: nowrap;
}

.bottom-header a {
  color: white;
  font-size: clamp(10px, 2vw, 14px);
  font-weight: 600;
  text-decoration: none;
  padding: 5px 10px;
}

.bottom-header a:hover {
  color: cyan;
}

/* Responsive Adjustments */
@media screen and (max-width: 1024px) {
  .main-header {
    flex-direction: column;
    text-align: center;
  }
  
  .header-btn-container {
    margin-top: 10px;
  }
}

@media screen and (max-width: 768px) {
  .logo img {
    height: 40px;
  }

  .logo label {
    font-size: 18px;
  }

  .loginbtn {
    font-size: 14px;
  }

  .bottom-header {
    gap: 8px;
  }

  .bottom-header a {
    font-size: 12px;
    padding: 5px;
  }
}

@media screen and (max-width: 480px) {
  .main-header {
    padding: 10px;
  }

  .main-header {
    height: auto; 
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background-color: #20368F;
  }

  .logo img {
    height: 35px;
  }

  .logo label {
    font-size: 16px;
  }

  .header-btn-container {
    flex-direction: column;
    gap: 5px;
  }

  .bottom-header {
    padding: 5px;
    gap: 5px;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .bottom-header a {
    font-size: 10px;
  }
}
