/* ==========================================================================
   Metamorph Pre School — Curriculum page
   Breakpoints: laptop <= 1366px, tablet <= 1024px, mobile <= 767px
   ========================================================================== */

/* ---------- Title banner with background video ---------- */
.curriculum-hero {
	position: relative;
	z-index: 1;
	overflow: hidden;
	margin-top: -48px;
	padding: 80px 0;
	background-color: #0A303A;
}

.curriculum-hero__video {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
}

.curriculum-hero__video iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	border: 0;
	transform: translate(-50%, -50%);
}

.curriculum-hero__overlay {
	position: absolute;
	inset: 0;
	background-color: var(--accent-2);
	opacity: .46;
}

.curriculum-hero__inner {
	display: flex;
	align-items: center;
	position: relative;
	min-height: 50vh;
	max-width: 1260px;
	margin: 0 auto;
}

.curriculum-hero__content {
	width: 100%;
	padding: 10px;
}

.curriculum-hero__title {
	margin: 0 0 10px;
	color: var(--accent-5);
	font-family: var(--font-display);
	font-size: 86px;
	font-weight: 900;
	line-height: 1.1em;
	letter-spacing: 3.4px;
	text-align: center;
}

.curriculum-hero__text {
	margin: 0 25% 10px;
	color: var(--accent-5);
	font-family: var(--font-text);
	font-size: 23px;
	font-weight: 500;
	line-height: 1.6em;
	text-align: center;
}

.curriculum-hero__text p {
	margin: 0;
}

.curriculum-hero__play {
	text-align: center;
}

.curriculum-hero__play-btn {
	display: inline-block;
	padding: 25px 50px;
	border: 0;
	border-radius: 4px;
	background-color: rgba(2, 1, 1, 0);
	color: var(--accent-5);
	font-size: 85px;
	line-height: 1;
	transition: all .3s;
}

.curriculum-hero__play-btn svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.curriculum-hero__play-btn:hover,
.curriculum-hero__play-btn:focus {
	color: var(--accent-1);
}

/* ---------- Why Metamorph stands out ---------- */
.why {
	overflow: hidden;
	margin: 100px 0;
	padding: 0 30px;
}

.why__word-wrap {
	margin-bottom: 20px;
}

.why__word {
	padding: 0 0 0 130px;
	color: #0A303A;
	font-family: var(--font-display);
	font-size: 240px;
	line-height: 1.1em;
	white-space: nowrap;
	transform-origin: left center;
}

.why__row {
	display: flex;
	max-width: 900px;
	margin: 0 auto;
}

.why__col {
	padding: 10px;
}

.why__col--img { width: 39.222%; }
.why__col--text { width: 60.778%; }

.why__people {
	text-align: center;
}

.why__title {
	color: #0A303A;
	letter-spacing: 3.6px;
}

.why__text {
	padding-bottom: 10px;
}

.why__btn {
	margin-left: 3px;
}

.why__contact {
	padding: 15px 30px;
	background-color: rgba(231, 76, 37, 0);
	font-size: 16px;
}

/* ---------- Shared split sections (card + photo) ---------- */
.cur-split {
	position: relative;
	overflow: hidden;
}

.cur-split__row {
	display: flex;
	position: relative;
	max-width: 1260px;
	margin: 0 auto;
}

.cur-split__col {
	display: flex;
	flex-direction: column;
	position: relative;
	width: 50%;
}

.cur-card {
	z-index: 1;
	padding: 60px;
	border-radius: 8px;
	background-color: #FFFFFF;
}

.cur-card__overlay {
	position: absolute;
	inset: 0;
	border-radius: 8px;
	background-image: url("../images/curriculum/card-texture.webp");
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	opacity: .41;
}

.cur-card__body {
	position: relative;
}

.cur-title {
	color: var(--accent-3);
	letter-spacing: 3.6px;
}

.cur-photo {
	text-align: center;
}

.cur-photo img {
	display: block;
	width: 100%;
	max-width: 100%;
	border-radius: 7px;
}

/* ---------- Innovative curriculum ---------- */
.innovative {
	padding: 130px 30px 65px;
}

.innovative__bg-scale {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background-color: #FCD9007D;
}

.innovative__bg {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	background-image: url("../images/curriculum/snail-dark-blue.webp");
	background-position: bottom center;
	background-repeat: no-repeat;
	background-size: auto;
}

.innovative__intro {
	font-family: var(--font-text);
	font-size: 18px;
}

.innovative__intro p {
	margin: 0;
}

.innovative__list {
	--icon-size: 20px;
	--icon-color: var(--accent-1);
	--text-color: var(--text);
}

.innovative__list .icon-list__icon {
	padding-right: 10px;
}

.innovative__list .icon-list__text {
	font-family: var(--font-text);
	font-size: 17px;
	font-weight: 700;
}

.innovative__photo {
	margin: 0 0 0 -40px;
}

/* ---------- What sets Metamorph apart ---------- */
.apart {
	padding: 65px 30px 80px;
	background-color: #FCD9007D;
}

.apart__overlay {
	position: absolute;
	inset: 0;
	background-image: url("../images/curriculum/illustration-right-cut.svg");
	background-position: bottom right;
	background-repeat: no-repeat;
	background-size: contain;
}

.apart__photo {
	margin: 0 -40px 0 0;
}

/* ---------- Timeline ---------- */
.cur-timeline {
	overflow: hidden;
	padding: 23px 30px;
}

.timeline {
	position: relative;
	padding: 20px;
}

.timeline__viewport {
	position: relative;
	overflow: hidden;
}

.timeline__track {
	display: flex;
	transition: transform .25s ease;
}

.timeline__item {
	display: flex;
	flex-direction: column;
	flex: 0 0 20%;
	align-items: center;
	gap: 50px;
	min-width: 0;
}

.timeline__half {
	display: flex;
	justify-content: center;
	width: 100%;
	padding: 0 10px;
}

.timeline__half--top {
	align-items: flex-end;
}

.timeline__half--bottom {
	align-items: flex-start;
}

.timeline__media-box {
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	width: 100%;
}

/* Connectors between the cards and the line */
.timeline__media-box::before,
.timeline__media-box::after {
	content: "";
	position: absolute;
	left: calc(50% - 1px);
	width: 2px;
	height: 50px;
	background-color: #D03A39;
}

.timeline__media-box::before { top: -50px; }
.timeline__media-box::after  { bottom: -50px; }

.timeline__line {
	position: absolute;
	top: 28px;
	left: -10%;
	right: -10%;
	height: 2px;
	background-color: #D03A39;
}

.timeline__media {
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background-color: #FFFFFF;
}

.timeline__media svg {
	display: block;
	width: 32px;
	height: auto;
	fill: #20323D;
}

.timeline__card {
	width: 100%;
	max-width: 360px;
	padding: 20px;
	border: 1px solid #EEEEEE;
	border-radius: 18px;
	background-color: #FFFFFF;
}

.timeline__card-media img {
	display: inline-block;
	width: 159px;
	height: auto;
	max-width: 100%;
	margin: 0 0 10px;
	object-fit: cover;
	vertical-align: baseline;
}

.timeline__title {
	margin: 0 0 5px;
	color: #0A303A;
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 100;
	line-height: 1.1em;
}

.timeline__text {
	margin: 0;
	color: #2B2B2B;
	font-family: var(--font-text);
	font-size: 15px;
	font-weight: 500;
}

/* Arrows only appear when the timeline becomes a carousel (white, as on the original) */
.timeline__nav {
	display: none;
	justify-content: center;
	align-items: center;
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 50px;
	height: 50px;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: #FFFFFF;
	font-size: 20px;
	transform: translateY(-50%);
	cursor: pointer;
}

.timeline__nav svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.timeline__nav--prev { left: 20px; }
.timeline__nav--next { right: 20px; }

.timeline__nav:disabled {
	pointer-events: none;
}

.timeline__nav:disabled svg {
	opacity: .3;
}

.timeline.is-carousel .timeline__nav {
	display: inline-flex;
}

.timeline.is-carousel .timeline__viewport {
	cursor: grab;
}

/* ---------- Pattern divider ---------- */
.cur-divider {
	margin: 0 0 3%;
	padding: 0 30px;
}

.cur-divider__inner {
	padding: 10px;
}

.pattern-divider {
	display: flex;
	align-items: center;
	padding: 15px 0;
}

.pattern-divider__line {
	flex-grow: 1;
	min-height: 20px;
	background-color: #000000;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='xMidYMid meet' overflow='visible' height='100%25' viewBox='0 0 126 26' fill='black' stroke='none'%3E%3Cpath d='M111.9,18.3v3.4H109v-3.4H111.9z M90.8,18.3v3.4H88v-3.4H90.8z M69.8,18.3v3.4h-2.9v-3.4H69.8z M48.8,18.3v3.4h-2.9v-3.4H48.8z M27.7,18.3v3.4h-2.9v-3.4H27.7z M6.7,18.3v3.4H3.8v-3.4H6.7z M46.4,4l4.3,4.8l-1.8,0l3.5,4.4l-2.2-0.1l3,3.3l-11,0.4l3.6-3.8l-2.9-0.1l3.1-4.2l-1.9,0L46.4,4z M111.4,4l2.4,4.8l-1.8,0l3.5,4.4l-2.5-0.1l3.3,3.3h-11l3.1-3.4l-2.5-0.1l3.1-4.2l-1.9,0L111.4,4z M89.9,4l2.9,4.8l-1.9,0l3.2,4.2l-2.5,0l3.5,3.5l-11-0.4l3-3.1l-2.4,0L88,8.8l-1.9,0L89.9,4z M68.6,4l3,4.4l-1.9,0.1l3.4,4.1l-2.7,0.1l3.8,3.7H63.8l2.9-3.6l-2.9,0.1L67,8.7l-2,0.1L68.6,4z M26.5,4l3,4.4l-1.9,0.1l3.7,4.7l-2.5-0.1l3.3,3.3H21l3.1-3.4l-2.5-0.1l3.2-4.3l-2,0.1L26.5,4z M4.9,4l3.7,4.8l-1.5,0l3.1,4.2L7.6,13l3.4,3.4H0l3-3.3l-2.3,0.1l3.5-4.4l-2.3,0L4.9,4z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='xMidYMid meet' overflow='visible' height='100%25' viewBox='0 0 126 26' fill='black' stroke='none'%3E%3Cpath d='M111.9,18.3v3.4H109v-3.4H111.9z M90.8,18.3v3.4H88v-3.4H90.8z M69.8,18.3v3.4h-2.9v-3.4H69.8z M48.8,18.3v3.4h-2.9v-3.4H48.8z M27.7,18.3v3.4h-2.9v-3.4H27.7z M6.7,18.3v3.4H3.8v-3.4H6.7z M46.4,4l4.3,4.8l-1.8,0l3.5,4.4l-2.2-0.1l3,3.3l-11,0.4l3.6-3.8l-2.9-0.1l3.1-4.2l-1.9,0L46.4,4z M111.4,4l2.4,4.8l-1.8,0l3.5,4.4l-2.5-0.1l3.3,3.3h-11l3.1-3.4l-2.5-0.1l3.1-4.2l-1.9,0L111.4,4z M89.9,4l2.9,4.8l-1.9,0l3.2,4.2l-2.5,0l3.5,3.5l-11-0.4l3-3.1l-2.4,0L88,8.8l-1.9,0L89.9,4z M68.6,4l3,4.4l-1.9,0.1l3.4,4.1l-2.7,0.1l3.8,3.7H63.8l2.9-3.6l-2.9,0.1L67,8.7l-2,0.1L68.6,4z M26.5,4l3,4.4l-1.9,0.1l3.7,4.7l-2.5-0.1l3.3,3.3H21l3.1-3.4l-2.5-0.1l3.2-4.3l-2,0.1L26.5,4z M4.9,4l3.7,4.8l-1.5,0l3.1,4.2L7.6,13l3.4,3.4H0l3-3.3l-2.3,0.1l3.5-4.4l-2.3,0L4.9,4z'/%3E%3C/svg%3E");
	-webkit-mask-repeat: repeat-x;
	mask-repeat: repeat-x;
	-webkit-mask-size: auto 100%;
	mask-size: auto 100%;
}

.pattern-divider__icon {
	flex-shrink: 0;
	margin: 0 10px;
	font-size: 20px;
	line-height: 1;
}

.pattern-divider__icon svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: #000000;
}

/* ==========================================================================
   RESPONSIVE — TABLET (<= 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
	.curriculum-hero__inner {
		max-width: 1024px;
	}

	.curriculum-hero__title {
		font-size: 70px;
	}

	.curriculum-hero__text {
		margin: 0 10% 10px;
	}

	.why {
		margin: 70px 0;
		padding: 0 30px;
	}

	.why__word {
		padding: 0;
		font-size: 130px;
		transform: none !important;
	}

	.why__col {
		padding: 0;
	}

	.why__people {
		margin-top: 60px;
		transform: none !important;
	}

	.cur-card {
		padding: 20px;
	}

	.innovative {
		padding: 100px 30px 50px;
	}

	.innovative__photo-col {
		margin-top: 100px;
	}

	.timeline__title {
		line-height: 1.2em;
	}
}

/* Timeline becomes a two-up carousel below 1024px (as on the original) */
@media (max-width: 1023px) {
	.timeline__item {
		flex-basis: 50%;
	}
}

/* ==========================================================================
   RESPONSIVE — MOBILE (<= 767px)
   ========================================================================== */
@media (max-width: 767px) {
	.curriculum-hero {
		margin-top: 20px;
		padding: 30px 20px 20px;
	}

	.curriculum-hero__content {
		padding: 0;
	}

	.curriculum-hero__title {
		font-size: 55px;
		text-align: start;
	}

	.curriculum-hero__text {
		margin: 0 0 10px;
		font-size: 15px;
		line-height: 1.63em;
		text-align: start;
	}

	.curriculum-hero__play {
		text-align: left;
	}

	.curriculum-hero__play-btn {
		padding: 0;
		font-size: 60px;
	}

	.why {
		margin: 50px 0 0;
		padding: 0 20px;
	}

	.why__word-wrap {
		margin-bottom: 10px;
	}

	.why__word {
		font-size: 80px;
	}

	.why__row {
		flex-direction: column-reverse;
	}

	.why__col {
		width: 100%;
	}

	.why__col--img {
		padding: 30px 0 0;
	}

	.why__people {
		margin-top: 0;
	}

	.why__people img {
		width: 50%;
	}

	.why__title {
		font-size: 30px;
	}

	.why .stack > * + * {
		margin-top: 20px;
	}

	.why__text:first-of-type {
		padding-bottom: 0;
	}

	.cur-split__row {
		flex-wrap: wrap;
	}

	.cur-split--reverse-mobile .cur-split__row {
		flex-direction: column-reverse;
	}

	.cur-split__col {
		width: 100%;
	}

	.cur-card {
		margin-top: 20px;
	}

	.cur-card .stack > * + * {
		margin-top: 20px;
	}

	.cur-title {
		font-size: 30px;
	}

	.innovative {
		margin-top: 20px;
		padding: 0 20px;
	}

	.innovative__photo-col {
		margin-top: 0;
	}

	.innovative__photo,
	.apart__photo {
		margin: 0;
		transform: none !important;
	}

	.apart {
		padding: 70px 20px 60px;
	}

	.cur-timeline {
		padding: 70px 20px 60px;
	}

	.timeline__item {
		flex-basis: 100%;
	}

	.timeline__item--up {
		flex-direction: column;
	}

	.timeline__item--up .timeline__half--top {
		order: 3;
		align-items: flex-start;
	}

	.timeline__item--up .timeline__half--bottom {
		order: 1;
	}

	.timeline__item--up .timeline__media-box {
		order: 2;
	}

	.cur-divider {
		padding: 0 20px;
	}
}

/* Reverse layout on desktop/tablet: alternate cards sit above the line */
@media (min-width: 768px) {
	.timeline__item--up .timeline__half--top {
		align-items: flex-end;
	}
}
