/**
 * בית המדרש הדיגיטלי (page-7601.php).
 *
 * אותה שפה כמו שאר האתר: כחול עמוק וזהב, Frank Ruhl Libre בכותרות ו-Assistant
 * בטקסט, קו זהב קצר כחתימה, כרטיסים לבנים עם קו זהב עליון על רקע נייר.
 * מה שמיוחד לעמוד הזה: קרני אור זהובות בפתיח הכהה, כמו השמש שבסמל הישיבה
 * ("אור וישועה"), וחוזרות בהזמנה שבסוף העמוד.
 *
 * גדלים בפיקסלים ולא ב-rem: OceanWP קובע לשורש 10px.
 */

.ov-bm {
	--ink: var(--ov-ink, #131c26);
	--navy: var(--ov-navy, #002347);
	--navy-soft: var(--ov-navy-soft, #1c3a5e);
	--navy-deep: var(--ov-navy-deep, #001b38);
	--gold: var(--ov-gold, #d59b2a);
	--gold-bright: var(--ov-gold-bright, #f0b641);
	--gold-deep: var(--ov-gold-deep, #9a6c17);
	--sand: var(--ov-surface-alt, #f6f3ec);
	--line: var(--ov-border, #ece6d9);
	--muted: #5b6b7c;
	--display: 'Frank Ruhl Libre', Georgia, serif;
	--body: 'Assistant', system-ui, sans-serif;
	--wide: 1200px;
	--shadow-sm: 0 1px 2px rgba(0, 35, 71, 0.04), 0 4px 12px -4px rgba(0, 35, 71, 0.1);
	--shadow-md: 0 2px 4px rgba(0, 35, 71, 0.05), 0 18px 40px -16px rgba(0, 35, 71, 0.22);
	--shadow-lg: 0 4px 8px rgba(0, 35, 71, 0.06), 0 30px 60px -20px rgba(0, 35, 71, 0.34);
	--ease: cubic-bezier(0.22, 1, 0.36, 1);

	font-family: var(--body);
	color: var(--ink);
}

.ov-bm *,
.ov-bm *::before,
.ov-bm *::after {
	box-sizing: border-box;
}

/* כל הרצועות מתחילות מאותו קו כמו ההדר */
.ov-bm-wrap,
.ov-bm-section,
.ov-bm-hero__inner,
.ov-bm-stats {
	max-width: calc(var(--wide) + 2 * var(--ov-edge));
	margin-inline: auto;
	padding-inline: var(--ov-edge);
}

.ov-bm a:focus-visible,
.ov-bm button:focus-visible {
	outline: 3px solid var(--gold-bright);
	outline-offset: 3px;
}

.ov-bm-rule {
	display: block;
	width: 68px;
	height: 3px;
	border-radius: 100px;
	background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 100%);
}

/* ==========================================================================
   פתיח
   ========================================================================== */

.ov-bm-hero {
	position: relative;
	z-index: 0;
	overflow: hidden;
	color: #ffffff;
	background:
		radial-gradient(860px 520px at 100% 0%, rgba(213, 155, 42, 0.24), transparent 64%),
		radial-gradient(760px 520px at 0% 100%, rgba(28, 58, 94, 0.85), transparent 70%),
		linear-gradient(165deg, #06305c 0%, var(--navy) 46%, var(--navy-deep) 100%);
}

/* קרני האור: יוצאות מהפינה העליונה בצד ההתחלה (ימין) ודועכות */
.ov-bm-hero__rays,
.ov-bm-invite__rays {
	position: absolute;
	z-index: -1;
	width: 1900px;
	height: 1900px;
	pointer-events: none;
	background: repeating-conic-gradient(from 4deg, rgba(240, 182, 65, 0.13) 0deg 1.6deg, transparent 1.6deg 7.5deg);
	-webkit-mask: radial-gradient(circle closest-side, #000000 8%, rgba(0, 0, 0, 0.55) 42%, transparent 100%);
	mask: radial-gradient(circle closest-side, #000000 8%, rgba(0, 0, 0, 0.55) 42%, transparent 100%);
}

.ov-bm-hero__rays {
	top: -950px;
	inset-inline-start: -950px;
}

.ov-bm-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
	gap: clamp(36px, 5vw, 76px);
	align-items: center;
	padding-block: clamp(52px, 8vh, 92px) clamp(44px, 6vh, 68px);
}

.ov-bm-hero__eyebrow {
	margin: 0 0 16px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1.4;
	color: var(--gold-bright);
}

.ov-bm-hero__title {
	margin: 0;
	font-family: var(--display);
	font-size: clamp(40px, 5.2vw, 64px);
	font-weight: 700;
	line-height: 1.06;
	letter-spacing: -0.01em;
	color: #ffffff;
}

.ov-bm-hero .ov-bm-rule {
	margin: 24px 0 22px;
}

.ov-bm-hero__lede {
	max-width: 46ch;
	margin: 0;
	font-size: 19px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.82);
}

/* ---------- חיפוש ---------- */

.ov-bm-search {
	position: relative;
	display: flex;
	align-items: center;
	max-width: 600px;
	margin-top: 32px;
	padding: 7px;
	padding-inline-start: 56px;
	background: #ffffff;
	border-radius: 100px;
	box-shadow: 0 22px 44px -16px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
	transition: box-shadow 0.25s ease;
}

.ov-bm-search:focus-within {
	box-shadow: 0 22px 44px -16px rgba(0, 0, 0, 0.6), 0 0 0 4px rgba(240, 182, 65, 0.55);
}

.ov-bm-search__icon {
	position: absolute;
	inset-inline-start: 22px;
	top: 50%;
	width: 22px;
	height: 22px;
	transform: translateY(-50%);
	fill: none;
	stroke: var(--gold-deep);
	stroke-width: 2.2;
	stroke-linecap: round;
}

/* שלוש מחלקות: OceanWP מעצב את שדות החיפוש ב-form input[type="search"]:focus */
.ov-bm .ov-bm-search .ov-bm-search__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 50px;
	margin: 0;
	padding: 0 4px;
	font-family: var(--body);
	font-size: 18px;
	line-height: 50px;
	color: var(--navy);
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

.ov-bm .ov-bm-search .ov-bm-search__input::placeholder {
	color: #7d8a97;
	opacity: 1;
}

.ov-bm .ov-bm-search .ov-bm-search__input::-webkit-search-cancel-button {
	cursor: pointer;
}

/* OceanWP: button[type=submit] עם רקע, ריווח אותיות ואותיות גדולות */
.ov-bm .ov-bm-search .ov-bm-search__go {
	flex: 0 0 auto;
	min-height: 50px;
	margin: 0;
	padding: 0 30px;
	font-family: var(--body);
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	color: var(--navy);
	background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
	border: 0;
	border-radius: 100px;
	box-shadow: 0 8px 18px -8px rgba(213, 155, 42, 0.9);
	cursor: pointer;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ov-bm .ov-bm-search .ov-bm-search__go:hover,
.ov-bm .ov-bm-search .ov-bm-search__go:focus-visible {
	color: var(--navy);
	background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
	transform: translateY(-1px);
	box-shadow: 0 12px 24px -8px rgba(213, 155, 42, 1);
}

.ov-bm-search__hint {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	max-width: 600px;
	margin: 16px 0 0;
	padding-inline-start: 4px;
	font-size: 15px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.7);
}

.ov-bm-search__hint svg {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	fill: none;
	stroke: var(--gold-bright);
	stroke-width: 2;
	stroke-linecap: round;
}

/* ---------- תוצאות החיפוש (כרטיסי הקטלוג, כאן כשורות) ---------- */

.ov-bm-results {
	max-width: 600px;
	margin-top: 18px;
	overflow: hidden;
	color: var(--ink);
	background: #ffffff;
	border-top: 3px solid var(--gold);
	border-radius: 18px;
	box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.65);
}

.ov-bm-results[hidden] {
	display: none;
}

.ov-bm-results__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 16px;
	padding: 14px 20px 12px;
	border-bottom: 1px solid var(--line);
}

.ov-bm-results__count {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--navy);
}

.ov-bm-results__all {
	font-size: 15px;
	font-weight: 700;
	color: var(--gold-deep);
	text-decoration: none;
}

.ov-bm-results__all:hover,
.ov-bm-results__all:focus-visible {
	color: var(--navy);
}

.ov-bm-results__list {
	transition: opacity 0.2s ease;
}

.ov-bm-results.is-loading .ov-bm-results__list {
	opacity: 0.45;
}

.ov-bm-results .ov-card {
	position: relative;
	display: grid;
	grid-template-columns: 128px minmax(0, 1fr);
	gap: 4px 16px;
	align-items: start;
	padding: 14px 20px;
	border-bottom: 1px solid #f1ece2;
	transition: background-color 0.2s ease;
}

.ov-bm-results .ov-card:hover {
	background: #fcfaf5;
}

.ov-bm-results .ov-card:nth-child(n + 7) {
	display: none;
}

.ov-bm-results .ov-card:last-child {
	border-bottom: 0;
}

.ov-bm-results .ov-card__media {
	display: block;
	line-height: 0;
	border-radius: 10px;
	overflow: hidden;
}

.ov-bm-results .ov-card__img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	background: #e4ded1;
}

.ov-bm-results .ov-card__title {
	margin: 0;
	font-family: var(--body);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
}

.ov-bm-results .ov-card__title a {
	color: var(--navy);
	text-decoration: none;
}

/* כל השורה לחיצה, לא רק הכותרת */
.ov-bm-results .ov-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.ov-bm-results .ov-card:hover .ov-card__title a {
	color: var(--gold-deep);
}

/* שם הרב והדקה באותה שורה */
.ov-bm-results .ov-card__meta {
	display: inline-block;
	margin: 6px 0 0;
	margin-inline-end: 10px;
	font-size: 14px;
	color: var(--muted);
	vertical-align: middle;
}

.ov-bm-results .ov-card__body {
	min-width: 0;
}

.ov-bm-results .ov-card__timestamp {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 6px;
	padding: 3px 11px;
	font-size: 13px;
	font-weight: 700;
	color: var(--gold-deep);
	text-decoration: none;
	vertical-align: middle;
	background: #fbf2de;
	border-radius: 100px;
}

.ov-bm-results mark {
	padding: 0 2px;
	font-weight: 700;
	color: var(--navy);
	background: #fbe7b5;
	border-radius: 3px;
}

.ov-bm-results .ov-card__timestamp:hover,
.ov-bm-results .ov-card__timestamp:focus-visible {
	color: var(--navy);
	background: #f6e5bd;
}

.ov-bm-results .ov-card__snippet {
	display: -webkit-box;
	margin: 6px 0 0;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.5;
	color: var(--muted);
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

/* ---------- נושאים מבוקשים ---------- */

.ov-bm-quick {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 8px;
	max-width: 600px;
	margin-top: 26px;
}

.ov-bm.is-searching .ov-bm-quick {
	display: none;
}

.ov-bm-quick__label {
	width: 100%;
	font-size: 14px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.6);
}

.ov-bm-quick__chip {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 5px 15px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: #ffffff;
	text-decoration: none;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 100px;
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.ov-bm-quick__chip:hover,
.ov-bm-quick__chip:focus-visible {
	color: #ffffff;
	background: rgba(240, 182, 65, 0.16);
	border-color: var(--gold-bright);
}

/* ---------- השיעור החדש ---------- */

/* צמוד למעלה ולא ממורכז: כשתוצאות החיפוש נפתחות, הכרטיס לא זז */
.ov-bm-feature {
	display: block;
	align-self: start;
	margin-top: 30px;
	padding: 12px;
	color: #ffffff;
	text-decoration: none;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.035) 100%);
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: 24px;
	box-shadow: 0 34px 70px -28px rgba(0, 0, 0, 0.7);
	transition: transform 0.4s var(--ease), border-color 0.4s ease;
}

.ov-bm-feature:hover,
.ov-bm-feature:focus-visible {
	color: #ffffff;
	transform: translateY(-4px);
	border-color: rgba(240, 182, 65, 0.5);
}

.ov-bm-feature__frame {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #0b2a4d;
	border-radius: 15px;
}

.ov-bm-feature__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s var(--ease);
}

.ov-bm-feature:hover .ov-bm-feature__img {
	transform: scale(1.04);
}

.ov-bm-feature__frame::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 20, 45, 0.45) 0%, rgba(0, 20, 45, 0) 45%);
}

.ov-bm-feature__badge {
	position: absolute;
	z-index: 1;
	top: 14px;
	inset-inline-start: 14px;
	padding: 5px 13px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--navy);
	background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
	border-radius: 100px;
	box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.5);
}

/* כפתור הניגון: .ov-play ב-components.css */

.ov-bm-feature__body {
	display: block;
	padding: 18px 10px 8px;
}

.ov-bm-feature__topic {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--gold-bright);
}

.ov-bm-feature__title {
	display: block;
	font-family: var(--display);
	font-size: clamp(22px, 2.2vw, 27px);
	font-weight: 700;
	line-height: 1.3;
	color: #ffffff;
}

.ov-bm-by {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 16px;
}

.ov-bm-by__img {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	object-fit: cover;
	object-position: center 30%;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-radius: 50%;
}

.ov-bm-by__text {
	display: flex;
	flex-direction: column;
	gap: 1px;
	font-size: 14px;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.65);
}

.ov-bm-by__name {
	font-size: 16px;
	font-weight: 600;
	color: #ffffff;
}

/* ---------- מספרים ---------- */

.ov-bm-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-block: 0;
}

.ov-bm-stats__item {
	display: flex;
	flex-direction: column-reverse;
	justify-content: flex-end;
	padding-block: 26px 34px;
	border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.ov-bm-stats__item + .ov-bm-stats__item {
	padding-inline-start: clamp(18px, 3vw, 36px);
	border-inline-start: 1px solid rgba(255, 255, 255, 0.1);
}

.ov-bm-stats__num {
	margin: 0;
	font-family: var(--display);
	font-size: clamp(34px, 3.6vw, 46px);
	font-weight: 700;
	line-height: 1;
	color: var(--gold-bright);
}

.ov-bm-stats__label {
	margin: 10px 0 0;
	font-size: 16px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.72);
}

/* ==========================================================================
   המשכתם לצפות (continue-watching.js), וכותרות הרצועות (.ov-head ב-components.css)
   ========================================================================== */

.ov-bm .ov-continue {
	margin-block: clamp(60px, 9vh, 96px) 0;
}

.ov-bm-section {
	padding-top: clamp(60px, 9vh, 96px);
}

/* ==========================================================================
   הרבנים
   ========================================================================== */

.ov-bm-rabbis {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ov-bm-rabbis__item {
	margin: 0;
}

.ov-bm-rabbi {
	position: relative;
	z-index: 0;
	display: flex;
	align-items: flex-end;
	height: 100%;
	aspect-ratio: 4 / 5;
	padding: 22px;
	overflow: hidden;
	color: #ffffff;
	text-decoration: none;
	background-color: var(--navy);
	border-radius: 20px;
	box-shadow: var(--shadow-md);
	transition: transform 0.4s var(--ease), box-shadow 0.4s ease;
}

.ov-bm-rabbi__img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 22%;
	transition: transform 0.7s var(--ease);
}

.ov-bm-rabbi::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top, rgba(0, 20, 45, 0.96) 0%, rgba(0, 27, 56, 0.72) 28%, rgba(0, 35, 71, 0.08) 58%, rgba(0, 35, 71, 0) 100%);
}

.ov-bm-rabbi:hover,
.ov-bm-rabbi:focus-visible {
	color: #ffffff;
	transform: translateY(-5px);
	box-shadow: var(--shadow-lg);
}

.ov-bm-rabbi:hover .ov-bm-rabbi__img,
.ov-bm-rabbi:focus-visible .ov-bm-rabbi__img {
	transform: scale(1.05);
}

.ov-bm-rabbi__body {
	display: block;
	width: 100%;
}

.ov-bm-rabbi__count {
	display: inline-block;
	margin-bottom: 10px;
	padding: 3px 11px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.45;
	color: var(--navy);
	background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
	border-radius: 100px;
}

.ov-bm-rabbi__name {
	display: block;
	font-family: var(--display);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	color: #ffffff;
}

.ov-bm-rabbi__role {
	display: block;
	margin-top: 6px;
	font-size: 15px;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.8);
}

.ov-bm-seam {
	display: block;
	width: 34px;
	height: 3px;
	margin-top: 16px;
	background: var(--gold);
	transition: width 0.4s var(--ease);
}

.ov-bm-rabbi:hover .ov-bm-seam,
.ov-bm-rabbi:focus-visible .ov-bm-seam {
	width: 84px;
}

/* רב בלי תמונה: האות הראשונה של השם */
.ov-bm-rabbi__initial {
	position: absolute;
	inset: 0 0 30%;
	display: grid;
	place-items: center;
	font-family: var(--display);
	font-size: 110px;
	font-weight: 700;
	color: rgba(240, 182, 65, 0.4);
}

.ov-bm-rabbi--plain,
.ov-bm-rabbi--all {
	background-image:
		radial-gradient(420px 300px at 100% 0%, rgba(213, 155, 42, 0.3), transparent 68%),
		linear-gradient(160deg, var(--navy-soft) 0%, var(--navy) 72%);
}

.ov-bm-rabbi--all::after {
	content: none;
}

.ov-bm-rabbi__icon {
	position: absolute;
	top: 24px;
	inset-inline-start: 22px;
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border: 1.5px solid rgba(240, 182, 65, 0.55);
	border-radius: 50%;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

.ov-bm-rabbi__icon svg {
	width: 30px;
	height: 30px;
	fill: none;
	stroke: var(--gold-bright);
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ov-bm-rabbi--all:hover .ov-bm-rabbi__icon {
	background: rgba(240, 182, 65, 0.14);
	border-color: var(--gold-bright);
}

/* ==========================================================================
   חדש בבית המדרש: המדף וכרטיס השיעור המשותפים (components.css)
   ========================================================================== */

/* ==========================================================================
   הנושאים
   ========================================================================== */

.ov-bm-topics {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ov-bm-topic {
	display: flex;
	flex-direction: column;
	margin: 0;
	overflow: hidden;
	background: #ffffff;
	border-top: 3px solid var(--gold);
	border-radius: 18px;
	box-shadow: var(--shadow-sm);
	transition: transform 0.4s var(--ease), box-shadow 0.4s ease;
}

.ov-bm-topic:hover,
.ov-bm-topic:focus-within {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}

/* שלושת השיעורים האחרונים בנושא: אחד גדול ושניים קטנים */
.ov-bm-topic__cover {
	display: grid;
	grid-template-columns: 2fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 2px;
	height: 158px;
	background: var(--navy);
}

.ov-bm-topic__img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
	object-fit: cover;
	transition: opacity 0.3s ease;
}

.ov-bm-topic__img--1 {
	grid-row: 1 / 3;
}

.ov-bm-topic:hover .ov-bm-topic__img {
	opacity: 0.9;
}

.ov-bm-topic__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	padding: 22px 24px 22px;
}

.ov-bm-topic__name {
	margin: 0;
	font-family: var(--display);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
}

.ov-bm-topic__name a {
	color: var(--navy);
	text-decoration: none;
}

.ov-bm-topic__name a:hover,
.ov-bm-topic__name a:focus-visible {
	color: var(--gold-deep);
}

.ov-bm-topic__count {
	margin: 4px 0 0;
	font-size: 15px;
	color: var(--muted);
}

.ov-bm-topic__subs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.ov-bm-topic__subs li {
	margin: 0;
}

.ov-bm-sub {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 13px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--navy);
	text-decoration: none;
	background: var(--sand);
	border-radius: 100px;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.ov-bm-sub:hover,
.ov-bm-sub:focus-visible {
	color: #ffffff;
	background: var(--navy);
}

.ov-bm-sub__n {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--gold-deep);
	transition: color 0.25s ease;
}

.ov-bm-sub:hover .ov-bm-sub__n,
.ov-bm-sub:focus-visible .ov-bm-sub__n {
	color: var(--gold-bright);
}

.ov-bm-topic__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 20px;
	font-size: 16px;
	font-weight: 700;
	color: var(--gold-deep);
	text-decoration: none;
	transition: color 0.25s ease;
}

.ov-bm-topic__more svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 0.3s var(--ease);
}

.ov-bm-topic__more:hover,
.ov-bm-topic__more:focus-visible {
	color: var(--navy);
}

.ov-bm-topic__more:hover svg,
.ov-bm-topic__more:focus-visible svg {
	transform: translateX(-4px);
}

/* ==========================================================================
   הזמנה לעוזר הדיגיטלי
   ========================================================================== */

.ov-bm-invite {
	padding-block: clamp(64px, 9vh, 100px) clamp(64px, 9vh, 104px);
}

.ov-bm-invite__panel {
	position: relative;
	z-index: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 26px 40px;
	padding: clamp(32px, 4.5vw, 52px) clamp(26px, 4.5vw, 60px);
	overflow: hidden;
	color: #ffffff;
	background:
		radial-gradient(620px 380px at 0% 100%, rgba(213, 155, 42, 0.2), transparent 66%),
		linear-gradient(165deg, #06305c 0%, var(--navy) 50%, var(--navy-deep) 100%);
	border-radius: 24px;
	box-shadow: var(--shadow-lg);
}

/* כאן הקרניים יוצאות מהפינה התחתונה בצד הסוף, כמו סגירה של הפתיח */
.ov-bm-invite__rays {
	bottom: -950px;
	inset-inline-end: -950px;
	opacity: 0.8;
}

.ov-bm-invite__text {
	flex: 1 1 360px;
}

.ov-bm-invite__title {
	margin: 0;
	font-family: var(--display);
	font-size: clamp(28px, 3vw, 36px);
	font-weight: 700;
	line-height: 1.2;
	color: #ffffff;
}

.ov-bm-invite__lede {
	max-width: 60ch;
	margin: 12px 0 0;
	font-size: 18px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.8);
}

.ov-bm-invite__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.ov-bm .ov-bm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	margin: 0;
	padding: 0 28px;
	font-family: var(--body);
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	border-radius: 100px;
	cursor: pointer;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.ov-bm .ov-bm-btn[hidden] {
	display: none;
}

.ov-bm .ov-bm-btn svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linejoin: round;
}

.ov-bm .ov-bm-btn--gold {
	color: var(--navy);
	background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
	border: 0;
	box-shadow: 0 12px 28px -10px rgba(213, 155, 42, 0.85);
}

.ov-bm .ov-bm-btn--gold:hover,
.ov-bm .ov-bm-btn--gold:focus-visible {
	color: var(--navy);
	background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
	transform: translateY(-2px);
	box-shadow: 0 16px 32px -10px rgba(213, 155, 42, 0.95);
}

.ov-bm .ov-bm-btn--ghost {
	color: #ffffff;
	background: transparent;
	border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.ov-bm .ov-bm-btn--ghost:hover,
.ov-bm .ov-bm-btn--ghost:focus-visible {
	color: var(--gold-bright);
	background: rgba(240, 182, 65, 0.08);
	border-color: var(--gold-bright);
}

/* ==========================================================================
   רוחבים
   ========================================================================== */

@media (max-width: 1080px) {
	.ov-bm-hero__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.ov-bm-feature {
		max-width: 640px;
		margin-top: 0;
	}

	.ov-bm-topics {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* כרטיסי רבנים צרים (ארבעה בשורה בטאבלט, שניים בנייד) */
@media (max-width: 900px) {
	.ov-bm-rabbis {
		gap: 14px;
	}

	/* כרטיס גבוה יותר: הטקסט תופס יותר מהרוחב הצר, והפנים צריכות מקום מעליו */
	.ov-bm-rabbi {
		aspect-ratio: 5 / 7;
		padding: 14px;
		border-radius: 16px;
	}

	.ov-bm-rabbi__img {
		object-position: center 12%;
	}

	.ov-bm-rabbi__count {
		margin-bottom: 8px;
		padding: 2px 9px;
		font-size: 12px;
	}

	.ov-bm-rabbi__name {
		font-size: 18px;
	}

	.ov-bm-rabbi__role {
		display: -webkit-box;
		overflow: hidden;
		font-size: 13px;
		line-height: 1.4;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}

	.ov-bm-seam {
		margin-top: 10px;
	}

	.ov-bm-rabbi__icon {
		top: 16px;
		inset-inline-start: 14px;
		width: 50px;
		height: 50px;
	}

	.ov-bm-rabbi__icon svg {
		width: 24px;
		height: 24px;
	}
}

@media (max-width: 680px) {
	.ov-bm-hero__inner {
		gap: 36px;
		padding-block: 40px 36px;
	}

	.ov-bm-hero__lede {
		font-size: 17px;
	}

	.ov-bm-search {
		margin-top: 26px;
		padding: 5px;
		padding-inline-start: 46px;
	}

	.ov-bm-search__icon {
		inset-inline-start: 17px;
		width: 20px;
		height: 20px;
	}

	/* 16 פיקסלים לפחות: בפחות מזה אייפון מגדיל את המסך כשנוגעים בשדה */
	.ov-bm .ov-bm-search .ov-bm-search__input {
		height: 46px;
		font-size: 16px;
		line-height: 46px;
	}

	.ov-bm .ov-bm-search .ov-bm-search__go {
		min-height: 46px;
		padding: 0 20px;
		font-size: 16px;
	}

	.ov-bm-search__hint {
		font-size: 14px;
	}

	.ov-bm-results .ov-card {
		grid-template-columns: 96px minmax(0, 1fr);
		gap: 4px 12px;
		padding: 12px 14px;
	}

	.ov-bm-results__bar {
		padding-inline: 14px;
	}

	.ov-bm-results .ov-card__title {
		font-size: 15px;
	}

	.ov-bm-feature {
		padding: 9px;
		border-radius: 20px;
	}

	.ov-bm-feature__frame {
		border-radius: 13px;
	}

	.ov-bm-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ov-bm-stats__item {
		padding-block: 20px 22px;
	}

	.ov-bm-stats__item + .ov-bm-stats__item {
		padding-inline-start: 0;
		border-inline-start: 0;
	}

	.ov-bm-stats__item:nth-child(even) {
		padding-inline-start: 20px;
		border-inline-start: 1px solid rgba(255, 255, 255, 0.1);
	}

	.ov-bm-stats__item:nth-child(n + 3) {
		padding-top: 18px;
	}

	.ov-bm-stats__label {
		font-size: 15px;
	}

	.ov-bm-rabbis {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.ov-bm-rabbi__name {
		font-size: 17px;
	}

	.ov-bm-topics {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}

	/* בנייד השער הוא רצועה דקה של שלוש תמונות, כדי ששישה נושאים לא יהיו מסך אחרי מסך */
	.ov-bm-topic__cover {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		grid-template-rows: 1fr;
		height: 92px;
	}

	.ov-bm-topic__img--1 {
		grid-row: auto;
	}

	.ov-bm-topic__body {
		padding: 16px 18px 18px;
	}

	.ov-bm-topic__name {
		font-size: 25px;
	}

	.ov-bm-topic__subs {
		margin-top: 14px;
	}

	.ov-bm-topic__more {
		padding-top: 14px;
	}

	.ov-bm-invite__actions,
	.ov-bm .ov-bm-btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ov-bm *,
	.ov-bm *::before,
	.ov-bm *::after {
		transition: none;
	}

	.ov-bm-feature:hover,
	.ov-bm-rabbi:hover,
	.ov-bm-topic:hover,
	.ov-bm-topic:focus-within,
	.ov-bm-feature:hover .ov-bm-feature__img,
	.ov-bm-rabbi:hover .ov-bm-rabbi__img {
		transform: none;
	}
}
