/**
 * Blog pages — all styles for this page, complete in this one file.
 * Loaded only on the blog, posts, archives and search. The site frame (base, header, menu, footer) is in assets/css/core/.
 *
 * Contents:
 *   1. Building blocks (buttons, cards, page hero, CTA …)
 *   2. Blog pages layout
 */

/* ========================================================================
   1. Building blocks (buttons, cards, page hero, CTA …)
   ======================================================================== */

/* ==========================================================================
   Shared UI components
   Grids, breadcrumbs, page hero, program & post cards, filter tabs, team, CTA, cards, chips, pagination, WhatsApp button.
   ========================================================================== */

/* ---------- Grids ---------- */

.card-grid {
	display: grid;
	gap: clamp(18px, 2.4vw, 28px);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
}

@media (min-width: 700px) {
	.card-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1040px) {
	.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
	font-size: 0.82rem;
	font-weight: 600;
}

.breadcrumbs li {
	display: flex;
	align-items: center;
	gap: 6px;
	color: rgba(255, 255, 255, 0.72);
}

.breadcrumbs li + li::before {
	content: "/";
	opacity: 0.5;
}

.breadcrumbs a {
	color: #fff;
	text-decoration: none;
}

.breadcrumbs a:hover {
	text-decoration: underline;
}

.breadcrumbs [aria-current] {
	color: var(--lime);
}

/* ---------- Page hero ---------- */

.page-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(380px, 52vh, 560px);
	padding-block: clamp(110px, 12vw, 150px) clamp(48px, 6vw, 80px);
	color: #fff;
	overflow: hidden;
	isolation: isolate;
}

.page-hero--sm {
	min-height: clamp(320px, 42vh, 440px);
}

.page-hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.page-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	animation: heroZoom 18s var(--ease) both;
}

.page-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(15, 36, 29, 0.35) 0%, rgba(15, 36, 29, 0.25) 40%, rgba(15, 36, 29, 0.88) 100%),
		linear-gradient(90deg, rgba(15, 36, 29, 0.6) 0%, rgba(15, 36, 29, 0) 70%);
}

.page-hero__inner {
	max-width: 1320px;
}

.page-hero__title {
	max-width: 17ch;
	margin-bottom: 0.3em;
	color: #fff;
	animation: fadeUp 1s var(--ease) 0.1s both;
}

.page-hero__text {
	max-width: 60ch;
	margin-bottom: 26px;
	font-size: var(--fs-lg);
	color: rgba(255, 255, 255, 0.85);
	animation: fadeUp 1s var(--ease) 0.2s both;
}

.page-hero .btn-row {
	animation: fadeUp 1s var(--ease) 0.3s both;
}

@keyframes heroZoom {
	from { transform: scale(1.12); }
	to { transform: scale(1); }
}

@keyframes fadeUp {
	from { opacity: 0; transform: translateY(24px); }
	to { opacity: 1; transform: none; }
}

/* ---------- Program card ---------- */

.program-card {
	display: flex;
	flex-direction: column;
	border-radius: var(--radius-lg);
	background: var(--paper);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.program-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow);
}

.program-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

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

.program-card:hover .program-card__media img {
	transform: scale(1.07);
}

.program-card__media::after {
	content: "";
	position: absolute;
	inset: 50% 0 0;
	background: linear-gradient(transparent, rgba(15, 36, 29, 0.55));
}

.program-card__badge {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 1;
	padding: 6px 12px;
	border-radius: var(--pill);
	background: var(--saffron);
	color: var(--ink);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.program-card__duration {
	position: absolute;
	left: 16px;
	bottom: 14px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: var(--pill);
	background: rgba(255, 255, 255, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.35);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
}

.program-card__duration .icon {
	width: 15px;
	height: 15px;
}

.program-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 22px 24px 22px;
}

.program-card__cat {
	margin: 0 0 6px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--moss);
}

.program-card__title {
	margin: 0 0 10px;
	font-size: 1.32rem;
	line-height: 1.2;
}

.program-card__title a {
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0 1px;
	background-repeat: no-repeat;
	background-position: 0 100%;
	transition: background-size 0.5s var(--ease);
}

.program-card:hover .program-card__title a {
	background-size: 100% 1px;
}

.program-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.program-card {
	position: relative;
}

.program-card__excerpt {
	flex: 1;
	margin-bottom: 18px;
	font-size: 0.93rem;
	color: var(--muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.program-card__foot {
	display: flex;
	align-items: flex-end;
	gap: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--line);
}

.program-card__foot small {
	display: block;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}

.program-card__foot strong {
	font-size: 1.02rem;
	color: var(--ink);
}

.program-card__arrow {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	margin-left: auto;
	border-radius: 50%;
	background: var(--sand);
	color: var(--ink);
	transition: background-color 0.3s, color 0.3s, transform 0.4s var(--ease);
}

.program-card:hover .program-card__arrow {
	background: var(--coral-deep);
	color: #fff;
	transform: rotate(-45deg);
}

.program-card mark.tbc {
	position: relative;
	z-index: 1;
}

.program-card.is-hidden {
	display: none;
}

/* ---------- Post card ---------- */

.post-card {
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: var(--radius-lg);
	background: var(--paper);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.post-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow);
}

.post-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

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

.post-card:hover .post-card__media img {
	transform: scale(1.06);
}

.post-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 22px 24px 26px;
}

.post-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--muted);
}

.post-card__title {
	font-size: 1.3rem;
}

.post-card__title a {
	text-decoration: none;
}

.post-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.post-card__excerpt {
	flex: 1;
	font-size: 0.93rem;
	color: var(--muted);
}

.post-card .link-arrow {
	position: relative;
	z-index: 1;
	align-self: flex-start;
}

.tag {
	display: inline-block;
	padding: 3px 10px;
	border-radius: var(--pill);
	background: var(--sand);
	color: var(--moss);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
}

/* ---------- Filter tabs ---------- */

.filter-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 32px;
	padding-bottom: 6px;
	overflow-x: auto;
	scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
	display: none;
}

.filter-tabs--center {
	justify-content: flex-start;
}

@media (min-width: 1100px) {
	.filter-tabs--center {
		justify-content: center;
		flex-wrap: wrap;
	}
}

.filter-tab {
	flex: none;
	padding: 10px 18px;
	border: 1.5px solid var(--line);
	border-radius: var(--pill);
	background: var(--paper);
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--ink);
	transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.filter-tab:hover {
	border-color: var(--ink);
}

.filter-tab.is-active {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
}

/* ---------- Team ---------- */

.team-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
}

@media (min-width: 1100px) {
	.team-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.team-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.team-grid--2 {
	max-width: 1000px;
	margin-inline: auto;
}

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

.team-card {
	position: relative;
	border-radius: var(--radius-lg);
	background: var(--paper);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.team-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow);
}

.team-card__photo {
	aspect-ratio: 1 / 1.05;
	overflow: hidden;
	background: var(--sand);
}

.team-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
	transition: transform 1.2s var(--ease);
}

.team-card:hover .team-card__photo img {
	transform: scale(1.06);
}

.team-card__body {
	padding: 18px 20px 22px;
}

.team-card__role {
	margin: 0 0 4px;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--coral-deep);
}

.team-card__name {
	margin-bottom: 6px;
	font-size: 1.28rem;
}

.team-card__title {
	margin: 0;
	font-size: 0.86rem;
	color: var(--muted);
	line-height: 1.5;
}

.team-card__bio {
	margin: 14px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--line);
	font-size: 0.95rem;
}

.team-card--bio {
	display: grid;
}

@media (min-width: 620px) {
	.team-card--bio {
		grid-template-columns: 0.8fr 1.2fr;
	}
	.team-card--bio .team-card__photo {
		aspect-ratio: auto;
		height: 100%;
		min-height: 320px;
	}
	.team-card--bio .team-card__body {
		padding: 28px;
		align-self: center;
	}
}

/* ---------- CTA banner ---------- */

.cta-banner {
	padding-block: 0 var(--section);
}

.section--sand + .cta-banner,
.related + .cta-banner {
	padding-top: 0;
	background: linear-gradient(var(--sand) 50%, var(--cream) 50%);
}

.cta-banner__card {
	position: relative;
	display: grid;
	min-height: 380px;
	padding: clamp(36px, 6vw, 80px);
	border-radius: var(--radius-lg);
	background: var(--ink);
	color: rgba(255, 255, 255, 0.85);
	overflow: hidden;
	isolation: isolate;
	align-items: center;
}

.cta-banner__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.cta-banner__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 6s var(--ease);
}

.cta-banner__card:hover .cta-banner__media img {
	transform: scale(1.05);
}

.cta-banner__card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(15, 36, 29, 0.95) 0%, rgba(15, 36, 29, 0.75) 50%, rgba(15, 36, 29, 0.25) 100%);
}

.cta-banner__content {
	max-width: 620px;
}

.cta-banner__title {
	font-size: clamp(2rem, 1.4rem + 2.4vw, 3.3rem);
	color: #fff;
}

.cta-banner__content > p:not(.eyebrow) {
	font-size: var(--fs-lg);
	margin-bottom: 28px;
}

/* ---------- Cards ---------- */

.icon-card,
.glass-card {
	padding: 30px 28px;
	border-radius: var(--radius-lg);
	background: var(--paper);
	box-shadow: var(--shadow-sm);
	transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.icon-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow);
}

.icon-card h3,
.glass-card h3 {
	font-size: 1.3rem;
}

.icon-card p,
.glass-card p {
	margin: 0;
	font-size: 0.95rem;
	color: var(--muted);
}

.icon-card__icon,
.glass-card__icon {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	margin-bottom: 22px;
	border-radius: 18px;
	background: var(--sand);
	color: var(--moss);
}

.icon-card__icon .icon,
.glass-card__icon .icon {
	width: 28px;
	height: 28px;
}

.glass-card {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--line-light);
	box-shadow: none;
}

.glass-card p {
	color: rgba(255, 255, 255, 0.7);
}

.glass-card__icon {
	background: rgba(159, 217, 79, 0.12);
	color: var(--lime);
}

.info-card {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	padding: 22px 24px;
	border-radius: var(--radius);
	background: var(--sand);
}

.info-card > .icon {
	width: 28px;
	height: 28px;
	color: var(--moss);
}

.info-card p {
	flex: 1;
	min-width: 220px;
	margin: 0;
}

.policy-strip {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-top: 32px;
	padding: 16px 20px;
	border: 1px dashed var(--line);
	border-radius: var(--radius-sm);
	font-size: var(--fs-sm);
	color: var(--muted);
}

.policy-strip .icon {
	margin-top: 3px;
	color: var(--moss);
}

.policy-strip p {
	margin: 0;
}

.policy-strip a {
	color: var(--coral-deep);
	font-weight: 700;
}

.check-list {
	display: grid;
	gap: 12px;
}

.check-list li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.check-list .icon {
	width: 22px;
	height: 22px;
	padding: 3px;
	margin-top: 2px;
	border-radius: 50%;
	background: rgba(95, 143, 47, 0.14);
	color: var(--moss);
	stroke-width: 2.4;
}

.check-list--x .icon {
	background: rgba(196, 59, 51, 0.1);
	color: var(--coral-deep);
}

.check-list--lg li {
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--ink);
}

.help-card {
	padding: 26px;
	border-radius: var(--radius);
	background: var(--ink);
	color: rgba(255, 255, 255, 0.78);
}

.help-card h2 {
	font-size: 1.45rem;
	color: #fff;
}

.help-card .btn {
	margin-top: 6px;
}

.help-card .btn--outline {
	--btn-fg: #fff;
}

.help-card__phone {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

/* Booking card (program sidebar + blog aside) */
.book-card {
	padding: 26px;
	border-radius: var(--radius-lg);
	background: var(--paper);
	box-shadow: var(--shadow);
}

.book-card__img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: var(--radius-sm);
	margin-bottom: 16px;
}

.book-card__title {
	font-size: 1.35rem;
}

/* ---------- Chips ---------- */

.chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.chip {
	display: inline-flex;
	align-items: center;
	padding: 10px 18px;
	border: 1.5px solid var(--line);
	border-radius: var(--pill);
	background: var(--paper);
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--ink);
	text-decoration: none;
	transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}

.chip:hover {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
	transform: translateY(-2px);
}

/* ---------- Empty state / search ---------- */

.empty-state {
	max-width: 560px;
	margin: 0 auto;
	padding: 56px 24px;
	text-align: center;
}

.empty-state > .icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 18px;
	color: var(--moss);
}

.search-form {
	display: flex;
	gap: 8px;
	max-width: 560px;
}

.search-bar {
	display: flex;
	justify-content: center;
	margin-bottom: 40px;
}

.search-form .field {
	flex: 1;
	min-height: 52px;
	padding: 12px 22px;
	border: 1.5px solid var(--line);
	border-radius: var(--pill);
	background: var(--paper);
}

.search-form .btn {
	width: 52px;
	padding: 0;
}

/* ---------- Pagination ---------- */

.pagination {
	margin-top: 56px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.page-numbers {
	display: grid;
	place-items: center;
	min-width: 46px;
	height: 46px;
	padding: 0 12px;
	border: 1.5px solid var(--line);
	border-radius: var(--pill);
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.3s, color 0.3s;
}

.page-numbers.current,
.page-numbers:hover {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
}

/* ---------- Floating WhatsApp ---------- */

.whatsapp-float {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 90;
	display: flex;
	align-items: center;
	gap: 10px;
	height: 58px;
	padding: 0 16px;
	border-radius: var(--pill);
	background: #1f8f4e;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 16px 40px -12px rgba(31, 143, 78, 0.7);
	transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
	animation: floatIn 0.8s var(--ease) 1.2s both;
}

.whatsapp-float .icon {
	width: 28px;
	height: 28px;
}

.whatsapp-float:hover {
	transform: translateY(-4px);
}

.whatsapp-float::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background: #1f8f4e;
	animation: pulse 2.8s var(--ease) infinite;
}

.whatsapp-float__label {
	display: none;
}

@media (min-width: 900px) {
	.whatsapp-float__label {
		display: inline;
	}
}

@keyframes pulse {
	0% { transform: scale(1); opacity: 0.6; }
	80%, 100% { transform: scale(1.35); opacity: 0; }
}

@keyframes floatIn {
	from { opacity: 0; transform: translateY(30px); }
	to { opacity: 1; transform: none; }
}

/* ---------- Misc ---------- */

.center-link {
	margin-top: 40px;
	text-align: center;
}

.hp-field {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Room prices (template-parts/components/room-prices.php, booking form) ---------- */

.room-prices,
.room-choice {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.room-tile {
	position: relative;
	display: grid;
	gap: 2px;
	padding: 14px 14px 12px;
	border: 1.5px solid var(--line);
	border-radius: 16px;
	background: var(--paper);
	transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s, transform 0.25s var(--ease);
}

label.room-tile {
	cursor: pointer;
}

label.room-tile:hover {
	border-color: rgba(15, 36, 29, 0.3);
	transform: translateY(-2px);
}

.room-tile input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

/* Selected tile: dark with a tick. */
.room-tile:has(input:checked) {
	border-color: var(--ink);
	background: var(--ink);
	box-shadow: 0 14px 28px -16px rgba(15, 36, 29, 0.6);
}

.room-tile:has(input:checked) .room-tile__name,
.room-tile:has(input:checked) .room-tile__price {
	color: #fff;
}

.room-tile:has(input:checked) .room-tile__note {
	color: rgba(255, 255, 255, 0.65);
}

.room-tile:has(input:checked)::after {
	content: "";
	position: absolute;
	right: 12px;
	bottom: 14px;
	width: 10px;
	height: 6px;
	border-left: 2px solid var(--lime);
	border-bottom: 2px solid var(--lime);
	transform: rotate(-45deg);
}

.room-tile:has(input:focus-visible) {
	outline: 3px solid var(--saffron);
	outline-offset: 2px;
}

.room-tile__badge {
	position: absolute;
	top: -9px;
	right: 10px;
	padding: 2px 9px;
	border-radius: var(--pill);
	background: var(--lime);
	color: var(--ink);
	font-size: 0.66rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.room-tile__name {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--muted);
}

.room-tile__name .icon {
	width: 16px;
	height: 16px;
}

.room-tile__price {
	font-family: var(--serif);
	font-size: 1.35rem;
	font-weight: 500;
	line-height: 1.2;
	color: var(--ink);
}

.room-tile__note {
	font-size: 0.72rem;
	color: var(--muted);
}

/* ---------- Teacher cards (v2): colour per card, quote on hover, full profile ---------- */

.team-card:nth-child(6n + 1) { --tc: #5f8f2f; --tc2: #9fd94f; }
.team-card:nth-child(6n + 2) { --tc: #c43b33; --tc2: #f0766d; }
.team-card:nth-child(6n + 3) { --tc: #2f7fc8; --tc2: #5aaef0; }
.team-card:nth-child(6n + 4) { --tc: #c98420; --tc2: #f0c060; }
.team-card:nth-child(6n + 5) { --tc: #7357c4; --tc2: #a48ce6; }
.team-card:nth-child(6n + 6) { --tc: #23897d; --tc2: #4fc3b5; }

.team-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--line);
	transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s ease;
}

.team-card:hover {
	border-color: color-mix(in srgb, var(--tc) 45%, transparent);
	box-shadow: 0 30px 56px -32px var(--tc);
}

/* Colour bar that draws across the top of the text on hover. */
.team-card__body {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.team-card__body::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--tc2), var(--tc));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.6s var(--ease);
}

.team-card:hover .team-card__body::before {
	transform: scaleX(1);
}

.team-card__photo {
	position: relative;
}

/* Monogram when there is no photo yet. */
.team-card__monogram {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	min-height: 240px;
	background:
		radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.35), transparent 55%),
		linear-gradient(150deg, var(--tc2), var(--tc));
	font-family: var(--serif);
	font-size: clamp(3.5rem, 6vw, 5rem);
	color: #fff;
	letter-spacing: 0.04em;
}

/* Quote slides up over the photo on hover. */
.team-card__quote {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 12px;
	margin: 0;
	padding: 14px 16px 14px 40px;
	border-radius: 16px;
	background: rgba(15, 36, 29, 0.82);
	backdrop-filter: blur(6px);
	color: #fff;
	font-family: var(--serif);
	font-size: 0.98rem;
	font-style: italic;
	line-height: 1.45;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.45s ease, transform 0.5s var(--ease);
}

.team-card__quote::before {
	content: "\201C";
	position: absolute;
	left: 12px;
	top: 2px;
	font-size: 2.4rem;
	color: var(--tc2);
}

.team-card:hover .team-card__quote,
.team-card:focus-within .team-card__quote {
	opacity: 1;
	transform: none;
}

.team-card__role {
	color: var(--tc);
}

.team-card__name {
	margin: 0;
	transition: color 0.3s ease;
}

.team-card:hover .team-card__name {
	color: var(--tc);
}

.team-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.team-card__tags li {
	padding: 4px 11px;
	border-radius: var(--pill);
	background: color-mix(in srgb, var(--tc2) 18%, var(--paper));
	font-size: 0.76rem;
	font-weight: 700;
	color: color-mix(in srgb, var(--tc) 80%, #000);
}

.team-card__bio {
	margin: 4px 0 0;
}

.team-card__creds {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 6px 12px;
	margin: 2px 0 0;
	padding: 0;
	list-style: none;
}

.team-card__creds li {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 0.84rem;
	font-weight: 700;
	color: var(--ink);
}

.team-card__creds .icon {
	flex: none;
	width: 16px;
	height: 16px;
	color: var(--tc);
}

/* Read full profile */
.team-card__more {
	margin-top: auto;
	padding-top: 6px;
}

.team-card__more summary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: var(--pill);
	border: 1.5px solid color-mix(in srgb, var(--tc) 40%, transparent);
	font-size: 0.84rem;
	font-weight: 800;
	color: var(--tc);
	cursor: pointer;
	list-style: none;
	transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.team-card__more summary::-webkit-details-marker {
	display: none;
}

.team-card__more summary:hover {
	background: var(--tc);
	border-color: var(--tc);
	color: #fff;
}

.team-card__more summary .icon {
	width: 15px;
	height: 15px;
	transform: rotate(90deg);
	transition: transform 0.35s var(--ease);
}

.team-card__more[open] summary .icon {
	transform: rotate(-90deg);
}

.team-card__more [data-close],
.team-card__more[open] [data-open] {
	display: none;
}

.team-card__more[open] [data-close] {
	display: inline;
}

.team-card__profile {
	display: grid;
	gap: 12px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px dashed var(--line);
	animation: profile-in 0.45s var(--ease);
}

@keyframes profile-in {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
}

.team-card__profile p {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.7;
	color: var(--muted);
}

.team-card__profile .team-card__label {
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tc);
}

.team-card__skills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: -4px 0 0;
	padding: 0;
	list-style: none;
}

.team-card__skills li {
	padding: 4px 10px;
	border-radius: 8px;
	border: 1px solid color-mix(in srgb, var(--tc) 30%, transparent);
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--ink);
}

.team-card__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin: 0;
}

.team-card__stats > div {
	padding: 10px;
	border-radius: 14px;
	background: color-mix(in srgb, var(--tc2) 14%, var(--paper));
	text-align: center;
}

.team-card__stats dt {
	font-family: var(--serif);
	font-size: 1.35rem;
	color: var(--tc);
}

.team-card__stats dd {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--muted);
}

.team-card__fb {
	align-self: flex-start;
}

@media (hover: none) {
	.team-card__quote {
		display: none;
	}
}

/* Founder / management cards keep the photo beside the text. */
.team-card.team-card--bio {
	display: grid;
}

.team-card--bio .team-card__body {
	justify-content: center;
}

/* Social buttons on teacher cards (official brand colours on hover). */
.team-card__social {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
}

.team-card__social .team-card__fb {
	margin-top: 0;
}

.team-card__ig {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px 5px 8px;
	border-radius: var(--pill);
	background: rgba(214, 36, 159, 0.1);
	font-size: 0.8rem;
	font-weight: 800;
	color: #c13584;
	text-decoration: none;
	transition: background 0.3s ease, color 0.3s ease, transform 0.35s var(--ease);
}

.team-card__ig .icon {
	width: 16px;
	height: 16px;
}

.team-card__ig:hover,
.team-card__ig:focus-visible {
	background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
	color: #fff;
	transform: translateY(-2px);
}

/* ---------- Choose your room ---------- */

.home-rooms {
	background:
		radial-gradient(45% 50% at 0% 0%, rgba(159, 217, 79, 0.14), transparent 70%),
		radial-gradient(45% 50% at 100% 100%, rgba(227, 161, 63, 0.14), transparent 70%),
		var(--cream);
}

.room-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(18px, 2.4vw, 30px);
}

.room-card--lime    { --rc: #5f8f2f; --rc2: #9fd94f; }
.room-card--saffron { --rc: #b8741a; --rc2: #f0c060; }

.room-cards .room-card {
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: var(--radius-lg);
	background: var(--paper);
	border: 1px solid var(--line);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	transition: opacity 0.9s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s ease, border-color 0.4s ease;
}

.room-cards .room-card:hover {
	transform: translateY(-6px);
	border-color: color-mix(in srgb, var(--rc) 40%, transparent);
	box-shadow: 0 34px 60px -34px var(--rc);
}

/* Photos */
.room-card__media {
	position: relative;
	padding: 12px 12px 0;
}

.room-card__main {
	margin: 0;
	aspect-ratio: 4 / 3;
	border-radius: 20px;
	overflow: hidden;
	background: var(--sand);
}

.room-card__main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--ease), opacity 0.18s ease;
}

.room-card__main img.is-swapping {
	opacity: 0;
}

.room-card:hover .room-card__main img {
	transform: scale(1.05);
}

.room-card__badge {
	position: absolute;
	top: 26px;
	left: 26px;
	padding: 6px 14px;
	border-radius: var(--pill);
	background: var(--rc);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 800;
	box-shadow: 0 10px 20px -10px var(--rc);
}

.room-card__badge--alt {
	background: var(--ink);
	color: var(--rc2);
}

.room-card__thumbs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin-top: 8px;
}

.room-card__thumb {
	padding: 0;
	aspect-ratio: 4 / 3;
	border: 2px solid transparent;
	border-radius: 12px;
	overflow: hidden;
	background: var(--sand);
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease);
}

.room-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.room-card__thumb:hover {
	opacity: 1;
	transform: translateY(-2px);
}

.room-card__thumb.is-active {
	opacity: 1;
	border-color: var(--rc);
}

/* Text */
.room-card__body {
	display: flex;
	flex-direction: column;
	gap: 14px;
	flex: 1;
	padding: 20px clamp(18px, 2.4vw, 28px) 26px;
}

.room-card__top {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
}

.room-card__name {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.8rem);
}

.room-card__icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 14px;
	background: color-mix(in srgb, var(--rc2) 22%, var(--paper));
	color: var(--rc);
	transition: background 0.35s ease, color 0.35s ease, transform 0.45s var(--ease);
}

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

.room-card:hover .room-card__icon {
	background: var(--rc);
	color: #fff;
	transform: rotate(-8deg);
}

.room-card__price {
	text-align: right;
}

.room-card__price small {
	display: block;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}

.room-card__price strong {
	font-family: var(--serif);
	font-size: clamp(1.5rem, 1.3rem + 0.7vw, 2rem);
	font-weight: 500;
	line-height: 1.1;
	color: var(--rc);
	white-space: nowrap;
}

.room-card__lead {
	margin: 0;
	color: var(--muted);
}

.room-card__feats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.room-card__feats li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--ink);
}

.room-card__feats .icon {
	flex: none;
	width: 20px;
	height: 20px;
	padding: 3px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--rc2) 35%, var(--paper));
	color: var(--rc);
	stroke-width: 3;
}

.room-card__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: auto;
	padding: 14px 22px;
	border-radius: var(--pill);
	background: var(--ink);
	color: #fff;
	font-weight: 800;
	text-decoration: none;
	transition: background 0.35s ease, transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.room-card__btn .icon {
	width: 17px;
	height: 17px;
	transition: transform 0.35s var(--ease);
}

.room-card:hover .room-card__btn {
	background: linear-gradient(120deg, var(--rc2), var(--rc));
	box-shadow: 0 14px 28px -14px var(--rc);
}

.room-card__btn:hover .icon {
	transform: translateX(4px);
}

/* Included with every room */
.room-included {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px 24px;
	margin-top: 26px;
	padding: 16px 22px;
	border-radius: var(--pill);
	background: var(--paper);
	border: 1px dashed rgba(95, 143, 47, 0.45);
}

.room-included__title {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--moss);
}

.room-included ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.room-included li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--ink);
}

.room-included li span {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(159, 217, 79, 0.2);
	color: var(--moss);
}

.room-included li .icon {
	width: 16px;
	height: 16px;
}

/* Facilities strip */
.room-facilities {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-top: 22px;
}

.room-facility {
	position: relative;
	margin: 0;
	aspect-ratio: 4 / 3;
	border-radius: 18px;
	overflow: hidden;
}

.room-facility img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1s var(--ease);
}

.room-facility::after {
	content: "";
	position: absolute;
	inset: 40% 0 0;
	background: linear-gradient(transparent, rgba(15, 36, 29, 0.8));
}

.room-facility figcaption {
	position: absolute;
	left: 14px;
	bottom: 12px;
	z-index: 1;
	font-weight: 800;
	font-size: 0.9rem;
	color: #fff;
	transition: transform 0.4s var(--ease);
}

.room-facility:hover img {
	transform: scale(1.08);
}

.room-facility:hover figcaption {
	transform: translateY(-4px);
}

/* Program pages: section spacing */
.program-rooms .section-head {
	margin-bottom: 26px;
}

@media (max-width: 899px) {
	.room-cards {
		grid-template-columns: 1fr;
	}

	.room-facilities {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.room-included {
		border-radius: var(--radius-lg);
	}
}

@media (max-width: 479px) {
	.room-card__feats {
		grid-template-columns: 1fr;
	}

	.room-card__top {
		flex-direction: column;
		align-items: flex-start;
	}

	.room-card__price {
		text-align: left;
	}
}

/* Price per course inside each room card (main menu pages). */
.room-card__list {
	padding: 14px;
	border-radius: 18px;
	background: color-mix(in srgb, var(--rc2) 12%, var(--cream));
	border: 1px solid color-mix(in srgb, var(--rc) 20%, transparent);
}

.room-card__list-head {
	margin: 0 0 8px;
	padding: 0 4px;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--rc);
}

.room-card__list ul {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.room-card__list a {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 14px;
	background: var(--paper);
	border: 1px solid transparent;
	color: var(--ink);
	text-decoration: none;
	transition: border-color 0.3s ease, transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.room-card__list a:hover {
	transform: translateX(4px);
	border-color: color-mix(in srgb, var(--rc) 45%, transparent);
	box-shadow: 0 12px 24px -18px var(--rc);
}

.room-card__list-name {
	display: flex;
	flex-direction: column;
	min-width: 0;
	font-weight: 700;
	font-size: 0.92rem;
	line-height: 1.3;
}

.room-card__list-name small {
	font-size: 0.74rem;
	font-weight: 600;
	color: var(--muted);
}

.room-card__list strong {
	font-family: var(--serif);
	font-size: 1.2rem;
	font-weight: 500;
	white-space: nowrap;
	color: var(--rc);
}

.room-card__list-go {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--rc2) 25%, var(--paper));
	color: var(--rc);
	transition: background 0.3s ease, color 0.3s ease;
}

.room-card__list-go .icon {
	width: 14px;
	height: 14px;
}

.room-card__list a:hover .room-card__list-go {
	background: var(--rc);
	color: #fff;
}

/* ========================================================================
   2. Blog pages layout
   ======================================================================== */

/* ==========================================================================
   Blog: posts page, single article, archives, search
   
   ========================================================================== */

.post-feature {
	position: relative;
	display: grid;
	margin-bottom: clamp(36px, 5vw, 56px);
	border-radius: var(--radius-lg);
	background: var(--paper);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
}

@media (min-width: 900px) {
	.post-feature {
		grid-template-columns: 1.2fr 1fr;
	}
}

.post-feature__media {
	display: block;
	min-height: 300px;
	overflow: hidden;
}

.post-feature__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--ease);
}

.post-feature:hover .post-feature__media img {
	transform: scale(1.05);
}

.post-feature__body {
	align-self: center;
	padding: clamp(26px, 4vw, 48px);
}

.post-feature__title {
	font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.5rem);
}

.post-feature__title a {
	text-decoration: none;
}

/* ---------- Single article ---------- */

.article-hero {
	padding-block: clamp(56px, 8vw, 100px) 32px;
	background:
		radial-gradient(50% 80% at 100% 0%, rgba(159, 217, 79, 0.16), transparent 70%),
		var(--sand);
}

.article-hero .breadcrumbs li,
.article-hero .breadcrumbs a {
	color: var(--muted);
}

.article-hero .breadcrumbs [aria-current] {
	color: var(--moss);
}

.article-hero__title {
	font-size: clamp(2.2rem, 1.5rem + 3vw, 3.8rem);
	font-weight: 300;
	letter-spacing: -0.02em;
}

.article-hero__lead {
	font-size: var(--fs-lg);
	color: var(--muted);
}

.article-thumb {
	max-width: 1120px;
	margin-top: -8px;
}

.article-thumb img {
	width: 100%;
	max-height: 600px;
	object-fit: cover;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
}

.article-layout {
	display: grid;
	gap: 48px;
	max-width: 1120px;
	padding-block: 48px var(--section);
}

@media (min-width: 1040px) {
	.article-layout {
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: 64px;
		align-items: start;
	}
	.article-aside {
		position: sticky;
		top: 150px;
	}
}

.article-share {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.article-share span {
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}

.article-share a {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--sand);
	color: var(--ink);
	transition: background-color 0.3s, color 0.3s;
}

.article-share a:hover {
	background: var(--ink);
	color: #fff;
}

.article-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 20px;
}

.article-tags a {
	padding: 5px 12px;
	border-radius: var(--pill);
	background: var(--sand);
	font-size: 0.82rem;
	font-weight: 700;
	text-decoration: none;
}

.book-card--mini p {
	color: var(--muted);
}

.post-nav {
	padding-bottom: var(--section);
}

.post-nav .nav-links {
	display: grid;
	gap: 16px;
	justify-content: stretch;
}

@media (min-width: 700px) {
	.post-nav .nav-links {
		grid-template-columns: 1fr 1fr;
	}
}

.post-nav a {
	display: grid;
	gap: 4px;
	height: 100%;
	padding: 20px 22px;
	border: 1.5px solid var(--line);
	border-radius: var(--radius);
	text-decoration: none;
	transition: border-color 0.3s;
}

.post-nav a:hover {
	border-color: var(--ink);
}

.post-nav .nav-next a {
	text-align: right;
}

.post-nav small {
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--moss);
}

.post-nav span {
	font-family: var(--serif);
	font-size: 1.15rem;
	color: var(--ink);
}

/* ---------- Comments ---------- */

.comments {
	padding-bottom: var(--section);
}

.comment-list {
	margin: 0 0 40px;
	padding: 0;
	list-style: none;
}

.comment-list .comment {
	padding: 20px 0;
	border-bottom: 1px solid var(--line);
}

.comment-list .children {
	list-style: none;
	padding-left: 28px;
}

.comment-author img {
	float: left;
	margin-right: 12px;
	border-radius: 50%;
}

.comment-metadata {
	font-size: 0.8rem;
	color: var(--muted);
}

.comment-form {
	display: grid;
	gap: 14px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1.5px solid var(--line);
	border-radius: 14px;
	background: var(--paper);
}

.comment-form label {
	display: block;
	margin-bottom: 4px;
	font-size: 0.86rem;
	font-weight: 700;
}

/* ---------- Reading progress (pages/blog.js) ---------- */

.reading-progress {
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	z-index: 200;
	height: 3px;
	background: linear-gradient(90deg, var(--coral-deep), var(--saffron));
	transform: scaleX(0);
	transform-origin: left;
}

.admin-bar .reading-progress {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .reading-progress {
		top: 46px;
	}
}

/* ---------- Page hero: stronger contrast so the title and text are easy to read ---------- */

.page-hero::after {
	background:
		linear-gradient(180deg, rgba(10, 24, 19, 0.45) 0%, rgba(10, 24, 19, 0.4) 40%, rgba(10, 24, 19, 0.92) 100%),
		linear-gradient(90deg, rgba(10, 24, 19, 0.82) 0%, rgba(10, 24, 19, 0.45) 50%, rgba(10, 24, 19, 0.1) 85%);
}

.page-hero .breadcrumbs,
.page-hero .eyebrow,
.page-hero__title,
.page-hero__text {
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.page-hero__text {
	color: rgba(255, 255, 255, 0.92);
}

/* ---------- Blog cards: a colour per card (--bc) for the strip, date chip, hover glow and button ---------- */

.card-grid > .post-card:nth-child(6n + 1) { --bc: #2f855a; }
.card-grid > .post-card:nth-child(6n + 2) { --bc: #805ad5; }
.card-grid > .post-card:nth-child(6n + 3) { --bc: #2b6cb0; }
.card-grid > .post-card:nth-child(6n + 4) { --bc: #c05621; }
.card-grid > .post-card:nth-child(6n + 5) { --bc: #d53f8c; }
.card-grid > .post-card:nth-child(6n + 6) { --bc: #0f8a8a; }

.post-card {
	--bc: #2f855a;
	border: 1px solid color-mix(in srgb, var(--bc) 16%, transparent);
	background: linear-gradient(180deg, #fff 55%, color-mix(in srgb, var(--bc) 7%, #fff));
}

/* Colour strip along the top of the card. */
.post-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	z-index: 2;
	height: 5px;
	background: linear-gradient(90deg, var(--bc), color-mix(in srgb, var(--bc) 40%, #fff));
}

/* Soft colour wash over the photo on hover. */
.post-card__media {
	position: relative;
}

.post-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, color-mix(in srgb, var(--bc) 45%, transparent), transparent 60%);
	opacity: 0;
	transition: opacity 0.5s ease;
}

.post-card:hover {
	border-color: color-mix(in srgb, var(--bc) 45%, transparent);
	box-shadow: 0 28px 50px -30px var(--bc);
}

.post-card:hover .post-card__media::after {
	opacity: 1;
}

.post-card__meta time {
	padding: 3px 10px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--bc) 12%, #fff);
	color: color-mix(in srgb, var(--bc) 80%, #0b1a14);
	font-weight: 800;
}

.post-card__title a {
	transition: color 0.3s ease;
}

.post-card:hover .post-card__title a {
	color: color-mix(in srgb, var(--bc) 85%, #0b1a14);
}

.post-card .link-arrow {
	margin-top: 14px;
	padding: 9px 16px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--bc) 12%, #fff);
	color: color-mix(in srgb, var(--bc) 85%, #0b1a14);
	font-weight: 800;
	transition: background-color 0.3s ease, color 0.3s ease, gap 0.3s ease;
}

.post-card:hover .link-arrow {
	background: var(--bc);
	color: #fff;
}

/* ---------- Article page: single centred column (no "Featured program" box) + attractive reading style ---------- */

.article-layout.article-layout--single {
	display: block;
	max-width: 780px;
	padding-block: 44px 56px;
}

.article-layout--single .entry-content > p:first-child {
	font-size: 1.15rem;
	line-height: 1.75;
	color: var(--ink, #0b1a14);
}

.article-layout--single .entry-content > p:first-child::first-letter {
	float: left;
	margin: 6px 12px 0 0;
	font-family: var(--serif, serif);
	font-size: 3.6rem;
	line-height: 0.8;
	color: #c43b33;
}

.article-layout--single .entry-content h2 {
	position: relative;
	margin-top: 2.2em;
	padding-left: 18px;
}

.article-layout--single .entry-content h2::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.18em;
	bottom: 0.18em;
	width: 5px;
	border-radius: 5px;
	background: linear-gradient(180deg, #c43b33, #e3a13f);
}

.article-layout--single .entry-content h2:nth-of-type(3n + 2)::before {
	background: linear-gradient(180deg, #2f855a, #9fd94f);
}

.article-layout--single .entry-content h2:nth-of-type(3n + 3)::before {
	background: linear-gradient(180deg, #2b6cb0, #7fb3ff);
}

.article-layout--single .entry-content ul li::marker {
	color: #c43b33;
}

.article-layout--single .entry-content blockquote {
	margin: 2em 0;
	padding: 18px 22px;
	border-left: 4px solid #e3a13f;
	border-radius: 0 16px 16px 0;
	background: #fbf3e2;
	font-style: italic;
}

.article-layout--single .article-share {
	margin-top: 36px;
	padding: 14px 18px;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 14px 30px -26px rgba(11, 26, 20, 0.5);
}

/* Previous / next article cards */
.post-nav a {
	border: 1px solid color-mix(in srgb, #c43b33 18%, transparent);
	border-radius: 20px;
	background: linear-gradient(110deg, #fff, #fbf3e2);
	transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.post-nav .nav-next a {
	border-color: color-mix(in srgb, #2f855a 22%, transparent);
	background: linear-gradient(250deg, #fff, #eef6e8);
}

.post-nav a:hover {
	transform: translateY(-3px);
	border-color: #c43b33;
	box-shadow: 0 18px 32px -24px #c43b33;
}

.post-nav .nav-next a:hover {
	border-color: #2f855a;
	box-shadow: 0 18px 32px -24px #2f855a;
}

.post-nav .nav-previous small {
	color: #c43b33;
}

/* ---------- Closing banner: compact height ---------- */

.cta-banner__card {
	min-height: 0;
	padding: clamp(26px, 3.4vw, 46px) clamp(24px, 4.6vw, 64px);
	border: 1px solid rgba(159, 217, 79, 0.18);
	box-shadow: 0 30px 60px -40px rgba(11, 26, 20, 0.7);
}

.cta-banner__card::after {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 5px;
	background: linear-gradient(180deg, #9fd94f, #e3a13f);
}

.cta-banner__content {
	max-width: 760px;
}

.cta-banner__content .eyebrow {
	margin-bottom: 8px;
}

.cta-banner__title {
	margin-bottom: 10px;
	font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.5rem);
	line-height: 1.12;
}

.cta-banner__content > p:not(.eyebrow) {
	max-width: 62ch;
	margin-bottom: 18px;
	font-size: 1rem;
	line-height: 1.6;
}
