/* إعادة تعيين بعض القيم الأساسية */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* تنسيق الجسم */
body {
	font-family: 'Almarai', sans-serif;
  background-color: #ffffff;
  color: #333;
  line-height: 1.6;
}

/* حاوية المحتوى */
.container {
  width: 90%;
  margin: 0 auto;
      padding: 25px;
}

/* العناوين */
h1, h2, h3 {
  color: #222;
}
.post-meta {
    background: aliceblue;
    padding: 10px;
    border-radius: 10px;
    margin-top: 10px;
}
article h2, h3, h4 {
    text-align: center !important;
    padding: 10px;
    border-bottom: 1px solid #ccc;
	}
article h1 {
    background: #eee;
    border-radius: 10px;
    padding: 10px;
    font-size: 25px;
    font-weight: bold;
}
article p {
    line-height: 1.6;
    font-size: 18px;
}
/* الروابط */
a {
  color: #007bff;
  text-decoration: none;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}
iframe {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}
/* الروابط عند التحويم */
a:hover {
  text-decoration: underline;
}
a.donwbtn {
  float: none;
background: #6bce82;
padding: 10px;
border-radius: 5px;
color: #3a3a3a;
display: block;
width: max-content;
font-weight:bold;
text-transform: uppercase;
text-align: center;
margin: 0 auto;
line-height: 1;
font-size: 14px;
}
h2.site-title a {
    color: #fff;
}
/* تحسين للموبايل */
@media (max-width: 600px) {
  .container {
    width: 100%;
  }
}
div#Title-description h1 a {
    color: #fff !important;
}
div#Title-description {color: #fff !important;
    background: #3a3a3a;
    padding: 15px;
}
#menu-toggle svg {
    fill: #fff;
    font-weight: bolder;
}
button#menu-toggle {border: none;cursor: pointer;
     background: #3a3a3a;
    align-items: center;
    justify-content: center;
    display: flex;
    height: 40px;
    width: 40px;
    border-radius: 10px;
    order: 1;
    margin-left: 15px;
}
div#gsc-iw-id1 {
    display: none;
}
.gcsc-find-more-on-google-root{display:none!important}.gcsc-find-more-on-google{display:none!important}form.gsc-search-box.gsc-search-box-tools{display:none!important}
/* تنسيق زر الإغلاق */
button.close-menu {
	display: none;
    background: none;
      border: none;
    color: #fff;
    font-size: 24px;
    padding: 5px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 40px;
    left: 10px;
    background: #c9383a;
    z-index: 99999;
    border-radius: 10px;
}

button.close-menu svg {
    width: 24px;
    height: 24px;
    fill: #333;
}
.container-homepage {
    margin: 30px;
}
.excerpt p {
    font-size: 14px;
    color: #666;
}
.container-homepage article {
    background: #f0f0f196;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 15px;
}
button#load-more {    
    cursor: pointer;
	color: #3a3a3a;
    padding: 5px 10px;
    box-shadow: rgb(0 0 0 / 39%) 0 5px 10px;
    border-radius: 10px;
    text-align: center;
    width: 90%;
    margin: 15px;
    margin-bottom: 15px;
    background: #7bcbfb;
    border: none;
    font-family: 'Almarai', sans-serif;
    font-size: 18px;
}
/* تنسيق القائمة الرئيسية عند فتحها */
#menu-site-navigation {    overflow-x: hidden;
    display: none; /* مخفية بشكل افتراضي */
  position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    z-index: 999;
    margin: 15px;
    background: #ffffff;
    border-radius: 15px;
    padding: 20px;
	overflow-y: scroll;
    height: 350px;    
	box-shadow: rgb(0 0 0 / 72%) 0 5px 10px;
}
div#container {
    direction: rtl;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #7bcbfb;
    padding: 15px;
    position: relative;
    border-radius: 0px 0px 15px 15px;
    box-shadow: rgb(0 0 0 / 39%) 0 5px 10px;
}
/* الظل لتغطي القائمة */
#shadow {    
    z-index: 9;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 77%);
    display: none; /* مخفي في البداية */
}

/* تنسيق العناصر داخل القائمة */
#menu-site-navigation li {width: 100%;
padding-bottom: 15px;
list-style: none;
}

#menu-site-navigation li a {
      text-decoration: none;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    list-style: none;
    padding: 10px;
    background: #3a3a3a;
    width: 100%;
    border-radius: 10px;
    display: block;
}

/* عرض القائمة عند النقر على الزر */
#menu-site-navigation.open, #shadow.show {
    display: block;
}

/* تنسيق عام للقائمة */
#main-menu {
  display: none; /* إخفاء القائمة بشكل افتراضي */
  position: fixed; /* جعل القائمة تظهر على الشاشة بالكامل */
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
   background-color: rgba(0, 0, 0, 0.5); /* خلفية مظلمة للقائمة */
  color: #fff;
  text-align: center;
  z-index: 999;
  padding-top: 50px; /* لإعطاء مسافة من الأعلى */
}

/* تنسيق قائمة الفوتر */
footer nav .footer-menu {
    list-style-type: none;
    padding: 0;
    text-align: center;
}

footer nav .footer-menu li {
    display: inline-block;
    margin: 0 15px;
}

footer nav .footer-menu li a,#copyright {
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    font-size: 16px;
    display: block;
    border-radius: 4px;
}
footer {
    background: #3a3a3a;
    color: #fff;
    min-height: 150px;
}
/* تنسيق عند التمرير على الرابط في الفوتر */

/* تحسين للأجهزة المحمولة */
@media (max-width: 600px) {
    footer nav .footer-menu li {
        display: block;
        margin: 10px 0;
    }

    footer nav .footer-menu li a {
        font-size: 16px;
        padding: 10px;
        text-align: center;
    }

    footer nav .footer-menu {
        padding-left: 0;
    }
}
#searchbox {width: 80%;
    text-align: center;
    order: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

#inputBox {
    padding: 10px;
    font-size: 16px;
    margin-right: 10px;
    margin-left: 10px;
    width: 100%;
    height: 40px;
    text-align: center;
    border-radius: 10px;
   border: none;
}

#button-submit {    font-family: 'Almarai', sans-serif;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    font-weight: bold;
    height: 40px;
    background: #3a3a3a;
    border-radius: 10px;
    color: #fff;
}
nav {
    margin-bottom: 10px;
    z-index: 9999;
}
nav ol {
    list-style: none;
    background: #efefef;
    padding: 10px;
    word-break: break-all;
    border-radius: 10px;
}
nav li {
display: inline-block;
    color: #666;
    margin-left: 5px;
}

.matiereListe li a,ul.ExamensListe li a {
    background: #7bcbfb;
    padding: 10px;
    margin-bottom: 15px;
    display: block;
    width: fit-content;
    border-radius: 10px;
    box-shadow: rgb(0 0 0 / 39%) 0 5px 10px;
    color: #3a3a3a;
}
.matiereListe li,ul.ExamensListe li {
    list-style: none;
}