/* Blog archive & single post layouts */

.bsp-blog {
	background: var(--bsp-blog-bg, #fff5f9);
	padding: 32px 20px 64px;
}

.bsp-blog__container {
	max-width: 1180px;
	margin: 0 auto;
}

.bsp-blog__container--wide {
	max-width: 1320px;
}

.bsp-blog__grid {
	display: grid;
	grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}

.bsp-blog--right-sidebar .bsp-blog__grid {
	grid-template-columns: minmax(0, 1fr) minmax(260px, 350px);
}

.bsp-blog--fullwidth .bsp-blog__main {
	max-width: 100%;
}

.bsp-blog--no-sidebar .bsp-blog__grid,
.bsp-blog--no-sidebar.bsp-blog--right-sidebar .bsp-blog__grid {
	grid-template-columns: minmax(0, 1fr);
}

.bsp-blog__card,
.bsp-blog__sidebar {
	background: var(--bsp-blog-card, #fff);
	border: 1px solid var(--bsp-blog-border, #f3f4f6);
	border-radius: 16px;
	box-shadow: 0 8px 30px rgba(17, 24, 39, 0.04);
}

.bsp-blog__card {
	padding: 32px 28px;
}

.bsp-blog__sidebar {
	position: sticky;
	top: 110px;
	padding: 24px 20px;
	background: var(--bsp-blog-sidebar, #fff);
}

.bsp-blog__breadcrumbs {
	margin: 0 0 18px;
	color: var(--bsp-blog-muted, #9ca3af);
	font-size: 13px;
	line-height: 1.5;
}

.bsp-blog__breadcrumbs a {
	color: var(--bsp-blog-muted, #9ca3af);
	text-decoration: none;
	transition: color 0.2s ease;
}

.bsp-blog__breadcrumbs a:hover {
	color: var(--bsp-blog-accent, #f06292);
}

.bsp-blog__breadcrumb-sep {
	margin: 0 6px;
	color: #d1d5db;
}

.bsp-blog__archive-header {
	margin-bottom: 28px;
	text-align: center;
}

.bsp-blog__kicker {
	margin: 0 0 10px;
	color: var(--bsp-blog-accent, #f06292);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.bsp-blog__archive-title {
	margin: 0 0 12px;
	color: var(--bsp-blog-title, #111827);
	font-family: var(--bsp-font-heading);
	font-size: clamp(28px, 3.5vw, 40px);
	font-weight: 700;
	line-height: 1.15;
}

.bsp-blog__archive-subtitle {
	margin: 0;
	color: var(--bsp-blog-text, #4b5563);
	font-size: clamp(15px, 1.6vw, 18px);
	line-height: 1.55;
}

.bsp-blog__posts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}

.bsp-blog--fullwidth .bsp-blog__posts {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bsp-blog__post-card {
	margin: 0;
}

.bsp-blog__post-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
	background: #fff;
	border: 1px solid var(--bsp-blog-border, #f3f4f6);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bsp-blog__post-link:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(17, 24, 39, 0.1);
}

.bsp-blog__post-media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #f3f4f6;
}

.bsp-blog__post-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bsp-blog__post-media-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
}

.bsp-blog__post-body {
	padding: 20px 22px 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.bsp-blog__post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin-bottom: 12px;
	font-size: 12px;
}

.bsp-blog__post-category {
	color: var(--bsp-blog-accent, #f06292);
	font-weight: 700;
	letter-spacing: 0.08em;
}

.bsp-blog__post-date {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--bsp-blog-muted, #9ca3af);
}

.bsp-blog__post-title {
	margin: 0 0 10px;
	color: var(--bsp-blog-title, #111827);
	font-family: var(--bsp-font-heading);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

.bsp-blog__post-excerpt {
	margin: 0 0 16px;
	color: var(--bsp-blog-text, #4b5563);
	font-size: 14px;
	line-height: 1.6;
	flex: 1;
}

.bsp-blog__post-read-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--bsp-blog-accent, #f06292);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.bsp-blog__pagination {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--bsp-blog-border, #f3f4f6);
	text-align: center;
}

.bsp-blog__pagination .nav-links {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.bsp-blog__pagination a,
.bsp-blog__pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	min-height: 36px;
	padding: 0 10px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.bsp-blog__pagination a {
	color: var(--bsp-blog-accent, #f06292);
	background: #fff5f9;
}

.bsp-blog__pagination a:hover {
	background: var(--bsp-blog-accent, #f06292);
	color: #fff;
}

.bsp-blog__pagination .current {
	background: var(--bsp-blog-accent, #f06292);
	color: #fff;
}

/* Single post */
.bsp-blog__single-header {
	margin-bottom: 24px;
	text-align: center;
}

.bsp-blog__single-categories {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: 14px;
}

.bsp-blog__single-category {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 999px;
	background: #fff5f9;
	color: var(--bsp-blog-accent, #f06292);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.bsp-blog__single-category:hover {
	background: var(--bsp-blog-accent, #f06292);
	color: #fff;
}

.bsp-blog__single-title {
	margin: 0 0 14px;
	color: var(--bsp-blog-title, #111827);
	font-family: var(--bsp-font-heading);
	font-size: clamp(28px, 3.5vw, 42px);
	font-weight: 700;
	line-height: 1.2;
}

.bsp-blog__single-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px 20px;
	color: var(--bsp-blog-muted, #9ca3af);
	font-size: 14px;
}

.bsp-blog__single-date,
.bsp-blog__single-author {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.bsp-blog__single-image {
	margin: 0 0 28px;
	border-radius: 12px;
	overflow: hidden;
}

.bsp-blog__single-image img {
	display: block;
	width: 100%;
	height: auto;
}

.bsp-blog__single-content {
	color: var(--bsp-blog-text, #4b5563);
	font-size: 16px;
	line-height: 1.75;
}

.bsp-blog__single-content > :first-child {
	margin-top: 0;
}

.bsp-blog__single-content > :last-child {
	margin-bottom: 0;
}

.bsp-blog__single-content h2,
.bsp-blog__single-content h3,
.bsp-blog__single-content h4 {
	color: var(--bsp-blog-title, #111827);
	font-family: var(--bsp-font-heading);
	line-height: 1.3;
	margin: 1.6em 0 0.7em;
}

.bsp-blog__single-content h2 {
	font-size: 28px;
}

.bsp-blog__single-content h3 {
	font-size: 22px;
}

.bsp-blog__single-content a {
	color: var(--bsp-blog-accent, #f06292);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.bsp-blog__single-content a:hover {
	color: #c2185b;
}

.bsp-blog__single-content ul,
.bsp-blog__single-content ol {
	padding-left: 1.25rem;
}

.bsp-blog__single-content blockquote {
	margin: 1.5em 0;
	padding: 16px 20px;
	border-left: 4px solid var(--bsp-blog-accent, #f06292);
	border-radius: 0 10px 10px 0;
	background: #fff5f9;
	color: var(--bsp-blog-title, #111827);
}

.bsp-blog__single-footer {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--bsp-blog-border, #f3f4f6);
}

.bsp-blog__single-tags-label {
	margin-right: 8px;
	color: var(--bsp-blog-title, #111827);
	font-weight: 700;
	font-size: 14px;
}

.bsp-blog__single-tags a {
	display: inline-block;
	margin: 4px 6px 4px 0;
	padding: 5px 12px;
	border-radius: 999px;
	background: #fff5f9;
	color: var(--bsp-blog-text, #4b5563);
	font-size: 13px;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.bsp-blog__single-tags a:hover {
	background: var(--bsp-blog-accent, #f06292);
	color: #fff;
}

.bsp-blog__nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid var(--bsp-blog-border, #f3f4f6);
}

.bsp-blog__nav-link {
	display: block;
	padding: 16px 18px;
	border: 1px solid var(--bsp-blog-border, #f3f4f6);
	border-radius: 12px;
	background: #fff;
	text-decoration: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bsp-blog__nav-link:hover {
	border-color: var(--bsp-blog-accent, #f06292);
	box-shadow: 0 6px 20px rgba(240, 98, 146, 0.12);
}

.bsp-blog__nav-link--next {
	text-align: right;
}

.bsp-blog__nav-label {
	display: block;
	margin-bottom: 6px;
	color: var(--bsp-blog-muted, #9ca3af);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.bsp-blog__nav-title {
	display: block;
	color: var(--bsp-blog-title, #111827);
	font-family: var(--bsp-font-heading);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
}

.bsp-blog__no-results {
	text-align: center;
	padding: 24px 0;
}

.bsp-blog__no-results .page-title {
	margin: 0 0 12px;
	color: var(--bsp-blog-title, #111827);
	font-family: var(--bsp-font-heading);
	font-size: 28px;
}

.bsp-blog__no-results p {
	color: var(--bsp-blog-text, #4b5563);
}

/* Sidebar widgets */
.bsp-blog__widgets .widget {
	margin: 0 0 22px;
	padding: 0 0 22px;
	border-bottom: 1px solid var(--bsp-blog-border, #f3f4f6);
}

.bsp-blog__widgets .widget:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

.bsp-blog__widgets .widget-title {
	margin: 0 0 14px;
	color: var(--bsp-blog-title, #111827);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.bsp-blog__widgets .widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bsp-blog__widgets .widget li {
	margin: 0 0 10px;
}

.bsp-blog__widgets .widget a {
	color: var(--bsp-blog-text, #4b5563);
	text-decoration: none;
	font-size: 14px;
	transition: color 0.2s ease;
}

.bsp-blog__widgets .widget a:hover {
	color: var(--bsp-blog-accent, #f06292);
}

.bsp-blog__widgets .widget input[type="search"],
.bsp-blog__widgets .widget input[type="text"],
.bsp-blog__widgets .widget select {
	width: 100%;
	min-height: 42px;
	padding: 0 12px;
	border: 1px solid var(--bsp-blog-border, #f3f4f6);
	border-radius: 8px;
	background: #fff;
	color: var(--bsp-blog-title, #111827);
	font-size: 14px;
}

.bsp-blog__widgets .widget button,
.bsp-blog__widgets .widget input[type="submit"] {
	margin-top: 10px;
	min-height: 40px;
	padding: 0 16px;
	border: 0;
	border-radius: 8px;
	background: var(--bsp-blog-accent, #f06292);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

/* Comments */
.bsp-blog__card .comment-respond,
.bsp-blog__card .comments-area {
	margin-top: 32px;
	padding-top: 28px;
	border-top: 1px solid var(--bsp-blog-border, #f3f4f6);
}

.bsp-blog__card .comments-title,
.bsp-blog__card .comment-reply-title {
	color: var(--bsp-blog-title, #111827);
	font-family: var(--bsp-font-heading);
	font-size: 24px;
}

.bsp-blog__card .comment-form input[type="text"],
.bsp-blog__card .comment-form input[type="email"],
.bsp-blog__card .comment-form input[type="url"],
.bsp-blog__card .comment-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--bsp-blog-border, #f3f4f6);
	border-radius: 8px;
}

.bsp-blog__card .form-submit input[type="submit"] {
	min-height: 44px;
	padding: 0 20px;
	border: 0;
	border-radius: 8px;
	background: var(--bsp-blog-accent, #f06292);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

@media (max-width: 991px) {
	.bsp-blog {
		padding: 24px 16px 48px;
	}

	.bsp-blog__grid,
	.bsp-blog--right-sidebar .bsp-blog__grid {
		grid-template-columns: 1fr;
	}

	.bsp-blog__sidebar {
		position: static;
		order: 2;
	}

	.bsp-blog__main {
		order: 1;
	}

	.bsp-blog__card {
		padding: 24px 20px;
	}

	.bsp-blog__posts,
	.bsp-blog--fullwidth .bsp-blog__posts {
		grid-template-columns: 1fr;
	}

	.bsp-blog__nav {
		grid-template-columns: 1fr;
	}

	.bsp-blog__nav-link--next {
		text-align: left;
	}
}

@media (min-width: 992px) and (max-width: 1199px) {
	.bsp-blog--fullwidth .bsp-blog__posts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
