/*
 * ClinicianCore Podcast Archive — structural defaults only.
 * Colors, typography, spacing, borders, shadows, and hover states are all
 * driven by each widget's Elementor Style tab controls (inline {{WRAPPER}}
 * rules). This file exists only for layout mechanics that aren't (and
 * shouldn't be) style-panel controls: flex/grid structure, base resets,
 * icon shapes, and responsive stacking.
 */

.ccpa-episode-grid-wrapper * ,
.ccpa-hero * ,
.ccpa-pillar-strip * ,
.ccpa-featured-panel * ,
.ccpa-subscribe-strip * ,
.ccpa-related-section * ,
.ccpa-email-section * {
	box-sizing: border-box;
}

/* ---------- Hero ---------- */
.ccpa-hero {
	position: relative;
	overflow: hidden;
}
.ccpa-hero-layout {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: stretch;
	flex-wrap: nowrap;
}
/*
 * flex-basis 0 (not auto) is load-bearing: with `auto` the text column is
 * sized from its own content FIRST, and since the photo column doesn't
 * shrink, any leftover text width pushes the photo past the right edge
 * where .ccpa-hero overflow:hidden clips it — invisible at narrower
 * viewports (e.g. laptop) while surviving on wide ones purely because
 * there happened to be slack. With 0 the text column only ever consumes
 * what the photo column leaves behind, so the photo's width is honoured
 * at every breakpoint.
 */
.ccpa-hero-inner {
	flex: 1 1 0%;
	min-width: 0;
	display: flex;
	flex-direction: column;
}
.ccpa-hero-center-block {
	margin-top: auto;
	margin-bottom: auto;
}
.ccpa-hero-photo-col {
	position: relative;
	flex: 0 0 45%;
	width: 45%;
	overflow: hidden;
}
.ccpa-hero-photo-img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
}
/*
 * The photo's left-edge fade is a CSS mask applied inline to the <img>
 * itself (see build_photo_mask_style), not a coloured overlay element —
 * masking makes the photo transparent so the hero's real background shows
 * through, which can't mismatch the way a hard-coded overlay colour did.
 */
@media (max-width: 767px) {
	.ccpa-hero-layout {
		flex-direction: column;
	}
	.ccpa-hero-photo-col.ccpa-hero-photo-hide-mobile {
		display: none !important;
	}
}
.ccpa-hero-eyebrow {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.5px;
	margin-bottom: 14px;
}
.ccpa-hero-heading {
	margin: 0 0 16px;
	line-height: 1.08;
}
.ccpa-hero-rule {
	width: 56px;
	height: 3px;
	margin: 20px 0;
}
/*
 * No hard-coded max-width on these: they used to be capped at 480/520px
 * here, which the "Text Max Width" style control could not override
 * (that control targets the text wrapper, not these elements), so the
 * text stopped well short of the photo with no way to widen it from the
 * panel. Line length is now governed solely by that control.
 */
.ccpa-hero-subhead {
	margin: 0;
}
.ccpa-hero-intro {
	margin: 16px 0 0;
}
.ccpa-hero-intro a {
	color: inherit;
	text-decoration: underline;
}
.ccpa-hero-host {
	margin: 20px 0;
	font-size: 15px;
}
.ccpa-hero-host b,
.ccpa-hero-host strong {
	font-weight: 700 !important;
}
.ccpa-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	border: 1.5px solid transparent;
	cursor: pointer;
}
.ccpa-btn-secondary {
	background: transparent;
}

/* ---------- Pillar Strip ---------- */
.ccpa-pillar-strip {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
}
.ccpa-pillar-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 10px;
	text-decoration: none;
	cursor: pointer;
}
.ccpa-pillar-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}
.ccpa-pillar-icon svg,
.ccpa-pillar-icon img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
}
@media (max-width: 767px) {
	.ccpa-pillar-strip {
		grid-template-columns: 1fr !important;
	}
}

/* ---------- Featured Episode ---------- */
.ccpa-featured-panel {
	max-width: 1280px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
}
.ccpa-featured-art-col {
	flex: 0 0 240px;
}
.ccpa-featured-art-card {
	background: linear-gradient(160deg, #0f2440, #1a365d);
	border-radius: 16px;
	padding: 22px;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 220px;
	border: 1px solid rgba(45, 200, 216, 0.25);
	position: relative;
	overflow: hidden;
}
.ccpa-featured-art-card > * {
	position: relative;
	z-index: 1;
}
.ccpa-featured-show-name {
	font-size: 19px;
	font-weight: 700;
	color: #fff;
	line-height: 1.25;
}
.ccpa-featured-podcast-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.5px;
	color: #2dc8d8;
	margin-top: 6px;
}
.ccpa-featured-art-card .ccpa-play-button {
	margin-top: auto;
	align-self: flex-start;
}
.ccpa-featured-text-col {
	flex: 1 1 320px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.ccpa-featured-eyebrow {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
}
.ccpa-featured-title {
	margin: 10px 0 14px;
	line-height: 1.3;
}
.ccpa-featured-teaser {
	margin: 0 0 20px;
	line-height: 1.6;
}
.ccpa-featured-cta-row {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}
.ccpa-featured-secondary-link {
	font-weight: 600;
	text-decoration: none;
}
.ccpa-featured-stat-col {
	flex: 0 0 200px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.ccpa-stat-circle {
	border-radius: 50%;
	border-style: solid;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.ccpa-stat-number {
	font-size: 38px;
	font-weight: 800;
}
.ccpa-stat-label {
	max-width: 180px;
	line-height: 1.5;
	margin: 14px 0 4px;
}
@media (max-width: 1023px) {
	.ccpa-featured-panel {
		flex-direction: column;
	}
	.ccpa-featured-art-col,
	.ccpa-featured-stat-col {
		flex: 1 1 auto;
	}
}

/* ---------- Episode Grid + Pillar Filter ---------- */
.ccpa-grid-heading-row {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 24px;
}
.ccpa-grid-heading-bar {
	display: block;
	width: 5px;
	height: 28px;
	border-radius: 3px;
	flex: 0 0 5px;
}
.ccpa-grid-heading-text {
	margin: 0;
	font-size: 26px;
	font-weight: 800;
}
.ccpa-pillar-filter-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 24px;
}
.ccpa-pillar-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.ccpa-pillar-chip {
	appearance: none;
	-webkit-appearance: none;
	border: 1.5px solid #e2e8f0;
	background: #fff;
	border-radius: 20px;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	outline: none;
}
.ccpa-pillar-dropdown {
	position: relative;
	display: inline-block;
}
.ccpa-pillar-dropdown-toggle {
	appearance: none;
	-webkit-appearance: none;
	display: flex;
	align-items: center;
	gap: 10px;
	border: 1.5px solid #e2e8f0;
	background: #fff;
	border-radius: 10px;
	padding: 12px 18px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	outline: none;
	min-width: 220px;
	justify-content: space-between;
}
.ccpa-pillar-dropdown-caret {
	font-size: 12px;
	transition: transform 0.15s;
}
.ccpa-pillar-dropdown.is-open .ccpa-pillar-dropdown-caret {
	transform: rotate(180deg);
}
.ccpa-pillar-dropdown-menu {
	display: none;
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 260px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
	padding: 6px;
	z-index: 20;
	max-height: 320px;
	overflow-y: auto;
}
.ccpa-pillar-dropdown.is-open .ccpa-pillar-dropdown-menu {
	display: block;
}
.ccpa-pillar-dropdown-item {
	appearance: none;
	-webkit-appearance: none;
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	text-align: left;
	border: none;
	background: transparent;
	border-radius: 8px;
	padding: 8px 10px;
	font-size: 14px;
	cursor: pointer;
	font-family: inherit;
	outline: none;
}
.ccpa-pillar-dropdown-check {
	width: 13px;
	flex: 0 0 13px;
	opacity: 0;
	font-weight: 700;
}
.ccpa-pillar-dropdown-item.is-selected .ccpa-pillar-dropdown-check {
	opacity: 1;
}
.ccpa-episode-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}
.ccpa-episode-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	text-decoration: none;
}
.ccpa-episode-art {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 16px;
	overflow: hidden;
}
.ccpa-episode-art > * {
	position: relative;
	z-index: 1;
}
.ccpa-episode-art-label {
	display: flex;
	flex-direction: column;
}
.ccpa-episode-show-name {
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.3px;
	color: #fff;
	line-height: 1.3;
}
.ccpa-episode-eyebrow {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1.5px;
	color: #2dc8d8;
	margin-top: 3px;
}
.ccpa-episode-badge {
	position: absolute;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.3px;
	padding: 6px 14px;
	border-radius: 0 8px 8px 0;
}
.ccpa-waveform {
	display: flex;
	align-items: flex-end;
	gap: 2px;
	height: 20px;
	margin: auto 0 10px;
	opacity: 0.6;
}
.ccpa-waveform span {
	width: 3px;
	border-radius: 2px;
	display: block;
}
.ccpa-play-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	flex: 0 0 auto;
	margin-top: auto;
	text-decoration: none;
	cursor: pointer;
}
.ccpa-play-icon {
	width: 0;
	height: 0;
	border-top: 6px solid transparent;
	border-bottom: 6px solid transparent;
	border-left: 10px solid #fff;
	margin-left: 3px;
}
.ccpa-episode-body {
	padding: 18px 16px 0;
	flex: 1;
	display: flex;
	flex-direction: column;
}
.ccpa-episode-meta {
	font-size: 12px;
	margin: 0 0 8px;
}
.ccpa-episode-title {
	margin: 0 0 8px;
	line-height: 1.35;
}
.ccpa-episode-title a {
	color: inherit;
	text-decoration: none;
}
.ccpa-episode-teaser {
	margin: 0;
	line-height: 1.5;
}
.ccpa-load-more-wrap {
	display: flex;
	justify-content: center;
	margin-top: 36px;
}
.ccpa-load-more {
	appearance: none;
	-webkit-appearance: none;
	background: #fff;
	border: 1.5px solid #0d98ba;
	font-family: inherit;
	cursor: pointer;
	outline: none;
}
.ccpa-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 36px;
}
.ccpa-page-btn {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1.5px solid #e2e8f0;
	background: #fff;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	outline: none;
}
.ccpa-page-btn:disabled {
	opacity: 0.4;
	cursor: default;
}
.ccpa-page-ellipsis {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: #718096;
}
.ccpa-no-episodes {
	grid-column: 1 / -1;
	text-align: center;
	opacity: 0.7;
}
@media (max-width: 1023px) {
	.ccpa-episode-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}
@media (max-width: 767px) {
	.ccpa-episode-grid {
		grid-template-columns: 1fr !important;
	}
}

/* ---------- Subscribe Strip ---------- */
.ccpa-subscribe-strip {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
	border-style: solid;
	border-width: 1.5px;
	margin-bottom: 32px;
}
.ccpa-subscribe-left {
	display: flex;
	align-items: center;
	gap: 16px;
}
.ccpa-subscribe-icon-wrap {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #e6f7fa;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 44px;
}
.ccpa-subscribe-btn {
	border: 1.5px solid currentColor;
	border-radius: 10px;
	padding: 11px 20px;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s, color 0.15s;
}
.ccpa-platform-row {
	display: flex;
	flex-direction: column;
	align-items: center;
}
.ccpa-platform-label {
	margin-bottom: 18px;
	font-weight: 700;
	font-size: 15px;
}
.ccpa-platform-items {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 28px;
}
.ccpa-platform-item {
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: inherit;
	font-size: 14px;
}
.ccpa-platform-swatch {
	display: block;
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	border-radius: 6px;
}
.ccpa-platform-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
}
.ccpa-platform-icon img,
.ccpa-platform-icon svg {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
}

/* ---------- Related Content ---------- */
.ccpa-related-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin-top: 24px;
}
.ccpa-related-card {
	display: flex;
	flex-direction: column;
	padding: 22px;
	text-decoration: none;
	transition: box-shadow 0.2s;
}
.ccpa-related-tag {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
	padding: 4px 10px;
	border-radius: 20px;
	width: fit-content;
}
.ccpa-related-title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	margin-top: 12px;
}
.ccpa-related-link {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 14px;
	font-size: 13px;
	font-weight: 600;
}
@media (max-width: 1023px) {
	.ccpa-related-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}
@media (max-width: 767px) {
	.ccpa-related-grid {
		grid-template-columns: 1fr !important;
	}
}

/* ---------- Email Capture ---------- */
.ccpa-email-panel {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 24px;
	border-style: solid;
	border-width: 1px;
}
.ccpa-email-form {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.ccpa-email-input {
	border-style: solid;
	border-width: 1px;
	font-family: inherit;
	min-width: 240px;
	outline: none;
}
.ccpa-email-input:focus {
	outline: 2px solid #0d98ba;
	outline-offset: 2px;
}
.ccpa-email-btn {
	border: none;
	font-family: inherit;
	white-space: nowrap;
	cursor: pointer;
}
@media (max-width: 767px) {
	.ccpa-email-panel {
		flex-direction: column;
		align-items: stretch;
	}
	.ccpa-email-form {
		flex-direction: column;
	}
}

/* ---------- Episode Hero (single) ---------- */
.ccpa-episode-hero {
	position: relative;
	text-align: center;
	overflow: hidden;
}
.ccpa-episode-hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 0;
}
.ccpa-episode-hero-inner {
	position: relative;
	z-index: 1;
	max-width: 780px;
	margin: 0 auto;
}
.ccpa-episode-badge-pill {
	display: inline-block;
	padding: 8px 20px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 24px;
}
.ccpa-episode-badge-pill small {
	font-weight: 400;
	opacity: 0.8;
}
.ccpa-episode-hero-title {
	margin: 0 0 20px;
	line-height: 1.2;
}
.ccpa-episode-host {
	margin: 0 0 24px;
	line-height: 1.5;
}
.ccpa-duration-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 18px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 700;
}

/* ---------- Episode About (single) ---------- */
.ccpa-about-section {
	max-width: 780px;
	margin: 0 auto;
}
.ccpa-about-eyebrow {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	margin-bottom: 12px;
}
.ccpa-about-body {
	margin-bottom: 28px;
}
.ccpa-btn-outline {
	background: transparent;
	border: 1.5px solid currentColor;
}
.ccpa-about-cta-row {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 32px;
}
.ccpa-about-badge-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.ccpa-about-badge {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-style: solid;
	border-width: 1px;
	border-radius: 10px;
	text-decoration: none;
	color: inherit;
	font-size: 13px;
	font-weight: 600;
}

/* ---------- Key Takeaways (single) ---------- */
.ccpa-takeaways-band {
	text-align: center;
}
.ccpa-takeaways-heading {
	margin: 0 0 28px;
}
.ccpa-takeaways-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	text-align: left;
}
.ccpa-takeaway-item {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.ccpa-takeaway-text {
	margin: 0;
	line-height: 1.5;
}
@media (max-width: 1023px) {
	.ccpa-takeaways-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}
@media (max-width: 767px) {
	.ccpa-episode-hero-title {
		font-size: 32px !important;
	}
	.ccpa-takeaways-grid {
		grid-template-columns: 1fr !important;
	}
}
