/* ===============================
   تنسيق شريط الخطوات المتسلسلة process-steps
================================ */
.process-navbar {
  background: #a3ccf4;
  padding: 0.75rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.process-steps {
  display: flex;
  justify-content: center;
  align-items: stretch; /* يجعل كل العناصر بنفس الارتفاع */
  gap: 0;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* محاذاة كل المحتوى في المنتصف */
  text-align: center;
  min-width: 120px;
  position: relative;
  padding: 0.5rem 0;
}

.step-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem; /* مسافة ثابتة بين الدائرة والنص */
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 3px solid rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  color: #667eea;
  transition: all 0.3s ease;
}

.step-label {
  font-size: 0.85rem;
  color: white;
  font-weight: 500;
  line-height: 1.3;
  max-width: 100px;
}

.step-connector {
  width: 40px;
  height: 2px;
  background: rgba(255,255,255,0.5);
  margin: 0 1rem;
  align-self: center; /* محاذاة الخط في منتصف ارتفاع الدوائر */
  position: relative;
  top: -12px; /* تعديل بسيط للمحاذاة */
}

.step-item.active .step-circle {
  background: #ffd700;
  border-color: #ffd700;
  color: #333;
  transform: scale(1.1);
}

.step-item.active .step-label {
  color: #07364d;
  font-weight: 600;
}

.step-item a {
  text-decoration: none;
  transition: all 0.3s ease;
}

.step-item:hover .step-circle {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.step-item:hover .step-label {
  transform: translateY(-2px);
}

.step-connector::after {
  display: none;
}

/* ===============================
   تصميم متجاوب
================================ */

/* التابلت */
@media (max-width: 768px) {
  .process-steps {
    gap: 1rem;
    flex-wrap: wrap; /* يسمح بتوزيع الخطوات على سطرين إذا ضاقت المساحة */
    justify-content: center;
  }

  .step-item {
    min-width: 100px;
    margin-bottom: 0.5rem;
  }

  .step-connector {
    display: none;
  }

  .step-circle {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .step-label {
    font-size: 0.7rem;
  }
}

/* الهواتف الصغيرة جدًا */
@media (max-width: 576px) {
  .process-steps {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start; /* محاذاة كل العناصر لليسار */
  }

  .step-item {
    flex-direction: row;
    min-width: auto;
    gap: 1rem;
    width: 100%;
    justify-content: flex-start;
    align-items: center; /* يضمن أن الدائرة والنص على نفس المستوى */
    padding: 0.5rem 1rem;
  }

  .step-circle {
    flex-shrink: 0; /* يمنع تصغير الدائرة */
  }

  .step-label {
    margin-top: 0;
    font-size: 0.8rem;
    line-height: 1.2;
  }
}

/* اللابتوب */
@media (min-width: 992px) and (max-width: 1199px) {
  .step-item {
    min-width: 140px;
  }
  .step-label {
    font-size: 0.9rem;
  }
}

/* الشاشات الكبيرة */
@media (min-width: 1200px) {
  .step-item {
    min-width: 160px;
  }
  .step-label {
    font-size: 1rem;
  }
}

/* الشاشات الضخمة (4K أو 55 إنش) */
@media (min-width: 1920px) {
  .step-item {
    min-width: 180px;
  }
  .step-circle {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }
  .step-label {
    font-size: 1.1rem;
    max-width: 140px;
  }
}

/* تأثيرات إضافية */
.main-navbar {
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
