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

@import 'bs4-rtl';

body.rtl {
	text-align: right;
	
	.sp-scroll-up {
		right: auto;
		left: 30px;
	}
	
	.article-details {
		.link-edit-article {
			right: auto;
			left: 0;
		}
	}
	
	// Menu
	.sp-megamenu-parent {
		>li {
			
			&.sp-has-child>a:before,
			&.sp-has-child>span:before{
				font-family: "Font Awesome 5 Free";
    			font-weight: 900;
				content: "\f107";
				float: left;
				margin-right: 7px;
			}
			
			.sp-menu-badge {		
				&.sp-menu-badge-right {
					margin-right: 7px;
				}
				
				&.sp-menu-badge-left {
					margin-left: 7px;
				}
			}
		}
		
		.sp-dropdown {
			.sp-dropdown-items{		
				.sp-has-child>a:after{
					font-family: "Font Awesome 5 Free";
    				font-weight: 900;
					content: "\f104";
					float: left;
					margin-right: 7px;
				}
			}
			
			&.sp-menu-center{
				margin-right: 45px;
			}
			
			&.sp-dropdown-main {
				&.sp-menu-right {
					right: 0;
				}
				
				&.sp-menu-full {
					right: auto;
					left: 0;
				}
				
				&.sp-menu-left {
					left: 0;
				}
			}
			
			&.sp-dropdown-sub {
				right: 100%;
			}
		}
	}
	
	#offcanvas-toggler {        
		&.offcanvas-toggler-right {
			float: left;
			margin-right: 20px;
		}
		
		&.offcanvas-toggler-left {
			float: right;
			margin-left: 20px;
		}
	}
	
	&.offcanvs-position-left{
		.body-wrapper{
			right: 0;
		}
		
		.offcanvas-menu {
			right: -$offcanvas_width;
		}
		
		&.offcanvas-active {
			.offcanvas-menu {
				right: 0;
			}
			.body-wrapper{
				right: $offcanvas_width;
			}
		}
	}
	
	&.offcanvs-position-right{
		.body-wrapper{
			left: 0;
		}
		
		.offcanvas-menu {
			left: -$offcanvas_width;
		}
		
		&.offcanvas-active {
			.offcanvas-menu {
				left: 0;
			}
			
			.body-wrapper{
				left: $offcanvas_width;
			}
		}
	}
	
	.close-offcanvas {
		left: 15px;
	}
	
	.offcanvas-menu {
		.offcanvas-inner {
			.sp-module {
				
				ul {
					> li {
						&.menu-parent {
							>a,
							>.menu-separator {
								>.menu-toggler {
									left: 0;
								}
							}
						}
						
						ul {
							margin-right: 10px;
						}
					}
				}
			}
		}
	}

	/***************************************************************************/
	/*****************************    Ensure    *******************************/
	/*************************************************************************/

	//Global Start
	.sppb-text-left {
		text-align: right;
	}
	.fa-long-arrow-right:before {
		content: "\f30a";
	}
	.fa.fa-long-arrow-left:before {
		content: "\f30b";
	}
	.sppb-btn.btn-anim:after,
	.sppb-btn.btn-anim:before {
		content: "\f060";
	}
	.sppb-text-right {
		text-align: left;
	}
	.sp-select .sp-select-result {
		text-align: right;
	}
	.sp-select .sp-select-result i.fa {
		float: left;
	}
	.pull-left {
		float: right !important;
	}
	.sppb-media>.pull-left {
		margin-right: 0;
		margin-left: 15px;
	}
	.speasyimagegallery-album-meta>span {
		float: right;
	}
	.form-check {
		padding-left: 0;
		padding-right: 1.25rem;
	}
	.login .btn-secondary,
	.logout .btn-secondary,
	.registration .btn-secondary {
		margin-left: 0;
		margin-right: 10px;
	}
	.owl-carousel {
		direction: ltr;
	}
	.pull-right {
		float: left !important;
	}
	.form-check-input {
		margin-left: 0;
		margin-right: -1.25rem;
	}
	#form-login-submit,
	#login .login-info-wrapper .reg-link {
		text-align: right;
	}
	.sppb-nav-tabs>li {
		float: right;
	}
	.list-inline-item:not(:last-child) {
		margin-right: 0;
		margin-left: .5rem;
	}
	.mr-3,
	.mx-3 {
		margin-right: 0 !important;
		margin-left: 1rem !important;
	}
	.sppb-carousel-extended {
		direction: ltr;
	}
	.fa-chevron-right:before {
		content: "\f053";
	}
	.sppb-panel-heading.active .sppb-toggle-direction {
		transform: translateY(-50%) rotate(-90deg);
	}
	.fa-arrow-right:before {
		content: "\f060";
	}
	.sppb-form-check {
		padding-left: 0;
		padding-right: 18px;		
	}
	.form-builder-checkbox-item label::before, .form-builder-radio-item label::before, .sppb-addon-form-builder .sppb-form-check-label::before {
		left: inherit;
		right: 0;
	}
	.sppb-form-check .sppb-form-check-input {
		margin-left: 0;
		margin-right: -18px;
	}
	.sppb-addon-form-builder .sppb-form-check-label {
		margin-left: 0;
		margin-right: 10px;
	}
	.fa-angle-right:before {
		content: "\f104";
	}
	//Global End

	#sp-header .logo {
		margin-right: 0;
		margin-left: 15px;
	}
	.sp-megamenu-parent .sp-dropdown li.sp-menu-item,
	.sp-megamenu-parent .sp-dropdown .sp-module,
	.sp-megamenu-parent > li .sp-dropdown .menu_item.item-header > a {
		text-align: right;
	}
	.sp-megamenu-wrapper .latestnews {
		padding-right: 0;
		padding-left: 10%;
	}
	.sp-megamenu-parent .sp-dropdown .sp-module .latestnews {
		border-left: solid 1px #eaeaea;
	}
	.ensure-hero-feature-wrap.left-also .ensure-hero-feature .sppb-addon-title, .ensure-hero-feature-wrap.left-only .ensure-hero-feature .sppb-addon-title {
		left: inherit;
		right: -5px;
	}
	#sp-footer #sp-footer2 {
		text-align: left;
	}
	ul.social-icons > li:not(:last-child) {
		margin: 0 0 10px 25px;
	}
	.home3-slider .sp-slider-content-align-right {
		width: 540px;
		margin-right: auto;
	}
	.blog .articles-leading .article .article-intro-image {
		padding-right: 0;
		padding-left: 35px;
	}
	.article-list .article .article-intro-image img, .article-list .article .article-featured-video img,
	.article-list .article .article-featured-audio img, .article-list .article .article-feature-gallery img {
		border-radius: 0 3px 3px 0;
	}
	.article-list .article .article-body .ensure-article-info-wrap .article-author-info .author-name-wrap .info-block-title:before {
		margin-right: 0;
		margin-left: 5px;
	}
	.sppb-carousel-extended {
		.fa.fa-long-arrow-left:before {
			content: "\f30a";
		}
		.fa.fa-long-arrow-right:before {
			content: "\f30b";
		}
	}
}