/* Language Selector */
/* Nav language selector */
.nav-lang-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 30px;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    padding-left: 15px;
}

/* Language selector in mobile menu */
@media (max-width: 768px) {
    .nav-lang-selector {
        margin-left: 0;
        margin-top: 10px;
        padding-top: 15px;
        padding-left: 0; /* Reset left padding */
        border-left: none; /* Remove left border */
        border-top: 1px solid rgba(255, 255, 255, 0.2); /* Updated border color */
    }
    
    /* Mobile sidebar language styles - light colors for dark background */
    nav .current-lang {
        color: rgba(255, 255, 255, 0.9) !important;
        background-color: rgba(255, 255, 255, 0.15) !important;
    }
    
    nav .current-lang::after {
        background-color: rgba(255, 255, 255, 0.8) !important;
    }
    
    nav .lang-link {
        color: rgba(255, 255, 255, 0.7) !important;
    }
    
    nav .lang-link:hover {
        color: rgba(255, 255, 255, 0.95) !important;
        background-color: rgba(255, 255, 255, 0.1) !important;
    }
    
    nav .lang-link:hover::after {
        background-color: rgba(255, 255, 255, 0.8) !important;
    }
}

/* Footer language selector */
.footer-lang-selector {
    display: flex;
    gap: 8px;
}

/* Common language selector styles */
/* Default language styles - will be used in page content */
.current-lang {
    font-weight: 600;
    color: var(--primary-blue);
    position: relative;
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: rgba(40, 116, 232, 0.1);
}

.current-lang::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}

.lang-link {
    color: var(--dark-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
}

.lang-link:hover {
    color: var(--primary-blue);
    background-color: rgba(40, 116, 232, 0.05);
}

/* Header specific language styles - better contrast against white header */
header .current-lang {
    color: var(--deep-blue);
    background-color: rgba(15, 58, 121, 0.1);
}

header .current-lang::after {
    background-color: var(--deep-blue);
}

header .lang-link {
    color: #4a5568;
    background-color: transparent;
}

header .lang-link:hover {
    color: var(--deep-blue);
    background-color: rgba(15, 58, 121, 0.05);
}

header .lang-link::after {
    background-color: var(--deep-blue);
}

.lang-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}

.lang-link:hover::after {
    width: 100%;
}

/* Footer specific language styles */
footer .current-lang, footer .lang-link {
    color: #1a202c !important;
}

footer .current-lang {
    color: var(--deep-blue);
    background-color: rgba(15, 58, 121, 0.1);
}

footer .current-lang::after {
    background-color: var(--deep-blue);
}

footer .lang-link:hover::after {
    background-color: var(--deep-blue);
}

footer .lang-link:hover {
    color: var(--deep-blue);
}