@import "../sass/mixin";
@import "../sass/variables";
@import "../sass/root";

/* Topbar
-------------------------------------------------------------- */
.themesflat-top {
	position: relative;

	.themesflat-socials li {
		+ li {
			border-right: 1px solid currentColor;
			border-left: none;
		}

		&:not(:last-child) {
			padding-left: 25px;
			padding-right: 0;
		}

		&:not(:first-child) {
			padding-right: 25px;
		}
	}

	ul li {
		padding-right: 2.85em;
		padding-left: 0;
		text-align: left;
	}

	.content-left ul li > i {
		margin-left: 5px;
		margin-right: 0;
	}

	.content-left ul {
		padding-right: 0;
	}
}

@media only screen and (min-width: 768px) {
	.header-default .themesflat-top .content-item:not(:last-child) {
		margin-left: 45px;
		margin-right: 0;
	}
}

@media only screen and (min-width: 1200px) {
	.header-default .themesflat-top .content-item:not(:last-child) {
		margin-left: 140px;
		margin-right: 0;
	}
}


.header-customize-mobile {
	> div {
		margin-left: 0;
		margin-right: 15px;
	}
}

@media only screen and (max-width: 767px) {
	.topbar-mobile {
		ul li {
			padding-right: 1.5em;
			padding-left: 0;
		}
	}
}

.header-style-01, .header-style-02 {
	.themesflat-top {
		.btn-header {
			margin-right: 50px;
			margin-left: 0;
		}
	}
}


/* Header
-------------------------------------------------------------- */

/* header-default */
header.header-default {
	.header-wrap .nav-wrap {
		margin-left: 20px;
		margin-right: 0;
	}

}


/* button header */
.btn-topbar,
.btn-header {
	i {
		padding-right: 5px;
		padding-left: 0;
	}

}

.wrap-btn-topbar .btn-topbar,
.wrap-btn-header .btn-header {
	margin-right: 20px;
	margin-left: 0;
}

//header-customize
#header .header-customize {
	.header-customize-item {
		margin-right: 20px;
		margin-left: 0;
	}
}

//header-info
.themesflat-header-info {

	.header-info-item:not(.wrap-btn-header) {
		.info-label {
			margin-left: 5px;
			margin-right: 0;
		}

		+ .header-info-item {
			padding-right: 30px;
			padding-left: 0;
		}
	}
}

/* submenu */
#mainnav ul.sub-menu {
	padding: 0;
	text-align: right;
	left: auto;
	right: 0;
}


#mainnav ul.sub-menu li ul.sub-menu {
	right: 100%;
	left: auto;
}

#mainnav ul.sub-menu li ul.sub-menu ul.sub-menu ul.sub-menu {
	right: 0;
}

#mainnav ul.sub-menu li ul.sub-menu ul.sub-menu ul.sub-menu ul.sub-menu {
	right: -100%;
	left: auto;
}

#mainnav ul.sub-menu > li.sub-parent:hover::after {
	left: 18px;
	right: 0;
}

/* Page Title
-------------------------------------------------------------- */
.page-title {

	&.inline .page-title-container h1 {
		text-align: right;
	}

	&.inline .breadcrumbs {
		text-align: left;
	}
}


/* widget
-------------------------------------------------------------- */

.widget_archive ul ul, .widget_categories ul ul, .widget_meta ul ul, .widget_nav_menu ul ul, .widget_pages ul ul, .widget_recent_comments ul ul, .widget_recent_entries ul ul, .widget_rss ul ul, .widget.widget_block ul ul {
	padding-left: 0;
	padding-right: 16px;
}

.widget-title, .wp-block-search__label, .widgettitle, .widget_block h2 {
	text-align: right;

	&::after {
		right: 0;
		left: auto;
	}
}

.widget_search, .widget_product_search, .wp-block-search {


	.search-submit, .wp-block-search__button {
		left: 0;
		right: auto;
	}


	.wp-block-search__button {
		&::after {

			left: 17px;
			right: auto;
		}
	}
}


.widget_latest_news,.last-news {
	text-align: right;

	.recent-news {
		padding-right: 0;
	}

	.thumb {
		margin-left: 24px;
		margin-right: 0;
	}

	.item-count-post {
		margin-right: 25px;
		margin-left: auto;

		&:before {
			right: -14px;
			left: auto;
		}
	}
}

.widget-recent-news {
	text-align: right;

	ul {
		padding-right: 0;
	}

	.thumb {
		margin-right: 0;
		margin-left: 20px;
	}

	.title, h6 {
		margin-bottom: 3px;

		a {

			padding-right: 0;
			padding-left: 100px;
		}
	}

}

.widget_categories, .widget_product_categories, .widget_archive, .widget_pages, .wp-block-archives, .wp-block-categories-list {
	ul {
		padding-right: 0;
	}

	.children {
		padding-left: 0 !important;
	}

}

.widget_categories li::before, .widget_product_categories li::before, .widget_archive li::before, .widget_pages li::before, .wp-block-archives li::before, .wp-block-categories-list li::before {
	right: 0;
}

.widget_categories li a, .widget_product_categories li a, .widget_archive li a, .widget_pages li a, .wp-block-archives li a, .wp-block-categories-list li a {
	padding-right: 15px;
	padding-left: 0;
}

.widget_categories li a::after, .widget_product_categories li a::after, .widget_archive li a::after, .widget_pages li a::after, .wp-block-archives li a::after, .wp-block-categories-list li a::after {
	right: auto;
	left: 0;
}

.widget_rss ul {
	padding-right: 0;

	li {
		text-align: right;
	}

}

.widget_recent_comments {
	ul {
		text-align: right;
	}

	li {
		text-align: right;
	}

}

.widget_meta {
	ul {
		text-align: right;
	}

	text-align: right;

}

.widget_nav_menu {
	.menu {
		text-align: right;
	}
}

.widget_text {
	.textwidget {
		text-align: right;
	}
}

.widget_tag_cloud {
	.tagcloud {
		text-align: right;
	}
}

.wp-block-latest-comments {
	padding-right: 0;
	text-align: right;
}

.wp-block-group__inner-container {
	text-align: right;
}

/* Testimonial
-------------------------------------------------------------- */


.tf-testimonial-carousel {
	.name {
		font-size: 16px;
		font-weight: 700;
	}

	.position {
		font-size: 14px;
		line-height: 1.3;
	}

	.description {
		font-size: 14px;
		font-weight: 300;
	}

	.item-testimonial {
		background-color: #fff;
		line-height: 2;
	}

	&.style1 {
		.item-testimonial {
			padding: 38px 30px 30px 37px;
		}

		.description {
			margin-top: 10px;
		}
	}

	&.style2 {
		.item-testimonial {
			padding: 52px 40px 28px 40px;
		}

		.name {
			margin-top: 10px;
		}
	}

	&.style3 {
		.description {
			margin-bottom: 33px;
		}

		.item-testimonial {
			padding: 40px 50px 45px;
		}

		.wrap-author {
			@include d-flex();
			@include justify-content-between();
		}
	}
}


/* Post
-------------------------------------------------------------- */

.blog-grid .blog-post:not(.blog-single), .related-post .post, .tf-posts .blog-post {
	.content-post {
		text-align: right;
	}
}

.blog-archive .blog-post:not(.blog-single) .content-post, .related-post .post .content-post, .tf-posts .blog-post .content-post, .blog-list .blog-post .content-post {
	.entry-title {
		text-align: right;
	}

	.post-excerpt {
		text-align: right;
	}

	.themesflat-button-container {
		text-align: right;
	}

	.item-meta:not(:last-child) {
		margin-left: 20px;
		padding-left: 20px;
		border-left: 1px solid var(--theme-color-border);
		margin-right: 0;
		padding-right: 0;
		border-right: 0;
	}

}

.blog-post .meta-icon {
	margin-left: 10px;
	margin-right: 0;
}

.blog-archive .blog-post:not(.blog-single) .content-post .themesflat-readmore-archive .button-icon, .related-post .post .content-post .themesflat-readmore-archive .button-icon, .tf-posts .blog-post .content-post .themesflat-readmore-archive .button-icon, .blog-list .blog-post .content-post .themesflat-readmore-archive .button-icon {
	margin-right: 10px;
	margin-left: 0;
}

.blog-post .item-meta:not(:last-child) {
	margin-left: 30px;
	padding-left: 30px;
	border-left: 1px solid var(--theme-color-border);
	margin-right: 0;
	padding-right: 0;
	border-right: 0;
}

.single-post .entry-footer .social-share-article > span {
	margin-right: 0;
	margin-left: 30px;
}

.themesflat-tags-lable {
	margin-right: 0;
	margin-left: 20px;
}

.social-share-article ul {
	padding-right: 0;
}

.single-post .entry-footer .tags-links {
	text-align: right;
}

.single-post .entry-footer .themesflat-socials li:not(:last-child) {
	margin-left: 26px;
	margin-right: 0;
}

.posts-navigation .nav-links .next-post .tf-nav i {
	margin-right: 10px;
	margin-left: 0;
}

.posts-navigation .nav-links .tf-nav i {
	margin-right: 0;
	margin-left: 10px;
}

.posts-navigation .nav-links .next-post .tf-nav-post .thumbnail {
	margin-left: 0;
	margin-right: 30px;
}

.posts-navigation .nav-links .tf-nav-post .thumbnail {
	margin-right: 0;
	margin-left: 30px;
}

.themesflat-button-submit .wrap-input-submit .submit {
	margin-left: 15px;
	margin-right: 0;
}

.themesflat-comment-top {
	@include justify-content-end();
}

.comment-list .comment_wrap .comment_meta {
	margin-left: auto;
	margin-right: 0;
}

.comment-list .comment_wrap .comment_date::before {
	left: auto;
	right: 0;
}

.comment-list .comment_wrap .comment_date {
	padding-right: 40px;
	margin-right: 30px;
	padding-left: 0;
	margin-left: 0;
}

.comment-list .comment_wrap .comment_reply a {
	margin-left: 8px;
	margin-right: 0;
}

.widget-recent-news .item-meta:not(:last-child) {
	margin-left: 20px;
	padding-left: 20px;
	border-left: 1px solid var(--theme-color-border);
	margin-right: 0;
	padding-right: 0;
	border-right: 0;
}
.widget-recent-news .item-meta .icon{
	margin-left: 10px;
	margin-right: 0;
}
.tf-course-details{
	padding-right: 0;
}
.widget_course_details .tf-course-details .courses-details-item .icon{
	margin-right: 0;
	margin-left: 20px;
}

/* Footer
-------------------------------------------------------------- */

.footer {
	.widget_nav_menu {
		text-align: right;

		.menu {
			padding-right: 0;
		}

	}
}

/*Comments
 -----------------------------------------------------------------*/
.comments-area {
	.gravatar {
		margin-right: 0;
		margin-left: 29px;
	}

	.comment_content {
		text-align: right;
	}

	.comment-respond {
		text-align: right;
	}

	.comment-reply-title {
		padding-right: 0;
	}

	#cancel-comment-reply-link {
		left: 0 !important;
		right: auto !important;
	}
}

.navigation.paging-navigation.pager a:not(:last-child), .navigation.paging-navigation.pager-numeric a:not(:last-child), .navigation.paging-navigation.pager span:not(:last-child), .navigation.paging-navigation.pager-numeric span:not(:last-child), .navigation.paging-navigation.numeric a:not(:last-child), .navigation.paging-navigation.numeric span:not(:last-child), .page-links a:not(:last-child), .page-links span:not(:last-child){
	margin-left: 10px;
	margin-right: 0;
}


//=======================================
//Course
.courses-post-style1 .tf-course-addition-informartion .addition-informartion-item:first-child {
	border-left: 1px solid var(--theme-color-border);
	margin-left: 30px;
	padding-left: 30px;
	border-right: 0;
	margin-right: 0;
	padding-right: 0;
}
.courses-post .content .title{
	text-align: right;
}
.courses-post .desc{
	text-align: right;
}
.courses-post-style2 .tf-course-addition-informartion .instructor-content{
	margin-left: 0;
	margin-right: 15px;
}
.courses-post-style2 .courses-view-more .icon{
	margin-left: 0;
	margin-right: auto;
}

/*
-------------------------------------------------------------
Service
 */

.single-services .post-title{
	text-align: right;
}