:root{
    --header-height: 130px;
    --header-primary-height: 95px;
    --header-secondary-height: 35px;
    --primary: #4A1E4F;
    --secondary: #EB5E5A;
    --font: "zeitung", sans-serif;
}
.obs_header {
    width: 100%;
    position:fixed;
    top: 0px;
    left: 0px;
    height: var(--header-height);
    background-color: white;
    display: flex;
    flex-direction: column;
    gap: 0px;
}
.obs_header .obs_header_secondary,
.obs_header .obs_header_primary {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-content: center;
    align-items: center;
    height: var(--header-primary-height);
}
.obs_header .obs_header_secondary{
    align-items: right;
    height: var(--header-secondary-height);
    background-color: #361539;
}
.obs_header .obs_header_secondary .obs_header_secondary_content,
.obs_header .obs_header_primary .obs_header_primary_content {
    width: 80%;
    max-width: 1400px;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.obs_header .obs_header_primary .obs_header_primary_content .obs_header_logo {
    width: 230px;
    height: 70px;
    background-image: url("/wp-content/uploads/2026/06/logo-obs-de-bladwijzer.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position:center;
    cursor: pointer;
}
.obs_header .obs_header_primary .obs_header_primary_content .obs_header_links {}
.obs_header .obs_header_secondary .obs_header_secondary_content {
    justify-content: right;
}
.obs_header .obs_header_secondary .obs_header_secondary_content .obs_header_links {}



ul.obs_header_menu{
    padding: 0px!important;
    display: flex;
    flex-direction: row;
    gap: 20px;
    list-style: none;
    align-items: center;
}
ul.obs_header_menu > li.menu-item{
    padding: 0px!important;
    list-style: none;
}
ul.obs_header_menu > li.menu-item > a{
    font-size: 18px;
    font-family: var(--font);
    color: var(--primary);
    font-weight: 800;
    letter-spacing: -0.02em;
    font-family: 'Zeitung',Helvetica,Arial,Lucida,sans-serif!important;
}
ul#menu-obs-secondary > li.menu-item > a{
    color: white!important;
    font-size: 15px;
    font-weight: 700;
}
ul.obs_header_menu > li.obs-header-action.menu-item{
    padding: 7px 16px!important;
    background-color: var(--secondary);
    border-radius: 30px;

}
ul.obs_header_menu > li.obs-header-action.menu-item > a{
    color: white;
}

.obs_header_loggedin{
    top: 32px;
}
.obs_header_spacer{
    height: var(--header-height);
}
.obs_header_spacer_loggedin{
    height: calc(var(--header-height) + 32px);
}

ul.obs_header_menu > li.obs-header-action.menu-item.current-menu-item{
    background-color: var(--primary)!important;
}
ul.obs_header_menu > li.obs-header-action.menu-item.current-menu-item > a{
    color: white!important;
}

/* â”€â”€ Hamburger â”€â”€ */
.obs_header_hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.obs_header_hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

/* â”€â”€ Overlay â”€â”€ */
.obs_header_overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.obs_header_overlay.obs_open {
    opacity: 1;
    pointer-events: auto;
}

/* â”€â”€ Slide-out drawer â”€â”€ */
.obs_header_drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: white;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 24px;
    box-sizing: border-box;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
}
.obs_header_drawer.obs_open {
    transform: translateX(0);
}

.obs_header_drawer_close {
    align-self: flex-end;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--primary);
    padding: 0;
    line-height: 1;
    margin-bottom: 24px;
    font-family: var(--font);
}

/* â”€â”€ Responsive menu inside drawer â”€â”€ */
.obs_header_drawer ul.obs_header_menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
}
.obs_header_drawer ul.obs_header_menu > li.menu-item {
    width: 100%;
}
.obs_header_drawer ul.obs_header_menu > li.menu-item > a {
    display: block;
    padding: 10px 0;
    font-size: 20px;
}
.obs_header_drawer ul.obs_header_menu > li.menu-item:last-child {
    padding: 7px 16px!important;
    background-color: var(--secondary);
    border-radius: 30px;
    margin-top: 12px;
    width: fit-content;
}
.obs_header_drawer ul.obs_header_menu > li.menu-item:last-child > a {
    color: white;
    padding: 0;
}
.obs_header_drawer ul.obs_header_menu > li.menu-item:last-child.current-menu-item {
    background-color: var(--primary)!important;
}

/* â”€â”€ Responsive breakpoint â”€â”€ */
@media (max-width: 768px) {
    .obs_header {
        height: var(--header-primary-height);
    }
    .obs_header_spacer {
        height: var(--header-primary-height);
    }
    .obs_header_spacer_loggedin {
        height: calc(var(--header-primary-height) + 32px);
    }
    .obs_header .obs_header_secondary {
        display: none;
    }
    .obs_header .obs_header_primary .obs_header_primary_content .obs_header_links {
        display: none;
    }
    .obs_header_hamburger {
        display: flex;
    }
}


@media (max-width: 767px) {
    li.current_page_item{
        padding-left: 20px!important;
        border-radius: 2px;
        position:relative;
        background: linear-gradient(to bottom, #bccde0 0%,#a3c1e2 14%,#a8c3e0 51%,#a3c1e2 90%,#91afd6 94%,#91afd6 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    }
    li.current_page_item::after
    {
        content:"";
        width: 20px;
        height: 30px;
        position:absolute;
        right: 10px;
        top: 0px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: top center;
        background-image: url("/wp-content/uploads/2026/06/bookmark.svg");
    }
    li.current_page_item > a{
        color: white!important;
        padding-left: 20px!important;
    }
}

/*header styles for <div class="obs_header_spacer <?php if(is_user_logged_in()){ echo 'obs_header_spacer_loggedin'; } ?>"></div> */
.obs_header_spacer {
    height: var(--header-height);
    width: 100%;
    float: left;
}  
.ob_header_spacer_loggedin {
    height: calc(var(--header-height) + 32px);
}


li.current-menu-item > a {
    color: var(--secondary)!important;
}

ul.obs_header_menu#menu-obs-secondary > li.current-menu-item > a {
    color: var(--secondary)!important;
}