/* Jewish Learning @ BJ page blocks — Learning Session List, Summary Card,
   Sessions Grid, Schedule, Agenda, and the Series Intro block.
   Matches the [bj_learning] / [bj_series_intro] shortcodes' existing
   styling (bj.org/jewish-learning-bj), so these blocks are a drop-in
   replacement with the same look. Navy #003340, teal accents, Produkt
   titles, Graphik body. */

.bj-learning { font-family: "Graphik Web", system-ui, sans-serif; }

.bj-learning-section { margin: 2.5rem 0; }
.bj-learning-section-title {
	font-family: "Produkt Web", Georgia, serif;
	font-weight: 500; color: #003340;
	font-size: 1.6rem; line-height: 1.25; margin: 0 0 .5rem;
}
.bj-learning-section hr { border: 0; border-top: 2px solid #00a29b; margin: 0 0 1.5rem; }

.bj-learning-avatar {
	width: 72px; height: 72px; border-radius: 50%;
	overflow: hidden; flex-shrink: 0;
	border: 2px solid #fff;
	box-shadow: 0 0 0 2px #00a29b;
	background: #d6dde8;
	display: inline-flex; align-items: center; justify-content: center;
}
.bj-learning-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bj-learning-avatar img { filter: grayscale(100%); -webkit-filter: grayscale(100%); transform: translateZ(0); will-change: auto; }
.bj-learning-avatar--placeholder {
	width: 72px; height: 72px; border-radius: 50%;
	background: #eef2f2; display: inline-block;
	box-shadow: 0 0 0 2px #e0eeee;
}

.bj-learning-list { list-style: none; margin: 1rem 0; padding: 0; border-top: 1px solid #e0eeee; }
.bj-learning-list-row {
	display: flex; align-items: flex-start; gap: 16px;
	padding: 16px 4px; border-bottom: 1px solid #e0eeee;
}
.bj-learning-list-row .bj-learning-avatars,
.bj-learning-list-row .bj-learning-avatars--empty { flex: 0 0 auto; margin: 0; }
.bj-learning-list-row.is-past { opacity: .7; }
.bj-learning-list-row .bj-learning-avatars { margin: 0; flex-shrink: 0; }
.bj-learning-list-row .bj-learning-avatar { width: 72px; height: 72px; }
.bj-learning-list-main { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.bj-learning-list-title { font-family: "Produkt Web", Georgia, serif; font-weight: 500; font-size: 1.05rem; color: #003340; line-height: 1.25; }
.bj-learning-list-title .bj-learning-more { margin-left: 8px; font-size: .82rem; font-weight: 700; }
.bj-learning-list-teacher { font-size: .82rem; font-weight: 700; color: #003340; }

.bj-learning-date, .bj-learning-list-when {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: .85rem; color: #003340; margin: 0;
}
.bj-learning-clock { fill: #003340; flex-shrink: 0; }

.bj-learning-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.bj-learning-tag {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: .8rem; color: #003340;
	background: #F3F3F0;
	padding: 4px 12px;
	border-radius: 999px;
}

.bj-learning-pill {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 10px;
	font-size: .68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	background: #e0f4f3;
	color: #1F837C;
	border-radius: 999px;
	vertical-align: middle;
	white-space: nowrap;
}

.bj-learning-more--arrow {
	display: inline-block;
	margin: -2px 0 2px;
	font-size: .9rem;
	font-weight: 700;
	color: #00a29b;
	text-decoration: none;
}
.bj-learning-more--arrow:hover { color: #1F837C; text-decoration: underline; }
.bj-learning-more__arrow { transition: transform .2s ease; display: inline-block; }
.bj-learning-more--arrow:hover .bj-learning-more__arrow { transform: translateX(3px); }
.bj-learning-more,
.bj-learning-more--arrow {
	font-family: "Graphik Web", system-ui, sans-serif;
}

@media (max-width: 600px) {
	.bj-learning-list-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
	.bj-learning-list-row .bj-learning-avatars,
	.bj-learning-list-row .bj-learning-avatars--empty {
		flex: 0 0 auto;
	}
	.bj-learning-list-main { width: 100%; }
	.bj-learning-pill {
		display: table;
		margin-left: 0;
		margin-top: 6px;
	}
	.bj-learning-list-teacher { line-height: 1.5; }
}

/* ===== Shared grid + card base (Summary Card, Sessions Grid) ===== */
.bj-learning-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 40px;
	margin: 1.5rem 0;
}
.bj-learning-card {
	display: flex; flex-direction: column;
	color: #003340; background: transparent; gap: 6px; line-height: 1.4;
}
.bj-learning-card-main { display: flex; flex-direction: column; gap: 8px; width: 100%; line-height: 1.4; }
.bj-learning-card.is-past { opacity: .72; }

.bj-learning-avatars { display: flex; align-items: center; margin: 0 0 4px; }
.bj-learning-avatars .bj-learning-avatar { margin-right: -14px; }
.bj-learning-avatars .bj-learning-avatar:last-child { margin-right: 0; }
.bj-learning-avatar--initials {
	font-family: "Produkt Web", Georgia, serif; font-weight: 500;
	color: #1F837C; font-size: 1rem; background: #e0f4f3;
}
.bj-learning-avatars--large { justify-content: center; margin-bottom: 12px; }
.bj-learning-avatars--large .bj-learning-avatar { width: 128px; height: 128px; margin-right: -20px; }

.bj-learning-title {
	font-family: "Produkt Web", Georgia, serif;
	font-weight: 500; color: #003340;
	font-size: 1.25rem; line-height: 1.2; margin: 0;
}
.bj-learning-teacher { margin: 0; font-size: 1rem; font-weight: 700; color: #003340; }

.bj-learning-desc { margin: 0; font-size: .9rem; line-height: 1.5; color: rgba(0,0,0,.7); }
.bj-learning-desc p { margin: 0 0 .75rem; }
.bj-learning-desc p:last-child { margin-bottom: 0; }

.bj-learning-dates { margin: 0; font-size: .85rem; line-height: 1.6; color: #003340; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bj-learning-dates-label { font-weight: 700; color: #003E4F; }
.bj-learning-chip {
	display: inline-block; padding: 3px 12px; margin: 0;
	border-radius: 999px; background: #e0f4f3; color: #1F837C;
	font-weight: 600; font-size: .8rem; white-space: nowrap;
}
.bj-learning-continuing { font-style: italic; color: #6b7676; font-size: .82rem; white-space: nowrap; }

.bj-learning-btn-wrapper { margin-top: 8px; display: flex; }
.bj-learning-btn-wrapper .btn,
.bj-learning-btn-wrapper .bj-learning-btn { align-self: flex-start; width: auto; max-width: max-content; }
.bj-learning-btn {
	display: inline-block; padding: 12px 28px; border-radius: 999px;
	font-weight: 700; font-size: .9rem; text-decoration: none; font-family: inherit;
}
.bj-learning-btn--watch { background: #003E4F; color: #fff; }
.bj-learning-btn--watch:hover { background: #1F837C; }
.bj-learning-btn--soon { background: #F3F3F0; color: #888; cursor: default; }
.bj-learning-btn-wrapper .btn.btn-primary:hover { background: #1F837C !important; background-image: none !important; border-color: #1F837C !important; color: #fff !important; }

.bj-learning-empty { font-style: italic; color: #777; }

.bj-learning-location { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: .85rem; color: #003340; }
.bj-learning-pin { color: #1F837C; flex-shrink: 0; }

/* Auto/override schedule line (summary mode) */
.bj-learning-schedule {
	display: inline-flex; align-items: center; gap: 8px;
	margin: 0; font-size: .9rem; font-weight: 700; color: #003E4F; line-height: 1.4;
}
.bj-learning-schedule .bj-learning-clock { fill: #003E4F; }

/* Full-width breakout — counters the theme's col-lg-8 offset-lg-2 container. */
.bj-learning--full { width: 100%; }
@media (min-width: 992px) {
	.bj-learning--full {
		width: 100vw; max-width: 1400px; position: relative;
		left: 50%; transform: translateX(-50%);
		padding-left: 20px; padding-right: 20px; box-sizing: border-box;
	}
	.bj-learning--full .bj-learning-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}
@media (max-width: 767px) {
	.bj-learning-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ===== Summary Card: photo left, details right, boxed ===== */
.bj-learning-grid--summary { display: block; margin: 1.5rem 0; }
.bj-learning-card--horizontal {
	display: flex; flex-direction: row; align-items: flex-start; gap: 32px;
	max-width: 100%; margin: 0; background: #fff;
	border: 1px solid #e2e8e8; border-radius: 14px; padding: 32px 36px;
}
.bj-learning-card--horizontal .bj-learning-card-media { flex-shrink: 0; }
.bj-learning-card--horizontal .bj-learning-avatars { margin: 0; }
.bj-learning-card--horizontal .bj-learning-avatar { width: 120px; height: 120px; }
.bj-learning-card--horizontal .bj-learning-card-main { flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bj-learning-card--horizontal .bj-learning-card-main > * { margin: 0; }
.bj-learning-card--horizontal .bj-learning-dates { margin-top: 10px; }
.bj-learning-card--horizontal .bj-learning-btn-wrapper { margin-top: 10px; }
.bj-learning-card--noavatar { gap: 0; }
.bj-learning-card--noavatar .bj-learning-card-main { width: 100%; }
.bj-learning-heading { display: flex; flex-direction: column; gap: 2px; }
.bj-learning-heading .bj-learning-title { margin: 0 !important; padding: 0 !important; line-height: 1.15; }
.bj-learning-heading .bj-learning-teacher { margin: 0 !important; padding: 0 !important; line-height: 1.2; }
.bj-learning--full .bj-learning-card--horizontal { max-width: 900px; margin: 0 auto; }
@media (max-width: 680px) {
	.bj-learning-card--horizontal { flex-direction: column; gap: 18px; padding: 24px; }
	.bj-learning-card--horizontal .bj-learning-avatar { width: 88px; height: 88px; }
}

/* ===== Sessions Grid: vertical boxed cards, different teacher each ===== */
.bj-learning-grid--sessions {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 24px; margin: 1.25rem 0;
}
.bj-learning--full .bj-learning-grid--sessions { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.bj-learning-card--vertical {
	display: flex; flex-direction: column; align-items: flex-start;
	background: #fff; border: 1px solid #e2e8e8; border-radius: 14px;
	padding: 28px 24px; gap: 10px;
}
.bj-learning-card--vertical .bj-learning-card-media { margin-bottom: 4px; }
.bj-learning-card--vertical .bj-learning-avatars { margin: 0; }
.bj-learning-card--vertical .bj-learning-avatar { width: 88px; height: 88px; }
.bj-learning-card--vertical .bj-learning-card-main { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.bj-learning-card--vertical .bj-learning-card-main > * { margin: 0; }
.bj-learning-card--vertical .bj-learning-title { font-size: 1.1rem; line-height: 1.2; margin-top: 2px; margin-bottom: -4px; }
.bj-learning-card--vertical .bj-learning-date { font-weight: 700; color: #003E4F; font-size: .8rem; }

/* Series-level register button (above + below a grid, or below a list/schedule/agenda) */
.bj-learning-series-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 8px 0 24px; }
.bj-learning-series-cta:last-child { margin: 28px 0 32px; }
.bj-learning-series-cta .bj-learning-more { margin: 0; }
.bj-learning-series-more-btn {
	background: transparent !important; background-image: none !important;
	color: #00a29b !important; border: 1.5px solid #00a29b !important;
}
.bj-learning-series-more-btn:hover { background: #1F837C !important; border-color: #1F837C !important; color: #fff !important; }
.bj-learning-list + .bj-learning-series-cta { margin-top: 16px; }

/* ===== Series Intro block ([bj_series_intro]) ===== */
.bj-series-intro { margin: 1.5rem 0; }
.bj-series-intro__body { font-size: 1rem; line-height: 1.7; color: rgba(0,0,0,.8); }
.bj-series-intro__body p { margin: 0 0 1rem; }

/* ===== Schedule mode (dated rows, Mi-Tziyon style) ===== */
.bj-learning-schedule-card { background: #fff; border: 1px solid #e2e8e8; border-radius: 14px; padding: 28px 32px; max-width: 640px; }
.bj-learning--full .bj-learning-schedule-card { max-width: 100%; }
.bj-learning-schedule--meta {
	font-size: .95rem; font-weight: 700; color: #003E4F;
	margin: 0 0 4px; padding-bottom: 16px; border-bottom: 1px solid #eef2f2;
}
.bj-learning-sched { list-style: none; margin: 0; padding: 0; }
.bj-learning-sched-row { display: flex; align-items: center; gap: 20px; padding: 14px 0; border-bottom: 1px solid #eef2f2; }
.bj-learning-sched-row.is-past { opacity: .55; }
.bj-learning-sched-date { flex: 0 0 90px; font-weight: 700; color: #003340; font-size: .95rem; }
.bj-learning-sched-teacher { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bj-learning-sched-teacher .bj-learning-avatar { width: 40px; height: 40px; }
.bj-learning-sched-teacher .bj-learning-avatars { margin: 0; }
.bj-learning-sched-name { color: #003340; font-size: .95rem; }
.bj-learning-sched-tba { color: #9aa5a5; font-style: italic; font-size: .95rem; }
.bj-learning-schedule-card .bj-learning-series-cta { margin: 22px 0 0; }
@media (max-width: 600px) {
	.bj-learning-schedule-card { padding: 22px 20px; }
	.bj-learning-sched-date { flex-basis: 64px; }
}

/* ===== Agenda mode: collapsed bullet list ===== */
.bj-learning-agenda-card { max-width: 640px; }
.bj-learning--full .bj-learning-agenda-card { max-width: 100%; }
.bj-learning-agenda { list-style: disc; margin: 4px 0 0; padding-left: 1.25rem; }
.bj-learning-agenda-row { font-size: .98rem; line-height: 1.6; color: #003340; margin: 0 0 8px; }
.bj-learning-agenda-date { font-weight: 700; color: #003340; margin-right: .35em; }
.bj-learning-agenda-name { color: #003340; }
.bj-learning-agenda-tba { margin-top: 10px; }
.bj-learning-agenda-tbalabel { font-style: italic; color: #9aa5a5; font-weight: 600; margin-right: .35em; }
.bj-learning-agenda-tbadates { color: #6b7676; }
.bj-learning-agenda-card .bj-learning-series-cta { justify-content: flex-start; margin: 20px 0 0; }
