/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4; /* Subtle background for better contrast */
  margin: 0;
  padding: 0;
}

/* Header Container */
header {
  background-color: #ffffff; /* Clean white background for header */
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); /* Add subtle shadow */
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Logo Styling */
.logo img {
  width: 100px; /* Adjusted for better alignment */
  height: auto;
}

/* Search Bar Styling */
.search-bar {
  flex: 3; /* Ensures the search bar takes more space */
  display: flex;
  justify-content: flex-start; /* Aligns it closer to the left */
}

.search-bar input {
  padding: 8px 12px;
  width: 100%; /* Adjust width for better responsiveness */
  max-width: 350px;
  border-radius: 30px;
  border: 5px solid #ddd;
  outline: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.search-bar input::placeholder {
  color: #999;
}

.search-bar input:focus {
  border: 3px solid #1FB25F; /* Highlight the border on focus */
}

/* Header Links Styling */
.header-links {
  flex: 6; /* Adjust for better alignment */
  display: flex;
  justify-content: flex-end;
  gap: 10px; /* Spacing between buttons */
}

.header-links a {
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
  transition: all 0.3s ease;
  size: 50px;
}

.header-links .btn-login {
  background-color: transparent;
  color: #333;
  border: 2px solid #333;
}

.header-links .btn-signup {
  background-color: #1FB25F;
  color: white;
  border: none;
}

.header-links .btn-login:hover {
  background-color: #333;
  color: white;
}

.header-links .btn-signup:hover {
  background-color: white;
  color: #1FB25F;
}

/* Hamburger Menu */
.hamburger-menu {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 25px;
}

.hamburger-menu span {
  width: 100%;
  height: 4px;
  background-color: #333;
  border-radius: 5px;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background-color: #ffffff;
  position: absolute;
  top: 70px;
  right: 0;
  width: 200px;
  padding: 10px 0;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); /* Add shadow for a floating effect */
}

.mobile-menu a {
  padding: 10px 20px;
  text-decoration: none;
  color: #333;
  font-size: 16px;
}

.mobile-menu a:hover {
  background-color: #f5f5f5;
}

/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: stretch; /* Ensures proper alignment for smaller screens */
  }

  .search-bar {
    width: 100%;
    margin: 10px 0;
  }

  .search-bar input {
    width: calc(70% - 20px); /* Adjust for better mobile usability */
  }

  /* Show Hamburger Menu on Mobile */
  .hamburger-menu {
    display: flex;
  }


  /* Mobile menu active state */
  .mobile-menu.active {
    display: flex;
  }
}
