/* ========================================
   TRANSLATE BAR
   ======================================== */

.translate-bar {
    display: flex;
    padding: 12px 0; /* Remove horizontal padding, let content container handle it */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    background: var(--Brand-Primary-Alt, #004C97);
    width: 100%; /* Ensure full width */
    margin: 0; /* Remove auto margin */
}

.translate-bar-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 32px;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto; /* Center the content */
    padding: 0 130px; /* Add horizontal padding here instead */
}

/* ========================================
   LANGUAGE SWITCHER
   ======================================== */

.language-switcher {
    position: relative;
    display: flex;
    align-items: center;
}

.current-language {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    padding: 4px 8px;
    border-radius: 4px;
    border: none;
    background: transparent;
    outline: none;
}

.current-language:hover,
.current-language:focus {
    opacity: 0.8;
    background: rgba(253, 251, 255, 0.1);
}

.current-language:focus {
    outline: 2px solid var(--Primary-P9, #FDFBFF);
    outline-offset: 2px;
}

.translate-icon {
    width: 18.91px;
    height: 16px;
    aspect-ratio: 18.91/16.00;
}

.translate-text {
    color: var(--Primary-P9, #FDFBFF);
    font-family: "Source Sans 3", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 125%; /* 17.5px */
    letter-spacing: 0.28px;
}

.translate-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.language-switcher:hover .translate-arrow {
    transform: rotate(180deg);
}

/* Language Dropdown */
.language-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--Brand-Primary-Alt, #004C97);
    border: 1px solid var(--Primary-P9, #FDFBFF);
    border-radius: 8px;
    min-width: 150px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.language-switcher:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    color: var(--Primary-P9, #FDFBFF) !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(253, 251, 255, 0.1);
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: rgba(253, 251, 255, 0.1);
    text-decoration: none !important;
}

.language-code {
    font-family: "Source Sans 3", sans-serif;
    font-size: 12px;
    font-weight: 600;
    min-width: 24px;
}

.language-name {
    font-family: "Source Sans 3", sans-serif;
    font-size: 14px;
    font-weight: 400;
}

/* Fallback translate section (when WPML not available) */
.translate-section {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.translate-section:hover {
    opacity: 0.8;
}

/* ========================================
   DONATION PARTNER LOGIN
   ======================================== */

.donation-login-link {
    color: var(--Primary-P9, #FDFBFF) !important;
    text-decoration: none !important;
    font-family: "Source Sans 3", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 125%; /* 17.5px */
    letter-spacing: 0.28px;
    transition: opacity 0.2s ease;
}

.donation-login-link:hover {
    text-decoration: underline !important;
}

/* ========================================
   SEARCH BAR
   ======================================== */

.search-container {
    display: flex;
    align-items: center;
}

.search-form {
    margin: 0;
}

.search-bar {
    display: flex;
    width: 222px;
    height: 32px;
    max-width: 720px;
    align-items: center;
    gap: 4px;
    border-radius: 28px;
    border: 1px solid var(--Primary-P9, #FDFBFF);
    background: transparent;
}

.search-input-container {
    display: flex;
    padding: 0 12px;
    align-items: center;
    gap: 10px;
    flex: 1 0 0;
    align-self: stretch;
}

.search-field {
    flex: 1;
    border: none !important;
    background: transparent !important;
    color: var(--Primary-P9, #FDFBFF) !important;
    font-family: "Source Sans 3", sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    overflow: visible !important;
    text-transform: none !important;
    font-family: inherit !important;
    line-height: inherit !important;
}

.search-field::placeholder {
    color: var(--Primary-P9, #FDFBFF);
    opacity: 0.7;
}

.search-submit {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    color: var(--Primary-P9, #FDFBFF) !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    text-align: center !important;
    transition: none !important;
    user-select: none !important;
    white-space: nowrap !important;
    width: auto !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    overflow: visible !important;
    font-family: inherit !important;
    line-height: inherit !important;
    text-transform: none !important;
}

.search-submit:focus {
    outline: 2px solid var(--Primary-P9, #FDFBFF) !important;
    outline-offset: 2px !important;
    border-radius: 2px !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    color: var(--Primary-P9, #FDFBFF) !important;
}

.search-submit:hover {
    opacity: 1 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    color: var(--Primary-P9, #FDFBFF) !important;
}

.search-icon {
    width: 16px;
    height: 16px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .translate-bar {
        padding: 12px 0; /* No horizontal padding */
    }
    
    .translate-bar-content {
        gap: 16px;
        justify-content: center;
        padding: 0 16px; /* Mobile padding */
    }
    
    .search-bar {
        width: 180px;
    }
    
    .translate-text,
    .donation-login-link {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .translate-bar-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .translate-section,
    .donation-login-link {
        order: 1;
    }
    
    .search-container {
        order: 2;
        width: 100%;
    }
    
    .search-bar {
        width: 100%;
        max-width: 300px;
    }
}
