.justify-content-right{
    justify-content: right;
}

/* Navigation list */
#GlobalNav .navbar-nav {
    display: flex;
    justify-content: flex-end;
    gap: 0.2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Individual nav link */
#GlobalNav .nav-item a,
#GlobalNav a.btn.btn-login {
    color: var(--link-text-color, #e2e6ea);
    font-weight: 500;
    text-decoration: none;
    padding: 0.2rem 1rem;
}

/* Hover state for links */
#GlobalNav .nav-item a:hover,
#GlobalNav a.btn.btn-login:hover {
    text-decoration: underline;
    color: var(--link-text-color-hover, #e2e6ea);
}

/* Icon styling */
#GlobalNav .btn-login i {
    margin-right: 0.5rem;
}

/* Responsive */
@media (max-width: 1000px) {
    #GlobalNav .navbar-nav {
        flex-direction: column;
        align-items: flex-end;
    }

    #GlobalNav .nav-item a,
    #GlobalNav a.btn.btn-login {
        width: 100%;
        text-align: right;
    }
}

/* Locale dropdown container */
.locale-dropdown {
    position: relative;
    display: inline-block;
    text-align: right;
}

/* Dropdown button */
.locale-button {
    background-color: #ffffff;
    color: #333;
    border: 1px solid #ccc;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Caret icon */
.locale-button::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #333;
}

/* Dropdown menu */
.locale-menu {
    position: absolute;
    right: 20%;
    top: 100%;
    margin-top: 0.1rem;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-width: 50px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
    display: none;
    z-index: 999;
}

/* Dropdown menu visible */
.locale-menu.show {
    display: block;
}

/* Locale items */
.locale-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: #333;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.locale-menu a:hover {
    background-color: #f1f1f1;
    color: #007bff;
}

/* Responsive fallback */
@media (max-width: 1000px) {
    .locale-dropdown {
        text-align: center;
    }
}

/* Hide nav-wrapper on small screens */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--link-text-color);
    cursor: pointer;
    margin-left: 1rem;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Responsive: Collapse nav and show toggle */
@media (max-width: 1000px) {
    .menu-toggle {
        display: block;
        position: absolute;
    }

    .nav-wrapper {
        position: relative;
        top:120px;
        display: none;
        flex-direction: column;
        align-items: flex-end;
        background-color: white;
        padding: 1rem;
        border-radius: 4px;
        gap: 0rem;
    }
    
    .nav-wrapper .nav-item .nav-link {
        color: var(--cas-theme-primary)!important;
    } 

    .nav-wrapper.show {
        display: flex;
    }

    .locale-dropdown {
        margin-top: 0.5rem;
    }
}

.hamburger-icon {
  width: 30px;       /* width of the icon */
  height: 22px;      /* height to fit 3 bars */
  position: relative;
  cursor: pointer;
  display: inline-block;
}

/* Each bar */
.hamburger-icon::before,
.hamburger-icon::after,
.hamburger-icon div {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 4px;               /* thickness of each bar */
  background-color: var(--link-text-color);    /* color of bars */
  border-radius: 2px;        /* rounded corners */
  transition: 0.3s ease;
}

/* top bar */
.hamburger-icon::before {
  top: 0;
}

/* middle bar */
.hamburger-icon div {
  top: 9px;     /* spacing from top */
}

/* bottom bar */
.hamburger-icon::after {
  bottom: 0;
}
