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

@import 'bs4-rtl';

body.rtl {
	text-align: right;
	.pull-left{
		float:right !important;
	}
	.pull-right{
		float:left !important;
	}
	.sp-scroll-up {
		right: auto;
		left: 30px;
	}
	.header-style2:before{
		left:auto;right:0;				
	}
	.header-style2 .header-bottom .header-logo .logo{
		padding:33px 6px 30px 80px;
	}
	.header-style2 .header-bottom .header-logo:before{
		left:0;right:auto;content:url('../images/shadow1.png');
	}
	.header-style2 .header-top2 .top-header2 .container .sp-module-content .mod-languages{
		border-left:0;
		border-right:1px solid rgba(255, 255, 255, .3);
		padding-left:0;padding-right:20px;
		margin-left:0;margin-right:20px;
	}
	.sp-module-content .mod-languages ul.lang-inline{
		left:auto;
		right:25%;
	}
	.header-style2 .header-top2 .top-header2 .sp-module-content .mod-languages{
		border-left:0;
		border-right:1px solid rgba(255, 255, 255, .3);
		padding-left:0;padding-right:20px;
		margin-left:0;margin-right:20px;
	}
	.article-details {
		.link-edit-article {
			right: auto;
			left: 0;
		}
	}
	#courses-free .custom.video-tour .content .box-courses .yt-counter-left .yt-counter-desc{float:right;}
	.sidebar-header-right .sp-module-content .search button.glyphicon{margin: 0 -50px 0 0px;}	
	.owl-carousel{direction:ltr;}
	.sp-megamenu-parent .sp-dropdown .sp-dropdown-items{text-align:right;}
	.sp-megamenu-parent .sp-mega-group .sp-mega-group-child{text-align:left!important;}
	#sp-feature ul.menu li a{padding-right:10px;}
	#sp-feature ul.menu li::before{left:auto;right:0;}
	#column-id-1562208262469,
	#column-id-1562223643565{
		padding-right:90px;padding-left:350px;
	}
	div.calendar{left:auto;right:376px;}
	.sp-page-builder .page-content #video-tour-area{
		background-image:url(../images/img_parallax2.jpg);
	}
	.sp-page-builder .page-content #courses-free{
		background-image:url(../images/img_parallax3.jpg);
	}
	.chzn-container{
		.chzn-search{
			display: none;
			left: 0;
		}
        .chzn-drop{
            left: 0;
            display: block;
        }
        &.chzn-with-drop{
            .chzn-drop{display: block;}
        }
    }
    #courses-free .custom.video-tour .content .box-courses{padding-left:0;padding-right:40px;}
    #courses-free .custom.video-tour .content .box-courses.icon1,
    #courses-free .custom.video-tour .content .box-courses.icon2,
    #courses-free .custom.video-tour .content .box-courses.icon3,
    #courses-free .custom.video-tour .content .box-courses.icon4{
    	background-position:top right;
    }
    .sp-position1 .custom.best-courses .row .box-courses{padding-left:0;padding-right:54px;}
    .sp-position1 .custom.best-courses .row .box-courses.icon4,
    .sp-position1 .custom.best-courses .row .box-courses.icon3,
    .sp-position1 .custom.best-courses .row .box-courses.icon1,
    .sp-position1 .custom.best-courses .row .box-courses.icon2{background-position:top right;}
    .sp-position1 .custom.best-courses .row .box-courses h3:before{left:auto;right:0;}
    #video-tour-area .custom.video-tour h2.title:before,
    #courses-free .custom.video-tour h2.title:before,
    .custom.course-category-area h2:before{left:auto;right:0;}
    .custom.course-category-area .wow .owl-controls .owl-nav{
    	position: relative;
		>div{
			position: absolute;top: 0;
		}
    	.owl-prev{
		    padding-right:22px;
			right: 30px;
		    border-right:1px solid rgba(255, 255, 255, .2); 
	    }
	    .owl-next{
	    	padding-left:0;
	    	right: 0px;
	    }
    } 
    #sp-footer1 p span.phone, #sp-footer1 p span.address{padding-left: 16px;float:right;}
    #sp-footer1 p span.address2{margin-right: 0px;}
    .recent-posts .sj-basic-news .item-inner .item-detail .item_content .item-img{float:right;margin-right:0;margin-left:12px;height: 75px;width: 65px;}
    .recent-posts .sj-basic-news .item-inner .item-detail .item_content .entry-content .item-meta .entry-date{
    	margin-right:0;margin-left:10px;
    }
    #k2Container.itemListView .itemList .itemContainer .catItemView.grid .catItemImageBlock .catItemImage .fee{
    	right:auto;left:26px;
    }
    div.itemAuthorBlock img.itemAuthorAvatar{float:right;margin:0 0 0 8px;}
    #k2Container.itemView .itemBody .itemNaviTop dl.article-info dd{margin-right:0;}
    #k2Container.itemView .itemBody .itemImageBlock .itemCategory{left:auto;right:0;}
    #k2Container.itemView .itemBody .itemNaviTop dl.article-info dd .itemDateCreated{
    	border-left:0;
    	border-right:1px solid #8c8c8c;
    	padding-left:0;
    	padding-right:9px;
    }
    #k2Container.itemView .itemBody .itemImageBlock .itemCategory::after {
	    border-right: 10px solid #e10a30;
	    right:auto;
	    border-left: 0 solid #e10a30;
	    left: -10px;
	}
	div.itemTwitterButton,div.itemFacebookButton,
	div.itemRatingBlock{float:right;}
	#k2Container.itemView .itemBody .itemAuthorBlock img.itemAuthorAvatar{
		margin-left: 15px;margin-right: 0px;
	}
	#k2Container.itemView .itemRelated ul li div.itemReDateCreated{
		border-right:0;border-left:1px solid #8c8c8c;
		padding-left: 9px;padding-right: 0px;
		margin-left: 5px;margin-right: 0px;
	}
	#k2Container.tagView .itemList .catItemView .catItemImageBlock{
		margin-left: 30px;margin-right: 0px;float:right;
	}
	#k2Container .itemList .catItemView .article-aside dd.create{
		border-left:0;border-right:1px solid #8c8c8c;
		padding-left: 0px;padding-right: 10px;
	}
	#k2Container .itemList .catItemView .article-aside dd{
		margin-right: 0px;margin-left: 10px;
	}
	#k2Container .itemList .catItemView .catItemImageBlock .catItemCategory{
		left:auto;right:0;
	}
    #video-tour-area .custom.video-tour a.btn-join{margin-right:0;margin-left:27px;}
    #video-tour-area .custom.video-tour .content .info img{margin-right:0;margin-left:11px;}
	.search-sidebar .form-search .btn-search{left:0;right:auto;}
	.search-sidebar .form-search .search-query{padding:0 20px 0 0;}
	.breadcrumb-item + .breadcrumb-item{padding-right:.5rem;padding-left:0;}
	.breadcrumb-item + .breadcrumb-item::before {padding-left: .5rem;padding-right:0;}
	.tag-category .list-group{padding-right:0;}
	.tag-category .mt-3{margin-left:0;margin-right: 1rem;}
	//edit user
	.input-group > .input-group-prepend > .input-group-text, .input-group > .form-control, .input-group > .input-group-append > .btn, .tag-category .input-group > .form-control, .tag-category .input-group-btn .btn{
	    border-radius:0;
	}
	//contact
	.contact-ajax .ctajax-element .el-info-contact .info-mobie i,
	.contact-ajax .ctajax-element .el-info-contact .info-address i{float:right;margin-right: 0px;margin-left: 30px;}
	.contact-ajax .ctajax-element .el-info-contact .info-mail i{float:right;margin-right: 0px;margin-left: 25px;}
	// Menu
	.sp-megamenu-parent {
		float: left;
		margin:0 85px 0 0;
		>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: -427px;
					left: 0;
					max-width:1903px;
					width:1903px;
					padding:0;
					.sp-dropdown-inner{
						padding:0;
					}
					.row{
						margin:0 auto;width:1900px;
						.col-sm-2{
							padding:0;
							&:nth-child(5){
								margin-right: 154px;
								margin-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;
						}
					}
				}
			}
		}
	}
}