:root {
	--pgm-purple: #4b256d;
	--pgm-purple-deep: #271238;
	--pgm-purple-soft: #f3eef7;
	--pgm-gold: #c9952f;
	--pgm-gold-soft: #fff7e4;
	--pgm-ink: #201c24;
	--pgm-muted: #625b68;
	--pgm-border: #e6dfe9;
	--pgm-surface: #fff;
	--pgm-radius: 18px;
	--pgm-shadow: 0 16px 44px rgba(39, 18, 56, .1);
}

.pgm-homepage,
.pgm-component {
	box-sizing: border-box;
}

.pgm-homepage *,
.pgm-component * {
	box-sizing: inherit;
}

.pgm-homepage {
	display: flex;
	flex-direction: column;
	gap: clamp(2.5rem, 6vw, 6rem);
	color: var(--pgm-ink);
}

.pgm-component {
	position: relative;
	width: 100%;
	color: var(--pgm-ink);
	font-size: 16px;
	line-height: 1.65;
}

.pgm-component .pgm-title,
.pgm-homepage__group-heading h2 {
	margin: 0;
	color: var(--pgm-purple-deep);
	font-size: clamp(1.8rem, 3vw, 3rem);
	font-weight: 750;
	letter-spacing: -.035em;
	line-height: 1.08;
}

.pgm-section-heading {
	max-width: 760px;
	margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.pgm-lead {
	max-width: 720px;
	margin: .85rem 0 0;
	color: var(--pgm-muted);
	font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.pgm-eyebrow {
	margin: 0 0 .55rem;
	color: var(--pgm-gold);
	font-size: .76rem;
	font-weight: 800;
	letter-spacing: .14em;
	line-height: 1.35;
	text-transform: uppercase;
}

.pgm-hero {
	display: grid;
	min-height: clamp(430px, 63vw, 720px);
	overflow: hidden;
	place-items: end start;
	background-color: var(--pgm-purple-deep);
	background-image: var(--pgm-hero-image, linear-gradient(135deg, #28133a, #6c388d));
	background-position: center;
	background-size: cover;
	border-radius: clamp(18px, 3vw, 32px);
	box-shadow: var(--pgm-shadow);
	color: #fff;
	isolation: isolate;
}

.pgm-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(25, 10, 39, .94) 0%, rgba(25, 10, 39, .72) 50%, rgba(25, 10, 39, .22) 100%);
}

.pgm-hero__content {
	max-width: 770px;
	padding: clamp(2rem, 6vw, 5.5rem);
}

.pgm-hero .pgm-title {
	color: #fff;
	font-size: clamp(2.5rem, 7vw, 5.8rem);
}

.pgm-hero .pgm-lead {
	margin: 1.15rem 0 1.75rem;
	color: rgba(255, 255, 255, .86);
	font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.pgm-card-grid,
.pgm-profile-grid,
.pgm-ministry-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
}

.pgm-card,
.pgm-quiz,
.pgm-upcoming,
.pgm-latest {
	overflow: hidden;
	background: var(--pgm-surface);
	border: 1px solid var(--pgm-border);
	border-radius: var(--pgm-radius);
	box-shadow: 0 10px 28px rgba(39, 18, 56, .07);
}

.pgm-card {
	padding: clamp(1.1rem, 2vw, 1.6rem);
}

.pgm-card > img,
.pgm-profile > img,
.pgm-feature-image {
	display: block;
	width: 100%;
	margin: calc(clamp(1.1rem, 2vw, 1.6rem) * -1) calc(clamp(1.1rem, 2vw, 1.6rem) * -1) 1.25rem;
	max-width: none;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.pgm-profile > img {
	aspect-ratio: 4 / 5;
}

.pgm-card h3,
.pgm-quiz h3,
.pgm-upcoming h3 {
	margin: .35rem 0 .65rem;
	color: var(--pgm-purple-deep);
	font-size: clamp(1.2rem, 2vw, 1.55rem);
	line-height: 1.2;
}

.pgm-card p,
.pgm-quiz p {
	margin: .55rem 0;
}

.pgm-card time {
	color: var(--pgm-muted);
	font-size: .86rem;
}

.pgm-content-card {
	display: grid;
	grid-template-columns: minmax(180px, .72fr) minmax(0, 1.28fr);
	padding: 0;
}

.pgm-content-card > img {
	height: 100%;
	margin: 0;
	aspect-ratio: auto;
}

.pgm-card__body {
	padding: clamp(1.25rem, 3vw, 2rem);
}

.pgm-card-grid .pgm-content-card {
	display: block;
}

.pgm-card-grid .pgm-content-card > img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
}

.pgm-split,
.pgm-homepage__pair {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.75rem);
}

.pgm-split > * {
	padding: clamp(1.25rem, 3vw, 2rem);
}

.pgm-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .7rem;
	align-items: center;
	margin-top: 1.15rem;
}

.pgm-button {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: .72rem 1.1rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: .92rem;
	font-weight: 750;
	line-height: 1.2;
	text-decoration: none !important;
	transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.pgm-button:hover {
	transform: translateY(-1px);
}

.pgm-button:focus-visible,
.pgm-ministry-card:focus-visible,
.pgm-quick-links a:focus-visible {
	outline: 3px solid var(--pgm-gold);
	outline-offset: 3px;
}

.pgm-button--primary {
	background: var(--pgm-gold);
	color: #201604 !important;
}

.pgm-button--primary:hover {
	background: #dfb04d;
}

.pgm-button--secondary {
	background: #fff;
	border-color: var(--pgm-purple);
	color: var(--pgm-purple) !important;
}

.pgm-button--secondary:hover {
	background: var(--pgm-purple-soft);
}

.pgm-button--text {
	min-height: auto;
	padding-inline: .25rem;
	color: var(--pgm-purple) !important;
	text-decoration: underline !important;
	text-underline-offset: .2em;
}

.pgm-detail-list {
	display: flex;
	flex-wrap: wrap;
	gap: .65rem 1.2rem;
	margin: .8rem 0;
}

.pgm-detail-list > div,
.pgm-contact-grid > div {
	display: flex;
	flex-direction: column;
	gap: .12rem;
}

.pgm-detail-list span,
.pgm-contact-grid span {
	color: var(--pgm-muted);
	font-size: .75rem;
	font-weight: 750;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.pgm-house-of-prayer,
.pgm-component--house-of-prayer {
	padding: clamp(1.5rem, 4vw, 3.5rem);
	background: linear-gradient(135deg, var(--pgm-purple-soft), #fff);
	border: 1px solid #e3d5ea;
	border-radius: clamp(18px, 3vw, 28px);
}

.pgm-prayer {
	border-left: 4px solid var(--pgm-gold);
}

.pgm-prayer time {
	display: block;
	margin-top: .75rem;
}

.pgm-radio-badge,
.pgm-station-status,
.pgm-live-banner,
.pgm-next,
.pgm-status {
	display: flex;
	flex-wrap: wrap;
	gap: .65rem;
	align-items: center;
	justify-content: space-between;
	padding: .9rem 1.1rem;
	background: var(--pgm-gold-soft);
	border: 1px solid #eed9a9;
	border-radius: 12px;
}

.pgm-radio,
.pgm-prayer-radio {
	padding: clamp(1.25rem, 3vw, 2rem);
	background: var(--pgm-purple-deep);
	border-radius: var(--pgm-radius);
	color: rgba(255, 255, 255, .85);
}

.pgm-radio > .pgm-section-heading .pgm-title,
.pgm-prayer-radio > .pgm-section-heading .pgm-title,
.pgm-radio > .pgm-section-heading .pgm-lead,
.pgm-prayer-radio > .pgm-section-heading .pgm-lead {
	color: #fff;
}

.pgm-existing-radio-player {
	min-width: 0;
	width: 100%;
	margin-top: 1rem;
}

.pgm-existing-radio-player img,
.pgm-existing-radio-player audio,
.pgm-existing-radio-player video {
	max-width: 100%;
}

.pgm-native-player audio {
	width: 100%;
	margin: .75rem 0;
}

.pgm-native-player span {
	color: rgba(255, 255, 255, .65);
}

.pgm-live-dot {
	display: inline-block;
	width: .65rem;
	height: .65rem;
	background: #d62631;
	border-radius: 50%;
	box-shadow: 0 0 0 5px rgba(214, 38, 49, .14);
}

.pgm-quiz {
	margin-top: 1.5rem;
	padding: clamp(1.25rem, 3vw, 2rem);
	background: linear-gradient(135deg, var(--pgm-gold-soft), #fff);
	border-color: #ead29b;
}

.pgm-quiz[data-quiz-status="open"] {
	border: 2px solid var(--pgm-gold);
	box-shadow: 0 16px 40px rgba(201, 149, 47, .16);
}

.pgm-ministry-card {
	display: block;
	color: var(--pgm-ink) !important;
	text-decoration: none !important;
	transition: border-color .18s ease, transform .18s ease;
}

.pgm-ministry-card:hover {
	transform: translateY(-2px);
	border-color: var(--pgm-gold);
}

.pgm-role {
	color: var(--pgm-gold);
	font-weight: 750;
}

.pgm-cta {
	padding: clamp(1.5rem, 4vw, 3.5rem);
	background: linear-gradient(135deg, var(--pgm-purple-deep), var(--pgm-purple));
	border-radius: clamp(18px, 3vw, 28px);
	color: rgba(255, 255, 255, .86);
}

.pgm-cta .pgm-title,
.pgm-cta .pgm-lead {
	color: #fff;
}

.pgm-contact-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin: 0;
	font-style: normal;
}

.pgm-contact-grid > div {
	padding: 1rem;
	background: var(--pgm-purple-soft);
	border-radius: 12px;
}

.pgm-contact-grid a {
	color: var(--pgm-purple);
	font-weight: 700;
}

.pgm-quick-links ul {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pgm-quick-links a {
	color: var(--pgm-purple);
	font-weight: 700;
	text-underline-offset: .2em;
}

.pgm-status-list {
	display: grid;
	gap: .75rem;
}

.pgm-component--empty {
	padding: .8rem 1rem;
	background: #fff8d6;
	border-left: 4px solid #dba617;
	color: #4c3a07;
}

.pgm-homepage__group-heading {
	margin-bottom: 1.5rem;
}

.pgm-homepage__group-heading p {
	margin: .55rem 0 0;
	color: var(--pgm-muted);
}

.pgm-homepage__pair > .pgm-component {
	height: 100%;
}

@media (max-width: 980px) {
	.pgm-card-grid,
	.pgm-profile-grid,
	.pgm-ministry-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pgm-contact-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.pgm-homepage {
		gap: 2.4rem;
	}

	.pgm-hero {
		min-height: 460px;
		border-radius: 18px;
	}

	.pgm-hero__overlay {
		background: linear-gradient(0deg, rgba(25, 10, 39, .96), rgba(25, 10, 39, .34));
	}

	.pgm-hero__content {
		padding: 1.5rem;
	}

	.pgm-card-grid,
	.pgm-profile-grid,
	.pgm-ministry-grid,
	.pgm-split,
	.pgm-homepage__pair,
	.pgm-contact-grid,
	.pgm-content-card {
		grid-template-columns: 1fr;
	}

	.pgm-content-card > img {
		width: 100%;
		height: auto;
		aspect-ratio: 16 / 10;
	}

	.pgm-card-grid > :nth-child(n+4) {
		display: none;
	}

	.pgm-component--house-of-prayer,
	.pgm-cta {
		padding: 1.25rem;
	}

	.pgm-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.pgm-button:not(.pgm-button--text) {
		width: 100%;
	}
}

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