/* ===========================
   Hero Star – header.css
   (only the header / nav area)
   =========================== */

/* ---------- Wrapper ---------- */
.main-header {
  width: 100%;
  background-color: #333;
}

/* ---------- Top bar ---------- */
.top-bar {
  background-color: #000080;   /* navy */
  padding: 8px 20px;
  font-size: 0.9rem;
  color: #fff;
}

/* Generic link styling */
.contact-info a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}
.contact-info a:hover { color: #ff5722; }

/* ----- Large screens (≥ 601 px) ----- */
.contact-info.large-screen {
  display: flex;
  justify-content: space-between;   /* left block vs. right button */
  align-items: center;
}

.contact-info.large-screen .contact-left {
  display: flex;
  flex-direction: column;           /* <— puts phone & mail on 2 lines */
}

.contact-info.large-screen .contact-left span {
  display: block;                   /* ensure each takes its own row   */
  margin: 2px 0;
}

.contact-info.large-screen .contact-right .login-btn {
  background-color: #fff;
  color: #000080;
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.contact-info.large-screen .contact-right .login-btn:hover {
  background-color: #ff5722;
  color: #fff;
}

/* ----- Small screens (≤ 600 px) ----- */
.contact-info.small-screen { display: none; }

@media (max-width: 600px) {
  .contact-info.large-screen { display: none; }
  .contact-info.small-screen { display: block; }

  .contact-info.small-screen .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
  }
  .contact-info.small-screen .row span { margin: 0; display: block; }

  .contact-info.small-screen .login-btn {
    background-color: #fff;
    color: #000080;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  .contact-info.small-screen .login-btn:hover {
    background-color: #ff5722;
    color: #fff;
  }
}

/* ---------- Search bar ---------- */
.search-section {
  background-color: #000080;
  padding: 10px 20px;
  display: flex;
  justify-content: center;
}
.search-container {
  display: flex;
  align-items: center;
  max-width: 600px;
  width: 100%;
  border: 2px solid #000080;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
}
.search-container input {
  flex: 1;
  border: none;
  padding: 10px 15px;
  font-size: 1rem;
  outline: none;
  color: #000;
  border-right: 1px solid #ccc;
}
.search-container .search-btn {
  background: #000080;
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background-color .3s ease;
}
.search-container .search-btn:hover { background: #ff5722; }
@media (max-width: 600px) {
  .search-container { width: 100%; }
  .search-container input  { width: 70%; }
  .search-container .search-btn { width: 30%; }
}

/* ---------- Nav bar ---------- */
#nav-links {
  background: #000080;
  padding: 10px 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
}
#nav-links a,
#nav-links .dropbtn {
  background: #000080;
  color: #fff;
  padding: 5px 15px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color .3s ease, color .3s ease;
}
#nav-links a:hover,
#nav-links .dropbtn:hover,
#nav-links a.active,
#nav-links .dropbtn.active {
  background: #ff5722;
  color: #fff;
}

/* Dropdown */
.dropdown { position: relative; display: flex; align-items: center; }
.dropdown .dropbtn { cursor: pointer; }

/* Mobile nav layout */
@media (max-width: 600px) {
  #nav-links {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 5px;
  }
  #nav-links a,
  #nav-links .dropbtn { flex: 1 0 45%; margin-bottom: 5px; }
}