﻿/* شريط التنقل */
.body{
    background-image:url(/images/hospital.jpg)
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    direction: rtl; /* جعل الاتجاه من اليمين إلى اليسار */
    transition: background-color 0.3s; /* تأثير عند التمرير */
}

    .header:hover {
        background-color: #f8f9fa; /* تغيير اللون عند المرور */
    }

    /* تنسيق الشعار */
    .header .logo {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .header h2 {
        margin: 0;
        font-size: 1.6rem;
        color: #004085;
        font-weight: bold;
        width: auto;
        transition: font-size 0.3s ease-in-out;
    }

    /* صورة الشعار */
    .header img {
        width: 60px;
        height: auto;
    }

/* قائمة الروابط */
.nav-links {
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
}

    .nav-links a {
        text-decoration: none;
        color: #004085;
        font-size: 1rem;
        font-weight: 600;
        padding: 10px 20px;
        background-color: transparent;
        border-radius: 5px;
        transition: background-color 0.3s, color 0.3s;
    }

        .nav-links a:hover {
            background-color: #004085;
            color: #fff;
        }

/* إضافة زر هامبرغر عند تصغير الحجم */
.hamburger {
    display: none;
    cursor: pointer;
}

    .hamburger div {
        width: 25px;
        height: 3px;
        background-color: #004085;
        margin: 5px;
        transition: all 0.3s;
    }

/* جعل التصميم متجاوبًا عند تصغير الحجم */
/* جعل التصميم متجاوبًا عند تصغير الحجم */
@media (max-width: 768px) {
    .header h2 {
        font-size: 1.2rem; /* حجم أصغر للشعار */
    }

    .nav-links {
        display: none; /* إخفاء الروابط في البداية */
        flex-direction: column; /* عرض الروابط عموديًا */
        width: 100%; /* جعل الروابط تأخذ العرض الكامل */
        gap: 10px;
        position: absolute; /* جعل الروابط تظهر أسفل الهيدر */
        top: 70px; /* تحديد المسافة من الأعلى */
        left: 0;
        background-color: #fff;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
        z-index: 10000; /* تأكيد أن قائمة الهامبرغر في أعلى الترتيب */
    }

        .nav-links.active {
            display: flex; /* إظهار الروابط عند تفعيل الفئة */
        }

        .nav-links a {
            font-size: 0.9rem;
            padding: 8px 12px;
            width: 100%;
            text-align: center;
        }

    /* إظهار زر الهامبرغر */
    .hamburger {
        display: none;
        cursor: pointer;
        position: relative;
        z-index: 11000; /* تأكد من أن الهامبرغر في الأعلى */
    }

        .hamburger div {
            width: 25px;
            height: 3px;
            background-color: #004085;
            margin: 5px;
            transition: all 0.3s;
        }


    /* تأثير تمرير النافبار */
    /* جعل التصميم متجاوبًا عند تصغير الحجم */
    @media (max-width: 768px) {
        .hamburger {
            display: block; /* إظهار زر الهامبرغر عند تصغير الحجم */
        }

        .nav-links {
            position: absolute; /* تحديد موقع القائمة المنسدلة */
            top: 70px;
            left: 0;
            background-color: #fff;
            z-index: 10000; /* التأكد من أن القائمة المنسدلة في الأعلى */
        }

       
    }
}