/* General styles */
.header {
  background-color: #ffffff;
  padding: 10px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.logo {
  width: 100px;
  flex-shrink: 0;
}

.logoImg {
  max-width: 100%;
  object-fit: contain;
}

.nav ul {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.nav ul li a {
  color: #1a1a1a;
  font-weight: 600;
}

.header .login-btn {
  background-color: var(--green-color);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 700;
}

.header .search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-grow: 1;
  max-width: 400px;
}

.form-field {
  position: relative;
  width: 100%;
}

.form-field input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  outline: none;
  transition: all 0.2s ease-in-out;
}

.form-field label {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  background-color: white;
  padding: 0 0.25rem;
  color: #666;
  transition: all 0.2s ease-in-out;
  pointer-events: none;
}

.form-field input:focus,
.form-field input:not(:placeholder-shown) {
  border-color: var(--green-color);
  border-width: 2px;
}

.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label {
  top: 0;
  font-size: 0.8rem;
  color: var(--green-color);
}

[dir="rtl"] .form-field label {
  right: 1rem;
  left: auto;
}

.header .search-form .submit-btn {
  background-color: var(--green-color);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

/* Menu toggle button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--green-color);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
}

.mobile-actions {
  display: none;
}

/* Responsive styles */
@media (max-width: 1200px) {
  .header .header-content {
    gap: 30px;
  }
}

@media (max-width: 992px) {
  .header .header-content {
    gap: 20px;
  }

  .nav ul {
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .header .header-content {
    justify-content: space-between;
  }

  .search-form.desktop-search-form {
    display: none;
  }

  .search-form {
    width: 100% !important;
    max-width: 100% !important;
  }

  .nav {
    order: 3;
    width: 100%;
  }

  .nav ul {
    justify-content: space-between;
    margin-top: 15px;
  }

  .header .search-form {
    order: 2;
    max-width: 300px;
  }
}

@media (max-width: 576px) {
  .logo {
    width: 80px;
  }

  .header .search-form {
    max-width: 200px;
  }

  .nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .header .login-btn {
    padding: 6px 12px;
    font-size: 14px;
  }

  .form-field input {
    padding: 0.5rem;
    font-size: 14px;
  }

  .header .search-form .submit-btn {
    padding: 6px 12px;
  }

  .menu-toggle {
    display: block;
    order: 1;
  }

  .nav {
    display: none;
  }

  .nav.active {
    display: block;
  }

  /* Hide desktop login button and search form on small screens */
  .desktop-login-btn,
  .desktop-search-form {
    display: none;
  }

  /* Mobile actions styling */
  .mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
  }

  .mobile-actions .login-btn {
    width: 100%;
    text-align: center;
  }

  .mobile-actions .search-form {
    width: 100%;
  }

  .mobile-actions .form-field input {
    width: 100%;
  }

  .mobile-actions .submit-btn {
    width: 100%;
  }
}
