.menu {
    margin: 0;
    padding: 0;
    /* padding-top: 5px;
    padding-bottom: 5px; */
    color: inherit;
}

.menu-menu-1 {
    white-space: nowrap;
    display: inline-flex;
}

.bobex_menu>.container {
    color: inherit;
}

.pc_menu {
    display: flex;
}

.bobex_menu_item_lvl_0 {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.bobex_menu_item_lvl_0>a {
    display: block;
}

.bobex_menu_item_lvl_0>a:hover {
    color: inherit;
}

.bobex_menu_item_lvl_0>ul {
    display: none;
}

.bobex_menu_item_lvl_0:hover>ul {
    display: block;
}

.bobex_menu_item_lvl_0>ul {
    position: absolute;
    background-color: white;
    padding: 0;
    padding-top: 10px;
    padding-bottom: 10px;
    list-style: none;
    left: 0;
    top: 100%;
    width: max-content;
    z-index: 14;
    box-shadow: 7px 7px 6px -7px rgba(0, 0, 0, 0.3);
    border: 1px solid #0000002e;
}

.bobex_menu_item_lvl_1>a,
.bobex_menu_item_lvl_2>a {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 4px;
    padding-bottom: 4px;
    text-decoration: none;
    transition: none;
    display: block;
    color: #444444 !important;
}


/* .bobex_menu_item_lvl_1:hover>a,
.bobex_menu_item_lvl_2:hover>a {
    background-color: #f0542d25;
    color: #444444 !important;
} */

.bobex_menu_item_lvl_0>a {
    text-decoration: none;
    color: inherit;
    font-size: 14px;
}

.bobex_menu_item_lvl_1>a:visited {
    color: #444444;
}

.header_media {
    height: 100%;
    margin-top: auto;
    margin-bottom: auto;
}

.header_media>img {
    max-height: 100%;
    max-width: 100%;
    margin-top: auto;
    margin-bottom: auto;
    display: inline-flex;
    height: 65px;
}

.header_media_left img {
    max-width: 70vw;
}

.header_media_right {
    text-align: right;
}

.bobex_header>.container {
    position: relative;
    height: 100%;
}

.bobex_header {
    padding-top: .5rem;
    padding-bottom: .5rem;
    height: 87px;
}

#breadcrumbs>li {
    display: inline;
}

#breadcrumbs>li,
.breadcrumb_item>a {
    font-size: 14px;
}

.breadcrumb_item>a {
    color: #175da6;
}

.breadcrumb_item>a:hover {
    color: #444444;
}

#breadcrumbs {
    /*padding-left: 15px;*/
    /*margin-top: 15px;*/
    margin-top: 20px;
    margin-bottom: 0;
    padding-left: 0;
}

.breadcrumb_item.active>a,
.breadcrumb_item.active,
#breadcrumbs>li:last-child>a {
    color: #f0542d;
}

.breadcrumb_item.active>a:hover,
#breadcrumbs>li:last-child>a:hover {
    color: #444444;
}

.bobex_menu_item_lvl_0>a {
    border-bottom: #f0542d00 solid 3px;
    border-top: #f0542d00 solid 3px;
}


/* .bobex_menu_item_lvl_0.active>a {
    border-bottom: #f0542d solid 3px;
} */

.bobex_menu_item_lvl_1>a {
    border-left: #f0542d00 solid 3px;
}


.bobex_menu_item_lvl_1.active>a {
    border-left: #f0542d solid 3px;
    background-color: #f0542d1a;
}

.header_media>a>picture>source>img,
.header_media>a>picture>img,
.header_media>a>img {
    max-height: 65px;
    width: auto;
}


/*
aside
*/

.aside_menu {
    background-color: #4874a20f;
    padding: 15px;
    margin-top: 10px;
    max-height: 70vh;
    overflow: scroll;

}

.aside_links {
    display: block;
    color: #484848;
    transition: none;
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 5px;
}

.aside_links.active {
    background-color: #f0542d1a;
    border-left: #f0542d solid 3px;
}

.aside_links:hover {
    color: black;
    text-decoration: underline;
}

.aside_links.active:hover {
    color: orangered;
}

.aside_headers {
    font-size: 18px;
    margin-top: 30px;
    margin-bottom: 4px;
    color: #175da6;
    font-weight: 400;
}

.aside_headers:nth-of-type(1) {
    margin-top: 0px;
}

.aside_sub_headers {
    /*font-size: 16px;*/
    font-size: 18px;
    margin-top: 24px;
    /*color: #818181;*/
    color: var(--minisite-bobex-blue);
    text-transform: uppercase;
    font-weight: 600;
}


/* .bobex_menu {
    height: 66px;
} */

.bobex_menu>.container {
    height: inherit;
}

/* New layout */
.bbx-header {
    display: none;
}

@media screen and (min-width: 992px) {
    .bbx-header {
        display: block;
        height: 50px;
        background-color: var(--minisite-grey-background);
        color: var(--minisite-grey-text);
        font-size: 14px;
        font-style: normal;
        font-weight: 600;
        line-height: normal;
    }

    .bbx-header > .container {
        height: 100%;
    }

    .bbx-header .header-wrapper {
        display: flex;
        justify-content: space-between;
        height: 100%;
        align-items: center;
    }

    .bbx-header .header-wrapper .text-wrapper .text {

    }

    .bbx-header .header-wrapper .text-wrapper .text::before {
        content: "";
        display: inline-block;
        width: 10px;
        height: 10px;
        background-size: contain;
        margin-right: 5px;
    }

    .bbx-header .header-wrapper .text-wrapper .text + .text {
        margin-left: 10px;
    }
}

.bobex_menu {
    height: 60px;
    position: relative;

    @media screen and (min-width: 992px) {
        height: inherit;
    }
}

@media screen and (min-width: 992px) {
    .bobex_menu .gradient {
        width: 100%;
        height: 100%;
        position: absolute;
        background: linear-gradient(90deg, var(--minisite-bobex-blue) 50%, var(--minisite-bobex-dark-blue) 100%);
    }

    .bobex_menu > .container {
        z-index: 0;
        position: relative;
    }
}

.bobex_menu .button_pop {
    font-size: x-large;
    height: 40px;
    width: 40px;
    padding: 9px;
    transition: all 0.2s ease;
    cursor: pointer;

    @media screen and (min-width: 992px) {
        margin-left: 20px;
    }
}

.bobex_menu .menu-wrapper {
    justify-content: space-between;
    height: 100%;
    display: flex;
    align-items: center;

    @media screen and (min-width: 992px) {
        padding: 20px 0;
    }
}

.bobex_menu .menu-wrapper .branding {
    max-height: 24px;
}

.bobex_menu .menu-wrapper .icons {
    display: flex;
    align-items: center;
}

.bobex_menu .menu-wrapper .bbx-links {
    display: none;

    @media screen and (min-width: 992px) {
        list-style-type: none;
        margin: 0;
        padding: 0;
        display: flex;
        gap: 20px;
    }
}

@media screen and (min-width: 992px) {
    .bobex_menu .menu-wrapper .bbx-links li a {
        color: white;
        font-size: 14px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
    }
}

.bbx-mobile-search {
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
    opacity: 0;
    z-index: 0;
    display: flex;
    height: 0;
    align-items: flex-start;
    justify-content: center;
}

.bbx-mobile-search.active {
    opacity: 1;
    z-index: 9;
    height: 45px;

    @media screen and (min-width: 992px) {
        height: 55px;
    }
}

.bbx-mobile-search .search-form {
    position: relative;
    display: inline-flex;
    width: 100%;
}

.bbx-mobile-search .search-form .search-label {
    position: absolute;
    color: var(--minisite-grey-text);
    right: 0;
    margin-right: 7px;
    cursor: pointer;
    height: 100%;
    display: flex;
}

.bbx-mobile-search .search-form .search-input {
    width: 100%;
    border-radius: 50px;
    border: none;
    padding-left: 15px;
    padding-right: 27px;
    height: 30px;
}

.bbx-mobile-search .search-form .search-input:focus-visible {
    outline: none;
}

#bobex_mobile_menu {
    height: inherit;
    color: white;


    @media screen and (min-width: 992px) {
        background-color: var(--minisite-grey-background) !important;
        height: 50px;
        z-index: 100;
        position: relative;
    }
    @media screen and (max-width: 992px) {
        width: 100vw;
        overflow-x: hidden;
    }
}

#bobex_mobile_menu .bobex_mobile_close_menu {
    position: absolute;
    right: 15px;
    top: 15px;

    @media screen and (min-width: 992px) {
        display: none;
    }

}

#bobex_mobile_menu .bobex_mobile_close_menu i {
    font-size: 1.5em;
}

#bobex_mobile_menu .menu-item-object-language-switcher .bob_flags {
    top: -1px;
}

@media screen and (min-width: 992px) {
    #bobex_mobile_menu .bobex_menu_item_lvl_0 {
        color: var(--minisite-grey-text);
        font-size: 14px;
        font-style: normal;
        font-weight: 500;
        line-height: normal;
    }

    #bobex_mobile_menu .bobex_menu_item_lvl_0:hover {
        background-color: var(--minisite-grey-background-darken);
    }

    #bobex_mobile_menu .bobex_menu_item_lvl_0:focus-visible {
        outline: none;
    }

    #bobex_mobile_menu .menu-item-object-language-switcher {
        float: right;
    }
}

/* ============================================================
   MEGA-MENU — desktop nav bar
   ============================================================ */

/* Hide the standard grey nav bar on desktop when mega mode is active.
   On mobile it still slides in (the .bbx-mega-mode class is on the div). */
@media screen and (min-width: 992px) {
    #bobex_mobile_menu.bbx-mega-mode {
        display: none !important;
    }
}

/* Mega nav bar — hidden on mobile, shown on desktop */
#bbx-mega-nav {
    display: none;
}

@media screen and (min-width: 992px) {
    #bbx-mega-nav {
        display: block;
        background-color: var(--minisite-grey-background);
        height: auto;
        min-height: 50px;
        z-index: 100;
        position: relative;
    }

    #bbx-mega-nav > .container {
        height: 100%;
    }
}

/* Top-level item list */
.bbx-mega-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    min-height: 50px;
}

/* Each top-level nav item */
.bbx-mega-nav__list > .bobex_menu_item_lvl_0 {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 0;
    cursor: pointer;
    color: var(--minisite-grey-text);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.15s ease;
}

.bbx-mega-nav__list > .bobex_menu_item_lvl_0 > a {
    color: inherit;
    text-decoration: none;
    font-size: inherit;
    font-weight: inherit;
    border: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Caret indicator for items with a mega/simple dropdown */
.bbx-mega-nav__list > .bobex_menu_item_lvl_0.bbx-has-mega > a::after,
.bbx-mega-nav__list > .bobex_menu_item_lvl_0:has(> ul) > a::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 4px;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.bbx-mega-nav__list > .bobex_menu_item_lvl_0:hover > a::after {
    transform: rotate(180deg);
}

.bbx-mega-nav__list > .bobex_menu_item_lvl_0:hover {
    background-color: var(--minisite-grey-background-darken);
}

.bbx-mega-nav__list > .bobex_menu_item_lvl_0.active > a {
    border-bottom: 2px solid currentColor;
}

/* ---- Simple dropdown (items without mega ID) ---- */
.bbx-mega-nav__list > .bobex_menu_item_lvl_0 > ul.bobex_menu_sub_list_lvl_0 {
    display: none;
    position: absolute;
    top: 50px; /* nav bar height */
    left: auto;
    min-width: 200px;
    background-color: white;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 200;
}

.bbx-mega-nav__list > .bobex_menu_item_lvl_0:hover > ul.bobex_menu_sub_list_lvl_0 {
    display: block;
}

.bbx-mega-nav__list .bobex_menu_item_lvl_1 > a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    padding: 5px 8px;
    color: #444 !important;
    text-decoration: none;
    font-size: 14px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
}

.bbx-mega-nav__list .bobex_menu_item_lvl_1 > a:hover {
    background-color: rgba(240, 84, 45, 0.06);
}

/* Mega panel links: override the dropdown rule above (higher specificity) */
.bbx-mega-panel .bbx-mega-col__links li a {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    padding: 4px 0 !important;
    background: none !important;
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.4 !important;
}

/* ---- Mega panel ---- */
/* left adjusted by JS on hover; width is intrinsic (driven by column count) */
.bbx-mega-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: max-content;
    /* Cap: 3 cols × 220px + padding. Never wider than the viewport. */
    max-width: min(720px, calc(100vw - 48px));
    background-color: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-top: 2px solid var(--minisite-grey-background);
    z-index: 200;
    padding: 24px 0;

    /* Fix #1 — reset white-space:nowrap inherited from parent <li> */
    white-space: normal;
}

.bbx-mega-nav__list > .bobex_menu_item_lvl_0.bbx-has-mega:hover > .bbx-mega-panel {
    display: block;
}

/* Inner grid of columns — column count driven by --mega-cols (set from PHP) */
.bbx-mega-panel > .bbx-mega-cols {
    list-style: none;
    margin: 0;
    padding: 0 20px;
    display: grid;
    /* Each column: at least 160px, at most 220px → panel auto-sizes to content */
    grid-template-columns: repeat(var(--mega-cols, 3), minmax(160px, 220px));
    column-gap: 0;
    row-gap: 20px;
    align-items: start;
}

/* Each column group */
.bbx-mega-col {
    min-width: 0;               /* prevent grid blow-out */
    padding: 0 16px;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

/* Remove right border on the last column of every row.
   We cover the three possible column counts (1 / 2 / 3). */
.bbx-mega-col:last-child,
.bbx-mega-cols[style*="--mega-cols:1"] .bbx-mega-col:nth-child(1n),
.bbx-mega-cols[style*="--mega-cols:2"] .bbx-mega-col:nth-child(2n),
.bbx-mega-cols[style*="--mega-cols:3"] .bbx-mega-col:nth-child(3n) {
    border-right: none;
}

/* Section header */
.bbx-mega-header {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--minisite-grey-text);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    text-decoration: none;
}

/* Header that is also a link (depth-0 item with a real URL) */
.bbx-mega-header--link {
    cursor: pointer;
}

.bbx-mega-header--link:hover {
    color: var(--minisite-bobex-blue, #175da6);
    text-decoration: underline;
}

.bbx-mega-header--link.bbx-mega-link--active {
    color: var(--minisite-bobex-blue, #175da6);
}

/* Links within a column */
.bbx-mega-col__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bbx-mega-col__links li {
    margin-bottom: 2px;
}

.bbx-mega-col__links li a {
    display: block;
    padding: 4px 0;
    font-size: 13px;
    color: #444;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.1s ease;
}

.bbx-mega-col__links li a:hover {
    color: var(--minisite-bobex-blue, #175da6);
    text-decoration: underline;
}

.bbx-mega-col__links li a.bbx-mega-link--active {
    color: var(--minisite-bobex-blue, #175da6);
    font-weight: 600;
}

/* Mobile: mega mode — the mobile slide-in menu is unchanged,
   the mega panel and bbx-mega-nav are invisible below 992 px. */
@media screen and (max-width: 991px) {
    #bbx-mega-nav {
        display: none !important;
    }
}


/* Mobile mega menu: spacing between top-level items — mobile only */
@media screen and (max-width: 991px) {
    #bobex_mobile_menu .bobex_menu_item_lvl_0 + .bobex_menu_item_lvl_0 {
        margin-top: 10px;
    }
}

/* Mobile mega menu: column header label (non-clickable) */
#bobex_mobile_menu .bbx-mega-mobile-header {
    list-style: none;
    padding: 6px 20px 2px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.55;
    pointer-events: none;
    margin-top: 10px;
}

#bobex_mobile_menu .bbx-mega-mobile-header:first-child {
    margin-top: 4px;
}

/* Mobile mega menu: non-clickable top-level parent label */
#bobex_mobile_menu .bbx-mega-mobile-parent__label {
    display: block;
    padding: 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.55;
    pointer-events: none;
    cursor: default;
}
