/* Mega menu base styles */
@media (min-width: 576px) {
.ytmm.menu--primary {
    position: relative;
}

.menu-item-depth-0 {
    position: relative;
}

/* Depth 0: Show mega panel on hover */
.menu-item-depth-0:hover > .mega-panel,
.menu-item-depth-0:hover > .sub-menu {
    display: block;
}

/* Depth 1: Mega menu panel */
.mega-panel {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.mega-inner {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

.mega-col {
    flex: 1;
    position: relative; /* Ensure positioning context for .sub-menu */
    border: 1px solid rgba(232, 232, 232, 1);
}

/* Depth 1: Column heading */
.mega-heading {
    margin-bottom: 0;
    position: relative;
    font-size: 14px;
    padding-left: 0px;
    display: block;
    width: 100%;
}
.mega-heading a {
    display: flex;
    width: 100%;
    text-transform: capitalize;
    padding-left: 0px;
    justify-content: space-between;
}

/* Styling for first menu item */
.first-menu-item .menu-item-wrapper a {
    color: #FFF;
}

.first-menu-item::before {
    content: "\e5d2";
    font-family: "Material Icons";
    font-weight: normal;
    font-style: normal;
    font-size: 18px;
    display: inline-block;
    margin-right: 8px;
    margin-left: 8px;
    vertical-align: middle;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #FFF;
}

.first-menu-item {
    display: flex;
    align-items: center;
    color: #fff;
}

/* Depth 2: Submenu (hidden by default) */
.mega-col .sub-menu {
    display: none;
    position: absolute;
    top: -10px;
    right: 230px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    min-width: 150px;
}

/* Show depth 2 submenu on hover of mega-col (encompassing .mega-heading and .sub-menu) */
.mega-col:hover > .sub-menu,
.mega-col:hover .mega-heading > .sub-menu,
.mega-col .sub-menu:hover {
    display: grid;
}

/* Remove animations to prevent "fly from left" */
.mega-panel,
.sub-menu {
    transition: none;
}

/* Style for WooCommerce category images */
/* .menu-cat-thumb {
    margin-bottom: 10px;
} */

.main-navigation ul ul a {
  min-width: 200px !important;
  height: 100%;
}
.menu-item-depth-2{

  border-bottom: 1px solid #dfdfdf;
  /* padding-top: 10px;
  padding-bottom: 10px; */
}
.menu-cat-thumb img {
    max-width:85px;
    height: auto;
    border-radius: 4px;
    margin-right: 20px;
    margin-left: 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    
}

.menu-cat-thumb img:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

/* Submenu toggle button (for mobile/accessibility) */
.submenu-toggle {
    display: none;
}

.has-children .mega-heading a::after {
    content: "\e5cc";
    font-family: "Material Icons";
    font-weight: normal;
    font-style: normal;
    font-size: 18px;
    display: inline-block;
    margin-right: 8px;
    margin-left: 8px;
    vertical-align: middle;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #333;
}

/* Style for sub-menu with columns-2 using Grid */
.sub-menu.columns-2 {
    grid-template-columns: 1fr 1fr; /* Two equal-width columns */
    gap: 0px; /* Space between columns and rows */
    padding: 0; /* Reset padding */
    box-sizing: border-box; /* Include padding in width */
   
      border: 3px solid rgba(232, 232, 232, 1);
  border-radius: 4px;
    
}
/* Three columns: give the level-1 menu item the class columns-3 */
.sub-menu.columns-3 {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0px;
    padding: 0;
    box-sizing: border-box;
    border: 3px solid rgba(232, 232, 232, 1);
    border-radius: 4px;
}
.menu-item .lvl2-title{
 padding-bottom: 10px !important;
 padding-top: 10px !important;
}

.sub-menu.columns-2 .menu-item-depth-2 {
    box-sizing: border-box; /* Include borders/padding */

}

/* Ensure images and content align properly */
.sub-menu.columns-2 .menu-cat-thumb img,
.sub-menu.columns-3 .menu-cat-thumb img {
    max-width:90px;
    height: auto;
    border-radius: 4px;
    margin-left: 20px; /* Space between image and text */
}

}
/* Mobile adjustments (adjust breakpoint as needed)
@media (max-width: 768px) {
    .submenu-toggle {
        display: inline-block;
    }
    .mega-panel,
    .mega-col .sub-menu {
        position: static;
        display: none;
    }
    .menu-item-depth-0.active > .mega-panel,
    .menu-item-depth-0.active > .sub-menu,
    .mega-heading.active + .sub-menu {
        display: block;
    }
} */

/* Ensure Level 2 contains Level 3 vertically */
.menu-item-depth-2 {
    display: flex !important;
    flex-direction: row !important; /* Image left, content right */
    /* padding-top: 15px;
    padding-bottom: 15px; */
    border-bottom: 1px solid #dfdfdf;
    gap: 5px; /* Space between image and text */
}

/* Thumbnail styling */
.menu-item-depth-2 .menu-cat-thumb {
    flex-shrink: 0; /* Prevent image from squeezing */
}

.menu-item-depth-2 .menu-cat-thumb img {
    max-width: 80px;
    height: auto;
    margin: 0; /* Reset previous margins */
}

/* Content wrapper (Level 2 Title + Level 3 Links) */
.menu-item-content-wrap {
    display: flex;
    flex-direction: column; /* Stack Title and Links vertically */
    justify-content: flex-start;
}


.lvl2-title{
padding-bottom: 0px !important;
}
.lvl3-link {
    padding-top: 0px !important;
    display: inline-block;
    color: #1b99d7 !important; /* Matching your red example image */
    text-decoration: none;
    margin-bottom: 2px;
    text-transform: capitalize !important;
}



