article:before, article:after, .entry-content:before, .entry-content:after {
	content: "";
	display: table;
	clear: both;
}

.single {
	.entry-footer:not(:last-child) {
		margin: 0 0 48px 0;
	}
}

.blog-single {
	.main-post {
		margin-top: 30px;
	}

	.meta-category-list {
		a {
			color: var(--theme-color-text-main);
			z-index: 1;
			line-height: 24px;
			font-size: 14px;
		}
	}

	.post-meta {
		@include flex-wrap();
		margin-bottom: 0;

		.item-meta {
			margin-bottom: 13px;
		}

	}

	.item-meta {
		color: var(--theme-color-text-main);
		font-family: var(--theme-font-body) !important;
		font-size: 14px;
		line-height: 16px;

		a:hover {
			color: var(--theme-secondary-color);
		}

		&:not(:last-child) {
			margin-right: 20px;
		}
	}

	.item-meta a, .item-meta span {
		color: inherit;
	}

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

	.post-author {
		a {
			display: inline-block;
			margin-left: 5px;
			color: var(--theme-secondary-color);
		}
	}
}

.entry-content {
	&:not(:last-child) {
		margin-bottom: 39px;
	}

	h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
		margin-bottom: 10px;
	}

	ul, ol {
		padding-left: 15px;
	}

	li > ul, li > ol {
		margin-bottom: 0;
		margin-top: 0;
	}
}

.wp-block-rss, .wp-block-latest-comments, .wp-block-archives-list {
	padding-left: 0 !important;
}

.blog-single:not(.format-gallery).has-post-thumbnail {
	.featured-post {
		position: relative;
		margin-bottom: 48px;
	}
}

//list
.blog-post:not(.blog-single), .related-post .post {
	.featured-post {
		.image, a {
			display: block;

			img {
				width: 100%;
			}

		}
	}
}

.blog-archive.archive-post, .blog-list {
	.item {
		margin-bottom: 40px;
	}
}

.tf-posts {
	.item {
		margin-bottom: 30px;
	}
}

.themesflat-posts-slider {
	.item {
		margin-bottom: 0 !important;
	}
}

.blog-post {
	.post-meta {
		@include flex-wrap();
		margin-bottom: 30px;
		padding-bottom: 17px;
		border-bottom: 1px solid var(--theme-color-border);
	}

	.item-meta {
		@include d-flex();
		@include align-items-center();
		@include flex-wrap();
		margin-bottom: 13px;
	}

	.item-meta:not(:last-child) {
		margin-right: 30px;
		padding-right: 30px;
		border-right: 1px solid var(--theme-color-border);
		@media only screen and (max-width: 576px) {
			border-right: 0;
		}
	}

	.item-meta a {
		color: var(--theme-color-text-main);
		font-size: 14px;
		line-height: 24px;
		font-weight: 500;

		&:hover {
			color: var(--theme-secondary-color);
		}
	}

	.meta-icon {
		color: var(--theme-secondary-color);
		display: block;
		margin-right: 10px;
	}

	.item-meta a, .item-meta span, .item-meta {
		font-family: var(--theme-font-body) !important;
		font-size: 14px;
		line-height: 16px;
		color: inherit;

		&:not(:first-child) {
			margin-left: 5px;
		}

	}
}

.blog-archive .blog-post:not(.blog-single), .related-post .post, .tf-posts .blog-post, .blog-list .blog-post {
	iframe {
		width: 100%;
		max-width: 100%;
	}

	.featured-post {
		position: relative;
		overflow: hidden;

		.themesflat__entry-thumbnail {
			transition: all 0.6s;
			@include transform(scale(1));
			position: relative;
			z-index: 2;

			&::after {
				content: '';
				position: absolute;
				top: 0;
				left: 0;
				width: 100%;
				height: 100%;
				opacity: 0;
				background-color: var(--theme-accent-color);
				@include transition(all 0.7s);
				z-index: 1;
			}
		}

		img {
			transition: all 0.6s;
			@include transform(scale(1));
		}
	}

	.content-post {
		padding-top: 31px;
		box-shadow: 0 10px 50px rgba(0, 0, 0, 0.08);
		padding-left: 40px;
		padding-right: 40px;
		padding-bottom: 40px;
		position: relative;
		z-index: 4;
		@media only screen and (max-width: 576px) {
			padding-left: 20px;
			padding-right: 20px;
		}

		.entry-title {
			line-height: 40px;
			font-size: 30px;
			margin: 0;
			text-transform: capitalize;
			font-weight: 500;
			@media only screen and (max-width: 992px) {
				font-size: 24px;
			}

			a {
				color: #1C2833;

				&:hover {
					color: var(--theme-secondary-color);
				}
			}
		}

		.image::after, .featured-post a::after {
			opacity: 0.6;
		}

		.post-content {
			margin-top: 20px;
		}

		.themesflat-readmore-archive {
			margin-top: 30px;
			font-size: 14px;
			line-height: 24px;
			font-weight: 600;
			text-transform: uppercase;
			color: var(--theme-accent-color);
			width: 100%;
			transition: all 0.3s ease 0s;

			&:hover {
				color: var(--theme-secondary-color);
			}

			.button-text {
				text-decoration: underline;
			}

			.button-icon {
				display: inline-block;
				margin-left: 15px;
				font-size: 22px;
			}
		}
	}

	&:hover {
		.featured-post {
			.themesflat__entry-thumbnail {
				@include transform(scale(1.1));

				&::after {
					opacity: 0.8;
				}
			}

			img {
				@include transform(scale(1.1));
			}

		}
	}

	&.has-post-thumbnail {
		.content-post {
			position: relative;
			z-index: 20;
			background: #fff;
			margin-left: 40px;
			margin-right: 40px;
			margin-top: -150px;
			box-shadow: 0 10px 50px rgba(0, 0, 0, 0.08);
			@media only screen and (max-width: 576px) {
				margin-left: 20px;
				margin-right: 20px;
			}

		}
	}

	.themesflat_video_embed {
		.video-video-box-button-sm {
			top: 38%;
		}
	}
}

.single-post {
	.post-wrap {
		border-width: 1px 1px 1px 1px;
		border-style: solid;
		border-color: var(--theme-color-border);
	}

	.main-single {
		padding: 0 50px 50px 50px;
		@media only screen and (max-width: 470px) {
			padding: 0 20px 20px 20px;
		}

	}

	.featured-post {
		overflow: hidden;

		img {
			transition: all 0.6s;
			@include transform(scale(1));
		}

		&:hover {
			img {
				@include transform(scale(1.1));
			}
		}
	}

	.comment-respond .logged-in-as {
		margin-bottom: 46px;
		font-size: 14px;
		line-height: 19px;
	}

	.post-meta {
		padding-bottom: 10px;
	}

	figure:last-child {
		margin-bottom: 0 !important;
	}

	iframe {
		width: 100%;
		max-width: 100%;
	}

	.entry-footer {
		@include d-flex();
		border-bottom: 1px solid var(--theme-color-border);
		padding-bottom: 39px;

		.tags-links {
			@include flex(0 0 65%);
			max-width: 65%;
		}

		.themesflat-socials {
			li:not(:last-child) {
				margin-right: 21px;
			}

		}

		.social-share-article {
			@include d-flex();
			@include align-items-center();
			@include flex-wrap();
			@include flex(0 0 35%);
			max-width: 35%;

			&:not(:first-child) {
				@include justify-content-end();
			}

			> span {
				margin-right: 30px;
				font-weight: 600;
				color: var(--theme-accent-color);
				font-family: var(--theme-font-primary);
			}
		}

		@media only screen and (max-width: 576px) {
			.tags-links, .social-share-article {
				@include flex(1 1 100%);
				max-width: 100%;
			}
			.social-share-article {
				@include justify-content-start();
			}
		}
	}
}

.themesflat_video_embed {
	.video-video-box-overlay {
		z-index: 2;
	}

	&::after {
		content: "";
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-color: rgba(0, 0, 0, 0.7);
		z-index: 1;
	}

	.video-video-play-icon {
		width: 120px;
		height: 120px;
		padding: 0;
		background: transparent;
		border: 1px solid rgba(255, 255, 255, 0.5);
		color: #fff;
		position: relative;

		&:hover {
			color: var(--theme-accent-color);
		}

		&:before, &:after {
			-webkit-animation: video-box-shadow 1600ms ease-in-out 0ms;
			animation: video-box-shadow 1600ms ease-in-out 0ms;
			-webkit-animation-iteration-count: infinite;
			animation-iteration-count: infinite;
			width: 100%;
			height: 100%;
			content: "";
			top: 0;
			left: 0;
			position: absolute;
			border-radius: 50%;
			-webkit-transition: transform 0.3s ease-in-out;
			transition: transform 0.3s ease-in-out;
		}

		&:after {
			-webkit-animation-delay: 800ms;
			animation-delay: 800ms;
		}
	}
}

.related-post {
	margin-top: 50px;

	.box-title {
		text-align: center;
	}

	.blog-grid .item {
		padding: 0 !important;
	}

	.post {
		.content-post {
			.entry-title {
				font-size: 24px;
				@media only screen and (max-width: 992px) {
					font-size: 20px;
				}
			}
		}
	}
}

.tf-posts, .blog-grid {
	.item {
		padding-left: 15px;
		padding-right: 15px;
	}

	.blog-post {
		.content-post {
			.entry-title {
				font-size: 24px;
			}

		}
	}
}

.sticky, .tag-sticky-2 {
	.entry-title:before {
		content: '\f08d';
		font-family: var(--theme-font-icon-primary);
		font-size: 25px;
		margin-right: 15px;
	}
}

.single .sticky, .single .tag-sticky-2 {
	padding: 30px;
}

.wrap-posts {
	--tf-post-gap: 30px;
	margin-left: calc(0px - (var(--tf-post-gap) / 2));
	margin-right: calc(0px - (var(--tf-post-gap) / 2));

	.slick-slide {
		padding: 0;
	}

	.item {
		padding-left: calc((var(--tf-post-gap) / 2));
		padding-right: calc((var(--tf-post-gap) / 2));
		margin-bottom: var(--tf-post-gap);
	}

}

.themesflat-posts-slider {
	.item {
		max-width: 100%;
		width: 100%;
	}
}

.tf-post-list-main {
	.navigation {
		padding-top: 26px;
	}
}

.tf-posts {
	.tf-post-style1 {
		.blog-post {
			position: relative;
			overflow: hidden;

			.content-post {
				margin: 0;
				box-shadow: none;
				position: absolute;
				left: 0;
				bottom: 0;
				padding: 30px 25px 0 25px;
				z-index: 4;
				width: 100%;
				background: #fff;
				transition: all 0.7s;
				@include transform(translateY(100%));

				.entry-title {
					font-family: var(--theme-font-primary);
					font-size: 24px;
					line-height: 34px;
					margin-bottom: 22px;
				}
			}

			.tf-time {
				background-color: var(--theme-secondary-color);
				position: absolute;
				top: 30px;
				left: 30px;
				z-index: 3;
				text-align: center;
				padding: 6px 13px;
			}

			.post-date {
				display: block;
				font-size: 30px;
				line-height: 40px;
				font-family: var(--theme-font-primary);
				color: var(--theme-accent-color);
				font-weight: 600;
			}

			.post-month {
				display: block;
				font-size: 12px;
				line-height: 20px;
				font-family: var(--theme-font-primary);
				color: var(--theme-accent-color);
				font-weight: 500;
			}

			.themesflat-readmore-archive {
				margin-top: 0;
			}

			&:hover {
				.content-post {
					@include transform(translateY(0));
				}
			}
		}
	}

	.tf-post-style2 {
		.blog-post {
			position: relative;

			.post-meta {
				border-bottom: none;
				margin-bottom: 6px;
				padding-bottom: 0;
			}

			.item-meta {
				border-right: none;
				padding-right: 0;
				margin-left: 0 !important;
				font-size: 16px;

				&:not(:last-child) {
					margin-right: 15px;
				}

				.meta-icon {
					margin-right: 7px;
					font-size: 18px;
				}

				span, a {
					margin-left: 0 !important;
					font-family: var(--theme-font-primary) !important;
				}
			}

			.content-post {
				transition: all 0.5s;
				margin: 0;
				@media only screen and (min-width: 992px) {
					padding: 35px 40px 49px 40px;
				}
				padding: 35px 20px 40px;
				.themesflat-readmore-archive {
					margin-top: 19px;
				}
			}

			.entry-title {
				font-size: 24px;
				line-height: 34px;
			}

			.button-icon {
				color: var(--theme-secondary-color);
			}

			.themesflat-button-container {
				margin-top: -70px;
				opacity: 0;
				transition: all 0.5s;

			}

			&:hover {
				.themesflat-button-container {
					margin-top: 0;
					opacity: 1;
				}
			}

			&.has-post-thumbnail {
				@media only screen and (min-width: 992px) {
					.content-post {
						padding: 35px 40px 49px 40px;
						margin-left: 20px;
						margin-right: 20px;
						position: absolute;
						top: 57%;
						left: 0;
					}
				}

			}
		}
	}

	.tf-post-style3 {
		.blog-post {
			position: relative;

			&::after {
				content: '';
				position: absolute;
				left: 0;
				bottom: 0;
				width: 0;
				height: 2px;
				background-color: var(--theme-secondary-color);
				z-index: 6;
				transition: all 0.6s;

			}

			.themesflat__entry-thumbnail {
				&::after {
					opacity: 0.8;
					background-color: var(--theme-accent-color);
				}
			}

			.post-meta {
				border-bottom: none;
				margin-bottom: 3px;
				padding-bottom: 0;
				border-top: 1px solid rgba(255, 255, 255, 0.3);
				padding-top: 25px;
			}

			.item-meta {
				border-right: none;
				color: #fff;
				transition: all 0.3s ease 0s;
				margin-bottom: 17px;

				a {
					color: inherit;

					&:hover {
						color: var(--theme-secondary-color) !important;
					}
				}

				&:not(:last-child) {
					padding-right: 0;
					margin-right: 10px;
				}

				.meta-icon {
					margin-right: 5px;
					font-size: 18px;
				}
			}

			.content-post {
				padding: 8px 40px 40px 40px;
				margin-left: 0;
				margin-right: 0;
				margin-top: 0;
				position: absolute;
				left: 0;
				bottom: 0;
				background: transparent;
				z-index: 4;
				width: 100%;
				transition: all 0.5s;
			}

			.entry-title {
				font-size: 24px;
				line-height: 34px;

				a {
					color: #fff;

					&:hover {
						color: var(--theme-secondary-color) !important;
					}
				}

			}

			.button-icon {
				color: var(--theme-secondary-color);
			}

			&:hover {
				&::after {
					width: 100%;
				}

				.content-post {
					background: #fff;

					a {
						color: var(--theme-accent-color);
					}

					.item-meta {
						color: var(--theme-accent-color);
					}
				}
			}

		}

	}
}

.class-name-page-template-featured-image-horizontal .featured-post img {
	width: 100%;
}

