
:root {
    --max-width: min(calc(100vw - 320px), 1200px);
}





.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .header h2 {
        border-right: 4px solid #e88301;
        padding-right: 6px;
        color: #333;
        margin: 0 0 10px 0;
        font: 600 20px / 28px;
    }

    .header a.more {
        background: #388ccc;
        font: normal 14px;
        padding: 5px 30px;
        margin: 0 0 10px 10px;
        text-decoration: none;
        color: #FFF;
        display: block;
    }



header {
    position: sticky;
    top: 0;
    background: #111;
    z-index: 999999999;
}

    header nav {
        display: flex;
        justify-content: space-between;
        max-width: var(--max-width);
        margin: 0 auto;
        position: relative;
        min-height: 50px;
        z-index: 3;
        background: #111;
        gap: 20px;
    }

        header nav ul {
            display: flex;
            gap: 10px;
            align-items: center;
        }

            header nav ul.announcements {
                overflow-x: auto;
                white-space: nowrap;
                background: #111;
                justify-content: flex-start;
                padding: 0 var(--gap);
                max-width: 50%;
            }

                header nav ul.announcements li {
                    position: relative;
                    padding: 2px;
                }

                    header nav ul.announcements li a {
                        padding: var(--gap) 15px;
                        background: rgba(200, 200, 200, .1);
                        border-radius: var(--gap);
                    }

            header nav ul li.logo {
                margin: 0px 0 0 20px;
                position: relative;
            }

            /*                header nav ul li.logo:after {
                    content: "Ø§Ù„Ø¥ØµØ¯Ø§Ø± Ø§Ù„Ø¬Ø¯ÙŠØ¯";
                    position: absolute;
                    bottom: 110%;
                    right: 0;
                    color: #fff;
                    font-size: 9px;
                    font-weight: 300;
                }*/

            header nav ul li a {
                color: #f5f5f5;
                display: flex;
                justify-content: center;
                align-items: center;
                font-size: 12px;
            }

            header nav ul li:hover a {
                color: #fff;
            }

            header nav ul:last-child li a {
                color: #f5f5f5;
            }

ul.social-icons {
    gap: 2px var(--gap);
    width: 125px;
    white-space: nowrap;
    background: #111;
    flex-direction: row-reverse;
    padding: var(--gap);
    flex-wrap: wrap;
    flex-grow: 1;
}

    ul.social-icons li.icon_btn.ico a {
        background: #ffffff;
        padding: 2px;
        border-radius: 500px;
        width: 23px;
        mix-blend-mode: hard-light;
        filter: grayscale(1) drop-shadow(2px 4px 0 rgba(0, 0, 0, 0)) invert(0);
    }

    ul.social-icons li.icon_btn.ico.hover a,
    ul.social-icons li.icon_btn.ico:hover a {
        filter: drop-shadow(2px 4px 0 rgba(255, 255, 255, 1)) drop-shadow(0 0 var(--gap) black) drop-shadow(0 0 var(--gap) black);
        padding: 2px 4px 4px 2px;
        mix-blend-mode: unset;
    }

header.mini {
    height: 50px;
    overflow: hidden;
    transition: all .5s;
}

    header.mini:hover {
        height: 100px;
        overflow: unset;
    }

#menu_toggle_icon {
    position: relative;
    width: 30px;
    height: 20px;
    cursor: pointer;
    padding: 0 18px;
    background: inherit;
    border: none;
    outline: none;
    display: none;
}

    #menu_toggle_icon i,
    #menu_toggle_icon::before,
    #menu_toggle_icon::after {
        position: absolute;
        width: 100%;
        height: 4px;
        background: #fff;
        border-radius: var(--gap);
        display: flex;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(0deg);
    }

    #menu_toggle_icon::before {
        content: "";
        top: 0;
    }

    #menu_toggle_icon::after {
        content: "";
        position: absolute;
        top: 100%;
    }

    #menu_toggle_icon:hover i,
    #menu_toggle_icon:hover::before,
    #menu_toggle_icon:hover::after {
        width: 90%;
    }



.open-menu #menu_toggle_icon i {
    animation: menu_toggle_icon_opened_i .15s linear forwards;
}

.open-menu #menu_toggle_icon::before {
    animation: menu_toggle_icon_opened_before .15s linear forwards;
}

.open-menu #menu_toggle_icon::after {
    animation: menu_toggle_icon_opened_after .15s linear forwards;
}

@keyframes menu_toggle_icon_opened_i {
    100% {
        width: 4px;
    }
}

@keyframes menu_toggle_icon_opened_before {
    100% {
        width: 4px;
        height: 30px;
        top: 50%;
        transform: translate(-50%, -50%) rotate(-45deg);
    }
}

@keyframes menu_toggle_icon_opened_after {
    100% {
        width: 4px;
        height: 30px;
        top: 50%;
        transform: translate(-50%, -50%) rotate(45deg);
    }
}

/******************** |  | ********************/

#menu_toggle_icon i {
    animation: menu_toggle_icon_i .15s linear forwards;
}

#menu_toggle_icon::before {
    animation: menu_toggle_icon_before .15s linear forwards;
}

#menu_toggle_icon::after {
    animation: menu_toggle_icon_after .15s linear forwards;
}

@keyframes menu_toggle_icon_i {
    100% {
        width: 100%;
    }
}

@keyframes menu_toggle_icon_before {
    100% {
        width: 100%;
        height: 4px;
        top: 0%;
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

@keyframes menu_toggle_icon_after {
    100% {
        width: 100%;
        height: 4px;
        top: 100%;
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

/******************** |  | ********************/

header menu {
    background: #222;
    margin: 0 auto;
    position: relative;
}

    header menu > ul {
        display: flex;
        max-width: var(--max-width);
        margin: 0 auto;
        gap: 15px;
        overflow-x: auto;
    }

    header menu ul li a {
        color: #f5f5f5;
        display: block;
        padding: 15px;
        position: relative;
        white-space: nowrap;
    }

    header menu ul li:hover a {
        color: #fff;
    }

    header menu > ul > li:hover {
        background: #353535;
    }

    header menu > ul > li > sub {
        display: none;
        font-size: inherit;
        vertical-align: unset;
    }

    header menu > ul > li:hover > sub {
        display: flex;
        position: absolute;
        top: 100%;
        right: 0;
        z-index: 9;
        width: 100%;
        padding: 10px calc(((100% - var(--max-width))/2) + 10px);
        background: #353535;
        flex-direction: row;
    }

    header menu > ul > li > sub ul {
        width: 100%;
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        max-height: 250px;
    }

        header menu > ul > li > sub ul li {
            width: 50%;
        }

            header menu > ul > li > sub ul li a {
                padding: 10px 0;
            }

            header menu > ul > li > sub ul li:hover a {
                color: #bbb;
            }




/******************** | END MENU | ********************/


/******************** |  | ********************/
/******************** |  | ********************/

header nav ul.setting {
    width: 80px;
    justify-content: flex-end;
    gap: 15px;
    flex-grow: 1;
}

    header nav ul.setting li.icon_btn.search button {
        width: 40px;
        height: 40px;
        padding: var(--gap);
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: var(--gap);
        background: inherit;
        border: none;
        outline: none;
        cursor: pointer;
    }

        header nav ul.setting li.icon_btn.search button svg {
            fill: #fff;
            transform: rotateZ(-90deg);
            transition: all .5s;
        }

            header nav ul.setting li.icon_btn.search button svg .search-ball {
                transform: rotate3d(0, 0, 1, 0deg);
                transform-origin: 310px 204px;
                transition: all .5s;
            }

                header nav ul.setting li.icon_btn.search button svg .search-ball .x {
                    fill: rgba(0, 0, 0, 0);
                }

    header nav ul.setting li.icon_btn.search.hover a svg,
    header nav ul.setting li.icon_btn.search:hover button svg {
        transform: rotateZ(0deg);
    }

        header nav ul.setting li.icon_btn.search.hover a svg .search-ball,
        header nav ul.setting li.icon_btn.search:hover button svg .search-ball {
            transform: rotate3d(0, 0, 1, 360deg);
            transform-origin: 310px 204px;
        }

            header nav ul.setting li.icon_btn.search.hover a svg .search-ball .x,
            header nav ul.setting li.icon_btn.search:hover button svg .search-ball .x {
                fill: rgba(255, 255, 255, 1);
            }

    header nav ul.setting li.icon_btn.user a {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: var(--gap);
        white-space: nowrap;
        font-size: 12px;
        gap: 3px;
        min-width: 40px;
    }

        header nav ul.setting li.icon_btn.user a img {
            filter: grayscale(1) brightness(0.9);
            background: #555;
            border-radius: 600px;
            height: 30px;
            width: 30px;
            padding: var(--gap);
        }

        header nav ul.setting li.icon_btn.user.active a img,
        header nav ul.setting li.icon_btn.user a:hover img {
            filter: none;
            background: #fff;
        }

    header nav ul.setting li.icon_btn.user.active a img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        border-radius: 600px;
    }




/*search-modal
*/
.search-modal {
    display: none; /* إخفاء الـ div في البداية */
    position: fixed; /* لتغطية الشاشة بالكامل */
    z-index: 1000; /* للتأكد من أنه فوق العناصر الأخرى */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* خلفية شبه شفافة */
    justify-content: center;
    align-items: center;
}

    .search-modal .search-content {
        background-color: white;
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        width: 100vw;
        position: absolute;
        top: 0;
        left: 0;
        height: 100vh;
    }

    .search-modal button#closeButton {
        position: fixed;
        top: 10px;
        left: 10px;
        background: #111;
        border-radius: 0;
        width: 90px;
        height: 41px;
        color: #fff;
    }



    .search-modal #searchInput {
        width: 100%;
        padding: 5px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 16px;
        box-sizing: border-box; /* لضمان أن العرض يشمل الـ padding */
        line-height: 30px;
    }

    .search-modal #autocompleteResults {
        list-style: none;
        padding: 0;
        margin-top: 10px;
        border: 1px solid #eee;
        border-top: none;
        max-height: 400px;
        overflow-y: auto;
        display: flex;
        flex-wrap: wrap;
        max-height: calc(100vh-70px);
    }

        .search-modal #autocompleteResults li {
            display: flex;
            align-items: center;
            border-bottom: 1px solid #eee;
            cursor: pointer;
            flex-grow: 1;
            width: 100%;
        }

            .search-modal #autocompleteResults li:hover {
                background-color: #f0f0f0;
            }

        .search-modal #autocompleteResults a {
            display: flex;
            font-size: 12px;
            color: #2196F3;
            padding: 10px;
        }

        .search-modal #autocompleteResults li img {
            width: 50px;
            height: 50px;
            border-radius: 4px;
            margin-left: 10px;
            object-fit: cover;
        }

        .search-modal #autocompleteResults li > div {
            font-size: 14px;
        }

            .search-modal #autocompleteResults li > div > div {
            }

        .search-modal #autocompleteResults li a span {
            font-size: 11px;
            color: #FF9800
        }

