header {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
}
.navbar-container {
    /* direction: rtl; */
    background-color: #333;    
    box-sizing: border-box;
    
}
.navbar-width{
    display: flex;
    max-width: 1024px;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    color: #fff;
    margin: 0 auto;
}
.navbar-logo {
    display: flex;
    align-items: center;
    flex-direction: column;
}
.navbar-logo img {
    width: 120px;
    height: 39px;
    display: flex;
    margin-right: 10px;
    margin-top: 10px;
}
.navbar-logo p {
    color: #ccc;
    font-size: clamp(8px, 2vw, 12px);
    margin: 5px 0 0 0;
    text-align: center;
}
.navbar-search-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}
.search-container {
    display: flex;
    align-items: center;
}
.search-input {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    text-align: center;
}
.search-button {
    padding: 5px 10px;
    background-color: orange;
    border: none;
    border-radius: 5px;
    margin-left: 5px;
    cursor: pointer;
}
.search-icon {
    color: #fff;
}
.navbar-right-side-container {
    display: flex;
    align-items: center;
}
.navbar-links-container {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}
.navbar-links-container li {
    margin-left: 20px;
}
.navbar-links-container a {
    text-decoration: none;
    color: #fff;
}
.login-button .login-link {
    text-decoration: none;
    color: #fff;
    background-color: orange;
    padding: 5px 10px;
    border-radius: 5px;
    margin-left: 20px;
}
.navbar-hamburger-menu {
    display: none;
    cursor: pointer;
}
.search-input-navbar-container-mobile {
    display: none;
}
@media (max-width: 768px) {
    .navbar-hamburger-menu {
        display: -webkit-box;
        display: -webkit-flex;
        display: -moz-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -webkit-align-items: center;
        -moz-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        margin: 0 9px 0 13px;
        width: 21px;
        height: 16px;
    }
    .navbar-right-side-container {
        display: none;
    }
    .search-container{
        display: none;
    }
    .search-input-navbar-container-mobile {
        display: -webkit-box;
        display: -webkit-flex;
        display: -moz-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
        -webkit-justify-content: center;
        -moz-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        -webkit-box-align: center;
        -webkit-align-items: center;
        -moz-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }
}
/* ............................ */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000; /* اطمینان از قرار گرفتن روی عناصر دیگر */
}

.autocomplete-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
    direction:rtl;
}

.autocomplete-item:hover {
    background: #f5f5f5;
}

.autocomplete-item a {
    text-decoration: none;
    color: #333;
    display: block;
    width: 100%;
}


.search-container {
    position: relative;
}
@media screen and (max-width: 768px) {
    #autocomplete-dropdown {
        position: absolute;
        width: 100%;
        background: white;
        border: 1px solid #ccc;
        border-radius: 5px;
        max-height: 200px;
        overflow-y: auto;
        z-index: 9999 !important; /* بالا نگه داشتن */
        display: none; /* مخفی کردن اولیه */
    }

    .autocomplete-item {
        padding: 10px;
        cursor: pointer;
        border-bottom: 1px solid #eee;
    }

    .autocomplete-item:hover {
        background: #f5f5f5;
    }
}

/* ---------footer-section--------------------- */
.footer-section {
    background-color: #002147;
    color: #fff;
    padding: 40px 0;
    font-family: 'Vazir', sans-serif;
    direction: rtl;
}
.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-company {
    flex: 1;
    min-width: 200px;
    margin: 20px;
    text-align: justify;
}
.footer-company h2{
    font-size: clamp(12px, 2vw, 16px);
}
.footer-company p{
    font-size: clamp(10px, 2vw, 14px);
}
.footer-links {
    display: flex;
    justify-content: space-around;
    flex: 3;
    min-width: 300px;
    margin: 20px;
}
.footer-links div {
    margin: 20px;
}
.footer-links h3 {
    font-size: clamp(14px, 2vw, 18px);
    margin-bottom: 10px;
}
.footer-links ul {
    list-style: none;
    padding: 0;
}
.footer-links ul li {
    margin-bottom: 8px;
}
.footer-links ul li a {
    color: #fff;
    text-decoration: none;
    font-size: clamp(12px, 2vw, 16px);
}
.footer-links ul li a:hover {
    text-decoration: underline;
}
.footer-bottom {
    width: 50%;
    text-align: center;
    margin: 0 auto;
    font-size: clamp(12px, 2vw, 14px);
}
.footer-socials a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
    font-size: clamp(14px, 2vw, 20px);
}
.footer-socials a:hover {
    color: #ccc;
}
.footer-logo {
    max-width: 150px;
    margin-bottom: 20px;
}
.footer-flag {
    width: 24px;
    height: auto;
    vertical-align: middle;
    margin-left: 5px;
}

/* Popup Styling */
.mobile-search-popup {
    display: none; /* به‌صورت پیش‌فرض مخفی است */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    position: relative; /* برای اطمینان از موقعیت صحیح */
}
.close-button {
    background: none;
    border: none;
    font-size: 24px;
    color: #000;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}
.mobile-search-input {
    width: 80%;
    padding: 10px;
    margin: 10px 0;
    font-size: clamp(12px, 2vw, 16px);
    direction: rtl;
}
.mobile-search-button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: clamp(12px, 2vw, 16px);
    cursor: pointer;
}

/* Popup Styling */
.mobile-menu-popup {
    display: none; /* پیش‌فرض مخفی است */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    position: relative; /* برای موقعیت‌دهی دکمه بستن */
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    margin: 10px 0;
}

.mobile-menu a {
    text-decoration: none;
    color: #000;
    font-size: clamp(13px, 2vw, 18px);
}

