/* ==========================================================================
   Phase 12 pages: Instructors (12.1), Alumni (12.2), Become an Instructor (12.3), About (12.5.1), FAQ (12.5.3), Contact (12.5.4).
   Loaded only on those pages (inc/assets.php).
   ========================================================================== */

/* ---- Instructors grid (12.1.2): 1 → 2 (640px) → 3 (1024px) profile cards. ---- */
.pgs-instructor-grid {
	display: grid;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) {
	.pgs-instructor-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.pgs-instructor-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 28px;
	}
}

.pgs-instructor-grid > li {
	display: flex;
}

.pgs-instructor-profile {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 16px;
	padding: 24px;
	border: 1px solid var(--pgs-border);
	border-radius: var(--pgs-radius);
	background: var(--pgs-surface);
	box-shadow: var(--pgs-shadow);
	scroll-margin-top: 16px; /* + the page's 96px scroll padding: clear of the sticky header when opened through its anchor */
	transition:
		border-color var(--pgs-duration) var(--pgs-ease),
		box-shadow var(--pgs-duration) var(--pgs-ease);
}

/* Opened through /instructors/#instructor-{slug} (course page, home slider): highlighted. */
.pgs-instructor-profile:target {
	border-color: var(--pgs-green);
	box-shadow: var(--pgs-glow), var(--pgs-shadow-lg);
	animation: pgs-profile-pulse 1.6s var(--pgs-ease) 2;
}

@keyframes pgs-profile-pulse {
	50% {
		box-shadow: 0 0 0 12px rgba(96, 184, 2, .12), var(--pgs-shadow-lg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.pgs-instructor-profile:target {
		animation: none;
	}
}

.pgs-instructor-profile__head {
	display: flex;
	align-items: center;
	gap: 16px;
}

.pgs-instructor-profile__photo {
	position: relative;
	flex: 0 0 auto;
	width: 96px;
	height: 96px;
	overflow: hidden;
	border-radius: 50%;
	background: var(--pgs-surface-2);
}

.pgs-instructor-profile__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pgs-instructor-profile__initials {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: var(--pgs-grad-green);
	color: var(--pgs-navy-deep);
	font-family: var(--pgs-font-head);
	font-size: 2rem;
	font-weight: 800;
}

.pgs-instructor-profile__role {
	display: block;
	margin-bottom: 4px;
	color: var(--pgs-accent);
	font-family: var(--pgs-font-label);
	font-size: var(--pgs-fs-eyebrow);
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.pgs-instructor-profile__name {
	margin: 0;
	font-size: var(--pgs-fs-h3);
}

.pgs-instructor-profile__facts {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	color: var(--pgs-text-body);
	font-size: var(--pgs-fs-small);
	list-style: none;
}

.pgs-instructor-profile__facts li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.pgs-instructor-profile__facts .pgs-icon {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	color: var(--pgs-accent);
}

.pgs-instructor-profile__bio {
	margin: 0;
	color: var(--pgs-text-body);
}

.pgs-instructor-profile__subjects {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pgs-instructor-profile__subjects li {
	padding: 4px 12px;
	border-radius: var(--pgs-radius-pill);
	background: var(--pgs-tint-green);
	color: var(--pgs-text);
	font-size: var(--pgs-fs-small);
	font-weight: 600;
}

/* Links sit at the bottom, so cards of different lengths line up. */
.pgs-instructor-profile__links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: auto 0 0;
	padding: 4px 0 0;
	list-style: none;
}

.pgs-instructor-profile__links a {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--pgs-border-strong);
	border-radius: 50%;
	color: var(--pgs-text);
	transition:
		background-color var(--pgs-duration) var(--pgs-ease),
		border-color var(--pgs-duration) var(--pgs-ease);
}

.pgs-instructor-profile__links a:hover {
	border-color: var(--pgs-green);
	background: var(--pgs-green);
	color: var(--pgs-navy-deep);
}

/* ---- Alumni filter bar (12.2.2, redesigned 2026-10-28): result line left, Class / Year dropdowns
   right from 768px; stacked on phones. ---- */
.pgs-alumni-list {
	padding-top: clamp(32px, 5vw, 56px);
}

/* Both sections are white, so the green band follows the cards without a double gap. */
.pgs-alumni-list + .pgs-section--cta-band {
	padding-top: 0;
}

.pgs-alumni-bar {
	display: grid;
	gap: 12px;
	margin-bottom: 32px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--pgs-border);
}

@media (min-width: 768px) {
	.pgs-alumni-bar {
		grid-template-columns: 1fr auto;
		align-items: center;
		gap: 16px 24px;
	}
}

.pgs-alumni-bar__result {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 16px;
	margin: 0;
	color: var(--pgs-text-body);
}

.pgs-alumni-bar__result strong {
	color: var(--pgs-text);
}

.pgs-alumni-bar__clear {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	color: var(--pgs-link);
	font-size: var(--pgs-fs-small);
	font-weight: 600;
}

.pgs-alumni-bar__clear .pgs-icon {
	width: 16px;
	height: 16px;
}

.pgs-alumni-bar__form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.pgs-alumni-bar__field:only-of-type {
	grid-column: 1 / -1;
}

@media (min-width: 768px) {
	.pgs-alumni-bar__form {
		display: flex;
		align-items: center;
	}
}

.pgs-alumni-bar__field {
	min-width: 0;
	margin: 0;
}

.pgs-alumni-bar__field .pgs-select {
	min-height: 46px;
	padding-top: 10px;
	padding-bottom: 10px;
}

@media (min-width: 768px) {
	.pgs-alumni-bar__field .pgs-select {
		width: auto;
		min-width: 170px;
		max-width: 300px;
	}
}

.pgs-alumni-bar__form [data-filters-apply] {
	grid-column: 1 / -1;
}

/* With JavaScript a change applies at once (main.js). */
.pgs-js .pgs-alumni-bar__form [data-filters-apply] {
	display: none;
}

/* ==========================================================================
   Become an Instructor (12.3)
   ========================================================================== */

/* ---- Why teach (12.3.1): heading left, timeline right from 1024px. ---- */
.pgs-teach-why__grid {
	display: grid;
	gap: 32px;
}

@media (min-width: 1024px) {
	.pgs-teach-why__grid {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: 64px;
		align-items: start;
	}

	.pgs-teach-why__grid > .pgs-heading {
		position: sticky;
		top: 120px; /* below the sticky header while the timeline scrolls */
		margin-bottom: 0;
	}
}

/* ---- Who can apply (12.3.1): checklist in a white card + a friendly note. ---- */
.pgs-teach-who__card {
	display: grid;
	gap: 24px;
	padding: clamp(24px, 4vw, 40px);
}

.pgs-teach-who__note {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 0;
	padding: 14px 16px;
	border-radius: var(--pgs-radius-sm);
	background: var(--pgs-tint-blue);
	color: var(--pgs-text);
	font-size: var(--pgs-fs-small);
}

.pgs-teach-who__note .pgs-icon {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	color: var(--pgs-info-text);
}

/* ---- Application form (12.3.2): form card + help box (sticky on desktop). ---- */
.pgs-teach-apply__grid {
	display: grid;
	gap: 24px;
	align-items: start;
}

@media (min-width: 1024px) {
	.pgs-teach-apply__grid {
		grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
		gap: 32px;
	}

	.pgs-teach-apply__aside {
		position: sticky;
		top: 120px;
	}
}

.pgs-teach-apply__form {
	padding: clamp(20px, 4vw, 40px);
}

.pgs-teach-apply__aside {
	display: grid;
	gap: 12px;
}

.pgs-teach-apply__aside-title {
	margin: 0;
	font-size: var(--pgs-fs-h3);
}

.pgs-teach-apply__aside-text {
	margin: 0 0 4px;
	color: var(--pgs-text-body);
}

/* The help box stacks its cards in one column. */
.pgs-teach-apply__aside .pgs-contact-cards {
	grid-template-columns: 1fr;
	gap: 16px;
}

/* ---- Page FAQ (12.3.4): centred heading + accordion in a reading width. ---- */
.pgs-teach-faq__inner {
	max-width: 860px;
}

.pgs-teach-faq__inner > .pgs-heading {
	margin-inline: auto;
}

/* ==========================================================================
   About (12.5.1)
   ========================================================================== */

/* ---- Who we are (2026-10-29): picture (or the navy logo panel) beside the story and one
   Mission & Vision box from 1024px; the picture above the text on phones / tablets. ---- */
.pgs-about-story__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 40px;
}

@media (min-width: 1024px) {
	.pgs-about-story__grid {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: 64px;
		align-items: center;
	}
}

/* The picture sits on a green offset frame (decorative). */
.pgs-about-story__media {
	position: relative;
	max-width: 520px;
	margin: 0 16px 16px 0;
}

.pgs-about-story__media::before {
	content: "";
	position: absolute;
	inset: 16px -16px -16px 16px;
	z-index: 0;
	border-radius: calc(var(--pgs-radius) * 1.5);
	background: var(--pgs-grad-green);
	opacity: .9;
}

.pgs-about-story__img,
.pgs-about-story__media--panel {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	border-radius: calc(var(--pgs-radius) * 1.5);
	box-shadow: var(--pgs-shadow-lg);
	object-fit: cover;
}

@media (max-width: 1023px) {
	.pgs-about-story__img,
	.pgs-about-story__media--panel {
		aspect-ratio: 4 / 3;
	}
}

/* No picture: the navy panel with the logo and the motto. */
.pgs-about-story__media--panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 20px;
	padding: 40px 24px;
	background:
		radial-gradient(circle at 50% 35%, rgba(95, 140, 255, .35), transparent 60%),
		radial-gradient(circle at 75% 90%, rgba(96, 184, 2, .30), transparent 55%),
		var(--pgs-navy-deep);
}

.pgs-about-story__media--panel::before {
	display: none;
}

.pgs-about-story__media:has(.pgs-about-story__logo) {
	margin: 0;
}

.pgs-about-story__logo {
	width: clamp(96px, 30%, 150px);
	height: auto;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 10px rgba(255, 255, 255, .08), 0 0 60px rgba(96, 184, 2, .35);
}

.pgs-about-story__tagline {
	color: #fff;
	font-family: var(--pgs-font-head);
	font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
	font-weight: 800;
	text-align: center;
}

.pgs-about-story__text {
	max-width: none;
	margin-top: 8px;
}

/* ---- Mission & Vision: one box, two halves with icons and a thin divider (stacked on phones). ---- */
.pgs-about-mv {
	display: grid;
	margin-top: 28px;
	overflow: hidden;
	border: 1px solid var(--pgs-border);
	border-radius: var(--pgs-radius);
	background: var(--pgs-bg-alt);
	box-shadow: 0 2px 10px rgba(0, 19, 56, .04);
}

@media (min-width: 640px) {
	.pgs-about-mv:not(.pgs-about-mv--single) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.pgs-about-mv__item {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 4px 14px;
	align-content: start;
	padding: 24px;
}

.pgs-about-mv__item + .pgs-about-mv__item {
	border-top: 1px solid var(--pgs-border);
}

@media (min-width: 640px) {
	.pgs-about-mv:not(.pgs-about-mv--single) .pgs-about-mv__item + .pgs-about-mv__item {
		border-top: 0;
		border-left: 1px solid var(--pgs-border);
	}
}

.pgs-about-mv__icon {
	display: inline-grid;
	grid-row: span 2;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: var(--pgs-radius-sm);
	background: var(--pgs-tint-green);
	color: var(--pgs-accent);
}

.pgs-about-mv__item--vision .pgs-about-mv__icon {
	background: var(--pgs-tint-blue, rgba(0, 33, 102, .08));
	color: var(--pgs-navy);
}

.pgs-about-mv__icon .pgs-icon {
	width: 24px;
	height: 24px;
}

.pgs-about-mv__title {
	margin: 0;
	align-self: center;
	font-size: 1.1875rem;
}

.pgs-about-mv__text {
	margin: 0;
	color: var(--pgs-text-body);
	font-size: var(--pgs-fs-small);
	line-height: 1.7;
}

/* Team (white) is followed by the green CTA band (white): one gap, not two. */
.pgs-about-team + .pgs-section--cta-band {
	padding-top: 0;
}

/* ---- Values: 4 cards, 1 → 2 (640px) → 4 (1024px). ---- */
.pgs-about-values__grid {
	display: grid;
	gap: var(--pgs-gutter);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) {
	.pgs-about-values__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.pgs-about-values__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.pgs-about-value {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 28px 24px;
	transition: border-color var(--pgs-duration) var(--pgs-ease), transform var(--pgs-duration) var(--pgs-ease);
}

.pgs-about-value:hover {
	border-color: var(--pgs-accent-border);
	transform: translateY(-4px);
}

.pgs-about-value__icon {
	display: inline-grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: var(--pgs-radius-sm);
	background: var(--pgs-tint-green);
	color: var(--pgs-accent);
}

.pgs-about-value__icon .pgs-icon {
	width: 26px;
	height: 26px;
}

.pgs-about-value__title {
	margin: 4px 0 0;
	font-size: 1.1875rem;
}

.pgs-about-value__text {
	margin: 0;
	color: var(--pgs-text-body);
	font-size: var(--pgs-fs-small);
	line-height: 1.65;
}

@media (prefers-reduced-motion: reduce) {
	.pgs-about-value:hover {
		transform: none;
	}
}

/* ==========================================================================
   FAQ (12.5.3)
   ========================================================================== */

/* Questions (tabs + accordion) beside the help card from 1024px; the card stays in view. */
.pgs-faq-page__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr); /* the tab row scrolls inside the column on phones */
	gap: 40px;
}

@media (min-width: 1024px) {
	.pgs-faq-page__grid {
		grid-template-columns: minmax(0, 8fr) minmax(280px, 4fr);
		gap: 56px;
		align-items: start;
	}

	.pgs-faq-page__help {
		position: sticky;
		top: calc(var(--wp-admin--admin-bar--height, 0px) + 104px);
	}
}

.pgs-faq-page__main {
	min-width: 0;
}

/* Category tabs: one row that scrolls sideways on phones. Positioned, so the hidden
   screen-reader counts (position: absolute) stay inside the scrolling row. */
.pgs-faq-page__tabs .pgs-tabs__list {
	position: relative;
	overflow-x: auto;
	scrollbar-width: none;
}

.pgs-faq-page__count {
	display: inline-grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	margin-left: 8px;
	padding: 0 6px;
	border-radius: var(--pgs-radius-pill);
	background: rgba(0, 33, 102, .08);
	font-size: 12px;
	font-weight: 700;
}

.pgs-tabs__tab[aria-selected="true"] .pgs-faq-page__count {
	background: rgba(255, 255, 255, .45);
}

/* Help card (navy, .pgs-dark tokens). */
.pgs-faq-page__help {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 28px 24px;
	border-radius: var(--pgs-radius);
	background:
		radial-gradient(circle at 85% 10%, rgba(96, 184, 2, .22), transparent 55%),
		var(--pgs-navy);
	box-shadow: var(--pgs-shadow-lg);
	color: #fff;
}

.pgs-faq-page__help-icon {
	display: inline-grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .1);
	color: var(--pgs-lime);
}

.pgs-faq-page__help-icon .pgs-icon {
	width: 26px;
	height: 26px;
}

.pgs-faq-page__help-title {
	margin: 0;
	color: #fff;
	font-size: 1.375rem;
}

.pgs-faq-page__help-text {
	margin: 0 0 4px;
	color: rgba(255, 255, 255, .85);
	font-size: var(--pgs-fs-small);
	line-height: 1.65;
}

.pgs-faq-page__help {
	min-width: 0;
}

.pgs-faq-page__help-actions {
	display: grid;
	gap: 10px;
}

/* Long texts (e.g. an email address) wrap inside the button. */
.pgs-faq-page__help-actions .pgs-btn {
	white-space: normal;
	overflow-wrap: anywhere;
	text-align: center;
}

/* ==========================================================================
   Contact (12.5.4)
   ========================================================================== */

.pgs-contact-ways {
	padding-bottom: clamp(32px, 5vw, 48px);
}

/* Form card beside the "Visit us" card from 1024px (that card stays in view). */
.pgs-contact-main__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
}

@media (min-width: 1024px) {
	.pgs-contact-main__grid {
		grid-template-columns: minmax(0, 7fr) minmax(300px, 4fr);
		gap: 40px;
		align-items: start;
	}

	.pgs-contact-visit {
		position: sticky;
		top: calc(var(--wp-admin--admin-bar--height, 0px) + 104px);
	}
}

.pgs-contact-main__form {
	padding: clamp(24px, 4vw, 40px);
}

.pgs-contact-main__form .pgs-heading {
	margin-bottom: 24px;
}

.pgs-contact-visit {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
	padding: 28px 24px;
}

.pgs-contact-visit__title {
	margin: 0;
	font-size: 1.375rem;
}

.pgs-contact-visit__list {
	display: grid;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pgs-contact-visit__list li {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	color: var(--pgs-text-body);
	font-size: var(--pgs-fs-small);
	line-height: 1.6;
}

.pgs-contact-visit__list strong {
	display: block;
	color: var(--pgs-text);
	font-size: var(--pgs-fs-body);
}

.pgs-contact-visit__icon {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: var(--pgs-radius-sm);
	background: var(--pgs-tint-green);
	color: var(--pgs-accent);
}

.pgs-contact-visit__icon .pgs-icon {
	width: 20px;
	height: 20px;
}

/* Map: a click-to-load panel, then the map itself (4:3). */
.pgs-contact-map {
	overflow: hidden;
	border-radius: var(--pgs-radius-sm);
	aspect-ratio: 4 / 3;
	background:
		repeating-linear-gradient(45deg, rgba(0, 33, 102, .04) 0 12px, transparent 12px 24px),
		var(--pgs-bg-alt);
}

.pgs-contact-map__facade {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	height: 100%;
	border: 1px dashed var(--pgs-border-strong);
	border-radius: inherit;
	color: var(--pgs-text);
	text-decoration: none;
	transition: border-color var(--pgs-duration) var(--pgs-ease), background-color var(--pgs-duration) var(--pgs-ease);
}

.pgs-contact-map__facade:hover {
	border-color: var(--pgs-green);
	background: var(--pgs-tint-green);
}

.pgs-contact-map__pin {
	width: 32px;
	height: 32px;
	color: var(--pgs-accent);
}

.pgs-contact-map__label {
	font-weight: 700;
}

.pgs-contact-map__note {
	color: var(--pgs-text-muted);
	font-size: var(--pgs-fs-small);
}

.pgs-contact-map__frame {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}
