:root {
	--ost-primary: #123c69;
	--ost-secondary: #0f8b8d;
	--ost-accent: #f4b942;
	--ost-ink: #182231;
	--ost-muted: #607086;
	--ost-soft: #eef6f8;
	--ost-line: #d9e3ea;
	--ost-white: #ffffff;
	--ost-success: #2f855a;
	--ost-danger: #b8323a;
	--ost-shadow: 0 18px 45px rgba(18, 60, 105, 0.14);
	--ost-radius: 8px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--ost-ink);
	background: #fbfdff;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.6;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

p {
	margin: 0 0 1rem;
	color: var(--ost-muted);
}

h1,
h2,
h3 {
	margin: 0;
	color: var(--ost-ink);
	line-height: 1.1;
	letter-spacing: 0;
}

h1 {
	font-size: clamp(2.35rem, 5vw, 4.9rem);
	max-width: 880px;
}

h2 {
	font-size: clamp(1.75rem, 3vw, 3rem);
}

h3 {
	font-size: 1.25rem;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	top: 12px;
	left: 12px;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 10px 14px;
	clip: auto;
	background: var(--ost-white);
	border: 2px solid var(--ost-primary);
}

.site-shell {
	width: min(1180px, calc(100% - 32px));
	margin-inline: auto;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(251, 253, 255, 0.92);
	backdrop-filter: blur(18px);
	border-bottom: 1px solid rgba(217, 227, 234, 0.8);
	transition: box-shadow 180ms ease, background-color 180ms ease;
}

.site-header.is-scrolled {
	box-shadow: 0 10px 30px rgba(18, 60, 105, 0.08);
}

.header-shell {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 78px;
	gap: 24px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.brand-logo img {
	max-width: 190px;
	max-height: 58px;
	object-fit: contain;
}

.brand-mark {
	display: inline-grid;
	place-items: center;
	width: 46px;
	height: 46px;
	flex: 0 0 46px;
	border-radius: var(--ost-radius);
	background: var(--ost-primary);
	color: var(--ost-white);
	font-weight: 800;
}

.brand-copy {
	display: grid;
	min-width: 0;
}

.brand-name {
	font-weight: 800;
	line-height: 1.15;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 270px;
}

.brand-tagline {
	color: var(--ost-muted);
	font-size: 0.82rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 330px;
}

.primary-nav {
	display: flex;
	align-items: center;
	gap: 22px;
}

.menu {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.menu a {
	color: #33445b;
	font-weight: 700;
	font-size: 0.94rem;
}

.menu a:hover,
.menu a:focus {
	color: var(--ost-secondary);
}

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	border: 1px solid var(--ost-line);
	border-radius: var(--ost-radius);
	background: var(--ost-white);
	padding: 10px;
}

.nav-toggle span {
	display: block;
	width: 100%;
	height: 2px;
	margin: 5px 0;
	background: var(--ost-primary);
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 12px 18px;
	border: 1px solid transparent;
	border-radius: var(--ost-radius);
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button:hover,
.button:focus {
	transform: translateY(-1px);
	box-shadow: 0 14px 25px rgba(18, 60, 105, 0.13);
}

.button-primary {
	background: var(--ost-primary);
	color: var(--ost-white);
}

.button-secondary {
	background: var(--ost-white);
	color: var(--ost-primary);
	border-color: var(--ost-line);
}

.button-light {
	background: var(--ost-white);
	color: var(--ost-primary);
}

.button-small {
	min-height: 40px;
	padding: 10px 14px;
	font-size: 0.9rem;
}

.text-link {
	display: inline-flex;
	align-items: center;
	color: var(--ost-secondary);
	font-weight: 800;
}

.text-link::after {
	content: ">";
	margin-left: 8px;
}

.home-hero {
	padding: 70px 0 48px;
	background:
		linear-gradient(135deg, rgba(15, 139, 141, 0.12), rgba(244, 185, 66, 0.12)),
		#f7fbfd;
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
	align-items: center;
	gap: 44px;
}

.eyebrow {
	margin: 0 0 12px;
	color: var(--ost-secondary);
	font-size: 0.78rem;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.hero-text {
	max-width: 680px;
	margin: 22px 0 0;
	font-size: 1.14rem;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 30px;
}

.hero-points {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.hero-points li {
	padding: 8px 12px;
	border: 1px solid rgba(18, 60, 105, 0.12);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.76);
	color: #31455d;
	font-weight: 800;
	font-size: 0.9rem;
}

.hero-media {
	position: relative;
}

.hero-media img {
	width: 100%;
	border-radius: var(--ost-radius);
	box-shadow: var(--ost-shadow);
	border: 1px solid rgba(255, 255, 255, 0.8);
}

.site-section {
	padding: 78px 0;
}

.muted-section {
	background: var(--ost-soft);
}

.section-heading {
	max-width: 780px;
	margin-bottom: 30px;
}

.horizontal-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	max-width: none;
}

.feature-grid,
.news-grid,
.content-grid,
.staff-grid,
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.content-grid,
.news-grid,
.staff-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.news-card,
.staff-card,
.contact-panel,
.empty-state {
	background: var(--ost-white);
	border: 1px solid var(--ost-line);
	border-radius: var(--ost-radius);
	box-shadow: 0 12px 26px rgba(18, 60, 105, 0.06);
}

.feature-card {
	padding: 26px;
}

.feature-number {
	display: inline-flex;
	margin-bottom: 24px;
	color: var(--ost-accent);
	font-weight: 900;
}

.feature-card h3,
.feature-card h2 {
	margin-bottom: 12px;
	font-size: 1.28rem;
}

.split-section {
	background: #ffffff;
}

.split-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
	gap: 44px;
	align-items: center;
}

.split-grid p {
	max-width: 680px;
}

.metrics-panel,
.value-list {
	display: grid;
	gap: 12px;
}

.metrics-panel {
	grid-template-columns: repeat(3, 1fr);
}

.metrics-panel div,
.value-list div {
	padding: 22px;
	border: 1px solid var(--ost-line);
	border-radius: var(--ost-radius);
	background: var(--ost-white);
}

.metrics-panel span {
	display: block;
	color: var(--ost-primary);
	font-size: 2rem;
	font-weight: 900;
}

.metrics-panel p,
.value-list span {
	margin: 0;
}

.value-list strong {
	display: block;
	margin-bottom: 8px;
	color: var(--ost-primary);
}

.admission-band {
	background: var(--ost-primary);
	color: var(--ost-white);
}

.admission-band h2,
.admission-band p,
.admission-band .eyebrow {
	color: var(--ost-white);
}

.admission-grid {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.admission-grid p {
	max-width: 720px;
	opacity: 0.88;
}

.news-card {
	overflow: hidden;
}

.news-image img {
	width: 100%;
	height: 220px;
	object-fit: cover;
}

.news-body {
	padding: 22px;
}

.news-body h2,
.news-body h3 {
	margin-bottom: 10px;
	font-size: 1.24rem;
}

.meta {
	margin-bottom: 8px;
	color: var(--ost-secondary);
	font-size: 0.84rem;
	font-weight: 800;
}

.page-hero {
	padding: 82px 0;
	background: linear-gradient(135deg, rgba(18, 60, 105, 0.98), rgba(15, 139, 141, 0.92));
	color: var(--ost-white);
}

.page-hero h1,
.page-hero p,
.page-hero .eyebrow {
	color: var(--ost-white);
}

.compact-hero p:not(.eyebrow) {
	max-width: 720px;
	margin-top: 16px;
	opacity: 0.9;
}

.narrow-content {
	max-width: 840px;
}

.featured-media {
	margin-top: 42px;
}

.featured-media img {
	width: 100%;
	max-height: 560px;
	object-fit: cover;
	border-radius: var(--ost-radius);
}

.subject-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.subject-list span {
	padding: 10px 14px;
	border-radius: 999px;
	background: var(--ost-white);
	border: 1px solid var(--ost-line);
	font-weight: 800;
	color: var(--ost-primary);
}

.staff-card {
	padding: 26px;
	text-align: center;
}

.staff-card img {
	margin: 0 auto 14px;
	border-radius: 999px;
}

.gallery-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-item {
	display: block;
	overflow: hidden;
	border-radius: var(--ost-radius);
	background: var(--ost-soft);
	aspect-ratio: 4 / 3;
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 220ms ease;
}

.gallery-item:hover img,
.gallery-item:focus img {
	transform: scale(1.04);
}

.contact-grid {
	display: grid;
	grid-template-columns: 0.72fr 1fr;
	gap: 24px;
	align-items: start;
}

.contact-panel {
	padding: 26px;
}

.contact-list {
	display: grid;
	gap: 18px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.contact-list li {
	display: grid;
	gap: 4px;
}

.contact-list strong {
	color: var(--ost-primary);
}

.empty-state {
	padding: 30px;
}

.empty-state.wide {
	grid-column: 1 / -1;
}

.pagination-wrap {
	grid-column: 1 / -1;
}

.site-footer {
	padding-top: 60px;
	background: #0f1723;
	color: var(--ost-white);
}

.site-footer h2,
.site-footer .brand-name {
	color: var(--ost-white);
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 0.7fr 0.9fr;
	gap: 32px;
	padding-bottom: 46px;
}

.footer-note,
.site-footer .brand-tagline,
.footer-links,
.footer-links a,
.footer-links li {
	color: rgba(255, 255, 255, 0.72);
}

.footer-links {
	display: grid;
	gap: 10px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
	margin: 0;
	color: rgba(255, 255, 255, 0.68);
	font-size: 0.92rem;
}

@media (max-width: 1040px) {
	.header-shell {
		min-height: 70px;
	}

	.nav-toggle {
		display: inline-grid;
		align-content: center;
	}

	.primary-nav {
		position: absolute;
		inset: 70px 16px auto;
		display: none;
		padding: 18px;
		background: var(--ost-white);
		border: 1px solid var(--ost-line);
		border-radius: var(--ost-radius);
		box-shadow: var(--ost-shadow);
	}

	.primary-nav.is-open {
		display: grid;
	}

	.menu {
		display: grid;
		gap: 4px;
	}

	.menu a {
		display: block;
		padding: 10px 4px;
	}

	.hero-grid,
	.split-grid,
	.contact-grid {
		grid-template-columns: 1fr;
	}

	.hero-media {
		max-width: 720px;
	}

	.feature-grid,
	.news-grid,
	.content-grid,
	.staff-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 720px) {
	.site-shell {
		width: min(100% - 24px, 1180px);
	}

	.brand-tagline {
		display: none;
	}

	.brand-name {
		max-width: 190px;
	}

	.home-hero,
	.site-section,
	.page-hero {
		padding: 52px 0;
	}

	h1 {
		font-size: 2.38rem;
	}

	.hero-actions,
	.admission-grid,
	.horizontal-heading,
	.footer-bottom {
		align-items: stretch;
		flex-direction: column;
	}

	.button {
		width: 100%;
	}

	.metrics-panel,
	.feature-grid,
	.news-grid,
	.content-grid,
	.staff-grid,
	.gallery-grid,
	.footer-grid {
		grid-template-columns: 1fr;
	}

	.news-image img {
		height: 190px;
	}
}