
    
.fixed-bottom {
        z-index: 1030;
    }
    
    
.nav-link i {
        font-size: 1.2rem;
    }
    
    
.nav-link small {
        font-size: 0.7rem;
    }

.navbar-nav.d-flex.flex-row.gap-5 .nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav.d-flex.flex-row.gap-5 .nav-link:hover {
    color: #f8f9fa !important;
    transform: translateY(-3px);
}

.navbar-nav.d-flex.flex-row.gap-5 .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #f8f9fa;
    transition: width 0.3s ease;
}

.navbar-nav.d-flex.flex-row.gap-5 .nav-link:hover::after {
    width: 100%;
}


.nav.justify-content-between  .nav-link {
    transition: all 0.3s ease;
    border-radius: 10px;
    padding: 8px 12px !important;
}

.nav.justify-content-between  .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.nav.justify-content-between  .nav-link:hover i {
    color: #f8f9fa !important;
}

.nav.justify-content-between  .nav-link:hover small {
    color: #f8f9fa !important;
    font-weight: bold;
}


/* القائمة المنسدلة لسطح المكتب */
.custom-dropdown {
    position: relative;
    display: inline-block;
}

.custom-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(43, 59, 107, 0.9);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    padding: 0.5rem 0;
    min-width: 180px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 99999 !important;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.custom-dropdown:hover .custom-dropdown-menu,
.custom-dropdown:focus-within .custom-dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(5px);
}

.custom-dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    color: white !important;
    text-decoration: none;
    transition: background-color 0.2s;
}

.custom-dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* تأثير hover */
.navbar-nav.d-flex.flex-row.gap-5 .nav-link:hover {
    color: #f8f9fa !important;
    transform: translateY(-3px);
}

/* القائمة المنسدلة للجوال */
.mobile-dropdown {
    position: relative;
}

.mobile-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(43, 59, 107, 0.95);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 10px 0;
    min-width: 150px;
    width: max-content;
    max-width: 90vw;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 99999 !important;
}

.mobile-dropdown-item {
    display: block;
    padding: 8px 15px;
    color: white !important;
    text-decoration: none;
    font-size: 14px;
    text-align: center;
}

.mobile-dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}
@media (max-width: 768px) {

    .mobile-dropdown-menu,
    .custom-dropdown-menu {
        top: auto !important;
        bottom: 100% !important; /* فوق الزر */
        transform: translateX(-50%) translateY(-10px) !important;
    }

    .mobile-dropdown.active .mobile-dropdown-menu {
        animation: fadeInDown 0.3s ease;
    }

}

/* عند تفعيل القائمة في الجوال */
.mobile-dropdown.active .mobile-dropdown-menu {
    display: block;
    animation: fadeInUp 0.3s ease;
}

/* إزالة النقاط من القوائم */
.custom-dropdown-menu,
.mobile-dropdown-menu {
    list-style-type: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.custom-dropdown-menu li,
.mobile-dropdown-menu li {
    list-style: none !important;
}

/* حركة الظهور */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* تأكيد أن navbar فوق الكل */
.navbar {
    position: relative;
    z-index: 99998 !important;
}

/* إزالة أي تداخل أو قصّ من العناصر الأخرى */
section,
header,
main {
    position: relative;
    z-index: 1;
    overflow: visible !important;
}


/* تأكيد أن النص أبيض وعريض عند التنشيط */
.nav-link.active-nav-item {
    font-weight: bold !important;
    color: #f8f9fa !important;
}

/* تأثير الخط السفلي (مشابه لبقية التصميم) */
.nav-link.active-nav-item::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #f8f9fa;
    transition: width 0.3s ease;
}

/* التأثير عند الـ hover (اختياري) */
.nav-link:not(.active-nav-item):hover::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #f8f9fa;
    transition: width 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}
@media (max-width: 768px) {

    body {
        padding-bottom: 95px;  /* مساحة للناف السفلي */
    }

    .fixed-bottom {
        height: 75px;
    }

    section:last-child,
    footer {
        margin-bottom: 95px;
    }

    main {
        margin-top: 0 !important;
    }
}
