/* ==========================================================================
   VDC — Trường Trung cấp Việt Đức
   Black / red / gold from the VDC logo, warm cream for reading surfaces.
   Mobile first. Breakpoints: 640 (sm), 768 (md), 1080 (lg).
   ========================================================================== */

:root {
	--ink: #121212;
	--ink-2: #1e1e1e;
	--ink-3: #2b2b2b;
	--red: #d70000;
	--red-dark: #b00000;
	--gold: #ffcc00;
	--gold-dark: #f0b800;
	--cream: #f7f3ec;
	--cream-2: #efe8db;
	--line: #e5ddcf;
	--text: #1b1916;
	--muted: #5c564d;
	--on-dark: #f4f1ea;
	--on-dark-muted: #c9c3b8;
	--white: #fff;

	--font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--radius: 14px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(27, 25, 22, .06), 0 8px 24px -12px rgba(27, 25, 22, .18);
	--shadow-hover: 0 2px 4px rgba(27, 25, 22, .06), 0 18px 36px -16px rgba(27, 25, 22, .28);
	--ease-out: cubic-bezier(.16, 1, .3, 1);
	--gutter: 16px;
	--section: clamp(48px, 6vw, 88px);
	--header-h: 68px;
}

@media (min-width: 768px) {
	:root { --gutter: 24px; --header-h: 84px; }
}

/* Base ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 16px;
	scrollbar-color: #b9b0a1 var(--cream);
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

body {
	margin: 0;
	background: var(--white);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	accent-color: var(--red);
	caret-color: var(--red);
}

::selection { background: var(--gold); color: var(--ink); }

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.25; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--red); }

:focus-visible {
	outline: 3px solid var(--gold);
	outline-offset: 2px;
	border-radius: 4px;
}

.icon { width: 1.25em; height: 1.25em; flex: none; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 12px; top: -60px;
	z-index: 1000;
	padding: 10px 16px;
	background: var(--gold);
	color: var(--ink);
	font-weight: 700;
	border-radius: var(--radius-sm);
	transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

.container {
	width: 100%;
	max-width: 1320px;
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* Buttons --------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	min-height: 44px;
	padding: 10px 20px;
	border: 2px solid transparent;
	border-radius: var(--radius-sm);
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease-out), box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }

.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); color: var(--white); }

.btn--yellow { background: var(--gold); color: var(--ink); }
.btn--yellow:hover { background: var(--gold-dark); color: var(--ink); box-shadow: 0 10px 24px -12px rgba(255, 204, 0, .7); }

.btn--ghost { border-color: rgba(255, 255, 255, .75); color: var(--white); background: transparent; }
.btn--ghost:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

.btn--outline { border-color: var(--line); color: var(--text); background: var(--white); }
.btn--outline:hover { border-color: var(--red); color: var(--red); }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--red);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform .25s var(--ease-out); }
.link-arrow:hover { color: var(--red-dark); }
.link-arrow:hover .icon { transform: translateX(4px); }

.meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 6px;
	color: var(--muted);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}
.meta .icon { width: 15px; height: 15px; }
.meta a { color: inherit; }

/* Flag stripe ----------------------------------------------------------- */

.flag-stripe { display: flex; height: 5px; }
.flag-stripe span { flex: 1; }
.flag-stripe span:nth-child(1) { background: var(--ink); }
.flag-stripe span:nth-child(2) { background: var(--red); }
.flag-stripe span:nth-child(3) { background: var(--gold); }

/* Topbar ---------------------------------------------------------------- */

.topbar { display: none; background: var(--ink); color: var(--on-dark-muted); font-size: 13px; }

@media (min-width: 768px) {
	.topbar { display: block; }
}

.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 38px; }
.topbar__contact { display: flex; gap: 24px; min-width: 0; }
.topbar__contact a { color: var(--on-dark); text-decoration: none; white-space: nowrap; }
.topbar__contact a:hover { color: var(--gold); }
.topbar__address { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar__nav ul { display: flex; gap: 20px; list-style: none; }
.topbar__nav a { color: var(--on-dark); text-decoration: none; white-space: nowrap; }
.topbar__nav a:hover { color: var(--gold); }

/* Masthead -------------------------------------------------------------- */

.masthead { position: relative; z-index: 50; background: var(--white); }

.masthead__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: var(--header-h);
	padding-block: 8px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-right: auto;
	color: var(--text);
	text-decoration: none;
	min-width: 0;
}
.brand:hover { color: var(--text); }
.brand-logo { width: auto; height: 44px; }
.brand__text {
	display: flex;
	flex-direction: column;
	padding-left: 12px;
	border-left: 1px solid var(--line);
	line-height: 1.2;
}
.brand__name { font-size: 15px; font-weight: 800; letter-spacing: -.005em; text-transform: uppercase; }
.brand__tag { display: none; margin-top: 3px; color: var(--muted); font-size: 12px; }

@media (min-width: 768px) {
	.brand-logo { height: 56px; }
	.brand__name { font-size: 17px; }
	.brand__tag { display: block; }
}

.primary-nav, .masthead__cta { display: none; }

.nav-toggle {
	display: grid;
	place-items: center;
	width: 46px; height: 46px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--white);
	color: var(--text);
	cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

@media (min-width: 1080px) {
	.primary-nav, .masthead__cta { display: block; }
	.masthead__cta { display: inline-flex; }
	.nav-toggle, .mobile-nav { display: none !important; }
}

/* Desktop menu */
.primary-nav .menu { display: flex; align-items: center; gap: 2px; list-style: none; }
.primary-nav li { position: relative; }
.primary-nav .menu > li > a {
	display: flex;
	align-items: center;
	gap: 4px;
	min-height: 44px;
	padding: 8px 11px;
	color: var(--text);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	border-radius: 8px;
}
.primary-nav .menu > li > a:hover,
.primary-nav .menu > li:focus-within > a { color: var(--red); }
.primary-nav .menu > .current-menu-item > a,
.primary-nav .menu > .current-menu-ancestor > a,
.primary-nav .menu > .current-menu-parent > a { color: var(--red); }
.primary-nav .menu > .menu-item-has-children > a::after {
	content: "";
	width: 7px; height: 7px;
	margin: -3px 0 0 4px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	opacity: .55;
}

.primary-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 250px;
	padding: 8px;
	list-style: none;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 12px;
	box-shadow: var(--shadow-hover);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .18s, transform .25s var(--ease-out), visibility .18s;
}
.primary-nav .sub-menu .sub-menu { top: -9px; left: 100%; max-height: 70vh; overflow-y: auto; }
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 12px;
	border-radius: 8px;
	color: var(--text);
	font-size: 14px;
	line-height: 1.4;
	text-decoration: none;
}
.primary-nav .sub-menu a:hover,
.primary-nav .sub-menu li:focus-within > a { background: var(--cream); color: var(--red); }
.primary-nav .sub-menu .menu-item-has-children > a::after { content: "›"; font-weight: 700; }
.primary-nav .sub-menu .current-menu-item > a { color: var(--red); font-weight: 600; }

/* Mobile drawer */
.mobile-nav {
	position: absolute;
	inset: 100% 0 auto;
	max-height: calc(100dvh - var(--header-h));
	overflow-y: auto;
	padding-block: 16px 28px;
	background: var(--white);
	border-top: 1px solid var(--line);
	box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .35);
	overscroll-behavior: contain;
}
.mobile-nav .search-form { margin-bottom: 12px; }
.mobile-menu { list-style: none; }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu .sub-menu { list-style: none; padding: 0 0 8px 14px; }
.mobile-menu .sub-menu li { border: 0; }
.mobile-menu .sub-menu[hidden] { display: none; }
.mobile-menu .menu-row { display: flex; align-items: center; }
.mobile-menu a {
	flex: 1;
	display: block;
	padding: 13px 0;
	color: var(--text);
	font-weight: 600;
	text-decoration: none;
}
.mobile-menu .sub-menu a { padding: 9px 0; font-weight: 500; color: var(--muted); }
.mobile-menu .current-menu-item > .menu-row > a,
.mobile-menu .current-menu-item > a { color: var(--red); }
.submenu-toggle {
	display: grid;
	place-items: center;
	width: 44px; height: 44px;
	border: 0;
	background: none;
	color: var(--muted);
	cursor: pointer;
}
.submenu-toggle .icon { transition: transform .25s var(--ease-out); }
.submenu-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mobile-menu--utility { margin-top: 8px; }
.mobile-menu--utility a { font-weight: 500; color: var(--muted); }
.mobile-nav .btn { margin-top: 20px; }

/* Search form ----------------------------------------------------------- */

.search-form { display: flex; max-width: 520px; }
.search-form input {
	flex: 1;
	min-width: 0;
	height: 46px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-right: 0;
	border-radius: var(--radius-sm) 0 0 var(--radius-sm);
	background: var(--white);
	color: var(--text);
	font: inherit;
	font-size: 15px;
}
.search-form input::placeholder { color: #7a7368; }
.search-form input:focus { outline: none; border-color: var(--ink); }
.search-form button {
	display: grid;
	place-items: center;
	width: 50px;
	border: 0;
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	background: var(--ink);
	color: var(--white);
	cursor: pointer;
}
.search-form button:hover { background: var(--red); }

/* Sections -------------------------------------------------------------- */

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(32px, 4vw, 56px) var(--section); }
.section--cream { background: var(--cream); }

.section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: clamp(20px, 3vw, 32px);
}

.section-title {
	font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.125rem);
	font-weight: 800;
	letter-spacing: -.02em;
}
.section-title--center { text-align: center; margin-bottom: clamp(24px, 3.5vw, 40px); }

/* Hero ------------------------------------------------------------------ */

.hero {
	position: relative;
	overflow: hidden;
	background: var(--ink);
	color: var(--on-dark);
}
.hero::after {
	content: "";
	position: absolute;
	inset: auto -10% -60% 45%;
	height: 120%;
	background: radial-gradient(closest-side, rgba(215, 0, 0, .22), transparent 70%);
	pointer-events: none;
}

.hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 28px;
	padding-block: 36px 40px;
}

.hero__badge {
	display: inline-block;
	margin-bottom: 18px;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--ink-3);
	color: var(--on-dark);
	font-size: 14px;
	font-weight: 600;
}

.hero__title {
	font-size: clamp(2rem, 1.25rem + 3.3vw, 3.4rem);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -.025em;
	color: var(--white);
}
.hero__highlight { display: block; color: var(--gold); }

.hero__desc {
	max-width: 52ch;
	margin-top: 18px;
	color: var(--on-dark-muted);
	font-size: clamp(16px, 15px + .3vw, 18px);
	line-height: 1.65;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__call { display: none; }

.hero__media {
	margin: 0;
	border-radius: 18px;
	overflow: hidden;
	background: var(--ink-2);
	aspect-ratio: 16 / 11;
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* Mobile: image sits between the copy and the main button (mockup order). */
@media (max-width: 767px) {
	.hero__inner { display: flex; flex-direction: column; gap: 16px; padding-block: 28px 32px; }
	.hero__copy { display: contents; }
	.hero__badge { order: 1; align-self: flex-start; margin-bottom: 0; }
	.hero__title { order: 2; }
	.hero__desc { order: 3; margin-top: 0; }
	.hero__media { order: 4; margin-top: 4px; }
	.hero__actions { order: 5; margin-top: 4px; }
	.hero__actions .btn { flex: 1; }
}

@media (min-width: 768px) {
	.hero__call { display: inline-flex; }
}

@media (min-width: 1024px) {
	.hero__inner {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
		align-items: center;
		gap: 56px;
		padding-block: 72px 80px;
	}
}

/* One authored moment: the hero settles in on first paint. */
@media (prefers-reduced-motion: no-preference) {
	.hero__copy > *, .hero__actions { animation: rise .9s var(--ease-out) both; }
	.hero__title { animation-delay: .06s; }
	.hero__desc { animation-delay: .12s; }
	.hero__actions { animation-delay: .18s; }
	.hero__media { animation: reveal 1.1s var(--ease-out) .1s both; }
	.hero__media img { animation: settle 1.6s var(--ease-out) .1s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes reveal { from { clip-path: inset(0 0 0 100% round 18px); } to { clip-path: inset(0 0 0 0 round 18px); } }
@keyframes settle { from { transform: scale(1.08); filter: saturate(.6); } }

/* Stats ----------------------------------------------------------------- */

.stats { background: var(--cream); padding-block: 20px; }
.stats__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	list-style: none;
}
.stat {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px;
	background: var(--white);
	border-radius: var(--radius);
}
.stat__number {
	color: var(--red);
	font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.4rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -.03em;
	font-variant-numeric: tabular-nums;
}
.stat__label { color: var(--muted); font-size: 14px; line-height: 1.4; }

@media (min-width: 768px) {
	.stats { padding-block: 28px; }
	.stats__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
	.stat { padding: 20px 22px; }
}

/* Majors ---------------------------------------------------------------- */

.majors__grid { display: grid; gap: 12px; list-style: none; }

.major {
	position: relative;
	display: grid;
	grid-template-columns: 84px 1fr;
	align-items: center;
	gap: 16px;
	padding: 12px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: border-color .2s, box-shadow .3s var(--ease-out), transform .3s var(--ease-out);
}
.major__media {
	aspect-ratio: 1;
	border-radius: 10px;
	overflow: hidden;
	background: var(--cream-2);
}
.major__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.major__title { font-size: 17px; font-weight: 700; line-height: 1.3; }
.major__title a { color: inherit; text-decoration: none; }
.major__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.major__desc, .major__more { display: none; }
.major__short { margin-top: 2px; color: var(--muted); font-size: 14px; }
.major:hover { border-color: #d8ccb8; box-shadow: var(--shadow-hover); }
.major:hover .major__title a { color: var(--red); }
.major:hover .major__media img { transform: scale(1.04); }
.major:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.major:focus-within a:focus-visible { outline: none; }

@media (min-width: 640px) {
	.majors__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
	.major { grid-template-columns: 1fr; align-items: stretch; gap: 0; padding: 0; overflow: hidden; }
	.major__media { aspect-ratio: 16 / 10; border-radius: 0; }
	.major__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
	.major__short { display: none; }
	.major__desc { display: block; color: var(--muted); font-size: 14px; line-height: 1.55; }
	.major__more { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 6px; color: var(--red); font-size: 14px; font-weight: 700; }
	.major__more .icon { width: 16px; height: 16px; transition: transform .25s var(--ease-out); }
	.major:hover { transform: translateY(-3px); }
	.major:hover .major__more .icon { transform: translateX(4px); }
}

@media (min-width: 1024px) {
	.majors__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Why ------------------------------------------------------------------- */

.why__grid { display: grid; gap: 12px; list-style: none; }
.why-item {
	padding: 18px 20px;
	background: var(--white);
	border-radius: var(--radius);
}
.why-item__icon { display: none; }
.why-item__title { font-size: 17px; font-weight: 700; }
.why-item__desc { margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.55; }

@media (min-width: 640px) {
	.why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
	.why-item { padding: 24px; }
	.why-item__icon {
		display: grid;
		place-items: center;
		width: 44px; height: 44px;
		margin-bottom: 18px;
		border-radius: 12px;
		background: var(--cream-2);
		color: var(--red);
	}
	.why-item__icon .icon { width: 22px; height: 22px; }
}

@media (min-width: 1024px) {
	.why__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* News + notice board --------------------------------------------------- */

.news__grid { display: grid; gap: 40px; }

.news-lead__media {
	display: block;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--cream-2);
}
.news-lead__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.news-lead:hover .news-lead__media img { transform: scale(1.03); }
.news-lead .meta { margin-top: 14px; }
.news-lead__title { margin-top: 6px; font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); font-weight: 700; line-height: 1.35; }
.news-lead__title a, .news-mini__title a { color: inherit; text-decoration: none; }
.news-lead__title a:hover, .news-mini__title a:hover { color: var(--red); }

.news-mini { list-style: none; margin-top: 20px; }
.news-mini__item { padding-block: 16px; border-top: 1px solid var(--line); }
.news-mini__media { display: none; }
.news-mini .meta { display: none; }
.news-mini__title { font-size: 16px; font-weight: 600; line-height: 1.45; }

.news__all { display: none; }

@media (max-width: 767px) {
	.news__main { display: flex; flex-direction: column; }
	.news__main::after { content: none; }
}

@media (min-width: 768px) {
	.news__all { display: inline-flex; }
	.news-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
	.news-mini__item { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: start; padding: 0; border: 0; }
	.news-mini__media { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--cream-2); }
	.news-mini__media img { width: 100%; height: 100%; object-fit: cover; }
	.news-mini .meta { display: block; margin-bottom: 4px; font-size: 12px; }
	.news-mini__title { font-size: 15px; }
}

@media (min-width: 1024px) {
	.news__grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
}

.notice-board {
	padding: 24px;
	background: var(--cream);
	border-radius: var(--radius);
}
.notice-board__title { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.notice-board ul { list-style: none; margin-bottom: 18px; }
.notice-board li { padding-block: 14px; border-bottom: 1px solid var(--line); }
.notice-board li a {
	display: block;
	color: var(--text);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.45;
	text-decoration: none;
}
.notice-board li a:hover { color: var(--red); }
.notice-board time { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

/* Testimonials ---------------------------------------------------------- */

.testimonials__grid { display: grid; gap: 16px; list-style: none; }
.testimonial { height: 100%; margin: 0; padding: 24px; background: var(--white); border-radius: var(--radius); display: flex; flex-direction: column; gap: 20px; }
.testimonial blockquote { margin: 0; font-size: 16px; line-height: 1.65; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; font-size: 13px; color: var(--muted); }
.testimonial figcaption strong { display: block; color: var(--text); font-size: 15px; }
.testimonial__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--cream-2); flex: none; }

@media (min-width: 768px) {
	.testimonials__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}

/* Lead form ------------------------------------------------------------- */

.lead { background: var(--red); color: var(--white); padding-block: clamp(40px, 6vw, 80px); scroll-margin-top: 0; }
.lead__inner { display: grid; gap: 24px; }
.lead__title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.lead__desc { max-width: 46ch; margin-top: 12px; color: #ffe1e1; font-size: 16px; }

@media (min-width: 1024px) {
	.lead__inner { grid-template-columns: minmax(0, 1fr) 460px; gap: 64px; align-items: center; }
}

/* CF7 form inside the lead block */
.lead-form { display: grid; gap: 14px; }
.lead-form .field { display: grid; gap: 6px; }
.lead-form label { font-size: 14px; font-weight: 700; }
.lead-form .wpcf7-form-control-wrap { display: block; }
.lead-form input[type="text"],
.lead-form input[type="tel"],
.lead-form select {
	width: 100%;
	height: 50px;
	padding: 0 14px;
	border: 1.5px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--white);
	color: var(--text);
	font: inherit;
	font-size: 16px;
	transition: border-color .2s, box-shadow .2s;
}
.lead-form select {
	appearance: none;
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231b1916' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
}
.lead-form input::placeholder { color: #8a8378; }
.lead-form input:focus, .lead-form select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 204, 0, .55); }
.lead-form [aria-invalid="true"] { border-color: var(--red) !important; }
.lead-form .wpcf7-submit {
	width: 100%;
	min-height: 52px;
	margin-top: 4px;
	border: 0;
	border-radius: var(--radius-sm);
	background: var(--gold);
	color: var(--ink);
	font: inherit;
	font-size: 16px;
	font-weight: 800;
	cursor: pointer;
	transition: background-color .2s, transform .2s var(--ease-out);
}
.lead-form .wpcf7-submit:hover { background: var(--gold-dark); }
.lead-form .wpcf7-submit:active { transform: translateY(1px); }
.lead-form .wpcf7-submit:disabled { opacity: .6; cursor: progress; }
.lead-form .field-error,
.lead-form .wpcf7-not-valid-tip {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 2px;
	color: var(--red);
	font-size: 13px;
	font-weight: 600;
}
.lead-form .field-error[hidden] { display: none; }
.lead-form .lead-form__note { color: var(--muted); font-size: 13px; text-align: center; }

.wpcf7 .wpcf7-spinner { display: none; }
.wpcf7 form.submitting .wpcf7-submit { opacity: .7; cursor: progress; }
.wpcf7 form .wpcf7-response-output {
	margin: 14px 0 0;
	padding: 12px 14px;
	border: 0;
	border-radius: var(--radius-sm);
	font-size: 14px;
	font-weight: 600;
}
.wpcf7 form.sent .wpcf7-response-output { background: #e7f6ec; color: #135c2b; }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output { background: #fff1d6; color: #6b4400; }
.wpcf7 form.init .wpcf7-response-output,
.wpcf7 form.resetting .wpcf7-response-output,
.wpcf7 form.submitting .wpcf7-response-output { display: none; }

/* Desktop: white card on red. Mobile: fields sit straight on red (mockup). */
.lead__form .wpcf7 { color: var(--white); }
.lead__form .lead-form .field--major { display: none; }
.lead__form .lead-form__note { color: #ffd6d6; }
.lead__form .lead-form .field-error,
.lead__form .lead-form .wpcf7-not-valid-tip { color: var(--gold); }
.lead__form .lead-form [aria-invalid="true"] { border-color: var(--gold) !important; box-shadow: 0 0 0 2px var(--gold); }

@media (min-width: 768px) {
	.lead__form {
		padding: 28px;
		background: var(--white);
		border-radius: 18px;
		box-shadow: 0 30px 60px -30px rgba(80, 0, 0, .6);
	}
	.lead__form .wpcf7 { color: var(--text); }
	.lead__form .lead-form .field--major { display: grid; }
	.lead__form .lead-form__note { color: var(--muted); }
	.lead__form .lead-form .field-error,
	.lead__form .lead-form .wpcf7-not-valid-tip { color: var(--red); }
	.lead__form .lead-form [aria-invalid="true"] { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(215, 0, 0, .15); }
}

.lead-fallback a { color: var(--gold); font-weight: 700; }

/* Page header ----------------------------------------------------------- */

.page-head { padding-block: 24px 28px; background: var(--cream); }
.page-head__title {
	max-width: 30ch;
	margin-top: 10px;
	font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.4rem);
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.2;
}
.page-head--article .page-head__title { max-width: 36ch; font-size: clamp(1.45rem, 1.15rem + 1.3vw, 2.1rem); }
.page-head .meta { margin-top: 12px; }
.page-head__desc { max-width: 65ch; margin-top: 10px; color: var(--muted); }

@media (min-width: 768px) {
	.page-head { padding-block: 36px 40px; }
}

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; color: var(--muted); font-size: 13px; }
.breadcrumbs li { display: flex; align-items: center; gap: 4px; min-width: 0; }
.breadcrumbs li + li::before { content: "/"; opacity: .5; }
.breadcrumbs li:last-child span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--red); text-decoration: underline; }

/* Chips ----------------------------------------------------------------- */

.chips { display: flex; gap: 8px; margin-bottom: 28px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
	flex: none;
	padding: 8px 16px;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--text);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
.chip:hover { border-color: var(--red); color: var(--red); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* Cards ----------------------------------------------------------------- */

.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
@media (min-width: 768px) { .card-grid { gap: 28px; } }

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: box-shadow .3s var(--ease-out), transform .3s var(--ease-out), border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #d8ccb8; }
.card:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.card:focus-within a:focus-visible { outline: none; }
.card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; }
.card__title { font-size: 17px; font-weight: 700; line-height: 1.4; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card:hover .card__title a { color: var(--red); }
.card__excerpt { color: var(--muted); font-size: 14px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.thumb-fallback {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	min-height: 100%;
	background: var(--cream-2);
}
.thumb-fallback .brand-logo { width: 38%; max-width: 120px; height: auto; opacity: .35; filter: grayscale(1); }

/* Pagination ------------------------------------------------------------ */

.pagination { margin-top: 40px; }
.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; }
.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 10px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	color: var(--text);
	font-weight: 600;
	text-decoration: none;
	font-variant-numeric: tabular-nums;
}
.pagination a.page-numbers:hover { border-color: var(--red); color: var(--red); }
.pagination .current { background: var(--ink); border-color: var(--ink); color: var(--white); }
.pagination .dots { border: 0; }
.pagination .icon { width: 18px; height: 18px; }

/* Article --------------------------------------------------------------- */

.article-layout { display: grid; gap: 48px; }
@media (min-width: 1024px) {
	.article-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; }
}

.entry { min-width: 0; }
.entry-content {
	max-width: 72ch;
	font-size: 17px;
	line-height: 1.75;
	overflow-wrap: break-word;
}
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.8em; margin-bottom: .2em; letter-spacing: -.01em; }
.entry-content h2 { font-size: 1.5rem; }
.entry-content h3 { font-size: 1.25rem; }
.entry-content h4 { font-size: 1.1rem; }
.entry-content a { color: var(--red); }
.entry-content a:hover { color: var(--red-dark); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: .35em; }
.entry-content img { border-radius: 10px; }
.entry-content figure { margin-inline: 0; max-width: 100%; }
.entry-content .wp-caption { max-width: 100% !important; }
.entry-content .wp-caption-text, .entry-content figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; text-align: center; }
.entry-content .aligncenter { margin-inline: auto; }
.entry-content .alignleft { float: left; margin: .3em 1.5em 1em 0; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.5em; }
.entry-content blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-left: 1px solid var(--red); color: var(--muted); font-style: italic; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.entry-content iframe { width: 100%; border: 0; border-radius: 10px; }
.entry-content iframe[src*="youtube"], .entry-content iframe[src*="vimeo"] { height: auto; aspect-ratio: 16 / 9; }
.entry-content iframe[src*="docs.google.com/forms"] { min-height: 1600px; }
.entry-content table {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.5;
	font-variant-numeric: tabular-nums;
}
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.entry-content th, .entry-content thead td { background: var(--cream); font-weight: 700; }
.entry-content::after { content: ""; display: block; clear: both; }
@media (max-width: 639px) {
	.entry-content { font-size: 16px; }
	.entry-content .alignleft, .entry-content .alignright { float: none; margin: 1em auto; }
}

.page-links { margin-top: 32px; font-weight: 600; }

/* Aside */
.article-aside { display: grid; gap: 28px; }
@media (min-width: 1024px) { .article-aside { position: sticky; top: 24px; } }

.aside-cta {
	display: grid;
	gap: 10px;
	padding: 24px;
	background: var(--ink);
	color: var(--on-dark);
	border-radius: var(--radius);
}
.aside-cta__title { color: var(--white); font-size: 19px; font-weight: 800; }
.aside-cta__text { margin-bottom: 6px; color: var(--on-dark-muted); font-size: 14px; }

.aside-list__title { padding-bottom: 10px; border-bottom: 2px solid var(--ink); font-size: 17px; font-weight: 800; }
.aside-list ul { list-style: none; }
.aside-list li { padding-block: 12px; border-bottom: 1px solid var(--line); }
.aside-list a { color: var(--text); font-size: 15px; font-weight: 600; line-height: 1.45; text-decoration: none; }
.aside-list a:hover, .aside-list a[aria-current] { color: var(--red); }
.aside-list time { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

.related { margin-top: var(--section); padding-top: var(--section); border-top: 1px solid var(--line); }
.related .section-title { margin-bottom: 28px; }
.related .container { padding-inline: 0; }

/* Empty state ----------------------------------------------------------- */

.empty-state { max-width: 560px; margin-inline: auto; padding-block: 24px; text-align: center; }
.empty-state__title { font-size: 1.4rem; font-weight: 800; }
.empty-state p { margin-top: 10px; color: var(--muted); }
.empty-state .search-form { margin: 24px auto 0; }
.empty-state__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px !important; }
.search-bar { margin-bottom: 32px; }

/* Comments (rare, kept presentable) */
.comments-area { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.comments-area textarea, .comments-area input[type="text"], .comments-area input[type="email"], .comments-area input[type="url"] {
	width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit;
}
.comments-area .submit { padding: 12px 20px; border: 0; border-radius: var(--radius-sm); background: var(--red); color: var(--white); font: inherit; font-weight: 700; cursor: pointer; }

/* Footer ---------------------------------------------------------------- */

.site-footer { background: var(--ink); color: var(--on-dark-muted); font-size: 14px; }
.site-footer__grid { display: grid; gap: 32px; padding-block: 40px 32px; }
.site-footer__name { margin-bottom: 14px; color: var(--white); font-size: 16px; font-weight: 800; text-transform: uppercase; }
.contact-list { display: grid; gap: 10px; list-style: none; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .icon { width: 17px; height: 17px; margin-top: 3px; color: var(--gold); }
.contact-list a { color: var(--on-dark); text-decoration: none; }
.contact-list a:hover { color: var(--gold); }

.footer-title { margin-bottom: 12px; color: var(--white); font-size: 15px; font-weight: 700; }
.site-footer__links ul { display: grid; gap: 8px; list-style: none; }
.site-footer__links a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer__links a:hover { color: var(--gold); }

.site-footer__map { border-radius: var(--radius); overflow: hidden; background: var(--ink-2); min-height: 180px; }
.site-footer__map iframe { display: block; width: 100%; height: 100%; min-height: 180px; border: 0; filter: grayscale(.35) contrast(1.05); }

.site-footer__bottom { padding-block: 18px; border-top: 1px solid var(--ink-3); font-size: 13px; }

@media (min-width: 640px) {
	.site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-footer__about, .site-footer__map { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
	.site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-block: 56px 40px; }
	.site-footer__about, .site-footer__map { grid-column: auto; }
}

/* Mobile action bar ----------------------------------------------------- */

.action-bar {
	position: fixed;
	inset: auto 0 0;
	z-index: 80;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
	background: rgba(255, 255, 255, .96);
	backdrop-filter: blur(10px);
	border-top: 1px solid var(--line);
	box-shadow: 0 -8px 24px -16px rgba(0, 0, 0, .35);
}
.action-bar__item {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 48px;
	border: 1.5px solid var(--line);
	border-radius: var(--radius-sm);
	color: var(--red);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}
.action-bar__item .icon { width: 18px; height: 18px; }
.action-bar__item:hover { border-color: var(--red); color: var(--red); }
.action-bar__item--primary { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.action-bar__item--primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--ink); }

body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }

@media (min-width: 768px) {
	.action-bar { display: none; }
	body { padding-bottom: 0; }
}

/* Third-party floating widgets: keep them above the action bar on phones. */
@media (max-width: 767px) {
	.gt_float_switcher, #gt_float_wrapper { bottom: calc(80px + env(safe-area-inset-bottom)) !important; }
}

/* Fit pass ---------------------------------------------------------------- */

.brand__name { max-width: 14ch; }
.masthead__cta, .link-arrow { white-space: nowrap; }
.wpcf7 .hidden-fields-container { display: none; }

@media (min-width: 768px) {
	.brand__name { max-width: none; white-space: nowrap; }
}
@media (min-width: 1080px) {
	.masthead__inner { gap: 12px; }
	.brand-logo { height: 50px; }
	.brand__name { font-size: 15px; }
	.brand__tag { display: none; }
	.primary-nav .menu > li > a { padding-inline: 9px; font-size: 14.5px; }
}
@media (min-width: 1280px) {
	.brand__name { font-size: 16px; }
	.brand__tag { display: block; }
	.primary-nav .menu > li > a { padding-inline: 11px; font-size: 15px; }
}
@media (min-width: 1024px) {
	.hero__title { font-size: clamp(2.4rem, 1.2rem + 2.2vw, 3.1rem); }
}
@media (max-width: 639px) {
	.majors .section-head .link-arrow { font-size: 14px; }
}

/* Header fit at 1080–1439: two-line school name, tagline only on wide screens. */
@media (min-width: 1080px) {
	.brand { flex: none; margin-right: auto; }
	.brand__name { max-width: 13ch; white-space: normal; line-height: 1.15; }
	.brand__tag { display: none; }
}
@media (min-width: 1440px) {
	.brand__name { max-width: none; white-space: nowrap; }
	.brand__tag { display: block; }
}

/* paginate_links() puts .page-numbers on the <ul> as well */
.pagination ul.page-numbers { display: flex; min-width: 0; height: auto; padding: 0; border: 0; }

.aside-list__title a { color: inherit; font-size: inherit; font-weight: inherit; }

/* CF7 also validates in the browser; keep only the more specific theme message. */
.lead-form .field:has(.field-error:not([hidden])) .wpcf7-not-valid-tip { display: none; }

/* Back to top ------------------------------------------------------------ */

.to-top {
	position: fixed;
	right: 20px;
	bottom: 92px;
	z-index: 70;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ink);
	color: var(--gold);
	box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .55);
	cursor: pointer;
	opacity: 0;
	transform: translateY(12px) scale(.9);
	transition: opacity .25s, transform .35s var(--ease-out), background-color .2s, color .2s;
}
.to-top[hidden] { display: none; }
.to-top.is-visible { opacity: 1; transform: none; }
.to-top:hover { background: var(--red); color: var(--white); }
.to-top .icon { width: 22px; height: 22px; transform: rotate(90deg); }

@media (max-width: 767px) {
	.to-top { right: 12px; bottom: calc(140px + env(safe-area-inset-bottom)); width: 44px; height: 44px; }
}

/* Hero slider -------------------------------------------------------------- */

.hero-slider { position: relative; isolation: isolate; }
.hero-slider__track { position: absolute; inset: 0; }
.hero-slide {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .9s var(--ease-out), visibility 0s .9s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s var(--ease-out), visibility 0s; z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
	.hero-slide img { transform: scale(1.06); transition: transform 7s linear; }
	.hero-slide.is-active img { transform: scale(1); }
}

/* Bottom shade keeps caption and controls legible on any photo. */
.hero-slide::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	z-index: 1;
	height: 45%;
	background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .72));
	pointer-events: none;
}
.hero-slide__caption {
	position: absolute;
	left: 18px;
	bottom: 24px;
	z-index: 2;
	max-width: calc(100% - 240px);
	color: var(--white);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}

.hero-slider__controls {
	position: absolute;
	right: 14px;
	bottom: 14px;
	z-index: 4;
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 4px;
	border-radius: 999px;
	background: rgba(18, 18, 18, .55);
	backdrop-filter: blur(8px);
}
.hero-slider__btn {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--white);
	cursor: pointer;
	transition: background-color .2s, color .2s;
}
.hero-slider__btn:hover { background: var(--gold); color: var(--ink); }
.hero-slider__btn .icon { width: 17px; height: 17px; }
.hero-slider__pause .icon-play { display: none; }
.hero-slider__pause[aria-pressed="true"] .icon-play { display: block; }
.hero-slider__pause[aria-pressed="true"] .icon-pause { display: none; }

.hero-slider__dots { display: flex; align-items: center; gap: 2px; padding-inline: 4px; }
.hero-slider__dot {
	position: relative;
	width: 22px;
	height: 34px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}
.hero-slider__dot::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .55);
	transform: translate(-50%, -50%);
	transition: width .35s var(--ease-out), background-color .2s;
}
.hero-slider__dot:hover::before { background: var(--white); }
.hero-slider__dot[aria-current="true"]::before { width: 18px; background: var(--gold); }

@media (max-width: 639px) {
	.hero-slider__btn[data-slide] { display: none; }
	.hero-slide__caption { left: 14px; bottom: 56px; max-width: calc(100% - 28px); font-size: 13px; }
	.hero-slider__controls { right: 10px; bottom: 10px; }
}
.hero-slider .hero-slide img { animation: none; }

/* Section kicker (red label above homepage section titles) ----------------- */

.kicker {
	margin-bottom: 8px;
	color: var(--red);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .08em;
	line-height: 1.3;
	text-transform: uppercase;
}
.kicker--center { text-align: center; }
.kicker--on-red { color: var(--gold); }

/* News block v2: lead story · list · notice board ------------------------- */

.news .section-head .link-arrow { display: inline-flex; }

.news__grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 768px) {
	.news__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; }
	.news__grid .notice-board { grid-column: 1 / -1; }
}
@media (min-width: 1200px) {
	.news__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 360px; align-items: stretch; }
	.news__grid .notice-board { grid-column: auto; }
}

.news .tag {
	display: inline-flex;
	padding: 3px 10px;
	border-radius: 6px;
	background: #fde8e8;
	color: var(--red);
	font-size: 12px;
	font-weight: 700;
}
.news .meta { gap: 6px 12px; }
.news .meta__item { display: inline-flex; align-items: center; gap: 5px; }

/* Lead story */
.news-lead {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: box-shadow .3s var(--ease-out), transform .3s var(--ease-out);
}
.news-lead:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.news-lead:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.news-lead a:focus-visible { outline: none; }
.news-lead__media { display: block; aspect-ratio: 16 / 9; border-radius: 0; overflow: hidden; background: var(--cream-2); }
.news-lead__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.news-lead:hover .news-lead__media img { transform: scale(1.03); }
.news-lead__body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 20px 22px 22px; }
.news-lead .meta { margin-top: 0; }
.news-lead__title { margin-top: 0; font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem); font-weight: 800; line-height: 1.35; letter-spacing: -.01em; }
.news-lead__title a::after { content: ""; position: absolute; inset: 0; }
.news-lead:hover .news-lead__title a { color: var(--red); }
.news-lead__excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: 15px; line-height: 1.6; }
.news-lead__more { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 4px; color: var(--red); font-size: 14px; font-weight: 700; }
.news-lead__more .icon { width: 16px; height: 16px; transition: transform .25s var(--ease-out); }
.news-lead:hover .news-lead__more .icon { transform: translateX(4px); }

/* Compact list */
.news-list { display: flex; flex-direction: column; list-style: none; }
.news-item {
	position: relative;
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	gap: 16px;
	align-items: start;
	padding-block: 18px;
	border-bottom: 1px solid var(--line);
}
.news-item:first-child { padding-top: 0; }
.news-item:last-child { border-bottom: 0; }
.news-item__media { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--cream-2); }
.news-item__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.news-item:hover .news-item__media img { transform: scale(1.05); }
.news-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 6px; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.news-item__cat { color: var(--red); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: 11.5px; }
.news-item__title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 16px; font-weight: 700; line-height: 1.45; }
.news-item__title a { color: inherit; text-decoration: none; }
.news-item__title a::after { content: ""; position: absolute; inset: 0; }
.news-item:hover .news-item__title a { color: var(--red); }
.news-item:focus-within { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 8px; }
.news-item a:focus-visible { outline: none; }
@media (min-width: 1200px) {
	.news-item { grid-template-columns: 128px minmax(0, 1fr); }
}

/* Notice board */
.notice-board {
	display: flex;
	flex-direction: column;
	padding: 22px 22px 20px;
	background: var(--cream);
	border-radius: var(--radius);
}
.notice-board__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.notice-board__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--red); color: var(--white); }
.notice-board__icon .icon { width: 18px; height: 18px; }
.notice-board__title { margin: 0; font-size: 19px; font-weight: 800; }
.notice-list { list-style: none; margin: 0; }
.notice {
	position: relative;
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	padding-block: 14px;
	border-bottom: 1px solid var(--line);
}
.notice:last-child { border-bottom: 0; }
.notice__date {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 6px 0 5px;
	border-radius: 10px;
	background: var(--white);
	box-shadow: 0 1px 2px rgba(27, 25, 22, .08);
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.notice__day { color: var(--red); font-size: 20px; font-weight: 800; }
.notice__month { margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 600; }
.notice__title {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
}
.notice__title::after { content: ""; position: absolute; inset: 0; }
.notice:hover .notice__title { color: var(--red); }
.notice:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
.notice__title:focus-visible { outline: none; }
.notice-board__more { margin-top: auto; padding-top: 12px; }
.notice-board li { padding-block: 14px; }

@media (min-width: 768px) and (max-width: 1199px) {
	.news__grid .notice-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
	.news__grid .notice:nth-last-child(2) { border-bottom: 0; }
}
.notice { grid-template-columns: 56px minmax(0, 1fr); }
.notice__month { font-size: 10.5px; letter-spacing: -.01em; }
@media (min-width: 1200px) {
	.news-list { height: 100%; justify-content: space-between; }
	.news-item { flex: 1; align-content: center; }
	.news-item:first-child { padding-top: 0; }
	.news-item:last-child { padding-bottom: 0; }
}

/* Testimonials v2 ------------------------------------------------------------ */

.testimonial {
	position: relative;
	gap: 18px;
	padding: 28px 26px 24px;
	border: 1px solid transparent;
	box-shadow: var(--shadow);
	transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.testimonial:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.testimonial__mark { width: 30px; height: 30px; color: var(--red); fill: rgba(215, 0, 0, .1); }
.testimonial blockquote { color: var(--text); font-size: 16px; line-height: 1.7; }
.testimonial figcaption { gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.testimonial__avatar { width: 48px; height: 48px; }
.testimonial__avatar--empty { display: grid; place-items: center; color: #a39a8b; }
.testimonial__avatar--empty .icon { width: 22px; height: 22px; }
.testimonial__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.testimonial__who strong { color: var(--text); font-size: 15px; font-weight: 800; }
.testimonial__who span { color: var(--muted); font-size: 13px; }
@media (min-width: 768px) {
	.testimonials__grid { gap: 24px; }
}

/* Footer v2 ---------------------------------------------------------------- */

.site-footer {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(60% 50% at 100% 0%, rgba(215, 0, 0, .16), transparent 70%),
		radial-gradient(40% 40% at 0% 100%, rgba(255, 204, 0, .07), transparent 70%),
		var(--ink);
	color: var(--on-dark-muted);
	font-size: 15px;
}

/* Quick contact row */
.footer-contact {
	display: grid;
	gap: 12px;
	margin-top: 36px;
	list-style: none;
}
@media (min-width: 768px) {
	.footer-contact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
}
.footer-contact__item {
	display: flex;
	align-items: center;
	gap: 14px;
	height: 100%;
	padding: 16px 18px;
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: var(--radius);
	background: rgba(255, 255, 255, .03);
	color: var(--on-dark);
	text-decoration: none;
	transition: border-color .2s, background-color .2s, transform .3s var(--ease-out);
}
.footer-contact__item:hover { border-color: rgba(255, 204, 0, .5); background: rgba(255, 204, 0, .06); color: var(--white); transform: translateY(-2px); }
.footer-contact__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--gold);
	color: var(--ink);
}
.footer-contact__icon .icon { width: 20px; height: 20px; }
.footer-contact__label { display: block; color: var(--on-dark-muted); font-size: 13px; }
.footer-contact__value { display: block; overflow-wrap: anywhere; color: var(--white); font-size: 17px; font-weight: 700; line-height: 1.35; font-variant-numeric: tabular-nums; }

/* Main grid */
.site-footer__grid { display: grid; gap: 36px; padding-block: 44px 8px; }
@media (min-width: 640px) {
	.site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-footer__brand, .site-footer__places { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
	.site-footer__grid { grid-template-columns: 1.35fr .8fr .8fr 1.25fr; gap: 48px; padding-top: 56px; }
	.site-footer__brand, .site-footer__places { grid-column: auto; }
}

.footer-brand { display: flex; align-items: center; gap: 14px; color: var(--white); text-decoration: none; }
.footer-brand:hover { color: var(--white); }
.footer-brand__logo { display: grid; place-items: center; flex: none; width: 72px; height: 56px; padding: 6px; border-radius: 12px; background: var(--white); }
.footer-brand__logo .brand-logo { width: 100%; height: 100%; object-fit: contain; }
.footer-brand__name { display: block; font-size: 17px; font-weight: 800; line-height: 1.25; text-transform: uppercase; }
.footer-brand__tag { display: block; margin-top: 3px; color: var(--on-dark-muted); font-size: 13px; }
.site-footer__desc { max-width: 40ch; margin: 18px 0 20px; line-height: 1.65; }

.footer-title {
	position: relative;
	margin-bottom: 18px;
	padding-bottom: 12px;
	color: var(--white);
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: var(--gold); }
.site-footer__links ul { display: grid; gap: 4px; list-style: none; }
.site-footer__links a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding-block: 5px;
	color: var(--on-dark-muted);
	text-decoration: none;
	transition: color .2s, transform .25s var(--ease-out);
}
.site-footer__links a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--red); transition: background-color .2s; }
.site-footer__links a:hover { color: var(--gold); transform: translateX(3px); }
.site-footer__links a:hover::before { background: var(--gold); }

.place-list { display: grid; gap: 14px; list-style: none; }
.place-list li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; line-height: 1.55; }
.place-list .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--gold); }
.place-list strong { display: block; color: var(--white); font-size: 14px; font-weight: 700; }

.footer-map { position: relative; height: 150px; margin-top: 18px; border-radius: 12px; overflow: hidden; background: var(--ink-2); }
.footer-map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(.6) contrast(1.05) brightness(.9); pointer-events: none; }
.footer-map__link {
	position: absolute;
	right: 10px;
	bottom: 10px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--gold);
	color: var(--ink);
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
	box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .6);
}
.footer-map__link .icon { width: 15px; height: 15px; }
.footer-map__link:hover { background: var(--white); color: var(--ink); }
.footer-map__link::after { content: ""; position: absolute; inset: -150px -400px -10px -400px; }

/* Oversized wordmark */
.footer-wordmark {
	margin: 24px 0 -0.18em;
	color: transparent;
	-webkit-text-stroke: 1px rgba(255, 255, 255, .09);
	font-size: clamp(64px, 17vw, 260px);
	font-weight: 800;
	letter-spacing: -.04em;
	line-height: 1;
	text-align: center;
	white-space: nowrap;
	user-select: none;
	pointer-events: none;
}

.site-footer__bottom { position: relative; border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(0, 0, 0, .35); padding: 0; }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 18px; font-size: 13px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; }
.footer-legal a { color: var(--on-dark-muted); text-decoration: none; }
.footer-legal a:hover { color: var(--gold); }
.site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.site-footer__brand, .site-footer__places { grid-column: 1 / -1; }
@media (min-width: 1024px) {
	.site-footer__grid { grid-template-columns: 1.35fr .8fr .8fr 1.25fr; column-gap: 48px; }
	.site-footer__brand, .site-footer__places { grid-column: auto; }
}
.site-footer__links a { align-items: flex-start; }
.site-footer__links a::before { flex: none; margin-top: .62em; }
.footer-wordmark { margin-top: 0; font-size: clamp(56px, 13vw, 200px); }
@media (min-width: 1024px) {
	.site-footer__grid { padding-bottom: 0; }
}
@media (min-width: 768px) {
	.site-footer__bottom-inner { padding-right: 150px; }
}

/* ==========================================================================
   Polish v3: fewer template tells, new homepage sections
   ========================================================================== */

/* Decorative glows out; flat surfaces carry the brand. */
.hero::after { display: none; }
.site-footer { background: var(--ink); }

/* Notice ticker ------------------------------------------------------------ */
.ticker { background: var(--white); border-bottom: 1px solid var(--line); }
.ticker__inner { display: flex; align-items: stretch; min-height: 52px; }
.ticker__label {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: none;
	padding: 0 16px;
	background: var(--red);
	color: var(--white);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	white-space: nowrap;
}
.ticker__label .icon { width: 16px; height: 16px; }
@media (max-width: 639px) {
	.ticker__label span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.ticker__inner { padding-inline: 0; }
}
.ticker__viewport {
	position: relative;
	flex: 1;
	min-width: 0;
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent);
}
.ticker__track { display: flex; width: max-content; height: 100%; animation: ticker 45s linear infinite; }
.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker__list { display: flex; align-items: center; list-style: none; }
.ticker__list li { display: flex; align-items: center; }
.ticker__list li::after { content: ""; width: 5px; height: 5px; margin-inline: 22px; border-radius: 50%; background: var(--gold); }
.ticker__list a { display: inline-flex; align-items: baseline; gap: 10px; padding-block: 14px; color: var(--text); font-size: 14.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.ticker__list a:hover { color: var(--red); }
.ticker__list time { color: var(--red); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ticker__more { display: none; align-items: center; gap: 6px; flex: none; padding-left: 18px; color: var(--red); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ticker__more .icon { width: 16px; height: 16px; }
@media (min-width: 768px) {
	.ticker__more { display: inline-flex; }
}
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.ticker__track { animation: none; }
	.ticker__viewport { overflow-x: auto; mask-image: none; }
	.ticker__list[aria-hidden="true"] { display: none; }
}

/* Stats: one ruled strip instead of four floating cards ------------------- */
.stats { padding-block: 0; background: var(--cream); }
.stats__list { gap: 0; }
.stat { padding: 22px 18px; background: none; border-radius: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stats__list .stat:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
.stats__list .stat:nth-child(4) { border-top: 1px solid var(--line); }
@media (min-width: 768px) {
	.stats { padding-block: 8px; }
	.stat { padding: 26px 28px; }
	.stats__list .stat:nth-child(3) { border-left: 1px solid var(--line); border-top: 0; }
	.stats__list .stat:nth-child(4) { border-top: 0; }
	.stats__list .stat:first-child { padding-left: 0; }
}
.stat__number { font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); }

/* Why: editorial split, ruled list ------------------------------------------ */
.why__layout { display: grid; gap: 32px; }
@media (min-width: 1024px) {
	.why__layout { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; }
	.why__intro { position: sticky; top: 24px; }
}
.why__intro .section-title { max-width: 16ch; }
.why__photo { margin: 28px 0 0; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--cream-2); }
.why__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1023px) {
	.why__photo { display: none; }
}
.why__list { display: block; list-style: none; border-top: 2px solid var(--ink); }
.why-item {
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr);
	gap: 18px;
	padding: 24px 0;
	background: none;
	border-radius: 0;
	border-bottom: 1px solid #ddd3c3;
}
.why-item__icon { display: block; width: auto; height: auto; margin: 2px 0 0; background: none; color: var(--red); }
.why-item__icon .icon { width: 28px; height: 28px; stroke-width: 1.75; }
.why-item__title { font-size: clamp(17px, 16px + .3vw, 20px); font-weight: 800; }
.why-item__desc { max-width: 52ch; margin-top: 6px; font-size: 15.5px; }
@media (min-width: 640px) {
	.why-item { padding: 28px 0; }
	.why-item__icon { display: block; width: auto; height: auto; margin: 2px 0 0; background: none; }
}

/* Testimonials: quieter cards, left-aligned heading */
.testimonials__title { margin-bottom: clamp(24px, 3.5vw, 40px); }
.testimonial { box-shadow: none; border: 1px solid var(--line); }
.testimonial:hover { transform: none; box-shadow: none; border-color: #d8ccb8; }

/* Quick access ------------------------------------------------------------- */
.quick { padding-block: var(--section) 0; }
.quick__grid {
	display: grid;
	list-style: none;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--white);
}
@media (min-width: 640px) {
	.quick__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.quick__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.quick__item {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 26px 24px 24px;
	transition: background-color .2s;
}
.quick__item + .quick__item { border-top: 1px solid var(--line); }
@media (min-width: 640px) {
	.quick__item + .quick__item { border-top: 0; }
	.quick__item:nth-child(even) { border-left: 1px solid var(--line); }
	.quick__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (min-width: 1024px) {
	.quick__item:nth-child(n+2) { border-left: 1px solid var(--line); }
	.quick__item:nth-child(n+3) { border-top: 0; }
}
.quick__item:hover { background: #faf8f4; }
.quick__icon { color: var(--red); }
.quick__icon .icon { width: 30px; height: 30px; stroke-width: 1.6; }
.quick__title { margin-top: 6px; font-size: 18px; font-weight: 800; }
.quick__title a { color: inherit; text-decoration: none; }
.quick__title a::after { content: ""; position: absolute; inset: 0; }
.quick__item:hover .quick__title a { color: var(--red); }
.quick__item:focus-within { outline: 3px solid var(--gold); outline-offset: -3px; }
.quick__title a:focus-visible { outline: none; }
.quick__desc { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.quick__more { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 10px; color: var(--red); font-size: 14px; font-weight: 700; }
.quick__more .icon { width: 16px; height: 16px; transition: transform .25s var(--ease-out); }
.quick__item:hover .quick__more .icon { transform: translateX(4px); }

/* Library: book covers ------------------------------------------------------ */
.library__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; list-style: none; }
@media (min-width: 1024px) {
	.library__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
}
.book { position: relative; display: flex; flex-direction: column; gap: 6px; }
.book__cover {
	display: block;
	aspect-ratio: 3 / 4;
	margin-bottom: 10px;
	border-radius: 4px 10px 10px 4px;
	overflow: hidden;
	background: var(--cream-2);
	box-shadow: inset 6px 0 0 rgba(0, 0, 0, .08), 0 1px 2px rgba(27, 25, 22, .1), 0 12px 24px -16px rgba(27, 25, 22, .45);
	transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.book__cover img { width: 100%; height: 100%; object-fit: cover; }
.book:hover .book__cover { transform: translateY(-4px) rotate(-.6deg); box-shadow: inset 6px 0 0 rgba(0, 0, 0, .08), 0 2px 4px rgba(27, 25, 22, .1), 0 22px 36px -18px rgba(27, 25, 22, .5); }
.book__type { color: var(--red); font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.book__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15.5px; font-weight: 700; line-height: 1.45; }
.book__title a { color: inherit; text-decoration: none; }
.book__title a::after { content: ""; position: absolute; inset: 0; }
.book:hover .book__title a { color: var(--red); }
.book:focus-within { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 6px; }
.book__title a:focus-visible { outline: none; }
.book__more { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; }
.book__more .icon { width: 14px; height: 14px; }

/* Lead block v2: contained split panel ------------------------------------- */

.lead { padding-block: var(--section); background: var(--white); color: var(--text); }
.lead__panel {
	display: grid;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(27, 25, 22, .06), 0 30px 60px -36px rgba(120, 0, 0, .45);
}
@media (min-width: 1024px) {
	.lead__panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* Red half */
.lead__copy {
	position: relative;
	padding: clamp(28px, 4.5vw, 56px);
	background: var(--red);
	color: var(--white);
}
.lead__copy::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 5px;
	background: linear-gradient(90deg, var(--ink) 0 33.33%, var(--red-dark) 33.33% 66.66%, var(--gold) 66.66%);
}
.lead__title { max-width: 18ch; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); }
.lead__desc { max-width: 44ch; margin-top: 14px; color: #ffe1e1; font-size: 16px; line-height: 1.6; }

.lead__steps { display: grid; gap: 14px; margin-top: 28px; list-style: none; counter-reset: none; }
.lead__steps li { display: flex; align-items: center; gap: 14px; font-size: 15.5px; font-weight: 600; line-height: 1.4; }
.lead__step-no {
	display: grid;
	place-items: center;
	flex: none;
	width: 32px;
	height: 32px;
	border: 1.5px solid rgba(255, 255, 255, .55);
	border-radius: 50%;
	color: var(--gold);
	font-size: 14px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.lead__direct {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, .25);
}
.lead__hotline { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
.lead__hotline:hover { color: var(--white); }
.lead__hotline-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--ink); transition: transform .25s var(--ease-out); }
.lead__hotline:hover .lead__hotline-icon { transform: rotate(-12deg); }
.lead__hotline-icon .icon { width: 20px; height: 20px; }
.lead__hotline-label { display: block; color: #ffd6d6; font-size: 13px; }
.lead__hotline-number { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.lead__zalo {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border: 1.5px solid rgba(255, 255, 255, .6);
	border-radius: 999px;
	color: var(--white);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color .2s, color .2s, border-color .2s;
}
.lead__zalo .icon { width: 18px; height: 18px; }
.lead__zalo:hover { background: var(--white); border-color: var(--white); color: var(--red); }

/* White half: the form always sits on white now */
.lead .lead__form {
	padding: clamp(24px, 4vw, 48px);
	background: var(--white);
	border-radius: 0;
	box-shadow: none;
}
.lead__form-title { margin-bottom: 18px; font-size: 20px; font-weight: 800; }
.lead .lead__form .wpcf7 { color: var(--text); }
.lead .lead__form .lead-form .field--major { display: grid; }
.lead .lead__form .lead-form__note { color: var(--muted); }
.lead .lead__form .lead-form .field-error,
.lead .lead__form .lead-form .wpcf7-not-valid-tip { color: var(--red); }
.lead .lead__form .lead-form [aria-invalid="true"] { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(215, 0, 0, .15); }
.lead .lead__form .lead-form input:not([type="submit"]),
.lead .lead__form .lead-form select { background-color: #faf8f4; }
.lead .lead__form .lead-form input:focus,
.lead .lead__form .lead-form select:focus { background-color: var(--white); }
.lead .lead__form .wpcf7-submit { background: var(--red); color: var(--white); }
.lead .lead__form .wpcf7-submit:hover { background: var(--red-dark); }
@media (min-width: 1024px) {
	.lead .lead__form { display: flex; flex-direction: column; justify-content: center; }
}
@media (max-width: 639px) {
	.lead { padding-block: 32px; }
	.lead .container { padding-inline: 12px; }
	.lead__hotline-number { font-size: 20px; }
}
.btn--outline-red { border-color: var(--red); background: transparent; color: var(--red); }
.btn--outline-red:hover { background: var(--red); color: var(--white); }

/* Library block v2: intro + compact document rows --------------------------- */

.library { background: var(--white); }
.library__layout { display: grid; gap: 32px; }
@media (min-width: 1024px) {
	.library__layout { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }
}
.library__intro .section-title { max-width: 14ch; }
.library__desc { max-width: 40ch; margin-top: 14px; color: var(--muted); line-height: 1.6; }

.library__cats { margin-top: 24px; list-style: none; border-top: 1px solid var(--line); }
.library__cats li { border-bottom: 1px solid var(--line); }
.library__cats a { display: flex; align-items: center; gap: 10px; padding-block: 12px; color: var(--text); font-size: 15px; font-weight: 600; text-decoration: none; }
.library__cats a .icon { width: 18px; height: 18px; color: var(--red); }
.library__cats a span:first-of-type { flex: 1; }
.library__cats a:hover { color: var(--red); }
.library__cats .count { min-width: 28px; padding: 2px 8px; border-radius: 6px; background: var(--cream); text-align: center; }
.library__all { margin-top: 24px; }
.library__all .icon { width: 17px; height: 17px; }

.library__list { display: grid; gap: 16px; list-style: none; }
@media (min-width: 640px) {
	.library__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
.doc-row {
	position: relative;
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	gap: 18px;
	align-items: start;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
	transition: border-color .2s, background-color .2s;
}
.doc-row:hover { border-color: #e9b8b8; background: #fffafa; }
.doc-row:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.doc-row a:focus-visible { outline: none; }
.doc-row__cover {
	display: block;
	aspect-ratio: 3 / 4;
	border-radius: 3px 6px 6px 3px;
	overflow: hidden;
	background: var(--cream-2);
	box-shadow: inset 4px 0 0 rgba(0, 0, 0, .1), 0 1px 2px rgba(27, 25, 22, .12), 0 8px 16px -10px rgba(27, 25, 22, .5);
	transition: transform .3s var(--ease-out);
}
.doc-row:hover .doc-row__cover { transform: translateY(-2px) rotate(-1.5deg); }
.doc-row__cover img { width: 100%; height: 100%; object-fit: cover; }
.doc-row__body { display: flex; flex-direction: column; gap: 6px; min-height: 100%; padding-top: 2px; }
.doc-row__type { color: var(--red); font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.doc-row__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 16px; font-weight: 700; line-height: 1.45; }
.doc-row__title a { color: inherit; text-decoration: none; }
.doc-row__title a::after { content: ""; position: absolute; inset: 0; }
.doc-row:hover .doc-row__title a { color: var(--red); }
.doc-row__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-top: auto; padding-top: 8px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.doc-row__meta span { display: inline-flex; align-items: center; gap: 5px; }
.doc-row__meta .icon { width: 14px; height: 14px; }
.doc-row__more { color: var(--red); font-weight: 700; }
.doc-row__more .icon { transition: transform .25s var(--ease-out); }
.doc-row:hover .doc-row__more .icon { transform: translateX(3px); }

/* News block v3: one surface language, natural rhythm ---------------------- */

@media (min-width: 1200px) {
	.news__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
}

/* Lead: no box, just image + text */
.news-lead { border: 0; border-radius: 0; background: none; overflow: visible; }
.news-lead:hover { transform: none; box-shadow: none; }
.news-lead__media { border-radius: 14px; }
.news-lead__body { padding: 18px 0 0; gap: 10px; }
.news-lead__title { font-size: clamp(1.25rem, 1.05rem + .7vw, 1.6rem); line-height: 1.3; }
.news-lead__excerpt { font-size: 15px; }

/* List: natural spacing, thumbs aligned to the first text line */
.news-list { height: auto; justify-content: flex-start; border-top: 0; }
.news-item { flex: none; align-content: start; grid-template-columns: 116px minmax(0, 1fr); gap: 16px; padding-block: 16px; }
.news-item:first-child { padding-top: 0; }
.news-item:last-child { padding-bottom: 0; border-bottom: 0; }
.news-item__media { aspect-ratio: 4 / 3; border-radius: 10px; }
.news-item__meta { margin-bottom: 4px; }
.news-item__title { -webkit-line-clamp: 2; font-size: 15.5px; line-height: 1.45; }
@media (min-width: 1200px) {
	.news-list { height: auto; }
	.news-item { padding-block: 18px; }
}

/* Titles typed in ALL CAPS: slightly smaller and lighter so they read calmly */
.is-caps { font-size: .9em !important; font-weight: 600 !important; letter-spacing: .01em; }
.news-lead__title.is-caps { font-size: 1.15rem !important; font-weight: 700 !important; }

/* Notice board: tidier date chip */
.notice-board { padding: 22px 22px 18px; }
.notice { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding-block: 13px; }
.notice__date { padding: 7px 0 6px; border-radius: 10px; background: var(--white); box-shadow: none; border: 1px solid var(--line); }
.notice__day { font-size: 19px; line-height: 1; }
.notice__month { margin-top: 3px; font-size: 11px; font-weight: 700; color: var(--muted); }
.notice__title { font-size: 14.5px; line-height: 1.5; }
.notice__title.is-caps { font-size: 13.5px !important; }
.notice__date { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; width: 48px; }
.notice__day, .notice__month { display: block; width: 100%; text-align: center; }

/* YouTube block ---------------------------------------------------------------- */

.video-block { background: var(--ink); color: var(--on-dark); }
.video-block .section-title { color: var(--white); }
.kicker--on-dark { color: var(--gold); }
.video-block__subscribe { flex: none; }
.video-block__subscribe .icon { width: 20px; height: 20px; }

.video-block__grid { display: grid; gap: 28px; }
@media (min-width: 1024px) {
	.video-block__grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
}

/* Player */
.video-player__facade,
.video-player iframe {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	padding: 0;
	border: 0;
	border-radius: 14px;
	overflow: hidden;
	background: #000;
}
.video-player__facade { cursor: pointer; }
.video-player__facade img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out), filter .3s; }
.video-player__facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .45)); }
.video-player__facade:hover img { transform: scale(1.02); filter: brightness(.9); }
.video-player__play {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: var(--red);
	color: var(--white);
	transform: translate(-50%, -50%);
	box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6);
	transition: transform .3s var(--ease-out), background-color .2s;
}
.video-player__play svg { margin-left: 4px; }
.video-player__facade:hover .video-player__play { transform: translate(-50%, -50%) scale(1.08); background: var(--red-dark); }
.video-player__facade:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.video-player__info { padding-top: 16px; }
.video-player__title { color: var(--white); font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); font-weight: 800; line-height: 1.35; }
.video-player__meta { margin-top: 6px; color: var(--on-dark-muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }

/* List */
.video-list { display: grid; gap: 4px; list-style: none; }
@media (min-width: 1024px) {
	.video-list { max-height: 470px; overflow-y: auto; padding-right: 6px; scrollbar-width: thin; scrollbar-color: #444 transparent; }
}
.video-item {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	padding: 10px;
	border-radius: 12px;
	color: var(--on-dark);
	text-decoration: none;
	transition: background-color .2s;
}
.video-item:hover { background: rgba(255, 255, 255, .06); color: var(--white); }
.video-item.is-active { background: rgba(255, 255, 255, .09); }
.video-item:focus-visible { outline: 3px solid var(--gold); outline-offset: 0; }
.video-item__thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--ink-2); }
.video-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-item__now {
	position: absolute;
	inset: 0;
	display: none;
	place-items: center;
	background: rgba(0, 0, 0, .55);
	color: var(--gold);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.video-item.is-active .video-item__now { display: grid; }
.video-item__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.video-item__title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; font-weight: 700; line-height: 1.45; }
.video-item.is-active .video-item__title { color: var(--gold); }
.video-item__meta { color: var(--on-dark-muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
@media (max-width: 479px) {
	.video-item { grid-template-columns: 128px minmax(0, 1fr); padding: 8px 0; }
}

.video-block__more { margin-top: 28px; }
.video-block .link-arrow { color: var(--gold); }
.video-block .link-arrow:hover { color: var(--white); }
@media (max-width: 639px) {
	.video-block .section-head { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 1024px) {
	.video-list { max-height: none; overflow: visible; padding-right: 0; gap: 2px; }
	.video-item { grid-template-columns: 136px minmax(0, 1fr); gap: 12px; padding: 8px; }
	.video-item__title { -webkit-line-clamp: 2; font-size: 14px; }
}
