/* Header Styling */
.lx-custom-header {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    background: #fff;
    border-radius: 10rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    z-index: 9999;
    padding: 0.25rem 0.8rem;
    display: flex;
    align-items: center;
}


/* Logo */
.lx-logo img {
    max-height: 36px;
    width: auto;
    padding-left: 1rem;
}

/* Logo is intrinsic width — it no longer competes for the leftover space. */
.lx-logo {
    flex: 0 0 auto;
    min-width: 0;
}

/* Menu sits left, right after the logo, and takes only the width it needs.
   Longer translations (fr/es/pt) then grow rightwards into the slack instead
   of crowding the login link and wrapping the CTA onto two lines. */
.lx-main-menu-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
    margin-left: 5rem;
}

/* Right cluster absorbs ALL the leftover space and pins itself to the far
   edge — that is what creates the breathing room ahead of the login link.
   padding-left guarantees a minimum gap even when the menu is at its widest. */
.lx-right-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.5rem;
    padding-left: 2rem;
    position: relative;
}

/* Main content spacing */
#main {
    padding-top: 100px;
}

/* Buttons */
.btn-login {
    color: #199caa;
    font-weight: 700;
    background: transparent;
    border: none;
    padding: 0.5rem 0.5rem 0.5rem 0.75rem;
    border-radius: 2rem;
    transition: color 0.2s ease;
    white-space: nowrap;
    flex: 0 0 auto;
}

.btn-login:hover {
    color: #148094;
    background: transparent;
}

.btn-lx-primary {
    display: inline-block;
    background-color: #1e9eb7;
    border: 1px solid #1e9eb7;
    color: #fff;
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.1s;
    white-space: nowrap;
    flex: 0 0 auto;
}

.btn-lx-primary:hover {
    background-color: #148094;
    border-color: #148094;
    color: #ffffff;
}

.btn-lx-primary:active {
    transform: translateY(1px);
}

/* Language Switcher wrapper — intrinsic width, so nothing in the right cluster
   can be squeezed into a second line. */
.language-switcher-wrapper {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
}

@media (max-width: 1200px) {
    .lx-logo img {
        padding-left: 0;
    }
}