/* Being Insurance - Mega Menu (bimm2) : full-depth header navigation */

/* Toggle arrows are mobile-only; desktop uses hover. */
.bimm2-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-left: 4px;
    padding: 0;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    flex: none;
    vertical-align: middle;
}
.bimm2-toggle::before {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

/* ---------------- Desktop / laptop: hover fly-out panels ---------------- */
@media (min-width: 1025px) {
    .bimh-header,
    .bimh-nav,
    .bimh-wrap {
        overflow: visible;
    }
    .bimh-nav .bimh-menu li {
        position: relative;
    }
    .bimh-nav .bimh-menu .sub-menu {
        z-index: 1000;
    }
    /* First dropdown panel (the 5 hubs under Insurance) */
    .bimh-nav .bimh-menu > li > .sub-menu {
        min-width: 264px;
    }
    /* Deeper panels: fly out to the right of the hovered category */
    .bimh-nav .bimh-menu .sub-menu .sub-menu {
        position: absolute;
        left: 100%;
        top: 0;
        min-width: 248px;
        margin: 0;
        padding: 8px 0;
        background: #ffffff;
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
        border-radius: 6px;
        display: none;
    }
    .bimh-nav .bimh-menu .sub-menu li:hover > .sub-menu,
    .bimh-nav .bimh-menu .sub-menu li:focus-within > .sub-menu {
        display: block;
    }
    .bimh-nav .bimh-menu .sub-menu li {
        position: relative;
    }
    .bimh-nav .bimh-menu .sub-menu a {
        display: block;
    }
    /* Arrow hint on categories that have subcategories */
    .bimh-nav .bimh-menu .sub-menu li.menu-item-has-children > a::after {
        content: "\203A";
        float: right;
        margin-left: 10px;
        font-weight: 700;
        color: #fd8b1b;
    }
    .bimh-nav .bimh-menu .sub-menu a:hover {
        color: #fd8b1b;
    }
    .bimm2-toggle {
        display: none !important;
    }
}

/* ---------------- Mobile / tablet: tap the arrow to expand ---------------- */
@media (max-width: 1024px) {
    .bimm2-toggle {
        display: inline-flex;
    }
    .bimh-nav .bimh-menu li.bimm2-open > .bimm2-toggle::before,
    .bimh-nav .bimh-menu li.bimm2-open > a + .bimm2-toggle::before {
        transform: rotate(225deg);
    }
    .bimh-nav .bimh-menu .sub-menu {
        position: static;
        display: none;
        box-shadow: none;
        padding-left: 16px;
    }
    .bimh-nav .bimh-menu li.bimm2-open > .sub-menu {
        display: block;
    }
    .bimh-nav .bimh-menu li {
        position: relative;
    }
}
