/* =============================================================
   CSF Podcast — Listing Widget
   Site palette: Primary #9CD9E4 · Accent #618990 · Text #7A7A7A
   Button radius: 50px (pill)
   ============================================================= */

/* ── Shared platform-button base
   (referenced in both widget and podcast-single.css)          */

.csf-platform-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	padding: 12px 20px;
	margin-bottom: 10px;
	border-radius: 50px;
	font-family: inherit;
	font-size: 0.88em;
	font-weight: 400;
	letter-spacing: 0.03em;
	text-decoration: none;
	color: #1a1a1a;
	background: var(--e-global-color-primary, #9cd9e4);
	border: 1px solid var(--e-global-color-primary, #9cd9e4);
	transition: background-color 0.3s, color 0.3s;
	box-sizing: border-box;
	cursor: pointer;
}

.csf-platform-btn:last-child { margin-bottom: 0; }

.csf-platform-btn:hover,
.csf-platform-btn:focus {
	background: #fff;
	color: #1a1a1a;
	text-decoration: none;
}

.csf-platform-btn svg { flex-shrink: 0; }

/* ── Episode meta list (shared: featured item + single page) ─ */

.csf-episode-meta-list {
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.csf-episode-meta-list dt {
	font-size: 0.7em;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--e-global-color-primary, #9cd9e4);
	margin-top: 12px;
}

.csf-episode-meta-list dt:first-child { margin-top: 0; }

.csf-episode-meta-list dd {
	margin: 3px 0 0;
	font-size: 0.88em;
	color: rgba(255, 255, 255, 0.8);
	line-height: 1.4;
}

/* Override Elementor's default widget bottom margin */
.elementor-widget-csf_podcast_list {
	margin-bottom: 0 !important;
}

/* ── Featured episode ─────────────────────────────────────── */

.csf-podcast-featured {
	padding: 24px;
	border: 1px solid rgba(156, 217, 228, 0.4);
	border-radius: 12px;
	margin-bottom: 0;
}

.csf-podcast-primary .csf-podcast-featured {
	margin-bottom: 40px;
}

.csf-featured__episode-num {
	font-size: 0.75em;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--e-global-color-primary, #9cd9e4);
	margin-bottom: 6px;
}

.csf-featured__title {
	font-size: 1.5rem;
	font-weight: 600;
	font-family: 'Orbitron', sans-serif;
	line-height: 1.2em;
	text-transform: uppercase;
	margin: 0 0 20px;
}

.csf-featured__title a {
	color: inherit;
	text-decoration: none;
}

.csf-featured__title a:hover {
	color: var(--e-global-color-primary, #9cd9e4);
}

.csf-featured__body {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 32px;
	align-items: start;
}

/* Video col */
.csf-podcast-video-wrap {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	background: #000;
	border-radius: 10px;
}

.csf-podcast-video-wrap iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
}

.csf-featured__thumb-img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 10px;
}

/* Details col */
.csf-featured__details {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.csf-featured__meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.csf-featured__date {
	font-size: 0.83em;
	color: rgba(255, 255, 255, 0.8);
}

.csf-featured__guests {
	font-size: 0.83em;
	color: rgba(255, 255, 255, 0.8);
}

.csf-featured__excerpt {
	font-size: 0.88em;
	color: rgba(255, 255, 255, 0.8);
	line-height: 1.65;
}

.csf-featured__excerpt p:last-child { margin-bottom: 0; }

/* Secondary CTA button — solid accent fill so it reads as a button
   but stays visually distinct from the site's primary light-blue CTAs.
   Hover transitions to the primary colour to show family connection. */
.csf-podcast-cta-btn {
	display: inline-block;
	align-self: flex-start;
	padding: 15px 35px;
	border-radius: 5px;
	background: var(--e-global-color-accent, #618990);
	border: none;
	color: #fff;
	font-family: inherit;
	font-size: 0.88em;
	font-weight: 400;
	text-decoration: none;
	transition: background 0.3s, color 0.3s, transform 0.3s;
}

.csf-podcast-cta-btn:hover,
.csf-podcast-cta-btn:focus {
	background: var(--e-global-color-primary, #9cd9e4);
	color: #1a1a1a;
	transform: scale(1.05);
	text-decoration: none;
}

/* ── Two-column layout: grid + sidebar ────────────────────── */

.csf-podcast-layout {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 44px;
	align-items: start;
}

/* ── Episode grid — no card backgrounds ───────────────────── */

.csf-podcast-grid {
	display: grid;
	gap: 28px;
}

.csf-podcast-cols-2 { grid-template-columns: repeat(2, 1fr); }
.csf-podcast-cols-3 { grid-template-columns: repeat(3, 1fr); }
.csf-podcast-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Episode card ─────────────────────────────────────────── */

.csf-podcast-card {
	background: none;
	border: 1px solid rgba(156, 217, 228, 0.4);
	border-radius: 12px;
	overflow: hidden; /* clips image top corners to card radius */
}

.csf-podcast-card:hover {
	border-color: rgba(156, 217, 228, 0.8);
}

/* Thumbnail: no own radius — card overflow:hidden handles top corners;
   bottom of image remains square so it connects to the text below.    */
.csf-card__thumb-link {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #eef2f6;
	margin-bottom: 0; /* image sits flush against the card content */
}

.csf-card__thumb-link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 0;
	transition: transform 0.3s ease;
}

.csf-podcast-card:hover .csf-card__thumb-link img {
	transform: scale(1.04);
}

/* First text element after the thumbnail gets top spacing */
.csf-card__thumb-link + .csf-card__episode-num,
.csf-card__thumb-link + .csf-card__title-link {
	margin-top: 12px;
}

.csf-card__episode-num {
	font-size: 0.72em;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--e-global-color-primary, #9cd9e4);
	margin-bottom: 4px;
	padding: 0 14px;
}

.csf-card__title-link {
	display: block;
	padding: 0 14px;
	text-decoration: none;
	color: inherit;
}

.csf-card__title-link h3 {
	font-size: 0.97em;
	font-weight: 600;
	line-height: 1.35;
	margin: 0 0 5px;
	color: var(--e-global-color-primary, #9cd9e4);
}

.csf-card__date {
	font-size: 0.78em;
	color: rgba(255, 255, 255, 0.8);
	padding: 0 14px;
	margin-bottom: 4px;
}

.csf-card__excerpt {
	font-size: 0.82em;
	color: rgba(255, 255, 255, 0.8);
	line-height: 1.55;
	padding: 0 14px 14px;
}

/* ── Sidebar ──────────────────────────────────────────────── */

/* Transparent on the layout wrapper; sidebar gets an explicit white
   baseline so it reads correctly on dark-background sections and on the
   archive page where Astra's body text colour would otherwise propagate. */
.csf-podcast-layout {
	background-color: transparent !important;
}

.csf-podcast-sidebar {
	background-color: transparent !important;
	color: #fff;
}

.csf-sidebar-text {
	font-size: 0.92em;
	line-height: 1.65;
	margin-bottom: 24px;
	background-color: transparent !important;
}

/* Inline style attributes from TinyMCE are stripped at render time via
   csf_podcast_strip_inline_styles(), so plain inheritance is enough here. */
.csf-sidebar-text p,
.csf-sidebar-text h2,
.csf-sidebar-text h3,
.csf-sidebar-text h4,
.csf-sidebar-text li,
.csf-sidebar-text span,
.csf-sidebar-text div,
.csf-sidebar-text strong,
.csf-sidebar-text em {
	background-color: transparent !important;
	color: inherit;
}

.csf-sidebar-text h2,
.csf-sidebar-text h3,
.csf-sidebar-text h4 {
	font-size: 1.05em;
	font-weight: 600;
	margin-bottom: 10px;
}

.csf-sidebar-text p:last-child { margin-bottom: 0; }

.csf-sidebar-platforms {
	display: flex;
	flex-direction: column;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 1024px) {
	.csf-podcast-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
	.csf-podcast-cols-3 { grid-template-columns: repeat(2, 1fr); }
	.csf-featured__body { grid-template-columns: 1fr; }
	.csf-podcast-layout { grid-template-columns: 1fr; gap: 36px; }
	/* On mobile, sidebar moves below the grid */
}

@media (max-width: 600px) {
	.csf-podcast-cols-2,
	.csf-podcast-cols-3,
	.csf-podcast-cols-4 { grid-template-columns: 1fr; }

}



/* ── Archive link (below the episode grid, left-aligned) ─── */

.csf-archive-link-wrap {
	text-align: left;
	margin-top: 20px;
}

.csf-archive-link {
	display: inline-block;
	font-size: 0.8em;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--e-global-color-primary, #9cd9e4);
	opacity: 0.72;
	transition: opacity 0.18s ease;
}

.csf-archive-link:hover {
	opacity: 1;
	text-decoration: underline;
	color: var(--e-global-color-primary, #9cd9e4);
}

/* ── Load More button (archive page) — matches archive link style ── */

.csf-load-more-wrap {
	text-align: left;
	margin-top: 20px;
}

.csf-load-more-btn {
	display: inline-block;
	padding: 0;
	background: none;
	border: none;
	font-family: inherit;
	font-size: 0.8em;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--e-global-color-primary, #9cd9e4);
	opacity: 0.72;
	cursor: pointer;
	transition: opacity 0.18s ease;
}

.csf-load-more-btn:hover {
	opacity: 1;
	text-decoration: underline;
	color: var(--e-global-color-primary, #9cd9e4);
}

.csf-load-more-btn:disabled {
	opacity: 0.35;
	cursor: default;
	text-decoration: none;
}

/* ── Archive page heading ─────────────────────────────────── */

/* Full-width breakout: sits inside #primary (before <main>) so layout
   stays normal — no flex-sibling issues with .ast-container.
   padding-left aligns the heading with the site logo at 1440px.
   Also acts as the .header-section context so the global fadeIn p rule
   picks up the .csf-archive-subtext paragraph styles. */
.csf-podcast-primary .csf-archive-header {
	margin-left: calc(50% - 50vw);
	width: 100vw;
	box-sizing: border-box;
	padding-top: 100px !important;
	padding-bottom: 24px;
	padding-left: 80px;
	padding-right: 80px;
	margin-bottom: 32px;
}

/* width:fit-content makes the wrapper shrink to the heading text width —
   the same effect Elementor achieves via elementor-widget__width-auto
   inside a flex column. Without this, the child h1's width:100% resolves
   to the full 100vw wrapper and the cursor slides to the viewport edge. */
.csf-archive-heading-wrap {
	width: fit-content;
}

.csf-archive-heading {
	font-family: 'Orbitron', sans-serif;
	font-size: 3.8rem;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.2em;
	margin: 0;
	overflow: hidden;
	white-space: nowrap;
	border-right: 3px solid orange;
	padding-right: 10px;
	animation:
		typing 1.2s steps(8, end),
		blink-caret .75s step-end infinite;
}

/* Match .header-section p from Astra Additional CSS exactly,
   plus white colour (the Resources page section sets colour via
   Elementor background settings; we set it explicitly here). */
.csf-archive-subtext {
	font-size: 32px;
	line-height: 1.3;
	color: #fff;
	margin-top: 8px;
	opacity: 0;
	animation: fadeIn 1s ease-in-out 1.5s forwards;
}

.csf-archive-subtext p:last-child { margin-bottom: 0; }

@media screen and (max-width: 1000px) {
	.csf-archive-subtext { font-size: 1.25em; }
}

/* Fallback keyframes — defined globally in Astra Additional CSS but
   may not load on this non-Elementor page on a hard navigation */
@keyframes typing {
	from { width: 0 }
	to   { width: 100% }
}
@keyframes blink-caret {
	from, to { border-color: transparent }
	50% { margin-right: 20px; border-color: #9cd9e4; }
}
@keyframes fadeIn {
	from { opacity: 0 }
	to   { opacity: 1 }
}
