.custom-page-header {
    padding: 15px 0;
    background: var(--primary-color);

}
.custom-page-header .header-inner {
    display: flex;
    align-items: center;
    position: relative;
    flex-wrap: nowrap;
}
.custom-page-header .site-branding {
    order: 1;
}
.custom-page-header .site-branding img {
    max-height: 60px;
    width: auto;
}
.custom-page-header .main-navigation {
    order: 2;
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}
.custom-page-header .header-search {
    order: 3;
    margin-left: 20px;
}

/* Nav Menu Styles */
.custom-page-header .nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}
.custom-page-header .nav-menu li a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 400;
}

/* Search Toggle & Overlay Styles */
.custom-page-header .header-search .search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}
.custom-page-header .header-search .search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.custom-page-header .header-search .search-overlay.active {
    opacity: 1;
    visibility: visible;
}
.custom-page-header .header-search .search-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
}
.custom-page-header .header-search .search-overlay-content {
    width: 90%;
    max-width: 600px;
}
.custom-page-header .header-search .search-overlay-content form {
    display: flex;
    width: 100%;
}
.custom-page-header .header-search .search-overlay-content input[type="search"] {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.2rem;
    border: 1px solid var(--text-light);
    border-radius: 30px 0 0 30px;
    outline: none;
}
.custom-page-header .header-search .search-overlay-content button {
    padding: 15px 30px;
    border: 1px solid #ccc;
    border-left: none;
    background: #333;
    color: #fff;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Hamburger default */
.custom-page-header .menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}
.custom-page-header .hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}
.custom-page-header .hamburger-inner,
.custom-page-header .hamburger-inner::before,
.custom-page-header .hamburger-inner::after {
    width: 100%;
    height: 3px;
    background-color: var(--text-light);
    position: absolute;
    border-radius: 4px;
    transition: transform 0.15s ease;
}
.custom-page-header .hamburger-inner { top: 50%; transform: translateY(-50%); }
.custom-page-header .hamburger-inner::before { content: ""; top: -8px; }
.custom-page-header .hamburger-inner::after { content: ""; bottom: -8px; }

/* Mobile */
@media (max-width: 991px) {
    .custom-page-header .main-navigation {
        order: 3;
        flex-grow: 0;
        margin-left: 15px;
    }
    .custom-page-header .header-search {
        order: 2;
        margin-left: auto;
    }
    .custom-page-header .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 1000;
        flex-direction: column;
    }
    .custom-page-header .main-navigation.toggled .nav-menu {
        display: flex;
    }
    .custom-page-header .menu-toggle {
        display: block;
    }
}

/* Active / current menu item */
.custom-page-header .nav-menu li.current-menu-item > a,
.custom-page-header .nav-menu li.current_page_item > a,
.custom-page-header .nav-menu li.active > a {
    color:  var(--text-light);
    font-weight: 700;
    position: relative;
}

/*.custom-page-header .nav-menu li.current-menu-item > a::after,
.custom-page-header .nav-menu li.current_page_item > a::after,
.custom-page-header .nav-menu li.active > a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color:  var(--text-light);
    border-radius: 0px;
}*/

