/* Sermon Library — styled to match the site's "upcoming events" cards.
 * Colors live in the variables below. Fonts come from your Avada typography settings. */
.sl {
	--sl-navy: #13305a;       /* header band, badge text */
	--sl-blue: #3d7fd6;       /* buttons, active topic */
	--sl-cream: #f5ede3;      /* panel background */
	--sl-card: #ffffff;
	--sl-ink: #2b2b2b;        /* card titles */
	--sl-muted: #5f6368;      /* dates, details */
	--sl-line: #e6ded3;
	--sl-panel-radius: 28px;
	--sl-card-radius: 18px;
	margin: 0 auto;
	color: var(--sl-ink);
}
.sl *, .sl *::before, .sl *::after { box-sizing: border-box; }
.sl .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Panel: navy header band + cream body */
.sl-panel { border-radius: var(--sl-panel-radius); overflow: hidden; background: var(--sl-cream); }
.sl-head {
	display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
	background: var(--sl-navy); padding: 36px 48px 36px 52px;
}
.sl .sl-head-title {
	margin: 0; color: var(--sl-cream); font-weight: 700; line-height: 1.1;
	font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.01em;
}
.sl-body { padding: 48px 52px 56px; }

/* Buttons — like "MORE EVENTS ›" */
.sl .sl-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 56px; padding: 0 36px; border: 0; border-radius: 8px;
	background: var(--sl-blue); color: #fff !important;
	font: inherit; font-size: 15px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
	text-decoration: none !important; cursor: pointer; white-space: nowrap;
	transition: filter .15s ease, transform .15s ease;
}
.sl .sl-btn:hover { filter: brightness(1.08); }
.sl .sl-btn:active { transform: translateY(1px); }
.sl .sl-btn--ghost { background: #fff; color: var(--sl-navy) !important; box-shadow: inset 0 0 0 2px var(--sl-navy); }

/* Search + filters */
.sl-filters { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 20px; }
.sl-search { flex: 1 1 300px; }
.sl-selects { display: flex; flex-wrap: wrap; gap: 12px; flex: 2 1 460px; }
.sl .sl-filters input[type="search"],
.sl .sl-filters select {
	width: 100%; height: 56px; margin: 0; padding: 0 18px;
	border: 1px solid var(--sl-line); border-radius: 12px; background: #fff; color: var(--sl-ink);
	font: inherit; font-size: 16px; box-shadow: 0 2px 8px rgba(19, 48, 90, .05);
}
.sl .sl-filters select { flex: 1 1 160px; width: auto; }
.sl .sl-filters input:focus, .sl .sl-filters select:focus { outline: 2px solid var(--sl-blue); outline-offset: 1px; }

/* Topic chips */
.sl-chips { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 12px; margin: 0 0 30px; scrollbar-width: thin; }
.sl-chips--tags { flex-wrap: wrap; overflow: visible; margin: 28px 0; }
.sl .sl-chip {
	flex: 0 0 auto; padding: 9px 18px; border-radius: 999px; background: #fff; color: var(--sl-navy);
	font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap; text-decoration: none !important;
	box-shadow: 0 1px 4px rgba(19, 48, 90, .08);
}
.sl .sl-chip:hover { box-shadow: inset 0 0 0 2px var(--sl-blue); }
.sl .sl-chip.is-active { background: var(--sl-blue); color: #fff; }

/* Card grid */
.sl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 36px; }
.sl .sl-card {
	position: relative; display: flex; flex-direction: column;
	background: var(--sl-card); border-radius: var(--sl-card-radius); overflow: hidden;
	color: var(--sl-ink); text-decoration: none !important;
	box-shadow: 0 6px 22px rgba(19, 48, 90, .07);
	transition: transform .2s ease, box-shadow .2s ease;
}
.sl .sl-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(19, 48, 90, .13); }
.sl .sl-card:focus-visible { outline: 3px solid var(--sl-blue); outline-offset: 4px; }
.sl-card-art {
	position: relative; display: block; aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, var(--sl-navy), #2c5793);
}
.sl .sl-card-art img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; border-radius: 0; }
.sl-play {
	position: absolute; right: 14px; top: 14px; width: 44px; height: 44px; border-radius: 50%;
	background: rgba(19, 48, 90, .85); opacity: 0; transition: opacity .2s;
}
.sl-play::after {
	content: ""; position: absolute; left: 17px; top: 13px;
	border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent #fff;
}
.sl .sl-card:hover .sl-play { opacity: 1; }

/* Date badge — overlaps the bottom of the photo */
.sl-badge {
	position: relative; z-index: 1; align-self: flex-start;
	display: flex; flex-direction: column; align-items: center; min-width: 74px;
	margin: -44px 0 0 20px; padding: 9px 14px 8px;
	background: #fff; border-radius: 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
	color: var(--sl-navy); line-height: 1;
}
.sl-badge-top { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.sl-badge-big { font-size: 30px; font-weight: 800; margin-top: 5px; }

.sl-card-body { display: flex; flex-direction: column; gap: 6px; padding: 22px 26px 30px; }
.sl-eyebrow {
	font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
	color: var(--sl-blue); text-decoration: none !important;
}
.sl-card-title { font-size: clamp(24px, 2.2vw, 30px); font-weight: 300; line-height: 1.25; color: var(--sl-ink); margin-bottom: 6px; }
.sl-card-meta { font-size: 16px; line-height: 1.5; color: var(--sl-muted); }
.sl-card-overview {
	margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--sl-line);
	font-size: 15px; line-height: 1.55; color: var(--sl-ink);
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Results summary, empty state, more/paging */
.sl-summary { display: flex; flex-wrap: wrap; gap: 14px; align-items: baseline; margin: 0 0 26px; font-size: 16px; color: var(--sl-muted); }
.sl-summary a { color: var(--sl-blue); font-weight: 700; }
.sl-empty { padding: 48px; text-align: center; background: #fff; border-radius: var(--sl-card-radius); color: var(--sl-muted); }
.sl-more { text-align: center; margin: 44px 0 0; }
.sl-pages { display: flex; justify-content: center; gap: 8px; margin: 44px 0 0; flex-wrap: wrap; }
.sl .sl-pages .page-numbers {
	min-width: 46px; padding: 11px 16px; border-radius: 10px; background: #fff; color: var(--sl-navy);
	font-weight: 700; text-align: center; text-decoration: none;
}
.sl .sl-pages .current { background: var(--sl-navy); color: #fff; }

/* Series view */
.sl-series-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center; margin: 0 0 44px; }
.sl .sl-series-art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--sl-card-radius); display: block; margin: 0; box-shadow: 0 6px 22px rgba(19, 48, 90, .1); }
.sl-series-desc { font-size: 18px; line-height: 1.6; }
.sl-series-desc p { margin: 0 0 12px; }
.sl-series-meta { color: var(--sl-muted); font-size: 16px; margin: 0; font-weight: 600; }
.sl-back { margin: 0 0 18px; font-size: 16px; }
.sl-back a { color: var(--sl-blue); font-weight: 700; text-decoration: none; }

/* Single sermon page */
.sl-single .sl-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--sl-card-radius); overflow: hidden; background: #000; margin: 0 0 24px; box-shadow: 0 10px 30px rgba(19, 48, 90, .15); }
.sl-single .sl-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sl-single-meta { color: var(--sl-muted); font-size: 17px; margin: 0 0 18px; }
.sl-overview { font-size: 20px; line-height: 1.55; font-weight: 300; margin: 0 0 28px; color: var(--sl-ink); }
.sl-single-meta a { color: inherit; }
.sl-single-meta .sl-eyebrow { color: var(--sl-blue); display: inline-block; margin-bottom: 6px; }
.sl-resources { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; margin: 0 0 28px; }
.sl-audio, .sl-files { background: var(--sl-cream); border-radius: var(--sl-card-radius); padding: 22px 24px; }
.sl-res-label { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sl-navy); }
.sl .sl-dl { display: inline-block; margin-top: 12px; font-size: 15px; color: var(--sl-blue) !important; font-weight: 700; }
.sl-files { display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.sl-files .sl-res-label { flex-basis: 100%; }
.sl .sl-file-btn { min-height: 46px; padding: 0 20px; font-size: 13px; letter-spacing: .14em; }
.sl-single .sl-chip { background: var(--sl-cream); box-shadow: none; }
.sl-series-list { margin: 40px 0 28px; background: var(--sl-cream); border-radius: var(--sl-card-radius); padding: 26px 28px; }
.sl .sl-series-list h2 { font-size: 22px; margin: 0 0 14px; color: var(--sl-navy); }
.sl-series-list ol { margin: 0; padding: 0; list-style: none; counter-reset: sl; }
.sl-series-list li { counter-increment: sl; margin: 0; border-top: 1px solid var(--sl-line); }
.sl-series-list li:first-child { border-top: 0; }
.sl-series-list li a, .sl-series-list li span { display: flex; gap: 14px; align-items: baseline; padding: 13px 4px; text-decoration: none; color: var(--sl-ink); }
.sl-series-list li a::before, .sl-series-list li span::before { content: counter(sl); min-width: 22px; color: var(--sl-blue); font-weight: 800; }
.sl-series-list li small { margin-left: auto; color: var(--sl-muted); white-space: nowrap; }
.sl-series-list li.is-current strong { color: var(--sl-blue); }
.sl-series-list li a:hover strong { color: var(--sl-blue); }

@media (max-width: 760px) {
	.sl { --sl-panel-radius: 20px; }
	.sl-head { padding: 26px 24px; }
	.sl-body { padding: 28px 20px 36px; }
	.sl-series-head { grid-template-columns: 1fr; gap: 20px; }
	.sl-grid { gap: 24px; }
	.sl .sl-head .sl-btn { min-height: 46px; padding: 0 22px; font-size: 13px; }
	.sl .sl-filters .sl-btn { flex: 1 1 100%; }
}
