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

/* ✅ ضبط الـ Body */
body {
  background-color: #01134A;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ✅ ضبط البانر */
.hero-banner {
  background-color: rgba(122, 99, 250, 0.3);
  position: relative;
  width: 100%;
  min-height: 90vh; /* تصغير البانر */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 50px 0 80px 0;
}

#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;
  margin-bottom: 15px;
}

.main-logo {
  width: 200px;
}

.divider {
  width: 700px;
  height: 3px;
  background: #6c63ff;
  margin: 15px auto;
}

/* ✅ ضبط محتوى البانر */
.overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.overlay h1 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 5px;
}

.overlay h2 {
  font-size: 32px;
  font-weight: bold;
  margin: 0;
  color: #5BC3F8;
}

/* ✅ ضبط الفورم */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 450px;
  padding: 20px;
}

form {
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  border-top: 5px solid #5BC3F8;
}

/* ✅ ضبط الإدخالات */
.form-group {
  margin-bottom: 15px;
  text-align: left;
}

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

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #5BC3F8;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
}

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

.sec {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}


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

form#myform {
  z-index: 999;
  
}

#RichardGeigerbt {
  background-color: #0E5EA5;
  color: white;
}

#clear {
  background-color: #5BC3F8;
  color: white;
}

button:hover {
  opacity: 0.85;
}

/* ✅ تنسيق عرض النتيجة */
#resultDisplay {
  display: none;
  background-color: #0E5EA5;
  color: white;
  font-size: 18px;
  font-weight: bold;
  padding: 15px;
  border-radius: 5px;
  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);
  }
}

/* ✅ ضبط الشعارات */
.logos-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
  padding: 10px;
  width: 100%;
}

/* ✅ تنسيق حجم الشعارات */
.logos-container img {
  width: 50px;
  height: auto;
  transition: transform 0.3s ease-in-out;
}

.logos-container img:hover {
  transform: scale(1.1);
}

/* ✅ ضبط الفوتر */
.footer {
  background: #7A63FA;
  text-align: center;
  padding: 15px;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80%;
  margin-top: 20px;
  border-radius: 15px 15px 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: 100px;
}

/* ✅ تحسين التوافق مع الهواتف */
@media (max-width: 768px) {
  .logos-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-logo {
    margin-top: 10px;
  }

  .button-container {
    flex-direction: column;
  }

  button {
    width: 100%;
    margin-bottom: 10px;
  }
}




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

/* ========== تحسينات عامة للشاشات الصغيرة ========== */
@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; /* تقليل الحواف */
    margin-top: -60px; /* تعديل المسافة العلوية */
  }

  /* تصغير حجم المدخلات */
  .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; /* تقليل الحواف الداخلية */
    margin-top: -50px; /* تعديل المسافة العلوية */
  }

  /* ====== تصغير المدخلات ====== */
  .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;
}