.bm-news-single {
	--bm-accent: #C29843;
	--bm-ink: #000000;
}

/* Hero */
.bm-news-hero {
	position: relative;
}

.bm-news-hero .elementor-widget-theme-post-featured-image .elementor-widget-container {
	position: relative;
	overflow: hidden;
	height: 440px;
	border-radius: 4px;
}

/*
 * Same letterbox technique as the grid cards: a blurred/scaled backdrop
 * copy of the featured image fills the box, the real image sits on top
 * with object-fit:contain so the whole photo is always visible no matter
 * its own aspect ratio. Injected by single-media.js since this markup
 * belongs to Elementor Pro's own theme-post-featured-image widget.
 */
.bm-news-hero__image-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	filter: blur(20px) brightness(.7) saturate(1.2);
	transform: scale(1.15);
}

.bm-news-hero .elementor-widget-theme-post-featured-image img {
	position: relative;
	width: 100%;
	height: 440px;
	object-fit: contain;
	z-index: 1;
	cursor: zoom-in;
}

@media (max-width: 767px) {
	.bm-news-hero .elementor-widget-theme-post-featured-image .elementor-widget-container {
		height: 240px;
	}
	.bm-news-hero .elementor-widget-theme-post-featured-image img {
		height: 240px;
	}
}

.bm-news-article-content img {
	cursor: zoom-in;
}

/* Lightbox */
.bm-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .9);
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s ease;
}

.bm-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.bm-lightbox__img {
	max-width: 90vw;
	max-height: 88vh;
	object-fit: contain;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}

.bm-lightbox__close {
	position: absolute;
	top: 20px;
	right: 24px;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	transition: background .2s ease;
}

.bm-lightbox__close:hover {
	background: rgba(255, 255, 255, .25);
}

@media (max-width: 767px) {
	.bm-lightbox__close {
		top: 10px;
		right: 12px;
		width: 38px;
		height: 38px;
		font-size: 20px;
	}
}

/* Article meta row */
.bm-article-meta {
	font-size: 13px;
}

.bm-article-meta__category {
	display: inline-block;
	background: var(--bm-accent);
	color: #000;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: 5px 12px;
	border-radius: 999px;
	margin-bottom: 12px;
}

.bm-article-meta__row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.bm-article-meta__row > * + *::before {
	content: '·';
	margin-right: 10px;
	color: #ccc;
}

.bm-news-author-avatar {
	border-radius: 50%;
	object-fit: cover;
}

.bm-news-author-avatar--fallback {
	display: inline-block;
	border-radius: 50%;
	background: var(--bm-accent);
	color: #fff;
	font-weight: 700;
	text-align: center;
	flex: none;
}

.bm-article-meta__tags {
	margin-top: 12px;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.bm-article-meta__tag {
	font-size: 12px;
	font-weight: 600;
	color: var(--bm-accent);
}

/* Article body typography — visual polish only, text content untouched */
.bm-news-article-content {
	font-size: 17px;
	line-height: 1.75;
	color: #222;
	max-width: 720px;
}

.bm-news-article-content > p:first-of-type {
	font-size: 20px;
	line-height: 1.6;
	color: #333;
	font-weight: 500;
}

.bm-news-article-content h2,
.bm-news-article-content h3,
.bm-news-article-content h4 {
	color: #000;
	font-weight: 700;
	margin-top: 2em;
	margin-bottom: .6em;
	line-height: 1.3;
}

.bm-news-article-content h2 { font-size: 26px; }
.bm-news-article-content h3 { font-size: 21px; }

.bm-news-article-content p {
	margin: 0 0 1.3em;
}

.bm-news-article-content img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
	margin: 28px 0;
	box-shadow: 0 8px 24px rgba(0,0,0,.08);
	display: block;
}

.bm-news-article-content figure {
	margin: 28px 0;
}

.bm-news-article-content figcaption {
	font-size: 13px;
	color: #888;
	text-align: center;
	margin-top: 8px;
}

.bm-news-article-content blockquote {
	margin: 28px 0;
	padding: 4px 0 4px 24px;
	border-left: 4px solid var(--bm-accent);
	font-style: italic;
	color: #444;
	font-size: 18px;
}

.bm-news-article-content ul,
.bm-news-article-content ol {
	margin: 0 0 1.3em;
	padding-left: 1.4em;
}

.bm-news-article-content li {
	margin-bottom: .5em;
}

.bm-news-article-content a {
	color: var(--bm-ink);
	text-decoration: underline;
	text-decoration-color: var(--bm-accent);
	text-underline-offset: 3px;
}

.bm-news-article-content iframe,
.bm-news-article-content video {
	max-width: 100%;
	border-radius: 10px;
}

@media (max-width: 767px) {
	.bm-news-article-content {
		font-size: 16px;
	}
	.bm-news-article-content > p:first-of-type {
		font-size: 18px;
	}
	.bm-news-article-content h2 { font-size: 22px; }
	.bm-news-article-content h3 { font-size: 19px; }
}

/* Related news sidebar */
.bm-related-news {
	background: #fafafa;
	border-radius: 10px;
	padding: 24px;
}

/*
 * CSS position:sticky is unreliable here because its containing block is
 * a nested Elementor flex column whose "line" height doesn't naturally
 * span the full article length. Instead, assets/js/single-sticky.js
 * measures the actual section bounds and moves this box with
 * transform:translateY(), bounded to start at .bm-related-news-top-gap
 * below the viewport top and stop before the section's bottom edge.
 */
.bm-related-news--sticky {
	will-change: transform;
}

@media (max-width: 1024px) {
	.bm-related-news--sticky {
		transform: none !important;
	}
}

.bm-related-news__heading {
	margin: 0 0 20px;
	font-size: 16px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .05em;
	position: relative;
	padding-bottom: 12px;
}

.bm-related-news__heading::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 36px;
	height: 3px;
	background: var(--bm-accent);
}

.bm-related-news__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bm-related-news__item + .bm-related-news__item {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #e8e8e8;
}

.bm-related-news__link {
	display: flex;
	gap: 12px;
	text-decoration: none;
	color: inherit;
}

.bm-related-news__thumb {
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	border-radius: 8px;
	background-size: cover;
	background-position: center;
}

.bm-related-news__meta {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}

.bm-related-news__title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: #000;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color .2s ease;
}

.bm-related-news__link:hover .bm-related-news__title {
	color: var(--bm-accent);
}

.bm-related-news__date {
	font-size: 12px;
	color: #999;
	margin-top: 4px;
}

@media (max-width: 1024px) {
	.bm-related-news--sticky {
		position: static;
	}
	.bm-related-news__list {
		display: flex;
		gap: 16px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 8px;
	}
	.bm-related-news__item {
		flex: 0 0 240px;
	}
	.bm-related-news__item + .bm-related-news__item {
		margin-top: 0;
		padding-top: 0;
		border-top: none;
	}
}
