/**
 * @package Helix Framework
 * @author JoomShaper http://www.joomshaper.com
 * @copyright Copyright (c) 2010 - 2018 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;
			}
		}

		.sp-megamenu-parent >li.sp-has-child>a:after {
			float: left;
			margin-right: 3px;
		}

		.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 Calcio  ***************************************/
		/*********************************************************************************************/

		//Global
		.pull-right {
			float: left!important;
		}
		.pull-left {
			float: right!important;
		}
		.sppb-text-left {
			text-align: right;
		}
		.sppb-text-right,
		.text-right {
			text-align: left;
		}
		.sppb-media > .pull-left {
			margin-right: 0;
			margin-left: 15px;
		}
		.form-links a {
			margin-right: 0;
			margin-left: 10px;
		}
		.sppb-slider-wrapper,
		.sppb-addon-articles-slider {
			direction: ltr;
		}
		.fa-chevron-right:before {
			content: "\f053";
		}
		.spsoccer-media-left,
		.spsoccer-media > .pull-left {
			padding-right: 0;
			padding-left: 10px;
		}

		//Menu & Header
		.sp-megamenu-parent .sp-dropdown.sp-dropdown-main.sp-menu-right {
			left: inherit;
			right: 0;
		}
		#sp-menu-right .sp-module.sp-top-login {
			float: left;
		}
		#sp-menu-right .sp-module.calcio-top-search {
			margin-right: 0;
			margin-left: 15px;
		}
		.sp-module-content .mod-languages .btn-group:before {
			left: inherit;
			right: -2px;
		}
		.sp-module-content .mod-languages .dropdown-toggle::after {
			right: inherit;
			left: -5px;
		}
		#sp-secondary-menu ul.secondary-menu li a {
			margin-right: 0;
			margin-left: 30px;
		}
		#sp-secondary-menu ul.secondary-menu li >ul {
			left: inherit;
			right: 0;
		}
		#sp-secondary-menu ul.secondary-menu li >ul li a {
			margin-left: 0;
			text-align: right;
		}
		#sp-secondary-menu #sp-top2 {
			text-align: left;
		}
		#sp-secondary-menu ul.social-icons li:last-child {
			margin-right: 7px;
			margin-left: 0;
		}
		.menu-slide-down .sp-has-child >.sp-dropdown.sp-dropdown-mega {
			right: auto;
			left: -500px !important;
		}

		//Offcanvas
		.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);
				}
			}
		}

		//Article Slider
		.articles-slider.owl-carousel .sppb-article-details .article-title,
		.articles-slider.owl-carousel .sppb-article-details .introtext {
			position: relative;
			left: 50%;
			text-align: right;
		}
		.articles-slider.owl-carousel .sppb-article-details .sppb-meta-category {
			text-align: right;
		}
		.articles-slider.owl-carousel .sppb-article-details {
			left: inherit;
			right: 90px;
		}
		.sppb-addon-articles-slider .articles-slider .owl-controls {
			left: inherit;
			right: 85px;
		}
		.articles-slider.owl-carousel .sppb-article-content-wrap::before {
			left: inherit;
			right: 0;
			background: linear-gradient(-90deg,#000000 2%,rgba(0,0,0,0) 97%);
		}

		//Article Headline
		.sppb-addon-articles-slider.sppb-addon-articles-headline .sppb-addon-title {
			left: inherit;
			right: 45px;
		}
		.sppb-addon-articles-slider.sppb-addon-articles-headline .sppb-addon-title::after {
			left: -60px;
			right: auto;
			width: 0;
			height: 0;
			border-bottom: 38px solid @major_color;
			border-left: 60px solid transparent;
			position: absolute;
			bottom: 0;
			border-right: 0;
		}
		.sppb-addon-articles-slider.sppb-addon-articles-headline .sppb-addon-article.item {
			flex-direction: row-reverse;
		}
		.sppb-addon-articles-slider.sppb-addon-articles-headline .sppb-addon-article.item .sppb-img-wrapper {
			margin-right: 0;
			margin-left: 15px;
		}
		.sppb-addon-articles-slider.sppb-addon-articles-headline .sppb-addon-article.item .sppb-article-details .article-title {
			text-align: right;
		}

		//Popular Post
		.popular-post .latestnews >div .article-list-img {
			margin-right: 0;
			margin-left: 15px;
		}

		//Soccer Poll
		.spsoccer-module-poll .spsoccer-poll ul >li input {
			margin-right: 0;
			margin-left: 15px;
		}

		//Articles Addon
		.sppb-article-details {
			padding: 18px 20px 25px;
		}
		.sppb-addon-articles.layout-essential .sppb-addon-article.intro-item .sppb-article-details {
			padding-left: 0;
			padding-right: 20px;
		}

		.watch-now-section .sppb-addon-header .sppb-addon-title span {
			margin-right: 0;
			margin-left: 15px;
		}
		.rising-player-content-wrap .team-logo-img {
			left: inherit;
			right: 15px;
		}
		.calcio-newsletter .acymailing_module .acymailing_form p.acysubbuttons {
			right: inherit;
			left: 15px;
		}
		.calcio-newsletter .acymailing_module .acymailing_form p.acysubbuttons::after {
			content: '\f177';
		}
		.calcio-newsletter .acymailing_module .acymailing_form p.fieldacyemail input {
			padding: 0 25px 0 0;
		}
		#sp-footer1 {
			text-align: right;
		}
		#sp-footer .sppb-addon-social-media {
			text-align: left;
		}
		#sp-footer .sppb-addon-social-media .social-media-text-wrap a {
			margin-left: 0;
			margin-right: 20px;
		}
		.sppb-addon-header.heading-with-line .sppb-addon-title:after {
			left: inherit;
			right: 15px;
		}
		.sppb-addon-upcoming-match .next-match-counter {
			padding: 50px 45px 50px 0px;
		}
		.sppb-addon-upcoming-match .team-name {
			text-align: right;
		}
		.sppb-addon-upcoming-match .next-match-counter ul li {
			margin-right: 0;
			margin-left: 80px
		}
		.sppb-addon-upcoming-match .next-match-counter ul li:last-child {
			margin-left: 0 !important;
		}

		.sppb-addon-upcoming-match .next-match-counter::after {
			left: -24em;
			right: auto;
			width: 0;
			height: 0;
			border-bottom: 21.44em solid @major_color;
			border-left: 24em solid transparent;
			position: absolute;
			bottom: 0;
			border-right: 0;
		}

		.calcio-match-carousel .sppb-addon-title {
			left: inherit;
			right: -45px;
		}

		.calcio-match-carousel .sppb-addon-title:after {
			left: -60px;
			right: auto;
			width: 0;
			height: 0;
			border-bottom: 38px solid @major_color;
			border-left: 60px solid transparent;
			position: absolute;
			bottom: 0;
			border-right: 0;
		}

		.calcio-match-carousel div.sp-recent-result {
			margin-left: inherit;
			margin-right: -45px;
		}

		.home4-article-slider .articles-slider.owl-carousel .sppb-article-details .article-title {
			position: relative!important;
			left: 10% !important;
			text-align: right !important;
		}

		//Soccer
		.view-spsoccer-team .torunament-info .team-details-tab ul.nav-tabs li a {
			margin-right: 0px;
			margin-left: 50px;
		}
		.spsoccer-team-player {
			.player-name {
				float: right;
			}
		}
		.view-spsoccer-team .torunament-info ul.spsoccer-ul-list li.spsoccer-team-player img {
			float: right;
			margin-right: 0;
			margin-left: 20px;
		}
		.view-spsoccer-team .honours-intro .number-type {
			margin-right: 0;
			margin-left: 40px;
		}
		.view-spsoccer-team .spsoccer-team-jersey-list .club-jersey-text p {
			margin-left: 0;
			margin-right: 30px;
		}
		.view-spsoccer-team .torunament-info ul.spsoccer-ul-list li.spsoccer-team-player p.player-name {
			margin-top: 15px;
		}
		.spsoccer-team-basic .team-details-social ul li {
			margin-right: 0;
			margin-left: 20px;
		}
		.view-spsoccer-tournaments .spsoccer-tournament-name .tournament-image {
			float: right;
		}
		.view-spsoccer-tournaments .spsoccer-tournament-name .tournament-details {
			padding: 35px 30px 0 20px;
		}
		.view-spsoccer-tournament .spsoccer-group-wrapper .item-list-wrap .child-1 {
			text-align: left;
		}
		.view-spsoccer-tournament .pointboard-header .header-left {
			float: right;
		}
		.view-spsoccer-tournament .pointboard-header .header-left li:first-child {
			margin-right: 0;
			margin-left: 45px;
		}
		.spsoccer-standings-wrapper {
			.team-position {
				float: right;
			}
		}
		.view-spsoccer-tournament .spsoccer-standings-wrapper .item-list-wrap .teamthumb p {
			margin-right: 0;
			margin-left: 55px;
		}
		.spsoccer-match-landing {
			.text-right {
				text-align: right;
			}
		}
		.spsoccer-club-logo-wrap {
			left: inherit;
			right: 15px;
		}
		.spsoccer-player-basic {
			float: right;
		}
		.spsoccer.view-spsoccer-player .spsoccer-player-info-wrap .spsoccer-ul-list,
		.spsoccer.view-spsoccer-player .torunament-info .spsoccer-ul-list {
			padding: 0;
		}
		.spsoccer-player-career-wrap {
			.spsoccer-player-career-list-wrap {
				float: right;
			}
		}
		.spsoccer-player-big-info img {
			float: left;
		}
		.view-spsoccer-teams .soccer-team .team-description {
			padding: 0 15px 0 0;
		}
		.view-spsoccer-teams .soccer-team .team-description .spsoccer-socials-wrap .team-social li {
			margin-right: 0;
			margin-left: 15px;
		}
		.spsoccer-match-states {
			.pull-left {
				float: left !important;
			}
			.pull-right {
				float: right !important;
			}
			.text-right {
				text-align: right;
			}
		}
		.spsoccer-fixture-content-wrap.match-details .match-tab .tab-content .spsoccer-match-states .spsoccer-match-result .match-details-team .pull-left {
			padding-left: 0;
			padding-right: 10px;
		}
		.spsoccer-fixture-wrapper {
			.text-right {
				text-align: right;
			}
		}

		//Blog
		.sppb-addon-articles-slider.sppb-addon-articles-sliderv2 .sppb-addon-article .sppb-article-details {
			text-align: right;
		}
		.helix-social-share {
			float: left;
		}
		.article-footer-top .post_rating {
			float: right;
		}
		.helix-social-share .helix-social-share-icon ul li {
			margin-right: 0;
			margin-left: 7px;
		}

		//Login Popup
		#login .modal-content .modal-header h3 {
			text-align: right;
			margin: 0 16px 0 0;
		}
		#login .modal-content .modal-body p,
		#login .modal-content .modal-body .remember-wrap {
			text-align: right;
		}
		#login .modal-content .modal-body .remember-wrap label {
			margin-left: 0;
			margin-right: 10px;
		}
		#login .modal-header .close {
			right: inherit;
			left: -15px;
		}

		//Search
		.top-search-input-wrap .search-wrap .search.calcio-top-search .sp_search_input:after {
			right: inherit;
			left: 15px;
		}
	}
}
