/*
 * TSC Education Widgets — Frontend Styles
 *
 * Color palette:
 *   Deep Sea Blue  #004E64   Coastal Blue  #9EC1D3   Teal Tide     #2C786C
 *   Seafoam Green  #7AC9B0   Pearl White   #F4F4F2   Horizon Brown #6C4A3C
 *   Sandy Beige    #D9CAB3   Yellow        #FFC94B
 */

/* ── Shared Utilities ────────────────────────────────────────────── */

.tsc-edu-section-header {
	text-align: center;
	max-width: 720px;
	margin: 0 auto 3rem;
	padding: 0 1rem;
}

.tsc-edu-section-title {
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 0.75rem;
	letter-spacing: -0.02em;
}

.tsc-edu-section-subtitle {
	font-size: clamp(1rem, 2vw, 1.2rem);
	line-height: 1.65;
	margin: 0;
	opacity: 0.9;
}

/* Shared column grid — used by programs and gallery */
.tsc-edu-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.tsc-edu-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.tsc-edu-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Shared button */
.tsc-edu-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 1.8rem;
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none !important;
	border-radius: 50px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
	white-space: nowrap;
	line-height: 1;
}

.tsc-edu-btn:hover,
.tsc-edu-btn:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
	filter: brightness(1.08);
	text-decoration: none !important;
}

.tsc-edu-btn--outline {
	background: transparent !important;
}

/* ── Hero Banner ─────────────────────────────────────────────────── */

.tsc-edu-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 80px 2rem 130px;
	text-align: center;
}

.tsc-edu-hero__overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1;
}

.tsc-edu-hero__content {
	position: relative;
	z-index: 2;
	max-width: 800px;
	margin: 0 auto;
	width: 100%;
}

.tsc-edu-hero__eyebrow {
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin: 0 0 1rem;
}

.tsc-edu-hero__headline {
	font-size: clamp(2rem, 6vw, 3.75rem);
	font-weight: 900;
	line-height: 1.1;
	margin: 0 0 1.25rem;
	letter-spacing: -0.03em;
}

.tsc-edu-hero__subtitle {
	font-size: clamp(1rem, 2.5vw, 1.25rem);
	line-height: 1.65;
	margin: 0 auto 2.5rem;
	opacity: 0.95;
	max-width: 620px;
}

.tsc-edu-hero__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
}

.tsc-edu-hero__wave {
	position: absolute;
	bottom: -1px;
	left: 0;
	right: 0;
	z-index: 3;
	line-height: 0;
	pointer-events: none;
}

.tsc-edu-hero__wave svg {
	display: block;
	width: 100%;
	height: 80px;
}

/* ── Impact Stats ────────────────────────────────────────────────── */

.tsc-edu-stats {
	padding: 4.5rem 2rem;
}

.tsc-edu-stats__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	gap: 1.5rem 3rem;
	max-width: 1100px;
	margin: 0 auto;
}

.tsc-edu-stat {
	flex: 1 1 160px;
	max-width: 220px;
	text-align: center;
	padding: 1rem;
}

.tsc-edu-stat__icon {
	font-size: 2.5rem;
	line-height: 1;
	margin-bottom: 0.75rem;
}

.tsc-edu-stat__number {
	display: block;
	font-size: clamp(2.25rem, 5vw, 3.25rem);
	font-weight: 900;
	line-height: 1;
	margin-bottom: 0.5rem;
	letter-spacing: -0.02em;
}

.tsc-edu-stat__label {
	display: block;
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	opacity: 0.85;
}

/* ── Program Cards ───────────────────────────────────────────────── */

.tsc-edu-programs {
	padding: 5rem 2rem;
}

.tsc-edu-programs__grid {
	display: grid;
	gap: 2rem;
	max-width: 1200px;
	margin: 0 auto;
}

.tsc-edu-program-card {
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
}

.tsc-edu-program-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14);
}

.tsc-edu-program-card__top {
	position: relative;
	min-height: 180px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.tsc-edu-program-card__img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}

.tsc-edu-program-card__icon-wrap {
	font-size: 3.75rem;
	color: rgba(255, 255, 255, 0.8);
	padding: 2rem;
}

.tsc-edu-program-card__grade {
	position: absolute;
	top: 12px;
	right: 12px;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(4px);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 20px;
}

.tsc-edu-program-card__body {
	padding: 1.5rem 1.5rem 1.75rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.tsc-edu-program-card__title {
	font-size: 1.2rem;
	font-weight: 800;
	margin: 0 0 0.65rem;
	line-height: 1.3;
}

.tsc-edu-program-card__desc {
	font-size: 0.93rem;
	line-height: 1.65;
	margin: 0 0 1.25rem;
	flex: 1;
}

.tsc-edu-program-card__link {
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: gap 0.2s ease;
}

.tsc-edu-program-card__link:hover {
	gap: 10px;
	text-decoration: none;
}

/* ── Class Photo Gallery ─────────────────────────────────────────── */

.tsc-edu-gallery {
	padding: 5rem 2rem;
	overflow: visible;
}

.tsc-edu-gallery-carousel {
	position: relative;
	padding: 0 32px; /* room for the hanging prev/next buttons */
}

.tsc-edu-gallery__grid {
	display: grid;
	gap: 0.75rem;
	max-width: 1200px;
	margin: 0 auto;
}

.tsc-edu-gallery__item {
	border-radius: 10px;
	overflow: hidden;
}

.tsc-edu-gallery__item--lb {
	cursor: zoom-in;
}

.tsc-edu-gallery__img-wrap {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
}

.tsc-edu-gallery__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.tsc-edu-gallery__item:hover .tsc-edu-gallery__img {
	transform: scale(1.06);
}

.tsc-edu-gallery__caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
	color: #fff;
	font-size: 0.82rem;
	font-weight: 600;
	padding: 2rem 0.9rem 0.8rem;
	transform: translateY(100%);
	transition: transform 0.3s ease;
}

.tsc-edu-gallery__item:hover .tsc-edu-gallery__caption,
.tsc-edu-gallery__item:focus .tsc-edu-gallery__caption {
	transform: translateY(0);
}

/* Lightbox */

.tsc-edu-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(0, 0, 0, 0.93);
	align-items: center;
	justify-content: center;
	padding: 2rem;
}

.tsc-edu-lightbox.is-open {
	display: flex;
}

.tsc-edu-lightbox__content {
	text-align: center;
	max-width: 88vw;
}

.tsc-edu-lightbox__img {
	max-width: 100%;
	max-height: 78vh;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 8px 60px rgba(0, 0, 0, 0.6);
	display: block;
	margin: 0 auto;
}

.tsc-edu-lightbox__caption {
	color: #bbb;
	font-size: 0.9rem;
	margin-top: 1rem;
}

.tsc-edu-lightbox__close,
.tsc-edu-lightbox__prev,
.tsc-edu-lightbox__next {
	position: fixed;
	background: rgba(255, 255, 255, 0.12);
	border: none;
	color: #fff;
	cursor: pointer;
	border-radius: 50%;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	line-height: 1;
	transition: background 0.2s, transform 0.2s;
	z-index: 2;
}

.tsc-edu-lightbox__close:hover,
.tsc-edu-lightbox__prev:hover,
.tsc-edu-lightbox__next:hover {
	background: rgba(255, 255, 255, 0.28);
	transform: scale(1.1);
}

.tsc-edu-lightbox__close {
	top: 1.25rem;
	right: 1.25rem;
	font-size: 1.75rem;
}

.tsc-edu-lightbox__prev {
	left: 1.25rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 2rem;
}

.tsc-edu-lightbox__prev:hover {
	transform: translateY(-50%) scale(1.1);
}

.tsc-edu-lightbox__next {
	right: 1.25rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 2rem;
}

.tsc-edu-lightbox__next:hover {
	transform: translateY(-50%) scale(1.1);
}

/* ── Teacher CTA ─────────────────────────────────────────────────── */

.tsc-edu-teacher-cta {
	padding: 5rem 2rem;
}

.tsc-edu-cta__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
	max-width: 1100px;
	margin: 0 auto;
}

.tsc-edu-cta__eyebrow {
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin: 0 0 0.65rem;
}

.tsc-edu-cta__headline {
	font-size: clamp(1.5rem, 3.5vw, 2.5rem);
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 1.25rem;
	letter-spacing: -0.02em;
}

.tsc-edu-cta__body {
	font-size: 1rem;
	line-height: 1.7;
	margin-bottom: 2rem;
}

.tsc-edu-cta__body p { margin: 0 0 0.75rem; }

.tsc-edu-cta__body ul {
	padding-left: 1.4rem;
	margin: 0.5rem 0;
}

.tsc-edu-cta__body li { margin-bottom: 0.45rem; }

.tsc-edu-cta__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
}

.tsc-edu-cta__image {
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
}

.tsc-edu-cta__image img {
	width: 100%;
	height: auto;
	display: block;
}

.tsc-edu-cta__image-placeholder {
	background: rgba(0, 78, 100, 0.08);
	min-height: 320px;
	border-radius: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 4rem;
	color: #004E64;
	opacity: 0.25;
}

/* ── Program Detail ─────────────────────────────────────────────── */

.tsc-edu-program-detail {
	padding: 5rem 2rem;
}

.tsc-edu-program-detail__inner {
	max-width: 1200px;
	margin: 0 auto;
}

.tsc-edu-program-detail__inner--with-sidebar {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 4rem;
	align-items: start;
}

.tsc-edu-program-detail__headline {
	font-size: clamp(1.85rem, 4vw, 3rem);
	font-weight: 300;
	line-height: 1.15;
	margin: 0 0 2rem;
	letter-spacing: -0.01em;
}

.tsc-edu-program-detail__headline strong {
	display: block;
	font-weight: 900;
}

.tsc-edu-program-detail__headline-light {
	font-weight: 300;
}

.tsc-edu-program-detail__body {
	font-size: 1.08rem;
	line-height: 1.85;
}

.tsc-edu-program-detail__body p {
	margin: 0 0 1.5rem;
}

.tsc-edu-program-detail__body p:last-child {
	margin-bottom: 0;
}

.tsc-edu-program-detail__sidebar {
	position: sticky;
	top: 2rem;
}

.tsc-edu-program-detail__card {
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

.tsc-edu-program-detail__card-img {
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.tsc-edu-program-detail__card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tsc-edu-program-detail__card-body {
	padding: 1.5rem;
}

.tsc-edu-program-detail__card-title {
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1.4;
	margin: 0 0 0.65rem;
}

.tsc-edu-program-detail__card-text {
	font-size: 0.88rem;
	line-height: 1.65;
	margin: 0 0 1.25rem;
}

.tsc-edu-program-detail__card-body .tsc-edu-btn {
	display: block;
	text-align: center;
	width: 100%;
}

/* ── Fun Facts ───────────────────────────────────────────────────── */

.tsc-edu-fun-facts {
	padding: 5rem 2rem;
}

.tsc-edu-fun-facts__inner {
	max-width: 1100px;
	margin: 0 auto;
}

.tsc-edu-fun-facts__heading {
	font-size: clamp(2.5rem, 7vw, 5rem);
	font-weight: 300;
	text-align: center;
	margin: 0 0 3rem;
	line-height: 1.05;
	letter-spacing: -0.025em;
}

.tsc-edu-fun-facts__heading strong {
	font-weight: 900;
}

.tsc-edu-fun-facts__heading-light {
	font-weight: 300;
}

.tsc-edu-fun-facts__grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.tsc-edu-fun-fact-card {
	border-radius: 18px;
	padding: 2rem 1.75rem;
	display: flex;
	align-items: flex-start;
	gap: 1.25rem;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tsc-edu-fun-fact-card:hover {
	transform: translateY(-5px);
}

.tsc-edu-fun-fact-card__number {
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 3px solid;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.3rem;
	font-weight: 900;
	line-height: 1;
}

.tsc-edu-fun-fact-card__text {
	font-size: 1.05rem;
	line-height: 1.7;
	margin: 0;
	padding-top: 0.6rem;
}

.tsc-edu-fun-fact-card__text strong {
	font-weight: 700;
}

/* ── Keystone Species ────────────────────────────────────────────── */

.tsc-edu-keystone {
	padding: 5rem 2rem;
}

.tsc-edu-keystone__inner {
	max-width: 960px;
	margin: 0 auto;
}

.tsc-edu-keystone__headline {
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 300;
	line-height: 1.12;
	margin: 0 0 2.25rem;
	letter-spacing: -0.01em;
}

.tsc-edu-keystone__headline strong {
	font-weight: 900;
}

.tsc-edu-keystone__hl-light {
	font-weight: 300;
}

.tsc-edu-keystone__body {
	font-size: 1.05rem;
	line-height: 1.85;
}

.tsc-edu-keystone__body p {
	margin: 0 0 1.25rem;
}

.tsc-edu-keystone__body p:last-child {
	margin-bottom: 0;
}

.tsc-edu-keystone__body ul {
	list-style: none;
	padding: 0;
	margin: 0.25rem 0 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.tsc-edu-keystone__body ul li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.tsc-edu-keystone__body ul li::before {
	content: '▪';
	color: var(--ks-bullet, #2C786C);
	flex-shrink: 0;
	font-size: 1.1em;
	margin-top: 0.1em;
}

/* ── Partners in Education ───────────────────────────────────────── */

.tsc-edu-partners {
	padding: 5rem 2rem;
	overflow: visible;
}

.tsc-edu-partners-carousel {
	position: relative;
	padding: 0 32px; /* room for the hanging prev/next buttons */
}

.tsc-edu-partners__inner {
	max-width: 1100px;
	margin: 0 auto;
	text-align: center;
}

.tsc-edu-partners__title {
	font-size: clamp(1.75rem, 4vw, 3rem);
	font-weight: 300;
	margin: 0 0 0.85rem;
	letter-spacing: -0.01em;
	line-height: 1.2;
}

.tsc-edu-partners__title strong {
	font-weight: 900;
}

.tsc-edu-partners__title-light {
	font-weight: 300;
}

.tsc-edu-partners__subtitle {
	font-size: 1rem;
	line-height: 1.65;
	margin: 0 auto 3rem;
	max-width: 640px;
}

.tsc-edu-partners__logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 2.5rem 4rem;
}

.tsc-edu-partner-logo img {
	display: block;
	object-fit: contain;
	filter: grayscale(15%);
	transition: filter 0.3s ease, transform 0.3s ease;
}

.tsc-edu-partner-logo a:hover img,
.tsc-edu-partner-logo img:hover {
	filter: grayscale(0%);
	transform: scale(1.06);
}

/* ── Donation / CTA Banner ───────────────────────────────────────── */

.tsc-edu-teacher-cta.tsc-edu-cta--banner {
	position: relative;
	padding: 5rem 3rem;
	overflow: hidden;
}

.tsc-edu-cta--banner .tsc-edu-cta__overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1;
}

/* Two-column inner: text left, photo right */
.tsc-edu-cta--banner .tsc-edu-cta__banner-inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
}

.tsc-edu-cta--banner .tsc-edu-cta__banner-content {
	/* text column — no max-width cap so it fills the grid cell */
}

.tsc-edu-cta--banner .tsc-edu-cta__banner-photo {
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}

.tsc-edu-cta--banner .tsc-edu-cta__banner-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	aspect-ratio: 4 / 3;
}

.tsc-edu-cta--banner .tsc-edu-cta__eyebrow {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	margin: 0 0 1rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.tsc-edu-cta--banner .tsc-edu-cta__eyebrow::before {
	content: '';
	display: inline-block;
	width: 28px;
	height: 2px;
	background: currentColor;
	flex-shrink: 0;
}

.tsc-edu-cta--banner .tsc-edu-cta__headline {
	font-size: clamp(1.75rem, 4vw, 3rem);
	font-weight: 900;
	line-height: 1.12;
	margin: 0 0 1.25rem;
	letter-spacing: -0.02em;
}

.tsc-edu-cta--banner .tsc-edu-cta__body {
	font-size: 1.05rem;
	line-height: 1.75;
	margin-bottom: 2.25rem;
}

.tsc-edu-cta--banner .tsc-edu-cta__body p { margin: 0 0 0.5rem; }

/* ── Generic Carousel ────────────────────────────────────────────── */

.tsc-edu-carousel-wrap {
	position: relative;
	overflow: hidden;
	width: 100%;
}

.tsc-edu-carousel__track {
	display: flex;
	transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
	will-change: transform;
}

.tsc-edu-carousel__item {
	flex-shrink: 0;
	min-width: 0;
	padding: 0 6px;
	box-sizing: border-box;
}

/* Column-count classes set by PHP — layout works with zero JS */
.tsc-edu-carousel__track--cols-3 .tsc-edu-carousel__item { flex: 0 0 33.333%; width: 33.333%; }
.tsc-edu-carousel__track--cols-4 .tsc-edu-carousel__item { flex: 0 0 25%;     width: 25%;     }

@media ( max-width: 768px ) {
	.tsc-edu-carousel__track--cols-3 .tsc-edu-carousel__item,
	.tsc-edu-carousel__track--cols-4 .tsc-edu-carousel__item { flex: 0 0 50%; width: 50%; }
}

@media ( max-width: 480px ) {
	.tsc-edu-carousel__track--cols-3 .tsc-edu-carousel__item,
	.tsc-edu-carousel__track--cols-4 .tsc-edu-carousel__item { flex: 0 0 100%; width: 100%; }
}

.tsc-edu-carousel__prev,
.tsc-edu-carousel__next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.88);
	border: none;
	color: #1a1a1a;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 5;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
	transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
	padding: 0;
}

.tsc-edu-carousel__prev { left: -22px; }
.tsc-edu-carousel__next { right: -22px; }

.tsc-edu-carousel__prev:hover,
.tsc-edu-carousel__next:hover {
	background: #fff;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
	transform: translateY(-50%) scale(1.1);
}

.tsc-edu-carousel__prev svg,
.tsc-edu-carousel__next svg {
	display: block;
	flex-shrink: 0;
}

.tsc-edu-carousel__dots {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 1.25rem;
}

.tsc-edu-carousel__dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #004E64;
	opacity: 0.25;
	border: none;
	cursor: pointer;
	padding: 0;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.tsc-edu-carousel__dot.is-active {
	opacity: 1;
	transform: scale(1.3);
}

/* ── Gallery Carousel Slides ─────────────────────────────────────── */

.tsc-edu-gallery-carousel .tsc-edu-carousel-wrap {
	border-radius: 12px;
}

.tsc-edu-gallery-slide {
	border-radius: 10px;
	overflow: hidden;
	cursor: zoom-in;
	display: block;
	position: relative;
}

.tsc-edu-gallery-slide__img-wrap {
	position: relative;
	overflow: hidden;
	height: 260px;
}

.tsc-edu-gallery-slide__img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.tsc-edu-gallery-slide:hover .tsc-edu-gallery-slide__img-wrap img {
	transform: scale(1.06);
}

.tsc-edu-gallery-slide__caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
	color: #fff;
	font-size: 0.82rem;
	font-weight: 600;
	padding: 2rem 0.9rem 0.8rem;
	transform: translateY(100%);
	transition: transform 0.3s ease;
}

.tsc-edu-gallery-slide:hover .tsc-edu-gallery-slide__caption {
	transform: translateY(0);
}

/* ── Fact Strip ──────────────────────────────────────────────────── */

.tsc-edu-fact-strip {
	padding: 0.8rem 1.5rem;
}

.tsc-edu-fact-strip__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.25rem;
	max-width: 960px;
	margin: 0 auto;
}

.tsc-edu-fact-strip__label {
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	flex-shrink: 0;
	white-space: nowrap;
}

.tsc-edu-fact-strip__facts {
	position: relative;
	/* Fixed width so justify-content: center actually centers the row */
	width: 600px;
	max-width: 68vw;
	height: 1.6em;
	min-height: 1.6em;
}

.tsc-edu-fact-strip__fact {
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.4;
	font-style: italic;
	/* display: block preserves whitespace around <strong> tags */
	display: block;
	opacity: 0;
	transition: opacity 0.6s ease;
}

.tsc-edu-fact-strip__fact.is-active {
	opacity: 1;
}

/* ── Teacher Booking Card ────────────────────────────────────────── */

.tsc-edu-teacher-card-section {
	padding: 5rem 2rem;
}

.tsc-edu-teacher-card {
	display: grid;
	grid-template-columns: 360px 1fr;
	max-width: 920px;
	margin: 0 auto;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 12px 60px rgba(0, 0, 0, 0.12);
}

.tsc-edu-teacher-card__visual {
	position: relative;
	min-height: 380px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.tsc-edu-teacher-card__visual img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tsc-edu-teacher-card__icon {
	font-size: 5rem;
	color: rgba(255, 255, 255, 0.7);
	position: relative;
	z-index: 1;
}

.tsc-edu-teacher-card__content {
	padding: 2.5rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.tsc-edu-teacher-card__eyebrow {
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	margin: 0 0 0.75rem;
}

.tsc-edu-teacher-card__title {
	font-size: clamp(1.3rem, 2.5vw, 1.85rem);
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 1rem;
	letter-spacing: -0.02em;
}

.tsc-edu-teacher-card__body {
	font-size: 0.98rem;
	line-height: 1.7;
	margin: 0 0 1.5rem;
}

.tsc-edu-teacher-card__features {
	list-style: none;
	padding: 0;
	margin: 0 0 2rem;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.tsc-edu-teacher-card__features li {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.92rem;
	font-weight: 600;
}

.tsc-edu-teacher-card__check {
	font-weight: 900;
	font-size: 1rem;
	flex-shrink: 0;
}

.tsc-edu-teacher-card__btn {
	align-self: flex-start;
}

/* ── Responsive ──────────────────────────────────────────────────── */

/* ── Tablet (≤ 1024px) ───────────────────────────────────────────── */
@media ( max-width: 1024px ) {
	.tsc-edu-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }

	/* Reduce vertical breathing room on tablet */
	.tsc-edu-gallery,
	.tsc-edu-program-detail,
	.tsc-edu-teacher-cta,
	.tsc-edu-stats,
	.tsc-edu-fun-facts,
	.tsc-edu-keystone,
	.tsc-edu-programs,
	.tsc-edu-partners {
		padding-top: 4rem;
		padding-bottom: 4rem;
	}

	/* Slim sidebar on tablet so main content has more room */
	.tsc-edu-program-detail__inner--with-sidebar {
		grid-template-columns: 1fr 280px;
		gap: 2.5rem;
	}

	/* Close up the two-column CTAs on tablet */
	.tsc-edu-cta__inner {
		gap: 2.5rem;
	}

	.tsc-edu-cta--banner .tsc-edu-cta__banner-inner {
		gap: 2.5rem;
	}

	/* Slightly smaller fun-facts heading on tablet */
	.tsc-edu-fun-facts__heading {
		font-size: clamp(2rem, 5.5vw, 3.5rem);
	}
}

/* ── Mobile landscape / large phone (≤ 768px) ────────────────────── */
@media ( max-width: 768px ) {
	/* Section padding */
	.tsc-edu-gallery,
	.tsc-edu-program-detail,
	.tsc-edu-teacher-cta,
	.tsc-edu-stats,
	.tsc-edu-fun-facts,
	.tsc-edu-keystone,
	.tsc-edu-programs,
	.tsc-edu-partners {
		padding: 3rem 1.25rem;
	}

	/* Programs: always 1 col on mobile */
	.tsc-edu-programs__grid.tsc-edu-grid--cols-2,
	.tsc-edu-programs__grid.tsc-edu-grid--cols-3,
	.tsc-edu-programs__grid.tsc-edu-grid--cols-4 {
		grid-template-columns: 1fr;
	}

	/* Gallery static grid: 3/4 cols → 2 cols */
	.tsc-edu-gallery__grid.tsc-edu-grid--cols-3,
	.tsc-edu-gallery__grid.tsc-edu-grid--cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Teacher CTA: stack vertically */
	.tsc-edu-cta__inner {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	/* Image always below text on mobile regardless of layout toggle */
	.tsc-edu-cta--text-right .tsc-edu-cta__image { order: 2; }
	.tsc-edu-cta--text-right .tsc-edu-cta__text  { order: 1; }

	/* Hero */
	.tsc-edu-hero {
		padding: 60px 1.25rem 100px;
	}

	/* Stats: tighten gap */
	.tsc-edu-stats__grid { gap: 1rem 2rem; }

	/* Program detail: stack main + sidebar */
	.tsc-edu-program-detail__inner--with-sidebar {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.tsc-edu-program-detail__sidebar {
		position: static;
	}

	/* Fun facts: 1 col, smaller heading */
	.tsc-edu-fun-facts__grid {
		grid-template-columns: 1fr;
	}

	.tsc-edu-fun-facts__heading {
		font-size: clamp(1.75rem, 6vw, 2.5rem);
		margin-bottom: 2rem;
	}

	/* Keystone: reduce headline */
	.tsc-edu-keystone__headline {
		font-size: clamp(1.75rem, 5.5vw, 2.5rem);
		margin-bottom: 1.75rem;
	}

	/* Partners */
	.tsc-edu-partners__logos {
		gap: 2rem 2.5rem;
	}

	/* CTA banner: stack columns */
	.tsc-edu-cta--banner {
		padding: 3rem 1.25rem;
	}

	.tsc-edu-cta--banner .tsc-edu-cta__banner-inner {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.tsc-edu-cta--banner .tsc-edu-cta__banner-photo {
		max-width: 480px;
		margin: 0 auto;
	}

	/* Teacher card: stack visual + content */
	.tsc-edu-teacher-card {
		grid-template-columns: 1fr;
	}

	.tsc-edu-teacher-card__visual {
		min-height: 220px;
	}

	.tsc-edu-teacher-card__content {
		padding: 2rem 1.5rem;
	}

	/* Fact strip: wrap to column layout */
	.tsc-edu-fact-strip__inner {
		flex-direction: column;
		gap: 0.4rem;
		text-align: center;
	}

	.tsc-edu-fact-strip__facts {
		height: 2.8em;
		width: 100%;
	}

	/* Carousel: pull nav buttons inside the wrapper so they don't clip */
	.tsc-edu-carousel__prev { left: 6px; }
	.tsc-edu-carousel__next { right: 6px; }

	.tsc-edu-gallery-carousel,
	.tsc-edu-partners-carousel {
		padding: 0 10px;
	}
}

/* ── Small phone (≤ 480px) ───────────────────────────────────────── */
@media ( max-width: 480px ) {
	/* Section padding: tightest on small phones */
	.tsc-edu-gallery,
	.tsc-edu-program-detail,
	.tsc-edu-teacher-cta,
	.tsc-edu-stats,
	.tsc-edu-fun-facts,
	.tsc-edu-keystone,
	.tsc-edu-programs,
	.tsc-edu-partners {
		padding: 2.5rem 1rem;
	}

	/* Gallery static grid: all cols → 1 col */
	.tsc-edu-gallery__grid.tsc-edu-grid--cols-2,
	.tsc-edu-gallery__grid.tsc-edu-grid--cols-3,
	.tsc-edu-gallery__grid.tsc-edu-grid--cols-4 {
		grid-template-columns: 1fr;
	}

	/* Hero */
	.tsc-edu-hero {
		padding: 50px 1rem 85px;
	}

	.tsc-edu-hero__buttons {
		flex-direction: column;
		align-items: center;
	}

	/* Buttons: full width on small phone */
	.tsc-edu-btn {
		width: 100%;
		max-width: 320px;
	}

	.tsc-edu-cta__buttons {
		flex-direction: column;
	}

	.tsc-edu-cta__buttons .tsc-edu-btn {
		width: 100%;
		max-width: 100%;
	}

	/* Stats: single column on tiny screens */
	.tsc-edu-stat {
		flex: 1 1 100%;
		max-width: 260px;
	}

	/* Gallery slide: shorter on small phones */
	.tsc-edu-gallery-slide__img-wrap {
		height: 200px;
	}

	/* Fun facts: tightest heading */
	.tsc-edu-fun-facts__heading {
		font-size: 1.6rem;
		margin-bottom: 1.5rem;
	}

	/* Keystone: tightest headline */
	.tsc-edu-keystone__headline {
		font-size: 1.5rem;
		margin-bottom: 1.25rem;
	}

	/* CTA banner */
	.tsc-edu-cta--banner {
		padding: 2.5rem 1rem;
	}

	/* Carousel: hide nav buttons on small phones — swipe + dots handle navigation */
	.tsc-edu-carousel__prev,
	.tsc-edu-carousel__next {
		display: none;
	}

	.tsc-edu-gallery-carousel,
	.tsc-edu-partners-carousel {
		padding: 0;
	}
}
