/* HEADER */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 10001;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid #423780;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.header_wrap {
  /* We add position: relative here so the mobile logo positions itself relative to this box */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
  height: 100%;
}

/* LOGO - Desktop Default (Left aligned) */
.logo {
  flex: 0 0 auto;
  margin-right: auto; /* Pushes everything else to the right on desktop */
  position: relative;
  z-index: 1;
}

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

/* SEARCH */
.header-search {
  flex: 1;
  max-width: 400px;
  margin: 0 40px;
  min-width: 200px;
}

.header-search form {
  display: flex;
  position: relative;
}

.header-search input.text {
  flex: 1;
  padding: 12px 44px 12px 16px;
  border: none;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 14px;
  font-style: italic;
  transition: all 0.3s ease;
}

.header-search input.text::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.header-search input.text:focus {
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.header-search .submit {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: url(images/search.png) no-repeat center / 18px;
  width: 32px;
  height: 32px;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  opacity: 0.7;
}

.header-search .submit:hover {
  opacity: 1;
}

/* BUTTONS */
.btns {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  z-index: 2; /* Ensures buttons stay on top of logo if they overlap */
}

.btns ul {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.btns a,
.btn-slide,
.btns button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btns a:hover,
.btn-slide:hover,
.btns button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btns svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.icon {
  font-size: 16px;
  color: #fff;
  pointer-events: none;
}

.empty {
  display: none;
}


/* RESPONSIVE */
@media (max-width: 768px) {
  .header_wrap {
    padding: 0 12px;
  }
  .header-search {
    margin: 0 15px;
    max-width: 250px;
  }

}

/* MOBILE SPECIFIC CHANGES */
@media (max-width: 480px) {
  .header-search {
    display: none;
  }
  .logo img {
    height: 40px;
  }
  /* === This centers the logo ONLY on mobile === */
  .logo {
    position: absolute; /* Takes it out of the flex flow */
    left: 50%; /* Move to middle of screen */
    transform: translateX(-50%); /* Shift back by 50% of its own width to center exactly */
    margin: 0; /* Remove the desktop margin-right */
  }
}