/* ====== إعدادات عامة ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Tajawal", sans-serif;
}

body {
  background-color: #01134A;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sec {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
/* ====== جعل الفيديو خلفية للسكشن بالكامل ====== */
.hero-banner {
  background-color: rgb(122, 99, 250 ,34% );
  position: relative;
  width: 100%;
  height: 60vh; /* زيادة الارتفاع ليشمل اللوجو والنصوص */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 220px 0 300px 0!important;
}

#bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6; /* تقليل شفافية الفيديو لإبراز النص */
  z-index: -1;
}

/* ====== الشعار العلوي مع الخط ====== */
.logo-header {
  text-align: center;
  position: relative;
  z-index: 2;
  padding-top: 60px;  /* تأكيد وجود مسافة من الأعلى */
    margin-bottom: 10px; /* لإبعاده قليلًا عن العناصر التي تليه */
}

.main-logo {
  width: 200px;
}

.divider {
  width: 900px;
  height: 2px;
  background: #6c63ff;
  border: none;
  margin: 30px auto 0;

}

/* ====== تنسيق محتوى البانر ====== */
.overlay {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  padding: 20px;
}

.math-icon {
  width: 70px;
  margin-bottom: 10px;
}

.overlay h1 {
  font-size: 40px;
  font-weight: bold;
  color: #ffffff;
}

.overlay h2 {
  font-size: 50px;
  font-weight: bold;
  padding: 10px 20px;
  display: inline-block;
  border-radius: 5px;
  color: white;
}

.overlay .highlight {
  color: #5BC3F8;
  font-weight: bold;
}

/* ====== الفورم ====== */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 50px 0 0 0;
  width: 100%;
}

.form-container {
  
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.15);
  width: 450px;
  text-align: left;
  border-top: 5px solid #5BC3F8;
  transition: transform 0.3s ease-in-out;
  position: relative;
}

.form-container:hover {
  transform: translateY(-5px);
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 2px solid #7A63FA;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s ease-in-out;
  background: #F8F8FF;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #563FD7;
  box-shadow: 0px 0px 10px rgba(122, 99, 250, 0.3);
  outline: none;
}

/* ====== الأزرار ====== */
.button-container {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

button {
  width: 48%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

#RichardGeigerbt {
  background: linear-gradient(45deg, #7A63FA, #563FD7);
  color: white;
}

#clear {
  background: linear-gradient(45deg, #5BC0EB, #0099CC);
  color: white;
}

button:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

/* ====== النتيجة ====== */
#RichardGeigerp {
  display: none;
  background-color: #7A63FA;
  color: white;
  font-size: 18px;
  font-weight: bold;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  margin-top: 15px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.5s ease-in-out;
}

/* تأثير الظهور */
@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(-10px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* ====== الفوتر ====== */
.footer {
  background: #7A63FA; /* اللون البنفسجي للفوتر */
  text-align: center;
  padding: 20px;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80%;
  margin-top: 30px;
  border-radius: 20px 20px 0 0; /* تدوير الحواف العلوية */
  box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.2); /* ظل خفيف */
}

/* الحاوية الداخلية للفوتر */
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  padding: 10px;
}

/* تصميم القائمة داخل الفوتر */
.footer-nav {
  display: flex;
  gap: 15px; /* مسافة بين العناصر */
  flex-wrap: wrap; /* في حال لم تكن هناك مساحة كافية */
}

.footer-nav a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: #D1C4FF; /* لون أفتح عند التمرير */
}

/* اللوجو داخل الفوتر */
.footer-logo {
  width: 120px; /* حجم اللوجو */
}




/* ------------------------------------- */


.logos-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px; /* مسافة بين الشعارات */
  margin-top: 30px; /* مسافة بعد الفورم */
  padding: 50px ;
}

.logos-container img {
  width: 50px; /* ضبط حجم اللوجو */
  height: auto;
  filter: brightness(0) invert(1); /* جعل الشعارات بيضاء إذا لزم الأمر */
  transition: transform 0.3s ease-in-out;
}

.logos-container img:hover {
  transform: scale(1.1); /* تأثير عند تمرير الماوس */
}







/* ------------------mobile app ---------------------------- */


/* ========== تحسينات عامة للشاشات الصغيرة ========== */
@media (max-width: 768px) {
  
  /* تحسين اللوجو والخط */
  .main-logo {
    width: 150px; /* تصغير اللوجو قليلاً */
  }

  .divider {
    width: 80%; /* تصغير عرض الخط */
  }

  /* تعديل ارتفاع الهيدر والبانر */
  .hero-banner {
    width: 100%;
    height: 80vh; /* زيادة الارتفاع قليلاً */
    padding: 150px 20px 200px 20px !important; /* تقليل المسافة الداخلية */
  }

  /* ضبط حجم النصوص في البانر */
  .overlay h1 {
    font-size: 30px; /* تصغير العنوان */
  }

  .overlay h2 {
    font-size: 35px; /* تصغير العنوان */
  }

  /* تحسين تنسيق الفورم */
  .container {
    padding: 20px 0;
  }

  .form-container {
    width:90%; /* توسيع الفورم ليملأ الشاشة بشكل مناسب */
    padding: 20px; /* تقليل الحواف */
  
  }

  /* تصغير حجم المدخلات */
  .form-group input,
  .form-group select {
    padding: 10px;
    font-size: 14px; /* تقليل حجم النص */
  }

  /* تصغير الأزرار */
  .button-container {
    flex-direction: column; /* جعل الأزرار تحت بعضها */
    gap: 10px;
  }

  button {
    width: 100%; /* جعل الأزرار بعرض الشاشة */
  }

  /* تحسين الفوتر */
  .footer {
    width: 100%; /* جعل الفوتر بعرض الشاشة */
    padding: 15px; /* تقليل الحواف */
    text-align: center;
  }

  /* تصغير اللوجو داخل الفوتر */
  .footer-logo {
    width: 100px;
  }
  
/* ------------عمل اللوجو فى ال center فى ال footer------------ */

.footer-container {
  flex-direction: column; /* تحويل العناصر إلى عمودي بدلاً من أفقي */
  align-items: center; /* توسيط العناصر */
  text-align: center; /* توسيط النصوص */
}

.footer-logo {
  margin-top: 10px; /* إضافة مسافة فوق اللوجو */
}

.footer-nav {
  flex-direction: column; /* جعل الروابط تأتي تحت بعضها */
  gap: 10px; /* إضافة مسافة بين الروابط */
}

.footer-nav a {
  display: block; /* جعل الروابط في سطر مستقل */
}



  /* ضبط توزيع الروابط */
  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 10px; /* تقليل المسافة بين الروابط */
  }
  .footer-nav{
    display: none !important;
  }
  

  /* تحسين عرض الشعارات */
  .logos-container {
    flex-wrap: wrap; /* السماح بتقسيم الشعارات إذا لم يكن هناك مساحة كافية */
    gap: 15px;
    padding: 20px;
  }

  .logos-container img {
    width: 40px; /* تصغير حجم الشعارات */
  }
}




@media (max-width: 480px) {

  /* ====== تحسين اللوجو والخط ====== */
  .main-logo {
    width: 120px; /* تصغير اللوجو أكثر */
  }

  .divider {
    width: 60%; /* تقليل عرض الخط */
  }

  /* ====== تعديل ارتفاع البانر ====== */
  .hero-banner {
    width: 100%;
    height: 75vh; /* ضبط الارتفاع ليملأ الشاشة */
    padding: 120px 15px 150px 15px !important; /* تقليل الحواف الداخلية */
  }

  /* ====== تحسين النصوص داخل البانر ====== */
  .overlay h1 {
    font-size: 24px; /* تصغير العنوان */
  }

  .overlay h2 {
    font-size: 28px; /* تصغير النص */
  }

  /* ====== تحسين الفورم ====== */
  .form-container {
    width: 90%; /* جعل الفورم أعرض ليملأ الشاشة */
    padding: 15px; /* تقليل الحواف الداخلية */
    
  }

  /* ====== تصغير المدخلات ====== */
  .form-group input,
  .form-group select {
    padding: 8px;
    font-size: 12px; /* تقليل حجم النصوص */
  }

  /* ====== تحسين الأزرار ====== */
  .button-container {
    flex-direction: column; /* الأزرار تحت بعضها */
    gap: 8px;
  }

  button {
    width: 100%; /* جعل الأزرار بعرض الشاشة */
    font-size: 14px; /* تقليل حجم النص */
    padding: 10px; /* تقليل المساحة داخل الزر */
  }

  /* ====== تحسين الفوتر ====== */
  .footer {
    width: 100%; /* جعل الفوتر بعرض الشاشة */
    padding: 12px; /* تقليل الحواف الداخلية */
    text-align: center;
  }

  /* ====== تصغير اللوجو داخل الفوتر ====== */
  .footer-logo {
    width: 80px;
  }
  

  /* ------------عمل اللوجو فى ال center فى ال footer------------ */

.footer-container {
  flex-direction: column; /* تحويل العناصر إلى عمودي بدلاً من أفقي */
  align-items: center; /* توسيط العناصر */
  text-align: center; /* توسيط النصوص */
}

.footer-logo {
  margin-top: 10px; /* إضافة مسافة فوق اللوجو */
}

.footer-nav {
  flex-direction: column; /* جعل الروابط تأتي تحت بعضها */
  gap: 10px; /* إضافة مسافة بين الروابط */
}

.footer-nav a {
  display: block; /* جعل الروابط في سطر مستقل */
}/* ------------عمل اللوجو فى ال center فى ال footer------------ */

.footer-container {
  flex-direction: column; /* تحويل العناصر إلى عمودي بدلاً من أفقي */
  align-items: center; /* توسيط العناصر */
  text-align: center; /* توسيط النصوص */
}

.footer-logo {
  margin-top: 10px; /* إضافة مسافة فوق اللوجو */
}

.footer-nav {
  flex-direction: column; /* جعل الروابط تأتي تحت بعضها */
  gap: 10px; /* إضافة مسافة بين الروابط */
}

.footer-nav a {
  display: block; /* جعل الروابط في سطر مستقل */
}

  /* ====== تحسين توزيع الروابط ====== */
  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 8px; /* تقليل المسافة بين الروابط */
    font-size: 12px; /* تصغير النص */
  }

  .footer-nav{
    display: none !important;
  }

  /* ====== تصغير حجم الشعارات بعد الفورم ====== */
  .logos-container {
    flex-wrap: wrap; /* السماح بتقسيم الشعارات إذا لم يكن هناك مساحة كافية */
    gap: 10px;
    padding: 15px;
  }

  .logos-container img {
    width: 35px; /* تصغير حجم الشعارات */
  }
  
}










.conn{
  margin-top: -42px;
  z-index: 10;
  max-width: 1080px;
  width: 100% ;
  background: #ffffff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}
h2 {
  color: #01134A;
  margin-bottom: 20px;
}
h3 {
  font-size: 20px;
  color: #000000;
  background: #5BC3F8;
  padding: 10px;
  border-radius: 8px;
}
.equation {
  background: #7A63FA;
  padding: 15px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 18px;
  color: #ffffff;
}
.definition {
  margin-top: 15px;
  padding: 10px;
  background: #d4e6f1;
  border-radius: 8px;
  text-align: right;
}
.definition h4 {
  color: #0d6efd;
}
ul {
  text-align: right;
  padding-right: 20px;
}


.left{
  direction: ltr !important;
  text-align: left;
}


div#references {
  margin-top: 23px;
}

div#references h3 {
  direction: rtl;
}

div#references  ul {
  direction: ltr;
  text-align: left;
}
h4 {
  direction: rtl;
}


div#references h3 {
  direction: rtl;
  text-align: justify;
}