/* ===== تنسيق القوائم يمين ويسار الشعار في سلة ===== */

.header-components-home .main-menu {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 50px !important;
  width: 100%;
  position: relative;
}

/* توزيع العناصر الأربعة: أول اثنين يسار الشعار وآخر اثنين يمين */
.header-components-home .main-menu li {
  flex: 1 1 auto !important;
  text-align: center;
}

/* إخفاء القائمة الأصلية وتقسيمها بصريًا */
.header-components-home .main-menu li:nth-child(1) {
  order: 1;
  margin-right: auto;
}

/* --=== التعديل هنا ===-- */
/* زيادة الهامش الأيسر للعنصر الثاني لإبعاده عن الشعار */
.header-components-home .main-menu li:nth-child(1) {
  order: 1;
  margin-right: 150px;
  margin-left: auto; /* يمكنك زيادة أو تقليل هذه القيمة حسب الحاجة */
}

.header-components-home .main-menu li:nth-child(2) {
  order: 1;
  margin-right: auto;
  margin-left: -200px; /* يمكنك زيادة أو تقليل هذه القيمة حسب الحاجة */
}

/* --=== التعديل هنا ===-- */
/* زيادة الهامش الأيمن للعنصر الثالث لإبعاده عن الشعار */
.header-components-home .main-menu li:nth-child(3) {
  order: 3;
  margin-left: auto;
  margin-right: 500px; /* يمكنك زيادة أو تقليل هذه القيمة حسب الحاجة */
}

.header-components-home .main-menu li:nth-child(4) {
  order: 3;
  margin-left: auto;
}

/* وضع الشعار في المنتصف */
.header-components-home .navbar-brand {
  order: 2;
  position: absolute !important;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

/* تنسيق الروابط */
.header-components-home .main-menu a {
  color: #fff !important;
  font-weight: 500;
  text-decoration: none !important;
  transition: opacity 0.3s ease;
}

.header-components-home .main-menu a:hover {
  opacity: 0.7;
}

/* الخلفية باللون الأحمر */
.header-components-all.header-bg {
  background-color: #e22b2b !important;
}

/* للأجهزة الصغيرة */
@media (max-width: 768px) {
  .header-components-home .main-menu {
    flex-direction: column !important;
    gap: 15px !important;
  }

  .header-components-home .navbar-brand {
    position: relative !important;
    left: auto !important;
    transform: none !important;
    margin-bottom: 10px;
  }
}