.language-selector {
    position: relative;
    display: inline-block;
    margin-left: 15px;
    vertical-align: middle;
}

.current-language {
    display: flex;
    align-items: center;
    cursor: pointer;
    background-color: transparent;
    padding: 5px 10px;
    border-radius: 4px;
    color: #333;
}

.current-language svg,
.current-language img {
    height: 20px;
    width: auto;
    margin-right: 5px;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    left: 0; /* Align with the left edge of current language */
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
    margin-top: 5px;
    width: auto;
    min-width: 100%;
    overflow: hidden;
}

/* Remove hover styles completely */
/* .language-selector:hover .language-dropdown {
    display: none;
} */

/* Add class for when dropdown is active */
.language-dropdown.active {
    display: block !important; /* Use !important to override any other display rules */
}

.language-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
}

.language-option:hover {
    background-color: #f5f5f5;
}

.language-option svg,
.language-option img {
    height: 20px;
    width: auto;
    margin-right: 8px;
}