/* Force style on the custom menu button link */
.primary-navigation .menu-button a {
    background-color: #020308 !important; /* Button background color */
    color: #fec66f !important;            /* Text color */
    padding: 10px 20px !important;        /* Gives it a button shape */
    border-radius: 2px !important;        /* Rounded corners */
    display: inline-block !important;     /* Keeps the button layout shape */
    font-weight: bold !important;
    text-decoration: none !important;     /* Removes underlines */
    
    /* Adds a transparent border on standard state to prevent twitching on hover */
    border: 2px solid transparent !important; 
    transition: all 0.2s ease-in-out;     /* Smoothly animates the colors */
}

/* Updated hover state with outline and text color change */
.primary-navigation .menu-button a:hover {
    background-color: transparent !important; /* Empties the background fill */
    color: #020308 !important;               /* Changes text color on hover */
    border: 2px solid #020308 !important;    /* Adds the colored outline border */
}

/* Secondary Menu - Position the secondary menu container in the absolute top right corner */
.site-footer .footer-navigation-wrapper {
    position: absolute !important;
    top: 25px !important;       /* Adjust spacing from the very top edge */
    right: 30px !important;     /* Adjust spacing from the right edge */
    left: auto !important;      /* Clears out full-width settings */
    width: auto !important;     /* Shrinks container to fit only the flags/text */
    z-index: 9999 !important;   /* Ensures it stays on top of other elements */
    background: transparent !important; /* Removes any accidental background blocks */
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure the menu list layout aligns neatly in a horizontal row */
.site-footer .footer-navigation {
    display: flex !important;
    justify-content: flex-end !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Adjust layout spacing for the individual language links */
.site-footer .footer-navigation li {
    margin-left: 15px !important; /* Spaces the flags/languages out horizontally */
    margin-right: 0 !important;
    list-style: none !important;  /* Removes bullet points */
}

/* Style the language link text inside this top right area */
.site-footer .footer-navigation a {
    font-size: 0.9rem !important; /* Makes the switcher look sleek and compact */
    text-decoration: none !important;
    font-weight: 500 !important;
}
