/**
 * @package Helix Framework
 * @author JoomShaper http://www.joomshaper.com
 * @copyright Copyright (c) 2010 - 2017 JoomShaper
 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later
*/

@import 'variables';
@import 'mixins';


/* RTL Direction
 *=======================================*/

body {
 	&.rtl {

		#sp-top-bar .sp-module {
			margin: 0 20px 0 0;
		}

		//top address
		.sp-contact-info {
			float: left;
		}

		// lang switcher
		.sp-module-content .mod-languages ul.lang-inline li {
			margin: 0 0 0 5px;
		}


		//Offcanvas
		#offcanvas-toggler {
			float: left;
            margin-left: 0;
		}
		#offcanvas-toggler >i {
			padding: 0 10px 0 0;

		}
		.close-offcanvas {
			right: auto;
			left: 0;
		}
		.offcanvas-menu {
			-webkit-transition: .4s;
			transition: .4s;
		}

		.body-innerwrapper:after {
			left: 0;
		}

		.offcanvas-menu {
			left: -280px;
		}

		&.offcanvas {
			.offcanvas-menu {
				left: 0;
			}
		}

		//mega menu
		.sp-megamenu-parent {
			float: left;
		}

		.sp-megamenu-parent >li.sp-has-child>a:after {
			display: none;
		}

		.sp-megamenu-parent >li.sp-has-child>a:before {
			content: " \f107";
			font-family: "Font Awesome 5 Free";
	    	font-weight: 900;
			margin-right: 5px;
		}

		.sp-megamenu-parent .sp-dropdown .sp-dropdown-items .sp-has-child>a:after {
			float: left;
			content: " \f104";
		}

		//module
		.sp-module ul >li >a:before {
			margin-right: 0;
			margin-left: 8px;
			content: "\f104";
			float: right;
		}

		//blog
		.entry-header.has-post-format {
			margin-left: 0;
			margin-right: 68px;
		}
		.post-format {
			left: auto;
			right: -68px;
		}
		.article-info >dt >i, .article-info >dd >i {
			margin-right: 0;
			margin-left: 3px;
		}
		.entry-link:before {
			top:auto;
			left: auto;
			right: -60px;
			transform: rotate(-90deg);
		}
		.entry-quote:before {
			left: auto;
			transform: rotate(-15deg);
			top:auto;
			right: -40px;
		}
		.categories-list .page-header a.pull-right {
			float: left !important;
		}
		.newsfeed-category .category li .pull-left{
			float: right !important;
		}

		//search
		.search .btn-toolbar .pull-left{
			float: right !important;
		}

		/**********************************************************************************************/
		/***************************************  Shaper Hope  ****************************************/
		/**********************************************************************************************/

		//Global
		.pull-right {
			float: left!important;
		}
		.pull-left {
			float: right!important;
		}
		.sppb-text-left {
			text-align: right;
		}
		.sppb-text-rigth {
			text-align: left;
		}
		.sppb-media > .pull-left {
			margin-right: 0;
			margin-left: 15px;
		}

		//Menu
		#sp-menu .top-right-button {
			float: left;
			margin-left: 0;
			margin-right: 15px;
		}
		#sp-menu .sp-megamenu-wrapper {
			float: left;
		}
		.sp-megamenu-parent .sp-dropdown.sp-dropdown-main.sp-menu-right {
			left: inherit;
			right: 0;
		}
		.sp-megamenu-parent .sp-dropdown .sp-dropdown-inner:before {
			left: inherit;
			right: 15px;
		}

		//Offcanvas
		#offcanvas-toggler {
			margin-left: 0;
			margin-right: 15px;
		}
		.offcanvas-menu .offcanvas-inner .sp-module ul > li .offcanvas-menu-toggler {
			right: inherit;
			left: 0;
		}
		@media screen and (max-width: 767px){
			&.offcanvas {
				.body-wrapper{
					-webkit-transform: translateX(0);
					transform: translateX(0);
				}
			}
		}

		//Slider
		.sppb-slider-wrapper {
			direction: ltr;
		}
		.sppb-slideshow-fullwidth-item-text {
			text-align: right;
		}
		.sppb-slide-item-bg.sppb-slideshow-fullwidth-item-bg .sppb-fw-slider-button-wrapper .btn-default {
			margin-right: 0;
			float: right;
			margin-left: 30px;
		}

		//Donation Addon
		.sppb-addon-donation .donation-ammount-wrap input {
			margin-right: 0;
			margin-left: 20px;
		}
		.sppb-addon-donation {
			padding-left: 0;
			padding-right: 60px;
		}

		//Article Addon
		.sppb-addon-article .sppb-article-content-wrap {
			padding: 42px 50px 41px 45px;
		}
		.fa-long-arrow-right:before {
			content: "\f177";
		}
		.sppb-addon-article .sppb-readmore i {
			margin-left: 0;
			margin-right: 5px;
		}

		//Bottom-4
		.sppb-addon-social-media .social-media-text-wrap a {
			margin-right: 0;
			margin-left: 35px;
		}

		//Contact From
		.sppb-addon-ajax-contact .sppb-ajax-contact-content .sppb-ajaxt-contact-form .sppb-form-group input {
			padding: 0 20px 0 0;
		}
		.sppb-addon-ajax-contact .sppb-ajax-contact-content .sppb-ajaxt-contact-form .sppb-form-group textarea {
			padding: 15px 20px 0 0;
		}

		//Faq
		.hope-faq-section .sppb-addon-feature {
			padding-left: 0;
			padding-right: 55px;
		}

		//Login & Registration Page
		.reg-login-form-wrap .registration .form-group,
		.reg-login-form-wrap .login .form-group,
		.reg-login-form-wrap .form-links,
		.reg-login-form-wrap .registration >p {
			text-align: right;
		}
		.reg-login-form-wrap .form-validate input {
			padding: 0 20px 0 0;
		}
		.form-links a {
			margin-right: 0;
			margin-left: 10px;
		}
		.fa-angle-right:before {
			content: "\f104";
		}

		//Blog
		#sp-right .sp-module .search form input {
			padding: 0 20px 0 0;
		}
		#sp-right .sp-module .search form:after, #sp-left .sp-module .search form:after {
			left: 20px;
			right: auto;
		}
		#sp-right .sp-module .sp-module-title {
			padding-left: 0;
			padding-right: 30px;
		}
		#sp-right .sppb-addon-social-media .social-media-text-wrap {
			padding-left: 0;
			padding-right: 30px;
		}
		#sp-right .sppb-addon-social-media .social-media-text-wrap a {
			margin-right: 0;
			margin-left: 20px;
		}

		//Blog Details
		.helix-social-share-wrap {
			margin-left: 0 !important;
			margin-right: 15px;
		}
		.helix-social-share {
			float: left;
		}
		.article-footer-top .helix-social-share {
			float: right;
		}
		.article-footer-top .helix-social-share .helix-social-share-icon ul li a span {
			margin-left: 0;
			margin-right: 15px;
		}
		.pagination-wrapper .pagination li span, .pagination-wrapper .pagination li a {
			border-radius: 50% !important;
		}

		//Casues Details
		.hope-causes {
			.sppb-addon-donation {
				padding-right: 0 !important;
			}
		}

		/*********************** Start Home Variation 2 ***********************/
		/**********************************************************************/

		//slider
		.home-v2 {
			.sppb-slideshow-fullwidth-item-text {
				text-align: center;
			}
			.sppb-slide-item-bg.sppb-slideshow-fullwidth-item-bg .sppb-fw-slider-button-wrapper .btn-default {
				float: none;
				margin-left: 0;
				margin-right: 30px;
			}
		}

		//Upcoming Events
		.sppb-addon-upcoming-events .upcoming-events-details-top-wrapper .event-image {
			float: right;
		}
		.sppb-addon-upcoming-events .upcoming-events-details-top-wrapper .event-address {
			padding: 24px 28px 20px 15px;
		}

		//Progress Bar
		.sppb-progress-bar {
			float: right;
		}
		.home-two-causes-donation .sppb-progress .sppb-progress-bar:before {
			right: auto;
			left: -5px;
		}
		.home-two-causes-donation .sppb-progress .sppb-progress-bar span {
			right: inherit;
			left: -65px;
		}
		.home-two-causes-donation .sppb-progress .sppb-progress-bar span:before {
			left: auto;
			right: -6px;
			width: 0;
			height: 0;
			border-top: 6px solid transparent;
			border-bottom: 6px solid transparent;
			border-left: 6px solid @major_color;
			border-right: 0;
		}
		//Newsletter
		.home-v2 .hope-become-a-volunteer .acymailing_module_form .acyfield_email input {
			padding: 0 35px 0 0;
		}
		.home-v2 .hope-become-a-volunteer .acymailing_module_form .acysubbuttons {
			right: inherit;
			left: 25px;
		}
 	}
}
