/* HEADER */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Contain and center header content */
.header-top {
  max-width: 1360px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--white);
  gap: 30px;
}

/* Group logo + nav on the left */
.header-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 50px;
  width: auto;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  padding: 8px 12px;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--primary-color);
}

/* Dropdown Menu */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  min-width: 350px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown li {
  width: 100%;
}

.nav-dropdown a {
  display: block;
  padding: 10px 20px;
  color: var(--text-color);
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.nav-dropdown a:hover {
  background-color: var(--gray);
  color: var(--primary-color);
}

/* Right side: search + buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-btn {
  height: 45px;
  background-color: var(--secondary-color);
  color: var(--text-color);
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn img {
  width: 18px;
  height: 18px;
}

/* Dropdown arrow styling (like accordion arrow) */
.nav-dropdown-arrow {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-color);
  border-bottom: 2px solid var(--text-color);
  transform: rotate(45deg);
  margin-left: 6px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

/* On hover or active dropdown — rotate the arrow */
.nav-item:hover > .nav-link .nav-dropdown-arrow {
  transform: rotate(-135deg);
  border-color: var(--primary-color);
}

/* Buttons */
.btn {
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  /* border-radius: 4px; */
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-color);
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* HEADER */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}
/* Contain and center header content */
.header-top {
  max-width: 1360px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--white);
  gap: 30px;
}
/* Group logo + nav on the left */
.header-left {
  display: flex;
  align-items: center;
  gap: 40px;
}
/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img {
  height: 50px;
  width: auto;
}
/* Nav Menu */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
}
.nav-item {
  position: relative;
}
.nav-link {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  padding: 8px 12px;
  transition: color 0.3s ease;
}
.nav-link:hover,
.nav-link:focus {
  color: var(--primary-color);
}
/* Dropdown Menu */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  min-width: 350px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown li {
  width: 100%;
}
.nav-dropdown a {
  display: block;
  padding: 10px 20px;
  color: var(--text-color);
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.nav-dropdown a:hover {
  background-color: var(--gray);
  color: var(--primary-color);
}
/* Right side: search + buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-btn {
  height: 45px;
  background-color: var(--secondary-color);
  color: var(--text-color);
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-btn img {
  width: 18px;
  height: 18px;
}
/* Dropdown arrow styling (like accordion arrow) */
.nav-dropdown-arrow {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-color);
  border-bottom: 2px solid var(--text-color);
  transform: rotate(45deg);
  margin-left: 6px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
/* On hover or active dropdown — rotate the arrow */
.nav-item:hover > .nav-link .nav-dropdown-arrow {
  transform: rotate(-135deg);
  border-color: var(--primary-color);
}
/* Buttons */
.btn {
  padding: 10px 20px;
  border: none;.
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  /* border-radius: 4px; */
}
.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}
.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-color);
}
.btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}


.header-search {
  display: none;
  position: absolute;
  inset: 0;
  background: var(--white);
  z-index: 120;
  align-items: center;
  justify-content: center;
}
.header-search.active {
  display: flex;
}
.header-search form {
  display: flex;
  align-items: center;
  background: #f6f6f6;
  padding-right: 0px;
  border-radius: 3px;
  width: 360px;
  height: 36px;
  position: relative;
}
.header-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 0 10px;
  font-size: 1rem!important;
}
.header-search button[type="submit"] {
  background: #E2DCB7;
  border: none;
  cursor: pointer;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-search button[type="submit"] img {
  width: 16px;
  height: 16px;
}
.header-search .search-back {
  position: absolute;
  left: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-search .search-back img {
  width: 18px;
  height: 18px;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}
.header-search .search-back:hover img {
  opacity: 1;
}
.header-search .search-back .nav-dropdown-arrow {
  transform: rotate(135deg); 
  border-color: var(--text-color);
  margin: 0;
  width: 10px;
  height: 10px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.header-search .search-back:hover .nav-dropdown-arrow {
  opacity: 1;
}

 @media (max-width: 768px) {
    .nav-menu li{
        padding: 0px 8px;
    }
 }
 
