/* Page layouts — default, sidebar, full width */

.bsp-page {
	background: var(--bsp-page-bg, #fff5f9);
	padding: 32px 20px 64px;
}

.bsp-page__container {
	max-width: 1180px;
	margin: 0 auto;
}

.bsp-page__container--wide {
	max-width: 1320px;
}

.bsp-page__grid {
	display: grid;
	grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}

.bsp-page--right-sidebar .bsp-page__grid {
	grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
}

.bsp-page--default .bsp-page__main,
.bsp-page--fullwidth .bsp-page__main {
	max-width: 860px;
	margin: 0 auto;
}

.bsp-page--fullwidth .bsp-page__main {
	max-width: 100%;
}

.bsp-page--no-sidebar .bsp-page__grid,
.bsp-page--no-sidebar.bsp-page--right-sidebar .bsp-page__grid {
	grid-template-columns: minmax(0, 1fr);
}

.bsp-page__card,
.bsp-page__sidebar {
	background: var(--bsp-page-card, #fff);
	border: 1px solid var(--bsp-page-border, #f3f4f6);
	border-radius: 16px;
	box-shadow: 0 8px 30px rgba(17, 24, 39, 0.04);
}

.bsp-page__card {
	padding: 32px 28px;
}

.bsp-page__sidebar {
	position: sticky;
	top: 110px;
	padding: 24px 20px;
	background: var(--bsp-page-sidebar, #fff);
}

.bsp-page__breadcrumbs {
	margin: 0 0 18px;
	color: var(--bsp-page-muted, #9ca3af);
	font-size: 13px;
	line-height: 1.5;
}

.bsp-page__breadcrumbs a {
	color: var(--bsp-page-muted, #9ca3af);
	text-decoration: none;
	transition: color 0.2s ease;
}

.bsp-page__breadcrumbs a:hover {
	color: var(--bsp-page-accent, #f06292);
}

.bsp-page__breadcrumb-sep {
	margin: 0 6px;
	color: #d1d5db;
}

.bsp-page__header {
	margin-bottom: 20px;
}

.bsp-page__title {
	margin: 0;
	color: var(--bsp-page-title, #111827);
	font-family: var(--bsp-font-heading);
	font-size: clamp(28px, 3.5vw, 40px);
	font-weight: 700;
	line-height: 1.15;
}

.bsp-page__featured-image {
	margin: 0 0 24px;
	border-radius: 12px;
	overflow: hidden;
}

.bsp-page__featured-image img {
	display: block;
	width: 100%;
	height: auto;
}

.bsp-page__content {
	color: var(--bsp-page-text, #4b5563);
	font-size: 16px;
	line-height: 1.75;
}

.bsp-page__content > :first-child {
	margin-top: 0;
}

.bsp-page__content > :last-child {
	margin-bottom: 0;
}

.bsp-page__content h2,
.bsp-page__content h3,
.bsp-page__content h4 {
	color: var(--bsp-page-title, #111827);
	font-family: var(--bsp-font-heading);
	line-height: 1.3;
	margin: 1.6em 0 0.7em;
}

.bsp-page__content h2 {
	font-size: 28px;
}

.bsp-page__content h3 {
	font-size: 22px;
}

.bsp-page__content a {
	color: var(--bsp-page-accent, #f06292);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.bsp-page__content a:hover {
	color: #c2185b;
}

.bsp-page__content ul,
.bsp-page__content ol {
	padding-left: 1.25rem;
}

.bsp-page__content blockquote {
	margin: 1.5em 0;
	padding: 16px 20px;
	border-left: 4px solid var(--bsp-page-accent, #f06292);
	border-radius: 0 10px 10px 0;
	background: #fff5f9;
	color: var(--bsp-page-title, #111827);
}

.bsp-page__content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5em 0;
	font-size: 15px;
}

.bsp-page__content th,
.bsp-page__content td {
	padding: 10px 12px;
	border: 1px solid var(--bsp-page-border, #f3f4f6);
	text-align: left;
}

.bsp-page__content th {
	background: #fff5f9;
	color: var(--bsp-page-title, #111827);
}

.bsp-page__pagination {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--bsp-page-border, #f3f4f6);
	color: var(--bsp-page-muted, #9ca3af);
	font-size: 14px;
}

.bsp-page__pagination-label {
	margin-right: 8px;
	font-weight: 600;
}

.bsp-page__pagination a,
.bsp-page__pagination > span {
	display: inline-block;
	margin: 0 4px;
	padding: 4px 8px;
	border-radius: 6px;
}

.bsp-page__pagination a {
	color: var(--bsp-page-accent, #f06292);
	text-decoration: none;
}

/* Sidebar widgets */
.bsp-page__widgets .widget {
	margin: 0 0 22px;
	padding: 0 0 22px;
	border-bottom: 1px solid var(--bsp-page-border, #f3f4f6);
}

.bsp-page__widgets .widget:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

.bsp-page__widgets .widget-title {
	margin: 0 0 14px;
	color: var(--bsp-page-title, #111827);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.bsp-page__widgets .widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bsp-page__widgets .widget li {
	margin: 0 0 10px;
}

.bsp-page__widgets .widget a {
	color: var(--bsp-page-text, #4b5563);
	text-decoration: none;
	font-size: 14px;
	transition: color 0.2s ease;
}

.bsp-page__widgets .widget a:hover {
	color: var(--bsp-page-accent, #f06292);
}

.bsp-page__widgets .widget input[type="search"],
.bsp-page__widgets .widget input[type="text"],
.bsp-page__widgets .widget select {
	width: 100%;
	min-height: 42px;
	padding: 0 12px;
	border: 1px solid var(--bsp-page-border, #f3f4f6);
	border-radius: 8px;
	background: #fff;
	color: var(--bsp-page-title, #111827);
	font-size: 14px;
}

.bsp-page__widgets .widget button,
.bsp-page__widgets .widget input[type="submit"] {
	margin-top: 10px;
	min-height: 40px;
	padding: 0 16px;
	border: 0;
	border-radius: 8px;
	background: var(--bsp-page-accent, #f06292);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

/* Comments */
.bsp-page__card .comment-respond,
.bsp-page__card .comments-area {
	margin-top: 32px;
	padding-top: 28px;
	border-top: 1px solid var(--bsp-page-border, #f3f4f6);
}

.bsp-page__card .comments-title,
.bsp-page__card .comment-reply-title {
	color: var(--bsp-page-title, #111827);
	font-family: var(--bsp-font-heading);
	font-size: 24px;
}

.bsp-page__card .comment-form input[type="text"],
.bsp-page__card .comment-form input[type="email"],
.bsp-page__card .comment-form input[type="url"],
.bsp-page__card .comment-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--bsp-page-border, #f3f4f6);
	border-radius: 8px;
}

.bsp-page__card .form-submit input[type="submit"] {
	min-height: 44px;
	padding: 0 20px;
	border: 0;
	border-radius: 8px;
	background: var(--bsp-page-accent, #f06292);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

/* Responsive */
@media (max-width: 991px) {
	.bsp-page {
		padding: 24px 16px 48px;
	}

	.bsp-page__grid,
	.bsp-page--right-sidebar .bsp-page__grid {
		grid-template-columns: 1fr;
	}

	.bsp-page__sidebar {
		position: static;
		order: 2;
	}

	.bsp-page__main {
		order: 1;
	}

	.bsp-page__card {
		padding: 24px 20px;
	}
}
