/* إعدادات عامة */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    direction: rtl;
    background-color: #f4f4f4;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* يسمح بالتفاف العناصر */
  }
  
  /* رأس الصفحة */
  .site-header {
    background-color: #333;
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  /* الشعار */
  .logo {
    flex: 1;
  }
  
  .logo h1 {
    margin: 0;
    font-size: 1.8rem;
  }
  
  .logo p {
    margin: 0;
    font-size: 0.9rem;
    color: #bbb;
  }
  
  /* القائمة (ناف دراور) */
  .nav-drawer {
    flex-grow: 1;
  }
  
  .nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .nav-menu li {
    margin: 0 15px;
  }
  
  .nav-menu li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: all 0.3s ease;
  }
  
  .nav-menu li a:hover {
    background-color: #555;
    border-color: #fff;
  }
  
  /* صندوق البحث */
  .search-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  
  #search {
    padding: 5px;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    outline: none;
  }
  
  #search-btn {
    background: #555;
    color: #fff;
    border: none;
    padding: 8px 15px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 20px;
    transition: background-color 0.3s ease;
  }
  
  #search-btn:hover {
    background: #666;
  }
  
  /* التصميم للأجهزة الصغيرة */
  @media (max-width: 768px) {
    .container {
      flex-direction: column; /* التبديل إلى تصميم عمودي */
      align-items: flex-start; /* محاذاة العناصر إلى اليمين */
    }
  
    .nav-menu {
      flex-wrap: wrap; /* يتيح التفاف العناصر */
      justify-content: flex-start; /* محاذاة العناصر إلى اليمين */
    }
  
    .nav-menu li {
      margin: 5px 10px; /* تقليل الهوامش */
    }
  
    .search-container {
      justify-content: flex-start; /* محاذاة البحث إلى اليمين */
      margin-top: 10px; /* فصل البحث عن العناصر الأخرى */
      width: 100%; /* تمديد عرض البحث */
    }
  
    #search {
      width: calc(100% - 80px); /* ضبط حجم صندوق البحث */
    }
  }
  
/* أيقونة تواصل معنا */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: Arial, sans-serif;
}

.icon-container {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.icon {
  font-size: 30px;
  margin: 10px 0;
  cursor: pointer;
}
.imm {
width: 60px; /* حجم أيقونة واتساب */
height: 60px;
}
.flip-text {
  font-size: 26px;
  font-weight: bold;
  color: #222;
  text-align: center;
  margin: 30px 0; /* مسافة بينه وبين الهيدر */
  position: relative;
  height: 40px;
  overflow: hidden;
}
.flip-text {
  font-size: 26px;
  font-weight: bold;
  color: #222;
  text-align: right;   /* محاذاة النص لليمين */
  margin: 30px 20px;   /* مسافة تحت الهيدر + مسافة من اليمين */
  position: relative;
  height: 40px;
  overflow: hidden;
  direction: rtl;      /* اتجاه النص يمين */
}
.flip-text span {
  position: absolute;
  opacity: 0;
  animation: flip 9s infinite;
}

.flip-text span:nth-child(1) { animation-delay: 0s; }
.flip-text span:nth-child(2) { animation-delay: 3s; }
.flip-text span:nth-child(3) { animation-delay: 6s; }

@keyframes flip {
  0% { opacity: 0; transform: translateY(100%); }
  10% { opacity: 1; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(0); }
  40% { opacity: 0; transform: translateY(-100%); }
  100% { opacity: 0; }
}

