/* Main menu fallback style */
.main-menu .fallback li {
    padding-left: 10px;
}

/* General styles for the navigation menu */

.main-menu {
    display: flex;
    align-items: center;
    gap: 1em;
}

.main-menu {
    overflow-y: scroll !important;
    scrollbar-width: none !important;
    padding: 10px 0px;
}

.main-menu .navlinks ul {
    list-style: none;
    transition: all 0.5s ease-in-out;
}

.main-menu .navlinks li {
    display: inline-block;
    margin-left: 10px;
    transition: transform 0.5s ease-in-out;
}

.main-menu .navlinks a {
    font-size: 18px;
    text-decoration: none;
    color: #0066a1;
    padding: 10px 15px;
    border-radius: 4px;
    transition: color 0.5s ease-in-out, background-color 0.5s ease-in-out; /* Added color and background-color */
}

/* Style for the active/current menu item */
.main-menu .navlinks .current_page_item > a,
.main-menu .navlinks .current-menu-item > a,
.main-menu .navlinks .active > a {
    color: #df9000;
    border-radius: 4px;
    transition: color 0.5s ease-in-out; 
}

/* Hover effect for menu items */
.main-menu .navlinks a:hover {
    color: #ffa500;
    border-radius: 4px;
    transition: color 0.5s ease-in-out, background-color 0.5s ease-in-out; /* Transition for color & background */
}

.main-menu .navlinks .menu-item {
    position: relative;
}

.main-menu .navlinks a:hover::before,
.main-menu .navlinks .active > a:before {
    content: '';
    width: 85%;
    height: 2px;
    display: block;
    position: absolute;
    background-color: #ffa500;
    left: 10%;
    top: -10px;
    transition: width 0.5s ease, left 0.5s ease; /* Transition for width and position */
}

.main-menu .navlinks a:hover::after,
.main-menu .navlinks .active > a:after {
    content: '';
    width: 85%;
    height: 2px;
    display: block;
    position: absolute;
    background-color: #ffa500;
    left: 10%;
    bottom: -10px;
    transition: width 0.5s ease, left 0.5s ease; /* Transition for width and position */
}


/* Style for the login button in the menu */
.navlinks .login-btn > a {
    display: inline-block;
    padding: 10px 20px;
    color: #ffffff;
    background-color: #0073aa;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover state for the login button */
.navlinks .login-btn > a:hover {
    background-color: #005a87;
    color: #ffffff;
}

/* Active or focused state for accessibility */
.navlinks .login-btn > a:focus {
    outline: 2px solid #005a87; 
    outline-offset: 2px;
}

/* Style for the webmail button in the menu */
.navlinks .webmail-btn > a {
    display: inline-block;
    padding: 10px 20px;
    color: #ffffff;
    background-color: #0073aa;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover state for the webmail button */
.navlinks .webmail-btn > a:hover {
    background-color: #005a87;
    color: #ffffff;
}

/* Active or focused state for accessibility */
.navlinks .webmail-btn > a:focus {
    outline: 2px solid #005a87;
    outline-offset: 2px;
}