.filter {
    background-color:#addadd ;
    width: 80%;
    height: 100%;
    display: flex;
    flex-direction: row;
    margin-left: 7.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    direction: rtl;
}

.filterCity {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: flex-end;
    justify-content: flex-end;
    align-items: flex-end;
}

/* Custom dropdown */
.custom-dropdown {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin: 10px; /* demo only */
}

.item {
    text-align: right;
    margin: 15px 0;
    padding-left: 10px;
    padding-bottom: 5px;

}
.HrItem {
    text-align: right;
    margin: 15px 0;
    padding-left: 10px;
    padding-bottom: 5px;

    margin-top: 7rem;
}
.custom-dropdown select {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
    color: #1a237e;
    font-size: inherit;
    font-weight: 500;
    padding: 12px 40px 12px 12px;
    border: 2px solid #e8eef5;
    margin: 0;
    border-radius: 8px;
    text-indent: 0.01px;
    text-overflow: clip;
    overflow: visible;
    -webkit-appearance: none; /* hide default arrow in chrome OSX */
    appearance: none;
    width: 100%;
    max-width: 250px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232196F3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.08);
    letter-spacing: 0.3px;
}

.custom-dropdown select:hover {
    border-color: #2196F3;
    background: linear-gradient(135deg, #ffffff 0%, #f0f5ff 100%);
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.15);
    transform: translateY(-1px);
}

.custom-dropdown select:focus {
    outline: none;
    border-color: #1976D2;
    background: linear-gradient(135deg, #ffffff 0%, #f0f5ff 100%);
    box-shadow: 0 0 0 5px rgba(33, 150, 243, 0.2), 0 4px 16px rgba(33, 150, 243, 0.15);
}

.custom-dropdown select:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.12);
}

/* Option styling */
.custom-dropdown select option {
    padding: 10px 12px;
    background-color: #ffffff;
    color: #1a237e;
    font-weight: 500;
    border-right: 3px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: visible;
}

.custom-dropdown select option:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
}

.custom-dropdown select option:checked {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: #ffffff;
    font-weight: 600;
    border-right: 3px solid #ffffff;
    box-shadow: inset 0 0 20px rgba(33, 150, 243, 0.3);
}

.custom-dropdown::before,
.custom-dropdown::after {
    content: "";
    position: absolute;
    pointer-events: none;
    display: none;
}

.custom-dropdown::after {
    /*  Custom dropdown arrow */
    display: none;
}

.option {
    text-align: right;
}
.custom-dropdown::before {
    /*  Custom dropdown arrow cover */
    display: none;
}

.custom-dropdown select[disabled] {
    background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%);
    color: #999;
    border-color: #ddd;
    cursor: not-allowed;
    opacity: 0.6;
}

.custom-dropdown select[disabled]::after {
    color: rgba(0, 0, 0, 0.1);
}

.custom-dropdown::before {
    background-color: transparent;
}

.custom-dropdown::after {
    color: transparent;
}

/* =================================== */

/*nav */
.menu-bar{
    background-color: white;
    text-align: center;
    border-radius: 7px;

}

.menu-bar ul li{
    width: 200px;
    padding: 12px;
    text-align: center;
    padding-right: 0px !important;
}

.menu-bar ul li a{

    text-decoration: none;
    color:black;
}

.menu-bar ul li:hover{
    background-color: rgb(248, 241, 241);
    border-radius: 7px;
    cursor:pointer ;
}

.sub-menu-1{
    display: none;
    z-index: 999;
}

.menu-bar ul li:hover .sub-menu-1{
    display: block;
    position: absolute;
    background-color: rgb(248, 241, 241);
    margin-top: 15px;
    z-index: 999;
}

.menu-bar ul li:hover .sub-menu-1 ul{
    display: block;
    margin: 10px;
}

.menu-bar ul li:hover .sub-menu-1 ul li{
    width: 175px;
    padding: 10px;
    border-bottom: 1px dotted #000;
    background: transparent;
    border-radius: 0;
    text-align: right !important;
}
.menu-bar ul li:hover .sub-menu-1 ul li:last-child{
    border-bottom: none;

}

.menu-bar ul li:hover .sub-menu-1 ul li a:hover {
    color: rgb(49, 197, 197);

}


.sub-menu-2{
    display: none;

}


.fa-angle-left{
    float: left;
    margin-top: 5px;

}

.hover-me:hover .sub-menu-2{
    position: absolute;
    display: block;
    margin-top: -40px;
    margin-right: 170px;
    background: rgb(248, 241, 241);
}
/* =================================== */

:root {
    --input-border: #8b8a8b;
    --input-focus-h: 245;
    --input-focus-s: 100%;
    --input-focus-l: 42%;
}
.filterInput{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}


.input {
    width: 70px;
    font-size: 16px;
    font-size: max(16px, 1em);
    font-family: inherit;
    padding: 0.25em 0.5em;
    background-color: #fff;
    border: 2px solid var(--input-border);
    border-radius: 4px;
    transition: 180ms box-shadow ease-in-out;
}

.input:focus {
    border-color: hsl(var(--input-focus-h), var(--input-focus-s), var(--input-focus-l));
    box-shadow: 0 0 0 3px hsla(var(--input-focus-h), var(--input-focus-s), calc(var(--input-focus-l) + 40%), 0.8);
    outline: 3px solid transparent;
}

.input:not(textarea) {
    line-height: 1;
    height: 2.25rem;
}

input[type=file] {
    font-size: 0.9em;
    padding-top: 0.35rem;
}

textarea.input {
    resize: vertical;
}

.input[readonly] {
    border-style: dotted;
    cursor: not-allowed;
    color: #777;
}

.input[disabled] {
    --input-border: #ccc;
    background-color: #eee;
    cursor: not-allowed;
}

.filterInput label {
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1;
}

.input + .filterInput label {
    margin-top: 2rem;
}







/* ============ searchBox ============== */

:root {
    --bg: #e3e4e8;
    --fg: #17181c;
    --input: #ffffff;
    --primary: #255ff4;
    --dur: 1s;

}
.filterSearch input {
    color: var(--fg);
    font: 1em/1.5 Hind, sans-serif;
}
.filterSearch form,
.filterSearch input,
.caret {
    margin: auto;
}
.filterSearch form {
    position: relative;
    width: 100%;
    max-width: 17em;
}
.filterSearch input,
.caret {
    display: block;
    transition: all calc(var(--dur) * 0.5) linear;
}
.filterSearch input {
    background: transparent;
    border-radius: 50%;
    box-shadow: 0 0 0 0.25em inset;
    caret-color: var(--primary);
    width: 2em;
    height: 2em;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.filterSearch input:focus,
.filterSearch input:valid {
    background: var(--input);
    border-radius: 0.25em;
    box-shadow: none;
    padding: 0.75em 1em;
    transition-duration: calc(var(--dur) * 0.25);
    transition-delay: calc(var(--dur) * 0.25);
    width: 100%;
    height: 3em;
}
.filterSearch input:focus {
    animation: showCaret var(--dur) steps(1);
    outline: transparent;
}
.filterSearch input:focus + .caret,
.filterSearch input:valid + .caret {
    animation: handleToCaret var(--dur) linear;
    background: transparent;
    width: 1px;
    height: 1.5em;
    transform: translate(0, -1em) rotate(-180deg) translate(7.5em, -0.25em);
}
.filterSearch input::-webkit-search-decoration {
    -webkit-appearance: none;
}
.filterSearch label {
    color: #e3e4e8;
    overflow: hidden;
    position: absolute;
    width: 0;
    height: 0;
}
.caret {
    background: currentColor;
    border-radius: 0 0 0.125em 0.125em;
    margin-bottom: -0.6em;
    width: 0.25em;
    height: 1em;
    transform: translate(0, -1em) rotate(-45deg) translate(0, 0.875em);
    transform-origin: 50% 0;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #17181c;
        --fg: #e3e4e8;
        --input: #2e3138;
        --primary: #5583f6;
    }
}

/* Animations */
@keyframes showCaret {
    from {
        caret-color: transparent;
    }
    to {
        caret-color: var(--primary);
    }
}
@keyframes handleToCaret {
    from {
        background: currentColor;
        width: 0.25em;
        height: 1em;
        transform: translate(0, -1em) rotate(-45deg) translate(0, 0.875em);
    }
    25% {
        background: currentColor;
        width: 0.25em;
        height: 1em;
        transform: translate(0, -1em) rotate(-180deg) translate(0, 0.875em);
    }
    50%,
    62.5% {
        background: var(--primary);
        width: 1px;
        height: 1.5em;
        transform: translate(0, -1em) rotate(-180deg) translate(7.5em, 2.5em);
    }
    75%,
    99% {
        background: var(--primary);
        width: 1px;
        height: 1.5em;
        transform: translate(0, -1em) rotate(-180deg) translate(7.5em, -0.25em);
    }
    87.5% {
        background: var(--primary);
        width: 1px;
        height: 1.5em;
        transform: translate(0, -1em) rotate(-180deg) translate(7.5em, 0.125em);
    }
    to {
        background: transparent;
        width: 1px;
        height: 1.5em;
        transform: translate(0, -1em) rotate(-180deg) translate(7.5em, -0.25em);
    }
}

/* =================================== */
@media only screen and (max-width: 600px) {

    .filter {
        margin-left: 0;
        width: 100%;
        flex-direction: column;

    }
    .hover-me:hover .sub-menu-2{
        position: absolute;
        display: block;
        margin-top: 0px;
        margin-right: 50px;
        background: rgb(248, 241, 241);
    }

    .filterSearch{

        margin-top: 2rem;
        margin-bottom: 1rem;
    }

    .filterBtn{
        margin-top: 2rem;
        padding-bottom: 1rem;
    }
}

