/* ==========================================================================
   JBL Language Switcher Styles
   ========================================================================== */

.jbl-lang-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
    z-index: 999999;
}

.jbl-lang-btn {
    background: #ffffff;
    border: 1.5px solid #293C57;
    color: #293C57 !important;
    font-size: 13.5px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    line-height: 1.2;
    text-decoration: none;
}

.jbl-lang-btn:hover,
.jbl-lang-btn[aria-expanded="true"] {
    background: #293C57;
    color: #ffffff !important;
    border-color: #293C57;
    box-shadow: 0 4px 14px rgba(41, 60, 87, 0.25);
    transform: translateY(-1px);
}

.jbl-lang-btn .jbl-lang-globe {
    font-size: 15px;
    color: #00E785;
}

.jbl-lang-btn .jbl-lang-chevron {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.jbl-lang-btn[aria-expanded="true"] .jbl-lang-chevron {
    transform: rotate(180deg);
}

/* CRITICAL: Default hidden state */
.jbl-lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 260px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #eef2f6;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    padding: 10px;
    z-index: 9999999;
    display: none !important;
    transform-origin: top right;
}

.jbl-lang-dropdown.active,
.jbl-lang-dropdown.show {
    display: block !important;
    animation: jblDropIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes jblDropIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.jbl-lang-dropdown-header {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    padding: 6px 10px 8px;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.jbl-lang-dropdown-header i {
    color: #293C57;
    font-size: 14px;
}

.jbl-lang-options {
    max-height: 240px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.jbl-lang-opt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 7px 10px;
    border-radius: 8px;
    border: none;
    background: transparent;
    font-size: 13.5px;
    color: #1f2937 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.jbl-lang-opt:hover {
    background: #f0fdf4;
    color: #065f46 !important;
}

.jbl-lang-opt.active {
    background: #eaf1f8;
    color: #293C57 !important;
    font-weight: 700;
}

.jbl-lang-opt .jbl-flag {
    margin-right: 8px;
    font-size: 15px;
}

.jbl-lang-opt .jbl-name {
    flex: 1;
}

.jbl-lang-opt .jbl-check {
    display: none;
    color: #293C57;
    font-size: 12px;
}

.jbl-lang-opt.active .jbl-check {
    display: inline-block;
}

.jbl-lang-dropdown-footer {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f3f4f6;
}

.jbl-more-label {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 6px;
    padding: 0 4px;
}

.jbl-more-langs-select {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    color: #1f2937;
    background: #ffffff;
    cursor: pointer;
}

/* Hide Google top banner, tooltips & iframe overlay */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
iframe.goog-te-banner-frame {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
}

body {
    top: 0px !important;
    position: static !important;
}

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

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

.goog-logo-link {
    display: none !important;
}

.goog-te-gadget {
    font-size: 11px !important;
    color: #9ca3af !important;
}

/* ==========================================================================
   Mobile Navbar, Fixed Header & Offcanvas Fixes
   ========================================================================== */

/* Offcanvas Drawer Layering */
.offcanvas__info {
    z-index: 1000000000 !important;
}

.offcanvas__overlay {
    z-index: 999999990 !important;
}

.offcanvas__wrapper {
    padding: 30px 25px 80px !important;
}

/* Ensure floating buttons hide behind or fade out when mobile offcanvas is open */
.offcanvas__info.info-open ~ * a[href*="wa.me"],
.offcanvas__overlay.overlay-open ~ a[href*="wa.me"],
.offcanvas__info.info-open ~ * #back-top,
.offcanvas__overlay.overlay-open ~ #back-top {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

@media (max-width: 991px) {
    .header-top-section {
        display: none !important;
    }

    #header-sticky,
    .header-section-3 .header-3 {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 99999 !important;
        background-color: #ffffff !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    }

    body {
        padding-top: 75px !important;
    }

    .header-main {
        padding: 10px 0 !important;
    }

    .header-main .logo img {
        max-height: 48px !important;
        width: auto !important;
    }

    .jbl-lang-wrapper {
        margin-right: 10px !important;
    }

    .jbl-lang-btn {
        padding: 6px 10px !important;
        font-size: 12px !important;
        gap: 5px !important;
    }

    .jbl-lang-dropdown {
        position: fixed !important;
        top: 72px !important;
        left: 15px !important;
        right: 15px !important;
        width: auto !important;
        min-width: unset !important;
        max-width: calc(100vw - 30px) !important;
        max-height: 80vh !important;
        overflow-y: auto !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
        z-index: 1000000 !important;
    }

    /* Mobile About Section (L850-L937) Image & Text Center */
    #about-section .about-thumb-style-1 {
        padding: 10px !important;
        margin: 0 auto 30px !important;
    }

    #about-section .about-thumb-style-1 .thumb {
        margin: 0 auto !important;
        max-width: 100% !important;
    }

    #about-section .about-thumb-style-1 .thumb .counter-list-box {
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: calc(100% - 40px) !important;
        max-width: 320px !important;
        bottom: 20px !important;
        padding: 20px 15px !important;
        text-align: center !important;
    }

    #about-section .about-content-style-2,
    #about-section .about-content-style-2.style-about-one {
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: center !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    #about-section .about-content-style-2 .thumb {
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 30px !important;
        text-align: center !important;
        max-width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    #about-section .about-content-style-2 .thumb img {
        margin: 0 auto !important;
        display: block !important;
        max-width: 100% !important;
    }

    #about-section .about-content-style-2 .section-title {
        text-align: center !important;
        margin-bottom: 20px !important;
    }

    #about-section .about-content-style-2 .section-title .sub-title {
        display: inline-block !important;
        margin: 0 auto 10px !important;
        text-align: center !important;
    }

    #about-section .about-content-style-2 .section-title .title {
        text-align: center !important;
    }

    #about-section .about-content-style-2 .about-text {
        text-align: justify !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    #about-section .about-content-style-2 .about-list {
        margin: 25px auto 0 !important;
        justify-content: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        text-align: center !important;
        max-width: 100% !important;
    }

    #about-section .about-content-style-2 .about-list ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    #about-section .about-content-style-2 .about-list ul li {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        margin-bottom: 12px !important;
    }

    #about-section .about-content-style-2 .theme-btn {
        margin: 30px auto 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}
