/* Optivanse Post Block — frontend styles */
.opb-grid {
	--opb-columns: 3;
	display: grid;
	grid-template-columns: repeat(var(--opb-columns), minmax(0, 1fr));
	column-gap: 14px;
	row-gap: 14px;
}

.opb-card {
	position: relative;
	display: flex;
	min-width: 0;
	overflow: hidden;
	flex-direction: column;
	background: #f6f2e8;
	border: 1px solid rgba(81, 78, 66, 0.34);
	border-radius: 7px;
	box-shadow: 0 2px 5px rgba(37, 35, 27, 0.07);
	transition-property: transform, box-shadow, border-color, background-color;
	transition-duration: 250ms;
	transition-timing-function: ease;
}

.opb-card:hover {
	border-color: rgba(81, 78, 66, 0.52);
	box-shadow: 0 8px 18px rgba(37, 35, 27, 0.13);
	transform: translateY(-3px);
}

.opb-image-wrap {
	position: relative;
	width: 100%;
	height: 180px;
	min-width: 0;
	overflow: hidden;
	background: #ddd8ca;
}

.opb-image-link {
	display: block;
	width: 100%;
	height: 100%;
}

.opb-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 450ms cubic-bezier(.2, .72, .25, 1);
}

.opb-card:hover .opb-image {
	transform: scale(1.035);
}

.opb-content {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
	flex-direction: column;
	align-items: flex-start;
	padding: 14px;
	text-align: left;
}

.opb-title {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	width: 100%;
	margin: 0 0 7px;
	color: #25271f;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
}

.opb-title a {
	color: inherit;
	text-decoration: none;
	transition: color 180ms ease;
}

.opb-title a:hover {
	color: #af3c27;
}

.opb-excerpt {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	width: 100%;
	margin: 0 0 10px;
	color: #55564c;
	font-size: 14px;
	line-height: 1.45;
}

.opb-category {
	display: inline-flex;
	margin-bottom: 9px;
	color: #a53e29;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .07em;
	line-height: 1;
	text-transform: uppercase;
}

.opb-category a {
	color: inherit;
	text-decoration: none;
}

.opb-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px;
	width: 100%;
	margin: 0 0 9px;
	color: #77766d;
	font-size: 12px;
	line-height: 1.35;
}

.opb-meta a {
	color: inherit;
	text-decoration: none;
}

.opb-meta-separator {
	opacity: .62;
}

.opb-location {
	display: inline-flex;
	min-width: 0;
	align-items: center;
	align-self: center;
	gap: 7px;
	margin: 12px;
	color: #62665a;
	font-size: 12px;
	line-height: 1.35;
}

.opb-location-icon {
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 18px;
	line-height: 1;
}

.opb-location-icon svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.opb-location-text {
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Keep the Places widget as a true two-column media card. Its location is
 * part of the content column and sits directly below the excerpt. */
.elementor-widget-optivanse-place-block .opb-content > .opb-location--combined {
	width: 100%;
	align-self: flex-start;
	margin: 0 0 10px;
}

.opb-more {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: auto;
	color: #3d4333;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .055em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 180ms ease, background-color 180ms ease;
}

.opb-more:hover {
	color: #af3c27;
}

.opb-more-icon {
	display: inline-flex;
	line-height: 1;
	transition: transform 180ms ease;
}

.opb-more-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.opb-more:hover .opb-more-icon {
	transform: translateX(3px);
}

.opb-date-badge {
	display: flex;
	flex: 0 0 62px;
	width: 62px;
	min-height: 100%;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	align-self: stretch;
	padding: 8px 6px;
	background: #b5452f;
	color: #fff8e9;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	text-transform: uppercase;
}

.opb-date-day {
	font-size: 22px;
}

.opb-date-month,
.opb-date-year {
	margin-top: 3px;
	font-size: 10px;
	letter-spacing: .04em;
}

/* Presets reproduce the three reference patterns while retaining full controls. */
.opb-grid--media,
.opb-grid--event {
	--opb-columns: 1;
}

.opb-grid--media .opb-card,
.opb-grid--event .opb-card {
	flex-direction: row;
}

.opb-grid--media .opb-image-wrap {
	flex: 0 0 34%;
	width: 34%;
}

.opb-grid--media .opb-content,
.opb-grid--event .opb-content {
	justify-content: center;
}

.opb-grid--event .opb-content {
	padding-right: 4px;
}

.opb-grid--event .opb-location--text {
	width: 100%;
	align-self: flex-start;
	margin: 0 0 7px;
}

.opb-grid--event .opb-location--text .opb-location-text {
	white-space: normal;
}

.opb-grid--event .opb-location--icon {
	flex: 0 0 auto;
	align-self: center;
	margin-left: auto;
}

.opb-grid--event .opb-image-wrap {
	order: 3;
	flex: 0 0 120px;
	width: 120px;
}

.opb-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 7px;
	margin-top: 24px;
}

.opb-pagination .page-numbers {
	display: inline-flex;
	min-width: 38px;
	min-height: 38px;
	align-items: center;
	justify-content: center;
	padding: 8px 11px;
	border: 1px solid rgba(81, 78, 66, .3);
	border-radius: 4px;
	background: #f6f2e8;
	color: #3d4333;
	line-height: 1;
	text-decoration: none;
}

.opb-pagination .current,
.opb-pagination a:hover {
	border-color: #a83e29;
	background: #a83e29;
	color: #fff;
}

.opb-empty {
	padding: 24px;
	border: 1px dashed rgba(81, 78, 66, .35);
	border-radius: 6px;
	color: #66675e;
	text-align: center;
}

.opb-card a:focus-visible,
.opb-pagination a:focus-visible {
	outline: 3px solid rgba(181, 69, 47, .42);
	outline-offset: 3px;
}

@media (max-width: 767px) {
	.opb-grid--media .opb-card,
	.opb-grid--event .opb-card {
		align-items: stretch;
	}

	.opb-grid--media .opb-image-wrap {
		flex-basis: 38%;
		width: 38%;
	}

	.opb-grid--event .opb-image-wrap {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.opb-card,
	.opb-image,
	.opb-more,
	.opb-more-icon {
		transition: none !important;
	}
}
