/* =====================================================================
   UJAS Mega Menu — FIXED - fixed by Datta
   Drop-in replacement for the mega menu block in your stylesheet.
   Pair with mega-menu-fix.js (handles open/close + submenu accordion).
   ===================================================================== */
   
.header_logo .hidden-tb.hidden-mb {
    z-index: 9999 !important;
}
.mega-menu {
    color: white;
    max-width: 1400px;
    margin: auto;
}
.mega-menu.main-menu .menu {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}
.menu-item {
    padding: 10px 10px;
    cursor: pointer;
    margin: 0;
    display: flex;
    align-items: center;
    position: static;
	height: 100px;
}

@media only screen and (max-width:768px){
    .mega-menu  .menu-item {
        height: auto;
    }
}



.menu-toggle {
    color: white;
    font-weight: bold;
}
 
/* ---------------------------------------------------------------------
   PATCHED: flyout panel.
   - solid opaque background + min-height so it always reads as a full
     card instead of a thin strip hugging just the top-level row
   - fade + slight slide (opacity/transform) instead of animating
     max-height, which was causing the snap/flicker
   - higher z-index so it can never sit behind other page content
   - triggers (.menu-item.level-1:hover / .menu-item.active) are
     UNCHANGED so the existing JS widget keeps working exactly as-is
--------------------------------------------------------------------- */
.subcategorymain-level-2 {
    position: fixed;
    left: 0;
    top: 125px;
    background: #ffffff;
    background-clip: padding-box;
    color: black;
    width: 99vw;
    min-height: auto;
    max-height: 80vh;
    overflow: auto;
    padding: 0 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    gap: 20px;
    z-index: 999;
 
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
    display: flex;
}
.subcategory-section {
    list-style: none;
    padding: 0;
}
.subcategory-section .subcategory-main-inner {
    margin: 0px;
    padding: 5px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border-bottom: 1px solid #cccbcb;
    min-height: 42px;
}
.subcategory-section .subcategory-main-inner:hover {
    background: #f0f0f0;
}
a.subcategory-level-2 {
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}
/* Level 3 Styling — unchanged; your JS toggles this via jQuery .show()/.hide() */
.subcategories-inner {
    display: none;
    padding-left: 15px;
    margin-top: 0px;
    padding: 5px;
    list-style: none;
    border-top: 2px solid #ffba00;
}
.subcategories-inner li {
    padding: 3px;
}
.subcategories-inner li a {
    text-decoration: none;
    color: #656565;
}
.subcategories-inner li a:hover {
    color: #000;
}
.arrow {
    cursor: pointer;
    font-size: 24px;
    line-height: normal;
    transition: transform 0.3s ease;
}
.arrow.rotate {
    transform: rotate(180deg);
}
 
/* PATCHED: was targeting i.icon-chevron-down, which doesn't match the
   pe-7s-angle-down icon class in your markup, so the chevron never
   rotated. Broadened to match any icon inside the arrow link — safe,
   purely additive, cosmetic only. */
.menu-item:hover a.arrow.arrow-main-cat i {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}
.menu-item a.arrow.arrow-main-cat i {
    transition: transform 0.3s ease;
}
 
/*new header css*/
a.category-name.level-1 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}
.header-placeholder nav.mega-menu.main-menu {
    display: block;
}
.page-header .header.content nav.mega-menu.main-menu {
    display: block;
}
a.arrow.arrow-main-cat {
    color: #fff;
    padding-left: 15px;
}
.subcategories-inner li:hover {
    border-bottom: 1px solid #ffba00;
}
.middle-header:has(.menu-item:hover) {
    background: #fff !important;
}
/*level 4 css*/
ul.subcategories-inner.subcategories-inner-level-4 {
    flex-direction: column;
    width: 100%;
}
.mega-menu a.subcategory-level-3 {
    font-size: 14px;
    font-weight: 500;
}
.mega-menu a.subcategory-level-4 {
    font-size: 14px;
    font-weight: 500;
    color: #6a6868 !important;
}
li.menu-item-level3 {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
}
@media only screen and (min-width:321px) and (max-width:768px){
    .menu {
        padding: 0px 15px;
        flex-direction: column;
        gap: 0;
    }
    .menu-item {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: space-between;
    }
        li.menu-item.active {
        background: transparent; 
    }
    .menu-item:hover {
        background: transparent;
    }
    a.category-name.level-1 {
        color: #000;
        font-weight: 600;
    }
    a.arrow.arrow-main-cat {
        color: #000;
    }
    /* PATCHED: reset transform/pointer-events that the new base rule adds,
       so mobile (.active, click-driven) still displays correctly */
    .menu-item.active ul.subcategorymain-level-2 {
        position: relative;
        flex-direction: column;
        padding: 0px;
        top: 10px;
        max-height: fit-content;
        min-height: 0;
        box-shadow: none;
        gap: 0;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }
}
@media only screen and (min-width:768px){
    /* PATCHED: same trigger as before, just animates opacity/transform
       instead of max-height so open/close is smooth instead of snapping */
    .menu-item.level-1:hover .subcategorymain-level-2 {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        padding: 20px;
        transition: max-height 0.9s ease, opacity 0.9s ease, padding 0.9s ease;
     } 
    .active-sticky.scrolling ul.subcategorymain-level-2 {
    top: 90%;
    z-index: 999;
}
.subcategory-section {
    width:25%;
}
}
 