/**
 * Single Post Builder — base styles for the dynamic widgets.
 * Style controls in Elementor override these where applicable.
 */

/* Wrapper */
.spb-single-template {
	width: 100%;
}

/* Placeholder shown only inside the Elementor editor */
.spb-placeholder {
	padding: 16px;
	border: 1px dashed #c3c4c7;
	border-radius: 6px;
	color: #6c7781;
	font-size: 14px;
	text-align: center;
	background: #f6f7f7;
}

/* Title */
.spb-post-title {
	margin: 0 0 16px;
}

.spb-post-title a {
	text-decoration: none;
	color: inherit;
}

/* Featured image */
.spb-featured-image {
	margin: 0 0 20px;
}

.spb-featured-image img {
	max-width: 100%;
	height: auto;
	display: inline-block;
	vertical-align: middle;
}

/* Meta row */
.spb-post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 20px;
	font-size: 14px;
}

.spb-post-meta a {
	text-decoration: none;
}

.spb-meta-sep {
	opacity: 0.5;
}

/* Content */
.spb-post-content {
	line-height: 1.7;
}

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

.spb-post-content img {
	max-width: 100%;
	height: auto;
}

/* Tags */
.spb-post-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 24px 0;
}

.spb-post-tags__label {
	font-weight: 600;
	margin-right: 4px;
}

.spb-post-tags__term {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 4px;
	background: #f0f0f1;
	color: #1d2327;
	text-decoration: none;
	font-size: 13px;
	line-height: 1.6;
	transition: opacity 0.15s ease;
}

.spb-post-tags__term:hover {
	opacity: 0.8;
}

/* Author box */
.spb-author-box {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	padding: 24px;
	border-radius: 8px;
	background: #f6f7f7;
	margin: 24px 0;
}

.spb-author-box__avatar img {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.spb-author-box__name {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 8px;
}

.spb-author-box__name a {
	text-decoration: none;
	color: inherit;
}

.spb-author-box__bio {
	margin: 0 0 10px;
	line-height: 1.6;
}

.spb-author-box__link {
	font-weight: 600;
	text-decoration: none;
}

/* Post navigation */
.spb-post-nav {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin: 32px 0;
	border-top: 1px solid #e2e4e7;
	border-bottom: 1px solid #e2e4e7;
	padding: 20px 0;
}

.spb-post-nav__item {
	flex: 1;
	min-width: 0;
}

.spb-post-nav__next {
	text-align: right;
}

.spb-post-nav__item a {
	display: inline-block;
	text-decoration: none;
}

.spb-post-nav__label {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.7;
	margin-bottom: 4px;
}

.spb-post-nav__title {
	display: block;
	font-weight: 600;
}

/* Related posts */
.spb-related__heading {
	margin: 0 0 16px;
}

.spb-related__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

.spb-related__item {
	display: flex;
	flex-direction: column;
}

.spb-related__thumb {
	display: block;
	margin-bottom: 10px;
	overflow: hidden;
	border-radius: 6px;
}

.spb-related__thumb img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.3s ease;
}

.spb-related__thumb:hover img {
	transform: scale(1.04);
}

.spb-related__title {
	margin: 0 0 6px;
	font-size: 16px;
	line-height: 1.4;
}

.spb-related__title a {
	text-decoration: none;
	color: inherit;
}

.spb-related__date {
	font-size: 13px;
	opacity: 0.7;
}

.spb-related__excerpt {
	margin: 8px 0 0;
	font-size: 14px;
	line-height: 1.6;
}

/* Comments */
.spb-post-comments {
	margin-top: 32px;
}

/* Small screens */
@media (max-width: 767px) {
	.spb-author-box {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.spb-post-nav {
		flex-direction: column;
	}

	.spb-post-nav__next {
		text-align: left;
	}
}
