/* Ensure the body doesn't clip the full width */
body {
    font-family: var(--site-font);
    /* Logic Added */
    margin: 0;
    padding: 0;
}

/* 1. Sticky & Full Width Container */
.jaz-sticky-wrapper {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    /* Stays above other content */
    direction: rtl;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Inner alignment container */
.jaz-sticky-content {
    width: 100%;
    max-width: 1400px;
    /* Limits content width on very large screens */
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 2. Top Bar (Variable Color) */
.jaz-sticky-top-bar {
    background-color: var(--primary-color);
    /* Logic Added */
    color: white;
    padding: 6px 0;
    width: 100%;
}

.jaz-sticky-socials {
    display: flex;
    gap: 15px;
    direction: ltr;
}

.jaz-sticky-socials a,
.jaz-sticky-lang a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

/* 3. Main Nav (Variable Background) */
.jaz-sticky-main-nav {
    background-color: var(--nav-bg);
    /* Logic Added */
    padding: 10px 0;
    width: 100%;
}

.jaz-sticky-flex {
    display: flex;
    align-items: center;
}

.jaz-sticky-menu {
    display: flex;
    list-style: none;
    gap: 18px;
    margin: 0;
    padding: 0;
}

/* Added for Dropdown logic */
.jaz-sticky-menu li {
    position: relative;
}

.jaz-sticky-menu li a {
    text-decoration: none;
    color: var(--nav-text);
    /* Logic Added */
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    display: block;
    padding: 5px 0;
}

/* --- NEW DROPDOWN CSS --- */
.jaz-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--nav-bg);
    /* Logic Added */
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    z-index: 1001;
    border-top: 2px solid var(--primary-color);
    /* Logic Added */
}

.jaz-dropdown li a {
    padding: 8px 15px;
    font-weight: 500;
    font-size: 13px;
}

.jaz-dropdown li a:hover {
    background-color: #f1f1f1;
}

/* Show on hover for Desktop */
@media (min-width: 1101px) {
    .jaz-sticky-menu li:hover .jaz-dropdown {
        display: block;
    }
}

/* ------------------------ */

/* Search Button */
.jaz-sticky-search-btn {
    background: var(--primary-color);
    /* Logic Added */
    color: white;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo Placeholder */
.jaz-sticky-logo-placeholder {
    width: 160px;
    height: 50px;
    background: var(--nav-bg);
    /* Logic Added */

    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #ffffff;
}

/* Mobile Toggle Button - Hidden by default */
.jaz-sticky-mobile-toggle {
    display: none;
    font-size: 24px;
    color: var(--nav-text);
    /* Logic Added */
    cursor: pointer;
}

/* Responsive Handling */
@media (max-width: 1100px) {
    .jaz-sticky-mobile-toggle {
        display: block;
    }

    .jaz-sticky-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--nav-bg);
        /* Logic Added */
        border-top: 1px solid #eee;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .jaz-sticky-menu.active {
        display: flex;
    }

    /* Show dropdowns when clicked on mobile */
    .jaz-sticky-menu.active .jaz-dropdown.open {
        display: block;
        position: static;
        box-shadow: none;
        background: #f9f9f9;
        padding-right: 20px;
    }

    .jaz-sticky-menu li {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    .jaz-sticky-flex {
        justify-content: space-between;
    }
}

.jaz-sticky-lang {
    background: transparent;
    /* Slight transparency */
    padding: 2px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

}

.jaz-sticky-lang a {
    margin: 0 6px;
    font-weight: 600;
}

#jaz-lang-select {
    border: none;
    background: transparent;
    font-size: 12px;
    /* Smaller text */
    font-weight: bold;
    color: #ffffff;
    background-color: var(--primary-color);
    /* Logic Added */
    cursor: pointer;
    padding: 5px 10px;
    outline: none;
    /* Removes focus border */
    appearance: none;
    /* Removes default arrow in some browsers */
    -webkit-appearance: none;
    text-align: center;
}