/* HAM Translate — تظبيطات الاتجاه للإنجليزي والروسي (LTR)
   بتعكس الكود المخصص اللي في Additional CSS (الكروت ومحتوى المقال) */

html[dir="ltr"] body {
  direction: ltr;
  text-align: left;
}

/* ---------- كروت المقالات (Post Grid) ---------- */
html[dir="ltr"] .ham-posts article,
html[dir="ltr"] .ham-posts .wpr-grid-item-inner,
html[dir="ltr"] .ham-posts .wpr-grid-item-below-content,
html[dir="ltr"] .ham-posts .wpr-grid-item-below-content * {
  direction: ltr !important;
  text-align: left !important;
}
html[dir="ltr"] .ham-posts .wpr-grid-filters {
  direction: ltr !important;
}
html[dir="ltr"] .ham-posts .wpr-grid-item-title,
html[dir="ltr"] .ham-posts .wpr-grid-item-title *,
html[dir="ltr"] .ham-posts .wpr-grid-item-excerpt,
html[dir="ltr"] .ham-posts .wpr-grid-item-excerpt * {
  text-align: left !important;
}

/* ---------- محتوى المقال ---------- */
html[dir="ltr"] .ham-post-content {
  direction: ltr !important;
  text-align: left !important;
}
html[dir="ltr"] .ham-post-content h2,
html[dir="ltr"] .ham-post-content h3,
html[dir="ltr"] .ham-post-content h4 {
  text-align: left !important;
}
html[dir="ltr"] .ham-post-content h2 {
  padding-right: 0 !important;
  border-right: 0 !important;
  padding-left: 16px !important;
  border-left: 4px solid #D4AF6A !important;
}
html[dir="ltr"] .ham-post-content ul,
html[dir="ltr"] .ham-post-content ol {
  padding-right: 0 !important;
  padding-left: 1.4em !important;
}
html[dir="ltr"] .ham-post-content blockquote {
  border-right: 0 !important;
  border-left: 4px solid #00101C !important;
}

/* ---------- التاريخ والكاتب في المقال ---------- */
html[dir="ltr"] .ham-meta li + li::before {
  margin-left: 0 !important;
  margin-right: 22px !important;
}

/* =========================================================
   تظبيطات تصميم الإنجليزي والروسي (من مراجعة الموقع)
   ========================================================= */

/* ---------- الأسهم: بتشاور يمين في الإنجليزي والروسي ---------- */
html[dir="ltr"] [class*="e-fas-arrow-left"],
html[dir="ltr"] [class*="e-fas-arrow-right"],
html[dir="ltr"] [class*="e-fas-arrow-circle-left"],
html[dir="ltr"] [class*="e-fas-arrow-circle-right"],
html[dir="ltr"] [class*="e-fas-chevron-left"],
html[dir="ltr"] [class*="e-fas-chevron-right"],
html[dir="ltr"] [class*="e-fas-angle-left"],
html[dir="ltr"] [class*="e-fas-angle-right"],
html[dir="ltr"] [class*="e-fas-long-arrow-alt-left"],
html[dir="ltr"] [class*="e-fas-long-arrow-alt-right"],
html[dir="ltr"] .fa-arrow-left, html[dir="ltr"] .fa-arrow-right,
html[dir="ltr"] .fa-arrow-circle-left, html[dir="ltr"] .fa-arrow-circle-right,
html[dir="ltr"] .fa-chevron-left, html[dir="ltr"] .fa-chevron-right,
html[dir="ltr"] .fa-angle-left, html[dir="ltr"] .fa-angle-right,
html[dir="ltr"] .ham-posts .wpr-grid-item-read-more i,
html[dir="ltr"] .ham-posts .wpr-grid-item-read-more svg {
  transform: scaleX(-1);
}

/* ---------- الأزرار: الكلام مايتكسرش على سطرين ---------- */
html[dir="ltr"] .elementor-button,
html[dir="ltr"] .wpr-button {
  width: auto !important;
  min-width: max-content;
}
/* الزراير اللي جوه Grid: تاخد عرضها الطبيعي وبينهم مسافة */
html[dir="ltr"] .e-grid:has(> .elementor-widget-button),
html[dir="ltr"] .e-grid:has(> .elementor-widget-wpr-button) {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  width: auto !important;
  max-width: 100% !important;
}
html[dir="ltr"] .e-grid > .elementor-widget-button,
html[dir="ltr"] .e-grid > .elementor-widget-wpr-button,
html[dir="ltr"] .elementor-widget-button.elementor-widget__width-initial,
html[dir="ltr"] .elementor-widget-wpr-button.elementor-widget__width-initial {
  width: auto !important;
  max-width: none !important;
}
html[dir="ltr"] .elementor-button .elementor-button-text,
html[dir="ltr"] .wpr-button .wpr-button-text {
  white-space: nowrap !important;
}

/* ---------- الشارات الصغيرة (خبرة 10 سنوات، الخطوة الأولى...) ---------- */
html[dir="ltr"] .elementor-element-5741928,
html[dir="ltr"] .elementor-absolute.elementor-widget-heading {
  width: max-content !important;
  max-width: 100% !important;
  align-self: flex-start;
}
html[dir="ltr"] .elementor-element-5741928 .elementor-heading-title,
html[dir="ltr"] .elementor-absolute.elementor-widget-heading .elementor-heading-title {
  white-space: nowrap !important;
  width: auto !important;
}

/* ---------- رقم التليفون في الفوتر: تحت كلمة WhatsApp ---------- */
html[dir="ltr"] .elementor-element-1f4d1ea,
html[dir="ltr"] .elementor-element-1f4d1ea .elementor-heading-title,
html[dir="ltr"] .elementor-element-1f4d1ea a {
  text-align: left !important;
}

/* ---------- كروت المقالات: التصنيف من الشمال ---------- */
html[dir="ltr"] .ham-posts [class*="wpr-grid-item-align-"],
html[dir="ltr"] .ham-posts .wpr-grid-item-category,
html[dir="ltr"] .ham-posts .wpr-grid-item-category * {
  text-align: left !important;
  justify-content: flex-start !important;
}

/* ---------- صفحة المقال: العنوان والتاريخ من الشمال ---------- */
html[dir="ltr"] [class*="elementor-widget-wpr-post-"],
html[dir="ltr"] [class*="elementor-widget-wpr-post-"] .elementor-widget-container,
html[dir="ltr"] [class*="elementor-widget-wpr-post-"] h1,
html[dir="ltr"] [class*="elementor-widget-wpr-post-"] ul {
  text-align: left !important;
  justify-content: flex-start !important;
}
html[dir="ltr"] .ham-meta li + li::before {
  margin-left: 0 !important;
  margin-right: 22px !important;
}

/* ---------- الفورم (استشارة أعمال / رسالة للإدارة) ---------- */
html[dir="ltr"] .ham-form,
html[dir="ltr"] .ham-form label {
  text-align: left !important;
}
html[dir="ltr"] .ham-form input:not([type=submit]),
html[dir="ltr"] .ham-form select,
html[dir="ltr"] .ham-form textarea {
  text-align: left !important;
}
html[dir="ltr"] body .ham-form select {
  background-position: right 22px center !important;
  padding-left: 22px !important;
  padding-right: 45px !important;
}
html[dir="ltr"] .ham-form .ham-count {
  margin: -50px 0 40px 22px !important;
  text-align: right !important;
  padding-left: 0 !important;
  padding-right: 22px !important;
}
html[dir="ltr"] .ham-form input[type=submit] {
  text-align: left !important;
  background-position: right 22px center !important;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><circle cx="14" cy="14" r="14" fill="white"/><path d="M11 14h7M15 10l4 4-4 4" stroke="%230B1B3A" stroke-width="2" fill="none"/></svg>') !important;
}

/* ---------- العناوين الكبيرة: مسافة السطور كانت متظبطة على الخط العربي ---------- */
html[dir="ltr"] h1.elementor-heading-title,
html[dir="ltr"] h2.elementor-heading-title,
html[dir="ltr"] h3.elementor-heading-title {
  line-height: 1.3 !important;
}
