/* الشريط السفلي - يظهر فقط على الشاشات الصغيرة */
.bottom-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 70px;
    background-color: #f2f2f2; /* الرمادي الفاتح */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none; /* إخفاء الشريط على الشاشات الكبيرة افتراضيًا */
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-radius: 20px 20px 0 0;
}

.bottom-bar .icon {
    display: flex;
    flex-direction: column;
    justify-content: center; /* لتوسيط العناصر عمودياً */
    align-items: center;    /* لتوسيط العناصر أفقياً */
    color: #999;
    font-size: 14px;
    text-align: center;     /* للتأكد من أن النص يتمركز */
    height: 100%;           /* لضمان تمدد العنصر بالكامل */
	width:80px;
}

.bottom-bar .icon a {
    color: #999;
}

.bottom-bar .icon i {
    font-size: 24px;
    margin-bottom: 5px;
}

.bottom-bar .icon span {
    font-size: 12px;
    display: flex;
}

.bottom-bar .logo {
    /*position: absolute;*/
    width: 70px;
    height: 70px;
    background-color: #f2f2f2; /* الرمادي الفاتح */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-top: -30px;
	
}

.bottom-bar .logo img {
    width: 50px;
    height: 50px;
}

/* لون الأيقونات عند التحويم */
.bottom-bar .icon:hover i,
.bottom-bar .logo:hover {
    color: #C3A005; /* اللون الأزرق عند التحويم */
}

/* الشريط يظهر فقط على الشاشات التي عرضها أقل من 768 بكسل */
@media (max-width: 768px) {
    .bottom-bar {
        display: flex; /* إظهار الشريط فقط على الهواتف */
    }
}

@media (min-width: 769px) {
    .bottom-bar {
        display: none; /* إخفاء الشريط على الشاشات الكبيرة */
    }
}

/* لجعل القائمة تفتح للأعلى */
@media (max-width: 768px) {
    .max-mega-menu {
        position: absolute;  /* تأكد من أن القائمة يمكن أن تتواجد في موقع محدد */
        bottom: 100%!important; /* اجعل القائمة تفتح للأعلى */
        left: 0; /* يمكنك تعديله حسب الحاجة */
        z-index: 1000;  /* تأكد من أن القائمة فوق المحتوى */
        display: none; /* إخفاء القائمة بشكل افتراضي */
        max-height: 300px; /* ارتفاع ثابت للقائمة */
        overflow-y: auto;  /* تمكين التمرير العمودي */
    }

    .max-mega-menu.active {
        display: block; /* يظهر القائمة عند التفعيل */
    }
}

/* تأكد من أن العناصر تظهر بشكل عمودي على الشاشات الكبيرة */
@media (min-width: 769px) {
    .max-mega-menu {
        display: none; /* تخفي القائمة بشكل افتراضي */
    }

    .max-mega-menu li {
        display: block; 
    }
}


#mega-menu-wrap-primary .mega-menu-toggle.mega-menu-open + #mega-menu-primary {
        display: block;
        max-height: 400px;
        overflow-y: auto;
	
    }

.article-item {
    display: flex;
    justify-content: flex-start;
}

.article-item img {
   width:16px;
   height:100%;
}


.custom-popup-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f2f2f2;
    color: #999;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.custom-popup-button:hover {
    background-color: #e0e0e0;
    color: #000;
}

.custom-popup-button i {
    font-size: 24px;
    margin-bottom: 5px;
}

.custom-popup-button span {
    font-size: 12px;
}

.custom-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    padding: 20px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: popup-fade-in 0.3s ease-in-out;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    color: #333;
    cursor: pointer;
}

.popup-body {
    padding: 10px 0;
}

@keyframes popup-fade-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
