/*
 * 
 * 
 * 
 * new_custom_navigation_menu() css
 * 
 * 
 * 
 * */


#menu {
    overflow: auto;
    position: relative;
    z-index: 2;
}

.parent-menu {
    background-color: transparent;
    min-width: 200px;
    float: left;
    width: 33.33%
}

#menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#menu ul li {
    position: relative; /* Needed for positioning submenus */
}
#menu ul li a {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Space between text and arrow */
    color: #ffffff;
    text-decoration: none;
    font-family: 'Montserrat', Sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    text-transform: uppercase;
    position: relative; /* Required for positioning the icon */
}

	/* Position the arrow icon on the right */
#menu ul li a i {
    margin-left: auto;
    font-size: 12px;
    color: #ffffff;
    transition: transform 0.3s ease;
}
#menu ul li a:hover, #menu ul li a i:hover {
    background-color: transparent;
	color:#F2CD00;
}

/* Default submenu styling for desktop */
.submenu {
    display: none; /* Hidden by default */
    position: absolute;
    top: 0;
    left: 100%; /* Position submenu to the right */
    background-color: transparent;
    min-width: 200px;
    z-index: 1;
    width: 100%
}

.submenu li a:hover {
    background-color: transparent;
}

	
	
	
	
	
	
	
	
/* Mobile-specific styling */
@media (max-width: 768px) {
    /* Open submenus below on mobile */
    .submenu {
        position: relative;
        top: auto;
        left: auto;
    }

    /* Adjust arrow icon to point downward on mobile */
    .parent-menu > li > a i {
        transform: rotate(90deg); /* Default rotation for right arrow */
        transition: transform 0.3s ease;
    }

    /* Rotate arrow down when submenu is open */
    .parent-menu > li.open > a i {
        transform: rotate(180deg); /* Rotate to point down when open */
    }
}	
	/* CSS remains the same, except for these modifications */

/* Desktop submenu arrow */
#menu .parent-menu > li.menu-item-has-children > a i {
    display: inline-block;
}

/* Mobile-specific styling */
@media (max-width: 768px) {
	
	#menu{
		 margin-right: 7px;
		margin-left:7px;
	}
	   
	.parent-menu{
		display:contents;
	}
	/* Make menu items full width */
    #menu ul li {
        width: 100%;
    }
	/* Parent menu item style when clicked */
    .parent-menu > li.open > a {
        color: #F2CD00 !important; /* Change color when active */
       /* Make text bold when active */
    }
	 /* Submenu item style when clicked */
    .submenu li.open > a {
        color: #F2CD00 !important; /* Change color for active submenu item */
         /* Make text bold for active submenu item */
    }
	 /* Submenu indent for hierarchy */
    .submenu {
        padding-left: 20px !important; /* Indent submenus on mobile */
    }

    /* Additional indent for deeper submenus */
    .submenu .submenu {
        padding-left: 40px !important; /* Indent deeper submenus */
    }

   /* Down arrow for submenus on mobile */
    #menu .parent-menu > li.menu-item-has-children > a i {
        transform: rotate(90deg); /* Right arrow for closed state */
    }

    /* Rotate arrow to point down when open */
    .parent-menu > li.open > a i{
        transform: rotate(180deg); /* Rotate to down arrow when open */
    }
	
    .submenu li.open > a i {
        transform: rotate(90deg); /* Rotate to down arrow when open */
    }
}

	
	#menu ul li.active > a {
    color: #F2CD00;
    
}

/* Optionally keep the submenu of active items open */
#menu ul li.active .submenu {
    display: block;
}
/*
 * 
 * 
 * 
 * 
 * */


