.customer-journey {
  width: 100%;
  min-height: 100vh;
  color: #fff;
  overflow: hidden; /* لمنع السكرول */
  display: flex;
  align-items: center;
}

/* توسيط المحتوى */
.journey-inner {
  width: 100%;
  padding: 40px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ===== Header ===== */
.journey-header {
  text-align: center;
  margin-bottom: 40px;
}

.journey-header h2 {
  font-size: clamp(32px, 8vw, 60px); /* حجم خط مرن */
  font-weight: 600;
  font-family: "Teko", sans-serif;
  letter-spacing: 3.6px;
  margin-bottom: 10px;
}

.journey-header p {
  font-size: 18px;
  font-family: "Teko", sans-serif;
  line-height: 1.2;
  letter-spacing: 1.2px;
  opacity: 0.8;
}

/* ===== Grid ===== */
.journey-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
}

/* ===== Card Default ===== */
.journey-card {
  position: relative;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 25px 20px;
  text-align: center;
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* الخطوط في وضع الديسكتوب */
.journey-card:nth-child(1)::after,
.journey-card:nth-child(2)::after,
.journey-card:nth-child(4)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -30px;
  transform: translateY(-50%);
  width: 30px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
}

/* RTL Support for Arabic */
html[lang="ar"] .customer-journey {
  direction: rtl;
}

html[lang="ar"] .journey-header {
  text-align: center;
}

html[lang="ar"] .journey-grid {
  direction: rtl;
}

html[lang="ar"] .journey-card {
  text-align: center;
}

html[lang="ar"] .journey-card:nth-child(1)::after,
html[lang="ar"] .journey-card:nth-child(2)::after,
html[lang="ar"] .journey-card:nth-child(4)::after {
  right: auto;
  left: -30px;
}

/* ===== Step Circle ===== */
.step {
  width: 45px;
  height: 45px;
  margin-bottom: 15px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-family: "Teko", sans-serif;
}

.journey-card h3 {
  font-size: 22px;
  font-family: "Teko", sans-serif;
  margin-bottom: 10px;
  line-height: 1.2;
}

.journey-card p {
  font-size: 14px;
  line-height: 1.4;
  font-family: "Teko", sans-serif;
  opacity: 0.9;
}

/* ===============================
   Responsive (وضع الهاتف)
================================ */
@media (max-width: 768px) {
  .journey-inner {
    padding: 20px 15px;
  }

  .journey-header {
    margin-bottom: 25px;
  }

  .journey-grid {
    grid-template-columns: repeat(2, 1fr); /* بطاقتين بجانب بعض */
    gap: 12px;
    justify-items: center;
  }

  /* البطاقات الأربع الأولى حسب مقاسات فيجما */
  .journey-card:nth-child(-n+4) {
    width: 100%;
    max-width: 186px; /* كما في فيجما */
    padding: 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.30);
    box-sizing: border-box;
  }

  /* البطاقة الخامسة تأخذ العرض الكامل */
  .journey-card:nth-child(5) {
    grid-column: span 2;
    width: 100%;
    padding: 20px;
    align-self: stretch;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.30);
  }

  /* تصغير النصوص لتناسب الشاشة الصغيرة جداً وتجنب السكرول */
  .journey-card h3 {
    font-size: 18px;
    line-height: 1.2;
  }

  .journey-card p {
    font-size: 12px;
    line-height: 1.3;
  }

  .step {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  /* إخفاء الخطوط في الموبايل */
  .journey-card::after {
    display: none !important;
  }
}

/* شاشات صغيرة جداً لتحسين المسافات */
@media (max-height: 700px) and (max-width: 768px) {
    .journey-header h2 { font-size: 24px; }
    .journey-header { margin-bottom: 15px; }
    .journey-card { padding: 10px 15px; }
    .step { margin-bottom: 5px; }
}