/*---------------------- En-tête ----------------------*/
body {
  direction: rtl; /* تحديد اتجاه النص من اليمين إلى اليسار */
  text-align: right; /* محاذاة النص إلى اليمين */
  background-color: #ffffff; /* خلفية بيضاء */
  margin: 0; /* إزالة الهامش الافتراضي */
  width: 100vw; /* عرض كامل الشاشة */
  height: 100vh; /* ارتفاع كامل الشاشة */
  overflow-x: hidden; /* إخفاء شريط التمرير الأفقي */
}

/* الهيدر */
.header, .header-p {
  background-color: rgb(230, 230, 230);
  color: #363636;
  padding: 15px 20px; /* زيادة الحشوة */
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  transition: box-shadow 0.3s;
}

.header:hover, .header-p:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* حاوية الشعار والعنوان */
.header > div {
  display: flex;
  align-items: center; /* محاذاة العناصر عمودياً */
}

img {
  width: 50px; /* حجم الصورة */
  height: auto; /* الحفاظ على النسبة الأصلية للصورة */
  margin-left: 10px; /* مسافة بين الشعار والعنوان */
}

.logo {
  font-size: 26px;
  font-weight: bold;
  display: inline-block;
  overflow: hidden; /* يخفي النص الزائد */
  white-space: nowrap; /* يمنع تداخل الكلمات */
  width: 0; /* يبدأ بعرض 0 */
  animation: typing 3s cubic-bezier(0.25, 0.6, 0.5, 1) forwards; /* تأثير الكتابة */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* تأثير الظل */
}

@keyframes typing {
  0% {
    width: 0; /* يبدأ من عدم وجود نص */
    opacity: 0; /* يبدأ مخفيًا */
  }
  30% {
    opacity: 1; /* يبدأ بالظهور تدريجياً */
  }
  100% {
    width: 100%; /* يظهر النص بالكامل */
    opacity: 1; /* يبقى مرئيًا */
  }
}

/* التنقل */
.nav, .auth-buttons {
  display: flex;
  align-items: center;
}

.nav a, .auth-buttons a, .button-link-p {
  color: #4c4c4c;
  margin: 0 15px; /* زيادة الهامش */
  text-decoration: none;
  position: relative;
  padding: 5px; /* إضافة حشوة لجعل الروابط أكبر */
}

.auth-buttons {
  margin-left: 10px; /* تعديل المسافة */
}

/* تأثير الخط السفلي */
.nav a::after, .auth-buttons a::after, .button-link-p::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: #fff;
  bottom: -5px;
  left: 0;
  transform: scaleX(0);
  transition: transform 0.3s;
}

.nav a:hover::after, .auth-buttons a:hover::after, .button-link-p:hover::after {
  transform: scaleX(1);
}

/* الأزرار */
.bn632-hover {
  border: none;
  padding: 10px 20px;
  background-color: #eea810; /* لون الخلفية */
  color: #fff; /* لون النص */
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
  border-radius: 5px; /* زوايا مدورة */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* ظل */
  font-size: 16px; /* حجم النص */
  text-align: center; /* محاذاة النص في الوسط */
}

/* تأثير التحويم */
.bn632-hover:hover {
  background-color: #e58508; /* تغيير لون الخلفية عند التحويم */
  transform: translateY(-2px); /* رفع الزر قليلاً */
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5); /* زيادة الظل عند التحويم */
}

/* الهيدر المتجاوب */
.header-p {
  display: none; /* إخفاء الهيدر المتجاوب */
}

@media (max-width: 1000px) {
  .header {
    display: none; /* إخفاء الهيدر العادي */
  }

  .header-p {
    display: flex;
    flex-direction: column; /* ترتيب العناصر عموديًا */
    align-items: center; /* توسيط العناصر أفقيًا */
    justify-content: center; /* توسيط العناصر عموديًا */
    padding: 10px;
    background-color: rgb(230, 230, 230); /* لون الخلفية */
    color: rgb(49, 48, 48); /* لون النص */
  }

  .img {
    width: 30px; /* حجم الصورة */
    height: auto; /* الحفاظ على النسبة الأصلية للصورة */
    margin-bottom: 10px; /* مسافة بين الصورة والعنوان */
  }

  .titre {
    font-size: 24px; /* حجم الخط */
    font-weight: bold; /* سمك الخط */
    text-align: center; /* مركزية الشعار */
    overflow: hidden; /* يخفي النص الزائد */
    white-space: nowrap; /* يمنع تداخل الكلمات */
    animation: typing 3s cubic-bezier(0.25, 1, 0.5, 1) forwards, logoFadeIn 1s ease forwards; /* تأثير الكتابة مع تأثير التلاشي */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* تأثير الظل */
  }

  .meenu {
    cursor: pointer;
    font-size: 30px; /* حجم الأيقونة */
    position: absolute; /* لتحريك الأيقونة إلى اليمين */
    right: 10px; /* المسافة من اليمين */
  }

  #button-container-p {
    list-style-type: none;
    padding: 0;
    margin: 0;
    position: fixed; /* لجعل القائمة تملأ الشاشة */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* خلفية داكنة مع شفافية */
    display: flex; /* استخدام Flexbox لمركز المحتوى */
    flex-direction: column; /* ترتيب العناصر عموديًا */
    justify-content: center; /* توسيط العناصر عموديًا */
    align-items: center; /* توسيط العناصر أفقيًا */
    transition: 0.3s; /* تأثير الانتقال */
  }

  #button-container-p.hidden {
    display: none; /* إخفاء القائمة */
  }

  #button-container-p li {
    margin: 20px 0; /* زيادة المسافة بين الأزرار */
    width: 100%; /* جعل الأزرار تأخذ عرض الشاشة بالكامل */
  }

  .button-link-p, .back-link, .signup-link-p, .bn31-p {
    display: block; /* جعل الروابط ككتل (block) لتأخذ العرض بالكامل */
    padding: 10px; /* تقليل المساحة الداخلية للأزرار */
    background-color: transparent; /* خلفية شفافة */
    color: #fab114; /* لون النص */
    text-decoration: none; /* إزالة التسطير من الروابط */
    border: 2px solid #f9c127; /* إضافة حدود */
    border-radius: 6px; /* زوايا مدورة */
    transition: all 0.3s ease; /* تأثير الانتقال عند التحويم */
    font-size: 16px; /* تقليل حجم النص */
    text-align: center; /* محاذاة النص في الوسط */
  }

  .button-link-p:hover, .back-link:hover, .signup-link-p:hover, .bn31-p:hover {
    background-color: #ffcb69; /* لون الخلفية عند التحويم */
    color: white; /* تغيير لون النص عند التحويم */
    transform: translateY(-2px); /* رفع الزر قليلاً عند التحويم */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* زيادة الظل عند التحويم */
  }

  @keyframes logoFadeIn {
    0% {
      opacity: 0; /* يبدأ مخفيًا */
      transform: scale(0.8); /* يبدأ بحجم أصغر */
    }
    50% {
      opacity: 0.5; /* يزيد من الشفافية */
    }
    100% {
      opacity: 1; /* يظهر بالكامل */
      transform: scale(1); /* يصل إلى الحجم الأصلي */
    }
  }
}




/* الفوتر */
.main-footer {
  background-color: #222;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.footer-section {
  flex: 1;
  margin: 10px;
  min-width: 200px;
}

.footer-section h3 {
  margin-bottom: 15px;
  font-size: 1.2em;
}

.footer-section p, .footer-section a {
  font-size: 0.9em;
  color: #ddd;
  text-decoration: none;
}

.footer-section a:hover {
  color: #fff;
}

.social-media {
  margin: 20px 0;
}

.social-media a {
  color: #fff;
  margin: 0 10px;
  text-decoration: none;
  font-size: 1.5em;
  display: inline-block;
}

.social-media a:hover {
  color: #ddd;
}

.footer-bottom {
  font-size: 0.8em;
  margin-top: 20px;
  color: #bbb;
}





  
  
  
  
