/*
 * Name:        Boo Theme - RTL
 * Written by: 	Themerella - (http://themerella.com)
 * Version:     1.0.0
*/
/* Common and Vendors*/
/* RTL GENERAL */
html, body {
  direction: rtl;
}

/*------------------
HEADER
------------------*/
.navbar-brand {
  padding: 30px 0 30px 40px;
}

.main-nav {
  padding-right: 0;
}

.main-nav .children,
.nav-item-children {
  left: auto;
  right: 0;
  padding-right: 0;
  text-align: right;
  -webkit-transform-origin: top right;
      -ms-transform-origin: top right;
          transform-origin: top right;
}

.main-nav .children ul,
.nav-item-children ul {
  left: auto;
  right: calc(100% + 10px);
}

.megamenu .nav-item-children {
  right: auto;
}

.megamenu .nav-item-children ul {
  right: auto;
}

.megamenu .widget_latest_posts_entries figure {
  float: right;
  margin-right: 0;
  margin-left: 10px;
}

/****** Header Modules ******/
.header-module {
  padding-right: 30px;
}

.module-container .module-trigger {
  right: auto;
  left: 0;
  border-right: none;
  border-left: 1px solid rgba(0, 0, 0, 0.25);
}

.module-trigger span {
  margin-left: 0;
  margin-right: 4px;
}

.module-fullheight-side {
  padding: 0;
}

.module-fullheight-side.wide.right .module-inner {
  padding-right: 90px;
  padding-left: 130px;
}

.module-fullheight-side.wide.right .module-nav-trigger {
  border-left: none;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  right: auto;
  left: 0;
}

.module-fullheight-side.wide.left .module-inner {
  padding-left: 130px;
  padding-right: 90px;
}

.module-fullheight-side.wide.left .module-nav-trigger {
  border-left: none;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  left: 0;
  right: auto;
}

.module-search-form .search-form input {
  text-align: right;
}

.module-search-form.style-simple .module-container {
  right: auto;
  left: 20px;
}

.module-search-form.style-simple .module-container:before {
  right: auto;
  left: 20px;
}

.module-search-form.style-simple .search-form input {
  padding: 1.35714em 0 1.35714em 3.21429em;
}

.module-search-form.style-simple .search-form button {
  right: auto;
  left: 1.42857em;
}

.module-search-form.style-simple .search-form button .fa-long-arrow-right:before {
  content: "\f177";
}

.module-search-form.style-ghost .search-form input {
  text-align: right;
}

.module-search-form.style-ghost .search-form .placeholder {
  left: auto;
  right: 0;
}

.module-search-form.style-ghost .search-form .placeholder i {
  margin-left: 0;
  margin-right: -45px;
}

/* Widgets */
.widget_nav_menu mark {
  margin-left: 0;
  margin-right: 0.5em;
}

/* Misc */
.ui-selectmenu-button.ui-button {
  text-align: right;
}

/* Page 404 */
section.not-found .search-form:after,
.search-form-404:after,
.page-404 .search-form:after {
  right: auto;
  left: 0;
}

.page-404 .back-home .fa-angle-left:before {
  content: "\f105";
  margin-right: 0;
  margin-left: 6px;
}

/* MEDIA QUERIES */
@media (min-width: 992px) {
  .nav-item-children.to-right,
  .main-nav .children.to-right,
  .sub-menu.to-right {
    left: 0;
    right: auto;
  }
  .nav-item-children.to-right .nav-item-children,
  .nav-item-children.to-right .children,
  .nav-item-children.to-right .sub-menu,
  .main-nav .children.to-right .nav-item-children,
  .main-nav .children.to-right .children,
  .main-nav .children.to-right .sub-menu,
  .sub-menu.to-right .nav-item-children,
  .sub-menu.to-right .children,
  .sub-menu.to-right .sub-menu {
    left: calc(100% + 10px);
    right: auto;
  }
  .nav-item-children .nav-item-children.to-right,
  .nav-item-children .children.to-right,
  .nav-item-children .sub-menu.to-right,
  .main-nav .children .nav-item-children.to-right,
  .main-nav .children .children.to-right,
  .main-nav .children .sub-menu.to-right,
  .sub-menu .nav-item-children.to-right,
  .sub-menu .children.to-right,
  .sub-menu .sub-menu.to-right {
    left: calc(100% + 10px);
    right: auto;
  }
  .main-bar:not(.solid) .module-nav-trigger {
    padding-right: 0;
    padding-left: 3px;
  }
  .modules-fullscreen .main-nav {
    padding-right: 0;
    left: auto;
    right: -50%;
  }
  .modules-fullscreen-alt-2 .module-nav-trigger ~ .navbar-brand,
  .modules-fullscreen-alt-3 .module-nav-trigger ~ .navbar-brand,
  .modules-fullscreen-alt-2 .navbar-brand ~ .modules-container,
  .modules-fullscreen-alt-3 .navbar-brand ~ .modules-container {
    margin-left: 0 !important;
    margin-right: auto !important;
  }
  .modules-fullscreen-alt-2 .main-bar.nav-right .vc_row > .wpb_column > .vc_column-inner > .wpb_wrapper > .modules-container,
  .modules-fullscreen-alt-2 .main-bar.nav-right .vc_row > .wpb_column > .vc_column-inner > .wpb_wrapper > .navbar-brand,
  .modules-fullscreen-alt-2 .main-bar.nav-right > .modules-container,
  .modules-fullscreen-alt-2 .main-bar.nav-right > .navbar-brand,
  .modules-fullscreen-alt-3 .main-bar.nav-right .vc_row > .wpb_column > .vc_column-inner > .wpb_wrapper > .modules-container,
  .modules-fullscreen-alt-3 .main-bar.nav-right .vc_row > .wpb_column > .vc_column-inner > .wpb_wrapper > .navbar-brand,
  .modules-fullscreen-alt-3 .main-bar.nav-right > .modules-container,
  .modules-fullscreen-alt-3 .main-bar.nav-right > .navbar-brand {
    margin-right: 0 !important;
    margin-left: auto !important;
  }
}
