/* Stravum Builder — Blog widgets (Related Posts, Post Navigation) base styles.
   Self-contained: only .st-related* / .st-postnav* selectors. Per-instance
   overrides (columns, gap, colors, typography, border, padding) come from
   the style engine; these are just sane structural defaults. */

/* ============================== Related Posts ============================== */

.st-related-heading {
	margin: 0 0 20px;
	color: #fff;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
}

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

.st-related-card {
	display: flex;
	flex-direction: column;
	background: #10131a;
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 14px;
	overflow: hidden;
	text-decoration: none;
	transition: border-color .2s ease, transform .2s ease;
}
.st-related-card:hover {
	border-color: #fd5b38;
	transform: translateY(-3px);
}

.st-related-media {
	display: block;
	aspect-ratio: 16/9;
	overflow: hidden;
	background: #0A0C10;
	line-height: 0;
}
.st-related-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}
.st-related-card:hover .st-related-media img {
	transform: scale(1.06);
}

.st-related-title {
	margin: 16px 16px 0;
	color: #fff;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
}

.st-related-date {
	display: block;
	margin: 8px 16px 0;
	color: rgba(255, 255, 255, .72);
	font-family: "Geist", sans-serif;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.st-related-excerpt {
	margin: 8px 16px 16px;
	color: rgba(255, 255, 255, .72);
	font-family: "IBM Plex Sans", sans-serif;
	font-size: 14px;
	line-height: 1.6;
}

.st-related-note,
.st-postnav-note {
	padding: 12px 16px;
	border: 1px dashed rgba(255, 255, 255, .16);
	border-radius: 10px;
	color: rgba(255, 255, 255, .72);
	font-family: "IBM Plex Sans", sans-serif;
	font-size: 13px;
	font-style: italic;
}

@media (max-width: 1024px) {
	.st-related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 767px) {
	.st-related-grid {
		grid-template-columns: 1fr;
	}
}

/* ============================== Post Navigation ============================= */

.st-postnav {
	display: flex;
	gap: 20px;
}
.st-postnav--split {
	justify-content: space-between;
}
.st-postnav--stacked {
	flex-direction: column;
}

.st-postnav-link {
	display: flex;
	align-items: center;
	gap: 14px;
	flex: 1 1 0;
	min-width: 0;
	background: #10131a;
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 14px;
	padding: 18px 20px;
	text-decoration: none;
	transition: background-color .2s ease, border-color .2s ease;
}
.st-postnav-link:hover {
	background: #171b24;
	border-color: #fd5b38;
}

.st-postnav-next {
	flex-direction: row-reverse;
	text-align: right;
}

.st-postnav-thumb {
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	border-radius: 10px;
	overflow: hidden;
	line-height: 0;
}
.st-postnav-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.st-postnav-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.st-postnav-label {
	color: #ffb4a4;
	font-family: "Geist", sans-serif;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .1em;
}

.st-postnav-title {
	display: block;
	color: #fff;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media (max-width: 767px) {
	.st-postnav {
		flex-direction: column;
	}
	.st-postnav-next {
		flex-direction: row;
		text-align: left;
	}
}
