:root {}

.mst-flex {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

/* Top Bar */

#menu-primary-menu li a {
    font-size: 18px;
}

.header-container {
    margin-bottom: -90px;
    position: relative;
    z-index: 9;
    top: 15px;
}





/* === Desktop Menu === */
#menu-primary-menu {
    display: flex !important;
    gap: 1.5em;
}

.burger-icon {
    display: none;
    /* Hide burger on desktop */
}

.close-icon {
    display: none;
    /* Only visible on mobile */
}

#menu-primary-menu li:last-of-type a {
    background: var(--the-blue);
    padding: 10px 20px;
    color: var(--the-white);
    border-radius: 9px;
}
/* 
.the-primary-menu li a::after {
    content: '\e803';
    position: relative;
    font-family: '4sight4ward';
    right: -5px !important;
} */

/* Base (optional) */
#menu-primary-menu li>a {
    transition: 500ms;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 4px;
}

/* Home (front page) */
body.home #menu-primary-menu li>a {
    color: var(--the-white) !important;
}


/* body:not(.home) #menu-primary-menu li>a {
    color: var(--the-blue-three) !important;
} */
/* Menu link color when menu is closed */
body:not(.home) #menu-primary-menu li > a:not(.menu-open li > a) {
    color: var(--the-blue-three) !important;
}

/* Alternatively, simpler approach using body state */
body:not(.home):not(.menu-open) #menu-primary-menu li > a {
    color: var(--the-blue-three) !important;
}

/* All menu items EXCEPT the last: hover effect */
#menu-primary-menu li:not(:last-of-type) a:hover {
    background: var(--the--purple);
    padding: 5px;
    border-radius: 9px;
    color: var(--the-dark-blue);
}

/* Last menu item: keep base style, custom hover */
#menu-primary-menu li:last-of-type a {
    background: var(--the-blue);
    padding: 10px 20px;
    color: var(--the-white);
    border-radius: 9px;
}

/* Optional: custom hover for last item */
#menu-primary-menu li:last-of-type a:hover {
    background: var(--the--purple);
    color: var(--the-blue);
}

#menu-primary-menu li.current-menu-item a {
    padding: 5px;
    border-radius: 9px;
    color: var(--the-white) !important;
    text-transform: uppercase;
}


/* === Mobile Menu === */
@media (max-width: 1000px) {
.the-primary-menu {
	position: fixed;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: var(--the-main-gradient);
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
	transition: left 0.4s ease;
	z-index: 999;
	display: flex;
	flex-direction: column;
	padding: 20px;
}
    .the-primary-menu .menu {
        list-style: none;
        padding: 0;
        margin: 60px 0 0 0;
        display: flex;
        flex-direction: column;
    }

    .the-primary-menu .menu li {
        margin-bottom: 20px;
        text-align: center;
    }

    .the-primary-menu .menu li a {
        text-decoration: none;
        color: var(--the-black);
        font-size: 20px;
        display: block;
        padding: 10px 0;
    }

    .burger-icon {
        display: block;
        font-size: 39px;
        cursor: pointer;
        z-index: 1001;
        color: var(--the-blue);
    }

    .close-icon {
        font-size: 28px;
        text-align: right;
        cursor: pointer;
        color: var(--the-blue);
    }

    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 998;
        transition: all 0.4s ease;
    }

    .close-icon {
        display: block;
        /* Only visible on mobile */
    }

    /* When menu is active */
    .menu-open .the-primary-menu {
        left: 0;
        /* Slide menu in */
    }

    .menu-open .menu-overlay {
        display: block;
        /* Show overlay */
    }

/* White only on homepage */
body.home .icon-menu,
body.home .icon-close {
  color: var(--the-white);
}

/* Default for inside pages */
body:not(.home) .icon-menu,
body:not(.home) .icon-close {
  color: var(--the-blue-three); /* change this to your preferred inside-page color */
}
/* When menu is open on mobile */
.menu-open #menu-primary-menu li > a {
  color: #fff !important; /* white */
}
body:not(.home) .menu-open #menu-primary-menu li > a {
    color: var(--the-white) !important;
}

}