/**
 * PGS Learning — reusable UI components (docs/06-design-components.md).
 * Naming: BEM with pgs- prefix. Colours come from tokens only, so every component works on the
 * light page and inside a navy `.pgs-dark` section (which redefines the tokens).
 */

/* ==========================================================================
   Buttons
   ========================================================================== */
.pgs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	min-height: 48px; /* touch target */
	padding: .8em 1.6em;
	border: 1.5px solid transparent;
	border-radius: var(--pgs-radius-pill);
	background: none;
	font-family: var(--pgs-font-body);
	font-size: var(--pgs-fs-button);
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition:
		transform var(--pgs-duration) var(--pgs-ease),
		box-shadow var(--pgs-duration) var(--pgs-ease),
		background-color var(--pgs-duration) var(--pgs-ease),
		border-color var(--pgs-duration) var(--pgs-ease),
		color var(--pgs-duration) var(--pgs-ease);
}

.pgs-btn .pgs-icon {
	width: 1.15em;
	height: 1.15em;
	transition: transform var(--pgs-duration) var(--pgs-ease);
}

.pgs-btn:hover .pgs-icon--arrow,
.pgs-btn:focus-visible .pgs-icon--arrow {
	transform: translateX(3px);
}

.pgs-btn:disabled,
.pgs-btn[aria-disabled="true"] {
	opacity: .5;
	pointer-events: none;
}

/* Primary: green gradient, deep-navy text (AA contrast), glow on hover. */
.pgs-btn--primary {
	background: var(--pgs-grad-green);
	color: var(--pgs-navy-deep);
	box-shadow: 0 6px 22px rgba(96, 184, 2, .18);
}

.pgs-btn--primary:hover,
.pgs-btn--primary:focus-visible {
	color: var(--pgs-navy-deep);
	box-shadow: var(--pgs-glow-green), var(--pgs-glow);
	transform: translateY(-2px);
}

/* Secondary: soft filled pill (frosted glass in dark sections). */
.pgs-btn--secondary {
	border-color: var(--pgs-border-strong);
	background: var(--pgs-fill);
	color: var(--pgs-text);
}

.pgs-btn--secondary:hover,
.pgs-btn--secondary:focus-visible {
	border-color: var(--pgs-green);
	background: var(--pgs-fill-hover);
	color: var(--pgs-text);
	transform: translateY(-2px);
}

/* Outline: transparent with a visible border. */
.pgs-btn--outline {
	border-color: var(--pgs-border-strong);
	color: var(--pgs-text);
}

.pgs-btn--outline:hover,
.pgs-btn--outline:focus-visible {
	border-color: var(--pgs-green);
	background: var(--pgs-tint-green);
	color: var(--pgs-text);
}

/* Navy: solid brand navy — strong button on light backgrounds. */
.pgs-btn--navy {
	background: var(--pgs-navy);
	color: #fff;
}

.pgs-btn--navy:hover,
.pgs-btn--navy:focus-visible {
	background: var(--pgs-blue);
	color: #fff;
	transform: translateY(-2px);
}

/* WhatsApp. Text is deep navy: white on #25D366 fails AA. */
.pgs-btn--whatsapp {
	background: var(--pgs-whatsapp);
	color: var(--pgs-navy-deep);
}

.pgs-btn--whatsapp:hover,
.pgs-btn--whatsapp:focus-visible {
	color: var(--pgs-navy-deep);
	box-shadow: 0 10px 34px rgba(37, 211, 102, .30), 0 0 0 6px rgba(37, 211, 102, .16);
	transform: translateY(-2px);
}

/* Sizes & shapes */
.pgs-btn--sm {
	min-height: 40px;
	padding: .55em 1.1em;
	font-size: var(--pgs-fs-small);
}

.pgs-btn--lg {
	min-height: 56px;
	padding: .9em 2em;
}

/* Touch targets: nothing under 44px tall on phones/tablets. */
@media (max-width: 1023px) {
	.pgs-btn--sm {
		min-height: 44px;
	}
}

.pgs-btn--block {
	display: flex;
	width: 100%;
}

.pgs-btn--icon {
	width: 44px;
	min-height: 44px;
	padding: 0;
}

.pgs-btn-group {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

@media (max-width: 479px) {
	.pgs-btn-group--stack-mobile > .pgs-btn {
		width: 100%;
	}
}

/* ==========================================================================
   Eyebrow + section heading
   ========================================================================== */
.pgs-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border: 1px solid var(--pgs-accent-border);
	border-radius: var(--pgs-radius-pill);
	background: var(--pgs-tint-green);
	color: var(--pgs-accent);
	font-family: var(--pgs-font-label);
	font-size: var(--pgs-fs-eyebrow);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

.pgs-eyebrow .pgs-icon {
	width: 14px;
	height: 14px;
}

.pgs-heading {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	max-width: 720px;
	margin-bottom: clamp(32px, 5vw, 56px);
}

.pgs-heading__text {
	font-size: var(--pgs-fs-body);
}

.pgs-heading--center {
	align-items: center;
	margin-inline: auto;
	text-align: center;
}

/* Heading with an action link on the right (e.g. "View All →"). */
.pgs-heading-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 24px;
	margin-bottom: clamp(32px, 5vw, 56px);
}

.pgs-heading-row .pgs-heading {
	margin-bottom: 0;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.pgs-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--pgs-border);
	border-radius: var(--pgs-radius);
	background: var(--pgs-grad-card), var(--pgs-surface);
	box-shadow: var(--pgs-shadow);
	transition:
		transform var(--pgs-duration) var(--pgs-ease),
		box-shadow var(--pgs-duration) var(--pgs-ease),
		border-color var(--pgs-duration) var(--pgs-ease);
}

.pgs-card--hover:hover,
.pgs-card--hover:focus-within {
	border-color: var(--pgs-accent-border);
	box-shadow: var(--pgs-shadow-lg), 0 0 0 1px rgba(96, 184, 2, .14);
	transform: translateY(-4px);
}

.pgs-card__media {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--pgs-surface-2);
}

.pgs-card__media > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s var(--pgs-ease);
}

.pgs-card--hover:hover .pgs-card__media > img {
	transform: scale(1.05);
}

/* Soft fade at the bottom of the image so badges/titles stay readable. */
.pgs-card__media::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 45%;
	background: linear-gradient(180deg, transparent, rgba(0, 19, 56, .5));
	pointer-events: none;
}

.pgs-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 12px;
	padding: 20px;
}

@media (min-width: 768px) {
	.pgs-card__body {
		padding: 24px;
	}
}

/* Pills inside a card body keep their natural width instead of stretching. */
.pgs-card__body > .pgs-eyebrow,
.pgs-card__body > .pgs-badge {
	align-self: flex-start;
}

.pgs-card__title {
	font-size: var(--pgs-fs-h3);
	line-height: 1.3;
}

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

/* Whole card clickable via the title link. */
.pgs-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.pgs-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 16px;
	color: var(--pgs-text-muted);
	font-size: var(--pgs-fs-small);
	font-weight: 500;
}

.pgs-card__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.pgs-card__meta-item .pgs-icon {
	color: var(--pgs-accent);
}

.pgs-card__footer {
	position: relative;
	z-index: 2; /* buttons sit above the stretched title link */
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid var(--pgs-border);
}

/* ==========================================================================
   Badges & pills
   ========================================================================== */
.pgs-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: var(--pgs-radius-pill);
	background: var(--pgs-fill);
	color: var(--pgs-text);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}

.pgs-badge .pgs-icon {
	width: 14px;
	height: 14px;
}

.pgs-badge--green   { background: var(--pgs-tint-green); color: var(--pgs-accent); }
.pgs-badge--lime    { background: var(--pgs-lime); color: var(--pgs-navy-deep); }
.pgs-badge--blue    { background: var(--pgs-blue); color: #fff; }
.pgs-badge--danger  { background: rgba(229, 72, 77, .16); color: var(--pgs-danger-text); }
.pgs-badge--outline { border: 1px solid var(--pgs-border-strong); background: transparent; color: var(--pgs-text-body); }

/* Course status (_pgs_status). */
.pgs-badge--admissions_open { background: var(--pgs-lime); color: var(--pgs-navy-deep); }
.pgs-badge--upcoming        { background: var(--pgs-tint-blue); color: var(--pgs-info-text); }
.pgs-badge--live            { background: #D1343A; color: #fff; }
.pgs-badge--closed          { background: var(--pgs-fill); color: var(--pgs-text-muted); }

/* Badges laid over card images. */
.pgs-badge-stack {
	position: absolute;
	top: 12px;
	left: 12px;
	right: 12px;
	z-index: 2;
	display: flex;
	justify-content: space-between;
	gap: 8px;
}

/* Over images the badge needs its own backdrop to stay readable on any photo. */
.pgs-badge-stack .pgs-badge:not(.pgs-badge--lime):not(.pgs-badge--admissions_open):not(.pgs-badge--live) {
	background: rgba(0, 19, 56, .72);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: #FFFFFF;
}

/* Discount pill, e.g. "−50%". */
.pgs-discount {
	display: inline-flex;
	padding: 2px 8px;
	border-radius: var(--pgs-radius-pill);
	background: var(--pgs-tint-green);
	color: var(--pgs-accent);
	font-size: 12px;
	font-weight: 700;
}

/* Price row: "Starting From" · sale price · old price · discount. */
.pgs-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
}

.pgs-price__label {
	width: 100%;
	color: var(--pgs-text-muted);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .5px;
	text-transform: uppercase;
}

.pgs-price__current {
	color: var(--pgs-text);
	font-family: var(--pgs-font-head);
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1.2;
}

.pgs-price__old {
	color: var(--pgs-text-muted);
	font-size: var(--pgs-fs-small);
	text-decoration: line-through;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.pgs-form {
	display: grid;
	gap: 20px;
}

@media (min-width: 640px) {
	.pgs-form__row {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
}

.pgs-form__row > .pgs-field + .pgs-field {
	margin-top: 20px;
}

@media (min-width: 640px) {
	.pgs-form__row > .pgs-field + .pgs-field {
		margin-top: 0;
	}
}

.pgs-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.pgs-field__label {
	color: var(--pgs-text);
	font-size: var(--pgs-fs-small);
	font-weight: 600;
}

.pgs-field__required {
	color: var(--pgs-danger-text);
}

.pgs-input,
.pgs-select,
.pgs-textarea {
	width: 100%;
	min-height: 50px;
	padding: 12px 16px;
	border: 1.5px solid var(--pgs-border-strong);
	border-radius: var(--pgs-radius-sm);
	background: var(--pgs-input-bg);
	color: var(--pgs-text);
	font-size: 16px; /* prevents iOS zoom on focus */
	line-height: 1.5;
	transition:
		border-color var(--pgs-duration) var(--pgs-ease),
		box-shadow var(--pgs-duration) var(--pgs-ease),
		background-color var(--pgs-duration) var(--pgs-ease);
}

.pgs-input::placeholder,
.pgs-textarea::placeholder {
	color: var(--pgs-text-muted);
	opacity: 1;
}

.pgs-input:hover,
.pgs-select:hover,
.pgs-textarea:hover {
	border-color: var(--pgs-accent-border);
}

.pgs-input:focus,
.pgs-select:focus,
.pgs-textarea:focus {
	border-color: var(--pgs-green);
	outline: none;
	box-shadow: var(--pgs-glow);
}

.pgs-textarea {
	min-height: 140px;
	resize: vertical;
}

.pgs-select {
	padding-right: 44px;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002166' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 18px;
	cursor: pointer;
}

.pgs-dark .pgs-select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C3CEE6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

/* Options of a native dropdown follow the section surface. */
.pgs-select option {
	background: var(--pgs-surface);
	color: var(--pgs-text);
}

/* File input */
.pgs-input[type="file"] {
	padding: 10px;
	cursor: pointer;
}

.pgs-input[type="file"]::file-selector-button {
	margin-right: 12px;
	padding: 8px 16px;
	border: 0;
	border-radius: var(--pgs-radius-pill);
	background: var(--pgs-surface-3);
	color: var(--pgs-text);
	font-weight: 600;
	cursor: pointer;
}

/* Checkbox / radio */
.pgs-choice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--pgs-text-body);
	cursor: pointer;
}

.pgs-choice input {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: var(--pgs-green);
	cursor: pointer;
}

.pgs-choice-group {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 20px;
	margin: 0;
	padding: 0;
	border: 0;
}

/* Help + validation */
.pgs-field__help {
	color: var(--pgs-text-muted);
	font-size: var(--pgs-fs-small);
}

.pgs-field__error {
	display: none;
	color: var(--pgs-danger-text);
	font-size: var(--pgs-fs-small);
	font-weight: 500;
}

.pgs-field.is-invalid .pgs-input,
.pgs-field.is-invalid .pgs-select,
.pgs-field.is-invalid .pgs-textarea {
	border-color: var(--pgs-danger);
}

.pgs-field.is-invalid .pgs-field__error {
	display: block;
}

/* Honeypot: hidden from people, visible to bots. */
.pgs-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Form notice (info / success / error) */
.pgs-notice {
	padding: 14px 18px;
	border: 1px solid var(--pgs-border);
	border-left: 4px solid var(--pgs-info-text);
	border-radius: var(--pgs-radius-sm);
	background: var(--pgs-tint-blue);
	color: var(--pgs-text);
}

.pgs-notice--success {
	border-color: var(--pgs-accent-border);
	border-left-color: var(--pgs-green);
	background: var(--pgs-tint-green);
}

.pgs-notice--error {
	border-color: rgba(229, 72, 77, .30);
	border-left-color: var(--pgs-danger);
	background: rgba(229, 72, 77, .12);
}

/* Public forms (12.0.4) — inc/forms.php + template-parts/form-field.php, driven by forms.js. */
.pgs-form__note,
.pgs-form__after {
	margin: 0;
	color: var(--pgs-text-muted);
	font-size: var(--pgs-fs-small);
}

.pgs-form__row > .pgs-field--wide {
	grid-column: 1 / -1;
}

/* forms.js hides the "needs JavaScript" note as soon as it runs. */
.pgs-notice[hidden] {
	display: none;
}

/* Help and error lines sit right under the control (no paragraph margins). */
.pgs-field__help,
.pgs-field__error {
	margin: 0;
}

/* Message boxes stay in the page (live regions must exist before they speak) — invisible while empty,
   and the form's 20px gap before them is taken back so they leave no hole. */
.pgs-form__message:empty {
	align-self: start; /* not stretched into the gap it gives back */
	margin-top: -20px;
	padding: 0;
	border: 0;
}

.pgs-form__message:focus {
	outline: none;
}

.pgs-form__message:focus-visible {
	outline: 2px solid var(--pgs-focus);
	outline-offset: 2px;
}

.pgs-form__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
}

@media (max-width: 479px) {
	.pgs-form__actions .pgs-btn {
		width: 100%;
	}
}

/* While sending: keep the button readable (disabled = .5 elsewhere) and show it is working. */
.pgs-form[aria-busy="true"] [data-form-submit] {
	opacity: .8;
	cursor: progress;
}

/* Checkbox groups (subjects, classes): a fieldset that looks like the other fields. */
.pgs-field--group {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.pgs-field--group > legend {
	float: left; /* lets the flex gap work below the legend */
	width: 100%;
	margin-bottom: 8px;
	padding: 0;
}

.pgs-field--group > legend + * {
	clear: both;
}

.pgs-choice-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); /* 2 per row on a 360px phone */
	gap: 10px;
}

@media (min-width: 768px) {
	.pgs-choice-grid {
		grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); /* room for "Computer Science" */
	}
}

/* A tick box as a tappable chip (44px touch target). */
.pgs-choice--box {
	align-items: center;
	min-height: 44px;
	padding: 10px 14px;
	border: 1.5px solid var(--pgs-border-strong);
	border-radius: var(--pgs-radius-sm);
	background: var(--pgs-input-bg);
	transition:
		border-color var(--pgs-duration) var(--pgs-ease),
		background-color var(--pgs-duration) var(--pgs-ease);
}

.pgs-choice--box input {
	margin: 0;
}

.pgs-choice--box span {
	min-width: 0;
}

/* Phones: two chips per row — a slightly smaller label keeps words like "Mathematics" whole. */
@media (max-width: 767px) {
	.pgs-choice--box {
		gap: 8px;
		padding: 10px 8px 10px 10px;
		font-size: 14px;
	}
}

.pgs-choice--box:hover {
	border-color: var(--pgs-accent-border);
}

.pgs-choice--box:has(input:checked) {
	border-color: var(--pgs-green);
	background: var(--pgs-tint-green);
	color: var(--pgs-text);
}

.pgs-choice--box:has(input:focus-visible) {
	box-shadow: var(--pgs-glow);
}

.pgs-field--group.is-invalid .pgs-choice--box {
	border-color: var(--pgs-danger);
}

/* Contact cards (12.0.4): WhatsApp / phone / email from Settings — whole card clickable. */
.pgs-contact-cards {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	.pgs-contact-cards {
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
		gap: 24px;
	}
}

.pgs-contact-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 24px;
	border: 1px solid var(--pgs-border);
	border-radius: var(--pgs-radius);
	background: var(--pgs-surface);
	box-shadow: var(--pgs-shadow);
	transition:
		transform var(--pgs-duration) var(--pgs-ease),
		box-shadow var(--pgs-duration) var(--pgs-ease),
		border-color var(--pgs-duration) var(--pgs-ease);
}

.pgs-contact-card:hover {
	transform: translateY(-4px);
	border-color: var(--pgs-accent-border);
	box-shadow: var(--pgs-shadow-lg);
}

.pgs-contact-card:has(.pgs-contact-card__link:focus-visible) {
	outline: 2px solid var(--pgs-focus);
	outline-offset: 3px;
}

.pgs-contact-card__icon {
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-bottom: 8px;
	border-radius: 50%;
	background: var(--pgs-tint-blue);
	color: var(--pgs-info-text);
}

.pgs-contact-card__icon .pgs-icon {
	width: 22px;
	height: 22px;
}

.pgs-contact-card--whatsapp .pgs-contact-card__icon {
	background: var(--pgs-tint-green);
	color: var(--pgs-accent);
}

.pgs-contact-card__title {
	margin: 0;
	color: var(--pgs-text);
	font-size: var(--pgs-fs-h3);
}

.pgs-contact-card__link {
	color: var(--pgs-link);
	font-weight: 600;
	overflow-wrap: anywhere;
	text-decoration: none;
}

.pgs-contact-card__link:focus-visible {
	outline: none;
}

/* The link covers the whole card. */
.pgs-contact-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

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

@media (prefers-reduced-motion: reduce) {
	.pgs-contact-card,
	.pgs-contact-card:hover {
		transform: none;
	}
}

/* ==========================================================================
   Tabs — pill style, role="tablist" (main.js adds roving tabindex + arrow keys).
   Without JavaScript the tab rail is hidden and every panel is shown.
   ========================================================================== */
.pgs-tabs__list {
	display: none;
}

.pgs-js .pgs-tabs__list {
	display: inline-flex;
	max-width: 100%;
	gap: 4px;
	padding: 5px;
	overflow-x: auto;
	border: 1px solid var(--pgs-border);
	border-radius: var(--pgs-radius-pill);
	background: var(--pgs-fill);
	scrollbar-width: none;
}

.pgs-tabs__list::-webkit-scrollbar {
	display: none;
}

.pgs-tabs__tab {
	flex: 0 0 auto;
	min-height: 44px;
	padding: .55em 1.3em;
	border: 0;
	border-radius: var(--pgs-radius-pill);
	background: transparent;
	color: var(--pgs-text-body);
	font-family: var(--pgs-font-body);
	font-size: var(--pgs-fs-button);
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition:
		background-color var(--pgs-duration) var(--pgs-ease),
		color var(--pgs-duration) var(--pgs-ease),
		box-shadow var(--pgs-duration) var(--pgs-ease);
}

.pgs-tabs__tab:hover {
	background: var(--pgs-fill-hover);
	color: var(--pgs-text);
}

.pgs-tabs__tab[aria-selected="true"] {
	background: var(--pgs-grad-green);
	color: var(--pgs-navy-deep);
	box-shadow: 0 4px 16px rgba(96, 184, 2, .28);
}

.pgs-tabs__panel {
	margin-top: 24px;
}

.pgs-tabs__panel[hidden] {
	display: none;
}

/* Heading shown only without JavaScript, so stacked panels still make sense. */
.pgs-tabs__panel-title {
	margin-bottom: 12px;
}

.pgs-js .pgs-tabs__panel-title {
	display: none;
}

/* ==========================================================================
   Accordion — native <details>; data-pgs-accordion="single" = one open at a time
   ========================================================================== */
.pgs-accordion {
	display: grid;
	gap: 12px;
}

.pgs-accordion__item {
	border: 1px solid var(--pgs-border);
	border-radius: 16px;
	background: var(--pgs-grad-card), var(--pgs-surface);
	transition: border-color var(--pgs-duration) var(--pgs-ease);
}

.pgs-accordion__item[open] {
	border-color: var(--pgs-accent-border);
}

.pgs-accordion__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 56px;
	padding: 14px 20px;
	border-radius: 16px;
	color: var(--pgs-text);
	font-family: var(--pgs-font-head);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.4;
	list-style: none;
	cursor: pointer;
}

.pgs-accordion__summary::-webkit-details-marker {
	display: none;
}

.pgs-accordion__summary::marker {
	content: "";
}

.pgs-accordion__summary:hover {
	color: var(--pgs-accent);
}

/* The focus ring hugs the card instead of poking outside it. */
.pgs-accordion__summary:focus-visible {
	outline-offset: -3px;
	border-radius: 16px;
}

.pgs-accordion__chevron {
	color: var(--pgs-accent);
	transition: transform var(--pgs-duration) var(--pgs-ease);
}

.pgs-accordion__item[open] .pgs-accordion__chevron {
	transform: rotate(180deg);
}

.pgs-accordion__body {
	padding: 0 20px 20px;
	animation: pgs-fade-down .3s var(--pgs-ease);
}

@keyframes pgs-fade-down {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   Stat badge — floating card over an image (put inside a position:relative box)
   ========================================================================== */
.pgs-stat-badge {
	position: absolute;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: calc(100% - 24px);
	padding: 10px 18px 10px 10px;
	border: 1px solid var(--pgs-border-strong);
	border-radius: var(--pgs-radius);
	background: var(--pgs-glass-bg);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	box-shadow: var(--pgs-shadow-lg);
	animation: pgs-float 6s ease-in-out infinite;
}

.pgs-stat-badge--tl { top: 16px;    left: 12px; }
.pgs-stat-badge--tr { top: 16px;    right: 12px; }
.pgs-stat-badge--bl { bottom: 16px; left: 12px; }
.pgs-stat-badge--br { bottom: 16px; right: 12px; animation-delay: -3s; }

.pgs-stat-badge__icon {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--pgs-tint-green);
	color: var(--pgs-accent);
	font-size: 1.25rem;
}

.pgs-stat-badge__value {
	display: block;
	color: var(--pgs-text);
	font-family: var(--pgs-font-head);
	font-size: 1.375rem;
	font-weight: 800;
	line-height: 1.1;
}

.pgs-stat-badge__label {
	display: block;
	color: var(--pgs-text-body);
	font-size: var(--pgs-fs-small);
	line-height: 1.3;
}

/* Lime variant with trophy icon: solid brand gradient, deep-navy text. */
.pgs-stat-badge--lime {
	border-color: transparent;
	background: var(--pgs-grad-green);
}

.pgs-stat-badge--lime .pgs-stat-badge__icon {
	background: rgba(0, 19, 56, .14);
	color: var(--pgs-navy-deep);
}

.pgs-stat-badge--lime .pgs-stat-badge__value,
.pgs-stat-badge--lime .pgs-stat-badge__label {
	color: var(--pgs-navy-deep);
}

@keyframes pgs-float {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-8px); }
}

/* ==========================================================================
   Timeline — outlined circle icons joined by a vertical line (Why Choose PGS)
   ========================================================================== */
.pgs-timeline {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pgs-timeline__item {
	position: relative;
	display: flex;
	gap: 20px;
	padding-bottom: 32px;
}

.pgs-timeline__item:last-child {
	padding-bottom: 0;
}

/* The line runs from under this circle to the next one. */
.pgs-timeline__item:not(:last-child)::before {
	content: "";
	position: absolute;
	top: 52px;
	bottom: 4px;
	left: 21px;
	width: 2px;
	border-radius: 2px;
	background: linear-gradient(180deg, var(--pgs-green), rgba(96, 184, 2, .12));
}

.pgs-timeline__icon {
	position: relative;
	z-index: 1;
	display: grid;
	flex: 0 0 44px;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1.5px solid var(--pgs-green);
	border-radius: 50%;
	background: var(--pgs-bg);
	color: var(--pgs-accent);
}

.pgs-timeline__title {
	margin: 8px 0 4px;
	font-size: var(--pgs-fs-h3);
}

.pgs-timeline__content p {
	margin: 0;
}

/* ==========================================================================
   Steps — numbered, dotted connector; vertical on phones, horizontal from 768px
   ========================================================================== */
.pgs-steps {
	display: grid;
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pgs-steps__item {
	position: relative;
	display: grid;
	grid-template-columns: 56px 1fr;
	column-gap: 16px;
	align-items: start;
}

.pgs-steps__num {
	display: grid;
	grid-row: span 2;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--pgs-grad-green);
	box-shadow: 0 8px 24px rgba(96, 184, 2, .28);
	color: var(--pgs-navy-deep);
	font-family: var(--pgs-font-head);
	font-size: 1.25rem;
	font-weight: 800;
}

.pgs-steps__title {
	margin-top: 4px;
	font-size: var(--pgs-fs-h3);
}

.pgs-steps__text {
	margin: 4px 0 0;
}

/* Phones: dotted line down the left, from this number to the next. */
.pgs-steps__item:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 64px;
	bottom: -24px;
	left: 27px;
	border-left: 2px dotted var(--pgs-border-strong);
}

@media (min-width: 768px) {
	.pgs-steps {
		grid-template-columns: repeat(var(--pgs-steps, 4), 1fr);
	}

	.pgs-steps__item {
		display: block;
		text-align: center;
	}

	.pgs-steps__num {
		margin: 0 auto 20px;
	}

	/* Desktop: dotted line to the right, between the two circles. */
	.pgs-steps__item:not(:last-child)::after {
		top: 28px;
		bottom: auto;
		left: calc(50% + 40px);
		width: calc(100% - 52px);
		border-top: 2px dotted var(--pgs-border-strong);
		border-left: 0;
	}
}

/* ==========================================================================
   Swoosh — decorative curves (inline SVG from pgs_swoosh(), hidden from screen readers)
   ========================================================================== */
.pgs-swoosh {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: -1;
	width: 100%;
	height: clamp(120px, 22vw, 260px);
	fill: none;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

.pgs-swoosh path {
	stroke: currentColor;
	vector-effect: non-scaling-stroke;
}

.pgs-swoosh__a { color: rgba(96, 184, 2, .65);   stroke-width: 2; }
.pgs-swoosh__b { color: rgba(95, 140, 255, .55); stroke-width: 2; }
.pgs-swoosh__c { color: rgba(142, 214, 43, .30); stroke-width: 1.5; }

/* ==========================================================================
   CTA band — rounded gradient band with heading + buttons
   ========================================================================== */
.pgs-cta-band {
	position: relative;
	isolation: isolate;
	display: grid;
	gap: 24px;
	padding: clamp(32px, 6vw, 72px);
	overflow: hidden;
	border: 1px solid var(--pgs-border);
	border-radius: var(--pgs-radius-lg);
	background: var(--pgs-grad-cta);
	box-shadow: var(--pgs-shadow-lg);
}

/* Soft lime glow in the top-right corner. */
.pgs-cta-band::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(45% 90% at 92% 0%, rgba(142, 214, 43, .24), transparent 70%);
	pointer-events: none;
}

@media (min-width: 900px) {
	.pgs-cta-band {
		grid-template-columns: 1fr auto;
		align-items: center;
		gap: 40px;
	}
}

.pgs-cta-band__text {
	max-width: 56ch;
	margin-top: 12px;
	color: var(--pgs-text-body);
}

/* Green variant (final CTA): navy text and navy buttons for contrast on green. */
.pgs-cta-band--green {
	border-color: transparent;
	background: var(--pgs-grad-green);
}

.pgs-cta-band--green::before {
	background: radial-gradient(45% 90% at 8% 100%, rgba(255, 255, 255, .28), transparent 70%);
}

.pgs-cta-band--green .pgs-cta-band__title {
	color: var(--pgs-navy-deep);
}

.pgs-cta-band--green .pgs-cta-band__text {
	color: rgba(0, 19, 56, .88);
}

.pgs-cta-band--green .pgs-btn--primary {
	background: var(--pgs-navy-deep);
	box-shadow: none;
	color: #fff;
}

.pgs-cta-band--green .pgs-btn--primary:hover,
.pgs-cta-band--green .pgs-btn--primary:focus-visible {
	background: var(--pgs-navy);
	box-shadow: 0 10px 30px rgba(0, 19, 56, .35);
	color: #fff;
}

.pgs-cta-band--green .pgs-btn--secondary {
	border-color: rgba(0, 19, 56, .45);
	background: rgba(0, 19, 56, .08);
	color: var(--pgs-navy-deep);
}

.pgs-cta-band--green .pgs-btn--whatsapp {
	background: #fff;
	color: var(--pgs-navy-deep);
}

.pgs-cta-band--green .pgs-swoosh__a,
.pgs-cta-band--green .pgs-swoosh__b,
.pgs-cta-band--green .pgs-swoosh__c {
	color: rgba(255, 255, 255, .55);
}

/* ==========================================================================
   Stats strip — card with animated counters (main.js counts up once when visible)
   ========================================================================== */
.pgs-stats-strip {
	position: relative;
	z-index: 3;
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
	grid-template-columns: repeat(2, 1fr);
	gap: 1px; /* the grid background shows through as dividers */
	overflow: hidden;
	border: 1px solid var(--pgs-border);
	border-radius: var(--pgs-radius);
	background: var(--pgs-border);
	box-shadow: var(--pgs-shadow-lg);
}

/* Phones: an odd last number takes the whole row (no empty cell). */
@media (max-width: 767px) {
	.pgs-stats-strip__item:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
}

/* Up to 4 per row (--pgs-stats-cols = number of items, max 4, set by stats-strip.php). */
@media (min-width: 768px) {
	.pgs-stats-strip {
		grid-template-columns: repeat(var(--pgs-stats-cols, 4), 1fr);
	}
}

/* Overlaps the bottom of the hero above it. */
.pgs-stats-strip--overlap {
	margin-top: -56px;
}

.pgs-stats-strip__item {
	padding: 24px 12px;
	background: var(--pgs-grad-card), var(--pgs-surface);
	text-align: center;
}

.pgs-stats-strip__value {
	display: block;
	color: var(--pgs-text);
	font-family: var(--pgs-font-head);
	font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
	font-weight: 800;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.pgs-stats-strip__label {
	display: block;
	margin-top: 6px;
	color: var(--pgs-text-body);
	font-size: var(--pgs-fs-small);
	font-weight: 500;
}

/* ==========================================================================
   WhatsApp float — fixed bottom-right glass pill "Let's Talk" + green circle.
   (Markup: template-parts/whatsapp-float.php; --static is for demos and previews.)
   Offset hook: anything fixed to the bottom of the screen (the mobile enroll bar,
   Phase 10) sets --pgs-float-offset to its height on <body> while it shows, and the
   float slides up above it. Also clears the phone's home bar / notch when reported.
   ========================================================================== */
.pgs-whatsapp-float {
	position: fixed;
	right: calc(16px + env(safe-area-inset-right, 0px));
	bottom: calc(16px + var(--pgs-float-offset, 0px) + env(safe-area-inset-bottom, 0px));
	z-index: 90;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 6px 6px 6px 20px;
	border: 1px solid var(--pgs-border-strong);
	border-radius: var(--pgs-radius-pill);
	background: var(--pgs-glass-bg);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	backdrop-filter: blur(14px) saturate(140%);
	box-shadow: var(--pgs-shadow-lg);
	color: var(--pgs-text);
	font-weight: 600;
	text-decoration: none;
	transition:
		bottom var(--pgs-duration) var(--pgs-ease),
		transform var(--pgs-duration) var(--pgs-ease),
		box-shadow var(--pgs-duration) var(--pgs-ease),
		opacity var(--pgs-duration) var(--pgs-ease),
		visibility var(--pgs-duration) var(--pgs-ease);
}

.pgs-whatsapp-float:hover,
.pgs-whatsapp-float:focus-visible {
	box-shadow: var(--pgs-shadow-lg), 0 0 0 6px rgba(37, 211, 102, .18);
	color: var(--pgs-text);
	transform: translateY(-2px);
}

.pgs-whatsapp-float__icon {
	position: relative;
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--pgs-whatsapp);
	color: var(--pgs-navy-deep);
	font-size: 1.5rem;
}

/* Gentle pulse ring to draw the eye (off for reduced motion). */
.pgs-whatsapp-float__icon::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	box-shadow: 0 0 0 0 rgba(37, 211, 102, .55);
	animation: pgs-pulse 2.4s ease-out infinite;
}

@keyframes pgs-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
	70%  { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
	100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Small phones: just the green circle, so it never covers content. */
@media (max-width: 479px) {
	.pgs-whatsapp-float {
		padding: 0;
		border: 0;
		background: transparent;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		box-shadow: none;
	}

	.pgs-whatsapp-float__label {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}
}

.pgs-whatsapp-float--static {
	position: relative;
	right: auto;
	bottom: auto;
}

/* ==========================================================================
   Slider — CSS scroll-snap (decision D2). Swipe / scroll works without JS;
   slider.js adds prev / next buttons, arrow keys and the "03 / 05" counter.
   ========================================================================== */
.pgs-slider {
	position: relative;
}

.pgs-slider__track {
	--pgs-per-view: 1;
	--pgs-slide-gap: 24px;
	display: grid;
	grid-auto-columns: calc((100% - var(--pgs-slide-gap) * (var(--pgs-per-view) - 1)) / var(--pgs-per-view));
	grid-auto-flow: column;
	gap: var(--pgs-slide-gap);
	margin: -12px -8px -36px; /* room for card shadows / hover lift inside the scroll box */
	padding: 12px 8px 36px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-padding-inline: 8px;
	scroll-snap-type: x mandatory;
}

/* With JavaScript the buttons replace the scrollbar (swipe and trackpad still work). */
.pgs-slider.is-ready .pgs-slider__track {
	scrollbar-width: none;
}

.pgs-slider.is-ready .pgs-slider__track::-webkit-scrollbar {
	display: none;
}

.pgs-slider__slide {
	display: flex;
	min-width: 0;
	scroll-snap-align: start;
}

.pgs-slider__slide > * {
	flex: 1;
	min-width: 0;
}

/* Card rows (featured courses, testimonials): the next card peeks on phones. */
.pgs-slider--cards .pgs-slider__track {
	--pgs-slide-gap: 20px;
	grid-auto-columns: 85%;
}

@media (min-width: 640px) {
	.pgs-slider--cards .pgs-slider__track {
		--pgs-per-view: 2;
		grid-auto-columns: calc((100% - var(--pgs-slide-gap) * (var(--pgs-per-view) - 1)) / var(--pgs-per-view));
	}
}

@media (min-width: 1024px) {
	.pgs-slider--cards .pgs-slider__track {
		--pgs-slide-gap: 24px;
		--pgs-per-view: 3;
	}
}

.pgs-slider__controls {
	display: none;
}

.pgs-slider.is-ready .pgs-slider__controls {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 16px;
	margin-top: 28px;
}

.pgs-slider.is-static .pgs-slider__controls {
	display: none;
}

.pgs-slider__btn {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1.5px solid var(--pgs-border-strong);
	border-radius: 50%;
	background: var(--pgs-surface);
	color: var(--pgs-text);
	font-size: 1.25rem;
	transition:
		background-color var(--pgs-duration) var(--pgs-ease),
		border-color var(--pgs-duration) var(--pgs-ease),
		color var(--pgs-duration) var(--pgs-ease),
		opacity var(--pgs-duration) var(--pgs-ease);
}

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

.pgs-slider__btn[aria-disabled="true"] {
	border-color: var(--pgs-border);
	background: transparent;
	color: var(--pgs-text-muted);
	cursor: default;
	opacity: .55;
}

.pgs-slider__counter {
	min-width: 5.5ch;
	color: var(--pgs-text-muted);
	font-family: var(--pgs-font-label);
	font-size: 1.125rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	letter-spacing: 2px;
	text-align: center;
}

.pgs-slider__counter [data-slider-current] {
	color: var(--pgs-text);
}

/* ==========================================================================
   Instructor slide — photo left, navy panel right, big faded number
   ========================================================================== */
.pgs-instructor-slide {
	display: grid;
	grid-template-rows: auto 1fr; /* phones: slides share the tallest height — the panel takes the extra, not the photo */
	overflow: hidden;
	border: 1px solid var(--pgs-border);
	border-radius: var(--pgs-radius-lg);
	background: var(--pgs-surface);
	box-shadow: var(--pgs-shadow);
}

@media (min-width: 768px) {
	.pgs-instructor-slide {
		grid-template-columns: 5fr 7fr;
		grid-template-rows: 1fr;
		min-height: 440px;
	}
}

.pgs-instructor-slide__photo {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--pgs-surface-2);
}

@media (min-width: 768px) {
	.pgs-instructor-slide__photo {
		aspect-ratio: auto;
	}
}

.pgs-instructor-slide__photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pgs-instructor-slide__panel {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
	padding: clamp(24px, 5vw, 56px);
	overflow: hidden;
	background: var(--pgs-grad-cta);
}

.pgs-instructor-slide__num {
	position: absolute;
	top: -0.15em;
	right: 0.1em;
	z-index: -1;
	color: rgba(255, 255, 255, .07);
	font-family: var(--pgs-font-head);
	font-size: clamp(6rem, 14vw, 10rem);
	font-weight: 800;
	line-height: 1;
	pointer-events: none;
}

.pgs-instructor-slide__role {
	color: var(--pgs-accent);
	font-family: var(--pgs-font-label);
	font-size: var(--pgs-fs-eyebrow);
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

.pgs-instructor-slide__name {
	font-size: clamp(1.5rem, 1.3rem + 1vw, 2.125rem);
	font-weight: 800;
	line-height: 1.15;
}

.pgs-instructor-slide__bio {
	max-width: 52ch;
	color: var(--pgs-text-body);
}

.pgs-instructor-slide__social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
}

.pgs-instructor-slide__social 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),
		color var(--pgs-duration) var(--pgs-ease);
}

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

/* No photo (11.5.2): big initials on a soft brand gradient. */
.pgs-instructor-slide__initials {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background:
		radial-gradient(circle at 30% 25%, rgba(96, 184, 2, .28), transparent 55%),
		linear-gradient(160deg, #E9F0FF, #F3F9EA);
	color: var(--pgs-navy);
	font-family: var(--pgs-font-head);
	font-size: clamp(3.5rem, 2.5rem + 5vw, 6rem);
	font-weight: 800;
	letter-spacing: 2px;
}

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

.pgs-instructor-slide__subjects li {
	padding: 4px 12px;
	border: 1px solid var(--pgs-border-strong);
	border-radius: var(--pgs-radius-pill);
	color: var(--pgs-text);
	font-size: var(--pgs-fs-small);
	font-weight: 500;
}

.pgs-instructor-slide__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 16px;
	margin-top: 6px;
}

.pgs-instructor-slide__foot .pgs-instructor-slide__social {
	margin: 0;
}

/* ==========================================================================
   Testimonial card
   ========================================================================== */
.pgs-testimonial {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 0;
	padding: clamp(22px, 3vw, 32px);
	border: 1px solid var(--pgs-border);
	border-radius: var(--pgs-radius);
	background: var(--pgs-grad-card), var(--pgs-surface);
	box-shadow: var(--pgs-shadow);
}

.pgs-testimonial__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.pgs-testimonial__mark {
	color: var(--pgs-green);
	font-size: 2rem;
}

.pgs-testimonial__stars {
	display: inline-flex;
	gap: 2px;
	color: var(--pgs-green);
}

.pgs-testimonial__stars .pgs-icon {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.pgs-testimonial__text {
	margin: 0;
	color: var(--pgs-text);
	font-size: 1.0625rem;
	line-height: 1.7;
}

.pgs-testimonial__person {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid var(--pgs-border);
}

.pgs-testimonial__avatar {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 48px;
	height: 48px;
	overflow: hidden;
	border-radius: 50%;
	background: var(--pgs-tint-green);
	color: var(--pgs-accent);
	font-family: var(--pgs-font-head);
	font-weight: 700;
}

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

.pgs-testimonial__name {
	display: block;
	color: var(--pgs-text);
	font-style: normal;
	font-weight: 700;
}

.pgs-testimonial__meta {
	display: block;
	color: var(--pgs-text-muted);
	font-size: var(--pgs-fs-small);
}

/* ==========================================================================
   Breadcrumb (9.6.2) — "Home › Parent › Current"; wraps on small screens.
   Works on light and navy (inside the page hero) through the colour tokens.
   ========================================================================== */
.pgs-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 0;
	margin: 0;
	padding: 0;
	font-size: var(--pgs-fs-small);
	list-style: none;
}

.pgs-breadcrumb__item {
	display: inline-flex;
	align-items: center;
	min-width: 0;
	color: var(--pgs-text-muted);
}

/* Separator: drawn by CSS, empty alternative text so screen readers skip it. */
.pgs-breadcrumb__item + .pgs-breadcrumb__item::before {
	content: "›";
	content: "›" / "";
	margin-inline: 10px;
	color: var(--pgs-text-muted);
	opacity: .7;
}

.pgs-breadcrumb__item a {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	color: var(--pgs-text-body);
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 3px;
	transition: color var(--pgs-duration) var(--pgs-ease), text-decoration-color var(--pgs-duration) var(--pgs-ease);
}

.pgs-breadcrumb__item a:hover,
.pgs-breadcrumb__item a:focus-visible {
	color: var(--pgs-text);
	text-decoration-color: var(--pgs-accent);
}

/* Current page: long titles are cut with "…" instead of taking several lines. */
.pgs-breadcrumb__item [aria-current="page"] {
	max-width: min(60ch, 70vw);
	overflow: hidden;
	color: var(--pgs-text);
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ==========================================================================
   Page hero (9.6.1) — navy band at the top of inner pages: breadcrumb, eyebrow,
   the page's H1, intro text and an optional search box, with the swoosh curves.
   ========================================================================== */
.pgs-page-hero {
	--pgs-hero-swoosh: clamp(64px, 12vw, 170px);
	overflow: hidden;
	/* Bottom space always taller than the curves, so they never run through the text. */
	padding-block: clamp(36px, 6vw, 72px) calc(var(--pgs-hero-swoosh) + 12px);
}

.pgs-page-hero .pgs-swoosh {
	height: var(--pgs-hero-swoosh);
}

.pgs-page-hero__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.pgs-page-hero .pgs-breadcrumb {
	margin-bottom: clamp(4px, 1.5vw, 16px);
}

.pgs-page-hero__title {
	max-width: 24ch;
	margin: 0;
	overflow-wrap: anywhere;
}

.pgs-page-hero__text {
	max-width: 62ch;
	margin: 0;
}

.pgs-page-hero__search {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	width: 100%;
	max-width: 620px;
	margin-top: 8px;
}

.pgs-page-hero__search-field {
	position: relative;
	flex: 1 1 240px;
}

.pgs-page-hero__search-field .pgs-input {
	width: 100%;
	padding-left: 46px;
}

.pgs-page-hero__search-icon {
	position: absolute;
	top: 50%;
	left: 16px;
	width: 18px;
	height: 18px;
	color: var(--pgs-text-muted);
	transform: translateY(-50%);
	pointer-events: none;
}

@media (max-width: 479px) {
	.pgs-page-hero__search .pgs-btn {
		width: 100%;
	}
}

/* ==========================================================================
   Page content (9.6.5) — plain pages and the blog fallback: content under the
   page hero, then the CTA band (its section adds the space below).
   ========================================================================== */
.pgs-page-content {
	padding-block: clamp(40px, 6vw, 72px) 0;
}

/* Text from the WordPress editor: comfortable line length and spacing. */
.pgs-prose {
	max-width: 760px;
	color: var(--pgs-text-body);
	font-size: var(--pgs-fs-body);
	line-height: 1.75;
	overflow-wrap: break-word;
}

.pgs-prose > * {
	margin-block: 0 1.1em;
}

.pgs-prose > *:last-child {
	margin-bottom: 0;
}

.pgs-prose :is(h2, h3, h4) {
	margin-top: 1.8em;
	margin-bottom: .6em;
	line-height: 1.25;
}

.pgs-prose > :is(h2, h3, h4):first-child {
	margin-top: 0;
}

.pgs-prose h2 { font-size: clamp(1.5rem, 1.3rem + .9vw, 2rem); }

.pgs-prose a {
	color: var(--pgs-link);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.pgs-prose a:hover {
	text-decoration-thickness: 2px;
}

.pgs-prose :is(ul, ol) {
	padding-left: 1.4em;
}

.pgs-prose li + li {
	margin-top: .4em;
}

.pgs-prose li::marker {
	color: var(--pgs-accent);
}

.pgs-prose blockquote {
	margin-inline: 0;
	padding: 4px 0 4px 20px;
	border-left: 4px solid var(--pgs-green);
	color: var(--pgs-text);
	font-size: 1.1em;
}

.pgs-prose :is(img, video, iframe) {
	max-width: 100%;
	height: auto;
	border-radius: var(--pgs-radius-sm);
}

.pgs-prose figcaption {
	margin-top: 8px;
	color: var(--pgs-text-muted);
	font-size: var(--pgs-fs-small);
}

.pgs-prose table {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
}

.pgs-prose :is(th, td) {
	padding: 10px 12px;
	border: 1px solid var(--pgs-border);
	text-align: left;
}

.pgs-prose hr {
	border: 0;
	border-top: 1px solid var(--pgs-border);
}

.pgs-prose .aligncenter {
	display: block;
	margin-inline: auto;
}

@media (min-width: 768px) {
	.pgs-prose .alignleft  { float: left;  margin: 0 24px 16px 0; }
	.pgs-prose .alignright { float: right; margin: 0 0 16px 24px; }
}

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

/* Simple post list until the blog cards (12.4). */
.pgs-post-list {
	display: grid;
	gap: 0;
	max-width: 760px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pgs-post-list__item {
	padding-block: 24px;
	border-bottom: 1px solid var(--pgs-border);
}

.pgs-post-list__item:first-child {
	padding-top: 0;
}

.pgs-post-list__title {
	margin: 0 0 6px;
	font-size: var(--pgs-fs-h3);
}

.pgs-post-list__title a {
	color: var(--pgs-text);
	text-decoration: none;
}

.pgs-post-list__title a:hover {
	color: var(--pgs-link);
	text-decoration: underline;
}

.pgs-post-list__excerpt p {
	margin: 8px 0 0;
}

/* ==========================================================================
   Course card (10.1) — template-parts/course-card.php on top of .pgs-card.
   ========================================================================== */

/* No thumbnail (decision C5): navy gradient with the class name and the PGS badge. */
.pgs-course-card__placeholder {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 16px;
	background:
		radial-gradient(70% 90% at 85% 10%, rgba(96, 184, 2, .35), transparent 60%),
		radial-gradient(60% 80% at 10% 100%, rgba(95, 140, 255, .25), transparent 60%),
		linear-gradient(135deg, var(--pgs-blue), var(--pgs-navy-deep));
}

.pgs-course-card__placeholder-text {
	color: #fff;
	font-family: var(--pgs-font-head);
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
	font-weight: 800;
	letter-spacing: -.5px;
	text-align: center;
	text-shadow: 0 2px 16px rgba(0, 19, 56, .45);
}

.pgs-course-card__placeholder-badge {
	position: absolute;
	right: 14px;
	bottom: 14px;
	z-index: 1;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	box-shadow: 0 4px 14px rgba(0, 19, 56, .35);
}

/* "View details" looks like a button, but clicks go to the card link underneath: the footer lets
   clicks through, only its real links (WhatsApp) catch them. */
.pgs-course-card .pgs-card__footer {
	pointer-events: none;
}

.pgs-course-card .pgs-card__footer a {
	pointer-events: auto;
}

.pgs-card--hover:hover .pgs-course-card__cta,
.pgs-card--hover:focus-within .pgs-course-card__cta {
	box-shadow: var(--pgs-glow-green);
}

.pgs-price__none {
	color: var(--pgs-text);
	font-weight: 700;
}

/* ==========================================================================
   Empty state (10.2.3) — "nothing found" message with a way forward.
   ========================================================================== */
.pgs-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	max-width: 620px;
	margin-inline: auto;
	padding: clamp(32px, 6vw, 56px) clamp(20px, 4vw, 40px);
	border: 1px dashed var(--pgs-border-strong);
	border-radius: var(--pgs-radius);
	background: var(--pgs-bg-alt);
	text-align: center;
}

.pgs-empty__icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--pgs-tint-green);
	color: var(--pgs-accent);
}

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

.pgs-empty__title {
	margin: 4px 0 0;
	font-size: var(--pgs-fs-h3);
}

.pgs-empty__text {
	max-width: 48ch;
	margin: 0;
	color: var(--pgs-text-body);
}

.pgs-empty .pgs-btn-group {
	justify-content: center;
	margin-top: 8px;
}

/* ==========================================================================
   Pagination (10.2.4) — numbered page links (paginate_links markup).
   ========================================================================== */
.pgs-pagination {
	margin-top: clamp(32px, 5vw, 48px);
}

.pgs-pagination__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pgs-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 44px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--pgs-border);
	border-radius: var(--pgs-radius-pill);
	background: var(--pgs-surface);
	color: var(--pgs-text);
	font-weight: 600;
	text-decoration: none;
	transition: border-color var(--pgs-duration) var(--pgs-ease), background-color var(--pgs-duration) var(--pgs-ease);
}

.pgs-pagination a.page-numbers:hover {
	border-color: var(--pgs-green);
	background: var(--pgs-tint-green);
}

.pgs-pagination .page-numbers.current {
	border-color: var(--pgs-navy);
	background: var(--pgs-navy);
	color: #fff;
}

.pgs-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
}

/* ---- Checklist (10.4.4): green check + text; `--2col` = two columns from 640px. ---- */
.pgs-checklist {
	display: grid;
	gap: 12px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

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

.pgs-checklist li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	color: var(--pgs-text-body);
	line-height: 1.6;
}

.pgs-checklist .pgs-icon {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin-top: 2px;
	color: var(--pgs-green);
}

/* ---- Video facade (10.4.4, doc 10): 16:9 thumbnail + play button; main.js swaps in the
   player on click. ---- */
.pgs-video {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--pgs-radius);
	background: var(--pgs-navy-deep);
	box-shadow: var(--pgs-shadow);
}

.pgs-video__facade,
.pgs-video__frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.pgs-video__facade {
	display: grid;
	place-items: center;
	color: var(--pgs-navy-deep);
}

.pgs-video__facade img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover; /* YouTube's 4:3 thumbnails lose their black bars */
	transition: transform var(--pgs-duration) var(--pgs-ease);
}

.pgs-video__play {
	position: relative;
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--pgs-grad-green);
	box-shadow: 0 0 0 10px rgba(96, 184, 2, .25), var(--pgs-shadow-lg);
	transition: transform var(--pgs-duration) var(--pgs-ease);
}

.pgs-video__play .pgs-icon {
	width: 30px;
	height: 30px;
	margin-left: 4px; /* the triangle looks centred */
	fill: currentColor;
}

.pgs-video__facade:hover img {
	transform: scale(1.03);
}

.pgs-video__facade:hover .pgs-video__play,
.pgs-video__facade:focus-visible .pgs-video__play {
	transform: scale(1.08);
}

.pgs-video__facade:focus-visible {
	outline: 3px solid var(--pgs-green);
	outline-offset: -3px;
}

/* ---- Chips (10.4.5): wrapping row of pills — icon, name, small meta (subjects included). ---- */
.pgs-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pgs-chips li {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.pgs-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	min-height: 44px;
	padding: 8px 16px 8px 12px;
	border: 1px solid var(--pgs-border);
	border-radius: var(--pgs-radius-pill);
	background: var(--pgs-surface);
	color: var(--pgs-text);
	font-size: var(--pgs-fs-small);
	font-weight: 600;
	line-height: 1.3;
}

.pgs-chip .pgs-icon {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	color: var(--pgs-green);
}

.pgs-chip__meta {
	color: var(--pgs-text-muted);
	font-size: 12px;
	font-weight: 500;
	white-space: nowrap;
}

/* ---- Small instructor card (10.4.6): avatar left, name / role / subjects right; with a link
   the whole card is clickable (the name's link stretches over it). ---- */
.pgs-instructor-card {
	flex-direction: row;
	gap: 16px;
	align-items: flex-start;
	height: 100%;
	padding: 20px;
}

.pgs-instructor-card__avatar {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 64px;
	height: 64px;
	overflow: hidden;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--pgs-green), var(--pgs-lime));
	color: var(--pgs-navy-deep);
	font-size: 20px;
	font-weight: 800;
}

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

.pgs-instructor-card__body {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.pgs-instructor-card__name {
	margin: 0;
	font-size: 1.125rem;
	line-height: 1.3;
}

.pgs-instructor-card__link {
	color: inherit;
	text-decoration: none;
}

.pgs-instructor-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.pgs-instructor-card__link:focus-visible {
	outline: none;
}

.pgs-instructor-card:focus-within {
	outline: 3px solid var(--pgs-green);
	outline-offset: 2px;
}

.pgs-instructor-card__role {
	margin: 0;
	color: var(--pgs-accent);
	font-size: var(--pgs-fs-small);
	font-weight: 600;
}

.pgs-instructor-card__teaches {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin: 6px 0 0;
	color: var(--pgs-text-body);
	font-size: var(--pgs-fs-small);
	line-height: 1.5;
}

.pgs-instructor-card__teaches .pgs-icon {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin-top: 3px;
	color: var(--pgs-green);
}

/* ---- Course grid (10.2.2; moved here in 10.4.8 for related courses / home): 1 → 2 (640px) →
   3 (1024px) → 4 columns on wide screens (1800px, content ≥ ~1476px — wide-screen decision
   2026-10-22). Cards stretch to equal height per row. */
.pgs-course-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--pgs-gutter);
	margin: 0;
	padding: 0;
	list-style: none;
}

.pgs-course-grid__item {
	display: flex;
	min-width: 0;
}

.pgs-course-grid__item > .pgs-card {
	flex: 1;
}

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

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

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

/* ==========================================================================
   Player — free preview video loaded on click (lessons page 10.6, home demo 11.5.1;
   assets/js/player.js). Moved here from pages/course.css so every page can use it.
   ========================================================================== */
.pgs-player__now {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	align-items: baseline;
	margin: 0 0 10px;
}

.pgs-player__now-label {
	color: var(--pgs-accent);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .5px;
	text-transform: uppercase;
}

.pgs-player__now-title {
	color: var(--pgs-text);
	font-weight: 600;
}

.pgs-player {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--pgs-radius);
	background: var(--pgs-navy-deep);
	box-shadow: var(--pgs-shadow);
}

.pgs-player__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .55;
}

.pgs-player__play {
	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--pgs-navy-deep);
	cursor: pointer;
}

.pgs-player__play:hover .pgs-video__play,
.pgs-player__play:focus-visible .pgs-video__play {
	transform: scale(1.08);
}

.pgs-player__play:focus-visible {
	outline: 3px solid var(--pgs-green);
	outline-offset: -3px;
}


/* ---- Player (10.6.3): the iframe fills the 16:9 box; a dimmed, waiting play button while the
   lesson's player URL loads. ---- */
.pgs-player__frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.pgs-player[aria-busy="true"] .pgs-player__play {
	cursor: progress;
}

.pgs-player[aria-busy="true"] .pgs-video__play {
	opacity: .6;
	animation: pgs-pulse 1s ease-in-out infinite alternate;
}

@keyframes pgs-pulse {
	to {
		transform: scale(.9);
	}
}

@media (prefers-reduced-motion: reduce) {
	.pgs-player[aria-busy="true"] .pgs-video__play {
		animation: none;
	}
}

/* ---- Player message when a preview cannot load (10.6.6): centred on the navy player ---- */
.pgs-player__error {
	position: relative;
	display: grid;
	justify-items: center;
	gap: 14px;
	max-width: 420px;
	padding: 20px;
	color: #fff;
	text-align: center;
}

.pgs-player__error p {
	margin: 0;
	font-size: var(--pgs-fs-small);
	line-height: 1.6;
}

.pgs-player__error .pgs-btn {
	border-color: rgba(255, 255, 255, .5);
	background: transparent;
	color: #fff;
}

.pgs-player__error .pgs-btn:hover,
.pgs-player__error .pgs-btn:focus-visible {
	border-color: var(--pgs-lime);
	background: rgba(255, 255, 255, .08);
}

/* ==========================================================================
   Blog card + grid (11.7.1; the blog list in 12.4 uses them too) — on the .pgs-card base
   ========================================================================== */
.pgs-blog-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--pgs-gutter);
	margin: 0;
	padding: 0;
	list-style: none;
}

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

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

.pgs-blog-grid > li {
	display: flex;
	min-width: 0;
}

.pgs-blog-grid > li > .pgs-card {
	flex: 1;
}

.pgs-blog-card .pgs-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pgs-blog-card__excerpt {
	margin: 0;
	color: var(--pgs-text-body);
	font-size: var(--pgs-fs-small);
	line-height: 1.6;
}

.pgs-blog-card__meta {
	margin-top: auto;
	padding-top: 4px;
}

.pgs-blog-card__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--pgs-accent);
	font-weight: 700;
}

.pgs-blog-card__more .pgs-icon {
	width: 16px;
	height: 16px;
	transition: transform var(--pgs-duration) var(--pgs-ease);
}

.pgs-blog-card:hover .pgs-blog-card__more .pgs-icon,
.pgs-blog-card:focus-within .pgs-blog-card__more .pgs-icon {
	transform: translateX(4px);
}

/* ---- Alumni card + grid (11.6.1, shared with the Alumni page 12.2.3 — moved from home.css): 1 → 2 → 4 per row; green marks badge on the photo. */
.pgs-alumni-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

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

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

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

.pgs-alumni-card {
	display: flex;
	flex: 1;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--pgs-border);
	border-radius: var(--pgs-radius);
	background: var(--pgs-surface);
	box-shadow: var(--pgs-shadow);
}

.pgs-alumni-card__photo {
	position: relative;
	order: -1; /* on top, though after the name in the markup */
	aspect-ratio: 4 / 3;
	background: var(--pgs-surface-2);
}

.pgs-alumni-card__photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 25%;
}

.pgs-alumni-card__initials {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background:
		radial-gradient(circle at 70% 20%, rgba(96, 184, 2, .25), transparent 55%),
		linear-gradient(160deg, #E9F0FF, #F3F9EA);
	color: var(--pgs-navy);
	font-family: var(--pgs-font-head);
	font-size: clamp(2.75rem, 2rem + 3vw, 3.75rem);
	font-weight: 800;
	letter-spacing: 1px;
}

/* Marks badge: sits on the photo's bottom-left corner. */
.pgs-alumni-card__marks {
	position: absolute;
	bottom: 12px;
	left: 12px;
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	margin: 0;
	padding: 6px 12px;
	border-radius: var(--pgs-radius-pill);
	background: var(--pgs-grad-green);
	box-shadow: 0 8px 20px rgba(0, 19, 56, .18);
	color: var(--pgs-navy-deep);
	font-variant-numeric: tabular-nums;
	line-height: 1.2;
}

.pgs-alumni-card__marks strong {
	font-family: var(--pgs-font-head);
	font-size: 1.0625rem;
	font-weight: 800;
}

.pgs-alumni-card__pct {
	font-size: var(--pgs-fs-small);
	font-weight: 700;
}

.pgs-alumni-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 6px;
	padding: 18px 20px 20px;
}

.pgs-alumni-card__name {
	margin: 0;
	font-size: 1.1875rem;
}

.pgs-alumni-card__meta {
	margin: 0;
	color: var(--pgs-text-body);
	font-size: var(--pgs-fs-small);
}

.pgs-alumni-card__position {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: auto 0 0;
	padding-top: 8px;
	color: var(--pgs-accent);
	font-size: var(--pgs-fs-small);
	font-weight: 700;
}

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

/* ---- Class card + grid (11.3.1, shared with the 404 page 12.6.2 — moved from home.css): 2 → 3 → 4 → 7 per row; navy on hover / focus. */
.pgs-class-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

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

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

@media (min-width: 1200px) {
	.pgs-class-grid {
		grid-template-columns: repeat(7, minmax(0, 1fr));
	}
}

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

.pgs-class-card {
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 20px 12px;
	border: 1px solid var(--pgs-border);
	border-radius: var(--pgs-radius);
	background: var(--pgs-grad-card), var(--pgs-surface);
	box-shadow: var(--pgs-shadow);
	color: var(--pgs-text);
	text-align: center;
	text-decoration: none;
	transition:
		transform var(--pgs-duration) var(--pgs-ease),
		box-shadow var(--pgs-duration) var(--pgs-ease),
		background-color var(--pgs-duration) var(--pgs-ease),
		border-color var(--pgs-duration) var(--pgs-ease),
		color var(--pgs-duration) var(--pgs-ease);
}

.pgs-class-card__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-bottom: 6px;
	border-radius: 14px;
	background: var(--pgs-tint-green);
	color: var(--pgs-accent);
	transition: background-color var(--pgs-duration) var(--pgs-ease), color var(--pgs-duration) var(--pgs-ease);
}

.pgs-class-card__icon .pgs-icon {
	width: 26px;
	height: 26px;
}

.pgs-class-card__name {
	font-family: var(--pgs-font-head);
	font-size: 1.125rem;
	font-weight: 800;
	line-height: 1.2;
}

.pgs-class-card__count {
	color: var(--pgs-text-body);
	font-size: var(--pgs-fs-small);
	font-weight: 500;
	transition: color var(--pgs-duration) var(--pgs-ease);
}

.pgs-class-card__arrow {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 16px;
	height: 16px;
	color: var(--pgs-accent);
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity var(--pgs-duration) var(--pgs-ease), transform var(--pgs-duration) var(--pgs-ease);
}

.pgs-class-card:hover,
.pgs-class-card:focus-visible {
	border-color: var(--pgs-navy);
	background: var(--pgs-navy);
	box-shadow: var(--pgs-shadow-lg);
	color: #fff;
	transform: translateY(-4px);
}

.pgs-class-card:focus-visible {
	outline: 3px solid var(--pgs-green);
	outline-offset: 3px;
}

.pgs-class-card:hover .pgs-class-card__icon,
.pgs-class-card:focus-visible .pgs-class-card__icon {
	background: var(--pgs-green);
	color: var(--pgs-navy-deep);
}

.pgs-class-card:hover .pgs-class-card__count,
.pgs-class-card:focus-visible .pgs-class-card__count {
	color: rgba(255, 255, 255, .85);
}

.pgs-class-card:hover .pgs-class-card__arrow,
.pgs-class-card:focus-visible .pgs-class-card__arrow {
	color: var(--pgs-green);
	opacity: 1;
	transform: none;
}

/* No courses yet: quieter card. */
.pgs-class-card--soon {
	border-style: dashed;
	background: var(--pgs-bg-alt);
	box-shadow: none;
}

.pgs-class-card--soon .pgs-class-card__icon {
	background: var(--pgs-fill);
	color: var(--pgs-text-muted);
}

.pgs-class-card--soon .pgs-class-card__count {
	font-style: italic;
}
