:root {
	--paper: #f7f1e7;
	--paper-strong: #fffaf1;
	--ink: #20323e;
	--muted: #4f5d69;
	--board: #163b46;
	--board-soft: #255c68;
	--chalk: #f1ecde;
	--accent: #b85a34;
	--accent-soft: #ffd9c5;
	--gold: #f0c76f;
	--line: rgba(32, 50, 62, 0.12);
	--shadow: 0 24px 60px rgba(17, 35, 44, 0.12);
	--radius-lg: 2rem;
	--radius-md: 1.4rem;
}

html {
	scroll-behavior: smooth;
}

body,
input,
select,
textarea {
	background: var(--paper);
	color: var(--ink);
	font-family: "Manrope", Helvetica, sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.8;
}

body {
	min-width: 320px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: #122029;
	font-family: "Fraunces", Georgia, serif;
	font-weight: 700;
	letter-spacing: -0.02em;
}

p {
	margin-bottom: 1.25rem;
}

a {
	border-bottom-color: rgba(18, 32, 41, 0.24);
}

a:hover {
	color: var(--accent);
}

.eyebrow {
	color: var(--accent);
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.18em;
	margin-bottom: 1rem;
	text-transform: uppercase;
}

.site-shell {
	margin: 0 auto;
	max-width: 74rem;
	width: calc(100% - 4rem);
}

.site-nav {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
	justify-content: space-between;
	margin-bottom: 3.5rem;
}

.site-brand {
	border-bottom: 0;
	color: #ffffff;
	font-family: "Fraunces", Georgia, serif;
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.site-nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem 1.3rem;
}

.site-nav-links a {
	border-bottom: 0;
	color: rgba(255, 255, 255, 0.92);
	font-size: 0.84rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.site-nav-links a.active {
	color: #ffffff;
}

#header,
#footer,
.main.style2 {
	background-attachment: scroll;
}

#header {
	background-color: #133844;
	background-image:
		radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 28%),
		repeating-linear-gradient(
			90deg,
			rgba(255, 255, 255, 0.035) 0,
			rgba(255, 255, 255, 0.035) 1px,
			transparent 1px,
			transparent 74px
		),
		linear-gradient(135deg, #143943 0%, #245d68 54%, #2f7280 100%);
	color: rgba(255, 255, 255, 0.82);
	padding: 3.8rem 0 5.4rem 0;
	text-align: left;
}

#header .inner,
#footer .inner {
	margin: 0 auto;
	max-width: 74rem;
	width: calc(100% - 4rem);
}

.hero-grid,
.two-column-layout,
.blog-layout,
.contact-layout {
	align-items: start;
	display: grid;
	gap: 2rem;
	grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.hero-grid.hero-home {
	align-items: center;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.hero-copy h1,
.page-hero-copy h1 {
	font-size: clamp(2.8rem, 6vw, 4.6rem);
	line-height: 1.02;
	margin-bottom: 1.2rem;
	max-width: 12ch;
}

.page-hero-copy h1 {
	font-size: clamp(2.4rem, 5vw, 3.7rem);
	max-width: 14ch;
}

.hero-lead,
.page-intro {
	color: rgba(255, 255, 255, 0.9);
	font-size: 1.12rem;
	margin-bottom: 1.5rem;
	max-width: 42rem;
}

.hero-actions,
#header .actions {
	justify-content: flex-start;
	margin-top: 1.8rem;
}

#header .actions:after {
	display: none;
}

.hero-visual,
.page-hero-visual,
.image-panel {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03));
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	padding: 1rem;
}

.hero-visual .image,
.page-hero-visual .image,
.image-panel .image {
	display: block;
	margin: 0;
	overflow: hidden;
	border-radius: 1.3rem;
}

.hero-visual img,
.page-hero-visual img,
.image-panel img,
.article-card img,
.feature-card img {
	border-radius: 1.3rem;
}

.hero-visual img,
.page-hero-visual img,
.image-panel img {
	display: block;
	height: auto;
	width: 100%;
}

.article-inline-visual {
	margin: 2rem 0 2.4rem 0;
}

.topic-pills,
.tag-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.topic-pills span,
.tag-pills span {
	background: rgba(255, 255, 255, 0.13);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	color: #ffffff;
	font-size: 0.86rem;
	font-weight: 800;
	padding: 0.55rem 0.95rem;
}

.notice-panel .tag-pills span {
	background: rgba(22, 59, 70, 0.08);
	border-color: rgba(32, 50, 62, 0.12);
	color: var(--ink);
}

.main.style1 {
	background: var(--paper);
	padding: 4.8rem 0 3.4rem 0;
}

.main.style2 {
	background-color: var(--board);
	background-image:
		radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 24%),
		linear-gradient(140deg, #143943 8%, #1c4d58 48%, #2d6b76 100%);
	color: rgba(255, 255, 255, 0.86);
	padding: 4.8rem 0 3.4rem 0;
}

.main.style2 h1,
.main.style2 h2,
.main.style2 h3,
.main.style2 h4,
.main.style2 strong,
.main.style2 b {
	color: #ffffff;
}

.main.style2 .eyebrow {
	color: var(--gold);
}

.main.style2 .topic-card,
.main.style2 .info-card {
	color: var(--ink);
}

.main.style2 .topic-card h3,
.main.style2 .info-card h3,
.main.style2 .topic-card strong,
.main.style2 .info-card strong,
.main.style2 .topic-card b,
.main.style2 .info-card b {
	color: #122029;
}

.section-heading {
	margin-bottom: 2rem;
	max-width: 44rem;
}

.section-heading h2 {
	font-size: clamp(2rem, 4vw, 3rem);
	margin-bottom: 0.8rem;
}

.section-heading.centered {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.card-grid,
.article-grid,
.topic-grid,
.related-grid,
.stat-grid {
	display: grid;
	gap: 1.4rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-layout > div > .article-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.featured-grid {
	grid-template-columns: 1fr;
}

.feature-card,
.article-card,
.topic-card,
.info-card,
.sidebar-card,
.contact-card,
.policy-shell,
.article-shell,
.teacher-panel,
.notice-panel {
	background: var(--paper-strong);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
}

.feature-card,
.article-card,
.topic-card,
.info-card,
.sidebar-card,
.contact-card,
.teacher-panel,
.notice-panel {
	padding: 1.1rem;
}

.feature-card img,
.article-card img {
	display: block;
	height: clamp(14rem, 24vw, 18rem);
	margin-bottom: 1rem;
	object-fit: cover;
	object-position: center;
	width: 100%;
}

.article-card {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.featured-grid .article-card {
	align-items: stretch;
	display: grid;
	gap: 1.4rem;
	grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
	padding: 1.25rem;
}

.featured-grid .article-card img {
	height: 100%;
	margin-bottom: 0;
	min-height: 18rem;
}

.article-card .card-copy {
	display: flex;
	flex: 1;
	flex-direction: column;
}

.article-card .actions,
.feature-card .actions {
	margin-top: auto;
}

.card-meta {
	color: var(--accent);
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	margin-bottom: 0.6rem;
	text-transform: uppercase;
}

.article-card h3,
.feature-card h3,
.topic-card h3 {
	font-size: 1.35rem;
	margin-bottom: 0.75rem;
}

.article-card p,
.feature-card p,
.topic-card p,
.sidebar-card p,
.info-card p {
	color: var(--muted);
}

.topic-card .icon-wrap,
.info-card .icon-wrap {
	align-items: center;
	background: linear-gradient(135deg, rgba(230, 127, 84, 0.12), rgba(240, 199, 111, 0.22));
	border-radius: 999px;
	color: var(--accent);
	display: inline-flex;
	height: 3.2rem;
	justify-content: center;
	margin-bottom: 1rem;
	width: 3.2rem;
}

.topic-card .meta-inline {
	color: var(--muted);
	font-size: 0.95rem;
	font-weight: 700;
}

.split-banner {
	align-items: center;
	display: grid;
	gap: 1.5rem;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
}

.teacher-panel {
	align-items: center;
	display: grid;
	gap: 2rem;
	grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
	padding: 1.2rem;
}

.teacher-copy {
	padding: 0.5rem 0.8rem 0.5rem 0.2rem;
}

.teacher-copy ul,
.sidebar-card ul,
.policy-shell ul,
.article-shell ul,
.article-shell ol,
.contact-card ul {
	margin-left: 1.2rem;
}

.teacher-copy li,
.sidebar-card li,
.policy-shell li,
.article-shell li,
.contact-card li {
	margin-bottom: 0.55rem;
}

.teacher-copy li::marker,
.sidebar-card li::marker,
.policy-shell li::marker,
.article-shell li::marker,
.contact-card li::marker {
	color: var(--accent);
}

.home-stats {
	margin-top: 1.5rem;
}

.stat-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
	background: rgba(255, 255, 255, 0.7);
	border: 1px solid rgba(18, 32, 41, 0.08);
	border-radius: 1.3rem;
	box-shadow: var(--shadow);
	padding: 1rem 1.1rem;
}

.stat-card strong {
	display: block;
	font-size: 1.1rem;
	margin-bottom: 0.35rem;
}

.stat-card span {
	color: var(--muted);
	font-size: 0.94rem;
}

.blog-layout {
	grid-template-columns: minmax(0, 1.28fr) minmax(260px, 0.72fr);
}

.sidebar-stack {
	display: grid;
	gap: 1.2rem;
}

.sidebar-card h3 {
	font-size: 1.15rem;
	margin-bottom: 0.8rem;
}

.sidebar-links a,
.footer-links a {
	border-bottom: 0;
}

.sidebar-links li,
.footer-links li {
	list-style: none;
	margin-bottom: 0.7rem;
}

.sidebar-links ul,
.footer-links ul {
	margin: 0;
	padding: 0;
}

.sidebar-links .count {
	color: var(--muted);
	font-size: 0.9rem;
	margin-left: 0.35rem;
}

.pagination {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	justify-content: center;
	margin-top: 2rem;
}

.pagination span,
.pagination a {
	background: rgba(255, 255, 255, 0.7);
	border: 1px solid var(--line);
	border-bottom: 0;
	border-radius: 999px;
	color: var(--ink);
	font-size: 0.95rem;
	font-weight: 700;
	padding: 0.45rem 0.9rem;
}

.pagination .current {
	background: var(--accent);
	border-color: var(--accent);
	color: #ffffff;
}

.article-shell,
.policy-shell {
	padding: 2.4rem;
}

.article-shell h2,
.policy-shell h2 {
	font-size: 2rem;
	margin-top: 2.1rem;
	margin-bottom: 0.8rem;
}

.article-shell h3,
.policy-shell h3 {
	font-size: 1.3rem;
	margin-top: 1.6rem;
	margin-bottom: 0.65rem;
}

.article-meta {
	color: rgba(255, 255, 255, 0.86);
	font-size: 0.88rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.toc {
	background: rgba(230, 127, 84, 0.08);
	border: 1px solid rgba(230, 127, 84, 0.18);
	border-radius: 1.2rem;
	margin: 1.6rem 0 2rem;
	padding: 1.1rem 1.2rem 0.6rem;
}

.toc strong {
	display: block;
	margin-bottom: 0.7rem;
}

.toc ol {
	margin-left: 1.2rem;
}

.info-box {
	border-left: 4px solid var(--accent);
	border-radius: 1rem;
	margin: 1.4rem 0;
	padding: 1rem 1.1rem;
}

.note-box {
	background: rgba(240, 199, 111, 0.12);
}

.tip-box {
	background: rgba(36, 92, 104, 0.08);
}

.related-grid {
	margin-top: 1.4rem;
}

.article-footer {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
}

.contact-card form .row,
.contact-card .row {
	margin-top: 0;
}

.contact-card label {
	color: var(--ink);
	display: block;
	font-weight: 700;
	margin-bottom: 0.4rem;
}

.contact-card input[type="text"],
.contact-card input[type="email"],
.contact-card textarea,
.contact-card select {
	background: #ffffff;
	border: 1px solid rgba(32, 50, 62, 0.14);
	border-radius: 1rem;
	box-shadow: none;
	color: var(--ink);
}

.contact-card textarea {
	min-height: 10rem;
}

.notice-panel {
	padding: 1.6rem;
}

.notice-panel p:last-child {
	margin-bottom: 0;
}

#footer {
	background-color: #0f2d35;
	background-image:
		radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.08), transparent 24%),
		linear-gradient(135deg, #102d36 0%, #1d5560 100%);
	padding: 3.5rem 0;
	text-align: left;
}

.footer-grid {
	display: grid;
	gap: 2rem;
	grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(200px, 0.42fr));
}

.footer-title {
	color: #ffffff;
	font-family: "Fraunces", Georgia, serif;
	font-size: 1.4rem;
	margin-bottom: 0.7rem;
}

.footer-copy,
.footer-links a,
.footer-copy small {
	color: rgba(255, 255, 255, 0.88);
}

.footer-links strong {
	color: #ffffff;
	display: block;
	font-size: 0.92rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	margin-bottom: 0.8rem;
	text-transform: uppercase;
}

.copyright-line {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.9rem;
	margin-top: 2rem;
	padding-top: 1rem;
}

.page-label {
	color: rgba(255, 255, 255, 0.88);
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	margin-bottom: 0.9rem;
	text-transform: uppercase;
}

@media screen and (max-width: 1140px) {
	.card-grid,
	.article-grid,
	.topic-grid,
	.related-grid,
	.stat-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.blog-layout > div > .article-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media screen and (max-width: 980px) {
	.site-shell,
	#header .inner,
	#footer .inner {
		width: calc(100% - 3rem);
	}

	.hero-grid,
	.hero-grid.hero-home,
	.two-column-layout,
	.blog-layout,
	.contact-layout,
	.split-banner,
	.teacher-panel,
	.footer-grid {
		grid-template-columns: 1fr;
	}

	.blog-layout > div > .article-grid,
	.featured-grid .article-card {
		grid-template-columns: 1fr;
	}

	.featured-grid .article-card img {
		height: clamp(14rem, 30vw, 18rem);
		min-height: 0;
	}

	.site-nav {
		margin-bottom: 2.4rem;
	}
}

@media screen and (max-width: 736px) {
	body,
	input,
	select,
	textarea {
		font-size: 15px;
	}

	.site-shell,
	#header .inner,
	#footer .inner {
		width: calc(100% - 2.4rem);
	}

	.hero-copy h1,
	.page-hero-copy h1 {
		font-size: 2.45rem;
	}

	.card-grid,
	.article-grid,
	.topic-grid,
	.related-grid,
	.stat-grid {
		grid-template-columns: 1fr;
	}

	.article-shell,
	.policy-shell {
		padding: 1.6rem;
	}
}
