/* Teacher story shortcodes only; keep Elementor and other theme sections untouched. */
.s2s-teacher-video,
.s2s-teacher-stories,
.s2s-teacher-video *,
.s2s-teacher-stories * {
	box-sizing: border-box;
}

.s2s-teacher-video {
	width: 100%;
	max-width: none;
	margin: 0;
	color: #252a28;
	font: inherit;
}

.s2s-teacher-video__frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #202623;
}

.s2s-teacher-video__poster,
.s2s-teacher-video__frame iframe {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	border: 0;
}

.s2s-teacher-video__frame .s2s-teacher-video__poster {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.s2s-teacher-video__frame iframe {
	background: #000;
}

.s2s-teacher-video__frame--branded {
	container-type: inline-size;
	overflow: visible;
	background: #105f50;
}

.s2s-teacher-video__frame--branded:has(.s2s-teacher-video__cover-copy) {
	aspect-ratio: auto;
}

.s2s-teacher-video__frame--branded .s2s-teacher-video__poster {
	inset: 0 auto auto 0;
	height: auto;
}

.s2s-teacher-video__cover-copy {
	position: relative;
	display: flex;
	width: 100%;
	min-height: 56.25cqw;
	flex-direction: column;
	align-items: flex-start;
	padding: 20.8% 5.42% 6.7%;
	color: #fff;
	font-family: Arial, Roboto, sans-serif;
}

.s2s-teacher-video__cover-title,
.s2s-teacher-video__cover-description {
	max-width: 40%;
	margin: 0;
	overflow-wrap: anywhere;
}

.s2s-teacher-video__cover-title {
	font-size: clamp(1rem, 6.46vw, 3.875rem);
	font-size: clamp(1rem, 6.46cqw, 3.875rem);
	font-weight: 700;
	letter-spacing: -0.01935em;
	line-height: 1.16129;
}

.s2s-teacher-video__cover-title--intro {
	font-size: clamp(1rem, 4.2vw, 2.625rem);
	font-size: clamp(1rem, 4.2cqw, 2.625rem);
}

.s2s-teacher-video__cover-title span,
.s2s-teacher-video__cover-description span {
	display: block;
}

.s2s-teacher-video__cover-description {
	margin-block-start: clamp(1rem, 7.08vw, 4.25rem);
	margin-block-start: clamp(1rem, 7.08cqw, 4.25rem);
	font-size: clamp(0.425rem, 2.5vw, 1.5rem);
	font-size: clamp(0.425rem, 2.5cqw, 1.5rem);
	font-weight: 400;
	line-height: 1.33333;
}

.s2s-teacher-video__cover-description--intro {
	margin-block-start: clamp(1rem, 5vw, 3rem);
	margin-block-start: clamp(1rem, 5cqw, 3rem);
}

.s2s-teacher-video .s2s-teacher-video__play {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	min-width: 0;
	min-height: 0;
	padding: 0;
	transform: none;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	font: inherit;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
}

.s2s-teacher-video__play-badge {
	position: absolute;
	right: 16px;
	bottom: 16px;
	display: inline-flex;
	width: 52px;
	height: 52px;
	align-items: center;
	justify-content: center;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #105f50;
	color: #fff;
}

.s2s-teacher-video .s2s-teacher-video__play[hidden] {
	display: none !important;
}

.s2s-teacher-video .s2s-teacher-video__play:hover,
.s2s-teacher-video .s2s-teacher-video__play:focus {
	background: transparent;
}

.s2s-teacher-video .s2s-teacher-video__play:hover .s2s-teacher-video__play-badge {
	background: #0b4d40;
}

.s2s-teacher-video .s2s-teacher-video__fallback:hover {
	color: #0b4d40;
}

.s2s-teacher-video__play-icon {
	display: block;
	width: 0;
	height: 0;
	border-top: 9px solid transparent;
	border-bottom: 9px solid transparent;
	border-left: 14px solid currentColor;
	margin-left: 3px;
}

.s2s-teacher-video .s2s-teacher-video__fallback {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 1;
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 8px 12px;
	border-radius: 3px;
	background: #fff;
	color: #105f50;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.s2s-teacher-video[data-s2s-enhanced="true"] .s2s-teacher-video__fallback {
	display: none;
}

.s2s-teacher-video__caption {
	margin-top: 12px;
	color: #555e59;
	font-size: 0.95rem;
	line-height: 1.5;
}

.s2s-teacher-stories {
	display: grid;
	width: 100%;
	max-width: none;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	align-items: center;
	gap: clamp(28px, 3vw, 40px);
	padding: clamp(24px, 3vw, 40px);
	background: #f5f5f5;
	color: #252a28;
	font: inherit;
}

.s2s-teacher-stories__video,
.s2s-teacher-stories__quotes,
.s2s-teacher-stories__slides {
	min-width: 0;
}

.s2s-teacher-stories[data-s2s-enhanced="true"] .s2s-teacher-stories__slides {
	display: grid;
	align-items: center;
}

.s2s-teacher-stories[data-s2s-enhanced="true"] .s2s-teacher-stories__slide {
	grid-area: 1 / 1;
}

.s2s-teacher-stories[data-s2s-enhanced="true"] .s2s-teacher-stories__slide[aria-hidden="true"] {
	visibility: hidden;
}

.s2s-teacher-stories__quote {
	margin: 0;
	padding: 0;
	border: 0;
}

.s2s-teacher-stories__quote p {
	margin: 0;
	color: #105f50;
	font-size: clamp(1.125rem, 1.65vw, 1.5rem);
	font-weight: 500;
	line-height: 1.45;
}

.s2s-teacher-stories__quote footer {
	margin-top: 20px;
	color: #555e59;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.5;
}

.s2s-teacher-stories__controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	margin-top: 20px;
	justify-content: center;
}

.s2s-teacher-stories__controls[hidden] {
	display: none !important;
}

.s2s-teacher-stories [hidden] {
	display: none !important;
}

.s2s-teacher-stories .s2s-teacher-stories__control {
	display: inline-flex;
	min-width: 44px;
	min-height: 44px;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	padding: 10px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #105f50;
	cursor: pointer;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.25;
}

.s2s-teacher-stories .s2s-teacher-stories__control:hover {
	background: #e2ece7;
	color: #105f50;
}

.s2s-teacher-stories__control svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.s2s-teacher-stories__rotate {
	margin-inline-start: 8px;
}

.s2s-teacher-stories__rotate[data-rotating="true"] .s2s-teacher-stories__resume-icon,
.s2s-teacher-stories__rotate[data-rotating="false"] .s2s-teacher-stories__pause-icon {
	display: none;
}

.s2s-teacher-stories__count {
	min-width: 4.5em;
	color: #333a36;
	font-size: 0.875rem;
	font-variant-numeric: tabular-nums;
	text-align: center;
}

body.s2s-teacher-lightbox-open {
	overflow: hidden;
}

dialog.s2s-teacher-lightbox {
	width: min(1100px, calc(100vw - 32px), calc((100dvh - 112px) * 16 / 9));
	max-width: none;
	max-height: calc(100dvh - 32px);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: #101615;
	color: #fff;
}

.s2s-teacher-lightbox::backdrop {
	background: rgb(0 0 0 / 82%);
}

.s2s-teacher-lightbox__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 8px 12px 8px 20px;
}

.s2s-teacher-lightbox__header h2 {
	margin: 0;
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
}

.s2s-teacher-lightbox .s2s-teacher-lightbox__close {
	display: flex;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	padding: 10px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: #fff;
	cursor: pointer;
}

.s2s-teacher-lightbox .s2s-teacher-lightbox__close:hover {
	background: #33433e;
}

.s2s-teacher-lightbox .s2s-teacher-lightbox__close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -2px;
}

.s2s-teacher-lightbox__close svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.s2s-teacher-lightbox__frame {
	aspect-ratio: 16 / 9;
}

.s2s-teacher-lightbox__frame iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.s2s-teacher-video .s2s-teacher-video__fallback:focus-visible,
.s2s-teacher-stories .s2s-teacher-stories__control:focus-visible {
	outline: 3px solid #105f50;
	outline-offset: 3px;
}

.s2s-teacher-video .s2s-teacher-video__play:focus-visible {
	outline: 0;
	box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 6px #105f50;
}

@media (forced-colors: active) {
	.s2s-teacher-video .s2s-teacher-video__play:focus-visible {
		outline: 3px solid Highlight;
		outline-offset: -3px;
		box-shadow: none;
	}
}

@media (max-width: 760px) {
	.elementor .e-con:has(> .elementor-widget-shortcode .s2s-teacher-video--intro) {
		container-type: inline-size;
	}

	.elementor .elementor-widget-shortcode:has(.s2s-teacher-video--intro) {
		height: 56.25cqw;
		min-height: 56.25cqw;
		flex-shrink: 0;
	}

	.elementor .elementor-widget-shortcode:has(.s2s-teacher-video--intro) > .elementor-widget-container {
		height: auto;
	}

	.elementor .s2s-teacher-hero-layout.e-con {
		gap: 0;
	}

	.elementor .s2s-teacher-hero-layout > .e-con.e-child {
		min-height: 0;
		gap: 24px;
	}

	.s2s-teacher-stories {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
		padding: clamp(24px, 6vw, 40px);
	}

	.s2s-teacher-stories__quote p {
		font-size: clamp(1.125rem, 5vw, 1.4rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	.s2s-teacher-video *,
	.s2s-teacher-stories * {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
