/**
 * Teachers page — all styles for this page, complete in this one file.
 * Loaded only on /teachers/. The site frame (base, header, menu, footer) is in assets/css/core/.
 *
 * Contents:
 *   1. Building blocks (buttons, cards, page hero, CTA …)
 *   2. Teachers page 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. Teachers page layout
   ======================================================================== */

/* ==========================================================================
   Teachers page
   
   ========================================================================== */

/* ---------- Teachers ---------- */

.team-list {
	display: grid;
	gap: 24px;
}

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

/* ---------- Teacher search (pages/teachers.js) ---------- */

.teacher-search {
	position: relative;
	display: flex;
	align-items: center;
	max-width: 620px;
	margin: 0 auto clamp(36px, 5vw, 56px);
}

.teacher-search[hidden] {
	display: none;
}

.teacher-search > .icon {
	position: absolute;
	left: 20px;
	width: 20px;
	height: 20px;
	color: var(--moss);
	pointer-events: none;
}

.teacher-search input {
	width: 100%;
	min-height: 56px;
	padding: 14px 90px 14px 52px;
	border: 1.5px solid var(--line);
	border-radius: var(--pill);
	background: var(--paper);
	box-shadow: var(--shadow-sm);
	font-size: 1rem;
	transition: border-color 0.25s, box-shadow 0.25s;
}

.teacher-search input:focus {
	outline: none;
	border-color: var(--moss);
	box-shadow: 0 0 0 4px rgba(95, 143, 47, 0.15);
}

.teacher-search__count {
	position: absolute;
	right: 22px;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--muted);
}

.teacher-search__empty {
	margin: -24px 0 40px;
	text-align: center;
	color: var(--muted);
}

.team-card[hidden],
.team-list[hidden],
.team-grid[hidden],
.section-head[hidden] {
	display: none;
}

/* ---------- Teacher spotlight ---------- */

.teacher-spot {
	background:
		radial-gradient(40% 60% at 0% 50%, rgba(159, 217, 79, 0.14), transparent 70%),
		radial-gradient(40% 60% at 100% 0%, rgba(24, 119, 242, 0.08), transparent 70%),
		var(--cream);
}

.teacher-spot__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(32px, 5vw, 80px);
	align-items: center;
}

.teacher-spot__media {
	position: relative;
	max-width: 440px;
	width: 100%;
	margin-inline: auto;
}

.teacher-spot__photo {
	position: relative;
	margin: 0;
	aspect-ratio: 4 / 5;
	border-radius: 220px 220px var(--radius-lg) var(--radius-lg);
	overflow: hidden;
	box-shadow: 0 40px 70px -40px rgba(15, 36, 29, 0.7);
}

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

.teacher-spot__media:hover .teacher-spot__photo img {
	transform: scale(1.05);
}

.teacher-spot__ring {
	position: absolute;
	inset: -16px -16px 16px 16px;
	border: 1.5px solid rgba(227, 161, 63, 0.6);
	border-radius: 220px 220px var(--radius-lg) var(--radius-lg);
}

/* "500 Hour Teacher" seal. */
.teacher-spot__badge {
	position: absolute;
	left: -18px;
	bottom: 36px;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px 12px 14px;
	border-radius: 20px;
	background: var(--ink);
	color: #fff;
	box-shadow: 0 20px 40px -18px rgba(15, 36, 29, 0.8);
	animation: spot-float 5s ease-in-out infinite;
}

@keyframes spot-float {
	50% {
		transform: translateY(-8px);
	}
}

.teacher-spot__badge strong {
	font-family: var(--serif);
	font-size: 2.2rem;
	font-weight: 500;
	line-height: 1;
	color: var(--lime);
}

.teacher-spot__badge span {
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	line-height: 1.3;
	text-transform: uppercase;
}

.teacher-spot__text .section-title {
	margin-bottom: 6px;
}

.teacher-spot__tagline {
	margin: 0 0 18px;
	font-family: var(--serif);
	font-size: 1.3rem;
	font-style: italic;
	color: var(--coral-deep);
}

.teacher-spot__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.teacher-spot__tags li {
	padding: 6px 14px;
	border-radius: var(--pill);
	background: rgba(159, 217, 79, 0.18);
	font-size: 0.82rem;
	font-weight: 800;
	color: var(--forest);
}

.teacher-spot__bio {
	margin: 0 0 18px;
	font-size: 1.05rem;
	line-height: 1.8;
	color: var(--muted);
}

.teacher-spot__list {
	display: grid;
	gap: 10px;
	margin: 0 0 26px;
	padding: 0;
	list-style: none;
}

.teacher-spot__list li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	color: var(--ink);
}

.teacher-spot__list .icon {
	width: 22px;
	height: 22px;
	padding: 4px;
	border-radius: 50%;
	background: var(--lime);
	color: var(--ink);
	stroke-width: 3;
}

.teacher-spot__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
}

/* Facebook button in Facebook blue. */
.fb-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 8px 22px 8px 8px;
	border-radius: var(--pill);
	background: #1877f2;
	color: #fff;
	font-weight: 800;
	text-decoration: none;
	box-shadow: 0 14px 28px -14px rgba(24, 119, 242, 0.9);
	transition: transform 0.35s var(--ease), box-shadow 0.35s ease, background 0.3s ease;
}

.fb-btn small {
	display: block;
	font-size: 0.7rem;
	font-weight: 700;
	opacity: 0.8;
}

.fb-btn__icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #fff;
	color: #1877f2;
	transition: transform 0.45s var(--ease);
}

.fb-btn__icon .icon {
	width: 22px;
	height: 22px;
}

.fb-btn:hover,
.fb-btn:focus-visible {
	background: #0e63d3;
	transform: translateY(-3px);
	box-shadow: 0 20px 34px -14px rgba(24, 119, 242, 1);
}

.fb-btn:hover .fb-btn__icon {
	transform: rotate(-12deg) scale(1.08);
}

/* Small Facebook link on teacher cards. */
.team-card__fb {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	padding: 5px 12px 5px 8px;
	border-radius: var(--pill);
	background: rgba(24, 119, 242, 0.1);
	font-size: 0.8rem;
	font-weight: 800;
	color: #1877f2;
	text-decoration: none;
	transition: background 0.3s ease, color 0.3s ease;
}

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

.team-card__fb:hover {
	background: #1877f2;
	color: #fff;
}

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

	.teacher-spot__badge {
		left: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.teacher-spot__badge {
		animation: none;
	}
}

/* ---------- Every teacher as a spotlight (alternating sides) ---------- */

.teacher-spot--lime    { --tc: #5f8f2f; --tc2: #9fd94f; }
.teacher-spot--coral   { --tc: #c43b33; --tc2: #f0766d; }
.teacher-spot--sky     { --tc: #2f7fc8; --tc2: #5aaef0; }
.teacher-spot--saffron { --tc: #c98420; --tc2: #f0c060; }
.teacher-spot--violet  { --tc: #7357c4; --tc2: #a48ce6; }
.teacher-spot--teal    { --tc: #23897d; --tc2: #4fc3b5; }

.teacher-spots {
	display: grid;
	gap: 0;
}

.teacher-spots__head {
	margin-top: clamp(56px, 7vw, 96px);
}

.teacher-spots .teacher-spot {
	position: relative;
	padding: clamp(40px, 5vw, 72px) 0;
	background: none;
}

/* Soft divider between teachers. */
.teacher-spots .teacher-spot + .teacher-spot {
	border-top: 1px dashed var(--line);
}

/* Colour glow behind each photo. */
.teacher-spots .teacher-spot__media::before {
	content: "";
	position: absolute;
	inset: 10% -8% -6% -8%;
	z-index: -1;
	border-radius: 50%;
	background: radial-gradient(circle, color-mix(in srgb, var(--tc2) 28%, transparent), transparent 70%);
	filter: blur(10px);
}

.teacher-spots .teacher-spot__media {
	isolation: isolate;
}

.teacher-spot--flip .teacher-spot__grid {
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.teacher-spot--flip .teacher-spot__media {
	order: 2;
}

.teacher-spot--flip .teacher-spot__ring {
	inset: -16px 16px 16px -16px;
}

.teacher-spot--flip .teacher-spot__badge {
	left: auto;
	right: -18px;
}

.teacher-spots .teacher-spot__ring {
	border-color: color-mix(in srgb, var(--tc) 55%, transparent);
}

.teacher-spots .teacher-spot__photo {
	background: linear-gradient(150deg, var(--tc2), var(--tc));
}

.teacher-spots .teacher-spot__badge strong {
	color: var(--tc2);
}

.teacher-spots .teacher-spot__badge span {
	max-width: 110px;
}

.teacher-spots .eyebrow {
	color: var(--tc);
}

.teacher-spot__name {
	margin: 0 0 6px;
	font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem);
	line-height: 1.1;
}

.teacher-spots .teacher-spot__tagline {
	color: var(--tc);
}

.teacher-spots .teacher-spot__tags li {
	background: color-mix(in srgb, var(--tc2) 20%, var(--paper));
	color: color-mix(in srgb, var(--tc) 80%, #000);
}

.teacher-spots .teacher-spot__list .icon {
	background: var(--tc2);
}

.teacher-spot__bio p {
	margin: 0 0 12px;
	font-size: 1.02rem;
	line-height: 1.8;
	color: var(--muted);
}

.teacher-spot__bio {
	margin-bottom: 14px;
}

.teacher-spot__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 20px;
}

.teacher-spot__stats > div {
	min-width: 120px;
	padding: 10px 16px;
	border-radius: 16px;
	background: color-mix(in srgb, var(--tc2) 16%, var(--paper));
}

.teacher-spot__stats dt {
	font-family: var(--serif);
	font-size: 1.6rem;
	line-height: 1.1;
	color: var(--tc);
}

.teacher-spot__stats dd {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--muted);
}

/* Hover: photo lifts and the ring turns. */
.teacher-spots .teacher-spot__photo {
	transition: transform 0.6s var(--ease), box-shadow 0.6s ease;
}

.teacher-spots .teacher-spot__ring {
	transition: transform 0.8s var(--ease);
}

.teacher-spots .teacher-spot__media:hover .teacher-spot__photo {
	transform: translateY(-6px);
	box-shadow: 0 50px 80px -40px var(--tc);
}

.teacher-spots .teacher-spot__media:hover .teacher-spot__ring {
	transform: translate(6px, -6px);
}

/* Instagram button in the official gradient. */
.ig-btn {
	background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
	box-shadow: 0 14px 28px -14px rgba(214, 36, 159, 0.9);
}

.ig-btn .fb-btn__icon {
	color: #d6249f;
}

.ig-btn:hover,
.ig-btn:focus-visible {
	background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 40%, #d6249f 55%, #285aeb 85%);
	box-shadow: 0 20px 34px -14px rgba(214, 36, 159, 1);
}

.teacher-spot[hidden] {
	display: none;
}

@media (max-width: 899px) {
	.teacher-spot--flip .teacher-spot__grid {
		grid-template-columns: 1fr;
	}

	.teacher-spot--flip .teacher-spot__media {
		order: 0;
	}

	.teacher-spot--flip .teacher-spot__badge {
		right: 0;
	}
}

/* Keep the decorative ring and glow from widening the page on phones. */
.teacher-spots {
	overflow-x: clip;
	overflow-y: visible;
}

/* ---------- 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);
}

/* ---------- 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;
}

/* ---------- Teacher's published book card ---------- */

.teacher-book {
	position: relative;
	display: grid;
	grid-template-columns: 118px minmax(0, 1fr);
	gap: 20px;
	align-items: center;
	margin: 22px 0 6px;
	padding: 18px 20px 18px 18px;
	border: 1px solid rgba(91, 79, 191, 0.18);
	border-radius: 22px;
	background:
		radial-gradient(90% 120% at 100% 0%, rgba(91, 79, 191, 0.1), transparent 60%),
		linear-gradient(120deg, #fff, #f6f3ff);
	box-shadow: 0 20px 40px -30px rgba(43, 38, 96, 0.6);
	overflow: hidden;
}

.teacher-book::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 5px;
	background: linear-gradient(180deg, #5b4fbf, #e3a13f);
}

.teacher-book__cover {
	margin: 0;
	perspective: 700px;
}

.teacher-book__cover img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px 10px 10px 4px;
	box-shadow: -6px 0 0 -2px #2b2660 inset, 0 18px 30px -14px rgba(20, 18, 50, 0.75), 6px 6px 0 -1px #e9e4d6;
	transform: rotateY(-14deg) rotate(-2deg);
	transform-origin: left center;
	transition: transform 0.5s ease;
}

.teacher-book:hover .teacher-book__cover img {
	transform: rotateY(0deg) rotate(0deg) scale(1.03);
}

.teacher-book__label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 6px;
	padding: 3px 10px 3px 6px;
	border-radius: 999px;
	background: #5b4fbf;
	color: #fff;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.teacher-book__label .icon,
.teacher-book__label svg {
	width: 14px;
	height: 14px;
}

.teacher-book__title {
	margin: 2px 0 2px;
	font-family: "Noto Sans Devanagari", "Mukta", var(--sans, sans-serif);
	font-size: 1.3rem;
	font-weight: 800;
	line-height: 1.3;
	color: #2b2660;
}

.teacher-book__sub {
	margin: 0 0 6px;
	font-weight: 700;
	color: #5b4fbf;
}

.teacher-book__text {
	margin: 0 0 8px;
	font-size: 0.92rem;
	line-height: 1.55;
	color: #4a5a52;
}

.teacher-book__quote {
	margin: 0 0 8px;
	padding: 6px 12px;
	border-left: 3px solid #e3a13f;
	border-radius: 0 10px 10px 0;
	background: rgba(227, 161, 63, 0.1);
	font-size: 0.88rem;
	font-style: italic;
	color: #3a3550;
}

.teacher-book__isbn {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: #8a86a8;
}

@media (max-width: 520px) {
	.teacher-book {
		grid-template-columns: 92px minmax(0, 1fr);
		gap: 14px;
		padding: 14px;
	}

	.teacher-book__title {
		font-size: 1.1rem;
	}
}

/* "What he teaches" boxes under the photo and story, across the full width (no empty space under the photo). */
.teacher-spot__wide {
	margin-top: clamp(28px, 4vw, 48px);
	padding: clamp(20px, 3vw, 32px);
	border: 1px solid #ece5d6;
	border-radius: 24px;
	background: linear-gradient(135deg, #fff, #fbf7ef);
	box-shadow: 0 30px 60px -48px rgba(15, 36, 29, 0.55);
}

.teacher-spot__wide .tdisc {
	margin: 0;
}

.teacher-spot__wide .tdisc__label {
	margin-bottom: 16px;
	text-align: center;
	font-size: 0.85rem;
}

@media (min-width: 1100px) {
	.teacher-spot__wide .tdisc__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 700px) and (max-width: 1099px) {
	.teacher-spot__wide .tdisc__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.teacher-spot__wide {
		padding: 16px 12px;
		border-radius: 18px;
	}
}

/* Badge second line (e.g. "Guru & Master Trainer" under "Supreme Knowledge & Wisdom"). */
.teacher-spot__badge span small {
	display: block;
	margin-top: 3px;
	color: var(--lime);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.teacher-spots .teacher-spot__badge span:has(small) {
	max-width: none;
	white-space: nowrap;
}

@media (max-width: 600px) {
	.teacher-spot__badge:has(small) {
		max-width: calc(100% - 12px);
		padding: 10px 14px 10px 12px;
	}

	.teacher-spot__badge:has(small) strong {
		font-size: 1.8rem;
	}

	.teacher-spots .teacher-spot__badge span:has(small) {
		font-size: 0.64rem;
		letter-spacing: 0.06em;
	}

	.teacher-spot__badge span small {
		font-size: 0.6rem;
	}
}

/* ---------- "What he teaches" panel: richer cards, buttons at the end ---------- */
.teacher-spot__wide {
	position: relative;
	overflow: hidden;
	padding: clamp(24px, 3.5vw, 44px);
	border: 1px solid color-mix(in srgb, var(--tc2, #9fd94f) 30%, #ece5d6);
	background:
		radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--tc2, #9fd94f) 16%, transparent), transparent 45%),
		radial-gradient(circle at 100% 100%, rgba(227, 161, 63, 0.14), transparent 45%),
		#fffdf8;
}

.teacher-spot__wide .tdisc__label {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin-bottom: clamp(18px, 2.5vw, 28px);
	color: var(--ink, #0b1a14);
	font-family: var(--serif);
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
}

.teacher-spot__wide .tdisc__om {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--ink, #0b1a14);
	color: var(--lime, #9fd94f);
	font-size: 1.5rem;
	box-shadow: 0 12px 24px -14px rgba(15, 36, 29, 0.8);
}

.tdisc__om {
	margin-right: 8px;
}

.teacher-spot__wide .tdisc__list {
	gap: 14px;
}

.teacher-spot__wide .tdisc__item {
	position: relative;
	overflow: hidden;
	flex-direction: column;
	gap: 12px;
	padding: 18px 18px 20px;
	border: 1px solid color-mix(in srgb, var(--fq) 22%, #eee6d8);
	border-top: 4px solid var(--fq);
	border-radius: 18px;
	background: linear-gradient(180deg, color-mix(in srgb, var(--fq) 10%, #fff), #fff 60%);
	box-shadow: 0 16px 30px -26px rgba(15, 36, 29, 0.45);
}

.teacher-spot__wide .tdisc__item::after {
	content: "";
	position: absolute;
	right: -30px;
	bottom: -30px;
	width: 110px;
	height: 110px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--fq) 10%, transparent);
	pointer-events: none;
}

.teacher-spot__wide .tdisc__item:hover {
	transform: translateY(-4px);
	box-shadow: 0 24px 40px -26px var(--fq);
}

.teacher-spot__wide .tdisc__num {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	font-size: 0.85rem;
}

.teacher-spot__wide .tdisc__text strong {
	font-size: 1.02rem;
}

.teacher-spot__wide .tdisc__text > span {
	font-size: 0.88rem;
}

.teacher-spot__wide .teacher-spot__actions {
	justify-content: center;
	margin-top: clamp(24px, 3vw, 36px);
	padding-top: clamp(20px, 3vw, 30px);
	border-top: 1px dashed color-mix(in srgb, var(--tc, #5f8f2f) 35%, #e6dfd0);
}

@media (max-width: 600px) {
	.teacher-spot__wide .tdisc__item {
		flex-direction: row;
		padding: 14px;
	}

	.teacher-spot__wide .tdisc__num {
		width: 34px;
		height: 34px;
	}
}

/* Tighter "What he teaches": 3 columns, Sanatan Yoga (with its styles) across 2, number beside the title. */
.teacher-spot__wide {
	margin-top: clamp(18px, 2.5vw, 28px);
	padding: clamp(18px, 2.4vw, 28px);
}

.teacher-spot__wide .tdisc__label {
	flex-direction: row;
	justify-content: center;
	gap: 12px;
	margin-bottom: 16px;
	font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.8rem);
}

.teacher-spot__wide .tdisc__om {
	width: 40px;
	height: 40px;
	margin: 0;
	font-size: 1.25rem;
}

.teacher-spot__wide .tdisc__list {
	gap: 10px;
}

.teacher-spot__wide .tdisc__item {
	flex-direction: row;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
}

.teacher-spot__wide .tdisc__item::after {
	width: 80px;
	height: 80px;
	right: -26px;
	bottom: -26px;
}

.teacher-spot__wide .tdisc__num {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	font-size: 0.78rem;
}

.teacher-spot__wide .teacher-spot__actions {
	margin-top: 18px;
	padding-top: 18px;
}

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

	.teacher-spot__wide .tdisc__item:has(.tdisc__chips) {
		grid-column: span 2;
	}
}

@media (max-width: 600px) {
	.teacher-spot__wide {
		padding: 14px 10px;
	}

	.teacher-spot__wide .tdisc__item {
		padding: 12px;
	}

	.teacher-spot__wide .teacher-spot__actions {
		gap: 10px;
	}
}

@media (max-width: 600px) {
	/* Facebook + Instagram side by side, "Learn with" full width under them. */
	.teacher-spot__wide .teacher-spot__actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.teacher-spot__wide .teacher-spot__actions .fb-btn {
		min-width: 0;
		justify-content: center;
		padding-inline: 8px;
	}

	.teacher-spot__wide .teacher-spot__actions .btn {
		grid-column: 1 / -1;
		justify-content: center;
	}
}
