/**
 * Single news article layout.
 */

.epah-theme.single-post .epah-single-post-main {
	display: flow-root;
	min-height: 60vh;
	padding: 0;
	background: #f8f3ed;
}

.epah-theme.single-post .single-entry {
	margin: 0;
}

.epah-theme.single-post .single-entry-hero {
	position: relative;
	overflow: hidden;
	margin: 0;
	padding: clamp(76px, 8vw, 118px) 24px clamp(92px, 10vw, 145px);
	background:
		radial-gradient(circle at 12% 24%, rgb(215 168 110 / 16%), transparent 25%),
		radial-gradient(circle at 82% 120%, rgb(142 50 0 / 65%), transparent 42%),
		linear-gradient(125deg, #211008 0%, #3d1a0d 58%, #61260d 100%);
}

.epah-theme.single-post .single-entry-hero::before {
	position: absolute;
	inset-block: -10%;
	inset-inline-start: -3%;
	width: min(42vw, 560px);
	content: "";
	background: url("/wp-content/uploads/2024/06/2جمعية-الآثار-والتراث-بالمنطقه-الشرقيه-logo-.svg") center / contain no-repeat;
	opacity: 0.055;
	filter: grayscale(1) brightness(4);
}

.epah-theme.single-post .single-entry-hero__inner {
	position: relative;
	z-index: 1;
	width: min(1040px, 100%);
	margin-inline: auto;
	text-align: right;
}

.epah-theme.single-post .single-entry-back {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	margin-block-end: 32px;
	padding: 7px 15px;
	border: 1px solid rgb(215 168 110 / 35%);
	border-radius: 999px;
	background: rgb(255 255 255 / 6%);
	color: #f0c58d;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.epah-theme.single-post .single-entry-back::before {
	margin-inline-end: 8px;
	content: "→";
}

.epah-theme.single-post .single-entry-back:hover,
.epah-theme.single-post .single-entry-back:focus-visible {
	border-color: rgb(215 168 110 / 65%);
	background: rgb(255 255 255 / 11%);
	color: #fffaf4;
}

.epah-theme.single-post .single-entry-kicker {
	display: block;
	margin-block-end: 13px;
	color: #d7a86e;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.epah-theme.single-post .single-entry-hero .entry-title {
	max-width: 980px;
	margin: 0;
	color: #fffaf4;
	font-size: clamp(38px, 5.2vw, 66px);
	font-weight: 700;
	line-height: 1.35;
	text-wrap: balance;
}

.epah-theme.single-post .single-entry-hero .entry-meta {
	display: inline-flex;
	align-items: center;
	margin-block-start: 26px;
	color: rgb(255 250 244 / 70%);
	font-size: 14px;
	font-weight: 500;
}

.epah-theme.single-post .single-entry-hero .entry-meta::before {
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-inline-end: 10px;
	content: "";
	border-radius: 50%;
	background: #d7a86e;
	box-shadow: 0 0 0 5px rgb(215 168 110 / 12%);
}

.epah-theme.single-post .single-entry-body {
	position: relative;
	z-index: 2;
	width: min(1040px, calc(100% - 48px));
	margin: -64px auto 0;
	padding-block-end: clamp(72px, 8vw, 108px);
}

.epah-theme.single-post .entry-thumbnail {
	position: relative;
	width: 100%;
	margin: 0;
	overflow: hidden;
	border: 1px solid rgb(142 50 0 / 11%);
	border-radius: 28px;
	background: #eadccd;
	box-shadow: 0 28px 75px rgb(60 29 14 / 17%);
}

.epah-theme.single-post .entry-thumbnail img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 650px;
	object-fit: cover;
}

.epah-theme.single-post .entry-content {
	width: 100%;
	margin-block-start: 28px;
	padding: clamp(38px, 6vw, 72px);
	border: 1px solid rgb(142 50 0 / 9%);
	border-radius: 28px;
	background: #fff;
	box-shadow: 0 22px 62px rgb(66 34 18 / 9%);
	color: #4b352b;
	font-size: clamp(17px, 1.45vw, 19px);
	font-weight: 500;
	line-height: 2.1;
}

.epah-theme.single-post .single-entry:not(.has-post-thumbnail) .entry-content {
	margin-block-start: 0;
}

.epah-theme.single-post .entry-content > * {
	width: min(790px, 100%);
	max-width: 790px;
	margin-inline: auto;
}

.epah-theme.single-post .entry-content p {
	margin-block: 0 1.55em;
	text-align: right !important;
}

.epah-theme.single-post .entry-content p:last-child {
	margin-block-end: 0;
}

.epah-theme.single-post .entry-content h2,
.epah-theme.single-post .entry-content h3,
.epah-theme.single-post .entry-content h4 {
	margin-block: 1.6em 0.65em;
	color: #8e3200;
	font-weight: 700;
	line-height: 1.5;
}

.epah-theme.single-post .entry-content a {
	color: #8e3200;
	text-decoration: underline;
	text-decoration-color: rgb(142 50 0 / 28%);
	text-underline-offset: 4px;
}

.epah-theme.single-post .entry-content blockquote {
	padding: 24px 27px;
	border-inline-start: 4px solid #d7a86e;
	border-radius: 16px;
	background: #f8f3ed;
	color: #5c3928;
}

.epah-theme.single-post .entry-content figure {
	margin-block: 36px;
}

.epah-theme.single-post .entry-content .wp-block-image img,
.epah-theme.single-post .entry-content .wp-block-gallery img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 18px;
}

.epah-theme.single-post .entry-content .wp-block-gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	width: 100%;
	max-width: 100%;
}

.epah-theme.single-post .entry-content .wp-block-gallery figure {
	width: 100% !important;
	margin: 0 !important;
}

.epah-theme.single-post .entry-content .wp-block-gallery img {
	height: 330px;
	object-fit: cover;
}

.epah-theme.single-post .single-post-navigation {
	width: min(1040px, calc(100% - 48px));
	margin: 0 auto clamp(38px, 4vw, 54px);
}

.epah-theme.single-post .single-post-navigation > h2 {
	margin: 0 0 24px;
	color: #8e3200;
	font-size: clamp(25px, 2.8vw, 34px);
	font-weight: 700;
}

.epah-theme.single-post .post-navigation {
	margin: 0;
}

.epah-theme.single-post .post-navigation .nav-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.epah-theme.single-post .post-navigation .nav-previous,
.epah-theme.single-post .post-navigation .nav-next {
	min-width: 0;
}

.epah-theme.single-post .post-navigation a {
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 100%;
	min-height: 138px;
	padding: 24px 27px;
	border: 1px solid rgb(142 50 0 / 11%);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 15px 42px rgb(66 34 18 / 7%);
	text-decoration: none;
	transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.epah-theme.single-post .post-navigation a:hover,
.epah-theme.single-post .post-navigation a:focus-visible {
	border-color: rgb(142 50 0 / 24%);
	box-shadow: 0 20px 48px rgb(66 34 18 / 12%);
	transform: translateY(-3px);
}

.epah-theme.single-post .post-navigation .nav-subtitle {
	margin-block-end: 8px;
	color: #b78649;
	font-size: 12px;
	font-weight: 700;
}

.epah-theme.single-post .post-navigation .nav-title {
	color: #56311f;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.7;
}

@media (max-width: 767px) {
	.epah-theme.single-post .single-entry-hero {
		padding: 56px 20px 100px;
	}

	.epah-theme.single-post .single-entry-hero::before {
		inset-inline-start: -28%;
		width: 105vw;
		opacity: 0.04;
	}

	.epah-theme.single-post .single-entry-back {
		margin-block-end: 25px;
	}

	.epah-theme.single-post .single-entry-hero .entry-title {
		font-size: clamp(30px, 9vw, 39px);
		line-height: 1.45;
	}

	.epah-theme.single-post .single-entry-body,
	.epah-theme.single-post .single-post-navigation {
		width: calc(100% - 32px);
	}

	.epah-theme.single-post .single-post-navigation {
		margin-block-end: 36px;
	}

	.epah-theme.single-post .single-entry-body {
		margin-block-start: -46px;
		padding-block-end: 64px;
	}

	.epah-theme.single-post .entry-thumbnail,
	.epah-theme.single-post .entry-content {
		border-radius: 21px;
	}

	.epah-theme.single-post .entry-content {
		margin-block-start: 18px;
		padding: 30px 23px;
		font-size: 16px;
		line-height: 2;
	}

	.epah-theme.single-post .entry-content figure {
		margin-block: 26px;
	}

	.epah-theme.single-post .entry-content .wp-block-gallery {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.epah-theme.single-post .entry-content .wp-block-gallery img {
		height: auto;
		max-height: 420px;
	}

	.epah-theme.single-post .post-navigation .nav-links {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.epah-theme.single-post .post-navigation a {
		min-height: 118px;
		padding: 21px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.epah-theme.single-post .single-entry-back,
	.epah-theme.single-post .post-navigation a {
		transition: none;
	}
}
