/* Site-wide fixes on top of the Elementor styles */

/* Keyboard users can see where they are (Elementor removed all focus outlines) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid #cb0001 !important;
  outline-offset: 2px !important;
}

/* Slider arrows poked past the edge and caused sideways scrolling */
body { overflow-x: clip; }

/* Page title on listing pages (News, Articles, Projects...) above the breadcrumb */
h1.bt-page-h1 {
  margin: 0 0 12px !important; font-size: 44px !important; line-height: 1.15 !important; font-weight: 700 !important;
  color: #fff !important; text-transform: uppercase; letter-spacing: .5px; text-shadow: 0 2px 8px rgba(0,0,0,.35);
}
html[dir="rtl"] h1.bt-page-h1 { text-transform: none; letter-spacing: 0; }

@media (max-width: 767px) {
  h1.bt-page-h1 { font-size: 30px !important; }

  /* Smaller call/WhatsApp buttons so they cover less of the text */
  .bt-float { bottom: 12px !important; right: 10px !important; gap: 8px !important; }
  html[dir="rtl"] .bt-float { right: auto !important; left: 10px !important; }
  .bt-float a { width: 44px !important; height: 44px !important; box-shadow: 0 3px 10px rgba(0,0,0,.25) !important; }
  .bt-float svg { width: 24px !important; height: 24px !important; }

  /* Homepage "Years of experience" badges sat on top of the heading: keep them in the flow */
  .elementor-element-4702e850.elementor-absolute,
  .elementor-element-21c43c4c.elementor-absolute {
    position: relative !important; inset: auto !important;
    top: auto !important; right: auto !important; bottom: auto !important; left: auto !important;
    transform: none !important; margin: 16px 0 0 auto !important;
  }
  html[dir="rtl"] .elementor-element-4702e850.elementor-absolute,
  html[dir="rtl"] .elementor-element-21c43c4c.elementor-absolute { margin: 16px auto 0 0 !important; }
}

/* Arabic: arrows in buttons point the reading direction */
[dir="rtl"] .elementor-button-icon svg,
[dir="rtl"] .elementor-button-icon i,
[dir="rtl"] .ekit-btn-wraper .ekit_icon_button i,
[dir="rtl"] .elementor-cta__button i { transform: scaleX(-1); }
