/* ---------- HEADER + NAV ---------- */
.main-header {
  width: 100%;
  background: linear-gradient(90deg, #004aad, #0078d7);
  color: white;
  padding: 10px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.4em;
  font-weight: bold;
}

.logo img {
  width: 45px;
  height: 45px;
  margin-right: 10px;
  border-radius: 50%;
  background: white;
  padding: 3px;
}

.navbar {
  flex: 1;
  text-align: center;
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #ffdd57;
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 35px;
  left: 0;
  background: white;
  color: #333;
  display: none;
  flex-direction: column;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-radius: 6px;
  min-width: 180px;
}

.dropdown-menu li a {
  color: #333;
  padding: 10px 15px;
  display: block;
}

.dropdown-menu li a:hover {
  background: #f2f2f2;
}

.dropdown:hover .dropdown-menu {
  display: flex;
}

/* Search box */
.search-box {
  margin-left: 15px;
}

.search-box input {
  border: none;
  padding: 7px 12px;
  border-radius: 20px;
  outline: none;
  font-size: 14px;
  width: 160px;
  transition: width 0.3s;
}

.search-box input:focus {
  width: 220px;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 26px;
}

@media (max-width: 900px) {
  .nav-links {
    flex-direction: column;
    background: #0058c0;
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    text-align: left;
    display: none;
  }

  .navbar.active .nav-links {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .search-box {
    display: none;
  }
}
