/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
}

/* Container */
.container {
  width: 90%;
  max-width: 1500px;
  margin: auto;
}

/* Header */
header {
  background-color: #ffffff;
  border-bottom: 1px solid #ddd;
  position: relative;
}

/* Top Header */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 15px 0;
  flex-wrap: wrap;
}

.logo {
  font-size: 26px;
  font-weight: bold;
  color: #003366;
  text-decoration: none;
  flex-shrink: 0;
}

.search-form {
  flex: 1;
  display: flex;
  max-width: 500px;
}

.search-form input {
  flex: 1;
  padding: 8px 16px;
  border: 1px solid #ccc;
  border-right: none;
  border-radius: 20px 0 0 20px;
  font-size: 14px;
  outline: none;
}

.search-form button {
  padding: 8px 16px;
  background-color: #003366;
  color: white;
  border: 1px solid #003366;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

.search-form button:hover {
  background-color: #0059b3;
}

.contact-info {
  flex-shrink: 0;
  white-space: nowrap;
}

.contact-info p {
  margin: 0;
  font-size: 14px;
  color: #555;
}

/* Nav Bar */
.nav-bar {
  background-color: #ffffff;
  border-top: 1px solid #eee;
}

.nav-bar ul {
  list-style: none;
  display: flex;
  justify-content: flex-start;
  gap: 25px;
  padding: 12px 0;
  margin: 0;
  flex-wrap: wrap;
}

.nav-bar a {
  color: #003366;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 5px;
  transition: background 0.3s, color 0.3s;
}

.nav-bar a:hover {
  background-color: #f0f0f0;
  color: #0059b3;
}

/* ========== Responsive ========== */
.menu-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .top-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-form {
    width: 100%;
    margin-top: 10px;
  }

  .contact-info {
    margin-top: 10px;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .nav-bar ul {
    flex-direction: column;
    display: none;
    width: 100%;
    gap: 10px;
    padding: 10px 0;
  }

  .nav-bar ul.active {
    display: flex;
  }

  .nav-bar a {
    padding: 10px 16px;
    width: 100%;
  }
}
