/*--------------------------------------------------------------
# SINGLE

For single post
ONLY for post type = post 
ADD your own stylesheet for custom post type single page 
OR, if it uses sames styles, add it to enqueue style function in functions.php 

--------------------------------------------------------------*/

.single .entry-header img {
	width: 100%;
	height: 222px;
	object-fit: cover;
	object-position: center;
	display: block;
}

.single .site-main > article {
	background-color: var(--bright);
	box-shadow: 2px 2px 10px 0 var(--accent-color);
	margin: 0 auto 120px;
}

.single article .article-container {
	padding: 24px 30px 24px;
	width: 100%;
	max-width: 842px;
	margin: 0 auto;
}

.single .entry-title {
	text-align: center;
	margin: 24px 0 16px;
}

.single .entry-meta {
	margin-bottom: 30px;
	font-size: 16px;
	color: var(--accent-color);
	font-weight: 600;
	text-align: center;
	display: flex;
	justify-content: center;
	gap: 10px;
	position: relative;
}

.single .entry-meta::before {
	content: "";
	position: absolute;
	top: calc(50% - 2px);
	left: calc(50% - 1px);
	width: 4px;
	height: 4px;
	background-color: var(--accent-color);
	border-radius: 100%;
}

.single .entry-content {
	margin: 64px 0;
}

.single .share-btn {
	display: block;
	text-align: right;
	color: var(--accent-color);
	font-size: 16px;
	font-weight: 600;
	line-height: 16px;
	text-decoration: none;
}

.single .share-btn span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	height: 24px;
	width: 24px;
	border-radius: 100%;
	background: linear-gradient(
		to right,
		var(--second-graduate-color-primary),
		var(--second-graduate-color-secondary)
	);
}

article.video .entry-header {
	position: relative;
}

article.video .entry-header:before {
	display: block;
	content: "";
	position: absolute;
	bottom: 25%;
	left: 52%;
	transform: translateX(-50%) rotate(90deg);
	width: 0;
	height: 0;
	border-left: 40px solid transparent;
	border-right: 40px solid transparent;
	border-bottom: 69px solid var(--accent-color);
	z-index: 1;
	filter: blur(4px);
	opacity: 0.85;
}

article.video .entry-header:after {
	display: block;
	content: "";
	position: absolute;
	bottom: 25%;
	left: 50%;
	transform: translateX(-50%) rotate(90deg);
	width: 0;
	height: 0;
	border-left: 40px solid transparent;
	border-right: 40px solid transparent;
	border-bottom: 69px solid var(--white);
	z-index: 2;
}

.article-container h2::before {
	display: none;
}

.article-container h2 {
	text-align: left;
	margin: 20px 0;
}

.post-navigation {
	display: none;
}

.entry-content :is(p, ul, table) {
	line-height: 1.5;
}

.entry-content :is(p, ul, table, div) + :is(p, ul, table, div) {
	margin-top: 15px;
}

.entry-content ul li:not(:last-child) {
	margin-bottom: 8px;
}

.entry-content table {
	border-collapse: collapse;
	width: 100%;
}

.entry-content table th {
	background-color: var(--accent-color);
	color: var(--white);
}

.entry-content table :is(th, td) {
	padding: 5px;
	border: 1px solid var(--accent-color);
	min-width: 30px;
}

.wp-block-table {
	margin: 0;
	overflow: auto;
}

.entry-content .wp-block-button__link {
	display: inline-block;
	background-color: var(--accent-color);
}

.entry-content h3 {
	margin: 15px 0 8px;
}

@media (min-width: 1024px) {
	.single .entry-header img {
		height: 400px;
	}

	.single article .article-container {
		padding: 50px 0 100px;
	}

	.single .entry-title {
		margin: 64px 0 16px;
	}

	.single .entry-meta {
		margin-bottom: 110px;
	}

	.single .entry-meta::after {
		content: "";
		position: absolute;
		bottom: -32px;
		left: calc(50% - 50px);
		width: 100px;
		height: 4px;
		background: var(--accent-color);
	}

	.single .graduate .entry-meta::after {
		background: linear-gradient(
			to right,
			var(--second-graduate-color-primary),
			var(--second-graduate-color-secondary)
		);
	}
}
