/**
 * LHS Programs Frontend Styles
 */

/* Single Program */
.lhs-program-single {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

/* Consistent height for camp featured images */
.programs-listing-block figure img {
	max-height: 250px !important;
	object-fit: cover !important;
}

.lhs-program-single .entry-header {
	margin-bottom: 30px;
}

.lhs-program-single .program-grade-levels {
	font-size: 14px;
	text-transform: uppercase;
	font-weight: 600;
	color: #666;
	margin-bottom: 10px;
}

.lhs-program-single .entry-title {
	margin: 0 0 20px;
}

.program-featured-image {
	margin-bottom: 30px;
}

.program-featured-image img {
	width: 100%;
	height: auto;
	border-radius: 8px;
}

.program-details {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	margin-top: 40px;
}

@media (max-width: 768px) {
	.program-details {
		grid-template-columns: 1fr;
	}
}

.program-info-section,
.program-sessions-section {
	background: #f9f9f9;
	padding: 20px;
	border-radius: 8px;
}

.lhs-program-info p,
.lhs-program-sessions p {
	margin-bottom: 15px;
}

.lhs-financial-aid {
	margin-top: 20px;
	padding: 15px;
	background: #fff;
	border-left: 4px solid #2271b1;
}

.lhs-session {
	padding: 15px;
	margin-bottom: 15px;
	background: #fff;
	border-radius: 4px;
}

.lhs-session.sold-out {
	opacity: 0.7;
}

.lhs-session .session-dates {
	font-size: 16px;
	margin-bottom: 10px;
}

.lhs-session .session-description {
	color: #666;
	font-size: 14px;
}

.camp-photo-gallery {
	margin: 40px 0;
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
}

.camp-gallery-track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x proximity;
	padding: 8px 4px;
	flex: 1 1 auto;
	cursor: grab;
}

.camp-gallery-track:focus {
	outline: 2px solid #133a7c;
	outline-offset: 4px;
}

.camp-gallery-track.is-dragging {
	cursor: grabbing;
}

.camp-gallery-item {
	margin: 0;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
	background: #fff;
	flex: 0 0 clamp(240px, 30vw, 420px);
	scroll-snap-align: center;
}

.camp-gallery-item img {
	width: 100%;
	height: clamp(220px, 30vw, 360px);
	object-fit: cover;
	display: block;
}

.camp-gallery-control {
	background: #133a7c;
	color: #fff;
	border: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s ease, opacity 0.2s ease;
}

.camp-gallery-control[disabled],
.camp-gallery-control:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.camp-gallery-control:hover:not(:disabled) {
	background: #0f2960;
}

.notification {
	padding: 15px 20px;
	margin: 20px 0;
	border-radius: 4px;
}

.notification.info {
	background: #e5f5fa;
	border-left: 4px solid #00a0d2;
}

.notification.sold-out {
	background: #f9e9e9;
	border-left: 4px solid #dc3232;
	color: #8a0000;
}

.wp-block-buttons.register-program {
	margin-top: 15px;
}

/* Featured Card Display */
.lhs-programs-featured {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 30px;
	margin: 30px 0;
}

.lhs-program-card {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.3s ease;
}

.lhs-program-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lhs-program-card.all-sold-out {
	opacity: 0.7;
}

.lhs-program-card .program-image {
	position: relative;
}

.lhs-program-card .program-image img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.programs-listing-block  .program-content {
	padding: 20px;
}

.program-faq summary {
	cursor: pointer;
	list-style: none;
}

.program-faq summary::-webkit-details-marker,
.program-faq summary::marker {
	display: none;
	content: '';
}

.lhs-program-card .program-grades {
	font-size: 12px;
	text-transform: uppercase;
	font-weight: 600;
	color: #666;
	margin-bottom: 10px;
}

.lhs-program-card .program-title {
	margin: 0 0 15px;
	font-size: 20px;
}

/* Program Type Landing Pages */
.program-type-archive {
	background: #f7fafc;
	padding-right: clamp(55px, 158px + 100vw - 1440px, 50vw - 584px);
	padding-left: clamp(55px, 158px + 100vw - 1440px, 50vw - 584px);
}

.program-type-archive .program-hero {
	margin-bottom: 60px;
	margin-right: calc(-1 * clamp(55px, 158px + 100vw - 1440px, 50vw - 584px));
	margin-left: calc(-1 * clamp(55px, 158px + 100vw - 1440px, 50vw - 584px));
	padding-bottom: 48px;
	border-radius: 0;
	box-shadow: 0 30px 70px rgba(15, 37, 73, 0.08);
	overflow: hidden;
	background: #fff;
}

.archive .landing-intro-block.program-hero {
padding-bottom: 0px; 
}

.program-type-archive .program-hero .wp-block-group__inner-container {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

.program-type-archive .program-hero .left-group {
	padding: 48px clamp(24px, 5vw, 60px) 54px;
	grid-column: 1 / span 6;
}

.program-type-archive .program-hero h4 {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 700;
	margin-bottom: 12px;
	color: #1c3559;
}


.program-type-archive .program-hero .landing-intro-text {
	font-size: 1.05rem;
	line-height: 1.75;
	color: #2d3d5c;
}

.program-type-archive .program-hero .landing-intro-cta {
	margin-top: 24px;
}

.program-type-archive .program-hero .landing-intro-cta .button {
	background: #133a7c;
	border-radius: 0;
	padding: 14px 32px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.program-type-archive .program-hero .right-group {
	grid-column: 7 / span 6;
	padding: 0;
}

.program-type-archive .program-hero .landing-hero-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.program-nav {
	margin: 48px auto 0;
	max-width: 1200px;
}

.program-nav__container {
	background: transparent;
	border-radius: 0;
	padding: 20px;
	box-shadow: none;
	display: flex;
	justify-content: center;
	margin-left: 1vw;
	margin-right: 1vw;
}

.program-nav__container ul,
.program-nav__container .menu {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: clamp(12px, 3vw, 24px);
	justify-content: center;
}

.program-nav__container li {
	position: relative;
}

.program-nav__container li:not(:last-child)::after {
	content: '|';
	position: absolute;
	right: calc(-1 * clamp(6px, 1.5vw, 12px));
	color: currentColor;
	opacity: 0.4;
}

.program-nav__container a {
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-decoration: none;
	opacity: 0.82;
	transition: opacity 0.2s ease;
}

.program-nav__container a:hover,
.program-nav__container a:focus {
	opacity: 1;
}

.program-type-archive .notification {
	padding: 0;
}

.program-notification {
	margin-top: 48px;
	margin-left: auto;
	border-radius: 0;
	background: transparent;
	border-left: none;
	box-shadow: none;
	text-align: left;
}

.program-notification .wp-block-group__inner-container {
	padding: 0;
	font-size: 1.05rem;
	color: #744c11;
}

.program-details-section {
	max-width: 1200px;
	margin: 0 auto 60px;
}

.program-details-section .just-text-content {
	font-size: 1.08rem;
	line-height: 1.75;
	color: #2c3f60;
}

.program-listing {
	max-width: 1200px;
	margin: 0 auto 96px;
}

.program-group {
	margin-bottom: 72px;
}

.program-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: clamp(20px, 3vw, 32px);
}

.program-card {
	background: #ffffff;
	border-radius: 0;
	box-shadow: 0 24px 60px rgba(12, 32, 66, 0.12);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.program-card:hover,
.program-card:focus-within {
	transform: translateY(-6px);
	box-shadow: 0 30px 80px rgba(12, 32, 66, 0.18);
}

.program-card__image img {
	width: 100%;
	height: 220px;
	object-fit: cover;
}

.program-card__body {
	padding: clamp(20px, 4vw, 28px);
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.program-card__grades {
	margin: 0;
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #0e2452;
}

.program-card__title {
	margin: 0;
	font-size: 1.35rem;
	line-height: 1.3;
}

.program-card__title a {
	color: inherit;
	text-decoration: none;
}

.program-card__title a:hover,
.program-card__title a:focus {
	text-decoration: underline;
}

.program-card__excerpt {
	margin: 0;
	line-height: 1.6;
	color: #4c5b74;
}

.program-card__meta {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 6px;
	color: #304468;
}

.program-card__meta li strong {
	color: #1c3559;
	margin-right: 6px;
}

.program-card__cta {
	margin-top: auto;
}

.program-card__cta .arrow-link {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.program-session-table {
	max-width: 1200px;
	margin: 0 auto 100px;
}

.program-session-table__wrap {
	overflow-x: auto;
	margin-bottom: 36px;
}

.program-session-table__table {
	width: 100%;
	border-collapse: collapse;
	background: #ffffff;
	border-radius: 0;
	box-shadow: 0 24px 60px rgba(12, 32, 66, 0.12);
	overflow: hidden;
}

.program-session-table__table thead {
	background: linear-gradient(135deg, #1b3c77, #396fb1);
	color: #ffffff;
}

.program-session-table__table thead th {
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 18px 20px;
}

.program-session-table__table th,
.program-session-table__table td {
	padding: 18px 22px;
	vertical-align: top;
}

.program-session-table__table tbody tr:nth-child(odd) td {
	background: rgba(244, 248, 252, 0.9);
}

.program-session-table__table tbody tr:last-child td {
	border-bottom: none;
}

.program-session-table__table td {
	color: #304468;
	border-bottom: 1px solid rgba(30, 60, 110, 0.08);
}

.program-session-table__table td:first-child {
	font-weight: 600;
	color: #19305a;
}

.program-register-link {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #193f7b;
}

.program-register-link:hover,
.program-register-link:focus {
	text-decoration: underline;
}

.program-session-table__table td:last-child {
	max-width: 340px;
	line-height: 1.6;
}

.program-additional {
	max-width: 1200px;
	margin: 0 auto 100px;
	background: #ffffff;
	padding: clamp(24px, 5vw, 48px);
	border-radius: 0;
	box-shadow: 0 24px 60px rgba(12, 32, 66, 0.12);
}

.program-type-archive #programs,
.program-type-archive #programs-details,
.program-type-archive #programs-sessions {
	scroll-margin-top: 120px;
}

.crosspost-section-wrapper {
	background: rgb(238, 222, 244);
	margin-left: calc(-1 * clamp(55px, 158px + 100vw - 1440px, 50vw - 584px));
	margin-right: calc(-1 * clamp(55px, 158px + 100vw - 1440px, 50vw - 584px));
	margin-top: 60px;
	margin-bottom: 60px;
	padding: 48px 0;
}

.crosspost-section-inner {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: clamp(55px, 158px + 100vw - 1440px, 50vw - 584px);
	padding-right: clamp(55px, 158px + 100vw - 1440px, 50vw - 584px);
}

.crosspost-layout {
	display: grid;
	grid-template-columns: 350px 1fr;
	gap: 40px;
	align-items: start;
}

.crosspost-info-column {
	position: sticky;
	top: 140px;
}

.crosspost-additional-content {
	margin-top: 20px;
	font-size: 15px;
	line-height: 1.6;
}

.crosspost-programs-column {
	min-width: 0;
}

@media (max-width: 1024px) {
	.program-type-archive .program-hero {
		border-radius: 0;
	}

	.crosspost-layout {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.crosspost-info-column {
		position: static;
	}
}

@media (max-width: 768px) {
	.program-type-archive .program-hero .wp-block-group__inner-container {
		display: block;
	}

	.program-type-archive .program-hero .left-group,
	.program-type-archive .program-hero .right-group {
		grid-column: 1 / -1;
	}

	.program-type-archive .program-hero .right-group {
		margin-top: 24px;
	}

	.program-card__image img {
		height: 200px;
	}

	.program-session-table__table th,
	.program-session-table__table td {
		padding: 14px 16px;
	}
}

.lhs-program-card .program-title a {
	text-decoration: none;
	color: inherit;
}

.lhs-program-card .program-title a:hover {
	color: #2271b1;
}

.lhs-program-card .program-excerpt {
	margin-bottom: 15px;
	color: #666;
	font-size: 14px;
}

.lhs-program-card .program-sessions-summary {
	margin-bottom: 15px;
	font-size: 14px;
}

.lhs-program-card .session-date {
	margin: 5px 0;
}

.lhs-program-card .session-date.sold-out {
	text-decoration: line-through;
	color: #999;
}

.lhs-program-card .sold-out-text {
	color: #dc3232;
	font-weight: 600;
}

.lhs-program-card .program-link .button {
	display: inline-block;
	padding: 10px 20px;
	background: #2271b1;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	transition: background 0.3s ease;
}

.lhs-program-card .program-link .button:hover {
	background: #135e96;
}

/* Table Display */
.lhs-programs-table {
	margin: 30px 0;
	overflow-x: auto;
}

.lhs-programs-list {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
}

.lhs-programs-list thead th {
	background: #f0f0f1;
	padding: 12px 15px;
	text-align: left;
	font-weight: 600;
	border-bottom: 2px solid #ddd;
}

.lhs-programs-list tbody tr {
	border-bottom: 1px solid #eee;
}

.lhs-programs-list tbody tr:hover {
	background: #f9f9f9;
}

.lhs-programs-list tbody tr.all-sold-out {
	opacity: 0.6;
}

.lhs-programs-list tbody td {
	padding: 15px;
	vertical-align: top;
}

.lhs-programs-list .program-name a {
	text-decoration: none;
	font-weight: 600;
	color: #2271b1;
}

.lhs-programs-list .program-name a:hover {
	color: #135e96;
}

.lhs-programs-list .program-sessions ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lhs-programs-list .program-sessions li {
	margin: 5px 0;
	font-size: 14px;
}

.lhs-programs-list .program-sessions li.sold-out {
	text-decoration: line-through;
	color: #999;
}

.lhs-programs-list .sold-out-badge {
	display: inline-block;
	padding: 2px 8px;
	background: #dc3232;
	color: #fff;
	font-size: 11px;
	border-radius: 3px;
	margin-left: 10px;
	font-weight: 600;
}

.lhs-programs-list .program-status {
	text-align: center;
}

.lhs-programs-list .status-sold-out {
	color: #dc3232;
	font-weight: 600;
}

.lhs-programs-list .status-limited {
	color: #f0a500;
	font-weight: 600;
}

.lhs-programs-list .status-available {
	color: #46b450;
	font-weight: 600;
}

/* Archive */
.lhs-programs-archive {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

.lhs-programs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 30px;
	margin: 30px 0;
}

.lhs-program-archive-item {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	overflow: hidden;
}

.lhs-program-archive-item .program-thumbnail {
	position: relative;
}

.lhs-program-archive-item .program-thumbnail img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.lhs-program-archive-item .sold-out-overlay {
	position: absolute;
	top: 10px;
	right: 10px;
	background: #dc3232;
	color: #fff;
	padding: 5px 15px;
	border-radius: 4px;
	font-weight: 600;
	font-size: 12px;
}

.lhs-program-archive-item .program-archive-content {
	padding: 20px;
}

.lhs-program-archive-item .program-grades {
	font-size: 12px;
	text-transform: uppercase;
	font-weight: 600;
	color: #666;
	margin-bottom: 10px;
}

.lhs-program-archive-item .program-title {
	margin: 0 0 15px;
	font-size: 20px;
}

.lhs-program-archive-item .program-title a {
	text-decoration: none;
	color: inherit;
}

.lhs-program-archive-item .program-title a:hover {
	color: #2271b1;
}

.lhs-program-archive-item .program-read-more {
	display: inline-block;
	margin-top: 10px;
	color: #2271b1;
	text-decoration: none;
	font-weight: 600;
}

.lhs-program-archive-item .program-read-more:hover {
	color: #135e96;
}
