/* إعادة تعيين بعض القيم الافتراضية */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

/* تصميم الشريط العلوي */
.navbar {
    background-color: #007bff;
    color: white;
    padding: 15px 0;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar h1 {
    margin: 0;
}

.navbar ul {
    list-style: none;
    display: flex;
}

.navbar ul li {
    margin-left: 20px;
}

.navbar ul li a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.3s;
}

.navbar ul li a:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* تصميم المحتوى */
.content {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.content h2 {
    margin-bottom: 20px;
    color: #007bff;
}

.content ul {
    list-style: none;
}

.content ul li {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: #f9f9f9;
    transition: background 0.3s;
}

.content ul li:hover {
    background-color: #e7f3ff;
}

/* تصميم الروابط */
.content ul li a {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    color: #007bff;
    padding: 8px 12px;
    border: 1px solid #007bff;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
}

.content ul li a:hover {
    background: #007bff;
    color: white;
}

/* تصميم الفوتر */
.footer {
    background-color: #007bff;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: relative;
    bottom: 0;
    width: 100%;



/* إعادة تعيين بعض القيم الافتراضية */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    direction: rtl; /* لجعل النص من اليمين إلى اليسار */
}

/* تصميم الشريط العلوي */
.navbar {
    background-color: #007bff;
    color: white;
    padding: 15px 0;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar h1 {
    margin: 0;
}

.navbar ul {
    list-style: none;
    display: flex;
}

.navbar ul li {
    margin-right: 20px; /* تغيير الاتجاه إلى اليمين */
}

.navbar ul li a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.3s;
}

.navbar ul li a:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* تصميم المحتوى */
.content {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.content h2 {
    margin-bottom: 20px;
    color: #007bff;
}

/* تخطيط الشبكة لعرض المواقع */
.site-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 أعمدة */
    gap: 20px; /* المسافة بين العناصر */
}

.site-card {
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: #f9f9f9;
    transition: background 0.3s;
    text-align: center; /* مركز النص */
}

.site-card:hover {
    background-color: #e7f3ff;
}

/* تصميم الروابط */
.site-card a {
    text-decoration: none;
    color: #007bff;
    padding: 8px 12px;
    border: 1px solid #007bff;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
}

.site-card a:hover {
    background: #007bff;
    color: white;
}

/* تصميم زر تفاصيل الموقع */
.details-button {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #ECE5B6;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.details-button:hover {
    background-color: #616D7E;
}

/* تصميم الفوتر */
.footer {
    background-color: #007bff;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* تصميم التنقل */
.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.pagination a {
    margin: 0 5px;
    padding: 8px 12px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.pagination a:hover {
    background-color: #0056b3;
}

.pagination .active {
    background-color: #0056b3;
    pointer-events: none; /* منع النقر على الصفحة الحالية */
}

/* تصميم عدد الزيارات */
.site-card p {
    margin: 15px 0; /* مسافة بين النص وزر التفاصيل */
    color: #666; /* لون رمادي */
}

/* تصميم القسمين الجديدين */
.section {
    margin-bottom: 20px;
}

/* استعلامات الوسائط لجعل التصميم متجاوب */
@media (max-width: 1200px) {
    .site-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 أعمدة */
    }
}

@media (max-width: 900px) {
    .site-grid {
        grid-template-columns: repeat(2, 1fr); /* عمودين */
    }

    .navbar-container {
        flex-direction: column; /* تغيير الاتجاه إلى عمودي */
        align-items: flex-start; /* محاذاة العناصر إلى اليسار */
    }

    .navbar ul {
        flex-direction: column; /* تغيير الاتجاه إلى عمودي */
        margin-top: 10px; /* إضافة مسافة بين العنوان والقائمة */
    }

    .navbar ul li {
        margin-right: 0; /* إزالة الهوامش الجانبية */
        margin-bottom: 10px; /* إضافة هوامش سفلية */
    }
}

@media (max-width: 600px) {
    .site-grid {
        grid-template-columns: 1fr; /* عمود واحد */
    }

    .content {
        padding: 15px; /* تقليل الحشوة */
    }

    .navbar {
        padding: 10px 0; /* تقليل حشوة الشريط العلوي */
    }

    .pagination {
        flex-direction: column; /* تغيير الاتجاه إلى عمودي */
    }

    .pagination a {
        margin: 5px 0; /* إضافة مسافة عمودية بين الروابط */
    }
}
}