/* =========================================================
   rtl.css — Right-to-Left overrides for the BOT Solutions site
   Loaded on every page; every rule is scoped under html[dir="rtl"]
   so it has zero effect while in English/LTR.
   ========================================================= */

/* Arabic font */
html[dir="rtl"] body,
html[dir="rtl"] * {
  font-family: "Tajawal", "Cairo", "DM Sans", sans-serif;
}

html[dir="rtl"] {
  direction: rtl;
}

html[dir="rtl"] body {
  text-align: right;
  line-height: 1.9;
}

/* Arabic reads comfortably with more generous line-height and
   no letter-spacing (Arabic script must not be spaced out). */
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6 {
  line-height: 1.4;
}

html[dir="rtl"] p {
  line-height: 1.9;
}

html[dir="rtl"] a,
html[dir="rtl"] p,
html[dir="rtl"] li {
  overflow-wrap: break-word;
}

/* ---------- Header ---------- */
html[dir="rtl"] header,
html[dir="rtl"] .righthead {
  direction: rtl;
}

html[dir="rtl"] .dropdown-menu {
  text-align: right;
}

html[dir="rtl"] .others-btn .caret {
  transform: scaleX(-1);
}

html[dir="rtl"] .lasthead {
  margin-left: 0;
  margin-right: 0;
}

/* ---------- Language toggle button ---------- */
.lang-toggle-btn {
  background: transparent;
  border: 1px solid #2387F7;
  color: #2387F7;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 200ms ease;
}
.lang-toggle-btn:hover {
  background: #2387F7;
  color: #fff;
}

/* ---------- Floating language toggle button (like WhatsApp) ---------- */
.lang-float-btn {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 9998;
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2387F7;
  color: #fff;
  border: none;
  border-radius: 50%;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(35, 135, 247, 0.4);
  transition: all 0.3s ease;
  white-space: nowrap;
  text-align: center;
}
.lang-float-btn:hover {
  background: #1a6dc3;
  color: #fff;
  transform: scale(1.08);
}
html[dir="rtl"] .lang-float-btn {
  left: auto;
  right: 25px;
}

/* ---------- Mobile sidebar ---------- */
html[dir="rtl"] .mobile-sidebar-menu {
  left: auto;
  right: -300px;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

html[dir="rtl"] .mobile-sidebar-menu.active {
  left: auto;
  right: 0;
}

html[dir="rtl"] .sidebar-nav a:hover {
  transform: translateX(-5px);
}

html[dir="rtl"] .sidebar-nav ul li a i {
  margin-right: 0;
  margin-left: 12px;
}

/* ---------- Generic text alignment ---------- */
html[dir="rtl"] [style*="text-align:left"] {
  text-align: right !important;
}
html[dir="rtl"] .text-left {
  text-align: right !important;
}

/* ---------- Generic footer ---------- */
html[dir="rtl"] footer,
html[dir="rtl"] .cyber-footer-grid,
html[dir="rtl"] .cyber-footer-bottom {
  direction: rtl;
}

html[dir="rtl"] .cyber-card h4::before {
  left: auto;
  right: 0;
}

html[dir="rtl"] .cyber-card h4 {
  padding-left: 0;
  padding-right: 13px;
}

html[dir="rtl"] .cyber-legal {
  justify-content: flex-start;
}

html[dir="rtl"] .address {
  padding-left: 0;
  padding-right: 20px;
}
html[dir="rtl"] .address p {
  padding-left: 0;
  padding-right: 10px;
}

/* ---------- Floating WhatsApp ---------- */
html[dir="rtl"] .floating-whatsapp {
  right: auto;
  left: 25px;
}

/* ---------- Form inputs ---------- */
html[dir="rtl"] input,
html[dir="rtl"] textarea {
  text-align: right;
}
