@import url('https://fonts.googleapis.com/css2?family=Baloo+Bhaijaan+2:wght@400..800&display=swap');

* {
     background-color: transparent;
     font-family: 'Baloo Bhaijaan 2', sans-serif;
}
html, body {
   background-color: #f0f6fc;
    margin: 0 !important    ;
    padding: 0 !important;
    width: 100%;
    padding-bottom: 30px !important;
    overflow-x: hidden; 
}
.navbar {
     display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background-color:  rgba(255, 255, 255, 0.8);
    color : rgba(255, 255, 255, 0.8) ;
    text-decoration : none; 
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    border-radius: 5px;
    box-sizing: border-box;
    margin: 0px;
   direction: rtl;
}.navbar-inner {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    direction : rtl;
    color : rgba(255, 255, 255, 0.8);
    background-color : rgb(55, 115, 170);
    text-decoration : none; 
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    border-radius: 5px;
    box-sizing: border-box;
  
}
 nav a {
    text-decoration: none;
    color: rgb(255, 255, 255);
    font-size: 1.7rem;
    font-family: 'Baloo Bhaijaan 2', sans-serif;
    font-weight: bold;
    height: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: right;
}
nav a:hover {
    color: rgb(30, 90, 140);
    text-decoration: none;
    transition: color 0.3s ease;
}
    .logo {
    display: inline-flex;
    flex-wrap: wrap ;
    align-items: center;
    justify-content: center;
    margin-right: 1vw;
}
span.navdiv button {
    color:rgb(30, 90, 140);
    font-family:'Baloo Bhaijaan 2', sans-serif;
    display:flex; 
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    border: 2px solid rgb(55, 115, 170);
    color:rgb(30, 90, 140);
    background-color: aliceblue;
    transition: background-color 0.3s ease;
    border-radius:64px 48px 96px 16px;
    padding: 1px 1.8px 1px 1.8px;
    align-items: stretch;
    margin-left: 0.9vw;
    cursor: pointer;
    padding: 0.8vw;
}
span.navdiv button:hover {
    background-color: rgb(40, 90, 130);
    border-color: rgb(240, 248, 255);
    color: rgb(240, 248, 255);
    transition: background-color 0.3s, border-color 0.4s;
}
.navdiv-btn{
    color:rgb(30, 90, 140);
    font-family:'Baloo Bhaijaan 2', sans-serif;
    display:flex; 
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    border: 2px solid rgb(55, 115, 170);
    color:rgb(30, 90, 140);
    background-color: aliceblue;
    transition: background-color 0.3s ease;
    border-radius:64px 48px 96px 16px;
    padding: 1px 1.8px 1px 1.8px;
    align-items: stretch;
    margin-left: 0.9vw;
    cursor: pointer;
    padding: 0.8vw;
}
.navdiv-btn:hover{ 
   background-color: rgb(40, 90, 130);
    border-color: rgb(240, 248, 255);
    color: rgb(240, 248, 255);
    transition: background-color 0.3s, border-color 0.4s;  
}
/* Container القائمة Dropdown */
.dropdown {
  position: absolute;
  top: 50px; /* اضبطي الارتفاع بحسب مسافة زر القائمة */
  left: 2px; /* نقل القائمة لأقصى اليسار بدلاً من right */
  right: auto; /* لإلغاء أي محاذاة يمين سابقة */
  
  list-style: none;
  padding: 10px 0;
  margin: 0;
  min-width: 160px;
  background-color: aliceblue;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(30, 90, 140, 0.15);
  border: 1px solid rgba(30, 90, 140, 0.12);
  
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}


.dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 20px; /* عشان السهم ابو زنقم*/
  right: auto;
  width: 10px;
  height: 10px;
  background-color: aliceblue;
  transform: rotate(45deg);
  border-top: 1px solid rgba(30, 90, 140, 0.12);
  border-left: 1px solid rgba(30, 90, 140, 0.12);
}

.dropdown li {
  padding: 0;
  margin: 0;
  width: 100%;
  list-style: none;
}

/* الخط الفاصل بين العناصر */
.dropdown li:not(:last-child) {
  border-bottom: 1px solid rgba(30, 90, 140, 0.1);
}

/* الروابط داخل القائمة */
.dropdown li a {
  display: block;
  padding: 10px 10px 23px 10px;
  height: 15px;
  font-size: 0.90rem;
  font-weight: normal;
  color: rgb(30, 90, 140); /* لون النص الخاص بكِ */
  text-decoration: none;
  text-align: right;  /* محاذاة النص لليمين داخل المستطيل */
  white-space: nowrap;/* يمنع خروج أو نزول الكلمات بشكل عشوائي */
  box-sizing: border-box;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* تأثير التمرير (Hover) */
.dropdown li a:hover {
  background-color: rgba(30, 90, 140, 0.06); /* تغيير خفيف جداً يوضح التحديد */
  border-radius: 6px;
}

/* عند التفعيل */
.dropdown.active {
  opacity: 1;
  height: 60px;
  transform: translateY(0);
  pointer-events: auto;
}

.cards-wrapper {
  display: flex;
  flex-direction: row;        /* صف الكروت أفقياً */
  justify-content: center;    /* توسيط المجموعة بالمنتصف */
  align-items: stretch;       /* جعل جميع الكروت بنفس الارتفاع */
  gap: 25px;                  /* المسافة بين كل كارد وآخر */
  direction: rtl;
  width: 100%;
  max-width: 1100px;          /* العرض المناسب لشاشة اللابتوب */
  margin: 40px auto;          /* مسافة رأسية وتوسيط الحاوية */
  padding: 0 20px;
  box-sizing: border-box;
}/* 1. الحاوية المحيطة بالكروت (توضع حول الـ 3 كروت في الـ HTML) */
.cards-wrapper {
  display: flex;
  flex-direction: row;         /* صف الكروت أفقياً */
  justify-content: center;     /* توسيط مجموعة الكروت في منتصف الشاشة */
  align-items: stretch;        /* جعل جميع الكروت بنفس الارتفاع */
  gap: 25px;                   /* المسافة بين الكروت */
  
  width: 100%;
  max-width: 1100px;           /* العرض المناسب لشاشات اللابتوب */
  margin: 40px auto;           /* مسافة أعلى وأسفل وتوسيط الحاوية */
  padding: 0 20px;
  box-sizing: border-box;
}

/* 2. كود الكارد الخاص بكِ بعد تعديل الهوامش والأبعاد ليتناسب مع الصف الأفقي */
.card {
  flex: 1;                     /* توزيع المساحة بالتساوي بين الكروت */
  width: 100%;
  max-width: 340px;            /* أقصى عرض للكارد الواحد */
  margin: 0;                   /* تم إلغاء margin: 40px auto القديمة حتى لا تنزل الكروت لسطر جديد */
  
  /* التوسيط والتنسيق الداخلي */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 20px;
  box-sizing: border-box;

  /* الألوان والحدود */
  background-color: rgb(55, 115, 170);
  border-radius: 20px;

  /* الظل والتنقل */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* عند مرور الماوس (Hover) */
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.22);
}

/* 3. التجاوب مع شاشات الجوال */
@media (max-width: 768px) {
  .cards-wrapper {
    flex-direction: column;    /* تحويل الكروت لتصبح تحت بعضها في الجوال */
    align-items: center;
  }
  
  .card {
    width: 100%;
    max-width: 320px;
  }
}
/* ضبط قسم الصورة */
.card-image {
  width: 100%;
  margin-bottom: 20px;
  border: 5px solid aliceblue;
  border-radius: 12px;
}

.card-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* النصوص */
.card-title {
  color: #cfefff; /* لون درة بيج داكنة أو بيضاء للحفاظ على التباين */
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 0 10px 0;
}

.card-description {
  color: #d1c2b5;
  font-size: 1rem;
  margin: 0 0 30px 0;
  line-height: 1.5;
}

/* الزر السكلي في الأسفل */
.card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c9eaff; /* اللون المائي/التركواز للزر */
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* أيقونة السهم الدائرية */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 2px solid #c9eaff;
  border-radius: 50%;
  font-size: 0.9rem;
}

/* تأثير التمرير (Hover) */
.card-btn:hover {
  opacity: 0.85;
  transform: translateX(-3px); /* حركة خفيفة للجهة اليسرى */
}

footer {
    margin:90px 0px 0px 0px ;
    padding: 0px ;
    background-color: rgb(55, 115, 170);
    width: 100%;
    border-radius: 5px;
    box-sizing: border-box;
    text-align: center;
    align-items: flex-end;
    justify-content: center;
    position: fixed;
    bottom: 0;
    left: 0;
}
footer p {
   font-family: 'Baloo Bhaijaan 2', sans-serif;
    direction: rtl;
    font-size: 0.8rem;
    color: rgb(235, 240, 244);
    padding: 0px;
    margin: 0px 10px ;
    background-color:rgb(55, 115, 170);
    text-shadow: none;
}
footer a.footer-link {
    color: rgb(235, 240, 244);
    text-decoration: underline;
    font-style: oblique;
    font-weight: bold;
}
footer p a {
    color: rgb(235, 240, 244);
    text-decoration: underline;
    font-style: oblique;
    font-weight: bold;
}