/**
 * BH Global — Beit Halochem News Desk (page template only)
 *
 * Theme Bootstrap sets html { font-size: 10px }, so rem-based type is tiny.
 * All copy uses px / clamp(...px) so it stays readable.
 *
 * @package zdvo
 */

.bh-global-page {
	/* Brand (matches theme style.css: donate / headers) */
	--bh-brand-red: #ed1b24;
	--bh-brand-blue: #0a5675;
	--bh-brand-blue-mid: #0f3d52;
	--bh-bg-deep: #061018;
	--bh-bg-mid: #0a2533;
	--bh-accent: var(--bh-brand-red);
	--bh-accent-soft: rgba(237, 27, 36, 0.22);
	--bh-accent-blue-soft: rgba(10, 86, 117, 0.28);
	--bh-ink: #e8edf5;
	--bh-muted: #9eb8c8;
	--bh-glow: rgba(10, 86, 117, 0.32);
	/* Match theme body (Bootstrap / global: Lato) */
	font-family: inherit;
	color: var(--bh-ink);
	background: #f4f6fa;
	margin: 0;
	overflow-x: hidden;
}

.bh-global-page * {
	box-sizing: border-box;
}

/* Full-width hero image (above headline band) */
.bh-global-hero-media {
	position: relative;
	width: 100%;
	background: var(--bh-bg-deep);
	line-height: 0;
	overflow: hidden;
	cursor: pointer;
}

.bh-global-hero-media:focus {
	outline: none;
}

.bh-global-hero-media:focus-visible {
	outline: 3px solid var(--bh-accent);
	outline-offset: 3px;
}

/* Image layer (defines hero height) */
.bh-global-hero-media-inner {
	position: relative;
	line-height: 0;
}

.bh-global-hero-media-inner::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: min(45%, 200px);
	background: linear-gradient(to bottom, transparent, var(--bh-bg-deep));
	pointer-events: none;
	z-index: 1;
}

/* Mobile: dedicated art — natural height, portrait-friendly */
.bh-global-hero-media-inner picture {
	display: block;
	width: 100%;
	line-height: 0;
}

.bh-global-hero-media-inner img {
	display: block;
	width: 100%;
	height: auto;
	max-height: min(88vh, 720px);
	object-fit: contain;
	object-position: center top;
	background: var(--bh-bg-deep);
}

@media (min-width: 768px) {
	.bh-global-hero-media-inner img {
		height: min(78vh, 640px);
		max-height: none;
		object-fit: cover;
		object-position: center;
	}
}

/* Flex overlay: avoids transform/RTL conflicts from theme CSS */
.bh-global-hero-play-hint {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	color: var(--bh-accent);
	pointer-events: none;
	filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.5));
}

.bh-global-hero-play-hint svg {
	display: block;
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

@media (min-width: 768px) {
	.bh-global-hero-play-hint svg {
		width: 104px;
		height: 104px;
	}
}

.bh-global-hero-media:hover .bh-global-hero-play-hint svg {
	transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
	.bh-global-hero-play-hint svg {
		transition: none;
	}

	.bh-global-hero-media:hover .bh-global-hero-play-hint svg {
		transform: none;
	}
}

/* Hero */
.bh-global-hero {
	position: relative;
	background: radial-gradient(ellipse 120% 80% at 50% -20%, var(--bh-glow), transparent 55%),
		linear-gradient(160deg, var(--bh-bg-deep) 0%, var(--bh-bg-mid) 50%, var(--bh-brand-blue-mid) 100%);
	padding: 3rem 1.35rem 3.75rem;
	text-align: center;
	border-bottom: 1px solid rgba(237, 27, 36, 0.4);
}

@media (min-width: 768px) {
	.bh-global-hero {
		padding: 4rem 2rem 4.5rem;
	}
}

.bh-global-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(
		90deg,
		transparent,
		transparent 2px,
		rgba(255, 255, 255, 0.02) 2px,
		rgba(255, 255, 255, 0.02) 3px
	);
	pointer-events: none;
	opacity: 0.6;
}

.bh-global-hero-inner {
	position: relative;
	z-index: 1;
	max-width: min(94vw, 960px);
	margin: 0 auto;
}

.bh-global-kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: clamp(14px, 1.5vw, 16px);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #fff;
	background: var(--bh-accent-soft);
	border: 1px solid rgba(237, 27, 36, 0.55);
	box-shadow: inset 0 0 0 1px rgba(10, 86, 117, 0.35);
	padding: 0.55rem 1.15rem;
	border-radius: 999px;
	margin-bottom: 1.35rem;
}

.bh-global-title {
	font-family: inherit;
	font-weight: 700;
	font-size: clamp(28px, 5vw, 44px);
	line-height: 1.12;
	margin: 0 0 0.85rem;
	color: #fff;
	text-wrap: balance;
}

.bh-global-title span {
	display: block;
	font-size: clamp(15px, 2.2vw, 20px);
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--bh-brand-red);
	margin-bottom: 0.4rem;
	text-transform: uppercase;
}

.bh-global-lead {
	font-size: clamp(18px, 2.4vw, 23px);
	line-height: 1.55;
	color: var(--bh-muted);
	margin: 0;
	max-width: none;
	width: 100%;
}

/* Body */
.bh-global-body {
	padding: 2.5rem 0 3.5rem;
	font-size: 20px;
	line-height: 1.7;
	color: #1e293b;
}

.bh-global-body .container {
	max-width: 1200px;
}

/* Full-width video band (iframe uses full container width) */
.bh-global-video-stage {
	background: linear-gradient(180deg, #e2ecf2 0%, #eef4f8 50%, #f4f6fa 100%);
	padding: 2.25rem 0 2.75rem;
	margin: 0;
	border-top: 1px solid rgba(10, 86, 117, 0.12);
	border-bottom: 1px solid rgba(237, 27, 36, 0.12);
}

@media (min-width: 768px) {
	.bh-global-video-stage {
		padding: 2.75rem 0 3.25rem;
	}
}

.bh-global-video-stage .container {
	max-width: 1200px;
}

/* Article: comfortable measure, single surface (no cramped sidebar) */
.bh-global-article {
	max-width: 800px;
	margin: 0 auto;
	padding: 2.5rem 15px 0;
}

@media (min-width: 768px) {
	.bh-global-article {
		padding-top: 3rem;
	}
}

.bh-global-article-surface {
	background: #fff;
	border-radius: 16px;
	padding: 2rem 1.5rem;
	box-shadow: 0 8px 40px rgba(10, 86, 117, 0.08);
	border: 1px solid rgba(10, 86, 117, 0.1);
	border-top: 3px solid var(--bh-brand-red);
}

@media (min-width: 768px) {
	.bh-global-article-surface {
		padding: 2.5rem 2.75rem;
	}
}

.bh-global-prose {
	font-size: 20px;
	line-height: 1.75;
	color: #1e293b;
}

.bh-global-page .bh-global-body p {
	font-size: 20px;
	line-height: 1.75;
}

.bh-global-article-surface p {
	margin: 0 0 1.35em;
	color: #334155;
}

.bh-global-article-surface p:last-child {
	margin-bottom: 0;
}

.bh-global-article-surface .bh-global-dropcap::first-letter {
	float: left;
	font-family: inherit;
	font-size: 64px;
	line-height: 0.82;
	font-weight: 700;
	padding-right: 10px;
	padding-top: 2px;
	color: var(--bh-brand-blue);
}

.bh-global-article-surface .bh-global-dropcap::after {
	content: "";
	display: table;
	clear: both;
}

/* Video “broadcast monitor” */
.bh-global-monitor {
	position: relative;
	border-radius: 16px;
	padding: 12px;
	max-width: 100%;
	margin: 0 auto;
	background: linear-gradient(145deg, #0f2530 0%, #061018 100%);
	box-shadow: 0 24px 56px rgba(6, 16, 24, 0.45),
		0 0 0 1px rgba(237, 27, 36, 0.35),
		0 0 0 2px rgba(10, 86, 117, 0.25),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.bh-global-monitor::before {
	content: "";
	position: absolute;
	left: 12px;
	right: 12px;
	top: 8px;
	height: 6px;
	background: repeating-linear-gradient(
		90deg,
		rgba(237, 27, 36, 0.45) 0 5px,
		rgba(10, 86, 117, 0.4) 5px 10px,
		transparent 10px 16px
	);
	border-radius: 2px;
	opacity: 0.85;
	pointer-events: none;
}

.bh-global-monitor-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.45rem 0.55rem 0.75rem;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #8eb4c8;
}

.bh-global-monitor-label span:last-child {
	color: #ff8a90;
	font-size: 13px;
}

.bh-global-monitor-label span:last-child::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	background: var(--bh-brand-red);
	border-radius: 50%;
	margin-right: 0.35rem;
	vertical-align: middle;
	box-shadow: 0 0 10px rgba(237, 27, 36, 0.85);
}

.bh-global-embed {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	border-radius: 10px;
	background: #000;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.bh-global-embed iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.bh-global-video-caption {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	margin: 1.15rem 0 0;
	font-size: 18px;
	line-height: 1.45;
	text-align: center;
}

.bh-global-video-caption-main {
	font-weight: 700;
	font-size: 19px;
	color: var(--bh-brand-red);
	text-decoration: none;
	border-bottom: 2px solid rgba(237, 27, 36, 0.45);
	padding-bottom: 2px;
}

.bh-global-video-caption-main:hover,
.bh-global-video-caption-main:focus {
	color: var(--bh-brand-blue);
	border-bottom-color: rgba(10, 86, 117, 0.45);
}

.bh-global-video-caption-episode {
	font-weight: 600;
	font-size: 17px;
	color: var(--bh-brand-blue);
}

.bh-global-video-caption-url {
	font-weight: 500;
	font-size: 15px;
	color: var(--bh-brand-blue);
	text-decoration: underline;
	text-decoration-color: rgba(10, 86, 117, 0.4);
	word-break: break-all;
	max-width: 100%;
}

.bh-global-video-caption-url:hover,
.bh-global-video-caption-url:focus {
	color: var(--bh-brand-red);
	text-decoration-color: rgba(237, 27, 36, 0.45);
}

/* Editor content (optional) */
.bh-global-editor {
	max-width: 800px;
	margin: 2.5rem auto 0;
	padding: 2rem 15px 0;
	border-top: 1px solid rgba(10, 86, 117, 0.15);
	font-size: 20px;
	line-height: 1.72;
	color: #334155;
}

.bh-global-page .bh-global-editor p,
.bh-global-page .bh-global-editor li {
	font-size: 20px;
	line-height: 1.72;
}

.bh-global-editor > *:first-child {
	margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
	.bh-global-monitor-label span:last-child::before {
		animation: none;
		box-shadow: none;
	}
}
