﻿/* wwwroot/css/custom-style.css - الإصدار الكامل والمحدث */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #f59e0b;
    --secondary-dark: #d97706;
    --dark-color: #1e293b;
    --darker-color: #0f172a;
    --light-color: #f8fafc;
    --gray-color: #64748b;
    --gray-light: #cbd5e1;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ===== الإصلاحات الأساسية ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Tajawal', sans-serif;
    text-align: right;
    direction: rtl;
    background-color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
    color: var(--dark-color);
    padding-top: 130px; /* 80px للشريط العلوي + 50px للشريط السفلي */
}

/* ===== الشريط العلوي الحديث ===== */
.modern-navbar {
    background: linear-gradient(135deg, var(--darker-color) 0%, var(--dark-color) 100%) !important;
    min-height: 80px;
    padding: 0;
    border-bottom: 3px solid var(--primary-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    box-shadow: var(--shadow-lg);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 80px;
    gap: 20px;
    max-width: 100%;
}

/* الشعار المحسن */
.nav-brand-section {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 220px;
}

.modern-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

    .modern-logo:hover {
        transform: translateY(-2px);
    }

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    height: 45px;
    width: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.modern-logo:hover .logo-image {
    transform: scale(1.05);
}

.brand-content {
    display: flex;
    flex-direction: column;
    color: white;
    line-height: 1.2;
}

.brand-primary {
    font-size: 1.4rem;
    font-weight: 700;
    white-space: nowrap;
    background: linear-gradient(135deg, #fff 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-secondary {
    font-size: 0.85rem;
    color: var(--gray-light);
    white-space: nowrap;
    font-weight: 500;
}

/* زر القائمة للجوال */
.mobile-menu-toggle {
    display: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem;
    border-radius: 8px;
    background: transparent;
    color: white;
    transition: all 0.3s ease;
}

    .mobile-menu-toggle:hover {
        border-color: var(--primary-color);
        background: rgba(255, 255, 255, 0.1);
    }

.menu-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 20px;
}

    .menu-toggle-icon span {
        height: 2px;
        background: white;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

        .menu-toggle-icon span:nth-child(1) {
            width: 100%;
        }

        .menu-toggle-icon span:nth-child(2) {
            width: 80%;
            margin-right: auto;
        }

        .menu-toggle-icon span:nth-child(3) {
            width: 60%;
            margin-right: auto;
        }

.mobile-menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    width: 100%;
}

/* القائمة الرئيسية */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link {
    color: white !important;
    text-decoration: none;
    padding: 10px 15px !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .nav-link:hover, .nav-link.active {
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-2px);
    }

/* أدوات المستخدم */
.user-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-link {
    color: white !important;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

    .tool-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }

.tool-badge {
    background: var(--secondary-color);
    color: var(--darker-color);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -5px;
    left: -5px;
    font-weight: bold;
}

/* القوائم المنسدلة */
.dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
    padding: 0;
    background: white;
    border: 1px solid var(--border-color);
}

.dropdown-item {
    padding: 10px 15px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

    .dropdown-item:hover {
        background: #f8fafc;
        color: var(--primary-color);
    }

    .dropdown-item:last-child {
        border-bottom: none;
    }

/* ===== الشريط السفلي المحسن ===== */
.sub-navigation {
    background: linear-gradient(135deg, #37475a 0%, #2d3b4e 100%) !important;
    min-height: 50px;
    padding: 0;
    position: fixed;
    top: 80px;
    width: 100%;
    z-index: 1029;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border-color);
}

    .sub-navigation .container-fluid {
        padding: 0 20px;
    }

.sub-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    gap: 20px;
}

.sub-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 5px;
}

    .sub-nav-menu::-webkit-scrollbar {
        display: none;
    }

.sub-nav-item {
    flex-shrink: 0;
}

.sub-nav-link {
    display: flex;
    align-items: center;
    color: white !important;
    text-decoration: none;
    padding: 10px 15px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

    .sub-nav-link:hover,
    .sub-nav-link.active {
        background: rgba(255, 255, 255, 0.1);
        border-color: var(--primary-color);
        transform: translateY(-2px);
    }

    .sub-nav-link i {
        font-size: 1rem;
        margin-left: 8px;
    }

/* تسميات القوائم للشاشات الصغيرة */
.nav-label {
    display: inline;
}

@media (max-width: 767.98px) {
    .nav-label {
        display: inline !important;
        font-size: 0.8rem;
    }
}

/* العروض الخاصة */
.sub-nav-promo {
    flex-shrink: 0;
}

.promo-link {
    display: flex;
    align-items: center;
    color: var(--secondary-color) !important;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 15px;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    gap: 8px;
    background: rgba(245, 158, 11, 0.1);
}

    .promo-link:hover {
        background: var(--secondary-color);
        color: white !important;
        transform: translateY(-2px);
        box-shadow: var(--shadow);
    }

.promo-badge {
    background: var(--error-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
}

/* ===== إصلاح المسافات الرئيسية ===== */
main {
    margin-top: 0;
    min-height: calc(100vh - 130px);
}

.breadcrumb-section,
.hero-carousel {
    margin-top: 0;
}

/* ===== إصلاح breadcrumb ===== */
.breadcrumb-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 25px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.breadcrumb-custom {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 1rem;
    direction: rtl;
}

    .breadcrumb-custom .breadcrumb-item {
        display: flex;
        align-items: center;
    }

        .breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before {
            content: "‹";
            color: var(--gray-color);
            font-size: 1.4rem;
            padding: 0 12px;
            font-weight: bold;
        }

        .breadcrumb-custom .breadcrumb-item a {
            color: var(--primary-color);
            text-decoration: none;
            transition: all 0.3s ease;
            padding: 8px 12px;
            border-radius: 6px;
            font-weight: 500;
        }

            .breadcrumb-custom .breadcrumb-item a:hover {
                color: var(--darker-color);
                background-color: rgba(37, 99, 235, 0.15);
                text-decoration: none;
            }

        .breadcrumb-custom .breadcrumb-item.active {
            color: var(--darker-color);
            font-weight: 600;
            font-size: 1.1rem;
        }

/* ===== إصلاح الكاروسيل ===== */
.hero-carousel {
    position: relative;
    height: 75vh;
    overflow: hidden;
}

.carousel-item {
    height: 75vh;
    position: relative;
}

.carousel-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 850px;
    padding: 3rem;
}

    .hero-content h2 {
        font-size: 3rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
        text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.8);
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1.3rem;
        margin-bottom: 2.5rem;
        text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
        line-height: 1.6;
    }

.hero-btn {
    padding: 14px 35px;
    font-size: 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    color: var(--darker-color);
    font-weight: 600;
    border: none;
}

    .hero-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        background: white;
        color: var(--darker-color);
    }

/* مؤشرات الكاروسيل */
.carousel-indicators {
    bottom: 20px;
}

    .carousel-indicators button {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        margin: 0 8px;
        background-color: rgba(255, 255, 255, 0.5);
        border: 2px solid transparent;
    }

    .carousel-indicators .active {
        background-color: white;
        border-color: var(--primary-color);
    }

/* أزرار التحكم في الكاروسيل */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 20px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        background: rgba(255, 255, 255, 0.3);
        opacity: 1;
    }

.carousel-control-prev {
    left: 20px;
    right: auto;
}

.carousel-control-next {
    right: 20px;
    left: auto;
}

/* ===== تنسيقات قسم خدماتنا ===== */
.services-main-section {
    background: linear-gradient(135deg, var(--darker-color) 0%, var(--dark-color) 100%);
    color: white;
    position: relative;
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    text-align: center;
}

    .section-title:after {
        content: '';
        position: absolute;
        bottom: -12px;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 4px;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        border-radius: 2px;
    }

.section-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.service-main-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

    .service-main-card:hover {
        transform: translateY(-10px);
        background: rgba(255, 255, 255, 0.15);
        box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    }

    .service-main-card:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    }

.service-main-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    transition: all 0.3s ease;
}

.service-main-card:hover .service-main-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.3);
}

.service-main-card h4 {
    color: white;
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    font-weight: 700;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-main-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.05rem;
    min-height: 80px;
    display: flex;
    align-items: center;
}

.service-main-card .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .service-main-card .btn:hover {
        background: white;
        color: var(--darker-color);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    }

/* ===== أقسام الصفحة الرئيسية المضافة ===== */

/* قسم الأخبار */
.news-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
}

    .news-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }

.news-image {
    height: 200px;
    overflow: hidden;
}

    .news-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-title {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* قسم من نحن */
.about-section {
    padding: 80px 0;
    background: white;
}

.about-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

    .about-image img {
        width: 100%;
        height: auto;
        transition: transform 0.3s ease;
    }

.about-section:hover .about-image img {
    transform: scale(1.02);
}

.vision-mission-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2.5rem;
    border-radius: 15px;
    height: 100%;
    border-right: 4px solid var(--primary-color);
}

    .vision-mission-card h3 {
        color: var(--primary-color);
        margin-bottom: 1rem;
        font-weight: 700;
    }

    .vision-mission-card p {
        color: var(--dark-color);
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }

/* قسم خدمة الدعم التكنولوجي */
.support-services {
    background: linear-gradient(135deg, var(--darker-color) 0%, var(--dark-color) 100%);
    color: white;
}

.support-action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-custom {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-custom:hover {
        background: var(--primary-dark);
        border-color: var(--primary-dark);
        transform: translateY(-2px);
        color: white;
    }

.btn-outline-custom {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-outline-custom:hover {
        background: white;
        color: var(--dark-color);
        transform: translateY(-2px);
    }

.service-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    color: white;
}

    .service-card:hover {
        transform: translateY(-5px);
        background: rgba(255, 255, 255, 0.15);
    }

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.service-card h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.service-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* قسم العملاء */
.support-clients {
    background: #f8fafc !important;
}

.client-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary-color);
}

    .client-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }

.client-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.government-icon {
    background: var(--success-color);
}

.charity-icon {
    background: var(--secondary-color);
}

.client-card h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.client-card p {
    color: var(--gray-color);
    line-height: 1.6;
}

.charity-card {
    border-top-color: var(--secondary-color);
}

/* قسم الاتصال */
.support-contact {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

    .support-contact h2 {
        color: white;
        margin-bottom: 1rem;
    }

    .support-contact .lead {
        color: rgba(255, 255, 255, 0.9);
    }

/* ===== إصلاح الفوتر ===== */
.footer-custom {
    background: linear-gradient(135deg, #3B0B24, #170B3B) !important;
    color: white;
    padding: 50px 0 20px;
    border-top: 3px solid var(--primary-color);
    position: relative;
    width: 100%;
}

    .footer-custom .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 15px;
    }

    .footer-custom .row {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -15px;
    }

    .footer-custom .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
        padding: 0 15px;
        margin-bottom: 30px;
    }

    .footer-custom h5 {
        color: white;
        font-size: 1.3rem;
        font-weight: 700;
        margin-bottom: 20px;
        border-bottom: 2px solid rgba(255, 255, 255, 0.3);
        padding-bottom: 10px;
        text-align: center;
    }

/* إصلاح قسم خدماتنا */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .footer-links a {
        display: block;
        color: rgba(255, 255, 255, 0.9) !important;
        text-decoration: none;
        transition: all 0.3s ease;
        padding: 8px 0;
        font-size: 1rem;
        line-height: 1.5;
        text-align: right;
        position: relative;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

        .footer-links a:hover {
            color: var(--secondary-color) !important;
            padding-right: 10px;
            transform: translateX(-5px);
        }

        .footer-links a:last-child {
            border-bottom: none;
        }

/* إصلاح معلومات الاتصال */
.address-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.clickable-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    margin-bottom: 12px;
    padding: 8px 0;
    transition: all 0.3s ease;
}

    .clickable-contact:hover {
        color: var(--secondary-color);
        transform: translateX(-5px);
    }

/* إصلاح وسائل التواصل الاجتماعي */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

    .social-link:hover {
        transform: translateX(-5px);
        text-decoration: none;
        color: white;
    }

    .social-link i {
        font-size: 1.3rem;
        margin-left: 10px;
        transition: transform 0.3s ease;
    }

    .social-link:hover i {
        transform: scale(1.2);
    }

    .social-link.facebook:hover {
        background: rgba(59, 89, 152, 0.8);
        border-color: #3b5998;
    }

    .social-link.twitter:hover {
        background: rgba(29, 161, 242, 0.8);
        border-color: #1da1f2;
    }

    .social-link.linkedin:hover {
        background: rgba(0, 119, 181, 0.8);
        border-color: #0077b5;
    }

/* إصلاح الفوتر السفلي */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    margin-top: 20px;
    text-align: center;
    width: 100%;
}

    .footer-bottom p {
        margin-bottom: 8px;
        color: white;
    }

    .footer-bottom a {
        color: var(--secondary-color);
        text-decoration: none;
        transition: opacity 0.3s;
        margin: 0 8px;
    }

        .footer-bottom a:hover {
            opacity: 0.8;
            color: var(--secondary-color);
        }

/* ===== واتساب فلواتينغ بوتون ===== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    animation: pulse 2s infinite;
    transition: all 0.3s ease-in-out;
}

.whatsapp-link {
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    text-decoration: none;
    position: relative;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.7);
}

.whatsapp-tooltip {
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #075E54;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

    .whatsapp-tooltip:after {
        content: "";
        position: absolute;
        top: 50%;
        left: -10px;
        transform: translateY(-50%);
        border-width: 5px;
        border-style: solid;
        border-color: transparent #075E54 transparent transparent;
    }

.whatsapp-link:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ===== استجابة محسنة ===== */
@media (max-width: 991.98px) {
    .nav-container {
        gap: 15px;
        padding: 0 15px;
        height: 70px;
    }

    .modern-navbar {
        min-height: 70px;
    }

    .nav-brand-section {
        min-width: auto;
        flex: 1;
    }

    .brand-secondary {
        display: none;
    }

    .brand-primary {
        font-size: 1.1rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .navbar-nav {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-link {
        padding: 15px 20px !important;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .user-tools {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .tool-link {
        padding: 15px 20px;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* تعديل المسافات للجوال */
    .sub-navigation {
        top: 70px;
    }

    body {
        padding-top: 120px; /* 70px للشريط العلوي + 50px للشريط السفلي */
    }

    .hero-carousel {
        height: 60vh;
    }

    .carousel-item {
        height: 60vh;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
        margin: 0 10px;
    }

    /* استجابة للأقسام المضافة */
    .news-section,
    .about-section,
    .support-services,
    .support-clients,
    .support-contact {
        padding: 60px 0;
    }

    .support-action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-custom,
    .btn-outline-custom {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 767.98px) {
    .nav-container {
        height: 60px;
        padding: 0 10px;
    }

    .modern-navbar {
        min-height: 60px;
    }

    .logo-image {
        height: 35px;
    }

    .brand-primary {
        font-size: 1rem;
    }

    .sub-nav-container {
        height: 45px;
    }

    .sub-navigation {
        min-height: 45px;
        top: 60px;
    }

    body {
        padding-top: 105px; /* 60px للشريط العلوي + 45px للشريط السفلي */
    }

    .hero-carousel {
        height: 50vh;
    }

    .carousel-item {
        height: 50vh;
    }

    .hero-content {
        padding: 2rem;
    }

        .hero-content h2 {
            font-size: 1.5rem;
        }

        .hero-content p {
            font-size: 0.9rem;
            margin-bottom: 1.5rem;
        }

    .hero-btn {
        padding: 10px 25px;
        font-size: 1rem;
    }

    .carousel-indicators {
        bottom: 10px;
    }

        .carousel-indicators button {
            width: 8px;
            height: 8px;
            margin: 0 4px;
        }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .sub-nav-menu {
        gap: 2px;
    }

    .sub-nav-link {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .promo-link {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    /* استجابة للأقسام المضافة */
    .vision-mission-card {
        padding: 2rem;
    }

    .service-card,
    .client-card {
        padding: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .nav-container {
        padding: 0 8px;
    }

    .brand-primary {
        font-size: 0.9rem;
    }

    .logo-image {
        height: 30px;
    }

    .footer-custom .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .nav-label {
        font-size: 0.75rem;
    }
}

/* إصلاحات التوافق مع المتصفحات */
@supports (backdrop-filter: blur(10px)) {
    .service-main-card,
    .service-card {
        backdrop-filter: blur(10px);
    }
}

@supports not (backdrop-filter: blur(10px)) {
    .service-main-card,
    .service-card {
        background: rgba(255, 255, 255, 0.15);
    }
}

/* إصلاح القوائم المنسدلة على الجوال */
@media (max-width: 991.98px) {
    .dropdown-menu {
        position: fixed !important;
        top: 70px !important;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        max-height: 80vh;
        overflow-y: auto;
        z-index: 1060;
        background: white;
        border: 1px solid var(--border-color);
        border-radius: 12px;
        box-shadow: var(--shadow-xl);
    }

        .dropdown-menu.show {
            display: block !important;
        }

    .dropdown-item {
        padding: 12px 20px;
        border-bottom: 1px solid var(--border-color);
        font-size: 1rem;
        color: var(--dark-color) !important;
    }

        .dropdown-item:hover {
            background: var(--light-color);
            color: var(--primary-color) !important;
        }
}

/* إصلاحات إضافية للتداخل */
.modern-navbar,
.sub-navigation {
    transform: translateZ(0);
}

/* منع أي تداخل في القوائم المنسدلة */
.navbar-nav .dropdown-menu {
    transition: none !important;
}

/* تحسينات للجوال */
@media (max-width: 768px) {
    .nav-search-section {
        flex-direction: column;
        gap: 10px;
    }
}

/* ===== ----------------تحسينات القائمة المنسدلة للشاشات الصغيرة -------------------------------===== */
/* ===== تحسينات القائمة المنسدلة للشاشات الصغيرة ===== */
@media (max-width: 991.98px) {
    .dropdown-menu {
        position: fixed !important;
        top: 70px !important;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        max-height: 80vh;
        overflow-y: auto;
        z-index: 1060;
        background: #ffffff !important; /* إضافة خلفية بيضاء ثابتة */
        border: 1px solid var(--border-color);
        border-radius: 12px;
        box-shadow: var(--shadow-xl);
        padding: 0;
    }

        .dropdown-menu.show {
            display: block !important;
            animation: dropdownSlideIn 0.3s ease;
        }

    .dropdown-header {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        color: white;
        padding: 15px 20px;
        font-weight: 700;
        font-size: 1.1rem;
        border-radius: 12px 12px 0 0;
    }

    .dropdown-item {
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-color);
        font-size: 1rem;
        color: var(--dark-color) !important;
        display: flex;
        align-items: center;
        transition: all 0.3s ease;
        background: #ffffff !important; /* خلفية بيضاء للعناصر */
    }

        .dropdown-item:hover {
            background: var(--light-color) !important;
            color: var(--primary-color) !important;
            padding-right: 25px;
        }

        .dropdown-item:last-child {
            border-bottom: none;
        }

    .dropdown-divider {
        margin: 10px 0;
        border-color: var(--border-color);
        background-color: var(--border-color) !important;
    }

    @keyframes dropdownSlideIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ===== إصلاح اتجاه أرقام الهواتف ===== */
.contact-nav-link.phone-link span,
.clickable-contact.phone-link .phone-number,
.footer-custom .phone-number {
    direction: ltr !important;
    unicode-bidi: embed;
    display: inline-block;
    text-align: left;
}

/* إصلاح الاتجاه في الشريط العلوي */
.contact-info-nav .phone-link span {
    direction: ltr !important;
    unicode-bidi: embed;
}

/* إصلاح الاتجاه في الفوتر */
.footer-custom .phone-number {
    direction: ltr !important;
    unicode-bidi: embed;
}

/* ===== معلومات الاتصال في الشريط العلوي ===== */
.contact-info-nav {
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    padding-right: 20px;
}

.contact-nav-link {
    color: white !important;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
}

    .contact-nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
    }

    .contact-nav-link.phone-link:hover {
        color: var(--success-color) !important;
    }

    .contact-nav-link.email-link:hover {
        color: var(--secondary-color) !important;
    }

/* ===== معلومات الاتصال في الشريط السفلي للجوال ===== */
.sub-nav-contact {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-mobile-link {
    color: white !important;
    text-decoration: none;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

    .contact-mobile-link:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.1);
    }

    .contact-mobile-link.phone-link:hover {
        background: var(--success-color);
    }

    .contact-mobile-link.email-link:hover {
        background: var(--secondary-color);
    }

/* ===== زر لوحة التحكم للإدمن ===== */
.dropdown-item.text-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05)) !important;
    border-right: 3px solid var(--warning-color);
    font-weight: 700;
}

    .dropdown-item.text-warning:hover {
        background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1)) !important;
        color: var(--warning-color) !important;
    }

/* ===== تحسينات العروض الخاصة ===== */
.promo-link {
    display: flex;
    align-items: center;
    color: var(--secondary-color) !important;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 15px;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    gap: 8px;
    background: rgba(245, 158, 11, 0.1);
    position: relative;
    overflow: hidden;
}

    .promo-link:before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        transition: left 0.5s;
    }

    .promo-link:hover {
        background: var(--secondary-color);
        color: white !important;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    }

        .promo-link:hover:before {
            left: 100%;
        }

.promo-badge {
    background: var(--error-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

/* ===== تحسينات عامة للاستجابة ===== */
@media (max-width: 1199.98px) {
    .contact-info-nav {
        padding-right: 15px;
    }

    .contact-nav-link {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
}

@media (max-width: 991.98px) {
    .contact-info-nav {
        display: none !important;
    }

    .sub-nav-container {
        gap: 10px;
    }

    /* تحسين إضافي للقوائم المنسدلة على الجوال */
    .navbar-collapse {
        background: linear-gradient(135deg, var(--darker-color) 0%, var(--dark-color) 100%);
        margin-top: 10px;
        border-radius: 8px;
        padding: 10px;
    }

    .dropdown-menu {
        background: #ffffff !important;
        border: 2px solid var(--primary-color);
    }

    .dropdown-item {
        background: #ffffff !important;
    }
}

@media (max-width: 767.98px) {
    .sub-nav-contact {
        gap: 10px;
    }

    .contact-mobile-link {
        width: 35px;
        height: 35px;
        padding: 6px;
    }

    .promo-link {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 575.98px) {
    .sub-nav-promo {
        display: none;
    }

    .sub-nav-contact {
        margin-left: auto;
    }
}

/* ===== تحسينات إضافية للقوائم المنسدلة ===== */
.nav-item.dropdown .dropdown-menu {
    min-width: 250px;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

/* ===== تحسينات للأدمن ===== */
.user-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-item-text .text-dark {
    font-size: 1rem;
}

.dropdown-item-text .text-muted {
    font-size: 0.9rem;
}

/* ===== إصلاحات إضافية للاتجاه ===== */
/* تأكد من أن كل أرقام الهواتف تظهر بشكل صحيح */
[class*="phone"] span:not(.fa):not(.fas):not(.far):not(.fal):not(.fad):not(.fab) {
    direction: ltr !important;
    unicode-bidi: embed;
    display: inline-block;
}

/* إصلاح خاص للفوتر */
.footer-custom .clickable-contact.phone-link .phone-number {
    direction: ltr !important;
    unicode-bidi: embed;
}

/* إصلاح للشريط العلوي */
.contact-info-nav .contact-nav-link.phone-link span {
    direction: ltr !important;
    unicode-bidi: embed;
}

/* =====-------------------------------------- تحسينات الشريط السفلي بعد التعديلات ----------------------------===== */
/* ===== إصلاحات القوائم المنسدلة في الشريط السفلي ===== */
.sub-nav-item.dropdown {
    position: static !important; /* إصلاح لتمكين القوائم المنسدلة */
}

.sub-nav-item .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    margin-top: 5px !important;
    z-index: 1070 !important;
    background: white !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    box-shadow: var(--shadow-xl) !important;
    min-width: 250px !important;
}

/* إصلاحات خاصة للشاشات الصغيرة */
@media (max-width: 991.98px) {
    .sub-nav-item.dropdown {
        position: relative !important;
    }

    .sub-nav-item .dropdown-menu {
        position: fixed !important;
        top: 130px !important; /* 80px للشريط العلوي + 50px للشريط السفلي */
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        max-height: 70vh !important;
        overflow-y: auto !important;
        z-index: 1070 !important;
    }
}

/* إصلاحات لأدوات المستخدم في الشريط السفلي */
.user-tools-section .dropdown-menu {
    left: 0 !important;
    right: auto !important;
}

@media (max-width: 991.98px) {
    .user-tools-section .dropdown-menu {
        left: 10px !important;
        right: 10px !important;
    }
}

/* تحسينات للروابط في الشريط السفلي */
.sub-nav-link.dropdown-toggle {
    cursor: pointer !important;
    position: relative !important;
}

    .sub-nav-link.dropdown-toggle::after {
        margin-right: 5px !important;
        margin-left: 0 !important;
    }

/* إصلاحات للعرض على الشاشات الكبيرة */
@media (min-width: 992px) {
    .sub-nav-menu {
        justify-content: flex-start !important;
        gap: 20px !important;
    }

    .user-tools-section {
        margin-right: auto !important;
    }

    .user-tools {
        gap: 15px !important;
    }
}

/* إصلاحات للعرض على الشاشات الصغيرة */
@media (max-width: 991.98px) {
    .sub-nav-menu {
        justify-content: space-between !important;
        gap: 10px !important;
    }

    .user-tools {
        gap: 8px !important;
    }

        .user-tools .btn {
            padding: 6px 10px !important;
            font-size: 0.8rem !important;
        }
}

/* إصلاحات للعرض على الشاشات الصغيرة جداً */
@media (max-width: 575.98px) {
    .user-tools .d-none.d-md-inline {
        display: none !important;
    }

    .user-tools .btn span {
        display: none !important;
    }

    .user-tools .btn i {
        margin: 0 !important;
    }
}

/* منع أي تداخل في التنسيقات */
.sub-nav-item .dropdown-menu.show {
    display: block !important;
    animation: dropdownSlideIn 0.3s ease !important;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* إصلاحات خاصة للزر النشط */
.sub-nav-link.active {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: var(--primary-color) !important;
}

/* تحسينات للوحة أدوات المستخدم */
.user-tools .dropdown-menu {
    min-width: 280px !important;
}

.user-tools .dropdown-item {
    padding: 12px 15px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

    .user-tools .dropdown-item:last-child {
        border-bottom: none !important;
    }

.user-tools .dropdown-item-text {
    padding: 15px !important;
}

/* إصلاحات للزر الخطير (تسجيل الخروج) */
.user-tools .dropdown-item.text-danger {
    color: var(--error-color) !important;
    background: rgba(239, 68, 68, 0.05) !important;
}

    .user-tools .dropdown-item.text-danger:hover {
        background: rgba(239, 68, 68, 0.1) !important;
        color: var(--error-color) !important;
    }

/* إصلاحات للزر التحذيري (لوحة التحكم) */
.user-tools .dropdown-item.text-warning {
    color: var(--warning-color) !important;
    background: rgba(245, 158, 11, 0.05) !important;
    border-right: 3px solid var(--warning-color) !important;
}

    .user-tools .dropdown-item.text-warning:hover {
        background: rgba(245, 158, 11, 0.1) !important;
        color: var(--warning-color) !important;
    }

/* ===== إصلاحات كاملة للشريط السفلي ===== */
.sub-navigation {
    background: linear-gradient(135deg, #37475a 0%, #2d3b4e 100%) !important;
    min-height: 50px;
    padding: 0;
    position: fixed;
    top: 80px;
    width: 100%;
    z-index: 1029;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border-color);
}

.sub-nav-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 50px;
    padding: 0 15px;
    overflow-x: auto;
}

.sub-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: visible;
}

.sub-nav-item {
    flex-shrink: 0;
    position: relative;
}

.sub-nav-link {
    display: flex;
    align-items: center;
    color: white !important;
    text-decoration: none;
    padding: 8px 15px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid transparent;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.1);
}

    .sub-nav-link:hover,
    .sub-nav-link.active {
        background: rgba(255, 255, 255, 0.2);
        border-color: var(--primary-color);
        transform: translateY(-1px);
    }

    .sub-nav-link i {
        font-size: 1rem;
        margin-left: 8px;
    }

/* إصلاحات القوائم المنسدلة في الشريط السفلي */
.sub-nav-item.dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    margin-top: 5px;
    z-index: 1070;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
    min-width: 250px;
}

    .sub-nav-item.dropdown .dropdown-menu.dropdown-menu-end {
        right: 0;
        left: auto;
    }

/* إصلاحات لأزرار تسجيل الدخول والتسجيل */
.sub-nav-link.btn-login,
.sub-nav-link.btn-register {
    padding: 6px 12px;
    font-size: 0.85rem;
    border: 1px solid;
    transition: all 0.3s ease;
}

.sub-nav-link.btn-login {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    color: white !important;
}

    .sub-nav-link.btn-login:hover {
        background: white;
        color: var(--dark-color) !important;
    }

.sub-nav-link.btn-register {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white !important;
}

    .sub-nav-link.btn-register:hover {
        background: var(--primary-dark);
        border-color: var(--primary-dark);
        transform: translateY(-1px);
    }

/* إصلاحات للأدوات */
.tool-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tool-badge {
    background: var(--secondary-color);
    color: var(--darker-color);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -5px;
    left: -5px;
    font-weight: bold;
}

/* ===== إصلاحات للشاشات الصغيرة ===== */
@media (max-width: 991.98px) {
    .sub-navigation {
        top: 70px;
    }

    .sub-nav-container {
        height: 45px;
        padding: 0 10px;
    }

    .sub-nav-menu {
        gap: 8px;
    }

    .sub-nav-link {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

        .sub-nav-link.btn-login,
        .sub-nav-link.btn-register {
            padding: 5px 10px;
            font-size: 0.8rem;
        }

    /* إصلاح القوائم المنسدلة على الجوال */
    .sub-nav-item.dropdown .dropdown-menu {
        position: fixed;
        top: 115px; /* 70px للشريط العلوي + 45px للشريط السفلي */
        left: 10px;
        right: 10px;
        width: auto;
        max-height: 70vh;
        overflow-y: auto;
        z-index: 1070;
    }
}

@media (max-width: 767.98px) {
    .sub-navigation {
        top: 60px;
    }

    .sub-nav-container {
        height: 40px;
        padding: 0 8px;
    }

    .sub-nav-menu {
        gap: 5px;
    }

    .sub-nav-link {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

        .sub-nav-link.btn-login,
        .sub-nav-link.btn-register {
            padding: 4px 8px;
            font-size: 0.75rem;
        }

        .sub-nav-link i {
            margin-left: 5px;
            font-size: 0.9rem;
        }

    /* إظهار النص على الشاشات الصغيرة */
    .nav-label {
        display: inline !important;
        font-size: 0.8rem;
    }

    .sub-nav-link.btn-login span,
    .sub-nav-link.btn-register span {
        display: inline !important;
    }

    /* إصلاح القوائم المنسدلة على الجوال الصغير */
    .sub-nav-item.dropdown .dropdown-menu {
        top: 100px; /* 60px للشريط العلوي + 40px للشريط السفلي */
    }
}

@media (max-width: 575.98px) {
    .sub-nav-menu {
        gap: 3px;
    }

    .sub-nav-link {
        padding: 4px 8px;
        font-size: 0.75rem;
    }

        .sub-nav-link i {
            font-size: 0.8rem;
            margin-left: 3px;
        }

    .nav-label {
        font-size: 0.75rem;
    }
}

/* ===== إصلاحات خاصة للقوائم المنسدلة ===== */
.sub-nav-item.dropdown .dropdown-toggle::after {
    margin-right: 5px;
    margin-left: 0;
}

.sub-nav-item .dropdown-menu.show {
    display: block;
    animation: dropdownSlideIn 0.3s ease;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* إصلاحات للمحتوى المنسدل */
.dropdown-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 12px 15px;
    font-weight: 700;
    font-size: 1rem;
}

.dropdown-item {
    padding: 10px 15px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

    .dropdown-item:hover {
        background: #f8fafc;
        color: var(--primary-color);
    }

    .dropdown-item:last-child {
        border-bottom: none;
    }

.dropdown-divider {
    margin: 8px 0;
    border-color: #e2e8f0;
}

/* إصلاحات لزر تسجيل الخروج */
.dropdown-item.text-danger {
    color: var(--error-color) !important;
    background: rgba(239, 68, 68, 0.05);
}

    .dropdown-item.text-danger:hover {
        background: rgba(239, 68, 68, 0.1);
        color: var(--error-color) !important;
    }

/* إصلاحات لزر لوحة التحكم */
.dropdown-item.text-warning {
    color: var(--warning-color) !important;
    background: rgba(245, 158, 11, 0.05);
    border-right: 3px solid var(--warning-color);
}

    .dropdown-item.text-warning:hover {
        background: rgba(245, 158, 11, 0.1);
        color: var(--warning-color) !important;
    }

/* منع التمرير الأفقي على الجسم */
body {
    overflow-x: hidden;
}

/* إصلاح المسافة العلوية للجسم */
body {
    padding-top: 130px; /* 80px للشريط العلوي + 50px للشريط السفلي */
}

@media (max-width: 991.98px) {
    body {
        padding-top: 115px; /* 70px للشريط العلوي + 45px للشريط السفلي */
    }
}

@media (max-width: 767.98px) {
    body {
        padding-top: 100px; /* 60px للشريط العلوي + 40px للشريط السفلي */
    }
}








/* إضافة هذه التنسيقات إلى ملف custom-style.css */

/* ===== تنسيقات عروض اليوم الخاصة في الشريط السفلي ===== */
.sub-nav-item .promo-link {
    background: linear-gradient(135deg, #ff6b35, #f7931e) !important;
    border: 2px solid #ff9f43 !important;
    color: white !important;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    animation: promoPulse 2s infinite;
}

    .sub-nav-item .promo-link:hover {
        background: linear-gradient(135deg, #f7931e, #ff6b35) !important;
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    }

    .sub-nav-item .promo-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        transition: left 0.5s;
    }

    .sub-nav-item .promo-link:hover::before {
        left: 100%;
    }

.sub-nav-item .promo-badge {
    background: #ff3838;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-right: 5px;
    animation: badgePulse 1.5s infinite;
}

@keyframes promoPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 53, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
    }
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* تحسينات للاستجابة على الشاشات الصغيرة */
@media (max-width: 767.98px) {
    .sub-nav-item .promo-link {
        padding: 6px 10px !important;
        font-size: 0.8rem !important;
    }

    .sub-nav-item .promo-badge {
        font-size: 0.6rem !important;
        padding: 1px 6px !important;
    }
}

@media (max-width: 575.98px) {
    .sub-nav-item .promo-link {
        padding: 5px 8px !important;
        font-size: 0.75rem !important;
    }

    .sub-nav-item .promo-badge {
        display: none; /* إخفاء البادج على الشاشات الصغيرة جداً */
    }
}