/**
 * Single blog post styles
 * Enqueued only on single posts.
 *
 * Breakpoints: 1024px (tablet), 768px (mobile)
 */

.post-single {
	margin: 0;
	padding: 0;
}

/* ------------------------------------------------------------------ Hero */
.post-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 420px;
	padding: 180px 24px 80px;
	background-color: #001a3d;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	overflow: hidden;
	margin-top: -115px;
	text-align: center;
}

.post-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.2) 0%,
		rgba(0, 0, 0, 0.4) 100%
	);
	pointer-events: none;
}

.post-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
}

.post-hero__category {
	margin: 0 0 12px;
	font-family: "Inter", sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #FF6C2C;
}

.post-hero__title {
	margin: 0 0 16px;
	font-family: "Playfair Display", serif;
	font-size: 56px;
	font-weight: 700;
	line-height: 1.15;
	color: #ffffff;
	letter-spacing: -0.02em;
}

.post-hero__meta {
	margin: 0;
	font-family: "Inter", sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.85);
}

.post-hero__author {
	font-weight: 600;
}

.post-hero__meta-sep {
	margin: 0 10px;
	opacity: 0.7;
}

/* ---------------------------------------------------------------- Content */
.post-content {
	padding: 50px 24px;
	background-color: #ffffff;
}

.post-content__inner {
	width: 100%;
	max-width: 860px;
	margin: 0 auto;
}

.post-content__body {
	font-family: "Inter", sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 32px;
	color: #4a4a4a;
}

.post-content__body > *:first-child {
	margin-top: 0;
}

.post-content__body > *:last-child {
	margin-bottom: 0;
}

.post-content__body p {
	margin: 0 0 20px;
}

.post-content__body h2,
.post-content__body h3,
.post-content__body h4 {
	margin: 32px 0 16px;
	font-family: "Playfair Display", serif;
	font-weight: 700;
	line-height: 1.25;
	color: #001a3d;
}

.post-content__body h2 {
	font-size: 32px;
}

.post-content__body h3 {
	font-size: 26px;
}

.post-content__body h4 {
	font-size: 22px;
}

.post-content__body ul,
.post-content__body ol {
	margin: 0 0 20px;
	padding-left: 24px;
}

.post-content__body li {
	margin-bottom: 8px;
}

.post-content__body a {
	color: #FF6C2C;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.post-content__body a:hover {
	color: #001a3d;
}

.post-content__body strong {
	color: #001a3d;
	font-weight: 700;
}

.post-content__body a strong,
.post-content__body strong a {
	color: #FF6C2C;
}

.post-content__body img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 24px 0;
	border-radius: 12px;
}

.post-content__body blockquote {
	margin: 28px 0;
	padding: 20px 24px;
	border-left: 4px solid #FF6C2C;
	background-color: #f7f8fa;
	border-radius: 0 12px 12px 0;
	font-family: "Playfair Display", serif;
	font-size: 22px;
	line-height: 1.5;
	color: #001a3d;
}

/* ---------------------------------------------------------------- Share */
.post-share {
	margin-bottom: 28px;
	padding-bottom: 24px;
	border-bottom: 1px solid #e5e7eb;
}

.post-share--bottom {
	margin-top: 32px;
	margin-bottom: 0;
	padding-top: 24px;
	padding-bottom: 0;
	border-bottom: none;
	border-top: 1px solid #e5e7eb;
}

.post-share__label {
	margin: 0 0 12px;
	font-family: "Inter", sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #6b7280;
}

.post-share__links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.post-share__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	font-family: "Inter", sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: #001a3d;
	text-decoration: none;
	background-color: #f7f8fa;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.post-share__link:hover {
	color: #ffffff;
	background-color: #FF6C2C;
	border-color: #FF6C2C;
}

/* ----------------------------------------------------------------- CTA */
.post-cta {
	margin-top: 40px;
	padding: 32px 28px;
	text-align: center;
	background: linear-gradient(135deg, #001a3d 0%, #003366 100%);
	border-radius: 16px;
}

.post-cta__title {
	margin: 0 0 12px;
	font-family: "Playfair Display", serif;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.25;
	color: #ffffff;
}

.post-cta__text {
	margin: 0 0 24px;
	font-family: "Inter", sans-serif;
	font-size: 17px;
	font-weight: 400;
	line-height: 28px;
	color: rgba(255, 255, 255, 0.9);
}

.post-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	font-family: "Inter", sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: #001a3d;
	text-decoration: none;
	background-color: #FF6C2C;
	border-radius: 8px;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.post-cta__btn:hover {
	color: #001a3d;
	background-color: #ffffff;
	transform: translateY(-2px);
}

/* --------------------------------------------------------------- Author */
.post-author {
	margin-top: 40px;
	padding: 32px 28px;
	background-color: #f7f8fa;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
}

.post-author__label {
	margin: 0 0 8px;
	font-family: "Inter", sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #FF6C2C;
}

.post-author__name {
	margin: 0 0 8px;
	font-family: "Playfair Display", serif;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	color: #001a3d;
}

.post-author__role {
	margin: 0 0 8px;
	font-family: "Inter", sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	color: #001a3d;
}

.post-author__creds {
	margin: 0 0 20px;
	font-family: "Inter", sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	color: #6b7280;
}

.post-author__bio p {
	margin: 0 0 16px;
	font-family: "Inter", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 28px;
	color: #4a4a4a;
}

.post-author__bio p:last-child {
	margin-bottom: 0;
}

.post-author__link {
	display: inline-block;
	margin-top: 20px;
	font-family: "Inter", sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	color: #FF6C2C;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.post-author__link:hover {
	color: #001a3d;
}

/* ---------------------------------------------------------------- Related */
.post-related {
	padding: 50px 24px 70px;
	background-color: #f7f8fa;
}

.post-related__inner {
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
}

.post-related__header {
	margin-bottom: 32px;
	text-align: center;
}

.post-related__title {
	margin: 0 0 12px;
	font-family: "Playfair Display", serif;
	font-size: 36px;
	font-weight: 700;
	line-height: 1.2;
	color: #001a3d;
}

.post-related__accent {
	display: block;
	width: 80px;
	height: 4px;
	margin: 0 auto;
	background-color: #FF6C2C;
	border-radius: 2px;
}

.post-related__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.post-related__card {
	min-width: 0;
	height: 100%;
}

.post-related__card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	text-decoration: none;
	background-color: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(0, 26, 61, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-related__card-link:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0, 26, 61, 0.1);
}

.post-related__media {
	overflow: hidden;
	height: 220px;
	background-color: #e8edf3;
}

.post-related__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-related__img--fallback {
	background: linear-gradient(135deg, #d9e2ec 0%, #f7f8fa 100%);
}

.post-related__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px;
}

.post-related__category {
	margin: 0 0 10px;
	font-family: "Inter", sans-serif;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #FF6C2C;
}

.post-related__card-title {
	margin: 0 0 12px;
	font-family: "Playfair Display", serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
	color: #001a3d;
}

.post-related__excerpt {
	margin: 0 0 16px;
	font-family: "Inter", sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 26px;
	color: #4a4a4a;
}

.post-related__read-more {
	margin-top: auto;
	font-family: "Inter", sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: #FF6C2C;
}

/* ---------------------------------------------------------------- Tablet */
@media (max-width: 1024px) {
	.post-hero {
		min-height: 360px;
		padding: 160px 24px 70px;
	}

	.post-hero__title {
		font-size: 44px;
	}

	.post-related__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.post-related__grid .post-related__card:last-child {
		grid-column: 1 / -1;
		max-width: 50%;
		margin: 0 auto;
		width: 100%;
	}
}

/* ---------------------------------------------------------------- Mobile */
@media (max-width: 768px) {
	.post-hero {
		min-height: 300px;
		padding: 140px 20px 60px;
	}

	.post-hero__title {
		font-size: 34px;
	}

	.post-hero__meta {
		font-size: 14px;
	}

	.post-content {
		padding: 40px 20px;
	}

	.post-content__body {
		font-size: 16px;
		line-height: 28px;
	}

	.post-content__body h2 {
		font-size: 28px;
	}

	.post-content__body h3 {
		font-size: 24px;
	}

	.post-cta {
		padding: 28px 20px;
	}

	.post-cta__title {
		font-size: 26px;
	}

	.post-cta__text {
		font-size: 16px;
		line-height: 26px;
	}

	.post-author {
		padding: 28px 20px;
	}

	.post-author__name {
		font-size: 24px;
	}

	.post-share__links {
		gap: 8px;
	}

	.post-share__link {
		flex: 1 1 calc(50% - 8px);
		min-width: calc(50% - 8px);
	}

	.post-related {
		padding: 40px 20px 60px;
	}

	.post-related__title {
		font-size: 30px;
	}

	.post-related__grid {
		grid-template-columns: 1fr;
	}

	.post-related__grid .post-related__card:last-child {
		max-width: none;
	}

	.post-related__media {
		height: 200px;
	}

	.post-related__card-title {
		font-size: 22px;
	}
}
