/* Programs Archive — Layout, Filters, Grid */

.pa-wrap {
	display: flex;
	align-items: flex-start;
	gap: 32px;
	font-family: 'Inter', sans-serif;
	max-width: 1280px;
	margin: 0 auto;
	padding: 32px 16px;
	box-sizing: border-box;
}

.pa-wrap *,
.pa-wrap *::before,
.pa-wrap *::after {
	box-sizing: border-box;
}

/* Sidebar */
.pa-sidebar {
	flex: 0 0 270px;
	width: 270px;
	background: #F4F2F2;
	border-radius: 8px !important;
	padding: 28px 24px;
	box-shadow: 0 4px 16px rgba(11, 31, 58, 0.03);
}

.pa-filter-heading {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 16px;
	margin-bottom: 18px;
	border-bottom: 1px solid rgba(11, 31, 58, 0.1);
}

.pa-filter-heading h3 {
	font-family: 'Cormorant', serif;
	font-size: 24px;
	font-weight: 600;
	color: #0b1f3a;
	margin: 0;
	letter-spacing: 0.01em;
}

.pa-filter-icon svg {
	display: block;
}

.pa-filter-group {
	border-bottom: 1px solid rgba(11, 31, 58, 0.08);
	padding-bottom: 14px;
	margin-bottom: 14px;
}

.pa-filter-group:last-of-type {
	border-bottom: none;
	margin-bottom: 6px;
	padding-bottom: 4px;
}

.pa-filter-group-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: #0b1f3a;
	padding: 4px 0 12px;
	user-select: none;
}

.pa-toggle-arrow {
	font-size: 9px;
	color: rgba(11, 31, 58, 0.55);
	transition: transform 0.25s ease;
}

.pa-filter-group.pa-collapsed .pa-toggle-arrow {
	transform: rotate(180deg);
}

.pa-filter-group.pa-collapsed .pa-filter-list {
	display: none;
}

.pa-filter-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pa-filter-item {
	margin-bottom: 2px;
}

/* Custom checkbox — hardened against theme overrides */
.pa-filter-item label {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 6px 7px 30px;
	border-radius: 7px;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.pa-filter-item label:hover {
	background-color: rgba(11, 31, 58, 0.05);
}

.pa-filter-item input[type='checkbox'] {
	position: absolute !important;
	inset: 0 !important;
	opacity: 0 !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	margin: 0 !important;
	width: 100% !important;
	height: 100% !important;
	cursor: pointer !important;
	z-index: 2 !important;
}

.pa-checkbox-ui {
	position: absolute !important;
	left: 6px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px !important;
	height: 16px !important;
	border: 1.5px solid rgba(11, 31, 58, 0.28) !important;
	border-radius: 3px !important;
	background: #ffffff !important;
	transition: background-color 0.2s ease, border-color 0.2s ease;
	z-index: 1;
	flex-shrink: 0;
	pointer-events: none;
	display: block !important;
}

.pa-filter-item input:checked ~ .pa-checkbox-ui {
	background: #0b1f3a !important;
	border-color: #0b1f3a !important;
}

.pa-checkbox-ui::after {
	content: '' !important;
	position: absolute !important;
	left: 4.5px;
	top: 1px;
	width: 4px;
	height: 8px;
	border: solid #ffffff !important;
	border-width: 0 2px 2px 0 !important;
	transform: rotate(45deg) scale(0);
	transition: transform 0.15s ease;
	display: block !important;
}

.pa-filter-item input:checked ~ .pa-checkbox-ui::after {
	transform: rotate(45deg) scale(1) !important;
}

.pa-checkbox-label {
	position: relative;
	z-index: 1;
	font-size: 14px;
	font-weight: 400;
	color: #0b1f3a;
	line-height: 1.3;
}

/* Clear filters button */
.pa-clear-filters {
	display: inline-flex !important;
	align-items: center !important;
	gap: 7px !important;
	background: transparent !important;
	border: 1.5px solid #0b1f3a !important;
	border-radius: 5px !important;
	padding: 9px 20px !important;
	margin-top: 10px !important;
	font-family: 'Inter', sans-serif !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	color: #0b1f3a !important;
	cursor: pointer !important;
	text-decoration: none !important;
	transition: background-color 0.25s ease, color 0.25s ease !important;
}

.pa-clear-filters:hover {
	background: #be9047 !important;
	border-color: #be9047 !important;
	color: #ffffff !important;
}

.pa-clear-icon {
	font-size: 14px;
	display: inline-block;
	transition: transform 0.4s ease;
}

.pa-clear-filters:hover .pa-clear-icon {
	transform: rotate(-180deg);
}

/* Content area / top bar */
.pa-content {
	flex: 1 1 auto;
	min-width: 0;
}

.pa-top-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
	gap: 16px;
	margin-bottom: 22px;
}

.pa-showing-count {
	font-size: 14px;
	color: #575a5f;
	white-space: nowrap;
}

.pa-sort-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #0b1f3a;
	flex-shrink: 0;
	white-space: nowrap;
}

.pa-sort-wrap label {
	white-space: nowrap;
}

.pa-sort-wrap select {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	color: #0b1f3a;
	border: 1px solid rgba(11, 31, 58, 0.18);
	border-radius: 6px;
	padding: 7px 12px;
	background: #ffffff;
	cursor: pointer;
	white-space: nowrap;
}

/* Grid */
.pa-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
	transition: opacity 0.2s ease;
}

.pa-grid.pa-loading {
	opacity: 0.4;
	pointer-events: none;
}

/* Card */
.pa-card {
	background: #ffffff;
	border-radius: 8px !important;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 2px 8px rgba(11, 31, 58, 0.05);
	transition: transform 0.45s cubic-bezier(0.22, 0.9, 0.3, 1),
		box-shadow 0.45s cubic-bezier(0.22, 0.9, 0.3, 1);
}

.pa-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 18px 32px rgba(11, 31, 58, 0.10);
}

.pa-card-image {
	position: relative;
	display: block !important;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #F4F2F2;
	line-height: 0;
	font-size: 0;
}

.pa-card-image img {
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	object-fit: cover !important;
	display: block !important;
	vertical-align: top !important;
	margin: 0 !important;
	transition: transform 0.7s cubic-bezier(0.22, 0.9, 0.3, 1);
}

.pa-card:hover .pa-card-image img {
	transform: scale(1.09);
}

.pa-card-image::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(11, 31, 58, 0.32), transparent 55%);
	opacity: 0;
	transition: opacity 0.45s ease;
}

.pa-card:hover .pa-card-image::after {
	opacity: 1;
}

.pa-card-image-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #F4F2F2, #e9e6e0);
}

.pa-card-body {
	padding: 22px 24px 26px;
	display: flex;
	flex-direction: column;
	flex: 1;
	margin: 0 !important;
}

.pa-card-category {
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #be9047;
	margin-bottom: 10px;
}

.pa-card-title {
	margin: 0 0 14px;
}

.pa-card-title a {
	font-family: 'Cormorant', serif !important;
	font-size: 28px !important;
	font-weight: 600 !important;
	line-height: 35px !important;
	color: #0b1f3a !important;
	text-decoration: none !important;
}

.pa-card-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	row-gap: 8px;
	column-gap: 20px;
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(11, 31, 58, 0.08);
}

.pa-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 300;
	color: #0b1f3a;
	white-space: nowrap;
}

.pa-meta-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #0b1f3a;
	line-height: 0;
}

.pa-meta-icon svg {
	width: 17px;
	height: 17px;
	fill: #0b1f3a;
}

.pa-meta-icon i {
	font-size: 16px;
}

.pa-card-desc {
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.55;
	color: #575a5f;
	margin: 0 0 22px;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pa-card-link {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	font-family: 'Inter', sans-serif !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.04em !important;
	color: #0b1f3a !important;
	text-decoration: none !important;
	margin-top: auto;
	width: fit-content;
}

.pa-card-arrow {
	transition: transform 0.35s ease;
}

.pa-card:hover .pa-card-arrow {
	transform: translateX(6px);
}

.pa-no-results {
	grid-column: 1 / -1;
	text-align: center;
	color: rgba(11, 31, 58, 0.6);
	font-size: 15px;
	padding: 50px 0;
}

/* Load more */
.pa-load-more-wrap {
	text-align: center;
	margin-top: 36px;
}

.pa-load-more-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 10px !important;
	min-width: 160px;
	border: none !important;
	border-radius: 5px !important;
	background: #0b1f3a !important;
	color: #ffffff !important;
	font-family: 'Inter', sans-serif !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.04em !important;
	padding: 13px 28px !important;
	cursor: pointer !important;
	transition: background-color 0.25s ease, opacity 0.2s ease !important;
}

.pa-load-more-btn:hover {
	background: #be9047 !important;
	opacity: 1 !important;
}

.pa-load-more-btn:disabled {
	cursor: not-allowed !important;
	opacity: 0.75 !important;
}

.pa-spinner {
	display: none;
	width: 15px;
	height: 15px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: pa-spin 0.7s linear infinite;
}

@keyframes pa-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Responsive */
@media (max-width: 1024px) {
	.pa-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.pa-sidebar {
		flex: 0 0 230px;
		width: 230px;
	}
}

@media (max-width: 768px) {
	.pa-wrap {
		flex-direction: column;
		padding: 20px 12px;
	}

	.pa-sidebar {
		width: 100%;
		flex: 1 1 auto;
	}

	.pa-grid {
		grid-template-columns: 1fr;
	}

	.pa-top-bar {
		flex-wrap: wrap;
		align-items: flex-start;
		gap: 10px;
	}
}





/* Program Featured Image and Gallery Items Lightbox Carousel */

.pg-gallery button,
.pg-lb-overlay button {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background-color: transparent !important;
	background-image: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font: inherit;
	text-transform: none;
	letter-spacing: normal;
	border-radius: 10px !important;
}


/* Base */
.pg-gallery {
	--pg-radius: 14px;
	--pg-gap: 10px;
	--pg-accent: #1a73e8;

	max-width: 100%;
	margin: 0 0 28px;
}


/* Main image */
.pg-main {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--pg-radius);
	background: #0e1116;
}

.pg-main-btn {
	display: block;
	width: 100%;
	height: 100%;
	position: relative;
	cursor: zoom-in;
	outline: none;
}

.pg-main-btn,
.pg-main-btn:hover,
.pg-main-btn:focus,
.pg-main-btn:active {
	background-color: transparent !important;
	color: inherit;
}

.pg-main-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.18s ease;
}

.pg-zoom-icon {
	position: absolute;
	right: 14px;
	bottom: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(15, 17, 21, 0.55);
	color: #fff;
	backdrop-filter: blur(3px);
	pointer-events: none;
}


/* Thumbnails */
.pg-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--pg-gap);
	margin-top: var(--pg-gap);
}


.pg-thumb {
	position: relative;
	flex: 0 0 calc(20% - (var(--pg-gap) * 4 / 5));
	aspect-ratio: 1 / 1;
	height: 100px;
	border: 2px solid transparent !important;
	border-radius: 10px !important;
	overflow: hidden;
	background-color: #eee !important;
	cursor: pointer;
	outline: none;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.pg-thumb,
.pg-thumb:hover,
.pg-thumb:focus,
.pg-thumb:active,
.pg-thumb:visited {
	color: inherit;
	background-color: #eee;
	box-shadow: none;
	text-decoration: none;
}

.pg-thumb img {
	display: block;
	width: 100%;
	height: auto !important;
	object-fit: cover;
}

.pg-thumb:hover {
	border-color: transparent;
	transform: translateY(-2px);
}

.pg-thumb.is-active,
.pg-thumb.is-active:hover {
	border-color: var(--pg-accent);
}

.pg-more-overlay {
	position: absolute;
	inset: 0;
	display: none; /* shown per-breakpoint below, on whichever tile is the boundary tile */
	align-items: center;
	justify-content: center;
	background: rgba(10, 12, 16, 0.62);
	color: #fff;
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

/* Desktop / tablet "+N" overlay (4 real thumbs + this tile). */
@media (min-width: 481px) {
	.pg-more-overlay--desktop {
		display: flex;
	}
}

/* Phone "+N" overlay (2 real thumbs + this tile). */
@media (max-width: 480px) {
	.pg-more-overlay--mobile {
		display: flex;
	}
}

.pg-lb-thumb img {border-radius: 3px;}


/* Thumbnails: responsive */
/* Mobile only: 3 tiles per row = 2 real thumbs + 1 "+N" tile */
@media (max-width: 480px) {
	.pg-thumb {
		flex-basis: calc(33.333% - (var(--pg-gap) * 2 / 3));
	}

	.pg-main {
		aspect-ratio: 4 / 3;
	}
}


/* Lightbox: overlay */
.pg-lb-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px 0;
	background: rgba(8, 9, 12, 0.94);
}

.pg-lb-overlay.is-open {
	display: flex;
}

.pg-lb-top {
	box-sizing: border-box;
	width: 100%;
	max-width: 1100px;
	display: flex;
	justify-content: flex-end;
	padding: 0 20px;
}

.pg-lb-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50% !important;
	color: #fff;
	font-size: 0;
	cursor: pointer;
	outline: none;
	transition: background 0.15s ease;
}

button.pg-lb-close {
    color: #fff !important;
}

.pg-lb-close,
.pg-lb-close:focus,
.pg-lb-close:active {
	background-color: transparent !important;
	color: #fff;
}

.pg-lb-close:hover {
	background-color: rgba(255, 255, 255, 0.12) !important;
	color: #fff;
}


/* Lightbox: image stage */
.pg-lb-stage {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 1100px;
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding: 0 56px;
}

.pg-lb-img-wrap {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pg-lb-img {
	max-width: 100%;
	max-height: 70vh;
	object-fit: contain;
	border-radius: 8px;
	background: #111;
	opacity: 0;
	transition: opacity 0.15s ease;
}

.pg-lb-img.is-loaded {
	opacity: 1;
}

.pg-lb-spinner {
	position: absolute;
	display: none;
	width: 34px;
	height: 34px;
	border: 3px solid rgba(255, 255, 255, 0.25);
	border-top-color: #fff;
	border-radius: 50%;
	animation: pg-spin 0.7s linear infinite;
}

.pg-lb-img-wrap.is-loading .pg-lb-spinner {
	display: block;
}

@keyframes pg-spin {
	to {
		transform: rotate(360deg);
	}
}

.pg-lb-overlay .pg-lb-arrow.pg-lb-arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 46px;
	height: 46px;
	border-radius: 50% !important;
	-webkit-border-radius: 50% !important;
	overflow: hidden;
	cursor: pointer;
	outline: none;
	transform: translateY(-50%);
	transition: background-color 0.15s ease, color 0.15s ease;
}

.pg-lb-overlay .pg-lb-arrow.pg-lb-arrow,
.pg-lb-overlay .pg-lb-arrow.pg-lb-arrow:focus,
.pg-lb-overlay .pg-lb-arrow.pg-lb-arrow:active {
	background-color: #dcdee221 !important;
	color: #fff !important;
}

.pg-lb-overlay .pg-lb-arrow.pg-lb-arrow:hover {
	background-color: #ffffff !important;
	color: #111111 !important;
}

.pg-lb-overlay .pg-lb-arrow.pg-prev {
	left: 0;
}

.pg-lb-overlay .pg-lb-arrow.pg-next {
	right: 0;
}


/* Lightbox: caption */
.pg-lb-caption {
	box-sizing: border-box;
	width: 100%;
	max-width: 1100px;
	min-height: 1.4em;
	padding: 14px 20px 0;
	color: #f1f1f1;
	font-size: 0.98rem;
	line-height: 1.5;
	text-align: center;
}

.pg-lb-counter {
	margin-top: 4px;
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.82rem;
	text-align: center;
}


/* Lightbox: thumbnails */
.pg-lb-thumbs {
	box-sizing: border-box;
	width: 100%;
	max-width: 1100px;
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 16px 20px 0;
	overflow-x: auto;
	scrollbar-width: thin;
}

.pg-lb-thumbs::-webkit-scrollbar {
	height: 6px;
}

.pg-lb-thumbs::-webkit-scrollbar-thumb {
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.25);
}

.pg-lb-thumb {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	border: 2px solid transparent !important;
	border-radius: 8px !important;
	overflow: hidden;
	background-color: #000 !important;
	opacity: 0.55;
	cursor: pointer;
	outline: none;
	transition: opacity 0.15s ease, border-color 0.15s ease;
}

.pg-lb-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pg-lb-thumb,
.pg-lb-thumb:focus,
.pg-lb-thumb:active {
	box-shadow: none;
}

.pg-lb-thumb:hover {
	opacity: 0.85;
	border-color: transparent;
}

.pg-lb-thumb.is-active,
.pg-lb-thumb.is-active:hover {
	opacity: 1;
	border-color: #fff;
}


/* Lightbox: responsive */
@media (max-width: 600px) {
	.pg-lb-stage {
		padding: 0 44px;
	}

	.pg-lb-img {
		max-height: 55vh;
	}

	.pg-lb-overlay .pg-lb-arrow.pg-lb-arrow {
		width: 38px;
		height: 38px;
	}

	.pg-lb-thumb {
		flex-basis: 50px;
		width: 50px;
		height: 50px;
	}

	.pg-lb-caption {
		font-size: 0.88rem;
	}
}




/* Show Program Duration via shortcode if value is available */

.program-duration {
    display: flex;
    align-items: center;
    gap: 14px;
    width: auto;
}

.program-duration .pd-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    line-height: 1;
    color: #be9047;
}

.program-duration .pd-text {
    display: flex;
    flex-direction: column;
}

.program-duration .pd-label {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: #2b2b2b;
    margin-bottom: 2px;
}

.program-duration .pd-value {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 30px;
    color: #0b1f3a;
}




/* Program Features Section */

/*(Desktop)*/
.program-features-wrap {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 40px;
    width: 100%;
}

.program-features-wrap .pf-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    flex: 0 1 auto;
}

.program-features-wrap .pf-icon {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.program-features-wrap .pf-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.program-features-wrap .pf-text {
    display: flex;
    flex-direction: column;
}

.program-features-wrap .pf-heading {
    font-family: 'Cormorant', serif;
    font-size: 28px;
    line-height: 30px;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.program-features-wrap .pf-value,
.program-features-wrap .pf-value p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 24px;
    font-weight: 300;
    color: #f4f2f2;
    margin: 0;
}

/* Greek / Russian labels run longer -> shrink heading 3px */
.program-features-wrap.pf-lang-el .pf-heading,
.program-features-wrap.pf-lang-ru .pf-heading {
    font-size: 25px;
}

/* Divider — desktop: vertical streak, faded top & bottom */
.program-features-wrap .pf-divider {
    width: 1px;
    align-self: stretch;
    flex: 0 0 1px;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.5) 20%,
        rgba(255,255,255,0.5) 80%,
        rgba(255,255,255,0) 100%
    );
}

/* ---------- Tablet: 2+2 grid ---------- */
@media (min-width: 768px) and (max-width: 1024px) {
    .program-features-wrap {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        row-gap: 32px;
        column-gap: 24px;
        align-items: start;
    }

    /* Hides the "row-wrap" divider (between item 2 and item 3),
       leaving only the two in-row column dividers — same style as desktop */
    .program-features-wrap .pf-divider:nth-of-type(2n) {
        display: none;
    }
}

/* ---------- Mobile: stacked ---------- */
@media (max-width: 767px) {
    .program-features-wrap {
        flex-direction: column;
        gap: 24px;
    }

    .program-features-wrap .pf-divider {
        width: 100%;
        height: 1px;
        align-self: stretch;
        flex: 0 0 1px;
        background: linear-gradient(
            to right,
            rgba(255,255,255,0) 0%,
            rgba(255,255,255,0.5) 15%,
            rgba(255,255,255,0.5) 85%,
            rgba(255,255,255,0) 100%
        );
    }
}





/**** Display Program Short Description if present ****/

.program-text-block .ptb-overline {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #be9047;
    margin: 0 0 8px 0;
}

.program-text-block .ptb-heading {
    font-family: 'Cormorant', serif;
    font-weight: 500;
    color: #0b1f3a;
    font-size: 48px;
    line-height: 54px;
    margin: 0 0 16px 0;
}

.program-text-block .ptb-body,
.program-text-block .ptb-body p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 26px;
    color: #575a5f;
    margin: 0;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .program-text-block .ptb-heading {
        font-size: 45px;
        line-height: 50px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .program-text-block .ptb-heading {
        font-size: 42px;
        line-height: 48px;
    }
}





/* Learning Objectives Repeater Styling */

h3.plo-heading {
    display: none;
}

.program-learning-objectives {
    font-family: 'Inter', sans-serif;
    max-width: 100%;
    margin: 0 auto;
}

.program-learning-objectives .plo-heading {
    font-family: 'Inter', sans-serif;
    color: #0b1f3a;
    font-weight: 600;
    margin-bottom: 16px;
}

.program-learning-objectives .plo-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px 20px;
}

@media (min-width: 1025px) {
    .program-learning-objectives .plo-list {
        grid-template-columns: 1fr 1fr;
    }
}

.program-learning-objectives .plo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 14px 18px;
    transition: background-color 0.2s ease;
}

.program-learning-objectives .plo-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.program-learning-objectives .plo-icon svg {
    width: 100%;
    height: 100%;
    fill: #be9047;
}

.program-learning-objectives .plo-text {
    font-family: 'Inter', sans-serif;
    color: #575a5f !important;
    font-size: 15px;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .program-learning-objectives .plo-item {
        padding: 12px 14px;
        gap: 10px;
    }

    .program-learning-objectives .plo-text {
        font-size: 14px;
    }
}





/* Display Practical Skills And Training Review via shortcode if value is available */

.ptb-body ul {
    list-style: none;
    margin: 16px 0;
    padding: 0;
}

.ptb-body li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 26px;
    color: #575a5f;
}

.ptb-body li:last-child {
    margin-bottom: 0;
}

.ptb-body .pf-bullet-icon {
    flex-shrink: 0;
    font-size: 16px;
    line-height: 26px; /* keeps icon aligned with the first line of text */
    color: #be9047;
}

.ptb-body .pf-bullet-text {
    flex: 1;
}





/* FAQ Repeater */

.program-faq {
    font-family: 'Inter', sans-serif;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.program-faq .faq-item {
    background-color: transparent;
}

.program-faq .faq-question-wrap {
    margin: 0;
}

.program-faq .faq-question {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border: none;
    outline: none;
    box-shadow: none;
    cursor: pointer;
    text-align: left;
    padding: 18px 56px 18px 20px !important; /* right side reserved for icon */
    font-family: 'Inter', sans-serif;
    color: inherit;
    background-color: #f3f3f3;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.program-faq .faq-question:hover,
.program-faq .faq-question:focus,
.program-faq .faq-question:active {
    color: inherit;
    background-color: #f3f3f3;
}

/* Hover effect on closed accordions only */
.program-faq .faq-item:not(.is-open) .faq-question:hover {
    background-color: #efefef;
}

.program-faq .faq-question-text {
    display: block !important;
    width: 100% !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    font-size: 19px;
    font-weight: 600;
    color: #0b1f3a;
    transition: color 0.3s ease;
}

@media (max-width:667px)
{.program-faq .faq-question-text {font-size: 16px;}}

.program-faq .faq-icon {
    position: absolute !important;
    top: 50% !important;
    right: 20px !important;
    transform: translateY(-50%) !important;
    width: 16px;
    height: 16px;
}

.program-faq .faq-icon-line {
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: #0b1f3a;
    transform-origin: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.program-faq .faq-icon-h {
    width: 14px;
    height: 2px;
    transform: translate(-50%, -50%);
}

.program-faq .faq-icon-v {
    width: 14px;
    height: 2px;
    transform: translate(-50%, -50%) rotate(90deg);
}

.program-faq .faq-item.is-open .faq-icon-v {
    transform: translate(-50%, -50%) rotate(0deg);
}

/* Active/open state — question bar only */
.program-faq .faq-item.is-open .faq-question {
    background-color: #0b1f3a;
}

.program-faq .faq-item.is-open .faq-question-text {
    color: #ffffff;
}

.program-faq .faq-item.is-open .faq-icon-line {
    background-color: #ffffff;
}

/* Answer panel — animated collapse */
.program-faq .faq-answer-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.program-faq .faq-item.is-open .faq-answer-wrap {
    grid-template-rows: 1fr;
}

.program-faq .faq-answer {
    overflow: hidden;
    min-height: 0;
}

/* Separate white box for the answer content */
.program-faq .faq-answer-box {
    margin-top: 18px;
    background-color: #ffffff;
    border: 1px solid #7e82912e;
    border-radius: 10px;
    padding: 20px;
	color: #575a5f !important;
}

.program-faq .faq-answer-box > * {
    margin: 0 0 12px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
    color: #0b1f3a;
}

.program-faq .faq-answer-box > *:last-child {
    margin-bottom: 0;
}





/* Program Speakers & Faculty Section */

.program-speakers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.program-speaker-item {
    width: 100%;
}

.program-speaker-link {
    text-decoration: none;
    display: block;
    color: inherit;
    cursor: pointer;
}

.program-speaker-image {
    width: 100%;
    margin-bottom: 16px;
    overflow: hidden;
}

.program-speaker-img,
.program-speaker-img-placeholder {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: top center;
    border-radius: 0;
    display: block;
}

.program-speaker-image {
    border-radius: 10px;
}

.program-speaker-img-placeholder {
    background-color: #e6e9ee;
}

.program-speaker-name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #0b1f3a;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.program-speaker-title {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #0b1f3a;
    margin: 0 0 2px 0;
    line-height: 1.4;
}

.program-speaker-org {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 12px;
    color: #575a5f;
    margin: 0;
    line-height: 1.4;
}

/* Tablet: keep 3 columns side by side */
@media (max-width: 1024px) and (min-width: 768px) {
    .program-speakers-grid {
        gap: 20px;
    }
}

/* Mobile: stack into single column */
@media (max-width: 767px) {
    .program-speakers-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}




/* Program Related Events */

.program-events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.program-event-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.program-event-item {
    width: 100%;
}

.program-event-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    width: 100%;
}

/* Date block */
.program-event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 70px;
    padding: 14px 8px;
    background-color: #0b1f3a;
    border-radius: 14px;
}

.program-event-day {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #ffffff;
    line-height: 1.1;
}

.program-event-month {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.program-event-year {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #ffffff;
    line-height: 1.3;
}

/* Details block */
.program-event-details {
    flex: 1;
    min-width: 0;
}

.program-event-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #0b1f3a;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.program-event-venue {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 12px;
    color: #0b1f3a;
    margin: 0 0 4px 0;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 6px;
}

.program-event-time {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 12px;
    color: #0b1f3a;
    margin: 0;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 6px;
}

.program-event-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    flex-shrink: 0;
}

.program-event-icon {
    font-size: 14px;
    line-height: 1;
    color: #0b1f3a;
}

/* Image block */
.program-event-image {
    position: relative;
    flex-shrink: 0;
    width: 140px;
    height: 90px;
    overflow: hidden;
    border-radius: 8px;
}

.program-event-image img,
.program-event-img,
.program-event-img-placeholder {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 8px !important;
    display: block !important;
    margin: 0 !important;
}

.program-event-img-placeholder {
    background-color: #e6e9ee;
}

/* =========================================================
   DESKTOP/TABLET SCROLL AREA
   ========================================================= */
@media (min-width: 768px) {
    .program-events-list {
        --pg-events-max-h: 360px;

        max-height: var(--pg-events-max-h);
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 8px;
        padding-bottom: 4px;
        scrollbar-width: thin;
        scrollbar-color: rgba(11, 31, 58, 0.25) transparent;

        scroll-snap-type: y proximity;
    }

    .program-event-item {
        scroll-snap-align: start;
    }

    .program-events-list::-webkit-scrollbar {
        width: 6px;
    }

    .program-events-list::-webkit-scrollbar-track {
        background: transparent;
    }

    .program-events-list::-webkit-scrollbar-thumb {
        background-color: rgba(11, 31, 58, 0.25);
        border-radius: 3px;
    }
}

/* Tablet: keep same row layout */
@media (max-width: 1024px) and (min-width: 768px) {
    .program-event-image {
        width: 120px;
        height: 80px;
    }
}

/* =========================================================
   MOBILE: reverse order, stack vertically, no internal scroll
   ========================================================= */
@media (max-width: 767px) {
    .program-events-list {
        max-height: none;
        overflow: visible;
        padding-right: 0;
        scroll-snap-type: none;
    }

    .program-event-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .program-event-image {
        width: 100% !important;
        height: 180px !important;
        order: 1;
    }

    .program-event-details {
        order: 2;
    }

    .program-event-date {
        order: 3;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        width: auto;
        padding: 10px 16px;
    }

    .program-event-day {
        font-size: 22px;
    }

    .program-events-list,
    .program-event-item,
    .program-event-link,
    .program-event-inner {
        overflow: visible;
        height: auto;
        max-height: none;
    }

    .elementor-widget-shortcode:has(.program-events-list),
    .elementor-widget-container:has(.program-events-list) {
        overflow: visible !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }
}




/* Contact Form */

.wpcf7{
    font-family:'Inter',sans-serif;
}

.wpcf7 form{
    margin:0;
}

/* Rows */

.oa-form-row{
    display:flex;
    gap:24px;
    margin-bottom:10px;
}

.oa-form-col{
    flex:1;
}

/* Labels */

.wpcf7 label{
    display:block;
    font-size:14px;
    font-weight:600;
    color:#0b1f3a;
    line-height:1.5;
}

/* Fields */

.wpcf7 input[type=text],
.wpcf7 input[type=email],
.wpcf7 input[type=tel],
.wpcf7 textarea{
    width:100%;
    margin-top:8px;
    padding:15px 16px;
    border:1px solid #dadada;
    border-radius:5px;
    background:#fff;
    font-family:'Inter',sans-serif;
    font-size:15px;
    color:#0b1f3a;
    transition:.25s;
    box-sizing:border-box;
}

.wpcf7 textarea{
    min-height:120px;
    height: 120px;
    resize:vertical;
}

.wpcf7 textarea::placeholder,
.wpcf7 input::placeholder{
    color:#9c9c9c;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus{
    outline:none;
    border-color:#0b1f3a;
    box-shadow:0 0 0 3px rgba(11,31,58,.08);
}

/* Submit */

.wpcf7 input[type=submit]{
    margin-top:10px;
    background:#0b1f3a;
    color:#fff;
    border:none;
    border-radius:5px;
    padding:16px 34px;
    font-size:14px;
    font-weight:600;
    letter-spacing:.05em;
    text-transform:uppercase;
    font-family:'Inter',sans-serif;
    cursor:pointer;
    transition:.3s;
}

.wpcf7 input[type=submit]:hover{
    background:#BE9047;
}

/* Validation */

.wpcf7-not-valid{
    border-color:#d63638 !important;
}

.wpcf7-not-valid-tip{
    margin-top:6px;
    font-size:13px;
}

.wpcf7-response-output{
    margin:20px 0 0 !important;
    padding:14px 18px !important;
    border-radius:5px;
}

/* Mobile */

@media (max-width:767px){

    .oa-form-row{
        display:block;
        margin-bottom:0;
    }

    .oa-form-col{
        margin-bottom:10px;
    }

    .wpcf7 input[type=submit]{
        width:100%;
    }

}





/* Program Content Repeater Styling */

.pc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 1025px) {
    .pc-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.pc-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.pc-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.pc-number {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #fff8ef;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: #be9047;
}

.pc-title {
    font-family: 'Cormorant', serif;
    font-weight: 600;
    font-size: 26px;
    line-height: 1.25;
    color: #0b1f3a;
    margin: 0;
    letter-spacing: 0.2px;
}

.pc-desc,
.pc-desc p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #575a5f;
    margin: 0;
    width: 100%;
}

/* Bullet lists inside the description — gold arrow icon */
.pc-desc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pc-desc li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #575a5f;
}

.pc-desc li:last-child {
    margin-bottom: 0;
}

.pc-desc .pf-bullet-icon {
    flex-shrink: 0;
    font-size: 16px;
    line-height: 24px;
    color: #be9047;
}

.pc-desc .pf-bullet-text {
    flex: 1;
}





/* Entry Requirements Repeater */
.er-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.er-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 5px;
    padding: 10px;
}

.er-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.er-icon i {
    font-size: 28px;
    color: #be9047;
}

.er-text {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #575a5f;
    margin: 0;
}





/* Program Highlights Repeater Styling */

.ph-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ph-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 5px;
    padding: 10px;
}

.ph-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
}

.ph-icon svg {
    width: 100%;
    height: 100%;
    fill: #be9047;
}

.ph-text {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #575a5f;
    margin: 0;
}