
/* Base styles for the menu */
.slide_menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: rgb(2, 0, 36);
        background: linear-gradient(158deg, rgba(2, 0, 36, 1) 0%, rgba(235, 254, 255, 1) 0%, rgba(253, 248, 255, 1) 51%, rgba(235, 248, 255, 1) 100%);
    color: #232121;
    font-weight: 500;
    overflow-y: auto;
    box-shadow: 0px 0 5px 0px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: left 0.3s ease;
    padding: 30px 0px;
}

/* Menu items */
.slide_menu .nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.slide_menu .nav-menu li {
    padding: 15px;
    border-bottom: 1px solid #3a3a3a1c;
}

.slide_menu .nav-menu li:last-child {
    border: none;
}

.slide_menu .nav-menu li a {
    color: #1e1e1e;
    text-decoration: none;
    font-size: 16px;
}

.slide_menu .nav-menu .current_page_item a {
    color: var(--primary-color);
}

/* Active class to make the menu visible */
.slide_menu.active {
    left: 0;
}

/* Hamburger icon styles */
.hamburger {
    width: 30px;
    height: 25px;
    cursor: pointer;
    vertical-align: middle;
    color: inherit;
    display: inline-flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
}

.hamburger div {
    width: 100%;
    height: 4px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}



/* Change icon to 'X' when menu is active */
.hamburger.active div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 10px);
}

.hamburger.active div:nth-child(2) {
    opacity: 0;
}

.hamburger.active div:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -10px);
}


/* Hide submenus by default */
.slide_menu .sub-menu {
    display: none;
}

/* Show submenu when expanded */
.slide_menu .sub-menu.expanded {
    display: block;
}

/* Optional styling for better submenu visibility */
.slide_menu .sub-menu {
    margin-top: 10px;
    padding: 0;
    border-radius: 5px;
    background: #f5f5f5;
    color: rgb(29, 29, 29);
    list-style: none;
}

.slide_menu .sub-menu li:last-child {
    border: none;
}

.slide_menu button.submenu-toggle {
    background: transparent;
    border: none;
    padding: 0;
    margin-left: 10px;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: bold;
    box-sizing: border-box;
}

.slide_menu button.submenu-toggle:hover {
    background: transparent;
    color: rgb(222, 222, 222);
}

