/* Single blog post — polished article layout */

.ph-post {
	--ph-post-accent: #f77f00;
	--ph-post-ink: #111d6a;
	--ph-post-muted: #667085;
	--ph-post-line: #e8eef5;
	--ph-post-soft: #f9fbfd;
	--ph-post-navy: #111d6a;
	background:
		var(--ph-surface-mesh);
}

.ph-post__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 48px;
	align-items: start;
	padding-top: 48px;
	padding-bottom: 24px;
}

.ph-post__header {
	margin-bottom: 28px;
}

.ph-post__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
	color: var(--ph-post-muted);
	font-family: "Poppins", sans-serif;
	font-size: 13px;
}

.ph-post__chip {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	background: rgba(239, 142, 50, 0.12);
	border-radius: 999px;
	color: #e06a00;
	font-family: "Poppins", sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none;
	text-transform: capitalize;
	transition: background 0.2s ease, color 0.2s ease;
}

.ph-post__chip:hover {
	background: var(--ph-post-accent);
	color: #fff;
}

.ph-post__dot {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: #cfc8c0;
}

.ph-post__title {
	margin: 0;
	color: var(--ph-post-ink);
	font-family: "Poppins", sans-serif;
	font-size: clamp(28px, 3.6vw, 40px);
	font-weight: 700;
	line-height: 1.2;
}

.ph-post__hero-media {
	margin: 0 0 36px;
	overflow: hidden;
	border-radius: 20px;
	background: #e8eef5;
	box-shadow:
		0 20px 48px rgba(17, 29, 106, 0.1),
		0 2px 8px rgba(17, 29, 106, 0.04);
}

.ph-post__hero-img,
.ph-post__hero-media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.ph-post__body {
	color: #3d3d3d;
	font-family: "Poppins", sans-serif;
	font-size: 16px;
	line-height: 1.85;
}

.ph-post__body > *:first-child {
	margin-top: 0;
}

.ph-post__body h1,
.ph-post__body h2,
.ph-post__body h3,
.ph-post__body h4 {
	margin: 1.6em 0 0.55em;
	color: var(--ph-post-ink);
	font-family: "Poppins", sans-serif;
	font-weight: 700;
	line-height: 1.3;
}

.ph-post__body h2 {
	font-size: 1.55em;
	padding-bottom: 0.35em;
	border-bottom: 1px solid var(--ph-post-line);
}

.ph-post__body h3 {
	font-size: 1.25em;
}

.ph-post__body p {
	margin: 0 0 1.15em;
}

.ph-post__body ul,
.ph-post__body ol {
	margin: 0 0 1.3em;
	padding-left: 1.25em;
}

.ph-post__body li {
	margin-bottom: 0.45em;
}

.ph-post__body li::marker {
	color: var(--ph-post-accent);
}

.ph-post__body a {
	color: var(--ph-post-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.ph-post__body a:hover {
	color: var(--ph-post-navy);
}

.ph-post__body img {
	max-width: 100%;
	height: auto;
	margin: 8px 0 20px;
	border-radius: 14px;
}

.ph-post__body blockquote {
	margin: 1.5em 0;
	padding: 18px 22px;
	border-left: 4px solid var(--ph-post-accent);
	background: var(--ph-post-soft);
	border-radius: 0 12px 12px 0;
	color: var(--ph-muted, #4a5568);
	font-style: italic;
}

.ph-post__body table {
	width: 100%;
	margin: 1.4em 0;
	border-collapse: collapse;
	font-size: 14px;
}

.ph-post__body th,
.ph-post__body td {
	padding: 10px 12px;
	border: 1px solid var(--ph-post-line);
	text-align: left;
}

.ph-post__body th {
	background: var(--ph-post-soft);
	font-weight: 600;
}

.ph-post__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 40px;
	padding-top: 28px;
	border-top: 1px solid var(--ph-post-line);
}

.ph-post__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.ph-post__tags-label {
	color: var(--ph-post-muted);
	font-family: "Poppins", sans-serif;
	font-size: 13px;
}

.ph-post__back {
	color: var(--ph-post-navy);
	font-family: "Poppins", sans-serif;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.ph-post__back:hover {
	color: var(--ph-post-accent);
}

.ph-post__pager {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 28px;
}

.ph-post__pager-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px 22px;
	background: var(--ph-post-soft);
	border: 1px solid var(--ph-post-line);
	border-radius: 16px;
	text-decoration: none;
	transition:
		border-color 0.25s ease,
		box-shadow 0.25s ease,
		transform 0.25s ease;
}

.ph-post__pager-card:hover {
	border-color: rgba(239, 142, 50, 0.4);
	box-shadow: 0 12px 28px rgba(17, 29, 106, 0.08);
	transform: translateY(-2px);
}

.ph-post__pager-card--empty {
	visibility: hidden;
	pointer-events: none;
}

.ph-post__pager-card--next {
	text-align: right;
}

.ph-post__pager-label {
	color: var(--ph-post-accent);
	font-family: "Poppins", sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.ph-post__pager-title {
	color: var(--ph-post-ink);
	font-family: "Poppins", sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
}

/* Sidebar */
.ph-post__aside {
	display: flex;
	flex-direction: column;
	gap: 18px;
	position: sticky;
	top: 104px;
}

.ph-post__cta {
	padding: 26px 24px;
	background:
		linear-gradient(160deg, var(--ph-navy, #111d6a) 0%, var(--ph-navy-deep, #0b1448) 100%);
	border-radius: 18px;
	color: #fff;
	box-shadow: 0 16px 36px rgba(17, 29, 106, 0.28);
}

.ph-post__cta-eyebrow {
	margin: 0 0 8px;
	color: var(--ph-post-accent);
	font-family: "Poppins", sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.ph-post__cta h3 {
	margin: 0 0 10px;
	color: #fff;
	font-family: "Poppins", sans-serif;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
}

.ph-post__cta p {
	margin: 0 0 18px;
	color: rgba(255, 255, 255, 0.78);
	font-family: "Poppins", sans-serif;
	font-size: 14px;
	line-height: 1.6;
}

.ph-post__cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	margin-bottom: 12px;
	padding: 12px 18px;
	background: var(--ph-post-accent);
	border-radius: 10px;
	color: #fff !important;
	font-family: "Poppins", sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: background 0.2s ease, transform 0.2s ease;
}

.ph-post__cta-btn:hover {
	background: #e06a00;
	transform: translateY(-1px);
}

.ph-post__cta-phone {
	display: block;
	color: rgba(255, 255, 255, 0.9) !important;
	font-family: "Poppins", sans-serif;
	font-size: 14px;
	font-weight: 500;
	text-align: center;
	text-decoration: none;
}

.ph-post__cta-phone:hover {
	color: var(--ph-post-accent) !important;
}

.ph-post__panel {
	padding: 22px 20px;
	background: #fff;
	border: 1px solid var(--ph-post-line);
	border-radius: 18px;
	box-shadow: 0 4px 16px rgba(17, 29, 106, 0.04);
}

.ph-post__panel h3 {
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 2px solid rgba(239, 142, 50, 0.35);
	color: var(--ph-post-ink);
	font-family: "Poppins", sans-serif;
	font-size: 18px;
	font-weight: 700;
}

.ph-post__cat-list,
.ph-post__recent {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ph-post__cat-list li + li,
.ph-post__recent li + li {
	margin-top: 2px;
}

.ph-post__cat-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 0;
	border-bottom: 1px solid var(--ph-post-line);
	color: #111d6a;
	font-family: "Poppins", sans-serif;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	text-transform: capitalize;
}

.ph-post__cat-list li:last-child a {
	border-bottom: 0;
}

.ph-post__cat-list a:hover {
	color: var(--ph-post-accent);
}

.ph-post__cat-list em {
	min-width: 28px;
	padding: 2px 8px;
	background: var(--ph-post-soft);
	border-radius: 999px;
	color: var(--ph-post-muted);
	font-family: "Poppins", sans-serif;
	font-size: 11px;
	font-style: normal;
	font-weight: 600;
	text-align: center;
}

.ph-post__recent-link {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid var(--ph-post-line);
	text-decoration: none;
}

.ph-post__recent li:last-child .ph-post__recent-link {
	border-bottom: 0;
}

.ph-post__recent-link img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 12px;
	background: #e8eef5;
}

.ph-post__recent-link strong {
	display: block;
	margin-bottom: 4px;
	color: var(--ph-post-ink);
	font-family: "Poppins", sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

.ph-post__recent-link em {
	color: var(--ph-post-muted);
	font-family: "Poppins", sans-serif;
	font-size: 12px;
	font-style: normal;
}

.ph-post__recent-link:hover strong {
	color: var(--ph-post-accent);
}

/* Related */
.ph-post__related {
	margin-top: 28px;
	padding: 56px 0 72px;
	background:
		var(--ph-surface-warm);
}

.ph-post__related-head {
	max-width: 520px;
	margin: 0 auto 36px;
	text-align: center;
}

.ph-post__related-eyebrow {
	margin: 0 0 10px;
	color: var(--ph-post-accent);
	font-family: "Poppins", sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.ph-post__related-head h2 {
	margin: 0;
	color: var(--ph-post-ink);
	font-family: "Poppins", sans-serif;
	font-size: clamp(26px, 3vw, 34px);
	font-weight: 700;
}

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

.ph-post__related-card {
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--ph-post-line);
	border-radius: 18px;
	box-shadow: 0 2px 8px rgba(17, 29, 106, 0.04);
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease,
		border-color 0.3s ease;
}

.ph-post__related-card:hover {
	border-color: rgba(239, 142, 50, 0.35);
	box-shadow: 0 16px 36px rgba(17, 29, 106, 0.1);
	transform: translateY(-4px);
}

.ph-post__related-media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #e8eef5;
}

.ph-post__related-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.ph-post__related-card:hover .ph-post__related-media img {
	transform: scale(1.05);
}

.ph-post__related-body {
	padding: 18px 20px 22px;
}

.ph-post__related-cat {
	display: inline-block;
	margin-bottom: 8px;
	color: #e06a00;
	font-family: "Poppins", sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ph-post__related-body h3 {
	margin: 0 0 12px;
	font-family: "Poppins", sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
}

.ph-post__related-body h3 a {
	color: var(--ph-post-ink);
	text-decoration: none;
}

.ph-post__related-body h3 a:hover {
	color: var(--ph-post-accent);
}

.ph-post__related-cta {
	color: var(--ph-post-accent);
	font-family: "Poppins", sans-serif;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.ph-post__related-cta:hover {
	color: var(--ph-post-navy);
}

@media (max-width: 980px) {
	.ph-post__layout {
		grid-template-columns: 1fr;
		gap: 32px;
		padding-top: 36px;
	}

	.ph-post__aside {
		position: static;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 16px;
	}

	.ph-post__cta {
		grid-column: 1 / -1;
	}

	.ph-post__related-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 640px) {
	.ph-post__aside {
		grid-template-columns: 1fr;
	}

	.ph-post__pager {
		grid-template-columns: 1fr;
	}

	.ph-post__pager-card--next {
		text-align: left;
	}

	.ph-post__pager-card--empty {
		display: none;
	}

	.ph-post__related-grid {
		grid-template-columns: 1fr;
	}

	.ph-post__title {
		font-size: 26px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ph-post__pager-card,
	.ph-post__related-card,
	.ph-post__related-media img,
	.ph-post__cta-btn {
		transition: none;
	}

	.ph-post__pager-card:hover,
	.ph-post__related-card:hover {
		transform: none;
	}
}
