/* RTL Styles */

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

html[dir="rtl"] .headertop__left {
  padding-left: 0;
  padding-right: 270px;
}

html[dir="rtl"] .headerbg .navbar-brand {
  margin-right: auto !important;
  margin-left: 0px !important;
}

html[dir="rtl"] .headerbg .navbar-brand img {
  transform: scaleX(-1);
}

html[dir="rtl"] .navbar-nav {
  padding-left: 0;
  padding-right: 15px;
}

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

html[dir="rtl"] ul {
  padding-right: 0;
}

html[dir="rtl"] .bg-primary,
html[dir="rtl"] .bg-colored.primary:before {
  background-color: #b9d432 !important;
}

@media (min-width: 1200px) {
  html[dir="rtl"] .navbar-expand-xl {
    flex-direction: row-reverse;
  }
}

/* RTL Styles */

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

html[dir="rtl"] .headertop__left {
    padding-left: 0;
    padding-right: 270px;
}

html[dir="rtl"] .headerbg .navbar-brand {
    margin-right: auto !important;
    margin-left: 0px !important;
}

html[dir="rtl"] .headerbg .navbar-brand img {
    transform: scaleX(-1);
}

html[dir="rtl"] .navbar-nav {
    padding-left: 0;
    padding-right: 15px;
}

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

html[dir="rtl"] ul {
    padding-right: 0;
}

html[dir="rtl"] .bg-primary,
html[dir="rtl"] .bg-colored.primary:before {
    background-color: #b9d432 !important;
}

@media (min-width: 1200px) {
    html[dir="rtl"] .navbar-expand-xl {
        flex-direction: row-reverse;
    }
}

body {
    direction: rtl;
    text-align: right;
}

.container {
    margin-left: 0;
    margin-right: auto;
}

.navbar {
    float: right;
}

.navbar .menu {
    float: right;
}

.navbar .menu li {
    float: right;
    margin-left: 0;
    margin-right: 15px;
}

.button {
    float: right;
    margin-left: 0;
    margin-right: 10px;
}

/* تعديل الهوامش والتوسعات */
.content {
    padding-left: 0;
    padding-right: 20px;
}

.footer {
    text-align: right;
}

[dir="rtl"] .text-start {
    text-align: right !important;
}

/* 🔧 ضبط اتجاه حقل البحث وزر البحث في RTL */
html[dir="rtl"] .search form>div {
    flex-direction: row-reverse;
}

html[dir="rtl"] .search input.form-control {
    text-align: right;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-top-left-radius: 0.375rem !important;
    border-bottom-left-radius: 0.375rem !important;
}

html[dir="rtl"] .search button {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 0.375rem !important;
    border-bottom-right-radius: 0.375rem !important;
}