/* Language Button */
.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-btn {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0px 12px 0px 16px;
    gap: 8px;
    width: 80px;
    height: 48px;
    background: #333B4C;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: bold;
}

.dropdown-icon {
    width: 20px;
    height: auto;
    transition: transform 0.3s ease;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1C2539;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    border-radius: 8px;
    z-index: 1;
    width: 200px;
    right: 0;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding-top: 4px;
    padding-bottom: 4px;
}

.dropdown-content.show {
    display: block;
    opacity: 1;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto; /* Center the items within the dropdown */
    width: 162px;
    border-radius: 6px;
}

.dropdown-content a:hover {
    background-color: #333B4C;
    width: 162px; /* Ensures the width remains consistent on hover */
    border-radius: 6px;
    text-align: center; /* Ensure text is centered on hover */
}

.valid-icon {
    width: 20px;
    height: auto;
}

.language-dropdown:hover .dropdown-content {
    display: block;
}
.language-btn .dropdown-icon.rotate {
    transform: rotate(180deg);
}
