/* Engagis Mega Menu — Frontend CSS
   Matches your existing HTML: .menu-list > .menu-item > .sub-menu > .row > .col-* > .sub-menu__title + .sub-menu__child
*/

/* ── Base reset ─────────────────────────────── */
.menu-list,
.menu-list * { box-sizing: border-box; }

/* ── Top-level nav ──────────────────────────── */
.menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2px;
    position: static;
}

.menu-list > .menu-item {
    position: relative;
    list-style: none;
}

.menu-list > .menu-item > a {
    display: inline-flex;
    align-items: center;
    /* gap: 5px;
    padding: 8px 14px;
    font-size: var(--emm-fs, 15px);
    font-weight: 500;
    color: var(--emm-text, #1a1a1a);
    text-decoration: none;
    border-radius: 4px; */
    transition: color 0.18s ease;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
}

.menu-list > .menu-item > a:hover,
.menu-list > .menu-item.current-menu-item > a,
.menu-list > .menu-item.current-menu-ancestor > a,
.menu-list > .menu-item.emm-open > a {
    color: var(--emm-accent, #1CAB87);
}

/* Arrow */
.emm-arrow {
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease;
    opacity: 1;
    right: -18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    background-color: transparent;
    content: "";
    width: 10px;
    height: 8px;
    position: absolute;
}

.menu-list > .menu-item.emm-open > a .emm-arrow,
.menu-list > .menu-item:hover > a .emm-arrow {
    transform: translateY(-50%) rotate(180deg);
    opacity: 1;
}

/* ── Mega dropdown ───────────────────────────── */
.menu-item-has-children > .sub-menu {
    display: none;
    position: absolute;
    /* top: calc(100% + 30px) !important; */
    top: 100%;
    left: 0;
    background: var(--emm-bg, #ffffff);
    /* border: 1px solid rgba(0,0,0,0.08); */
    /* border-radius: var(--emm-radius, 6px); */
    /* box-shadow: var(--emm-shadow, 0 12px 40px rgba(0,0,0,0.12)); */
    min-width: 220px;
    z-index: 5;
    margin-top: 0;
    /* padding: var(--emm-pad-v, 28px) var(--emm-pad-h, 32px); */
    /* animation: emmFadeIn 0.18s ease; */
    box-shadow: 0px 0px 5px 1px rgba(0, 0, 0, 0.1);
    margin: 0;
    /* padding: 1.7rem 1.563rem; */
    padding: 2.4rem 2rem;
    transform-origin: 0 0;
    border-radius: var(--bs-border-radius-lg);
    border: 1.5px var(--bs-gray-300) solid;
}

.menu-item-has-children > .sub-menu.sub-menu--standard{
    min-width: 300px;
}

.menu-item-has-children > .sub-menu.sub-menu--standard,
.menu-item-has-children.emm-columns-2 > .sub-menu {
        
        list-style: none;
         top: 100%;
}



/* Make top-level items static so mega dropdown can center-align */
.menu-list > .menu-item {
    position: static;
}

/* Bootstrap .row inside mega sub-menu — reset negative margins */
/* .emm-mega > .sub-menu > .row {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
} */

/* ── Column heading (.sub-menu__title) ──────── */
.sub-menu__title {
    /* font-size: var(--emm-hfs, 11px);
    color: var(--emm-heading, #888888);
    letter-spacing: 0.05em;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-weight: 400; */
    --bs-text-opacity: 1;
    color: rgba(var(--bs-dark-rgb), var(--bs-text-opacity)) !important;
   margin-bottom: 1.7rem;
   font-weight: 400;
}

.sub-menu__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}

.sub-menu__title a:hover {
    color: var(--emm-hover, #1CAB87);
}

/* Uppercase headings (toggled via inline CSS from settings) */
.emm-heading-upper .sub-menu__title {
    text-transform: uppercase;
}

.emm-heading-bold .sub-menu__title {
    font-weight: 600 !important;
}

/* ── Column divider ─────────────────────────── */
.sub-menu > .row > [class*="col-"]:not(:last-child) {
    border-right: 1px solid var(--emm-divider, transparent);
    padding-right: 28px;
}

.sub-menu > .row > [class*="col-"]:not(:first-child) {
    padding-left: 28px;
}

/* ── Sub-menu child links (.sub-menu__child) ── */
.sub-menu__child {
    list-style: none ;
    margin: 0 ;
    padding: 0 ;
    display: block ;   /* prevent any flex bleed from theme */
    width: 100%;
    display: flex;
    flex-direction: column;
}

.single--column{
    width: 33.33333333%;
}

.sub-menu__child > li {
    list-style: none;
    margin: 0;
    display: block;   /* force every item onto its own line */
    width: 100%;
    float: none;
}

/* .sub-menu__child a {
    display: block !important;
    padding: 6px 0;
    font-size: var(--emm-subfs, 15px);
    font-weight: 400;
    color: var(--emm-text, #1a1a1a);
    text-decoration: none;
    transition: color 0.15s ease, transform 0.15s ease;
    white-space: normal;
} */

.sub-menu__child a:hover {
    color: var(--emm-hover, #1CAB87);
    transform: translateX(3px);
}

.sub-menu__child .current-menu-item a {
    color: var(--emm-accent, #1CAB87);
    font-weight: 500;
}

/* ── Standard (non-mega) dropdown ───────────── */
/* .sub-menu--standard {
    list-style: none;
    min-width: 200px !important;
} */

.sub-menu--standard .menu-item a,
.sub-menu__child a {
    display: block;
    /* padding: .7rem 0; */
    padding: 8px 0;
    /* font-size: 14px;
    color: var(--emm-text, #1a1a1a); */
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
    transform: none;
    transition: all 0.3s ease-in-out;
    /* outline: 1px red solid; */
    line-height: 1.35;
    color: var(--bs-gray-900);
}

.sub-menu--standard .menu-item:first-child a{
    /* outline: 1px red solid; */
    padding-top: 0;
}
.sub-menu--standard .menu-item:last-child a{
    /* outline: 1px red solid; */
    padding-bottom: 0;
}


.sub-menu--standard .menu-item a:hover,
.sub-menu__child a:hover {
    /* color: var(--emm-hover, #1CAB87); */
    /* background: rgba(0,0,0,0.03); */
    color: var(--bs-teal);
    transform: translateX(5px);
    text-decoration: none;
}

/* ── Feature image column ───────────────────── */
.emm-img-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.emm-feature-img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
    display: block;
    max-height: 220px;
}

/* ── Open state ─────────────────────────────── */



.menu-item.emm-open > a{
    position: relative;
    z-index: 2;
    /* outline: 1px blue solid; */
    /* pointer-events: none; */
}
/* .menu-item.emm-open > a:hover{
     pointer-events: none;
} */
.menu-item.emm-open > .sub-menu {
    display: block;
    z-index: 1;
}

 .main-menu ul.menu-list > li.emm-open::before {
    position: absolute;
    content: "";
    display: block;
    background: transparent;
    width: 100%;
    left: 0px;
    right: 0px;
    /* width: 100vw; */
    translate: none;
    transform: none;
    height: 100%;
    top: calc(50% + 1rem);
} 

/* .menu-item.emm-open > .sub-menu::before{
    content: "";
    width: 100%;
    background: red;
    display: block;
    bottom: 100%;
    position: absolute;
    height: 52px;
    left: 0;
    z-index: -1;
} */

/* ── Animations ─────────────────────────────── */
@keyframes emmFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes emmSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.emm-anim-slide .sub-menu { animation: emmSlideIn 0.2s ease; }
.emm-anim-none  .sub-menu { animation: none; }

/* ── Mobile ──────────────────────────────────── */
@media (max-width: 991px) {
    .menu-list {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .menu-list > .menu-item {
        position: relative !important;
        width: 100%;
    }

    .menu-list > .menu-item > a {
        display: flex;
        width: 100%;
        justify-content: space-between;
        padding: 12px 16px;
        border-radius: 0;
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }

    .menu-item-has-children > .sub-menu {
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        border-top: 1px solid rgba(0,0,0,0.05) !important;
        border-radius: 0 !important;
        padding: 12px 16px !important;
        background: rgba(0,0,0,0.02) !important;
        animation: none !important;
        margin-top: 0 !important;
    }

    .sub-menu > .row > [class*="col-"] {
        border-right: none !important;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        padding: 12px 0 !important;
    }

    .sub-menu > .row > [class*="col-"]:last-child {
        border-bottom: none;
    }

    .emm-img-col { display: none; }
}

/* ── Mega menu positioning ───────────────────── */
.emm-dropdown > .sub-menu,
.emm-mega.emm-columns-2 > .sub-menu,
.emm-mega.emm-columns-3 > .sub-menu,
.emm-mega.emm-columns-4 > .sub-menu {
       /* left: 50%;
    transform: translateX(-50%);
    width: auto; */
    left: 0px;
    right: 0px;
    width: 100vw;
    translate: none;
    transform: none;
}



/* .emm-columns-2 > .sub-menu { min-width: 800px;  max-width: 800px;  }  */
.emm-dropdown > .sub-menu,
.emm-columns-2 > .sub-menu,
.emm-columns-3 > .sub-menu
{ min-width: 800px;  max-width: 100%;  }
.emm-columns-4 > .sub-menu { min-width: 900px;  max-width: 100%; }

/* ── Normal dropdown ─────────────────────────── */
/* .emm-dropdown{
    outline: 1px red solid;
    position: relative;
} */
/* .emm-dropdown > .sub-menu {
    width: 250px;
    left: 0;
    transform: none;
} */