.custom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: white; /* Set background to transparent */
    color: white;
    font-family: 'Poppins', sans-serif;
    position: sticky!important;
    top: 0!important;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.account-btn-header {
    background-color: white;
    color: var(--brand, #0C3B5D);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: normal;
}

.account-btn-header :hover {
    color: black;
    border: solid 1px var(--brand-3, #B79366)!important;
    cursor: pointer;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo-placeholder {
    width: 100px;
    height: auto;
    background-color: white;
    color: #0073e6;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-middle {
    position: relative;
    flex-grow: 1;
    max-width: 500px;
}

#live-search {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 1rem;
    color: black;
}

#search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    color: black;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

#search-results div {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

#search-results div:hover {
    background-color: #f0f0f0;
}

/* Right area */
.header-right {
    display: flex;
    align-items: center;
    position: relative; /* Needed for absolutely positioning the profile image */
}

/* Chevron */
.chevron {
    font-size: 1.2rem;
    color: var(--brand, #0C3B5D);
    cursor: pointer;
    margin-right: 80px;
}

/* Container that holds the Account/Logout links */
.account-menu {
    display: none; /* Hidden by default; toggled via JS */
    position: absolute;
    right: 60px; /* Positions just left of the profile image */
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 5px 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 50px;
}

.account-menu a {
    display: block;
    margin: 5px 0;
}

/* Profile image on absolute right */
.profile-image {
    width: 42px;
    border-radius: 100%;
    margin-right: 5px;
    margin-left: 5px;
    position: absolute;
    right: 0;
}

/* Hide the search bar on mobile */
@media (max-width: 767px) {
    .header-middle {
        display: none;
    }
}

.header-right {
    position: relative;
    display: flex;
    align-items: center;
    /* ensure no hidden overflow */
    overflow: visible;
  }
  
  .chevron {
    cursor: pointer;
    /* push it left so the absolute profile image doesn't overlap */
    margin-right: 50px; 
    z-index: 10; /* so it appears above other elements */
  }
  