/**
 * @package Helix Ultimate Framework
 * @author JoomShaper https://www.joomshaper.com
 * @copyright Copyright (c) 2010 - 2019 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 {
		float: left;
		>li {
			
			&.sp-has-child>a:before,
			&.sp-has-child>span:before{
				font-family: "FontAwesome";
				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: "FontAwesome";
					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: 0;
					left: auto;
				}
				
				&.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: -40px;
		right: inherit;
	}
	
	.offcanvas-menu {
		.offcanvas-inner {
			.sp-module {
				
				ul {
					> li {
						&.menu-parent {
							>a,
							>.menu-separator {
								>.menu-toggler {
									left: 0;
								}
							}
						}
						
						ul {
							margin-right: 10px;
						}
					}
				}
			}
		}
	}

	/***************************************************************************/
	/*****************************    Finatic   *******************************/
	/*************************************************************************/

	//Global Start
	.sppb-text-left {
		text-align: right;
	}
	.sppb-text-right {
		text-align: left;
	}
	.sppb-nav-custom {
		float: right;
	}
	.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;
	}
	.sp-slider-content-align-left,
	.sp-slider-image-align-left {
		text-align: right;
	}
	.sppb-addon-sp-slider .sp-slider-content-align-left .sppb-sp-slider-image,
	.sppb-addon-sp-slider .sp-slider-content-align-left .sppb-sp-slider-text,
	.sppb-addon-sp-slider .sp-slider-content-align-left .sppb-sp-slider-title {
		margin-right: 0 !important;
		margin-left: auto !important;
	}
	.fa-long-arrow-right:before {
		content: "\f177";
	}
	.owl-carousel {
		direction: ltr;
	}
	.fn-next:before {
		content: "\e936";
	}
	.fa-angle-double-right:before {
		content: "\f100";
	}
	//Global End

	.top-services ul.menu > li:not(:last-child) {
		margin-right: 0px;
		margin-left: 50px;
	}
	#sp-top-bar .sp-module:not(:last-child) {
		margin-right: 0px;
		margin-left: 30px;
	}
	.map-link span.fa {
		margin-right: 0px;
		margin-left: 5px;;
	}
	.sp-custom-login.sp-mod-login .info-text .sppb-btn-link i {
		margin-right: 0;
		margin-left: 7px;
	}
	.sp-megamenu-parent .sp-dropdown li.sp-menu-item.all-service-menu > a:after {
		content: "\e936";
		float: left;
		margin-left: 0;
		margin-right: 10px;
	}
	#sp-logo .logo .logo-slogan {
		margin-left: 0px;
		margin-right: 20px;
		padding-left: 0px;
		padding-right: 20px;
		border-left: 0;
		border-right: 1px solid rgba(0, 0, 0, 0.18);
	}
	.sp-contact-info li span {
		margin-right: 0px;
		margin-left: 10px;
	}
	.sp-contact-info li {
		margin-left: 0px;
		margin-right: 10px;
	}
	#sp-logo-right .sp-column > .sp-module {
		margin-left: 0px;
		margin-right: 30px;;
	}
	#sp-logo-right .search input {
		padding: 7px 15px 7px 35px;
	}
	.finatic-testimonial-slider .item {
		padding-right: 0;
		padding-left: 30px;
		border-right: 0;
		border-left: solid 1px rgba(127, 127, 127, 0.35);
	}
	.finatic-testimonial-slider .item .finatic-testimonial-footer {
		flex-direction: row-reverse;
	}
	.finatic-testimonial-slider .item .finatic-testimonial-footer img {
		margin-right: 0;
		margin-left: 15px;
	}
	.finatic-services .item .item-info .sppb-btn {
		flex-direction: row-reverse;
	}
	.sppb-addon-articles .sppb-addon-article .sppb-readmore,
	.sppb-addon-articles .sppb-addon-article .sppb-article-info-wrap {
		text-align: right;
	}
	.sppb-addon-articles .sppb-addon-article .sppb-readmore:after {
		float: left;
	}
	.sppb-addon-articles .sppb-addon-article .sppb-readmore:after {
		content: "\e936";
	}
	#sppb-addon-1566817386075 .sppb-animated-number::after {
		float: right;
	}
	#sppb-addon-1566288272411 ul>li:not(:last-child) {
		margin-right: 0;
		margin-left: 25px;
	}
	.slider-video-popup .sppb-modal-selector {
		padding: 10px 10px 10px 30px;
	}
	.slider-video-popup .sppb-modal-selector > span:nth-child(1) {
		margin-right: 0;
		margin-left: 30px;
	}
	.corporate-service {
		.finatic-services .item .item-info .sppb-btn {
			flex-direction: inherit !important;
		}
	}
	.sppb-testimonial-pro.finatic-testimonial .sppb-carousel-indicators {
		padding: 0;
	}
	.sppb-testimonial-pro.finatic-testimonial .sppb-carousel-indicators li {
		margin-right: 0;
		margin-left: 10px;
	}
	#sp-footer ul.menu li:not(:last-child) {
		margin-right: 0;
		margin-left: 40px;
	}
	#sp-footer #sp-footer2 {
		text-align: left;
	}
	.sp-megamenu-parent > li:not(:last-child) {
		margin-right: 0;
		margin-left: 30px;
	}
	.hero-contact-info-wrapper {
		.icons-group-title-postion-top {
			ul {
				li {
					display: flex !important;
					flex-direction: row-reverse;
				}
			}
		}
	}
	.creative-services {
		.sppb-btn {
			flex-direction: inherit !important;
		}
	}
	.creative-testimonial-pro {
		.sppb-carousel-indicators {
			left: inherit;
    		right: 0;
    		text-align: right;
			padding: 0;
			li {
				margin-right: 0;
				margin-left: 10px;
			}
		}
	}
	.finatic-services .item .item-info .finatic-service-items > li i {
		margin-right: 0;
		margin-left: 15px;
	}
	.finatic-services .item .item-info .finatic-service-items > li {
		border-right: 0;
		border-left: solid 1px #e3e3e3;
	}
	.sppb-nav-modern>li {
		float: right;
		margin-right: 0;
		margin-left: 5px;
	}
	.tab-features-list > li span {
		margin-right: 0;
		margin-left: 15px;
	}
	.sppb-nav-tabs>li {
		float: right;
	}
	.readmore a:after {
		right: inherit !important;
		left: 30px;
		content: "\e936" !important;
	}
	.case-studies .article-info > span.published {
		left: inherit;
		right: 50px;
	}
	.case-studies .article-info > span.published:before {
		margin-right: 0;
		float: right;
		margin-left: 10px;
	}
	.article-details.case-studies .article-info {
		float: right;
	}
	.case-studies .article-ratings-social-share .social-share-icon ul li:not(:last-child) {
		margin-right: 0 !important;
		margin-left: 15px;
	}
	.blog-details-list ul li:before {
		left: inherit;
		right: 0;
	}
	.blog-details-list ul li {
		padding-left: 0;
		padding-right: 35px;
	}
	.blog-list-news-scroller {
		direction: ltr;
	}
	.blog-list-news-scroller .bx-wrapper .sppb-articles-carousel-content .sppb-articles-carousel-meta-category a {
		padding: 12px 30px 15px 0;
	}
	#sp-right .search:after,
	#sp-left .search:after {
		right: inherit;
		left: 15px;
	}
	#sp-right ul.categories-module li h4:after,
	#sp-left ul.categories-module li h4:after {
		right: inherit;
		left: 0;
		content: "\f104";
	}
	#sp-right .latestnews > div .article-list-img,
	#sp-left .latestnews > div .article-list-img {
		float: right;
		margin-right: 0;
		margin-left: 20px;
	}
	.finatic-blog {
		.readmore a:after {
			display: none;
		}
		.readmore:after {
			right: inherit !important;
			left: 30px;
			content: "\e936" !important;
		}
	}
	.finatic-blog-details div[itemprop="articleBody"] .blockquote {
		border-left: 0;
		border-right: solid 5px $link_color;
	}
	.finatic-blog-details .tags-wrapper .share-wrapper .article-social-share {
		text-align: left;
	}
	.finatic-blog-details .tags-wrapper .finatic-tags {
		border-right: 0;
		border-left: solid 1px rgba(175, 175, 175, 0.30);
	}
}