@import url("_header-layout.css");

/**
 * TCCTura College - main stylesheet
 * Colors: Primary #C62828, Secondary #EF5350, Text #212121, Light bg #F5F5F5
 */

:root {
	--font-brand: "Inter", var(--font-sans);
	--font-nav: "Oswald", var(--font-sans);
	--color-primary: #c62828;
	--color-primary-dark: #8e0000;
	--color-secondary: #ef5350;
	--color-bg: #ffffff;
	--color-bg-muted: #f5f5f5;
	--color-bg-page: #f7f8fa;
	--color-text: #212121;
	--color-text-muted: #616161;
	--font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Roboto", sans-serif;
	--space-xs: 0.5rem;
	--space-sm: 1rem;
	--space-md: 1.5rem;
	--space-lg: 2.5rem;
	--space-xl: 4rem;
	--radius: 6px;
	--radius-lg: 10px;
	--shadow: 0 2px 12px rgba(33, 33, 33, 0.08);
	--shadow-sm: 0 1px 3px rgba(33, 33, 33, 0.06);
	--shadow-md: 0 4px 20px rgba(33, 33, 33, 0.08);
	--shadow-lg: 0 12px 40px rgba(33, 33, 33, 0.1);
	--border-subtle: rgba(33, 33, 33, 0.08);
	--ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
	--ease-out: cubic-bezier(0, 0, 0.2, 1);
	--max-width: 1140px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--color-text);
	background: var(--color-bg-page);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

::selection {
	background: rgba(198, 40, 40, 0.18);
	color: var(--color-text);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--color-primary);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
	color: var(--color-primary-dark);
	text-decoration: underline;
}

a:focus-visible {
	outline: 2px solid var(--color-secondary);
	outline-offset: 2px;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
}

/* Skip link */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100000;
	padding: var(--space-sm) var(--space-md);
	background: var(--color-primary);
	color: #fff;
	font-weight: 600;
}

.skip-link:focus {
	left: var(--space-sm);
	top: var(--space-sm);
}

/* Layout */
.site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-main {
	flex: 1;
}

.wrap {
	width: 100%;
	max-width: var(--max-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--space-md);
	padding-right: var(--space-md);
}

@media (max-width: 600px) {
	.wrap {
		padding-left: max(var(--space-sm), env(safe-area-inset-left, 0));
		padding-right: max(var(--space-sm), env(safe-area-inset-right, 0));
	}

	.section {
		padding-left: max(var(--space-sm), env(safe-area-inset-left, 0));
		padding-right: max(var(--space-sm), env(safe-area-inset-right, 0));
		padding-top: var(--space-lg);
		padding-bottom: var(--space-lg);
	}

	.page-header .wrap {
		padding-top: var(--space-sm);
		padding-bottom: var(--space-sm);
	}
}

/* Hero */
.hero {
	position: relative;
	min-height: min(52vh, 420px);
	display: flex;
	align-items: center;
	background: linear-gradient(
			135deg,
			rgba(198, 40, 40, 0.88) 0%,
			rgba(33, 33, 33, 0.75) 100%
		),
		var(--hero-image, #424242) center/cover no-repeat;
	color: #fff;
	padding: var(--space-xl) var(--space-md);
}

.hero-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	width: 100%;
}

.hero h1 {
	margin: 0 0 var(--space-sm);
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 700;
	line-height: 1.2;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero .tagline {
	margin: 0;
	font-size: 1.05rem;
	max-width: 36em;
	opacity: 0.95;
}

.hero-cta {
	margin-top: var(--space-md);
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
}

/* Hero image slider (Customizer-managed): full width, no overlay */
.hero.hero-has-slider {
	padding: 0;
	margin: 0;
	width: 100%;
	max-width: none;
	min-height: 0;
	display: block;
	background: #111;
	color: var(--color-text);
}

.hero-slider-viewport {
	position: relative;
	width: 100%;
	max-width: none;
	margin: 0;
	height: var(--hero-slider-h, 680px);
	overflow: hidden;
	background: #111;
}

.hero-slider-track {
	display: flex;
	height: 100%;
	width: calc(100% * var(--hero-slide-count, 1));
	transition: transform 0.45s ease;
	will-change: transform;
}

.hero-slider-slide {
	flex: 0 0 calc(100% / var(--hero-slide-count, 1));
	height: 100%;
	position: relative;
}

.hero-slider-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hero-slider-prev,
.hero-slider-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 2.75rem;
	height: 2.75rem;
	border: none;
	border-radius: var(--radius);
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
}

.hero-slider-prev:hover,
.hero-slider-next:hover,
.hero-slider-prev:focus-visible,
.hero-slider-next:focus-visible {
	background: rgba(0, 0, 0, 0.65);
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.hero-slider-prev {
	left: var(--space-sm);
}

.hero-slider-next {
	right: var(--space-sm);
}

.hero-slider-dots {
	position: absolute;
	bottom: var(--space-sm);
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	display: flex;
	gap: 0.5rem;
	align-items: center;
}

.hero-slider-dot {
	width: 0.65rem;
	height: 0.65rem;
	padding: 0;
	border: 2px solid rgba(255, 255, 255, 0.7);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}

.hero-slider-dot.is-active,
.hero-slider-dot[aria-selected="true"] {
	background: #fff;
	border-color: #fff;
}

@media (max-width: 600px) {
	.hero-slider-viewport {
		height: min(var(--hero-slider-h, 680px), 55vh);
		min-height: 280px;
	}

	.hero-slider-prev,
	.hero-slider-next {
		width: 2.25rem;
		height: 2.25rem;
		font-size: 1.25rem;
	}
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.65rem 1.35rem;
	font-size: 0.9375rem;
	font-weight: 600;
	font-family: inherit;
	border-radius: var(--radius);
	border: 2px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition:
		background 0.22s var(--ease-standard),
		color 0.22s var(--ease-standard),
		border-color 0.22s var(--ease-standard),
		box-shadow 0.22s var(--ease-standard),
		transform 0.22s var(--ease-standard);
}

.btn:focus-visible {
	outline: 2px solid var(--color-secondary);
	outline-offset: 3px;
}

.btn-primary {
	background: #fff;
	color: var(--color-primary);
	box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
	background: var(--color-bg-muted);
	color: var(--color-primary-dark);
	text-decoration: none;
	box-shadow: var(--shadow-md);
	transform: translateY(-1px);
}

.btn-outline {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.85);
}

.btn-outline:hover {
	background: rgba(255, 255, 255, 0.12);
	text-decoration: none;
	transform: translateY(-1px);
}

.btn-dark {
	background: var(--color-primary);
	color: #fff;
	box-shadow: 0 2px 10px rgba(198, 40, 40, 0.35);
}

.btn-dark:hover {
	background: var(--color-primary-dark);
	color: #fff;
	text-decoration: none;
	box-shadow: 0 4px 16px rgba(198, 40, 40, 0.42);
	transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
	.btn-primary:hover,
	.btn-outline:hover,
	.btn-dark:hover {
		transform: none;
	}
}

/* Sections */
.section {
	padding: var(--space-xl) var(--space-md);
	position: relative;
}

.section > .wrap {
	position: relative;
	z-index: 1;
}

.section-muted {
	background: var(--color-bg-muted);
}

.section-title {
	margin: 0 0 var(--space-lg);
	font-size: clamp(1.5rem, 3vw, 1.75rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--color-text);
	text-align: center;
}

.section-intro {
	max-width: 42rem;
	margin: -2rem auto var(--space-lg);
	text-align: center;
	color: var(--color-text-muted);
	font-size: 1rem;
}

/* Body copy in page sections: justified (headings / intros stay centered via classes below) */
.section p {
	text-align: justify;
	text-justify: inter-word;
	hyphens: auto;
	-webkit-hyphens: auto;
}

.section-intro,
.section p.section-intro {
	text-align: center;
	hyphens: manual;
	-webkit-hyphens: manual;
}

/* Grid cards */
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: var(--space-md);
}

.card {
	background: var(--color-bg);
	border-radius: var(--radius-lg);
	padding: var(--space-md);
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--border-subtle);
	transition:
		box-shadow 0.28s var(--ease-standard),
		transform 0.28s var(--ease-standard),
		border-color 0.28s var(--ease-standard);
}

.card-grid .card:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-3px);
	border-color: rgba(198, 40, 40, 0.12);
}

.card h3 {
	margin: 0 0 var(--space-sm);
	font-size: 1.125rem;
	color: var(--color-primary);
}

.card p {
	margin: 0;
	color: var(--color-text-muted);
	font-size: 0.9375rem;
	line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
	.card-grid .card:hover {
		transform: none;
	}
}

/* Flash news ticker (below hero) */
.flash-news {
	background: var(--color-bg);
	border-bottom: 2px solid #e10707;
	box-shadow: var(--shadow-sm);
}

.flash-news__bar {
	padding: 0.65rem 0;
}

.flash-news__viewport {
	overflow: hidden;
	width: 100%;
	/* Let clicks pass through the moving strip; links re-enable below. */
	pointer-events: none;
}

.flash-news__marquee {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	width: max-content;
	max-width: none;
	pointer-events: none;
	will-change: transform;
}

/* Right → left: one loop = width of one .flash-news__group (--flash-shift from JS, fallback -50% for two equal strips). */
.flash-news__marquee--animate {
	animation: flash-news-ticker var(--flash-news-duration, 28s) linear infinite;
}

.flash-news__marquee--animate:hover {
	animation-play-state: paused;
}

/* Reduced motion / no-JS: show strip without animation */
.flash-news__marquee.flash-news--static {
	width: 100%;
	max-width: 100%;
	justify-content: center;
	flex-wrap: wrap;
	row-gap: 0.5rem;
	animation: none;
	pointer-events: auto;
	will-change: auto;
}

.flash-news__marquee.flash-news--static .flash-news__group {
	padding-right: 0;
}

.flash-news__marquee.flash-news--static .flash-news__group[aria-hidden="true"] {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.flash-news__marquee--animate {
		animation: none;
	}

	.flash-news__marquee .flash-news__group[aria-hidden="true"] {
		display: none;
	}

	.flash-news__viewport {
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		pointer-events: auto;
	}
}

@keyframes flash-news-ticker {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(var(--flash-shift, -50%));
	}
}

.flash-news__group {
	display: inline-flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	gap: 2.5rem;
	padding-right: 2.5rem;
	flex: 0 0 auto;
}

.flash-news__item {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	white-space: nowrap;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--color-text);
}

.flash-news__item-icon {
	flex-shrink: 0;
	color: #e10707;
}

.flash-news__item-link {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
	cursor: pointer;
	pointer-events: auto;
	position: relative;
	z-index: 2;
}

.flash-news__item-link:hover,
.flash-news__item-link:focus-visible {
	color: var(--color-primary);
	text-decoration: underline;
}

.flash-news__item-text {
	font-weight: 600;
}

.flash-news__thumb {
	flex-shrink: 0;
	width: 1.35rem;
	height: 1.35rem;
	object-fit: cover;
	border-radius: 3px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	vertical-align: middle;
}

.flash-news__pdf-badge {
	display: inline-block;
	margin-left: 0.35rem;
	padding: 0.12rem 0.4rem;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #fff;
	background: #c62828;
	border-radius: 3px;
	vertical-align: middle;
	line-height: 1.2;
}

/* Welcome (front page, above About) */
.section-welcome {
	background: linear-gradient(
		180deg,
		#f4f6f9 0%,
		#eef1f5 48%,
		#e8ecf1 100%
	);
}

.section-welcome__header {
	text-align: center;
	margin-bottom: var(--space-xl);
}

.section-welcome .section-welcome__title {
	position: relative;
	margin: 0 0 var(--space-md);
	padding-bottom: var(--space-md);
}

.section-welcome .section-welcome__title::after {
	content: "";
	display: block;
	width: 3rem;
	height: 3px;
	margin: var(--space-md) auto 0;
	background: linear-gradient(
		90deg,
		var(--color-primary),
		var(--color-secondary)
	);
	border-radius: 2px;
}

.section-welcome__body {
	display: flow-root;
}

.section-welcome__media {
	float: left;
	width: min(38%, 17.5rem);
	margin: 0 var(--space-lg) var(--space-sm) 0;
}

.section-welcome__lead {
	margin: 0 0 var(--space-md);
	font-size: 1.0625rem;
	line-height: 1.7;
	font-weight: 500;
	color: var(--color-text);
}

.section-welcome__cta {
	clear: left;
	margin: var(--space-md) 0 0;
}

.section-welcome__btn {
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.section-welcome__btn:hover,
.section-welcome__btn:focus-visible {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.24);
}

.section-welcome__figure {
	margin: 0;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	border: 1px solid rgba(0, 0, 0, 0.06);
	background: linear-gradient(145deg, #f0f2f5 0%, #e4e8ee 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-sm);
}

.section-welcome__img {
	display: block;
	width: 100%;
	height: auto;
	max-height: min(280px, 42vw);
	object-fit: contain;
	vertical-align: middle;
}

@media (max-width: 640px) {
	.section-welcome__media {
		float: none;
		width: auto;
		max-width: 16rem;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: var(--space-md);
	}

	.section-welcome__cta {
		clear: none;
		text-align: center;
	}
}

/* Principal’s message (front page) — warm, welcoming tone */
.section-principal-message {
	background: linear-gradient(
		168deg,
		#fffbf5 0%,
		#fff4e8 38%,
		#ffe9d6 72%,
		#ffd9bc 100%
	);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.section-principal-message__header {
	text-align: center;
	margin-bottom: var(--space-xl);
}

.section-principal-message .section-principal-message__title {
	position: relative;
	margin: 0 0 var(--space-md);
	padding-bottom: var(--space-md);
}

.section-principal-message .section-principal-message__title::after {
	content: "";
	display: block;
	width: 3rem;
	height: 3px;
	margin: var(--space-md) auto 0;
	background: linear-gradient(
		90deg,
		var(--color-primary),
		var(--color-secondary)
	);
	border-radius: 2px;
}

.section-principal-message__body {
	display: flow-root;
}

.section-principal-message__media {
	float: left;
	width: min(36%, 17.5rem);
	margin: 0 var(--space-lg) var(--space-sm) 0;
	shape-outside: margin-box;
}

@keyframes tcctura-principal-portrait-in {
	from {
		opacity: 0;
		transform: translateY(18px) scale(0.97);
		box-shadow:
			0 2px 8px rgba(160, 85, 45, 0.08),
			0 0 0 rgba(120, 60, 30, 0);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
		box-shadow:
			0 4px 20px rgba(160, 85, 45, 0.14),
			0 1px 3px rgba(120, 60, 30, 0.08);
	}
}

.section-principal-message__figure {
	margin: 0;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow:
		0 4px 20px rgba(160, 85, 45, 0.14),
		0 1px 3px rgba(120, 60, 30, 0.08);
	border: 1px solid rgba(200, 120, 70, 0.22);
	background: #fff;
	animation: tcctura-principal-portrait-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
	transition:
		transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.45s ease;
}

.section-principal-message__figure:hover {
	transform: translateY(-5px);
	box-shadow:
		0 12px 32px rgba(160, 85, 45, 0.22),
		0 4px 12px rgba(120, 60, 30, 0.1);
}

.section-principal-message__img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	aspect-ratio: 3 / 2;
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-principal-message__figure:hover .section-principal-message__img {
	transform: scale(1.035);
}

@media (prefers-reduced-motion: reduce) {
	.section-principal-message__figure {
		animation: none;
		opacity: 1;
		transform: none;
		transition: none;
	}

	.section-principal-message__figure:hover {
		transform: none;
		box-shadow:
			0 4px 20px rgba(160, 85, 45, 0.14),
			0 1px 3px rgba(120, 60, 30, 0.08);
	}

	.section-principal-message__figure:hover .section-principal-message__img {
		transform: none;
	}

	.section-principal-message__img {
		transition: none;
	}
}

.section-principal-message__body > p {
	margin: 0 0 var(--space-md);
	font-size: 1rem;
	line-height: 1.75;
	color: #4a3f38;
}

.section-principal-message__greeting {
	font-size: 1.125rem;
	font-weight: 600;
	color: #2c241f;
}

.section-principal-message__quote {
	clear: left;
	margin: var(--space-md) 0 var(--space-lg);
	padding: var(--space-md) var(--space-lg);
	border-left: 4px solid var(--color-primary);
	background: linear-gradient(
		95deg,
		rgba(255, 255, 255, 0.88) 0%,
		rgba(255, 248, 240, 0.95) 100%
	);
	border-radius: var(--radius);
	box-shadow: 0 2px 12px rgba(160, 75, 40, 0.1);
}

.section-principal-message__quote p {
	margin: 0 0 var(--space-sm);
	font-style: italic;
	color: #3d332c;
}

.section-principal-message__quote cite {
	display: block;
	font-size: 0.9375rem;
	font-style: normal;
	font-weight: 600;
	color: #6b5d52;
}

.section-principal-message__closing {
	margin-bottom: 0 !important;
	font-weight: 500;
	color: #2c241f;
}

@media (max-width: 640px) {
	.section-principal-message__media {
		float: none;
		width: auto;
		max-width: 22rem;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: var(--space-md);
	}
}

/* Course offered (front page) — replaces former About block */
.section-courses-offered.section-muted {
	background:
		radial-gradient(ellipse 120% 90% at 50% -15%, rgba(198, 40, 40, 0.14) 0%, transparent 52%),
		radial-gradient(ellipse 80% 60% at 100% 100%, rgba(239, 83, 80, 0.08) 0%, transparent 50%),
		linear-gradient(
			168deg,
			#fff8f7 0%,
			#f5eaea 32%,
			#e9eef6 68%,
			#dfe8f2 100%
		);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.section-courses-offered__header {
	text-align: center;
	margin-bottom: var(--space-lg);
}

.section-courses-offered .section-courses-offered__title {
	position: relative;
	margin-bottom: var(--space-sm);
	padding-bottom: var(--space-md);
	color: #1a1a1a;
}

.section-courses-offered .section-courses-offered__title::after {
	content: "";
	display: block;
	width: 3rem;
	height: 3px;
	margin: var(--space-md) auto 0;
	background: linear-gradient(
		90deg,
		var(--color-primary),
		var(--color-secondary)
	);
	border-radius: 2px;
}

.section-courses-offered__subtitle {
	margin: 0 auto var(--space-xl);
	max-width: 36rem;
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--color-primary);
}

.section-courses-offered__subtitle--standalone {
	text-align: center;
	margin-top: 0;
}

.course-offered-page-intro {
	max-width: 48rem;
	margin: 0 auto;
	padding-bottom: 0;
}

.courses-offered__panel {
	background: #fff;
	border: 1px solid rgba(65, 90, 120, 0.12);
	border-radius: calc(var(--radius) + 2px);
	box-shadow:
		0 1px 2px rgba(30, 50, 80, 0.04),
		0 8px 24px rgba(30, 50, 80, 0.07);
	padding: var(--space-md) var(--space-md) var(--space-lg);
	margin-bottom: var(--space-lg);
	overflow: hidden;
}

.courses-offered__panel--compact {
	margin-bottom: 0;
	height: 100%;
}

.courses-offered__panel-title {
	margin: 0 0 var(--space-md);
	padding-bottom: var(--space-sm);
	font-size: 1.05rem;
	font-family: var(--font-nav);
	font-weight: 600;
	color: #1a1a1a;
	border-bottom: 2px solid rgba(198, 40, 40, 0.2);
}

.courses-offered__table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 0 calc(var(--space-md) * -1);
	padding: 0 var(--space-md);
}

.courses-offered__table-wrap:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

.courses-offered__table-wrap--wide {
	margin: 0 calc(var(--space-md) * -1);
}

.courses-offered__table {
	width: 100%;
	min-width: 520px;
	border-collapse: collapse;
	font-size: 0.875rem;
	line-height: 1.45;
}

.courses-offered__table--majors {
	min-width: 720px;
}

.courses-offered__table th,
.courses-offered__table td {
	padding: 0.65rem 0.75rem;
	text-align: left;
	vertical-align: top;
	border: 1px solid rgba(65, 90, 120, 0.15);
}

.courses-offered__table thead th {
	background: linear-gradient(
		180deg,
		#c62828 0%,
		#b71c1c 100%
	);
	color: #fff;
	font-weight: 600;
	font-size: 0.8125rem;
	letter-spacing: 0.02em;
	border-color: rgba(0, 0, 0, 0.12);
}

.courses-offered__table tbody tr:nth-child(even) {
	background: rgba(241, 245, 249, 0.6);
}

.courses-offered__table tbody tr:hover {
	background: rgba(255, 235, 238, 0.35);
}

.courses-offered__table tbody td:first-child {
	font-weight: 600;
	color: #37474f;
}

.courses-offered__table--majors td:first-child {
	width: 2.5rem;
	text-align: center;
	white-space: nowrap;
}

.courses-offered__note {
	margin: 0 0 var(--space-xl);
	padding: var(--space-md) var(--space-lg);
	background: rgba(255, 255, 255, 0.75);
	border-left: 4px solid var(--color-primary);
	border-radius: 0 var(--radius) var(--radius) 0;
	color: #4a5568;
	font-size: 0.9375rem;
	line-height: 1.65;
}

.courses-offered__two-cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--space-lg);
	margin-bottom: var(--space-xl);
}

@media (max-width: 700px) {
	.courses-offered__two-cols {
		grid-template-columns: 1fr;
	}
}

.courses-offered__list-num {
	margin: 0;
	padding-left: 1.25rem;
	color: #4b5563;
}

.courses-offered__list-num li {
	margin-bottom: 0.35rem;
}

.section-courses-offered__cta {
	text-align: center;
	margin: 0;
}

.section-courses-offered__btn {
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	transition:
		background 0.2s,
		color 0.2s,
		border-color 0.2s,
		box-shadow 0.2s;
}

.section-courses-offered__btn:hover,
.section-courses-offered__btn:focus-visible {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.24);
}

/* Homepage: Notice board + Upcoming events */
.section-news-events .section-title {
	margin-bottom: var(--space-xl);
}

.news-events-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-xl);
	align-items: stretch;
}

@media (max-width: 900px) {
	.news-events-grid {
		grid-template-columns: 1fr;
	}
}

.news-events-col-title {
	margin: 0 0 var(--space-md);
	padding-bottom: var(--space-sm);
	font-family: var(--font-nav);
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--color-primary);
	border-bottom: 2px solid #e10707;
}

.notice-board-col,
.events-col {
	background: #fff;
	border-radius: var(--radius);
	border: 1px solid rgba(0, 0, 0, 0.06);
	padding: var(--space-md);
	box-shadow: var(--shadow);
}

/* ~3 rows visible; vertical scroll-up marquee when more than one item */
.notice-board-scroll,
.events-scroll {
	overflow: hidden;
	height: 12.5rem;
	max-height: min(12.5rem, 40vh);
	border-radius: var(--radius);
	border: 1px solid #e8e8e8;
	background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
}

.notice-board-scroll--animate .notice-board-track,
.events-scroll--animate .events-track {
	animation: news-events-scroll-up 38s linear infinite;
}

.notice-board-scroll--animate:hover .notice-board-track,
.events-scroll--animate:hover .events-track {
	animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
	.notice-board-scroll--animate .notice-board-track,
	.events-scroll--animate .events-track {
		animation: none;
	}

	.notice-board-scroll,
	.events-scroll {
		overflow-y: auto;
		overflow-x: hidden;
		-webkit-overflow-scrolling: touch;
	}
}

.events-track {
	display: flex;
	flex-direction: column;
}

@keyframes news-events-scroll-up {
	0% {
		transform: translateY(0);
	}
	100% {
		transform: translateY(-50%);
	}
}

.notice-board-track {
	display: flex;
	flex-direction: column;
}

.notice-board-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.notice-board-item {
	padding: var(--space-sm) var(--space-sm);
	border-bottom: 1px solid #ececec;
	background: #fff;
}

.notice-board-item:last-child {
	border-bottom: 1px solid #ececec;
}

.notice-board-item__link {
	display: inline;
	font-weight: 600;
	color: var(--color-primary);
	text-decoration: none;
}

.notice-board-item__link:hover {
	text-decoration: underline;
	color: var(--color-primary-dark);
}

.notice-board-item__meta {
	margin-top: 0.35rem;
	font-size: 0.8125rem;
	color: var(--color-text-muted);
}

.news-events-empty {
	margin: 0;
	padding: var(--space-md);
	font-size: 0.9375rem;
	color: var(--color-text-muted);
	line-height: 1.5;
}

.events-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.events-list__item {
	display: flex;
	gap: var(--space-md);
	align-items: flex-start;
	padding: var(--space-sm) 0;
	border-bottom: 1px solid #ececec;
}

.events-list__item:last-child {
	border-bottom: none;
}

.events-list__cal {
	flex-shrink: 0;
}

.event-cal {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 3.5rem;
	padding: 0.4rem 0.45rem 0.45rem;
	background: linear-gradient(165deg, #e10707 0%, #b71c1c 100%);
	border-radius: var(--radius);
	color: #fff;
	text-align: center;
	line-height: 1.15;
	box-shadow: 0 2px 10px rgba(225, 7, 7, 0.25);
}

/* Smaller calendar chips on homepage columns only */
.news-events-grid .event-cal {
	min-width: 2.35rem;
	padding: 0.2rem 0.28rem 0.25rem;
	box-shadow: 0 1px 6px rgba(225, 7, 7, 0.2);
	border-radius: 4px;
}

.news-events-grid .event-cal__month {
	font-size: 0.5rem;
	letter-spacing: 0.06em;
}

.news-events-grid .event-cal__day {
	font-size: 0.9rem;
	padding: 0.05rem 0;
}

.news-events-grid .event-cal__year {
	font-size: 0.5rem;
}

.event-cal__month {
	font-size: 0.65rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	opacity: 0.95;
}

.event-cal__day {
	font-size: 1.35rem;
	font-weight: 700;
	font-family: var(--font-nav);
	line-height: 1.1;
	padding: 0.1rem 0;
}

.event-cal__year {
	font-size: 0.65rem;
	opacity: 0.88;
}

.events-list--home .events-list__item {
	padding: 0.45rem 0;
	gap: var(--space-sm);
}

.events-list--home .events-list__item:last-child {
	border-bottom: 1px solid #ececec;
}

.events-list__body {
	min-width: 0;
	flex: 1;
}

.events-list__link {
	font-weight: 600;
	color: var(--color-text);
	text-decoration: none;
	font-size: 0.98rem;
	line-height: 1.35;
}

.events-list__link:hover {
	color: var(--color-primary);
	text-decoration: underline;
}

.events-list__excerpt {
	margin: 0.35rem 0 0;
	font-size: 0.875rem;
	color: var(--color-text-muted);
	line-height: 1.45;
}

.events-list__more {
	margin: var(--space-md) 0 0;
	text-align: right;
}

.events-list__archive {
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--color-primary);
	text-decoration: none;
}

.events-list__archive:hover {
	text-decoration: underline;
}

.section-news-events-cta {
	text-align: center;
	margin: var(--space-xl) 0 0;
}

.event-single {
	padding-top: var(--space-xl);
	padding-bottom: var(--space-xl);
}

.event-single__header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-md);
	margin-bottom: var(--space-md);
}

.event-single .event-cal {
	min-width: 4rem;
}

.event-single .entry-title {
	margin: 0;
	flex: 1;
	min-width: 12rem;
}

/* News list */
.post-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.post-list li {
	padding: var(--space-sm) 0;
	border-bottom: 1px solid #e0e0e0;
}

.post-list li:last-child {
	border-bottom: none;
}

.post-list a {
	font-weight: 600;
}

.post-meta {
	font-size: 0.8125rem;
	color: var(--color-text-muted);
	margin-top: 0.25rem;
}

.badge-new {
	display: inline-block;
	margin-left: 0.35rem;
	padding: 0.1rem 0.4rem;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	background: var(--color-secondary);
	color: #fff;
	border-radius: 3px;
	vertical-align: middle;
}

/* CTA strip — deep, muted tones (easier on the eyes than bright red) */
.cta-strip {
	background: linear-gradient(
		145deg,
		#3d1f22 0%,
		#2a1819 38%,
		#1e2328 100%
	);
	color: #eceff1;
	padding: var(--space-lg) var(--space-md);
	text-align: center;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.cta-strip h2 {
	margin: 0 0 var(--space-sm);
	font-size: 1.5rem;
	font-weight: 700;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.cta-strip p {
	margin: 0 0 var(--space-md);
	opacity: 0.92;
	color: rgba(255, 255, 255, 0.9);
}

.cta-strip .btn-primary {
	color: #3d1f22;
	background: #f5f5f5;
	border-color: transparent;
}

.cta-strip .btn-primary:hover {
	background: #fff;
	color: #2a1819;
}

/* Page header (inner pages) */
.page-header {
	position: relative;
	overflow: hidden;
	background: linear-gradient(
		128deg,
		#1a2332 0%,
		#243447 28%,
		#3d1f24 62%,
		#6d1b1b 100%
	);
	padding: var(--space-xl) var(--space-md);
	border-bottom: none;
	box-shadow:
		0 4px 24px rgba(0, 0, 0, 0.18),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.page-header::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 90% 80% at 100% 0%, rgba(239, 83, 80, 0.22) 0%, transparent 55%);
	pointer-events: none;
}

.page-header::after {
	content: "";
	display: block;
	width: 4rem;
	height: 3px;
	margin-top: var(--space-md);
	margin-left: auto;
	margin-right: auto;
	background: linear-gradient(90deg, transparent, #ffccbc 20%, #ffab91 50%, #ffccbc 80%, transparent);
	border-radius: 3px;
	box-shadow: 0 0 12px rgba(255, 171, 145, 0.35);
}

.page-header .wrap {
	position: relative;
	z-index: 1;
}

.page-header .entry-title,
.page-header .section-title,
.page-header h1 {
	position: relative;
	z-index: 1;
	margin: 0;
	font-size: clamp(1.55rem, 3.2vw, 2.05rem);
	font-family: var(--font-brand);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.22;
	color: #fafafa;
	text-shadow:
		0 1px 2px rgba(0, 0, 0, 0.35),
		0 2px 20px rgba(0, 0, 0, 0.15);
}

/* Warm highlight on title (subtle gradient text) */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
	.page-header .entry-title,
	.page-header .section-title,
	.page-header h1 {
		background: linear-gradient(
			100deg,
			#ffffff 0%,
			#ffe0b2 35%,
			#ffffff 55%,
			#ffecb3 100%
		);
		-webkit-background-clip: text;
		background-clip: text;
		color: transparent;
		text-shadow: none;
		filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
	}
}

/* Teaching staff page */
.section-teaching-staff {
	padding-top: var(--space-xl);
	padding-bottom: var(--space-xl);
}

.teaching-staff-intro {
	max-width: 48rem;
	margin: 0 auto var(--space-xl);
	line-height: 1.65;
}

.teaching-staff-empty {
	text-align: center;
	color: var(--color-text-muted);
	padding: var(--space-xl);
}

.staff-principal-block {
	margin-bottom: var(--space-xl);
}

.staff-dept-block {
	margin-bottom: var(--space-xl);
}

.staff-section-title {
	margin: 0 0 var(--space-lg);
	padding-bottom: var(--space-sm);
	font-size: 1.25rem;
	font-family: var(--font-nav);
	font-weight: 600;
	color: var(--color-primary);
	border-bottom: 2px solid rgba(198, 40, 40, 0.2);
}

.staff-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: var(--space-xl);
}

.staff-grid--principal {
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	max-width: 440px;
	margin: 0 auto;
}

.staff-card {
	--staff-card-radius: 12px;
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid rgba(65, 90, 120, 0.1);
	border-radius: var(--staff-card-radius);
	overflow: hidden;
	box-shadow:
		0 1px 2px rgba(30, 50, 80, 0.04),
		0 8px 28px rgba(30, 50, 80, 0.09);
	transition:
		box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
		border-color 0.25s ease;
}

.staff-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(
		90deg,
		var(--color-primary),
		var(--color-secondary)
	);
	z-index: 0;
}

.staff-card:hover {
	border-color: rgba(198, 40, 40, 0.22);
	box-shadow:
		0 4px 12px rgba(30, 50, 80, 0.08),
		0 18px 44px rgba(30, 50, 80, 0.12);
	transform: translateY(-5px);
}

.staff-card:focus-within {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

.staff-card__photo {
	position: relative;
	z-index: 1;
	aspect-ratio: 4 / 5;
	background: linear-gradient(160deg, #e8ecf0 0%, #dfe5ec 100%);
	overflow: hidden;
}

.staff-card__photo::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	pointer-events: none;
	background: linear-gradient(
		180deg,
		transparent 55%,
		rgba(0, 0, 0, 0.06) 100%
	);
	opacity: 0.85;
}

.staff-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.staff-card:hover .staff-card__img {
	transform: scale(1.04);
}

.staff-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 12rem;
	font-size: 3rem;
	font-weight: 700;
	color: rgba(198, 40, 40, 0.35);
	background: linear-gradient(
		145deg,
		rgba(198, 40, 40, 0.1),
		rgba(239, 83, 80, 0.07)
	);
}

.staff-card__body {
	position: relative;
	z-index: 1;
	padding: 1.15rem 1.2rem 1.35rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.staff-card__headline {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.5rem 0.75rem;
}

.staff-card__name {
	margin: 0;
	flex: 1;
	min-width: 0;
	font-size: 1.08rem;
	line-height: 1.35;
	color: #1a1a1a;
	font-family: var(--font-nav);
	font-weight: 600;
	letter-spacing: 0.01em;
}

.staff-card__notes-tag {
	flex-shrink: 0;
	width: fit-content;
	max-width: 100%;
	padding: 0.2rem 0.5rem;
	font-size: 0.6875rem;
	font-weight: 700;
	color: var(--color-primary);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	background: rgba(198, 40, 40, 0.1);
	border: 1px solid rgba(198, 40, 40, 0.2);
	border-radius: 4px;
}

.staff-card__department {
	margin: 0;
	padding-left: 0.65rem;
	border-left: 3px solid var(--color-primary);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--color-primary);
	line-height: 1.35;
}

.staff-card__qual {
	margin: 0;
	padding-top: 0.65rem;
	border-top: 1px solid rgba(0, 0, 0, 0.07);
	font-size: 0.875rem;
	line-height: 1.55;
	color: #5c6370;
}

@media (prefers-reduced-motion: reduce) {
	.staff-card:hover {
		transform: none;
	}

	.staff-card:hover .staff-card__img {
		transform: none;
	}
}

/* Committees page */
.section-committees {
	padding-top: var(--space-xl);
	padding-bottom: var(--space-xl);
	background: linear-gradient(
		168deg,
		#fafbfc 0%,
		#f3f6fb 100%
	);
}

.committees-page-intro {
	max-width: 48rem;
	margin: 0 auto var(--space-xl);
	line-height: 1.65;
}

.committees-list {
	display: flex;
	flex-direction: column;
	gap: var(--space-lg);
}

.committee-block {
	background: #fff;
	border: 1px solid rgba(65, 90, 120, 0.1);
	border-radius: calc(var(--radius) + 2px);
	box-shadow:
		0 1px 2px rgba(30, 50, 80, 0.04),
		0 8px 24px rgba(30, 50, 80, 0.06);
	overflow: hidden;
}

.committee-block__title {
	margin: 0;
	padding: var(--space-md) var(--space-lg);
	font-size: 1.05rem;
	font-family: var(--font-nav);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
	background: linear-gradient(
		90deg,
		var(--color-primary),
		#9a1d1d
	);
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.committee-block__members {
	margin: 0;
	padding: var(--space-md) var(--space-lg) var(--space-lg);
	list-style: none;
}

.committee-block__members li {
	position: relative;
	padding: 0.45rem 0 0.45rem 1.25rem;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--color-text-muted);
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.committee-block__members li:last-child {
	border-bottom: none;
}

.committee-block__members li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.65rem;
	width: 6px;
	height: 6px;
	background: var(--color-primary);
	border-radius: 50%;
	opacity: 0.6;
}

@media (max-width: 600px) {
	.committee-block__title {
		font-size: 0.95rem;
		padding: var(--space-sm) var(--space-md);
	}
}

/* Contact us page — keep custom light header (no dark banner / pseudo overlays) */
.page-header.contact-page-header::before,
.page-header.contact-page-header::after {
	display: none;
}

.contact-page-header {
	background: linear-gradient(
		165deg,
		#f8f9fb 0%,
		#eef1f6 45%,
		#e4e9f0 100%
	);
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.page-header.contact-page-header .entry-title,
.page-header.contact-page-header .section-title,
.page-header.contact-page-header h1 {
	background: none;
	-webkit-background-clip: unset;
	background-clip: unset;
	color: var(--color-text);
	filter: none;
	text-shadow: none;
	-webkit-text-fill-color: currentColor;
}

.contact-page-header__title {
	max-width: 40rem;
}

.contact-page-header__lead {
	margin: var(--space-sm) 0 0;
	max-width: 36rem;
	font-size: 1.0625rem;
	line-height: 1.55;
	color: #4a5568;
}

.section-contact {
	padding-top: var(--space-xl);
	padding-bottom: var(--space-xl);
	background: linear-gradient(180deg, #fff 0%, #f7f8fa 100%);
}

.contact-page-intro {
	max-width: 48rem;
	margin: 0 auto var(--space-xl);
	line-height: 1.65;
}

.contact-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: var(--space-xl);
	align-items: start;
}

@media (max-width: 960px) {
	.contact-layout {
		grid-template-columns: 1fr;
	}
}

.contact-cards {
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
}

.contact-cards__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-md);
}

@media (min-width: 640px) {
	.contact-cards__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.contact-cards__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.contact-card {
	position: relative;
	padding: var(--space-md) var(--space-md) var(--space-md) calc(var(--space-md) + 3px);
	background: #fff;
	border: 1px solid rgba(65, 90, 120, 0.1);
	border-radius: calc(var(--radius) + 4px);
	box-shadow:
		0 1px 2px rgba(30, 50, 80, 0.04),
		0 8px 24px rgba(30, 50, 80, 0.06);
	overflow: hidden;
	transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 3px;
	background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
}

.contact-card:hover {
	border-color: rgba(198, 40, 40, 0.2);
	box-shadow:
		0 4px 12px rgba(30, 50, 80, 0.08),
		0 16px 40px rgba(30, 50, 80, 0.1);
}

.contact-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	margin-bottom: var(--space-sm);
	border-radius: 12px;
	color: var(--color-primary);
	background: rgba(198, 40, 40, 0.1);
}

.contact-card__title {
	margin: 0 0 var(--space-sm);
	font-size: 0.8125rem;
	font-family: var(--font-nav);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #1a1a1a;
}

.contact-card__body {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--color-text-muted);
	font-style: normal;
}

.contact-card__body--phones {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.contact-card__line {
	display: block;
}

.contact-card__text {
	margin: 0;
}

.contact-card__link {
	font-weight: 600;
	color: var(--color-primary);
	text-decoration: none;
}

.contact-card__link:hover,
.contact-card__link:focus-visible {
	text-decoration: underline;
}

.contact-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
	margin-top: var(--space-lg);
}

.contact-actions__btn {
	min-width: 10rem;
	justify-content: center;
}

.contact-map {
	background: #fff;
	border: 1px solid rgba(65, 90, 120, 0.1);
	border-radius: calc(var(--radius) + 4px);
	box-shadow:
		0 1px 2px rgba(30, 50, 80, 0.04),
		0 12px 32px rgba(30, 50, 80, 0.08);
	overflow: hidden;
}

.contact-map__title {
	margin: 0;
	padding: var(--space-md) var(--space-md) 0;
	font-size: 1rem;
	font-family: var(--font-nav);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #1a1a1a;
}

.contact-map__frame {
	position: relative;
	margin: var(--space-md);
	margin-bottom: var(--space-sm);
	aspect-ratio: 4 / 3;
	max-height: 420px;
	border-radius: var(--radius);
	overflow: hidden;
	background: #e8ecf0;
}

.contact-map__iframe {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 260px;
	border: 0;
}

.contact-map__link {
	display: inline-flex;
	align-items: center;
	margin: 0 var(--space-md) var(--space-md);
	font-size: 0.9375rem;
	font-weight: 600;
}

/* Content */
.entry-content {
	max-width: 48rem;
	line-height: 1.7;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content p {
	margin: 0 0 1.1em;
}

.entry-content h2,
.entry-content h3 {
	color: var(--color-text);
	margin-top: var(--space-lg);
	font-family: var(--font-brand);
	letter-spacing: -0.015em;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 1.15em;
	padding-left: 1.35rem;
}

.entry-content li {
	margin-bottom: 0.35em;
}

.entry-content blockquote {
	margin: var(--space-md) 0;
	padding: var(--space-sm) var(--space-md);
	border-left: 4px solid rgba(198, 40, 40, 0.35);
	background: rgba(245, 245, 245, 0.65);
	border-radius: 0 var(--radius) var(--radius) 0;
	color: #424242;
}

.entry-content a {
	text-underline-offset: 0.15em;
}

.entry-meta {
	font-size: 0.875rem;
	color: var(--color-text-muted);
	margin-bottom: var(--space-md);
}

/* Forms */
.form-group {
	margin-bottom: var(--space-md);
}

.form-group label {
	display: block;
	font-weight: 600;
	margin-bottom: var(--space-xs);
	font-size: 0.9375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
	width: 100%;
	max-width: 32rem;
	padding: 0.7rem 0.85rem;
	font: inherit;
	border: 1px solid #c5c5c5;
	border-radius: var(--radius);
	background: #fff;
	transition:
		border-color 0.2s var(--ease-standard),
		box-shadow 0.2s var(--ease-standard);
}

.form-group textarea {
	min-height: 140px;
	resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.18);
}

.form-notice {
	padding: var(--space-sm) var(--space-md);
	border-radius: var(--radius);
	margin-bottom: var(--space-md);
}

.form-notice.success {
	background: #e8f5e9;
	color: #1b5e20;
	border: 1px solid #a5d6a7;
}

.form-notice.error {
	background: #ffebee;
	color: #b71c1c;
	border: 1px solid #ef9a9a;
}

/* Department / gallery grids */
.dept-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: var(--space-sm);
}

.dept-item {
	padding: var(--space-sm) var(--space-md);
	background: var(--color-bg-muted);
	border-radius: var(--radius);
	border-left: 4px solid var(--color-primary);
	font-weight: 500;
	transition:
		background 0.2s var(--ease-standard),
		box-shadow 0.2s var(--ease-standard),
		transform 0.2s var(--ease-standard);
}

.dept-item:hover {
	background: #fff;
	box-shadow: var(--shadow-sm);
	transform: translateX(2px);
}

@media (prefers-reduced-motion: reduce) {
	.dept-item:hover {
		transform: none;
	}
}

/* Courses & departments (front page) */
.section-courses__header {
	text-align: center;
}

.section-courses .section-title {
	position: relative;
	margin-bottom: var(--space-md);
	padding-bottom: var(--space-md);
}

.section-courses .section-title::after {
	content: "";
	display: block;
	width: 3rem;
	height: 3px;
	margin: var(--space-md) auto 0;
	background: linear-gradient(
		90deg,
		var(--color-primary),
		var(--color-secondary)
	);
	border-radius: 2px;
}

.section-courses__intro.section-intro {
	margin: 0 auto var(--space-xl);
	max-width: 40rem;
	line-height: 1.65;
}

.dept-grid--courses {
	gap: var(--space-md);
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1100px) {
	.dept-grid--courses {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 720px) {
	.dept-grid--courses {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 380px) {
	.dept-grid--courses {
		grid-template-columns: 1fr;
	}
}

.dept-card {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 3.35rem;
	padding: var(--space-md) var(--space-md);
	background: linear-gradient(180deg, #fafafa 0%, var(--color-bg-muted) 100%);
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-left: 5px solid #e10707;
	border-radius: var(--radius);
	font-family: var(--font-nav);
	font-weight: 600;
	font-size: 0.9375rem;
	letter-spacing: 0.03em;
	line-height: 1.3;
	color: var(--color-text);
	box-shadow: 0 1px 3px rgba(33, 33, 33, 0.06);
	transition:
		transform 0.22s ease,
		box-shadow 0.22s ease,
		background 0.22s ease,
		border-color 0.22s ease,
		color 0.22s ease;
}

a.dept-card {
	text-decoration: none;
}

a.dept-card:hover,
a.dept-card:focus-visible {
	text-decoration: none;
	color: #fff;
	background: linear-gradient(145deg, #e10707 0%, #c62828 100%);
	border-color: transparent;
	border-left-color: #b71c1c;
	box-shadow: 0 10px 28px rgba(225, 7, 7, 0.28);
	transform: translateY(-3px);
}

a.dept-card:focus-visible {
	outline: 2px solid var(--color-secondary);
	outline-offset: 3px;
}

div.dept-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(33, 33, 33, 0.1);
	border-left-color: #c62828;
}

@media (max-width: 600px), (prefers-reduced-motion: reduce) {
	a.dept-card:hover,
	div.dept-card:hover {
		transform: none;
	}
}

.section-courses__cta {
	text-align: center;
	margin: var(--space-xl) 0 0;
}

/* Gallery grids */

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: var(--space-sm);
}

.gallery-grid a {
	display: block;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}

.gallery-grid img {
	width: 100%;
	aspect-ratio: 4/3;
	object-fit: cover;
}

/* Pagination */
.pagination {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs);
	margin-top: var(--space-lg);
	justify-content: center;
}

.pagination a,
.pagination span {
	padding: 0.45rem 0.85rem;
	min-width: 2.5rem;
	text-align: center;
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius);
	background: var(--color-bg);
	transition:
		background 0.2s var(--ease-standard),
		color 0.2s var(--ease-standard),
		border-color 0.2s var(--ease-standard),
		box-shadow 0.2s var(--ease-standard);
}

.pagination a:hover {
	background: var(--color-bg-muted);
	border-color: rgba(198, 40, 40, 0.25);
	color: var(--color-primary);
	text-decoration: none;
}

.pagination a:focus-visible {
	outline: 2px solid var(--color-secondary);
	outline-offset: 2px;
}

.pagination .current {
	background: var(--color-primary);
	color: #fff;
	border-color: var(--color-primary);
	font-weight: 600;
	box-shadow: var(--shadow-sm);
}

/* Footer */
.site-footer {
	background: linear-gradient(180deg, #1e2830 0%, #263238 48%, #1c242b 100%);
	color: #eceff1;
	padding: var(--space-xl) var(--space-md) var(--space-md);
	margin-top: auto;
	border-top: 3px solid var(--color-primary);
	box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
}

.site-footer a {
	color: #ffccbc;
	text-decoration: none;
	transition: color 0.2s var(--ease-standard), text-decoration-color 0.2s;
	text-underline-offset: 0.12em;
}

.site-footer a:hover {
	color: #fff;
	text-decoration: underline;
}

.site-footer a:focus-visible {
	outline: 2px solid var(--color-secondary);
	outline-offset: 3px;
	border-radius: 2px;
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: var(--space-xl);
	margin-bottom: var(--space-lg);
}

.site-footer h2,
.site-footer h3 {
	margin: 0 0 var(--space-sm);
	font-size: 0.9375rem;
	font-family: var(--font-nav);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
}

.site-footer p,
.site-footer li {
	font-size: 0.9rem;
	color: #b0bec5;
	line-height: 1.6;
}

.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-menu li {
	margin-bottom: 0.45rem;
}

.footer-menu a {
	display: inline-block;
	padding: 0.15rem 0;
}

.site-info {
	padding-top: var(--space-md);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 0.8125rem;
	color: #90a4ae;
	text-align: center;
}

.site-info__copyright {
	margin: 0 0 0.65rem;
}

.site-info__extras {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.35rem 1rem;
	margin: 0;
}

.site-info__sep {
	opacity: 0.55;
	user-select: none;
}

.site-info__visits {
	white-space: nowrap;
}

/* Archive */
.post-card {
	margin-bottom: var(--space-md);
	padding: var(--space-md);
	border-bottom: 1px solid var(--border-subtle);
	border-radius: var(--radius-lg);
	background: var(--color-bg);
	transition: box-shadow 0.25s var(--ease-standard);
}

.post-card:last-child {
	border-bottom: none;
}

.post-card:hover {
	box-shadow: var(--shadow-sm);
}

.post-card h2 {
	margin: 0 0 var(--space-xs);
	font-size: 1.35rem;
}

.post-card h2 a {
	color: var(--color-text);
	text-decoration: none;
	transition: color 0.2s var(--ease-standard);
}

.post-card h2 a:hover {
	color: var(--color-primary);
	text-decoration: underline;
	text-underline-offset: 0.12em;
}

/* 404 */
.error-404 {
	text-align: center;
	padding: var(--space-xl) var(--space-md);
	min-height: min(60vh, 520px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.error-404 h1,
.error-404 .entry-title {
	margin: 0 0 var(--space-sm);
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	font-family: var(--font-brand);
	font-weight: 700;
	letter-spacing: -0.02em;
}

.error-404 p {
	max-width: 28rem;
	color: var(--color-text-muted);
	line-height: 1.65;
}
