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

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


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

		}
		.close-offcanvas {
			right: auto;
			left: 10px;
		}
		.offcanvas-menu {
			-webkit-transition: opacity 400ms cubic-bezier(0.7,0,0.3,1), left 400ms cubic-bezier(0.7,0,0.3,1);
			transition: opacity 400ms cubic-bezier(0.7,0,0.3,1), left 400ms cubic-bezier(0.7,0,0.3,1);
		}

		.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 .sp-dropdown .sp-dropdown-items .sp-has-child>a:after {
			float: left;
			content: " \f104";
		}

		//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;
		}
		.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 Mednet           ************************/
		/************************************************************************************/


		//Top Bar
		.sp-contact-info li{
			margin-right: 0;
			margin-left: 5px;
		}
		#sp-top2{
			text-align: left;
		}

		//Menu
		.sp-megamenu-parent .sp-dropdown.sp-dropdown-main.sp-menu-right,
		.sp-megamenu-parent .sp-dropdown.sp-dropdown-main.sp-menu-full {
			left: inherit;
			right: 0;
		}
		.sp-megamenu-parent .sp-dropdown.sp-dropdown-sub{
			left: inherit;
			right: 100%;
		}

		//Off Canvas
		.offcanvas-menu .offcanvas-inner .sp-module ul > li .offcanvas-menu-toggler{
			right: inherit;
			left: 0;
		}

		//Slider
		.sppb-slider-wrapper{
			direction: ltr;
		}
		.sppb-slider-wrapper .customNavigation a.sppbSlidePrev{
			right: inherit;
			left: 70px;
			i.fa-angle-left{
				&:before{
					content: "\f105";
				}
			}
		}
		.sppb-slider-wrapper .customNavigation a.sppbSlideNext{
			i.fa-angle-right{
				&:before{
					content: "\f104";
				}
			}
		}
		.sppb-slider-wrapper .customNavigation a{
			right: inherit;
			left: 0;
		}
		.sppb-slideshow-fullwidth-item-text{
			text-align: right;
		}
		.sppb-slider-wrapper .sppb-slide-item-bg .sppb-slideshow-fullwidth-item-text .sppb-fullwidth-title .sppb-slidehsow-sub-title {
			margin-left: 0;
			margin-right: -4px;
		}
		.sppb-slider-wrapper .sppb-slide-item-bg .sppb-slideshow-fullwidth-item-text .sppb-fullwidth-title .sppb-slidehsow-sub-title span {
			margin-left: 0;
			margin-right: 4px;
		}

		//Feature

		.mednet-features-list {
			.mednet-features-one:after {
				left: 0;
				right: inherit;
			}
			.mednet-features-three:after {
				left: unset;
			}
			.mednet-features-three:before {
				right: 0;
			}
			.sppb-addon-feature {
				padding: 55px 40px 45px 40px;
			}
		}

		.mednet-features-list{
			.sppb-addon-content{
				text-align: right;
			}
		}
		.mednet-features-list .sppb-addon-feature .btn-click:after {
			content: "\f0d9";
			margin-left: 0;
			position: absolute;
			margin-right: 5px;
		}

		// Services

		.mednet-services-step {
			.sppb-row-container {
				.sppb-row {
					flex-direction: row-reverse;
				}
			}
		}
		//GLobal
		.sppb-text-left {
			text-align: right;
		}
		.pull-left {
			float: right !important;
		}
		.sppb-addon-blocknumber .sppb-blocknumber >.pull-left {
			margin-right: 0;
			margin-left: 22px;
		}
		.sppb-media > .pull-left{
			margin-right: 0;
			margin-left: 15px;
		}
		#sp-page-title .sp-page-title .breadcrumb{
			right: inherit;
			left: 0;
		}

		//Testimonial
		.sppb-testimonial-pro-advanced .sppb-carousel-indicators >li.sppb-tm-indicators {
			margin: 0 0 0 15px;
		}
		.sppb-testimonial-pro-advanced .sppb-carousel-icon {
			text-align: right;
		}
		.sppb-testimonial-pro-advanced .sppb-carousel-inner {
			text-align: right;
		}

		//Article
		.sppb-addon-articles .sppb-addon-article .sppb-article-info{
			padding-left: 0;
			padding-right: 40px;
		}
		.sppb-addon-articles .sppb-addon-article .sppb-img-wrap .sppb-img:after{
			content: "\f060";
		}

		//Twitter
		.sppb-addon-tweet .sppb-tweet-slider:before{
			left: inherit;
			right: -230px;
		}
		.sppb-addon-tweet .sppb-tweet-slider:after{
			left: inherit;
			right: 100%;
		}

		//Bottom-2
		.bottom-newsletter .acymailing_form .acysubbuttons{
			right: inherit;
			left: 0;
		}
		.bottom-social ul>li{
			float: right;
			&:not(:last-child) {
				margin-left: 20px;
				margin-right: 0px;
			}
		}

		// Bottom-3
		#sp-bottom3 {
			.sp-column {
				.sp-module:last-child {
					margin-right: 50%;
					width: 100%;
				}
			}
		}


		//Footer
		#sp-footer #sp-footer1 ul.nav.menu{
			text-align: right;
		}
		#sp-footer #sp-footer1 ul.nav.menu >li{
			margin-right: 0;
			margin-left: 30px;
		}

		//About Page
		.sppb-nav-tabs > li{
			float: right;
		}
		.mednet-tabs .sppb-tab .sppb-nav-tabs li a{
			margin-right: 0;
			margin-left: 42px;
		}
		.mednet-tabs .sppb-tab .sppb-tab-pane .col-sm-3:before{
			left: inherit;
			right: 14px;
		}
		.mednet-tabs .sppb-tab .sppb-tab-pane .col-sm-3:after{
			left: inherit;
			right: 9px;
		}
		.mednet-tabs .sppb-tab .sppb-tab-pane .line{
			left: inherit;
			right: 15px;
		}
		.mednet-accordion .sppb-addon-accordion .sppb-addon-content:before{
			left: inherit;
			right: 0;
		}
		.mednet-accordion .sppb-addon-accordion .sppb-addon-content .sppb-panel.sppb-panel-default .sppb-panel-heading:before{
			left: inherit;
			right: -44px;
		}
		.mednet-accordion .sppb-addon-accordion .sppb-addon-content .sppb-panel.sppb-panel-default .sppb-panel-heading:after{
			left: inherit;
			right: -50px;
		}
		.mednet-accordion .sppb-addon-accordion{
			padding-left: 0;
			padding-right: 70px;
		}
		.mednet-accordion .sppb-addon-accordion .sppb-addon-content{
			padding-left: 0;
			padding-right: 40px;
		}

		//Appointment Page
		.sppb-addon-appointment-form form.sppb-appointment-form >.sppb-form-btn{
			float: right;
			margin-right: 15px;
		}
		.appointment-callto-action .sppb-addon-text-block .sppb-addon-content span span:before{
			left: inherit;
			right: -32px;
		}
		.sppb-panel-heading {
			.sppb-toggle-direction {
				left: 0;
        top:0;
				right: unset;
				color: #5b5b5b;
        transform: rotateZ(180deg);
			}
		}
		// Appointment form
		.sppb-form-group {
			.input-field {
				.custom-checkbox {
					margin-right: 30px;
					input[type="checkbox"] {
						margin-left: 10px;
						margin-right: 0px;
					}
				}
			}
			.sppb-form-btn {
				button[type="submit"] {
					margin-right: 30px;
				}
			}
		}

		//Contact Page
		.mednet-contact-page .sppb-icon.sppb-text-left{
			float: right;
			margin-right: 0;
			margin-left: 5px;
		}

		//Blog Listing
		.blog-info-wrapper{
			padding-left: 0 !important;
			padding-right: 80px;
		}
		.article-info >dd{
			float: right;
		}
		article .article-info >dd{
			margin: 0 7px 0 20px;
		}
		article.item .entry-image a:after{
			content: "\f060";
		}
		.pagination-wrapper .pagination li a,
		.pagination-wrapper .pagination li span {
			float: right;
		}
		#sp-left .sp-module .sp-module-title,
		#sp-right .sp-module .sp-module-title{
			padding-left: 0;
			padding-right: 30px;
		}
		#sp-left .sp-module .sp-module-content .latestnews .mednet-news-title,
		#sp-right .sp-module .sp-module-content .latestnews .mednet-news-title {
			padding-left: 0;
			padding-right: 10px;
		}
 	}
}
@media screen and (max-width: 991px) and (min-width: 768px){
  body.rtl {
    .mednet-features-list .sppb-addon-feature {
        padding: 30px 15px 30px 0px;
    }
    .sppb-testimonial-pro-advanced .sppb-testimonial-content {
      padding-right: 0;
      padding-left: 15px;
    }
    .mednet-success-story .mednet-text-block-v2 {
      padding-right: 15px;
      padding-left: 0;
  }
  }
}
@media screen and (max-width: 767px) and (min-width: 320px){
    body.rtl {
      .mednet-success-story .sppb-testimonial-pro-advanced .mednet-text-block-v2 {
          padding-left: 0;
          padding-right: 15px;
      }
      .mednet-accordion .sppb-addon-accordion {
         padding-right: 0px;
      }
    }
}
