.apf-podcast-section {
	width: 100%;
}

.apf-heading {
	margin: 0 0 32px;
	color: #203b45;
	font: inherit;
	font-size: clamp(30px, 4vw, 48px);
	font-weight: 700;
	line-height: 1.15;
	text-align: center;
}

.apf-grid {
	display: grid;
	grid-template-columns: repeat(var(--apf-columns, 3), minmax(0, 1fr));
	gap: 30px;
	align-items: stretch;
}

.apf-item,
.apf-card {
	min-width: 0;
}

.apf-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	background: #fff;
	border: 1px solid rgba(27, 64, 76, 0.09);
	border-radius: 12px;
	box-shadow: 0 10px 28px rgba(20, 51, 61, 0.1);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.apf-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 15px 34px rgba(20, 51, 61, 0.15);
}

.apf-image-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #f3f7f8;
	text-decoration: none !important;
}

.apf-image-link:focus-visible,
.apf-button:focus-visible {
	outline: 3px solid rgba(15, 132, 180, 0.35);
	outline-offset: 3px;
}

.apf-image,
.apf-image-link img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: contain;
	background: #fff;
}

.apf-image-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	height: 100%;
	padding: 24px;
	color: #50717c;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-align: center;
	text-transform: uppercase;
}

.apf-play-icon {
	position: relative;
	display: block;
	width: 54px;
	height: 54px;
	border: 3px solid currentColor;
	border-radius: 50%;
}

.apf-play-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 52%;
	width: 0;
	height: 0;
	border-top: 9px solid transparent;
	border-bottom: 9px solid transparent;
	border-left: 14px solid currentColor;
	transform: translate(-40%, -50%);
}

.apf-card-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 24px;
}

/* Use a deliberately specific selector because some WordPress themes apply
 * oversized global h3 rules inside page content. */
.apf-podcast-section .apf-card .apf-title {
	margin: 0 !important;
	color: #203b45 !important;
	font-family: inherit !important;
	font-size: clamp(18px, 1.35vw, 20px) !important;
	font-style: normal !important;
	font-weight: 600 !important;
	letter-spacing: normal !important;
	line-height: 1.35 !important;
	text-transform: none !important;
}

.apf-description {
	margin-top: 13px;
	color: #5f7076;
	font-size: 15px;
	line-height: 1.65;
}

.apf-description p {
	margin: 0 0 0.8em;
}

.apf-description p:last-child {
	margin-bottom: 0;
}

.apf-card-footer {
	margin-top: auto;
	padding-top: 22px;
}

.apf-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 11px 18px;
	background: #0d84b5;
	border: 1px solid #0d84b5;
	border-radius: 5px;
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	text-decoration: none !important;
	transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.apf-button:hover {
	background: #086d96;
	border-color: #086d96;
	color: #fff !important;
	transform: translateY(-1px);
}

.apf-empty {
	margin: 0;
	padding: 20px;
	background: #f7f9fa;
	border: 1px solid #dfe7ea;
	border-radius: 8px;
	color: #53666d;
	text-align: center;
}

@media (max-width: 980px) {
	.apf-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
	}
}

@media (max-width: 620px) {
	.apf-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 22px;
	}

	.apf-card-body {
		padding: 20px;
	}

	.apf-podcast-section .apf-card .apf-title {
		font-size: 18px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.apf-card,
	.apf-button {
		transition: none;
	}
}
