/* Language Buttons Common Style */
.lang-buttons {
    display: flex;
    gap: 6px;
    margin-left: 20px;
    margin-right: auto;
    align-items: center;
    flex-shrink: 0;
}

.lang-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.lang-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
    border-color: white;
}

.lang-btn.active {
    border-color: #E85A4F;
    background: #FFF5EB;
    transform: scale(1.15);
}

@media (max-width: 900px) {
    .nav-container {
        /* Reset padding as we are removing absolute positioning */
        padding-right: 16px;
    }

    .lang-buttons {
        position: static;
        /* Flexbox flow */
        margin-left: auto;
        /* Push to right */
        margin-right: 12px;
        /* Space before toggle */
        gap: 4px;
        transform: none;
        /* Reset positions */
    }

    .lang-btn {
        width: 26px;
        height: 26px;
        font-size: 1rem;
        border-width: 1px;
    }
}

@media (max-width: 400px) {

    /* Very small screens: hide less important flags or reduce gap further if needed */
    .lang-buttons {
        gap: 2px;
        margin-right: 8px;
    }
}