/**
 * Program single page styles.
 *
 * @package Pontiac_Education
 */

.pe-program-single-hero--fallback {
	position: relative;
	min-height: 320px;
	background-color: #1e3a5f;
	background-size: cover;
	background-position: center;
	color: #fff;
	overflow: hidden;
}

.pe-program-single-hero--fallback .pe-program-single-hero__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.82) 100%);
}

.pe-program-single-hero--fallback .pe-program-single-hero__inner {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 48px 24px 40px;
}

.pe-program-single-hero--fallback .pe-program-single-hero__title {
	margin: 0;
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.15;
	font-weight: 700;
	color: #fff;
}

.pe-program-single-hero__sr-image {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.pe-program-single {
	padding: 40px 0 64px;
	background: #fff;
	color: #1f2937;
	--pe-cta-button-bg: #2563eb;
	--pe-cta-button-text: #ffffff;
	--pe-cta-button-hover-bg: #1d4ed8;
	--pe-cta-banner-bg: #1e3a5f;
	--pe-cta-banner-bg-end: #2563eb;
	--pe-cta-banner-title: #ffffff;
	--pe-cta-banner-text: #e5e7eb;
}

.pe-program-single__container {
	width: min(1200px, calc(100% - 48px));
	margin: 0 auto;
}

.pe-program-single__layout {
	display: grid;
	grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}

.pe-program-single-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
	padding: 24px;
}

.pe-program-single-card__title {
	margin: 0 0 20px;
	font-size: 1.25rem;
	line-height: 1.3;
	color: #111827;
}

.pe-program-single-card + .pe-program-single-card,
.pe-program-single-card + .pe-program-single-card--elementor,
.pe-program-single-card--elementor + .pe-program-single-card--elementor {
	margin-top: 24px;
}

.pe-program-single-card__body {
	font-size: 0.9375rem;
	line-height: 1.65;
	color: #374151;
}

.pe-program-single-card__body p:last-child {
	margin-bottom: 0;
}

.pe-program-single-card--diploma .pe-program-single-accordion {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #eef2f7;
}

.pe-program-single-card--centre .pe-program-single-centre,
.pe-program-single-teacher {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 16px;
}

.pe-program-single-teachers {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.pe-program-single-teacher + .pe-program-single-teacher {
	padding-top: 16px;
	border-top: 1px solid #eef2f7;
}

.pe-program-single-centre__media,
.pe-program-single-teacher__media {
	flex-shrink: 0;
}

.pe-program-single-centre__avatar,
.pe-program-single-teacher__avatar {
	display: block;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #e5e7eb;
	background: #f3f4f6;
}

.pe-program-single-centre__avatar--placeholder,
.pe-program-single-teacher__avatar--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
}

.pe-program-single-centre__avatar-icon {
	display: block;
	width: 28px;
	height: 28px;
	background-color: #9ca3af;
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 7V3H2v18h20V7H12zm-2 14H4v-2h6v2zm0-4H4v-2h6v2zm0-4H4v-2h6v2zm0-4H4V7h6v2zm8 12h-6v-2h6v2zm0-4h-6v-2h6v2zm0-4h-6V7h6v2z'/%3E%3C/svg%3E");
	mask-repeat: no-repeat;
	mask-position: center;
	mask-size: contain;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 7V3H2v18h20V7H12zm-2 14H4v-2h6v2zm0-4H4v-2h6v2zm0-4H4v-2h6v2zm0-4H4V7h6v2zm8 12h-6v-2h6v2zm0-4h-6v-2h6v2zm0-4h-6V7h6v2z'/%3E%3C/svg%3E");
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
	-webkit-mask-size: contain;
}

.pe-program-single-teacher__avatar-icon {
	display: block;
	width: 28px;
	height: 28px;
	background-color: #9ca3af;
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
	mask-repeat: no-repeat;
	mask-position: center;
	mask-size: contain;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
	-webkit-mask-size: contain;
}

.pe-program-single-centre__details,
.pe-program-single-teacher__details {
	flex: 1;
	min-width: 0;
}

.pe-program-single-centre__name,
.pe-program-single-teacher__name {
	margin: 0 0 6px;
	font-size: 1rem;
	line-height: 1.35;
	color: #111827;
}

.pe-program-single-teacher__title,
.pe-program-single-teacher__group {
	margin: 0 0 4px;
	font-size: 0.875rem;
	line-height: 1.4;
	color: #6b7280;
}

.pe-program-single-centre__address {
	margin: 0 0 8px;
	font-size: 0.875rem;
	line-height: 1.55;
	color: #374151;
	font-style: normal;
}

.pe-program-single-centre__phone,
.pe-program-single-centre__email,
.pe-program-single-teacher__phone,
.pe-program-single-teacher__email {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.5;
	color: #374151;
}

.pe-program-single-centre__email,
.pe-program-single-teacher__phone,
.pe-program-single-teacher__email {
	margin-top: 4px;
}

.pe-program-single-centre__phone a,
.pe-program-single-centre__email a,
.pe-program-single-teacher__phone a,
.pe-program-single-teacher__email a {
	color: #2563eb;
	text-decoration: none;
}

.pe-program-single-centre__phone a:hover,
.pe-program-single-centre__phone a:focus,
.pe-program-single-centre__email a:hover,
.pe-program-single-centre__email a:focus,
.pe-program-single-teacher__phone a:hover,
.pe-program-single-teacher__phone a:focus,
.pe-program-single-teacher__email a:hover,
.pe-program-single-teacher__email a:focus {
	text-decoration: underline;
}

.pe-program-single-card--diploma .pe-program-single-accordion--standalone {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.pe-program-single-accordion__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #f8fafc;
	font-size: 0.9375rem;
	font-weight: 600;
	color: #111827;
	cursor: pointer;
	list-style: none;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.pe-program-single-accordion__trigger::-webkit-details-marker {
	display: none;
}

.pe-program-single-accordion__trigger::after {
	content: "";
	flex-shrink: 0;
	width: 10px;
	height: 10px;
	border-right: 2px solid #6b7280;
	border-bottom: 2px solid #6b7280;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.pe-program-single-accordion[open] .pe-program-single-accordion__trigger {
	background: #eff6ff;
	border-color: #bfdbfe;
}

.pe-program-single-accordion[open] .pe-program-single-accordion__trigger::after {
	transform: rotate(-135deg);
}

.pe-program-single-accordion__trigger:hover,
.pe-program-single-accordion__trigger:focus {
	background: #f1f5f9;
	outline: none;
}

.pe-program-single-accordion__trigger:focus-visible {
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.pe-program-single-accordion__panel {
	padding: 14px 2px 0;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: #374151;
}

.pe-program-single-accordion__panel p:last-child {
	margin-bottom: 0;
}

.pe-program-single-card--elementor {
	padding: 0;
	overflow: hidden;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.pe-program-single-card--elementor .elementor-section-wrap,
.pe-program-single-card--elementor .elementor {
	width: 100%;
}

.pe-program-single-facts-row {
	display: flex;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid #eef2f7;
}

.pe-program-single-fact-block {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.pe-program-single-fact-block .pe-program-single-pills {
	gap: 6px;
}

.pe-program-single-fact-block .pe-program-single-pill {
	padding: 4px 10px;
	font-size: 0.8125rem;
	line-height: 1.3;
}

.pe-program-single-fact-block .pe-program-single-fact__value {
	font-size: 0.9375rem;
}

.pe-program-single-fact-block .pe-program-single-fact__label {
	font-size: 0.75rem;
}

.pe-program-single-fact {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 0;
	border-bottom: 1px solid #eef2f7;
}

.pe-program-single-fact:last-of-type {
	border-bottom: 0;
}

.pe-program-single-fact__label {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #6b7280;
}

.pe-program-single-fact__value {
	font-size: 1rem;
	font-weight: 600;
	color: #111827;
}

.pe-program-single-fact__note {
	font-size: 0.875rem;
	color: #6b7280;
}

.pe-program-single-badge {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 600;
}

.pe-program-single-badge--open {
	background: #dcfce7;
	color: #166534;
}

.pe-program-single-badge--upcoming {
	background: #dbeafe;
	color: #1d4ed8;
}

.pe-program-single-badge--closed {
	background: #fee2e2;
	color: #991b1b;
}

.pe-program-single-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pe-program-single-pill {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 999px;
	background: #eff6ff;
	color: #1d4ed8;
	font-size: 0.875rem;
	font-weight: 600;
}

.pe-program-single-fact--intake {
	gap: 10px;
}

.pe-program-single-intake__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.pe-program-single-intake__header .pe-program-single-badge {
	flex-shrink: 0;
}

.pe-program-single-intake__deadline {
	margin: 0;
	font-size: 0.9375rem;
	color: #374151;
}

.pe-program-single-intake-windows {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.pe-program-single-intake-window {
	font-size: 1rem;
	font-weight: 600;
	color: #111827;
}

.pe-program-single-cta {
	margin-top: 20px;
}

.pe-program-single-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 22px;
	border-radius: 10px;
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.pe-program-single-btn--primary,
.pe-program-single a.pe-program-single-btn--primary,
.pe-program-single a.pe-program-single-btn--primary:link,
.pe-program-single a.pe-program-single-btn--primary:visited {
	background-color: var(--pe-cta-button-bg, #2563eb);
	color: var(--pe-cta-button-text, #fff);
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.pe-program-single-btn--primary:hover,
.pe-program-single-btn--primary:focus,
.pe-program-single a.pe-program-single-btn--primary:hover,
.pe-program-single a.pe-program-single-btn--primary:focus {
	background-color: var(--pe-cta-button-hover-bg, #1d4ed8);
	color: var(--pe-cta-button-text, #fff);
	transform: translateY(-1px);
}

.pe-program-single-section {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
	padding: 28px;
}

.pe-program-single-section + .pe-program-single-section {
	margin-top: 24px;
}

.pe-program-single-section__title {
	margin: 0 0 16px;
	font-size: 1.5rem;
	line-height: 1.25;
	color: #111827;
}

.pe-program-single-section__body {
	font-size: 1rem;
	line-height: 1.7;
	color: #374151;
}

.pe-program-single-section__body p:last-child {
	margin-bottom: 0;
}

.pe-program-single-competencies {
	overflow-x: auto;
}

.pe-program-single-competencies__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.pe-program-single-competencies__table th:first-child,
.pe-program-single-competencies__table td:first-child {
	width: 11%;
	min-width: 90px;
	font-size: 0.75rem;
	line-height: 1.45;
	word-break: break-word;
}

.pe-program-single-competencies__table th:nth-child(3),
.pe-program-single-competencies__table th:nth-child(4),
.pe-program-single-competencies__table tbody td:nth-child(3),
.pe-program-single-competencies__table tbody td:nth-child(4),
.pe-program-single-competencies__table tfoot td:nth-child(2),
.pe-program-single-competencies__table tfoot td:nth-child(3) {
	text-align: center;
}

.pe-program-single-competencies__table td:first-child strong {
	font-weight: 600;
	font-size: inherit;
}

.pe-program-single-competencies__table th,
.pe-program-single-competencies__table td {
	padding: 12px 14px;
	text-align: left;
	border-bottom: 1px solid #eef2f7;
	vertical-align: top;
}

.pe-program-single-competencies__table th {
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6b7280;
	background: #f8fafc;
}

.pe-program-single-competencies__table tbody tr:nth-child(even) {
	background: #fcfdff;
}

.pe-program-single-competencies__table tfoot td {
	padding: 14px;
	border-top: 2px solid #dbeafe;
	background: #f8fafc;
	font-weight: 600;
	color: #111827;
}

.pe-program-single-competencies__total-label {
	text-align: right;
}

.pe-program-single-section--cta {
	background: linear-gradient(
		135deg,
		var(--pe-cta-banner-bg, #1e3a5f) 0%,
		var(--pe-cta-banner-bg-end, #2563eb) 100%
	);
	border: 0;
	color: var(--pe-cta-banner-title, #fff);
}

.pe-program-single-cta-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.pe-program-single-cta-banner__title {
	margin: 0 0 8px;
	font-size: 1.5rem;
	color: var(--pe-cta-banner-title, #fff);
}

.pe-program-single-cta-banner__text {
	margin: 0;
	color: var(--pe-cta-banner-text, #e5e7eb);
}

@media (max-width: 960px) {
	.pe-program-single__layout {
		grid-template-columns: 1fr;
	}

	.pe-program-single__sidebar {
		order: -1;
	}
}

@media (max-width: 640px) {
	.pe-program-single {
		padding: 24px 0 48px;
	}

	.pe-program-single__container {
		width: min(1200px, calc(100% - 32px));
	}

	.pe-program-single-competencies__table thead {
		display: none;
	}

	.pe-program-single-competencies__table,
	.pe-program-single-competencies__table tbody,
	.pe-program-single-competencies__table tfoot,
	.pe-program-single-competencies__table tr,
	.pe-program-single-competencies__table td {
		display: block;
		width: 100%;
	}

	.pe-program-single-competencies__total-row {
		margin-top: 8px;
		padding: 14px;
		border: 2px solid #dbeafe;
		border-radius: 12px;
		background: #f8fafc;
	}

	.pe-program-single-competencies__total-label {
		text-align: left;
		padding-bottom: 8px;
		margin-bottom: 4px;
		border-bottom: 1px solid #dbeafe;
	}

	.pe-program-single-competencies__total-label::before {
		content: none;
	}

	.pe-program-single-competencies__table tr {
		margin-bottom: 14px;
		padding: 14px;
		border: 1px solid #eef2f7;
		border-radius: 12px;
		background: #fff;
	}

	.pe-program-single-competencies__table td {
		border: 0;
		padding: 6px 0;
	}

	.pe-program-single-competencies__table td::before {
		content: attr(data-label) ": ";
		font-weight: 700;
		color: #6b7280;
	}

	.pe-program-single-cta-banner {
		flex-direction: column;
		align-items: flex-start;
	}
}
