/**
 * Seva blog sidebar: two-column layout, sidebar scrolls with the page.
 * Card design matches shop: compact image, rating stars, same shadow/typography/button.
 * Overflow visible on single-post ancestors avoids clipping the two-column row.
 */

/* Parent theme may use overflow:hidden on .overflow-container; keep ancestors visible for layout. */
body.single-post .overflow-container,
body.single-post .main-container,
body.single-post .loop-container,
body.single-post .loop-container .entry,
body.single-post .loop-container .entry article,
body.single .overflow-container,
body.single .main-container,
body.single .loop-container,
body.single .loop-container .entry,
body.single .loop-container .entry article {
	overflow: visible !important;
}

body.single-post .loop-container .entry,
body.single .loop-container .entry {
	max-width: 1200px;
}

.seva-two-col {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: 2rem;
	align-items: flex-start;
	margin-top: 1.5rem;
	overflow: visible !important;
}

.seva-two-col .post-content {
	flex: 2 1 60%;
	min-width: 0;
}

/* Sidebar column: align-self keeps natural height (not stretched to match article). */
.seva-sidebar {
	flex: 0 0 clamp(240px, 22vw, 300px);
	max-width: 300px;
	align-self: flex-start;
}

.seva-sidebar__inner {
	overflow: visible;
	max-height: none;
}

/* Section title */
.seva-sidebar__title {
	font-family: "Lato", sans-serif;
	font-size: 1rem;
	font-weight: 900;
	margin: 0 0 0.625rem 0;
	padding-bottom: 0.5rem;
	line-height: 1.3;
	color: #2C1810;
	border-bottom: 2px solid rgba(197, 148, 42, 0.35);
	letter-spacing: 0.01em;
}

.seva-sidebar__combo-wrap {
	margin: 0 0 0.625rem 0;
}

.seva-sidebar__combo-wrap .seva-card__cta {
	display: block;
	width: 100%;
	text-align: center;
	padding: 0.6rem 1rem;
	font-size: 0.875rem;
	font-weight: 700;
	border-radius: 8px;
	transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.seva-sidebar__combo-wrap .seva-card__cta:hover,
.seva-sidebar__combo-wrap .seva-card__cta:focus {
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(139, 26, 26, 0.35);
}

.seva-sidebar__cards {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

/* Card: same design as shop page product cards (scoped to sidebar so it overrides main style.css) */
.seva-sidebar .seva-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid rgba(44, 24, 16, 0.06);
	box-shadow: 0 2px 10px rgba(44, 24, 16, 0.08);
	transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.seva-sidebar .seva-card:hover {
	box-shadow: 0 8px 24px rgba(44, 24, 16, 0.12);
	border-color: rgba(44, 24, 16, 0.1);
	transform: translateY(-2px);
}

.seva-sidebar .seva-card--primary {
	border-color: rgba(197, 148, 42, 0.35);
	box-shadow: 0 2px 14px rgba(197, 148, 42, 0.12);
}

.seva-sidebar .seva-card--primary::before {
	content: "";
	display: block;
	height: 3px;
	background: linear-gradient(90deg, #C5942A 0%, #A67B1F 100%);
}

/* Image: 16:9 landscape so two cards fit on screen together */
.seva-sidebar .seva-card__link {
	display: block;
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #ebe8e4;
	flex: 0 0 auto;
}

@supports (aspect-ratio: 16 / 9) {
	.seva-sidebar .seva-card__link {
		aspect-ratio: 16 / 9;
	}
}

@supports not (aspect-ratio: 16 / 9) {
	.seva-sidebar .seva-card__link::after {
		content: "";
		display: block;
		padding-bottom: 56.25%;
	}
}

.seva-sidebar .seva-card__link > img.seva-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	margin: 0;
	padding: 0;
	border: none;
	vertical-align: top;
}

.seva-sidebar .seva-card__link > .seva-card__img--placeholder {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #ebe8e4 0%, #e0dcd6 100%);
}

/* Card body */
.seva-sidebar .seva-card__body {
	display: flex;
	flex-direction: column;
	padding: 0.5rem 0.625rem 0.5rem;
	flex: 1 1 auto;
	min-height: 0;
}

/* Title */
.seva-sidebar .seva-card__title {
	font-family: "Lato", sans-serif;
	font-size: 0.9375rem;
	font-weight: 900;
	line-height: 1.3;
	margin: 0 0 0.15rem 0;
	color: #2C1810;
}

.seva-sidebar .seva-card__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.seva-sidebar .seva-card__title a:hover,
.seva-sidebar .seva-card__title a:focus {
	color: #C5942A;
}

.seva-sidebar .seva-card__label {
	display: inline-block;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	background: linear-gradient(135deg, #C5942A 0%, #A67B1F 100%);
	color: #fff !important;
	padding: 0.2em 0.5em;
	border-radius: 4px;
	margin-right: 0.35em;
	vertical-align: middle;
}

/* Star rating */
.seva-sidebar .seva-card__rating {
	display: block;
	margin: 0.15rem auto 0;
	text-align: center;
	position: relative;
	height: 1em;
	width: 5em;
	overflow: hidden;
}

.seva-sidebar .seva-card__rating .seva-stars {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	height: 1em;
	line-height: 1;
	font-size: 0.875rem;
	letter-spacing: 0.12em;
	white-space: nowrap;
}

.seva-sidebar .seva-card__rating .seva-stars--empty {
	color: #ccc;
}

.seva-sidebar .seva-card__rating .seva-stars--fill {
	color: #C5942A;
	overflow: hidden;
}

/* Price */
.seva-sidebar .seva-card__price {
	font-size: 1rem !important;
	line-height: 1.3 !important;
	font-weight: 700 !important;
	color: #2C1810 !important;
	margin: 0.15em 0 0.35rem 0 !important;
}

/* Button */
.seva-sidebar .seva-card__cta,
.seva-sidebar a.seva-card__cta,
.seva-sidebar .seva-sidebar__combo {
	display: inline-block;
	padding: 0.5rem 0.75rem;
	background: #8B1A1A;
	color: #fff !important;
	font-size: 0.8125rem;
	font-weight: 700;
	text-decoration: none !important;
	border-radius: 6px;
	border: none;
	transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
	cursor: pointer;
	margin-top: auto;
}

.seva-sidebar .seva-card__cta:hover,
.seva-sidebar .seva-card__cta:focus,
.seva-sidebar a.seva-card__cta:hover,
.seva-sidebar a.seva-card__cta:focus,
.seva-sidebar .seva-sidebar__combo:hover,
.seva-sidebar .seva-sidebar__combo:focus {
	background: #6B1414;
	color: #fff !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 14px rgba(139, 26, 26, 0.35);
}

/* Mobile: sidebar full width below article */
@media all and (max-width: 640px) {
	.seva-two-col {
		flex-direction: column;
		flex-wrap: wrap;
		gap: 1.5rem;
	}
	.seva-two-col .post-content {
		flex: 1 1 100%;
	}
	.seva-sidebar {
		flex: 1 1 100%;
		max-width: none;
	}
	.seva-sidebar__cards {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
		gap: 1.25rem;
	}
}
