
/* COLORS */
:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --accent: #38bdf8;
  --dark: #0f172a;
  --background: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-secondary: #64748b;
  --border: #e5e7eb;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--text-main);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ================= NAVBAR (STICKY + TRANSPARENT) ================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

/* الحالة الافتراضية (شفاف) */
.navbar.transparent {
  background: rgba(36, 40, 49, 0.15);
  backdrop-filter: blur(8px);
}

/* لما ننزل بالسكرول */
.navbar.scrolled {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
}


.nav-container {
  width: 100%;
  margin: 0;
  padding: 20px 8%;        /* نفس الـ 8% المستخدمة في الـ hero */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  width: 140px;
}

.nav-links a {
  margin-left: 28px;
  text-decoration: none;
  color: #e5e7eb;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}
/* ================= BURGER MENU ================= */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

.burger span {
  width: 26px;
  height: 3px;
  background-color: #e5e7eb;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* لما يكون Active (القائمة مفتوحة) */
.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}
/* ================= LEFT SLIDE MENU (MOBILE) ================= */
@media (max-width: 1200px) {

  /* إظهار زر البرجر */
  .burger {
    display: flex;
    z-index: 1002;
  }

  /* القائمة */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;

    height: 100vh;
    width: 280px; /* عرض القائمة */

    background: rgba(15, 23, 42, 0.97);
    background-color: #0f172a;
    backdrop-filter: blur(14px);

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;

    padding: 100px 24px 40px;

    /* سكرول داخلي */
    overflow-y: auto;

    /* إخفاء خارج الشاشة */
    transform: translateX(100%);

    z-index: 1001;
  }

  /* عند الفتح */
  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a {
    margin-left: 0;
    font-size: 1rem;
  }
}


/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 8%;
  overflow: hidden;
}

/* صورة الخلفية */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.85),
    rgba(15, 23, 42, 0.6)
  );
  z-index: 1;
}

/* المحتوى */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding-top: 120px;
}

.hero-callout {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 750;
  color: #f9fafb;
  line-height: 1;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 0.9rem;
  color: #d1d5db;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-btn {
  display: inline-block;
  padding: 14px 34px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}


/* GENERIC SECTION TITLES */
.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 50px;
  font-size: 0.98rem;
}

/* ANIMATIONS */
.fade-up {
  opacity: 0;
  transform: translateY(25px);
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* WHY SECTION */
.why {
  padding: 100px 8%;
  background: #f8fafc;
}

.why-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
}

.why-title {
  font-size: 1.8rem;
  font-weight: 750;
  margin-bottom: 32px;
  color: #0f172a;
}

.why-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: #ffffff;
  border-radius: 12px;
  margin-bottom: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  font-size: 0.95rem;
  color: #334155;
  border-left: 4px solid #ed2d10;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}

.why-card span {
  font-size: 1.3rem;
}

.why-column.highlight {
  background: rgba(255, 255, 255, 0.05);
  padding: 32px;
  border-radius: 18px;
}

.why-card.good {
  border-left-color: #25eb67;
}

/* delays */
.why-card:nth-child(2) { animation-delay: 0.1s; }
.why-card:nth-child(3) { animation-delay: 0.2s; }
.why-card:nth-child(4) { animation-delay: 0.3s; }
.why-card:nth-child(5) { animation-delay: 0.4s; }
.why-card:nth-child(6) { animation-delay: 0.5s; }

/* PATH SECTION */
.path {
  padding: 100px 8%;
  background: #ffffff;
}

.path-container {
  max-width: 1000px;
  margin: 0 auto;
}

.path-map {
  margin-top: 70px;
  position: relative;
}

.path-map::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 3px;
  height: 100%;
  background: #e5e7eb;
  transform: translateX(-50%);
}

.path-step {
  display: flex;
  width: 50%;
  margin-bottom: 60px;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}

.path-step.left {
  justify-content: flex-end;
  padding-right: 40px;
  text-align: right;
}

.path-step.right {
  margin-left: 50%;
  padding-left: 40px;
  text-align: left;
}

.path-dot {
  position: absolute;
  top: 0;
  right: -26px;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 2;
}

.path-step.right .path-dot {
  left: -26px;
  right: auto;
}

.path-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1b1b1b;
  margin-bottom: 6px;
}

.path-content p {
  font-size: 0.95rem;
  color: #5a5b5b;
  line-height: 1.6;
}

.path-step:nth-child(1) { animation-delay: 0.1s; }
.path-step:nth-child(2) { animation-delay: 0.25s; }
.path-step:nth-child(3) { animation-delay: 0.4s; }
.path-step:nth-child(4) { animation-delay: 0.55s; }
.path-step:nth-child(5) { animation-delay: 0.7s; }


/* TRACKS SECTION */
.tracks {
  padding: 80px 5%;
  background: #ffffff; /* خلفية فاتحة مريحة */
}

.tracks-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center; /* توسيط العنوان */
}

.section-title {
  font-size: 2.3rem;
  font-weight: bold;
  color: #333;
}

.section-subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 50px;
}

.tracks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* توزيع الأعمدة بشكل متساوٍ */
  gap: 25px;
  justify-items: center;
  margin-top: 40px;
}

/* TRACK CARD */
.track-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 130px;
  color: #333;
  
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  height: 50px; /* ضبط ارتفاع الكرت */
  width: 50px;
  transition: all 0.3s ease; /* تأثيرات سريعة عند المرور */
}

/* ICON STYLE */
.track-card i {
  font-size: 2rem; /* زيادة حجم الأيقونة */
  color: #3498db; /* اللون الأساسي للأيقونة */
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

/* HEADER INSIDE CARD */
.track-card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: bold;
  white-space: normal; /* يسمح بالنزول لسطر جديد */
  word-wrap: break-word;
  color: #333;
  letter-spacing: 0.5px;
}

/* إذا كانت الصفحة باللغة العربية */
html[lang="ar"] .track-card h3 {
  white-space: normal; /* يسمح بالنزول لسطر جديد */
  word-wrap: break-word;
}
/* HOVER EFFECT */
.track-card:hover {
  transform: translateY(-8px); /* رفع الكرت عند التمرير */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12); /* تأثير الظل عند التمرير */
}

.track-card:hover i {
  color: #5c6bc0; /* تغيير لون الأيقونة عند التمرير */
}

/* ACTIVE EFFECT */
.track-card:active {
  transform: scale(0.98); /* تصغير الكرت عند النقر */
}

/*------ about us -----*/

.about {
  padding: 120px 6%;
  background: #f9fafb;
}

/* SECTION HEADER */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111827;
}

.section-header p {
  margin-top: 10px;
  font-size: 1.05rem;
  color: #6b7280;
}

/* CARD */
.about-card {
  max-width: 1200px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 28px;
  padding: 70px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.08);
}

/* TEXT */
.about-text h3 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: #0f172a;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 18px;
  max-width: 55ch;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 28px 0;
}

.about-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  font-size: 1rem;
  color: #374151;
}

.about-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #b2111c;
  font-size: 1.5rem;
  line-height: 1;
}

.about-highlight {
  font-weight: 600;
  color: #0f172a;
  margin-top: 10px;
}

/* MEDIA */
.about-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-media video {
  width: 100%;
  max-width: 560px;
  height: 400px;            /* مهم */
  object-fit: cover;
  border-radius: 22px;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.18),
    0 15px 30px rgba(0, 0, 0, 0.12);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .about-media video {
        max-width: 100%;      /* أكبر عرض ممكن */
    width: 90%;
    height: 270px;
  }
  .about-card {
    grid-template-columns: 1.5fr;
    padding: 40px 20px;
    text-align: center;
  }

  .about-text p {
    max-width: 100%;
  }

  .about-list li {
    text-align: left;
  }
}

/* FAQ (Accordion) */
.faq {
  padding: 80px 5%;
  background: #f8fafc;
}
/* عنوان FAQ */
#faq .section-title {
  font-size: 2.3rem;   /* حجم العنوان */
  font-weight: 700;    /* سماكة الخط */
  margin-bottom: 12px; /* مسافة تحت العنوان */
}

.accordion {
  margin-top: 40px;
}

.accordion-item {
  border-radius: 12px;
  margin-bottom: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  background: #ffffff;
}

.accordion-header {
  width: 100%;
  padding: 22px 24px;
  background: #f8fafc;
  border: none;
  outline: none;
  font-size: 1.2rem;
  font-weight: 600;
  color: #0f172a;
  display: flex;
  justify-content: space-between;
  align-items:center;
  cursor: pointer;
}

.accordion-header span {
  font-size: 1.5rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  background: #ffffff;
  transition: max-height 0.4s ease;
}

.accordion-content ul {
  padding: 20px 24px 26px;
  list-style: none;
}

.accordion-content li {
  padding: 10px 0;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.6;
}

.accordion-item.active .accordion-content {
  max-height: 300px;
}

.accordion-item.active .accordion-header span {
  transform: rotate(45deg);
  color: var(--primary);
}
/* Arabic FAQ answer align RIGHT */
html[dir="rtl"] .accordion-content,
html[dir="rtl"] .accordion-content li {
  text-align: right;
  direction: rtl;
}


/* FOOTER */
.footer {
  background: #1b1b1b;
  color: #e5e7eb;
  padding: 80px 8% 30px;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.footer-logo-img {
  width: 140px;
  margin-bottom: 18px;
}

.footer-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #9ca3af;
  margin-bottom: 8px;
}

.footer-mail {
  display: block;
  color: #3abeee;
  text-decoration: none;
  font-size: 0.95rem;
  margin-top: 8px;
}

.footer-mail:hover {
  text-decoration: underline;
}

.footer-website {
  display: block;
  margin-top: 12px;
  color: #9ca3af;
  font-size: 0.95rem;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 18px;
  color: #ffffff;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  font-size: 0.95rem;
  margin-bottom: 15px;
  color: #9ca3af;
}

.footer-bottom {
  margin-top: 40px;
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
}
.footer-col .footer-mail {
  margin-top: 10px;
}

.footer-col .footer-website {
  margin-top: 6px;
}

    @media (max-width: 768px) {
      .hero h1 {
        font-size: 34px;
      }
    }
    .footer-contact {
  margin-top: 18px;
}
 
/* Contact under Follow Us */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9ca3af;
  font-size: 0.95rem;
}

.contact-item i {
  color: #3abeee;
  font-size: 14px;
}

.contact-item a {
  color: #9ca3af;
  text-decoration: none;
}

.contact-item a:hover {
  color: #ffffff;
}
/* RESPONSIVE */
@media (max-width: 900px) {
  .why-container {
    grid-template-columns: 1fr;
  }

  .about {
    padding: 80px 5%;
  }

  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-text .section-title {
    text-align: center;
  }

  .about-text p {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 0 6%;
    text-align: left;
  }

  .hero-content {
    margin: 0 auto;
    padding-top: 140px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .path-map::before {
    left: 24px;
  }

  .path-step,
  .path-step.right {
    width: 100%;
    margin-left: 0;
    padding-left: 60px;
    padding-right: 0;
    text-align: left;
  }

  
  .path-step {
    display: block !important;
    text-align: left !important;
  }

  .path-dot {
    left: 0 !important;
    right: auto;
  }
}

@media (max-width: 600px) {
  .footer {
    padding-inline: 5%;
  }

  .contact {
    padding-inline: 5%;
  }
}


/*whatsapp */

.contact-whatsapp {
  background-color:rgba(15, 23, 42, 0.85);/* أزرق غامق مشابه لشريط التنقل */
  color: white;
  text-align: center;
  padding: 40px 20px;
  margin-top: 60px;
  border-radius: 0px;
}

.contact-whatsapp h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.contact-whatsapp p {
  font-size: 16px;
  margin-bottom: 20px;
  color: #cbd5e1; /* لون نص فاتح متناسق */
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #25D366; /* زر واتس الأخضر */
  color: white;
  padding: 12px 25px;
  font-weight: bold;
  font-size: 16px;
  text-decoration: none;
  border-radius: 50px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-button img {
  width: 24px;
  height: 24px;
}

/* social */
.about-social {
  margin-top: 32px;
  display: flex;
  gap: 14px;
}

.about-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e5e7eb; /* لون ثابت */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #374151;
  text-decoration: none;

  transition: 
     transform 0.15s ease,
    opacity 0.15s ease;

  -webkit-tap-highlight-color: transparent;
}
.about-social a:active {
  transform: scale(0.85);
  opacity: 0.7;
}
/* هوفر فقط للأجهزة اللي فيها ماوس */
@media (hover: hover) and (pointer: fine) {
  .about-social a:hover {
    color: #fff;
    transform: translateY(-2px);
  }

  .about-social a:nth-child(1):hover { background: #1877f2; } /* Facebook */
  .about-social a:nth-child(2):hover { background: #000000; } /* TikTok */
  .about-social a:nth-child(3):hover { background: #0a66c2; } /* LinkedIn */
  .about-social a:nth-child(4):hover { background: #e1306c; } /* Instagram */

@media (hover: none) {
  .about-social a:active {
    transform: scale(0.9);
    box-shadow: inset 0 0 0 2px rgba(0,0,0,0.05);
    opacity: 0.95;
  }
}

  /* Track Cards */
  .track-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
  }

  /* Hero Button */
  .hero-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
  }

  /* Footer / Contact Links */
  .contact-item a:hover {
    color: #ffffff;
  }

  /* WhatsApp Button */
  .whatsapp-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  }
}


/* ================== ACTIVE EFFECT FOR MOBILE ================== */
/* تأثير ضغط خفيف فقط بدون تعليق لون */
.track-card:active,
.hero-btn:active,
.whatsapp-button:active {
  transform: scale(0.96);
  opacity: 0.95;
}
/* زر اللغة */
#langSwitch {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #ffffff;
  font-size: 0.9rem;
  color: #1b1b1b;
  cursor: pointer;
  transition: 0.2s ease;
}

#langSwitch:hover {
  background: #f1f5f9;
}

/* Desktop: يظهر على الشريط */
@media(min-width: 1201px) {
  .nav-right {
    display: flex;
    align-items: center;
    margin-left: 20px;
  }

  .nav-links {
    display: flex;
    align-items: center;
  }
}

/* Mobile: يظهر داخل القائمة */
  @media (max-width: 768px) {
    #translateBtn {
      padding: 8px 12px;
      font-size: 14px;
      bottom: 15px;
      right: 15px;
    }

  #langSwitch {
    width: 100%;
    font-size: 1rem;
  }
}
/* ========== RTL MODE ========== */
html[dir="rtl"] {
  direction: rtl;
}


/* PATH (Roadmap) */
html[dir="rtl"] .path-step {
  flex-direction: row-reverse;
  text-align: right;
}

html[dir="rtl"] .path-step.left,
html[dir="rtl"] .path-step.right {
  justify-content: flex-end;
}

html[dir="rtl"] .nav-links {
  left: 100%;
  right: auto;
}

html[dir="rtl"] .nav-links.active {
  left: 0;
}
.hero-content {
  max-width: 650px;
  padding: 0 20px;
}

/* English */
html[dir="ltr"] .hero-content {
  text-align: left;
  margin-left: 0;
  margin-right: auto;
}

/* Arabic */
html[dir="rtl"] .hero-content {
  text-align: right;
  margin-right: 0;
  margin-left: auto;
}
/* ===== Fix About bullets for RTL ===== */

html[dir="rtl"] .about-list li {
  padding-left: 0 !important;
  padding-right: 26px !important;
  text-align: right !important;
}

html[dir="rtl"] .about-list li::before {
  left: auto !important;
  right: 0 !important;
}


/* PATH SECTION FIX FOR RTL - CORRECTED TO MATCH LTR LAYOUT */
html[dir="rtl"] .path-map::before {
  left: 50%;
  transform: translateX(-50%);
}

html[dir="rtl"] .path-step {
  flex-direction: row-reverse;
}

html[dir="rtl"] .path-step.left {
  justify-content: flex-start;
  padding-left: 40px;
  padding-right: 0;
  text-align: right;
}

html[dir="rtl"] .path-step.right {
  margin-right: 50%;
  margin-left: 0;
  padding-right: 40px;
  padding-left: 0;
  text-align: right;
}

html[dir="rtl"] .path-dot {
  right: auto;
  left: -26px;
}
html[dir="rtl"] .path-step.right .path-dot {
  left: auto;
  right: -26px;
}
/* ======================================== */
/* PATH SECTION RTL FIX FOR MOBILE / SMALL SCREENS + TEXT RTL + VERTICAL LINE RIGHT */
/* ======================================== */
@media (max-width: 768px) {
  html[dir="rtl"] .path-step {
    flex-direction: row;
    justify-content: flex-start;
    padding-left: 20px;
    padding-right: 20px;
    text-align: right;
    direction: rtl;
    position: relative;
    right: 20px; /* إبعاد العنصر عن الجهة اليمنى بمقدار 20px */
  }

  html[dir="rtl"] .path-step.left,
  html[dir="rtl"] .path-step.right {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 40px;
    padding-right: 40px;
  }

  /* النقطه على الجهة اليمنى */
  html[dir="rtl"] .path-dot {
    left: auto;
    right: -26px;
  }

  html[dir="rtl"] .path-step.right .path-dot {
    left: auto;
    right: -26px;
  }

  /* الخط العمودي الذي فوق أرقام الخطوة */
  html[dir="rtl"] .path-map::before {
    left: auto;
    right: 15px;
    transform: none;
  }

  /* النص داخل أي عنوان أو وصف في المسار */
  html[dir="rtl"] .path-step p,
  html[dir="rtl"] .path-step h3,
  html[dir="rtl"] .path-step span {
    text-align: right;
    direction: rtl;
  }
}
