/******************/
/**** Programs ****/
/******************/

.masonary-blog { position: relative; overflow: hidden; min-height: 441px; }
.masonary-blog .image:before { opacity: 0 !important; }
.masonary-blog .simple-blog span { border-top: 1px solid #ebebeb; }
.masonary-blog .simple-blog a.blog-date { width: auto; border-top: none; padding: 0 12px; pointer-events: none; }
.masonary-blog .simple-blog a.blog-more { width: auto; border-top: none; float: right; }
.masonary-blog .simple-blog a.blog-date:first-child { padding-left: 0; }

.program-list {
	background: white;
	border-radius: 3px;
	margin-bottom: 30px;
	border: 1px solid #ebebeb;
}
.p-preview { padding: 0; }
.p-preview img { width: 100%; }
.p-title {
	font-family: 'Vollkorn', 'Yellowtail', serif;
	font-size: 23px;
	margin: 20px 0 10px 15px;
	padding: 5px 0;
}
.p-title a { color: #434343; }
/* .p-title a:hover { color: #2d695c; } */
.p-descr {
	margin-bottom: 72px;
	padding: 0 0 10px 15px;
}
.p-info {
	color: #2d695c;
	font-family: noto sans, sans-serif;
	font-size: 11px;
	line-height: 35px;
	position: absolute;
	bottom: 0;
	right: 0;
	padding: 0 15px;
	width: 100%;
}
.p-info div {
	border-top: 1px solid #ebebeb;
	white-space: nowrap;
}
.p-info div span {
	font-family: 'Vollkorn', 'Yellowtail', serif;
	font-size: 13px;
	letter-spacing: 1px;
	padding-left: 2px;
}

.p-download {
	font-size: 14px;
	padding: 0 10px;
	opacity: 0.5;
	transition: all 0.2s;
}
.p-download span {
	bottom: 1px;
	left: 2px;
	position: relative;
	font-size: 14px;
}
.p-title a:hover .p-download {
	color: #2d695c;
	opacity: 0.8;
}

.p-preview .p-overlay {
	display: none;
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background-color: white;
	line-height: 100%;
	font-size: 60px;
	text-align: center;
	color: rgba(206, 97, 126, 0.8);
	opacity: 0;
	transition: all 0.3s;
}
.p-overlay i { top: 40%; vertical-align: middle; }
.p-preview:hover .p-overlay {
	opacity: 0.4;
}
@media (max-width: 768px) {
	.program-list {
		text-align: center;
	}
	.program-list > div {
		min-height: 0 !important;
	}
	.p-download {
		display: block;
		padding: 15px 0 0;
	}
	.p-title {
		margin-left: 0;
	}
	.p-descr {
		margin-bottom: 10px;
	}
	.p-info {
		position: relative;
	}
	.p-info div {
		padding: 0;
		white-space: pre-line;
	}
}
/* ===== Programs page refresh (Oct 2026) ===== */
.gw-progs__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 8px; }
.gw-progs__h { margin: 34px 0 16px; }

/* Program pages: tiles */
.gw-ptiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.gw-ptile { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--gw-line); border-top: 4px solid var(--gw-green); border-radius: 8px; padding: 16px 16px 14px; text-align: left; color: var(--gw-text) !important; text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.gw-ptile:hover, .gw-ptile:focus { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.gw-ptile > .fa { font-size: 24px; color: var(--gw-green); }
.gw-ptile__name { font-family: 'Vollkorn', 'Noto Serif', serif; font-size: 19px; color: var(--gw-brown); line-height: 1.25; }
.gw-ptile__blurb { font-size: 14px; line-height: 1.45; color: var(--gw-muted); flex: 1 1 auto; }
.gw-ptile__go { font-size: 14px; font-weight: 700; color: var(--gw-green); }

/* All programs: compact cards */
.gw-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.gw-pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--gw-line); border-radius: 8px; overflow: hidden; text-align: left; scroll-margin-top: 90px; }
.gw-pcard.is-target { box-shadow: 0 0 0 3px var(--gw-green); }
.gw-pcard__img { position: relative; display: block; aspect-ratio: 4 / 3; /* same shape as the home page reel */ background: #f2f2f2; overflow: hidden; }
.gw-pcard__img img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform .3s; }
.gw-pcard__img:hover img { transform: scale(1.03); }
.gw-pcard__zoom { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; border-radius: 4px; padding: 3px 8px; opacity: 0; transition: opacity .2s; }
.gw-pcard__img:hover .gw-pcard__zoom, .gw-pcard__img:focus .gw-pcard__zoom { opacity: 1; }
.gw-pcard__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.gw-pcard__title { font-family: 'Vollkorn', 'Noto Serif', serif; color: var(--gw-brown); font-size: 20px; line-height: 1.25; margin: 0; }
.gw-pcard__meta { list-style: none; margin: 0; padding: 0; font-size: 13.5px; color: var(--gw-text); }
.gw-pcard__meta li { font-family: 'Noto Sans', sans-serif; color: var(--gw-text); float: none; list-style: none; margin: 2px 0; line-height: 1.4; padding-left: 20px; text-indent: -20px; }
.gw-pcard__meta .fa { color: var(--gw-green); width: 16px; text-align: center; margin-right: 4px; text-indent: 0; }
.gw-pcard__descr { font-size: 14px; line-height: 1.5; color: var(--gw-muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.gw-pcard__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.gw-pcard__actions .gw-btn { padding: 6px 12px; font-size: 14px; }
@media (max-width: 600px) {
    .gw-ptiles { grid-template-columns: 1fr 1fr; gap: 10px; }
    .gw-ptile { padding: 12px; }
    .gw-ptile__blurb { display: none; }
    .gw-pgrid { grid-template-columns: 1fr; }
}

/* Program page tiles with logos */
.gw-ptile.has-logo { border-top-width: 1px; padding-top: 0; overflow: hidden; }
.gw-ptile__logo { display: flex; align-items: center; justify-content: center; height: 112px; margin: 0 -16px 6px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--gw-line); }
.gw-ptile__logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.gw-ptile.is-bleed .gw-ptile__logo { padding: 0; }
.gw-ptile.is-bleed .gw-ptile__logo img { width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: center bottom; }
@media (max-width: 600px) {
    .gw-ptile.has-logo { padding: 0 12px 12px; }
    .gw-ptile__logo { height: 84px; margin: 0 -12px 6px; padding: 8px 12px; }
}
