/**
 * Single Program (gthl_program) — match design mockup (~70/30 + gutter).
 */

.gthl-program-single-wrap {
	width: 100%;
	background: var(--gen-white, #ffffff);
	padding-bottom: 3.5rem;
}

.gthl-program-single-wrap__inner {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding-top: 0;
	padding-bottom: 1.5rem;
}

.gthl-program-single {
	font-family: var(--gthl-font-family, var(--gen-font, "Roboto", sans-serif));
	font-size: var(--gthl-font-size-body, var(--gen-body, 16px));
	color: var(--gthl-color-black, #000000);
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* ~70% main / ~30% sidebar when cards exist */
.gthl-program-single__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	column-gap: clamp(1.75rem, 3.2vw, 4.5rem);
	row-gap: 2rem;
	align-items: start;
	width: 100%;
	max-width: 100%;
}

.gthl-program-single--with-sidebar .gthl-program-single__layout {
	grid-template-columns: minmax(0, 1fr) minmax(240px, 27%);
}

.gthl-program-single__main {
	min-width: 0;
	width: 100%;
	max-width: 100%;
}

.gthl-program-single__sidebar {
	min-width: 0;
	width: 100%;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 1.5rem;
	box-sizing: border-box;
}

.gthl-program-single__sidebar .gthl-program-sidebar__widget,
.gthl-program-single__sidebar .widget,
.gthl-program-single__sidebar .gthl-program-session-card,
.gthl-program-single__sidebar .gthl-program-single__ad {
	margin-left: 0;
	margin-right: 0;
	width: 100%;
	max-width: 100%;
}

.gthl-program-single__header {
	margin: 0 0 1.75rem;
}

.gthl-program-single__title {
	margin: 0;
	font-family: inherit;
	font-size: var(--gthl-font-size-h1, var(--gen-h1, 36px));
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--gthl-color-navy, var(--gen-primary, #003a80));
	overflow-wrap: anywhere;
	word-break: break-word;
}

.gthl-program-single__featured {
	margin: 0 0 2rem;
	padding: 0;
	overflow: hidden;
	border-radius: var(--gthl-radius-lg, 12px);
}

.gthl-program-single__featured-img {
	display: block;
	width: 100%;
	height: auto;
	max-height: min(52vh, 480px);
	object-fit: cover;
	object-position: center;
}

.gthl-program-single__section {
	margin: 0 0 2.25rem;
}

.gthl-program-single__section:last-child {
	margin-bottom: 0;
}

.gthl-program-single__heading {
	margin: 0 0 0.85rem;
	font-family: inherit;
	font-size: var(--gthl-font-size-h2, var(--gen-h2, 24px));
	font-weight: var(--gthl-font-weight-bold, 700);
	line-height: 1.25;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--gthl-color-black, #000000);
	overflow-wrap: anywhere;
}

.gthl-program-single__text,
.gthl-program-single__session-text,
.gthl-program-single__text.entry-content,
.gthl-program-single__session-text.entry-content {
	font-size: var(--gthl-font-size-body, var(--gen-body, 16px));
	color: var(--gthl-color-black, #000000);
	overflow-wrap: anywhere;
	text-align: justify;
}

.gthl-program-single__text p,
.gthl-program-single__text li,
.gthl-program-single__session-text p,
.gthl-program-single__session-text li {
	font-size: inherit;
	line-height: inherit;
}

.gthl-program-single__text > *:first-child,
.gthl-program-single__session-text > *:first-child {
	margin-top: 0;
}

.gthl-program-single__text > *:last-child,
.gthl-program-single__session-text > *:last-child {
	margin-bottom: 0;
}

.gthl-program-single__text p,
.gthl-program-single__session-text p {
	margin: 0 0 1rem;
}

.gthl-program-single__text strong,
.gthl-program-single__text b,
.gthl-program-single__session-text strong,
.gthl-program-single__session-text b {
	font-weight: 700;
}

.gthl-program-single__text img,
.gthl-program-single__session-text img,
.gthl-program-single__main img,
.gthl-program-single__main iframe,
.gthl-program-single__main video,
.gthl-program-single__main table {
	max-width: 100%;
	height: auto;
}

/* Keep gallery thumbs equal height inside program/event content */
.gthl-program-single__text .gthl-gallery,
.gthl-program-single__session-text .gthl-gallery,
.gthl-program-single__main .gthl-gallery {
	margin: 0;
}

.gthl-program-single__text .gthl-gallery__title,
.gthl-program-single__session-text .gthl-gallery__title {
	margin-top: 0;
}

.gthl-program-single__text p:has(> .gthl-gallery),
.gthl-program-single__session-text p:has(> .gthl-gallery) {
	margin: 0;
}

.gthl-program-single__text .gthl-gallery__img,
.gthl-program-single__session-text .gthl-gallery__img,
.gthl-program-single__main .gthl-gallery__img {
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	max-height: none;
	object-fit: cover;
	object-position: center;
}

.gthl-program-single__text table,
.gthl-program-single__session-text table {
	display: block;
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* WHEN session boxes */
.gthl-program-single__sessions {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.15rem;
}

@media (min-width: 640px) {
	.gthl-program-single__sessions {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.25rem;
	}
}

.gthl-program-single__session {
	background: var(--gthl-color-card-bg, var(--gen-gray-card, #f4f4f4));
	border-radius: 10px;
	padding: 15px 10px 35px 10px;
	min-width: 0;
}

.gthl-program-single__session-title {
	margin: 0 0 0.5rem;
	font-family: inherit;
	font-size: var(--gthl-font-size-body, var(--gen-body, 16px));
	font-weight: var(--gthl-font-weight-bold, 700);
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--gthl-color-black, #000000);
}

/* Tablet: keep two columns a bit tighter */
@media (max-width: 1100px) {
	.gthl-program-single--with-sidebar .gthl-program-single__layout {
		grid-template-columns: minmax(0, 1fr) minmax(220px, 30%);
		column-gap: clamp(1.25rem, 2.5vw, 2.5rem);
	}
}

/* Mobile / small tablet: content first, sidebar full-width below */
@media (max-width: 900px) {
	.gthl-program-single-wrap {
		padding-bottom: 2.5rem;
	}

	.gthl-program-single-wrap__inner {
		padding-top: 0;
		padding-bottom: 1rem;
	}

	.gthl-program-single--with-sidebar .gthl-program-single__layout {
		grid-template-columns: minmax(0, 1fr);
		column-gap: 0;
		row-gap: 1.75rem;
	}

	.gthl-program-single__main {
		order: 1;
	}

	.gthl-program-single__sidebar {
		order: 2;
		max-width: 420px;
		margin-inline: auto;
		gap: 1.25rem;
	}

	.gthl-program-single__header {
		margin-bottom: 1.25rem;
	}

	.gthl-program-single__section {
		margin-bottom: 1.75rem;
	}

	.gthl-program-single__sessions {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.gthl-program-single-wrap__inner {
		padding-top: 0;
	}

	.gthl-program-single__sidebar {
		max-width: 100%;
	}

	.gthl-program-single__session {
		padding: 14px 12px 28px;
	}
}
