/*
    Menu Style CSS
    This CSS file defines the styling for the navigation menu, including dropdowns and submenus.    
    The styles are dropdown, sub-dropdown, and sub-sub-dropdown menus, ensuring a responsive and visually appealing navigation experience.
    The menu is designed to be flexible and user-friendly, with hover effects and transitions for better interactivity.
*/
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}
/*
body {
    background-color: #489af8;
 }
*/

nav {
    background-color: #2c0e61;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.menu {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
}

.menu li {
    position: relative;
}

.menu li a {
    display: block;
    padding: 16px 24px;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.menu li a:hover {
    background-color: #3c1588;
}

/* First-level dropdown menu */

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #2c0e61;
    display: none;
    flex-direction: column;
    min-width: 180px;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dropdown li {
    list-style: none;
}
.dropdown li a {
    padding: 12px 20px;
    font-size: 16px;
    color: #fff;
}

/* Show the dropdown menu on hover */

.menu li:hover > .dropdown {
    display: flex;
}

/* Second-level dropdown menu */

.sub-dropdown, .sub-sub-dropdown {
    top: 0;
    left: 100%;
    position: absolute;
    display: none;
    background: #2c0e61;
}

/* show submenus on hover */

.dropdown li:hover > .sub-dropdown,
.sub-dropdown li:hover > .sub-sub-dropdown {
    display: flex;
    flex-direction: column;
}

/* Hover effect for submenu items */

.dropdown li a:hover,
.sub-dropdown li a:hover,
.sub-sub-dropdown li a:hover {
    background-color: #3c1588;
}
