* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Rubik", sans-serif;
  background-color: #f4f7fb;
  color: #444;
  line-height: 1.6;
}

/* تثبيت الهيدر */
header {
  background: linear-gradient(45deg, #069290 66%, #03a9f4 33%);
  /* الأخضر يشغل ثلثي الخلفية والأزرق ثلث */
  color: white;
  padding: 20px 0;
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

header h1 {
  font-family: "Rubik", sans-serif;
  font-size: 32px;
  margin-bottom: 10px;
  direction: rtl;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-direction: row-reverse;
}

nav ul li {
  margin: 0 25px;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 18px;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #7fd3ed;
}

section {
  padding: 120px 20px 50px;
  text-align: center;
  margin-top: 80px;
}

section h2 {
  font-size: 32px;
  margin-bottom: 30px;
  font-family: "Rubik", sans-serif;
  color: #2c3e50;
}

.video-gallery,
.programs,
.partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  flex-direction: row-reverse;
}

.video,
.program,
.partner {
  background-color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  width: 300px;
  margin-bottom: 30px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;

  font-weight: bold;
  font-family: "Rubik", sans-serif;
}
.partner {
height: 200px;
}

.partner i{
  font-size: 80px;
  padding-bottom: 30px;
  padding-top: 30px;
  background: linear-gradient(135deg, #d9ecf2, #03a9f4 );
  -webkit-background-clip: text; 
  background-clip: text; 
  color: transparent; 
  }

.video:hover,
.program:hover,
.partner:hover {
  transform: translateY(-15px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.partner p {
  padding-bottom: 20px;
}

.video iframe {
  width: 100%;
  height: 200px;
  border: none;
}

.program img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 3px solid #f0f0f0;
}

.program h3,
.program p {
  margin: 15px;
  color: #333;
}

.button {
  display: inline-block;
  background-color: #7fd3ed;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #549ed5;
}

.partner img {
  width: 120px;
  margin: 20px 0;
  object-fit: contain;
}

.swiper-container {
  width: 100%;
  height: 200px;
  margin-top: 30px;
}

.contact-form input,
.contact-form textarea {
  width: 80%;
  padding: 12px;
  margin: 10px;
  border-radius: 5px;
  border: 1px solid #ddd;
  font-size: 16px;
  font-family: "Rubik", sans-serif;
  direction: rtl;
}

.contact-form button {
  width: 80%;
  padding: 15px;
  margin-top: 10px;
  background-color: #7fd3ed;
  border: none;
  color: white;
  font-size: 18px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: "Rubik", sans-serif;
}

.contact-form button:hover {
  background-color: #549ed5;
}

footer {
  background-color: #5469d4;
  color: white;
  padding: 20px 0;
  text-align: center;
  margin-top: 50px;
}

footer p {
  font-size: 16px;
}

/* تصميم متجاوب */
@media (max-width: 768px) {
  .video,
  .program,
  .partner {
    width: 100%;
  }

  .contact-form input,
  .contact-form textarea {
    width: 90%;
  }
}

/* تأثير التحويم على الهيدر */
header:hover {
  background-color: #495f98;
}

/* تصميم قسم معلومات الاتصال */
#social {
  margin-top: 50px;
  text-align: center;
  padding: 0;
}

.social-icons a {
  margin: 0 15px;
  display: inline-block;
}

.social-icons img {
  width: 40px;
  height: 40px;
}

.social-icons i {
  font-size: 36px;
  /* تغيير الحجم حسب الحاجة */
  margin: 10px;
  transition: color 0.3s ease;
  /* لتغيير اللون بشكل انسيابي عند المرور */
}

.fab.fa-facebook {
  color: #1877f2;
  /* لون فيسبوك */
}

.fab.fa-whatsapp {
  color: #25d366;
  /* لون واتساب */
}

.fab.fa-youtube {
  color: #ff0000;
  /* لون يوتيوب */
}

.fas.fa-phone {
  color: #25d366;
  /* يمكنك تغيير اللون إلى الأزرق أو الأخضر الداكن إذا أردت */
}

/* تغيير اللون عند التمرير */
/* تغيير اللون عند التمرير */
.social-icons a:hover i {
  color: #155d8a;
  /* لون فيسبوك بدرجة أغمق */
}

.social-icons a:hover i.fab.fa-whatsapp {
  color: #1e8e52;
  /* لون واتساب بدرجة أغمق */
}

.social-icons a:hover i.fab.fa-youtube {
  color: #cc0000;
  /* لون يوتيوب بدرجة أغمق */
}

.social-icons a:hover i.fas.fa-phone {
  color: #1c9f53;
  /* لون الاتصال بدرجة أغمق */
}

.message {
  font-size: 18px;
  color: green;
  margin-top: 20px;
}

.error {
  font-size: 18px;
  color: red;
  margin-top: 20px;
}
