.breadcrumb {
  margin-left: 0;  /* تزيل أي مسافة على اليسار */
  padding-left: 0; /* كذلك تزيل أي padding من اليسار */
  /* تأكد أن ما كايناش خصائص أخرى كتدير المسافة */
  margin-left: 3px;
  list-style: none;
  margin-top: 75px;
  display: flex;
  gap: 5px;
  font-size: 15px;
  font-family: Tahoma, sans-serif;
  position: relative;
}

/* الأسهم بين الأقسام */
.breadcrumb li + li::before {
  content: none;  /* نحيد السهم الافتراضي */
}

/* نضيف السهم بشكل مستقل */
.breadcrumb > li:not(:last-child) {
  position: relative;
  padding-right: 15px; /* مساحة للسهم */
}

.breadcrumb > li:not(:last-child)::after {
  content: ">";
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  color: #E1E1E1;
  pointer-events: none;
  user-select: none;
}

/* روابط */
.breadcrumb a {
  text-decoration: none;
  color: #007bff;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* القسم الأخير */
.breadcrumb li[aria-current] {
  color: #FFFFFF;
  font-weight: bold;
border-top-left-radius: 30px;
  border-top-right-radius: 0;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 0;
  max-width: 200px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;

  /* الخلفية المتحركة على العنصر نفسه */
  background-image: linear-gradient(to right, gold calc(100% - 44px), transparent calc(100% - 12px));
  background-repeat: no-repeat;
  background-size: 0% 100%; /* يبدأ من 0% العرض */
  animation: breadcrumbArrow 1.5s ease-out forwards;
  animation-fill-mode: forwards; /* يبقى في الحالة الأخيرة */
}

/* نخفي شريط السكرول */
.breadcrumb li[aria-current]::-webkit-scrollbar {
  display: none;
}

/* حركة الشريط على العنصر الثالث */
@keyframes breadcrumbArrow {
  0% {
    background-size: 0% 100%;
  }
  100% {
    background-size: 110% 100%;
  }
}
