/* Left Logo Layout */
.menu-left-logo {
    display: flex;
    align-items: center;
    margin-right: 40px;
}

/* General Menu Widget Container */
.menu-widget-container {
    background: #ffffff91;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    width: fit-content;
    margin: auto;
    border-radius: 6px;
}

/* Top Menu */
.top-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.close-button:hover,
.close-secondary-menu:hover {
    background-color: transparent!important;
}

/* Menu Lists */
.menu-left,
.menu-right,
.menu-items {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 32px;
    padding: 0;
    margin: 0;
}

.menu-items {
    flex-grow: 1;
    gap: 20px;
}

.menu-left li,
.menu-right li {
    font-size: 16px;
}

/* Logo */
.menu-logo {
    padding: 10px;
    display: flex;
}

.menu-logo img {
    height: 30px!important;
}

/* Menu Items */
.menu-item {
    position: relative;
    padding: 10px;
}

.menu-item a {
    color: #333333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
}

.menu-item a:hover {
    color: #2E1A47;
}

/* Join Button */
.menu-join-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2E1A47;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.menu-join-button:hover {
    background-color: #3E2657;
}

/* Submenu Arrow */
.submenu-arrow {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.submenu-arrow:hover {
    opacity: 1;
}

.submenu-arrow svg {
    width: 16px;
    height: 16px;
}

.submenu-arrow-right svg {
    transform: rotate(-90deg);
}

.submenu-arrow-down svg {
    transform: rotate(0deg);
}

/* Backdrop */
.submenu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.submenu-backdrop.active {
    display: block;
}

/* Primary Submenu */
.sub-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 512px;
    padding: 60px 20px 20px;
    background-color: #2d4b64f2;
    color: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    display: none;
    z-index: 1000;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.sub-menu.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.sub-menu .menu-item {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sub-menu .menu-item:last-child {
    border-bottom: none;
}

/* Secondary Menu Container */
.secondary-menu-container {
    position: fixed;
    top: 0;
    left: 512px;
    width: 512px;
    height: 100vh;
    background-color: #e6e6dcf2;
    color: #333;
    padding: 60px 20px 20px;
    z-index: 1001;
    overflow-y: auto;
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.secondary-menu-container.slide-in {
    transform: translateX(0);
    opacity: 1;
}

.secondary-menu-container.slide-out {
    transform: translateX(100%);
    opacity: 0;
}

.secondary-menu-container li {
    padding: 15px;
    font-size: 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.secondary-menu-container li:last-child {
    border-bottom: none;
}

.secondary-menu-container li a {
    color: #050a28;
}

/* Close Buttons */
.close-button,
.close-secondary-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    z-index: 2;
    color: inherit;
}

/* Nested Submenu Overrides */
.secondary-menu-container .sub-menu {
    position: static;
    display: block;
    height: auto;
    width: auto;
    padding: 0;
    background-color: transparent;
    color: inherit;
    transform: none;
    box-shadow: none;
    opacity: 1;
}

ul.menu-items li {
    list-style: none;
    border-bottom: none !important;
}

.secondary-menu-container .sub-menu {
    background-color: unset!important;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .menu-left,
    .menu-right,
    .menu-items {
        gap: 20px;
    }

    .menu-logo {
        padding: 0 20px;
    }
}

@media screen and (min-width: 1024px) {
    .mobile-menu-burger {
        display: none;
    }
    .menu-items {
        margin-right: 20px;
    }
}

@media screen and (max-width: 1024px) {
    .menu-widget-container {
        background-color: transparent;
        width: 90%;
        box-shadow: none;
        margin: 0;
        left: 5%;
        position: relative;
    }
    .top-menu-outter {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    .mobile-menu-main {
        display: none;
        position: fixed;
        background: #fff;
        flex-direction: column;
        width: 86%;
        left: 7%;
        top: 7%;
        border-radius: 6px;
        height: fit-content;
    }

    .top-menu {
        left: 0;
        position: relative;
        display: flex;
        justify-content: flex-start;
        width: 100%;
        padding: 0;
    }

    .menu-logo {
        padding: 5px 20px;
        background: rgb(255 255 255 / 50%);
        border-radius: 6px;
        margin-right: 10px;
    }

    .mobile-menu-burger {
        background: rgb(255 255 255 / 50%);
        padding: 10px;
        border-radius: 6px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .sub-menu {
        width: 100%;
    }

    ul.sub-menu.primary-submenu.active {
        width: 90%;
        left: 5%;
        top: 78px;
        border-radius: 6px;
        height: calc(100% - 80px);
    }

    body > div.elementor.elementor-14.elementor-location-header > div > div > div > div > div > div.secondary-menu-container.slide-in {
        left: 3% !important;
        width: 94%;
        height: calc(100% - 80px);
        top: 103px;
        border-radius: 6px;
    }
}

.sub-menu li a {
    width: 100%;
    display: flex;
    justify-content: space-between;
}