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

/* General Menu Widget Container */
.menu-widget-container {
    width: 100%;
    margin: auto;
    border-radius: 6px;
    transition: all 0.3s ease;
}

/* #main-menu {
	box-shadow: 0px 1px 10px 2px #050a2814;
} */

#main-menu {
	padding: 20px 0;
}

/* Sticky Menu Styles */
#main-menu,
.menu-widget-container[data-sticky="true"] {
    position: relative;
    transition: all 0.3s ease;
}

#main-menu.menu-sticky,
.menu-widget-container[data-sticky="true"].menu-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    margin: 0;
    border-radius: 0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#main-menu.menu-sticky .top-menu-outter,
.menu-widget-container[data-sticky="true"].menu-sticky .top-menu-outter {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0;
}

#main-menu.menu-sticky .top-menu,
.menu-widget-container[data-sticky="true"].menu-sticky .top-menu {
    max-width: 1480px;
    margin: 0 auto;
}

/* Mobile sticky adjustments */
@media screen and (max-width: 1024px) {
    #main-menu.menu-sticky,
    .menu-widget-container[data-sticky="true"].menu-sticky {
        width: 100%;
        left: 0;
        right: 0;
    }
    
    #main-menu.menu-sticky .top-menu-outter,
    .menu-widget-container[data-sticky="true"].menu-sticky .top-menu-outter {
        padding: 0 15px;
    }
    
    #main-menu.menu-sticky .mobile-menu-main,
    .menu-widget-container[data-sticky="true"].menu-sticky .mobile-menu-main {
        top: 70px; /* Position below sticky header */
    }
}

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

.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 - Center (for new layouts) */
.menu-items {
    flex: 1;
    justify-content: center;
    gap: 20px;
    margin: 0;
}

/* Buttons Container */
.menu-buttons-container {
    display: flex;
    align-items: center;
    gap: 0px;
    flex-shrink: 0;
}

/* Hide mobile buttons on desktop */
.menu-buttons-mobile {
    display: none;
}

/* Show desktop buttons on desktop */
.menu-buttons-desktop {
    display: flex;
}

/* Logo positioning for new layouts */
.top-menu .menu-logo {
    flex-shrink: 0;
}

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

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

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

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

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

.menu-item a:hover {
    color: #050A28;
}

ul.menu-items.mobile-menu-main li {
    margin-bottom: 0 !important;
}

/* Join Button (Legacy) */
.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;
}

/* First Button */
.menu-first-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: transparent;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.menu-first-button:hover {
    color: #FFFFFF;
}

/* Second Button */
.menu-second-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: transparent;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.menu-second-button:hover {
    color: #FFFFFF;
}

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

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

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

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

.menu-item.menu-item-active > a .submenu-arrow-down svg {
    transform: rotate(180deg);
}


/* Primary Submenu - Normal Dropdown */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    padding: 10px 0;
    background-color: #fff;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    display: none;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
    list-style: none;
    margin: 0;
}

.menu-item.menu-item-active > .sub-menu {
    display: block;
    opacity: 1;
    visibility: visible;
}

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

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

.sub-menu .menu-item a {
    color: white;
    font-size: 14px;
    white-space: nowrap;
}

/* Nested Submenu (Secondary) */
.sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-left: 5px;
}

.sub-menu .menu-item.menu-item-active > .sub-menu {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Ensure parent menu items can contain absolute positioned submenus */
.menu-item-has-children {
    position: relative;
}

/* Prevent submenu from going off screen on the right */
.menu-right .menu-item-has-children > .sub-menu,
.menu-right .sub-menu .sub-menu {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: 5px;
}


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

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

    .menu-logo {
        padding: 0;
    }

    .menu-buttons-container {
        gap: 8px;
    }

    .menu-first-button,
    .menu-second-button {
        padding: 8px 16px;
        font-size: 14px;
    }
}

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

@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: 0;
        border-radius: 6px;
        margin-right: 10px;
    }

    .menu-buttons-container.menu-buttons-desktop {
        display: none;
    }

    .menu-buttons-container.menu-buttons-mobile {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 12px;
        margin-top: 5px;
        padding-top: 20px;
        border-top: 1px solid #050a28;
    }

    .menu-buttons-mobile-wrapper {
        width: 100%;
        padding: 0 !important;
    }

    .menu-buttons-mobile-wrapper .menu-buttons-container {
        padding: 0;
    }

    .menu-items {
        margin-right: 0;
    }

    .mobile-menu-burger {
        background: #fff;
        padding: 10px;
        border-radius: 0px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .sub-menu {
        width: 100%;
    }

    .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        min-width: 200px;
    }
    
    .sub-menu .sub-menu {
        position: absolute;
        top: 0;
        left: 100%;
        width: 100%;
        min-width: 200px;
    }
}

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

@media screen and (max-width: 1024px) {
    .mobile-menu-main {
        display: none;
        position: fixed;
        background: #fff;
        flex-direction: column;
        width: 100%;
        left: 0;
        top: 60px;
        border-radius: 0;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 20px;
        overflow-y: auto;
    }
	
	.menu-item a {
		font-size: 18px !important;
	}
	
	.sub-menu {
        position: static;
        display: none;
        width: 100%;
        margin-top: 10px;
        margin-left: 20px;
    }
    
    .menu-item.menu-item-active > .sub-menu {
        display: block;
    }

    .menu-buttons-mobile-wrapper {
        width: 100%;
        margin-top: 10px;
    }

    .menu-buttons-mobile {
        width: 100%;
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .menu-buttons-mobile .menu-first-button,
    .menu-buttons-mobile .menu-second-button {
        width: 100%;
        text-align: center;
        padding: 10px!important;
        padding-bottom: 0px!important;
        font-size: 16px;
    }

    .menu-left, .menu-right, .menu-items {
        gap: 5px!important;
    }

    a.menu-first-button {
        margin-top: 15px ! Important;
    }
    
    
}

    .menu-first-button,
    .menu-second-button {
        padding: 10px !important;
        
    }