/* Pagination
-------------------------------------------------------------- */
.posts-navigation {
	padding-top: 51px;

	.nav-links {
		padding-left: 0 !important;
	}
}

.navigation.paging-navigation {
	padding-top: 30px;
}

.navigation.paging-navigation .pagination,
.navigation.paging-navigation.pager {
	margin: 0 0;
	text-align: left;
	display: inline-flex;
}

.navigation.paging-navigation.pager .pagination {
	width: 100%;
	@include d-flex();
}

.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-right: 10px;
}

.navigation.paging-navigation a,
.pagination.paging-navigation > span,
.navigation.paging-navigation span,
.page-links a, .page-links > span {
	position: relative;
	width: 50px;
	height: 50px;
	border: 1px solid var(--theme-color-border);
	@include d-flex();
	@include align-items-center();
	@include justify-content-center();
	border-radius: 50%;
	font-size: 16px;
	line-height: 26px;
	font-weight: 600;
	font-family: var(--theme-font-primary);
	color: var(--theme-accent-color);
}

.navigation.paging-navigation .current, .navigation.paging-navigation a:hover,
.navigation.paging-navigation a.next:hover {
	background-color: var(--theme-secondary-color);
	border-color: var(--theme-secondary-color);
	color: var(--theme-accent-color);
}

.page-links {
	margin-top: 30px;
	@include d-flex();
	@include flex-wrap();
	@include align-items-center();
}
.page-links a:first-child,.page-links>span:first-child{
	margin-left: 10px;
}

.page-links a:hover, .page-links a:focus,
.page-links > span {
	color: var(--theme-accent-color);
	border-color: var(--theme-secondary-color);
}

.navigation.paging-navigation a.next i,
.navigation.paging-navigation a.prev i {
	margin-left: 5px;
	font-size: 12px;
}

.navigation.loadmore .pagination {
	display: inline-flex;
}

.search .nav-links .nav-previous {
	float: left;
}

.search .nav-links .nav-next {
	float: right;
}

/* Navigation Loadmore */
.post-wrap {
	-webkit-transition: height 0.5s ease;
	-moz-transition: height 0.5s ease;
	-ms-transition: height 0.5s ease;
	-o-transition: height 0.5s ease;
	transition: height 0.5s ease;
}

.navigation.loadmore {
	text-align: center;

}

.navigation.loadmore a svg {
	margin-right: 10px;
	margin-top: -3px;
}

.navigation.loadmore a:hover svg {
	-webkit-animation: fa-spin 2s infinite linear;
	animation: fa-spin 2s infinite linear;
}

.infscr-loading {
	background: url("images/loading.gif") no-repeat scroll center 15px;
	top: 50%;
	transform: translateY(-50%);
	color: #ccc;
	left: 50%;
	margin-left: -90px;
	padding: 80px 0 10px;
	position: fixed;
	text-align: center;
	width: 180px;
	z-index: 100;
	-webkit-border-radius: 0;
	-moz-border-radius: 0;
	border-radius: 0;
}

.infscr-loading.no-ajax {
	padding: 10px;
}

.flex-box {
	display: flex;
	align-items: center;
}

.paging-navigation {
	&.loadmore {
		a {
			font-family: var(--theme-btn-font);
			font-style: var(--theme-btn-font-style);
			font-size: var(--theme-btn-font-size);
			letter-spacing: var(--theme-btn-letter-spacing);
			line-height: 35px;
			padding: 12px 44px 12px 31px;
			position: relative;
			display: inline-block;
			cursor: pointer;
			z-index: 2;
			font-weight: 700;
			border-color: transparent;
			text-transform: uppercase;
			border-width: 0;
			border-radius: 5px;
			overflow: hidden;
			background-color: var(--theme-secondary-color);
			color: #fff;
			@include transition(all 0.35s ease);
			width: auto;
			height: auto;
			margin-right: 0;

			&::after {
				content: "\f061";
				font-family: "Font Awesome 5 Pro";
				display: inline-block;
				position: absolute;
				right: 20px;
				top: 50%;
				transform: translateY(-50%);
				font-size: 10px;
				margin-top: 1px;
				margin-left: 6px;
				color: #ffffff;
				z-index: 10;
			}

			&:hover {
				background-color: var(--theme-accent-color);
				color: var(--theme-accent-foreground-color);
				@include transition(all 0.5s ease);
			}

		}
	}
}

.posts-navigation {
	padding-bottom: 61px;
}

.posts-navigation .nav-links {
	list-style: none;
	@include d-flex();
	@include flex-wrap();
	margin: 0 -60px;
	position: relative;

	&::before {
		content: '\f009';
		font-family: "Font Awesome 5 Pro";
		position: absolute;
		top: 80px;
		left: 50%;
		@include transform(translateX(-50%));
		color: #000;
		font-size: 20px;
		font-weight: 900;
	}

	.previous-post, .next-post {
		@include flex(0 0 50%);
		max-width: 50%;
		padding: 0 60px;
	}


	a {
		display: block;
		text-align: left;
		border: none;
		padding: 0;
		margin-bottom: 0;
		width: auto;
		height: auto;
	}

	.tf-nav {
		@include d-flex();
		margin-bottom: 45px;
		color: var(--theme-accent-color);

		i {
			font-size: 24px;
			margin-right: 10px;
			transition: all 0.2s;
		}

		.text {
			font-size: 14px;
			font-weight: 600;
			line-height: 24px;
		}
	}

	.tf-nav-post {
		@include d-flex();
		@include align-items-center();

		.thumbnail {
			@include flex(0 0 80px);
			max-width: 80px;
			margin-right: 30px;
		}
	}

	.tf-nav-post-content {
		span {
			display: block;
		}
	}

	.tf-nav-post-title {
		font-size: 16px;
		line-height: 26px;
		font-weight: 600;
		font-family: var(--theme-font-primary);
		margin-bottom: 5px;
		color: #1F1E17;
		max-width: 186px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.tf-nav-post-meta {
		font-size: 14px;
		line-height: 24px;
		font-weight: 500;
		color: var(--theme-color-text-main)
	}

	.next-post {
		@include d-flex();
		@include flex-column();
		@include align-items-end();
		margin-left: auto;
		.tf-nav-post {
			@include flex-row-reverse();
			text-align: right;

			.thumbnail {
				margin-left: 30px;
				margin-right: 0;
			}

		}

		.tf-nav {
			@include justify-content-end();

			i {
				margin-left: 10px;
				margin-right: 0;
			}
		}
	}

	a:hover {
		color: currentColor;

		.tf-nav i {
			color: var(--theme-secondary-color);
		}
	}

	@media only screen and (max-width: 576px) {
		&::before {
			display: none;
		}
		.previous-post, .next-post {
			@include flex(1 1 100%);
			max-width: 100%;
		}
		.previous-post {
			margin-bottom: 30px;
		}
	}

}

.paging-navigation {
	&.pager-numeric, .numeric {
		text-align: center;
	}

	.next, .prev {
		font-size: 14px;
	}

}
