/**
 * RTL Styles for Arabic version
 */

/* Basic RTL Rules */
body {
  direction: rtl;
  text-align: right;
}

/* Navigation RTL Adjustments */
.wsmenu-list {
  float: left;
}

.wsmenu-list li {
  text-align: right;
}

.wsmenu-list > li > ul.sub-menu {
  right: 0;
  left: auto;
}

.wsmenu-submenu li a:before {
  margin-right: 0;
  margin-left: 8px;
  float: right;
}

/* Flip text alignment */
.text-right {
  text-align: left !important;
}

.text-left {
  text-align: right !important;
}

/* Adjust margin classes */
.ml-auto {
  margin-left: 0 !important;
  margin-right: auto !important;
}

.mr-auto {
  margin-right: 0 !important;
  margin-left: auto !important;
}

/* Padding adjustments */
.pl-15 {
  padding-left: 0 !important;
  padding-right: 15px !important;
}

.pr-15 {
  padding-right: 0 !important;
  padding-left: 15px !important;
}

/* Lists and icons */
ul.features li:before,
ul li:before {
  margin-right: 0;
  margin-left: 8px;
  float: right;
}

.icon-title-container .fbox-ico {
  float: right;
  margin-right: 0;
  margin-left: 15px;
}

/* Fix breadcrumbs for RTL */
.breadcrumb-item {
  float: right;
}

.breadcrumb-item + .breadcrumb-item::before {
  float: right;
  padding-right: 0;
  padding-left: 0.5rem;
}

.breadcrumb-item + .breadcrumb-item {
  padding-left: 0;
  padding-right: 0.5rem;
}

/* Form elements */
input, select, textarea {
  text-align: right;
}

/* Footer adjustments */
.bottom-footer-list {
  float: left;
}

.bottom-footer-list li {
  margin-right: 16px;
  margin-left: 0;
}

.bottom-footer-list li:first-child {
  margin-right: 0;
}

/* Icons in text */
.p-md span i, .p-lg span i {
  margin-right: 0;
  margin-left: 5px;
}

/* Tables */
th, td {
  text-align: right;
}

/* Fix font-awesome icons direction */
.fa, .fas, .far, .fab {
  margin-right: 0;
  margin-left: 5px;
}

/* Fix arrow directions */
.wsarrow {
  float: left;
  transform: rotate(180deg);
}

/* Fix ordering for flex elements */
@media (min-width: 768px) {
  .order-md-1 {
    order: 2 !important;
  }
  
  .order-md-2 {
    order: 1 !important;
  }
}

/* Fix carousel/slider directions */
.owl-carousel {
  direction: ltr;
}

.owl-carousel .owl-item {
  direction: rtl;
}

/* Pricing tables */
.pricing-table ul.features li {
  text-align: right;
}

/* CTA buttons */
.btn-cta-whatsapp i {
  margin-right: 0;
  margin-left: 8px;
}

/* Guarantee section */
.guarantee-title i {
  margin-left: 0;
  margin-right: 10px;
}

.guarantee-text p i {
  margin-right: 0;
  margin-left: 5px;
}

/* Fix dropdown menus */
.dropdown-menu {
  right: 0;
  left: auto;
  text-align: right;
}

/* Fix hero section on mobile */
@media (max-width: 767px) {
  .order-1 {
    order: 2 !important;
  }
  
  .order-2 {
    order: 1 !important;
  }
}

/* Maintain center alignment */
.text-center {
  text-align: center !important;
}

.section-title {
  text-align: center !important;
}

.section-title * {
  text-align: center !important;
}

/* Ensure offset classes work properly in RTL */
.offset-lg-1 {
  margin-right: 8.333333% !important;
  margin-left: 0 !important;
}

/* Fix other alignment issues that might affect centering */
.row.justify-content-center {
  justify-content: center !important;
}

.col-lg-10.offset-lg-1, 
.col-md-12.text-center,
.col-lg-10 {
  text-align: center !important;
}

/* Enhanced Table Styling */
#add-ons .table {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

#add-ons .table thead {
  background-color: #394889;
  color: white;
}

#add-ons .table th {
  font-weight: 600;
  text-align: center;
  padding: 16px 20px;
  border: none;
  font-size: 16px;
}

#add-ons .table td {
  padding: 16px 20px;
  border-top: 1px solid #eaeaea;
  vertical-align: middle;
  text-align: right;
}

#add-ons .table td:last-child {
  text-align: center;
  font-weight: 600;
  color: #394889;
}

#add-ons .table tr:nth-child(odd) {
  background-color: #f9f9f9;
}

#add-ons .table tr:hover {
  background-color: #f0f7fd;
}

#add-ons .table h5 {
  margin-bottom: 0;
  font-weight: 600;
}

/* Fix spacing and alignment for RTL in table */
#add-ons .table-responsive {
  direction: ltr; /* Keep wrapper LTR to prevent Bootstrap conflicts */
}

#add-ons .table {
  direction: rtl; /* Apply RTL to table only */
}

/* Ensure table headers are always visible */
#add-ons .table thead th {
  background-color: #394889 !important;
  color: white !important;
  font-weight: 600 !important;
  text-align: center !important;
  padding: 16px 20px !important;
  border: none !important;
  font-size: 16px !important;
  display: table-cell !important;
  visibility: visible !important;
}

#add-ons .col-lg-10.offset-lg-1 {
  float: none;
  margin: 0 auto;
}

/* Custom Table Styling */
.custom-table-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.custom-table {
  margin-bottom: 0;
}

.custom-table .thead-dark th {
  background-color: #394889;
  color: white;
  border: none;
  text-align: center;
  padding: 18px 20px;
  font-size: 17px;
  font-weight: 600;
}

.custom-table .service-col {
  width: 25%;
  text-align: center;
}

.custom-table .desc-col {
  width: 50%;
}

.custom-table .price-col {
  width: 25%;
  text-align: center;
  color: #394889;
  font-weight: 600;
}

.custom-table tbody tr {
  transition: all 0.3s ease;
}

.custom-table tbody tr:nth-child(odd) {
  background-color: rgba(57, 72, 137, 0.03);
}

.custom-table tbody tr:hover {
  background-color: rgba(57, 72, 137, 0.08);
  transform: translateY(-2px);
}

.custom-table td {
  padding: 20px;
  border-top: 1px solid #eaeaea;
  vertical-align: middle;
}

.custom-table .service-col h5 {
  margin: 0;
  color: #394889;
  font-weight: 600;
}

.language-btn-rtl {
  margin-right: auto !important;
  margin-left: 0 !important;
  float: left;
  position: absolute !important;
  right: 15px !important;
}

header .wsmainwp {
  position: relative;
} 