body {
  background-color: #f2f2f2;
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  padding: 0;
  margin: 0;
}

.main-header {
  background-color: #007bff;
  color: white;
  padding: 20px;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  direction: rtl;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-header img {
  height: 80px;
  width: auto;
  margin-left: 10px;
}

nav {
  background-color: #e0e0e0;
  padding: 10px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

nav a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

main {
  padding: 30px;
  text-align: center;
}

.cta-button {
  display: inline-block;
  margin-top: 20px;
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: #0056b3;
}

.slider {
  width: 1300px;
  height: 200px;
  overflow: hidden;
  margin: 50px auto;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.slides {
  display: flex;
  width: calc(300px * 12); /* 6 صور × 2 */
  animation: scrollRight 0s linear infinite;
}

.slides img {
  width: 300px;
  height: 400px;
  object-fit: cover;
  flex-shrink: 0; /* تمنع الصورة تصغر */
}

@keyframes scrollRight {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}




footer {
  background-color: #ddd;
  padding: 15px;
  text-align: center;
  margin-top: 30px;
  position: relative;
}

.social-icons {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-icons a {
  color: #007bff;
  font-size: 24px;
  transition: transform 0.3s;
}

.social-icons a:hover {
  transform: scale(1.2);
  color: #0056b3;
}
.popup {
  display: none;
  position: absolute;
  background-color: #007bff;
  color: white;
  padding: 15px;
  border-radius: 10px;
  max-width: 300px;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  top: 70px; /* تحكم بموقع الفقعة */
  right: 20px; /* لأن الصفحة rtl */
  z-index: 10000;
}

/* لو أضفنا كلاس "active" تظهر الفقعة */
.popup.active {
  display: block;
}
/* الحاوية المنسدلة */
.dropdown {
  position: relative;
  display: inline-block;
}

/* زر القائمة */
.dropbtn {
  color: #007bff;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* محتوى القائمة المنسدلة مخفي افتراضياً */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #e0e0e0;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  right: 0; /* بسبب rtl نثبتها على اليمين */
  border-radius: 8px;
  z-index: 1000;
  flex-direction: column;
}

/* روابط القائمة */
.dropdown-content a {
  color: #007bff;
  padding: 10px 15px;
  text-decoration: none;
  display: block;
}

/* تأثير عند المرور على الرابط */
.dropdown-content a:hover {
  background-color: #007bff;
  color: white;
}

/* إظهار القائمة عند تحويم الماوس على الزر */
.dropdown:hover .dropdown-content {
  display: flex;
}
