/**
 * Arabic home — dedicated layout (categories right, slider left, caption right).
 */

/* ===== Header categories row ===== */
@media (min-width: 992px) {
  body.lang-ar .ar-homemenu > .container > .row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    direction: ltr;
  }

  body.lang-ar .ar-homemenu #top-links {
    order: 1;
    float: none !important;
    width: 11% !important;
  }

  body.lang-ar .ar-homemenu .manun {
    order: 2;
    float: none !important;
    width: 70% !important;
    text-align: right;
  }

  body.lang-ar .ar-homemenu .head-menu {
    order: 3;
    float: none !important;
    width: 19% !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
  }
}

body.lang-ar .ar-homemenu .title-menu,
body.lang-ar .ar-homemenu .cate,
body.lang-ar .ar-homemenu #menu .navbar-nav > li > a {
  text-align: right;
}

body.lang-ar .ar-homemenu #menu .thumb_img {
  float: right !important;
  margin-left: 10px;
  margin-right: 0;
}

body.lang-ar .ar-homemenu #menu .enangle {
  float: left !important;
}

body.lang-ar .ar-homemenu #menu .dropdown-menu {
  left: auto !important;
  right: 0 !important;
  text-align: right;
}

@media (max-width: 991px) {
  body.lang-ar .ar-homemenu .head-menu {
    left: auto !important;
    right: 0 !important;
  }
}

/* ===== Hero: slider 81% left, spacer 19% right (matches categories) ===== */
@media (min-width: 992px) {
  body.lang-ar .ar-hero {
    display: flex !important;
    flex-wrap: nowrap !important;
    direction: ltr !important;
  }

  body.lang-ar .ar-hero-slider {
    order: 1;
    float: none !important;
    width: 81% !important;
  }

  body.lang-ar .ar-hero-spacer {
    order: 2;
    float: none !important;
    width: 19% !important;
  }
}

@media (min-width: 1200px) and (max-width: 1409px) {
  body.lang-ar .ar-homemenu .head-menu,
  body.lang-ar .ar-hero-spacer {
    width: 22% !important;
  }

  body.lang-ar .ar-homemenu .manun {
    width: 67% !important;
  }

  body.lang-ar .ar-hero-slider {
    width: 78% !important;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  body.lang-ar .ar-homemenu .head-menu,
  body.lang-ar .ar-hero-spacer {
    width: 24% !important;
  }

  body.lang-ar .ar-homemenu .manun {
    width: 65% !important;
  }

  body.lang-ar .ar-hero-slider {
    width: 76% !important;
  }
}

@media (max-width: 991px) {
  body.lang-ar .ar-hero-spacer {
    display: none !important;
  }

  body.lang-ar .ar-hero-slider {
    width: 100% !important;
  }
}

/* ===== Slide caption (built for Arabic, right side) ===== */
body.lang-ar .ar-slide {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

body.lang-ar .ar-slide-img {
  display: block;
  width: 100%;
  height: auto;
  transform: scaleX(-1);
}

body.lang-ar .ar-slide-caption {
  position: absolute;
  top: 50%;
  right: 40px;
  left: auto;
  transform: translateY(-50%);
  width: 42%;
  max-width: 480px;
  text-align: right;
  direction: rtl;
  z-index: 3;
  font-family: "Cairo", "Tahoma", sans-serif;
}

body.lang-ar .ar-slide-caption h3 {
  font-size: 18px;
  color: #6c6c6c;
  margin: 0 0 8px;
}

body.lang-ar .ar-slide-caption h1 {
  font-size: 48px;
  font-weight: 700;
  color: #000;
  margin: 0 0 12px;
  line-height: 1.2;
}

body.lang-ar .ar-slide-caption p {
  font-size: 14px;
  color: #777;
  line-height: 1.7;
  margin: 0 0 22px;
}

body.lang-ar .ar-slide-caption .btn-primary {
  float: right;
  border-radius: 4px;
  padding: 12px 36px;
}

body.lang-ar .ar-slideshow .slick-dots {
  bottom: 15px;
}

body.lang-ar .ar-hero .wrloader {
  display: none !important;
}

@media (max-width: 1199px) {
  body.lang-ar .ar-slide-caption {
    right: 24px;
    width: 46%;
  }

  body.lang-ar .ar-slide-caption h1 {
    font-size: 36px;
  }
}

@media (max-width: 767px) {
  body.lang-ar .ar-slide-caption {
    right: 16px;
    left: 16px;
    width: auto;
    max-width: none;
  }

  body.lang-ar .ar-slide-caption h1 {
    font-size: 26px;
  }

  body.lang-ar .ar-slide-caption p {
    display: none;
  }
}
