.header {
  width: 100%;
  background: #181d45;
  color: white;
  padding: 15px 0; /* Consistent padding for both desktop and tablet */
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  position: relative;
  height: 60px; /* Fix the height for all screen sizes */
}

.navbar {
  width: 100%;
  max-width: 1225px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
  display: block;
  padding-left: 15px; /* Added padding to the left */
}

.navbar-brand-link {
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  font-size: 1.5rem;
  cursor: pointer;
}

.navbar-menu {
  display: flex;
  justify-content: flex-end; /* Align navigation items to the right */
  flex-grow: 1; /* Allow the navbar items to take the remaining space */
}

.navbar-item {
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  cursor: pointer;
}

.navbar-item:hover, .navbar-brand-link:hover {
  background-color: #0a0e37;
}

.back-button {
  display: none; /* Hidden in fullscreen mode */
  position: absolute;
  top: 50%;
  left: 30px;
  transform: translateY(-50%);
  background-color: rgb(250, 110, 50);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1rem;
  text-align: center;
}

.back-button:hover {
  background-color: #d97d2f;
}

@media (max-width: 1000px) {
  .navbar-menu {
    display: none;
  }

  .navbar-brand {
    display: block; /* Show brand name in tablet mode */
    justify-content: center;
    text-align: center;
    width: 100%;
    position: absolute;
    left: 50%;
    right: 0;
    top: 75%;
    transform: translate(-50%, -50%); /* Ensure it is centered both horizontally and vertically */
  }

  .navbar-brand a.navbar-brand-link {
    display: inline-block;
    color: white;
    text-decoration: none;
    padding: 15px 0;
    font-size: 1.5rem;
  }

  .header {
    padding: 30px 0; /* Increase padding for tablet mode */
  }
}
