/* --- GOOGLE TRANSLATE BANNER BAR SUPPRESSION & WIDGET HIDING --- */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
iframe.skiptranslate,
iframe[class*="goog-te-banner-frame"],
iframe[id*="goog-te-banner-frame"],
.goog-te-banner,
#goog-gt-tt,
.goog-te-balloon-frame,
div.goog-te-spinner-pos {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    max-height: 0 !important;
    max-width: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    top: -99999px !important;
    left: -99999px !important;
}

html, body {
    top: 0px !important;
    position: static !important;
    margin-top: 0px !important;
    padding-top: 0px !important;
}

/* ABSOLUTELY HIDE GOOGLE TRANSLATE ENGINE NATIVE WIDGET & ARROWS */
#google_translate_element,
.goog-te-gadget,
.goog-te-gadget-simple,
.goog-te-menu-value,
.goog-te-gadget-icon,
.goog-te-combo-aria,
iframe.goog-te-menu-frame,
.goog-te-menu-value span,
.goog-te-menu-value img {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

.goog-tooltip,
.goog-tooltip:hover {
    display: none !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* PERMANENTLY REMOVE HEADER NAV SPAN DROPDOWN ARROW PSEUDO-ELEMENTS */
.header-top-strip .header-other-nav .lang-container span:after,
.header-top-strip .header-other-nav .lang-container span:hover:after,
.lang-container span:after,
.lang-container span:hover:after,
.lang-header-btn span:after,
.lang-header-btn span:hover:after,
.lang-header-btn::after,
.lang-header-btn::before {
    display: none !important;
    content: none !important;
    background: none !important;
    width: 0 !important;
    height: 0 !important;
}

.header-top-strip .header-other-nav .lang-container span,
.lang-header-btn span {
    padding-right: 0 !important;
}

/* --- HEADER LANGUAGE SELECT BUTTON --- */
.lang-header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    outline: none;
    line-height: 1.2;
    position: relative;
}

.lang-header-btn i,
.lang-header-btn .fa-chevron-down,
.lang-header-btn svg,
.lang-container i,
.lang-container svg {
    display: none !important;
}

.lang-header-btn:hover {
    background: #f8fafc;
    border-color: #EF3826;
    color: #EF3826;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 56, 38, 0.12);
}

.lang-header-btn:active {
    transform: translateY(0);
}

.lang-flag-icon {
    font-size: 16px;
    line-height: 1;
    display: inline-block;
}

/* --- STYLED LANGUAGE MODAL POPUP --- */
.lang-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lang-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.lang-modal-card {
    background: #ffffff;
    width: 90%;
    max-width: 520px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 32px 28px;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Poppins', sans-serif;
    color: #1e293b;
    position: relative;
}

.lang-modal-backdrop.active .lang-modal-card {
    transform: translateY(0) scale(1);
}

.lang-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 26px;
    font-weight: 400;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
    padding: 4px;
}

.lang-modal-close:hover {
    color: #EF3826;
}

.lang-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.lang-modal-icon-badge {
    width: 48px;
    height: 48px;
    background: rgba(239, 56, 38, 0.1);
    color: #EF3826;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 12px;
}

.lang-modal-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #0f172a;
}

.lang-modal-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.lang-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

@media (max-width: 480px) {
    .lang-modal-grid {
        grid-template-columns: 1fr;
    }
}

.lang-modal-option {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    background: #f8fafc;
    transition: all 0.2s ease;
    user-select: none;
}

.lang-modal-option:hover {
    border-color: #EF3826;
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 56, 38, 0.1);
}

.lang-modal-option.selected {
    border-color: #EF3826;
    background: #fff5f5;
}

.lang-modal-flag {
    font-size: 26px;
    line-height: 1;
}

.lang-modal-label-box {
    display: flex;
    flex-direction: column;
}

.lang-modal-native {
    font-weight: 600;
    font-size: 15px;
    color: #0f172a;
}

.lang-modal-sublabel {
    font-size: 12px;
    color: #64748b;
}

.lang-modal-btn {
    width: 100%;
    background: #EF3826;
    color: #ffffff;
    border: none;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    box-shadow: 0 4px 12px rgba(239, 56, 38, 0.3);
}

.lang-modal-btn:hover {
    background: #d92d1c;
    transform: translateY(-1px);
}

.lang-modal-btn:active {
    transform: translateY(0);
}

/* --- MOBILE RESPONSIVE STYLES FOR HEADER LANGUAGE BUTTON --- */
@media (max-width: 575.98px) {
    .header-top-strip .header-other-nav .lang-container {
        display: inline-block !important;
        margin-left: 6px;
    }
    .lang-header-btn {
        padding: 4px 10px;
        font-size: 12px;
        gap: 4px;
    }
    .lang-flag-icon {
        font-size: 14px;
    }
}

