.custom-menu-container {

    margin: 20px 0;

    font-family: Tahoma, Arial, sans-serif;

}



.custom-menu,

.custom-menu__submenu {

    list-style-type: none;

    padding: 0 !important;

    margin: 0 !important;

}



.custom-menu__item {

    position: relative;

    margin-bottom: 5px;

}



.custom-menu__link {

    display: block;

    padding: 12px 15px;

    text-decoration: none;

    transition: background-color 0.3s ease, color 0.3s ease;

    font-size: 16px;

    line-height: 1.4;

}



.custom-menu__link:hover {

    background-color: rgba(0, 0, 0, 0.05);

}



.custom-menu__submenu {

    margin-left: 20px;

}



.custom-menu__toggle {

    position: absolute;

    right: 0;

    top: 0;

    cursor: pointer;

    width: 40px;

    height: 100%;

    text-align: center;

    line-height: 40px;

    font-size: 16px;

    font-weight: bold;

    z-index: 10;

    transition: background-color 0.3s ease;

}



.custom-menu__toggle:hover {

    background-color: rgba(0, 0, 0, 0.1);

}



.custom-menu__toggle::before {

    content: '▼';

    display: block;

    transition: transform 0.3s ease;

}



.custom-menu__toggle--open::before {

    transform: rotate(180deg);

}



.custom-menu__item--has-children > .custom-menu__link {

    padding-right: 50px;

}



.custom-menu--depth-0 > .custom-menu__item > .custom-menu__toggle {

    color: inherit;

}



.custom-menu__submenu .custom-menu__toggle {

    color: inherit;

}



.custom-menu__item {

    padding-right: 40px;

}



.custom-menu__item--has-children {

    position: relative;

}



.custom-menu__submenu {

    display: none;

}



.custom-menu__submenu--visible {

    display: block;

}



/* Depth-specific styles */

.custom-menu__item--depth-0 {

    font-weight: bold;

    border-bottom: 1px solid rgba(0, 0, 0, 0.1);

}



.custom-menu__item--depth-1 {

    font-weight: normal;

    padding-left: 20px;

}



.custom-menu__item--depth-2 {

    font-style: italic;

    padding-left: 40px;

}



/* Mobile menu header styles */

.mobile-menu-header {

    display: none;

    background-color: #333;

    padding: 15px 10px;

    color: white;

    text-align: center;

}



.check-other-generators {

    display: block;

    font-size: 14px;

    margin-bottom: 10px;

}



.hamburger-toggle {

    display: none;

    background: none;

    border: none;

    font-size: 24px;

    cursor: pointer;

    padding: 5px 10px;

    color: white;

    margin: 0 auto;

}



@media (max-width: 576px) {

    .custom-menu-container.use-hamburger .mobile-menu-header {

        display: block;

    }



    .custom-menu-container.use-hamburger .hamburger-toggle {

        display: inline-block;

    }



    .custom-menu-container.use-hamburger .menu-wrapper {

        display: none;

    }



    .custom-menu-container.use-hamburger .menu-wrapper--visible {

        display: block;

    }



    .custom-menu-container.use-hamburger .custom-menu__item {

        border-bottom: 1px solid rgba(0, 0, 0, 0.1);

    }



    .custom-menu-container.use-hamburger .custom-menu__link {

        padding: 15px;

    }



    .custom-menu-container.use-hamburger .custom-menu__submenu {

        margin-left: 0;

    }



    .custom-menu-container.use-hamburger .custom-menu__item--depth-1,

    .custom-menu-container.use-hamburger .custom-menu__item--depth-2 {

        padding-left: 20px;

    }

}



/* Ensure menu is always visible on tablets and desktops */

@media (min-width: 577px) {

    .custom-menu-container .menu-wrapper {

        display: block !important;

    }



    .custom-menu-container .mobile-menu-header {

        display: none !important;

    }

}



/* Smooth transitions */

.custom-menu__submenu {

    transition: max-height 0.3s ease-out;

    overflow: hidden;

}



.custom-menu-container.use-hamburger .menu-wrapper {

    transition: opacity 0.3s ease-out;

}

