body {
      font-family: 'Cairo', sans-serif;
      margin: 0;
      padding: 0;
      background-color: #f7f8fb;
    }

/*شريط القوائم*/
  .navbar {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* يخلي النافبار فوق كل شي */
  background-color: #1e3a8a;
  /* background: linear-gradient(to bottom, #1e3a8a, #5c93e4); */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* اختياري - ظل */
  align-items: center;
  display: flex;
  justify-content: space-evenly;
}

    .logo img {
      height: 70px;
      margin-right: 10px;
    }

    
    .navbar ul {
      list-style: none;
      display: flex;
      padding: auto;
      margin: 0;
      flex-wrap: wrap;
    }

    .navbar ul li {
      position: relative;
    }

    .navbar ul li a {
      color: #ffffff;
      font-weight: bold;
      text-decoration: none;
      padding: 8px 12px;
      display: flex;
      align-items: center;
      gap: 6px;
      transition: background-color 0.3s, color 0.3s;
    }

    .navbar ul li a:hover {
      background-color: #ffffff;
      color: #1e3a8a;
      border-radius: 4px;
    }

    .dropdown {
      position: absolute;
      top: 40px;
      right: 0;
      background-color: #1e3a8a;
      min-width: 320px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.2);
      opacity: 0;
      visibility: hidden;
      transform: translateY(10px);
      transition: all 0.3s ease-in-out;
      z-index: 100;
      border-radius: 6px;
      padding: 10px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .dropdown a {
      color: black;
      font-size: 14px;
      padding: 8px;
      display: flex;
      align-items: center;
      gap: 6px;
      text-decoration: none;
      border-radius: 4px;
      font-weight: bold;
      transition: background-color 0.3s, color 0.3s;
    }

    .dropdown a:hover {
      background-color: #ffffff;
      color: #1e3a8a;
    }

    .navbar ul li:hover .dropdown {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

/* بداية تنسيق زر اللغة */
/* قائمة اللغة */
        .lang-dropdown {
            position: relative;
            display: inline-block;
        }
        .lang-dropdown-btn {
            background-color: #ffffff;
            color: #1e3a8a;
            padding: 10px 16px;
            font-size: 20px;
            border: none;
            border-radius: 10%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 50px;
            height: 30px;
            transition: background-color 0.3s ease;
        }
        .lang-dropdown-btn:hover {
            background-color: #163374;
        }
        .lang-dropdown-content {
            display: none;
            position: absolute;
            background-color: #fff;
            min-width: 180px;
            margin-top: 5px;
            box-shadow: 0px 4px 12px rgba(0,0,0,0.2);
            border-radius: 6px;
            overflow: hidden;
            opacity: 0;
            transform: translateY(-10px);
            transition: opacity 0.3s ease, transform 0.3s ease;
            z-index: 1;
        }
        .lang-dropdown-content a {
            color: #333;
            padding: 10px 14px;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: background-color 0.3s ease;
        }
        .lang-dropdown-content a:hover {
            background-color: #f2f2f2;
        }
        .lang-dropdown.show .lang-dropdown-content {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }
        /* حجم الأعلام */
        .lang-dropdown-content .fi {
            font-size: 20px;
        }
/* نهاية تنسيق زر اللغة */


    @media (max-width: 768px) {
      .navbar {
        flex-direction: column;
        align-items: flex-start;
      }

      .navbar ul {
        flex-direction: column;
        gap: 5px;
        width: 100%;
      }
        .drphone {
	display: none !important; /* إخفاء القائمة المنسدلة في الجوال */
	}

      .dropdown {
        display: none !important; /* إخفاء القائمة المنسدلة في الجوال */
      }
      .social-icons,
      .lang-toggle {
        display: none !important; /* إخفاء أزرار التواصل وزر اللغة */
      }
    }

   /* زر الهامبرقر */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: #ffffff;
  cursor: pointer;
  margin-left: 10px;
}

/* عند تفعيل القائمة */
.navbar ul.active {
  display: flex !important;
}

/* تعديل في الـ media query */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    margin-left: 20px;

  }

  .navbar ul {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 5px;
    margin-top: 10px;
  }

  .navbar ul.active {
    display: flex;
  }

  .drphone {
    display: none !important; /* اختياري حسب الرغبة */
  }

  .social-icons,
  .lang-toggle {
    display: none !important;
  }
}

/*حل مشكلة ظهور الهامبرقر في الهاتف*/
.navbar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 5%;
}

/* ترتيب في الجوال */
@media (max-width: 768px) {
  .navbar-header {
    flex-direction: row-reverse;
    width:100%;
  }
    /* تنسيق زر اللغة في الهاتف */
  .lang-dropdown-btn{
    position: fixed;
    top: 25px;
    left:45%;
    z-index: 1000;
    background-color: transparent;
    color:#ffffff;
/*-----اختفاء زر اللغة عند التمرير---------------------*/
  }
  .lang-dropdown-btn.hide {
    opacity: 0;
    pointer-events: none; /* ما يستقبل كليك وهو مخفي */
  }


}
  .social-icons {
      display: flex;
      gap: 10px;
    }
  /*نهاية شريط القوائم*/