/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Header wrapper */
.header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

/* Navbar layout */
.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Logo styling */
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo i {
  margin-right: 8px;
  color: #007bff;
}

/* Desktop nav container */
.nav-container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Nav links desktop */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #007bff;
}

/* Search box */
.search-box {
  display: flex;
  align-items: center;
  background: #f1f1f1;
  padding: 6px 12px;
  border-radius: 20px;
}

.search-box i {
  margin-right: 8px;
  color: #555;
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.9rem;
}

/* Hamburger icon (hidden on desktop) */
.menu-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  display: none;
  color: #333;
  cursor: pointer;
  position: relative;
  z-index: 1100;
}

/* ===================== */
/* Mobile View (max 768) */
/* ===================== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-container {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 0.5rem 1rem;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border-radius: 0 0 8px 8px;
  }

  .nav-container.show {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .nav-links a {
    padding: 0.6rem 0;
    width: 100%;
    font-weight: 500;
    border-bottom: 1px solid #eee;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .search-login {
    width: 100%;
    margin-top: 0.75rem;
  }

  .search-box {
    width: 100%;
  }

  .search-box input {
    width: 100%;
  }
}
