/*
 * Program Plugin — Frontend Stylesheet
 * Version: 1.1.0
 *
 * Brand palette:
 *   --pp-primary    : #066239  (brand green)
 *   --pp-primary-dk : #044d2c  (dark green)
 *   --pp-primary-lt : #e6f2ec  (light green tint)
 *   --pp-accent     : #0a9a5c  (mid green — hover / accent)
 *   --pp-gold       : #d4a017  (warm contrast — time pill)
 *   --pp-gold-lt    : #fdf6e3  (gold tint)
 *   --pp-text       : #1a2420  (near-black with green undertone)
 *   --pp-muted      : #5a6b64
 *   --pp-border     : #d6e5de
 *   --pp-surface    : #ffffff
 *   --pp-shadow-clr : rgba(6,98,57,.09)
 */

/* ── Reset / Base ─────────────────────────────────────── */
.pp-grid *,
.pp-single-wrap *,
.pp-btn {
	box-sizing: border-box;
}

/* ══════════════════════════════════════════════════════════
   GRID / CARD
══════════════════════════════════════════════════════════ */

/* Grid container */
.pp-grid {
	display: grid;
	gap: 28px;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 8px 0 32px;
}

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

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

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

/* ── Card ── */
.pp-card {
	background: #ffffff;
	border-radius: 14px;
	box-shadow: 0 4px 24px rgba(6, 98, 57, .09);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .22s ease, box-shadow .22s ease;
	border: 1px solid #d6e5de;
}

.pp-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 44px rgba(6, 98, 57, .16);
}

/* Thumbnail */
.pp-card__thumb {
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #e6f2ec;
}

.pp-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s ease;
}

.pp-card:hover .pp-card__img {
	transform: scale(1.04);
}

/* Card body */
.pp-card__body {
	padding: 20px 22px 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
}

/* Meta pills row */
.pp-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* Pill base */
.pp-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px 4px 8px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
}

.pp-pill svg {
	flex-shrink: 0;
}

/* Date pill — brand green */
.pp-pill--date {
	background: #e6f2ec;
	color: #066239;
}

/* Time pill — warm gold contrast */
.pp-pill--time {
	background: #fdf6e3;
	color: #a07808;
}

/* Title */
.pp-card__title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.35;
	color: #1a2420;
}

.pp-card__title a {
	color: inherit;
	text-decoration: none;
	transition: color .18s;
}

.pp-card__title a:hover {
	color: #066239;
}

/* Excerpt */
.pp-card__excerpt {
	margin: 0;
	font-size: .88rem;
	line-height: 1.65;
	color: #5a6b64;
	flex: 1;
}

/* ── Button ── */
.pp-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 10px 20px;
	background: #066239;
	color: #fff !important;
	text-decoration: none !important;
	border-radius: 999px;
	font-size: .85rem;
	font-weight: 600;
	letter-spacing: .02em;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background .2s, transform .18s, box-shadow .2s;
	box-shadow: 0 2px 10px rgba(6, 98, 57, .28);
	align-self: flex-start;
	line-height: 1;
}

.pp-btn:hover {
	background: #044d2c;
	transform: translateX(2px);
	box-shadow: 0 4px 18px rgba(6, 98, 57, .38);
}

.pp-btn:focus-visible {
	outline: 3px solid #7dc4a0;
	outline-offset: 2px;
}

/* ── No programs ── */
.pp-no-programs {
	text-align: center;
	color: #5a6b64;
	font-size: 1rem;
	padding: 48px 16px;
}

/* ── Pagination ── */
.pp-pagination {
	margin-top: 40px;
	display: flex;
	justify-content: center;
}

.pp-pagination ul {
	display: flex;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pp-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border-radius: 8px;
	border: 1.5px solid #d6e5de;
	color: #066239;
	text-decoration: none;
	font-size: .85rem;
	font-weight: 600;
	transition: background .18s, border-color .18s, color .18s;
	background: #fff;
}

.pp-pagination .page-numbers:hover,
.pp-pagination .page-numbers.current {
	background: #066239;
	border-color: #066239;
	color: #fff;
}


/* ══════════════════════════════════════════════════════════
   SINGLE PROGRAM PAGE
══════════════════════════════════════════════════════════ */

#pp-single {
	padding: 40px 20px 80px;
	max-width: 860px;
	margin: 0 auto;
}

/* Card wrapper */
.pp-single-card {
	background: #ffffff;
	border-radius: 18px;
	box-shadow: 0 6px 40px rgba(6, 98, 57, .10);
	overflow: hidden;
	border: 1px solid #d6e5de;
}

/* ── Hero image ── */
.pp-single-hero {
	position: relative;
	aspect-ratio: 16 / 7;
	overflow: hidden;
	background: #e6f2ec;
}

.pp-single-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pp-single-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, transparent 55%, rgba(4, 30, 18, .50) 100%);
	pointer-events: none;
}

/* ── Content area ── */
.pp-single-content {
	padding: 36px 44px 44px;
}

@media (max-width: 600px) {
	.pp-single-content {
		padding: 24px 20px 32px;
	}
}

/* Title */
.pp-single-title {
	margin: 0 0 24px;
	font-size: clamp(1.5rem, 4vw, 2.1rem);
	font-weight: 800;
	line-height: 1.25;
	color: #1a2420;
	letter-spacing: -.02em;
}

/* ── Date / Time pill buttons ── */
.pp-single-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 32px;
}

.pp-single-pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 11px 20px;
	border-radius: 12px;
	font-size: .9rem;
	font-weight: 600;
	border: 2px solid transparent;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

.pp-single-pill__icon {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.pp-single-pill__label {
	font-size: .72rem;
	text-transform: uppercase;
	letter-spacing: .08em;
	font-weight: 700;
	opacity: .65;
}

.pp-single-pill__value {
	font-size: .95rem;
	font-weight: 700;
}

/* Date pill — brand green */
.pp-single-pill--date {
	background: #e6f2ec;
	color: #044d2c;
	border-color: #b3d9c5;
}

.pp-single-pill--date .pp-single-pill__icon {
	color: #066239;
}

/* Time pill — warm gold */
.pp-single-pill--time {
	background: #fdf6e3;
	color: #7a5c00;
	border-color: #f0d990;
}

.pp-single-pill--time .pp-single-pill__icon {
	color: #c49a0a;
}

/* ── Body content ── */
.pp-single-body {
	font-size: 1rem;
	line-height: 1.8;
	color: #374151;
}

.pp-single-body p   { margin: 0 0 1.1em; }
.pp-single-body h2,
.pp-single-body h3  { color: #1a2420; margin-top: 1.6em; }
.pp-single-body img { max-width: 100%; border-radius: 8px; }
.pp-single-body a   { color: #066239; text-decoration: underline; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
	.pp-card,
	.pp-card__img,
	.pp-btn {
		transition: none;
	}
}
