/* Base styling */
.elementor-nav-menu {
    display: flex;
    justify-content: flex-end;
    list-style: none; /* Remove dots */
    padding: 0;
    margin: 0;
}

.elementor-nav-menu > li {
    position: relative;
    margin: 0 10px; /* Adjust margin as needed */
}

.elementor-nav-menu a {
    text-decoration: none;
    color: #333; /* Default text color */
    padding: 10px;
    display: block;
    transition: color 0.3s;
}

.elementor-nav-menu a:hover {
    color: #e67e22; /* Hover text color */
}

/* Sub-menu */
.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px; /* Adjust width as needed */
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000; /* Ensure dropdown is above other content */
    list-style: none; /* Remove dots */
    padding: 0;
    margin: 0;
    transition: all 0.3s ease-in-out;
}

.elementor-nav-menu > li:hover > .sub-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.sub-menu li {
    margin: 0;
    padding: 10px;
    transition: background-color 0.3s ease;
}

.sub-menu li:hover {
    background-color: #f9f9f9; /* Hover background color */
}

.sub-menu a {
    color: #333; /* Default text color */
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    transition: color 0.3s, background-color 0.3s;
}

.sub-menu a:hover {
    color: #e67e22; /* Hover text color */
    background-color: #f0f0f0; /* Hover background color */
}

/* Arrow indicators */
.elementor-nav-menu > li.menu-item-has-children > a::after {
    content: "▼";
    margin-left: 5px;
    font-size: 0.8em;
}

.sub-menu li.menu-item-has-children > a::after {
    content: "▶";
    float: right;
    margin-right: 5px;
    font-size: 0.8em;
}

/* Media query for smaller screens */
@media screen and (max-width: 768px) {
    .elementor-nav-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 250px;
        height: 100%;
        background-color: #3fa4a6;/* Slight transparency */
        z-index: 1000; /* Ensure it's above other content */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        padding-top: px; /* Space for the toggle button */
        transition: transform 0.3s ease-in-out;
        transform: translateX(-100%);
    }

    .elementor-nav-menu.open {
        display: flex;
        transform: translateX(0);
        justify-content: flex-start; /* Align items to the top */
    }

    .elementor-nav-menu.open > li {
        display: block;
        text-align: left;
        margin: 0;
        border-bottom: 1px solid #e0e0e0; /* Separator */
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
        background-color: #3498db; /* Toggle button background color */
        color: #fff; /* Toggle button text color */
        border: none;
        padding: 10px 20px;
        text-align: center;
        font-size: 16px; /* Toggle button font size */
        margin: 10px; /* Adjust margin as needed */
        border-radius: 5px; /* Rounded corners */
        position: fixed;
        top: 10px;
        right: 10px;
        z-index: 1001; /* Ensure it's above the menu */
    }

    .menu-toggle:focus {
        outline: none;
    }

    .menu-toggle:hover {
        background-color: #2980b9; /* Toggle button hover background color */
    }

    .sub-menu {
        position: static;
        display: none;
        background-color: transparent; /* Transparent background */
        box-shadow: none; /* No box shadow */
        padding: 0;
    }

    .sub-menu li {
        padding: 10px;
        border-bottom: 1px solid #ccc; /* Separator */
    }

    .sub-menu a {
        padding: 10px;
    }

    .sub-menu a:hover {
        background-color: #f0f0f0; /* Hover background color */
    }

    .elementor-nav-menu.open > li:hover > .sub-menu {
        display: block;
    }
}

/* Media query for larger screens */
@media screen and (min-width: 769px) {
    .menu-toggle {
        display: none; /* Hide the toggle button on larger screens */
    }

    .elementor-nav-menu {
        display: flex !important; /* Ensure the menu is visible on larger screens */
    }
}
