:root {
	--school-history-blue: #34a9ef;
	--school-history-yellow: #ffdd47;
	--school-history-green: #71bb6b;
	--school-history-ink: #222;
}

.school-history-page {
	width: 100%;
	max-width: none;
	padding: 0;
	background: #fff;
}

.school-history-container {
	width: min(calc(100% - 48px), 984px);
	margin-inline: auto;
}

.principal-section {
	position: relative;
	padding: 290px 0 0;
	overflow: hidden;
	background: var(--school-history-blue);
	color: #fff;
}

.principal-section::before {
	position: absolute;
	top: -10px;
	left: -2%;
	z-index: 0;
	width: 104%;
	height: 109px;
	background: url("../images/admissions-information/hero-bottom-curve.svg") center top / 100% 108px no-repeat;
	content: "";
	pointer-events: none;
}

.principal-section > * {
	position: relative;
	z-index: 1;
}

.school-history-section-heading {
	text-align: center;
}

.school-history-section-heading p {
	margin: 0 0 2px;
	color: var(--school-history-green);
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.17em;
	line-height: 1.8;
	text-transform: uppercase;
}

.school-history-section-heading h2 {
	margin: 0;
	color: var(--school-history-ink);
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: 0.06em;
}

.school-history-section-heading--light p {
	color: var(--school-history-yellow);
}

.school-history-section-heading--light h2 {
	color: #fff;
}

.school-history-section-heading--light {
	width: calc(100% - 405px);
	margin-left: auto;
	text-align: left;
}

.principal-profile {
	display: grid;
	grid-template-columns: 340px minmax(0, 1fr);
	align-items: end;
	gap: 65px;
	margin-top: -78px;
}

.principal-profile__person figure {
	width: 340px;
	height: 313px;
	margin: 0 0 16px;
	overflow: hidden;
	border-radius: 12px;
	background: #dfdfdf;
	box-shadow: 0 14px 34px rgba(30, 85, 130, 0.14);
}

.principal-profile__photo-message {
	display: block;
	width: 340px;
	max-width: 100%;
	height: auto;
	margin: 0 0 12px;
}

.principal-profile__person figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 18%;
}

.principal-profile__person > p {
	margin: 0;
	font-size: 0.94rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.principal-profile__person h3 {
	margin: 2px 0 0;
	color: #fff;
	font-size: 1.75rem;
	font-weight: 800;
	letter-spacing: 0.08em;
}

.principal-profile__details dl {
	margin: 0;
}

.principal-profile__details {
	transform: none;
}

.principal-profile__details dl > div {
	display: grid;
	grid-template-columns: 190px 1fr;
	align-items: center;
	min-height: 75px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.principal-profile__details dt {
	display: flex;
	align-items: center;
	gap: 24px;
	font-size: 1.06rem;
	font-weight: 800;
}

.principal-profile__details dt img {
	width: 30px;
	height: 30px;
	object-fit: contain;
}

.principal-profile__details dd {
	margin: 0;
	font-size: 1.06rem;
	font-weight: 700;
}

.principal-profile__details .principal-profile__motto-row {
	padding-block: 14px;
}

.principal-profile__motto strong,
.principal-profile__motto span,
.principal-profile__motto small {
	display: block;
}

.principal-profile__motto strong {
	font-size: 1.08rem;
}

.principal-profile__motto span {
	margin-top: 8px;
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.75;
}

.principal-profile__motto span b {
	display: inline-block;
	margin-right: 0.65em;
	color: #fff;
	font-size: 0.78rem;
	letter-spacing: 0.08em;
}

.principal-profile__motto small {
	margin-top: 6px;
	font-size: 0.78rem;
	font-weight: 500;
}

.principal-instagram {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	width: 340px;
	min-height: 38px;
	margin: 26px auto 0;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 10px 10px rgba(53, 166, 223, 0.25);
	color: #db3c90;
	font-size: 15px;
	font-weight: 800;
	text-decoration: none;
}

.principal-instagram img {
	width: 20px;
	height: 20px;
}

.principal-memories {
	margin-top: 84px;
}

.principal-vision {
	margin-top: 78px;
}

.principal-memories h2,
.principal-vision h2 {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 0;
	color: #fff;
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: 0.05em;
}

.principal-memories h2 {
	margin-bottom: 44px;
}

.principal-vision h2 {
	margin-bottom: 53px;
}

.principal-memories h2 img,
.principal-vision h2 img {
	width: 46px;
	height: 46px;
	object-fit: contain;
}

.principal-memories ol {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.principal-memories li {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 80px;
	padding: 15px 28px 15px 68px;
	border: 1px solid #e6eef5;
	border-radius: 12px;
	background: #f5fbff;
	box-shadow: 0 12px 14px rgba(30, 85, 130, 0.08);
	color: var(--school-history-ink);
	font-size: 1rem;
	line-height: 1.5;
}

.principal-memories li::before {
	position: absolute;
	left: 30px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #35a6df;
	content: "";
}

.principal-vision__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 15px;
}

.principal-vision article {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 189px;
	padding: 38px 18px 18px;
	border: 1px solid #e6eef5;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 12px 14px rgba(30, 85, 130, 0.08);
	text-align: center;
}

.principal-vision article > span {
	position: absolute;
	top: -17px;
	left: 50%;
	display: grid;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--school-history-green);
	color: #fff;
	font-size: 1.3rem;
	place-items: center;
	transform: translateX(-50%);
}

.principal-vision article p {
	margin: 0 0 10px;
	color: var(--school-history-ink);
	font-size: 1.12rem;
	font-weight: 800;
	line-height: 1.55;
}

.principal-vision article > img {
	width: 48px;
	height: 48px;
	object-fit: contain;
}

.principal-message {
	width: 1184px;
	margin-top: 82px;
	margin-left: -100px;
}

.principal-message h2 {
	margin: 0 0 24px;
	color: var(--school-history-yellow);
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: 0.03em;
}

.principal-message__first,
.principal-message__second {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 339px;
	align-items: start;
	gap: 42px;
}

.principal-message__second {
	grid-template-columns: 339px minmax(0, 1fr);
	margin-top: 56px;
}

.principal-message__text {
	font-size: 1rem;
	font-weight: 500;
	line-height: 2;
}

.principal-message__text p {
	margin-bottom: 1.25em;
}

.principal-message__motto {
	font-size: 1.25rem;
	font-weight: 700;
}

.principal-message__conclusion {
	font-weight: 700;
}

.principal-message__first > img,
.principal-message__second > img {
	width: 339px;
	height: 212px;
	object-fit: cover;
	border-radius: 12px;
}

.teacher-encounters {
	margin-top: 94px;
	padding-bottom: 68px;
}

.teacher-encounters h2 {
	margin: 0 24px 30px;
	color: #fff;
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-align: center;
}

.teacher-marquee {
	width: 100%;
	overflow: hidden;
}

.teacher-marquee__track {
	display: flex;
	gap: 22px;
	width: max-content;
	animation: school-history-marquee-right 50s linear infinite;
	will-change: transform;
}

.teacher-marquee__group {
	display: flex;
	flex: none;
	gap: 22px;
}

.teacher-marquee figure {
	flex: none;
	width: 239px;
	height: 303px;
	margin: 0;
	overflow: hidden;
	border-radius: 10px;
}

.teacher-marquee img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@keyframes school-history-marquee-right {
	from { transform: translateX(calc(-50% - 11px)); }
	to { transform: translateX(0); }
}

.school-history-timeline {
	position: relative;
	padding: 171px 0 130px;
	background: #fff;
}

.history-photo-collage {
	position: relative;
	width: 1180px;
	height: 276px;
	margin: 0 0 62px -98px;
}

.history-photo-collage__pair {
	position: absolute;
	object-fit: cover;
}

.history-photo-collage__pair--left {
	top: 16px;
	left: 0;
	width: 500px;
	height: 261px;
}

.history-photo-collage__pair--right {
	top: 0;
	right: 0;
	width: 626px;
	height: 276px;
}

.history-groups {
	display: grid;
	gap: 70px;
	margin-top: 50px;
}

.history-era > h3 {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 0 0 30px;
	color: var(--school-history-blue);
	font-size: clamp(1.45rem, 2.4vw, 2rem);
	font-weight: 800;
	letter-spacing: 0.12em;
}

.history-era > h3::after {
	flex: 1;
	height: 1px;
	background: #b9e2fa;
	content: "";
}

.history-list {
	columns: 2;
	column-gap: 40px;
}

.history-list article {
	position: relative;
	display: inline-block;
	width: 100%;
	min-height: 52px;
	margin: 0 0 25px;
	padding-left: 25px;
	border-left: 1px solid #ddd;
	break-inside: avoid;
}

.history-list article::before {
	position: absolute;
	top: 5px;
	left: -6px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #72c3f3;
	content: "";
}

.history-list h4 {
	margin: 0 0 2px;
	color: var(--school-history-blue);
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.03em;
	line-height: 1.45;
}

.history-list p {
	margin: 0;
	color: var(--school-history-ink);
	font-size: 0.95rem;
	line-height: 1.5;
}

@media (max-width: 1232px) {
	.principal-message {
		width: 100%;
		margin-left: 0;
	}

	.principal-message__first,
	.principal-message__second {
		grid-template-columns: minmax(0, 1fr) 290px;
	}

	.principal-message__second {
		grid-template-columns: 290px minmax(0, 1fr);
	}

	.principal-message__first > img,
	.principal-message__second > img {
		width: 290px;
	}

	.history-photo-collage {
		display: grid;
		position: static;
		width: 100%;
		height: auto;
		margin: 0 0 36px;
		grid-template-columns: minmax(0, 500fr) minmax(0, 626fr);
		gap: 16px;
	}

	.history-photo-collage__pair,
	.history-photo-collage__pair--left,
	.history-photo-collage__pair--right {
		position: static;
		width: 100%;
		height: auto;
	}
}

@media (max-width: 980px) {
	.school-history-timeline {
		padding-top: 110px;
	}

	.principal-section {
		padding-top: 210px;
	}

	.principal-profile {
		grid-template-columns: 300px 1fr;
		gap: 38px;
		margin-top: -52px;
	}

	.school-history-section-heading--light {
		width: calc(100% - 338px);
	}

	.principal-profile__details {
		transform: none;
	}

	.principal-profile__person figure {
		width: 300px;
		height: 300px;
	}

	.principal-profile__details dl > div {
		grid-template-columns: 165px 1fr;
	}

	.principal-message__first,
	.principal-message__second {
		grid-template-columns: 1fr 290px;
	}

	.principal-message {
		width: 100%;
		margin-left: 0;
	}

	.principal-message__second {
		grid-template-columns: 290px 1fr;
	}

	.principal-message__first > img,
	.principal-message__second > img {
		width: 290px;
	}

}

@media (max-width: 720px) {
	.school-history-container {
		width: min(calc(100% - 32px), 984px);
	}

	.principal-section {
		padding-top: 126px;
		background-image: none;
	}

	.principal-section::before {
		top: -1px;
		height: 73px;
		background-size: 100% 72px;
	}

	.principal-profile {
		display: block;
		margin-top: 42px;
	}

	.school-history-section-heading--light {
		width: 100%;
	}

	.principal-profile__person figure {
		width: 100%;
		height: min(92vw, 420px);
	}

	.principal-profile__photo-message {
		margin: 0 auto 12px;
	}

	.principal-profile__details {
		margin-top: 34px;
	}

	.principal-profile__details dl > div {
		grid-template-columns: 145px 1fr;
		min-height: 68px;
	}

	.principal-profile__details dt {
		gap: 12px;
		font-size: 0.94rem;
	}

	.principal-profile__details dd {
		font-size: 0.94rem;
	}

	.principal-profile__details dl > .principal-profile__motto-row {
		grid-template-columns: 1fr;
		gap: 10px;
		padding-block: 18px;
	}

	.principal-profile__motto strong {
		font-size: 1rem;
	}

	.principal-instagram {
		width: 100%;
		min-height: 48px;
		padding: 8px 20px;
	}

	.principal-memories h2,
	.principal-vision h2,
	.principal-message h2,
	.teacher-encounters h2 {
		font-size: 1.5rem;
	}

	.principal-memories li {
		padding: 18px 18px 18px 52px;
	}

	.principal-memories li::before {
		left: 20px;
		width: 16px;
		height: 16px;
	}

	.principal-vision__grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.principal-message__first,
	.principal-message__second {
		display: flex;
		flex-direction: column;
		gap: 18px;
	}

	.principal-message__first > img,
	.principal-message__second > img {
		order: -1;
		width: 100%;
		height: 220px;
	}

	.teacher-marquee__track,
	.teacher-marquee__group {
		gap: 14px;
	}

	.teacher-marquee figure {
		width: 180px;
		height: 228px;
	}

	@keyframes school-history-marquee-right {
		from { transform: translateX(calc(-50% - 7px)); }
		to { transform: translateX(0); }
	}

	.school-history-timeline {
		padding-block: 78px 90px;
	}

	.history-photo-collage {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.history-photo-collage__pair {
		width: 100%;
		height: auto;
	}

	.history-list {
		columns: 1;
	}

	.history-list article {
		margin-bottom: 22px;
	}

	.history-groups {
		gap: 52px;
		margin-top: 38px;
	}

}

@media (max-width: 640px) {
	.school-history-section-heading--light {
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.teacher-marquee {
		overflow-x: auto;
	}

	.teacher-marquee__track {
		animation: none;
		transform: none;
	}

	.teacher-marquee__group[aria-hidden="true"] {
		display: none;
	}
}
