/**
 * Public school site styles.
 */

/* App shell — hide theme chrome on shortcode pages */
body.saqr-public-shell-active {
	margin: 0;
	background: var(--saqr-pub-shell-bg, #f0f2f5);
	-webkit-font-smoothing: antialiased;
}

body.saqr-public-shell-active .site-header,
body.saqr-public-shell-active .site-footer,
body.saqr-public-shell-active #masthead,
body.saqr-public-shell-active #colophon,
body.saqr-public-shell-active header.wp-block-template-part,
body.saqr-public-shell-active footer.wp-block-template-part,
body.saqr-public-shell-active .wp-site-blocks > header,
body.saqr-public-shell-active .wp-site-blocks > footer {
	display: none !important;
}

body.saqr-public-shell-active .entry-header,
body.saqr-public-shell-active .page-header,
body.saqr-public-shell-active .page-title,
body.saqr-public-shell-active .wp-block-post-title {
	display: none !important;
}

body.saqr-public-shell-active .site-content,
body.saqr-public-shell-active .entry-content,
body.saqr-public-shell-active .wp-block-post-content,
body.saqr-public-shell-active main.site-main {
	max-width: none;
	padding: 0;
	margin: 0;
}

body.saqr-public-shell-active .wp-site-blocks > main,
body.saqr-public-shell-active .wp-site-blocks > main .wp-block-group,
body.saqr-public-shell-active .wp-block-post-content.has-global-padding {
	margin-top: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.saqr-public-shell {
	display: flex;
	flex-direction: column;
	min-height: 100dvh;
	min-height: 100vh;
	background: var(--saqr-pub-shell-bg, #f0f2f5);
	margin-top: 0;
	padding-top: 0;
}

.saqr-public-shell__main {
	flex: 1;
	width: 100%;
	padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem);
}

body.saqr-public-shell-active .saqr-pub-header {
	position: sticky;
	top: 0;
	z-index: 200;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.06);
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

body.saqr-public-shell-active .saqr-pub-footer {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

body.saqr-public-shell-active .saqr-public-wrap {
	max-width: none;
	margin: 0;
	padding: 0 1rem 1.5rem;
}

body.saqr-public-shell-active .saqr-pub-hero,
body.saqr-public-shell-active .saqr-pub-hero-slider {
	border-radius: 0;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	width: 100vw;
	max-width: 100vw;
	margin-bottom: 1.5rem;
}

body.saqr-public-shell-active .saqr-pub-stats {
	margin-left: 0;
	margin-right: 0;
}

.saqr-pub-desktop-only {
	display: none;
}

@media (min-width: 769px) {
	.saqr-pub-desktop-only {
		display: block;
	}
}

/* Full-width header bands */
.saqr-pub-ticker,
.saqr-pub-utility {
	background: var(--saqr-pub-navy, #1a2b4a);
	color: rgba(255, 255, 255, 0.92);
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.saqr-pub-ticker__inner,
.saqr-pub-utility__inner {
	display: flex;
	align-items: center;
	gap: 1rem;
	max-width: var(--saqr-pub-content-max, 1400px);
	margin: 0 auto;
	padding: 0.45rem 1.25rem;
}

.saqr-pub-ticker__label {
	flex-shrink: 0;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding-right: 1rem;
	border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.saqr-pub-ticker__track-wrap {
	flex: 1;
	overflow: hidden;
	min-width: 0;
}

.saqr-pub-ticker__track {
	display: flex;
	width: max-content;
	animation: saqr-ticker-scroll 40s linear infinite;
}

.saqr-pub-ticker__track.is-paused {
	animation-play-state: paused;
}

@keyframes saqr-ticker-scroll {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

.saqr-pub-ticker__list {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 2rem;
}

.saqr-pub-ticker__list a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: rgba(255, 255, 255, 0.92);
	text-decoration: none;
	font-size: 0.8125rem;
	white-space: nowrap;
}

.saqr-pub-ticker__list a:hover {
	color: #fff;
}

.saqr-pub-ticker__list time {
	opacity: 0.75;
	font-size: 0.75rem;
}

.saqr-pub-utility__inner {
	justify-content: space-between;
	font-size: 0.8125rem;
}

.saqr-pub-utility__email {
	color: rgba(255, 255, 255, 0.92);
	text-decoration: none;
}

.saqr-pub-utility__email:hover {
	color: #fff;
}

.saqr-pub-utility__social {
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

.saqr-pub-utility__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	color: #fff;
	background: rgba(255, 255, 255, 0.12);
	transition: background 0.15s ease;
}

.saqr-pub-utility__social-link:hover {
	background: rgba(255, 255, 255, 0.22);
	color: #fff;
}

.saqr-pub-nav__actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-shrink: 0;
}

.saqr-pub-nav__phone {
	color: inherit;
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 600;
	white-space: nowrap;
}

.saqr-pub-nav__phone:hover {
	color: var(--saqr-primary, #1e88e5);
}

body.saqr-public-shell-active .saqr-pub-card-grid,
body.saqr-public-shell-active .saqr-pub-stats {
	margin-bottom: 1.5rem;
}

/* Site header (ticker + utility + brand + nav) */
.saqr-pub-header {
	background: var(--saqr-pub-navy, #1a2b4a);
}

.saqr-pub-desktop-only {
	display: none;
}

/* News ticker */
.saqr-pub-ticker {
	background: var(--saqr-pub-navy, #1a2b4a);
	color: #fff;
	font-size: 0.8125rem;
	overflow: hidden;
}

.saqr-pub-ticker__inner {
	display: flex;
	align-items: center;
	gap: 1rem;
	max-width: var(--saqr-pub-content-max, 1400px);
	margin: 0 auto;
	padding: 0.45rem 1.25rem;
}

.saqr-pub-ticker__label {
	flex-shrink: 0;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.75rem;
	padding-right: 1rem;
	border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.saqr-pub-ticker__track-wrap {
	flex: 1;
	overflow: hidden;
	min-width: 0;
}

.saqr-pub-ticker__track {
	display: flex;
	width: max-content;
	animation: saqr-ticker-scroll 40s linear infinite;
}

.saqr-pub-ticker__track.is-paused {
	animation-play-state: paused;
}

.saqr-pub-ticker__list {
	display: flex;
	align-items: center;
	gap: 2.5rem;
	list-style: none;
	margin: 0;
	padding: 0 1.25rem 0 0;
	white-space: nowrap;
}

.saqr-pub-ticker__list a {
	color: rgba(255, 255, 255, 0.92);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.saqr-pub-ticker__list a:hover {
	color: #fff;
}

.saqr-pub-ticker__list time {
	opacity: 0.75;
	font-size: 0.75rem;
}

@keyframes saqr-ticker-scroll {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

/* Utility bar */
.saqr-pub-utility {
	background: var(--saqr-pub-navy-dark, #0f1a2e);
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.8125rem;
}

.saqr-pub-utility__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	max-width: var(--saqr-pub-content-max, 1400px);
	margin: 0 auto;
	padding: 0.4rem 1.25rem;
}

.saqr-pub-utility__email {
	color: inherit;
	text-decoration: none;
}

.saqr-pub-utility__email:hover {
	color: #fff;
}

.saqr-pub-utility__social {
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

.saqr-pub-utility__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	color: #fff;
	background: rgba(255, 255, 255, 0.12);
	text-decoration: none;
	transition: background 0.15s ease;
}

.saqr-pub-utility__social-link:hover {
	background: rgba(255, 255, 255, 0.22);
	color: #fff;
}

/* Nav */
.saqr-pub-nav {
	color: #fff;
	padding: 0 max(1rem, env(safe-area-inset-left, 0px)) 0 max(1rem, env(safe-area-inset-right, 0px));
}

.saqr-pub-nav__inner {
	max-width: var(--saqr-pub-content-max, 1400px);
	margin: 0 auto;
}

.saqr-pub-nav__actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-shrink: 0;
}

.saqr-pub-nav__phone {
	color: inherit;
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 600;
	white-space: nowrap;
}

.saqr-pub-nav__phone:hover {
	color: var(--saqr-primary, #1e88e5);
}

.saqr-pub-nav__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.65rem 0;
}

.saqr-pub-nav__brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	font-size: 1.0625rem;
	min-width: 0;
	flex: 1;
}

.saqr-pub-nav__brand-text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.saqr-pub-nav__mark {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--saqr-primary, #1e88e5) 0%, var(--saqr-pub-navy, #1a2b4a) 100%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 1.0625rem;
	line-height: 1;
	color: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.saqr-pub-nav__logo {
	height: 40px;
	width: auto;
	flex-shrink: 0;
}

.saqr-pub-nav__cta {
	display: none;
	flex-shrink: 0;
	padding: 0.5rem 1rem !important;
	font-size: 0.8125rem !important;
	border-radius: 999px !important;
}

.saqr-pub-nav__toggle {
	display: none;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #fff;
	padding: 0.5rem 0.65rem;
	border-radius: 8px;
	cursor: pointer;
	line-height: 0;
	flex-shrink: 0;
}

.saqr-pub-nav__toggle-bars {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	width: 20px;
	height: 16px;
}

.saqr-pub-nav__toggle-bars span {
	display: block;
	height: 2px;
	background: #fff;
	border-radius: 1px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.saqr-pub-nav__toggle[aria-expanded="true"] .saqr-pub-nav__toggle-bars span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.saqr-pub-nav__toggle[aria-expanded="true"] .saqr-pub-nav__toggle-bars span:nth-child(2) {
	opacity: 0;
}

.saqr-pub-nav__toggle[aria-expanded="true"] .saqr-pub-nav__toggle-bars span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

.saqr-pub-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.15rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.saqr-pub-nav__list a {
	color: rgba(255, 255, 255, 0.92);
	text-decoration: none;
	font-size: 0.9375rem;
	font-weight: 500;
	display: inline-block;
	padding: 0.45rem 0.75rem;
	border-radius: 6px;
	transition: background 0.15s ease, color 0.15s ease;
}

.saqr-pub-nav__list a:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
}

.saqr-pub-nav__list a.is-active {
	color: #fff;
	font-weight: 700;
	background: var(--saqr-pub-accent, #c62828);
}

.saqr-pub-nav__has-sub.is-active > .saqr-pub-nav__sub-toggle,
.saqr-pub-nav__sub-toggle.is-active {
	color: #fff;
	font-weight: 700;
	background: rgba(255, 255, 255, 0.12);
}

.saqr-pub-nav__sub a.is-active {
	color: #fff;
	font-weight: 700;
	background: var(--saqr-pub-accent, #c62828);
}

.saqr-pub-nav__has-sub {
	position: relative;
}

.saqr-pub-nav__sub-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	background: transparent;
	border: none;
	color: rgba(255, 255, 255, 0.92);
	cursor: pointer;
	font-size: 0.9375rem;
	font-weight: 500;
	padding: 0.45rem 0.75rem;
	border-radius: 6px;
	transition: background 0.15s ease;
	font-family: inherit;
}

.saqr-pub-nav__chevron {
	transition: transform 0.2s ease;
}

.saqr-pub-nav__has-sub.is-open .saqr-pub-nav__chevron,
.saqr-pub-nav__has-sub:hover .saqr-pub-nav__chevron {
	transform: rotate(180deg);
}

.saqr-pub-nav__sub-toggle:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.saqr-pub-nav__sub {
	display: none;
	position: absolute;
	top: calc(100% + 0.35rem);
	left: 0;
	background: #fff;
	min-width: 220px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
	border-radius: 12px;
	padding: 0.4rem;
	list-style: none;
	z-index: 100;
	border: 1px solid var(--saqr-border, #e0e4e8);
}

.saqr-pub-nav__sub a {
	color: var(--saqr-pub-text, #1a2332);
	display: block;
	padding: 0.6rem 0.9rem;
	border-radius: 8px;
	font-size: 0.875rem;
}

.saqr-pub-nav__sub a:hover {
	background: var(--saqr-pub-warm, #f0f2f5);
	color: var(--saqr-pub-text, #1a2332);
}

.saqr-pub-nav__sub a.is-active {
	color: #fff;
}

.saqr-pub-nav__has-sub:hover .saqr-pub-nav__sub,
.saqr-pub-nav__has-sub.is-open .saqr-pub-nav__sub {
	display: block;
}

/* Desktop: modern white header with centered nav strip */
@media (min-width: 769px) {
	.saqr-pub-desktop-only {
		display: block;
	}

	.saqr-pub-header {
		background: #fff;
	}

	.saqr-pub-nav {
		color: var(--saqr-pub-text, #1a2332);
		background: #fff;
		padding: 0;
		border-top: none;
		width: 100%;
	}

	.saqr-pub-nav__inner {
		max-width: none;
		padding: 0;
	}

	.saqr-pub-nav__bar {
		padding: 0.875rem 1.25rem;
		border-bottom: 1px solid var(--saqr-border, #e0e4e8);
		max-width: var(--saqr-pub-content-max, 1400px);
		margin: 0 auto;
	}

	.saqr-pub-nav__brand {
		flex: 0 1 auto;
		color: var(--saqr-pub-navy, #1a2b4a);
		font-size: 1.125rem;
	}

	.saqr-pub-nav__logo {
		height: 44px;
	}

	.saqr-pub-nav__mark {
		width: 44px;
		height: 44px;
		font-size: 1.125rem;
	}

	.saqr-pub-nav__cta {
		display: inline-block;
	}

	.saqr-pub-nav__toggle {
		display: none;
	}

	.saqr-pub-nav__menu {
		display: block !important;
		width: 100%;
		padding: 0;
		border-top: 1px solid var(--saqr-border, #e0e4e8);
		background: #fff;
	}

	.saqr-pub-nav__list {
		display: flex;
		flex-wrap: wrap;
		align-items: stretch;
		justify-content: center;
		gap: 0;
		max-width: none;
		width: 100%;
		padding: 0 0.5rem;
	}

	.saqr-pub-nav__list > li {
		display: flex;
		align-items: stretch;
	}

	.saqr-pub-nav__list a,
	.saqr-pub-nav__sub-toggle {
		display: flex;
		align-items: center;
		padding: 0.875rem 0.85rem;
		font-size: 0.8125rem;
		font-weight: 600;
		letter-spacing: 0.01em;
		color: var(--saqr-pub-text, #1a2332);
		background: transparent;
		border-radius: 0;
		white-space: nowrap;
		position: relative;
		transition: color 0.15s ease;
	}

	.saqr-pub-nav__list a:hover,
	.saqr-pub-nav__sub-toggle:hover {
		background: transparent;
		color: var(--saqr-primary, #1e88e5);
	}

	.saqr-pub-nav__list a.is-active,
	.saqr-pub-nav__has-sub.is-active > .saqr-pub-nav__sub-toggle {
		background: transparent;
		color: var(--saqr-pub-accent, #c62828);
		font-weight: 700;
	}

	.saqr-pub-nav__list a.is-active::after,
	.saqr-pub-nav__has-sub.is-active > .saqr-pub-nav__sub-toggle::after {
		content: '';
		position: absolute;
		left: 0.85rem;
		right: 0.85rem;
		top: 0;
		bottom: auto;
		height: 3px;
		background: var(--saqr-pub-accent, #c62828);
		border-radius: 0 0 3px 3px;
	}

	.saqr-pub-nav__has-sub:hover > .saqr-pub-nav__sub-toggle::after {
		content: '';
		position: absolute;
		left: 0.85rem;
		right: 0.85rem;
		top: 0;
		bottom: auto;
		height: 3px;
		background: var(--saqr-primary, #1e88e5);
		border-radius: 0 0 3px 3px;
		opacity: 0.5;
	}

	.saqr-pub-nav__has-sub.is-active:hover > .saqr-pub-nav__sub-toggle::after {
		background: var(--saqr-pub-accent, #c62828);
		opacity: 1;
	}

	.saqr-pub-nav__phone {
		color: var(--saqr-pub-text, #1a2332);
	}

	.saqr-pub-nav__sub {
		top: calc(100% + 0.15rem);
		left: 50%;
		transform: translateX(-50%);
	}

	.saqr-pub-nav__sub a.is-active {
		background: var(--saqr-pub-accent, #c62828);
	}
}

@media (min-width: 992px) {
	.saqr-pub-nav__bar {
		padding: 1rem 0;
	}

	.saqr-pub-nav__brand {
		font-size: 1.25rem;
	}

	.saqr-pub-nav__logo {
		height: 48px;
	}

	.saqr-pub-nav__mark {
		width: 48px;
		height: 48px;
		font-size: 1.25rem;
	}

	.saqr-pub-nav__list a,
	.saqr-pub-nav__sub-toggle {
		font-size: 0.875rem;
		padding: 1rem 1rem;
	}
}

@media (max-width: 768px) {
	.saqr-pub-nav__cta {
		display: none !important;
	}

	.saqr-pub-nav__toggle {
		display: block;
	}

	.saqr-pub-nav__menu {
		display: none;
		width: 100%;
		border-top: 1px solid rgba(255, 255, 255, 0.12);
		margin-top: 0;
		padding-top: 0.5rem;
		padding-bottom: 0.75rem;
	}

	.saqr-pub-nav__menu.is-open {
		display: block;
	}

	.saqr-pub-nav__list {
		flex-direction: column;
		gap: 0.15rem;
	}

	.saqr-pub-nav__list a,
	.saqr-pub-nav__sub-toggle {
		display: block;
		width: 100%;
		text-align: left;
		padding: 0.65rem 0.85rem;
		border-radius: 6px;
	}

	.saqr-pub-nav__list a.is-active::before,
	.saqr-pub-nav__has-sub.is-active > .saqr-pub-nav__sub-toggle::before,
	.saqr-pub-nav__has-sub:hover > .saqr-pub-nav__sub-toggle::before {
		display: none;
	}

	.saqr-pub-nav__sub {
		position: static;
		transform: none;
		box-shadow: none;
		background: rgba(0, 0, 0, 0.2);
		border: none;
		padding: 0.35rem 0 0.35rem 0.75rem;
		margin-top: 0.25rem;
		border-radius: 8px;
	}

	.saqr-pub-nav__sub a {
		color: rgba(255, 255, 255, 0.92);
	}

	.saqr-pub-nav__sub a:hover {
		background: rgba(255, 255, 255, 0.1);
		color: #fff;
	}
}

.saqr-public-wrap {
	font-family: var(--saqr-font-family, system-ui, -apple-system, sans-serif);
	color: var(--saqr-pub-text, #1a2332);
	line-height: 1.6;
	max-width: var(--saqr-pub-content-max, 1400px);
	margin: 0 auto;
	padding: 0 1rem 2rem;
}

body.saqr-public-shell-active .saqr-public-wrap > *:not(.saqr-pub-hero):not(.saqr-pub-hero-slider) {
	padding-left: 1rem;
	padding-right: 1rem;
}

/* Hero */
.saqr-pub-hero {
	background: linear-gradient(135deg, var(--saqr-pub-navy) 0%, var(--saqr-primary) 100%);
	background-size: cover;
	background-position: center;
	color: #fff;
	border-radius: var(--saqr-radius);
	padding: 3rem 2rem;
	min-height: var(--saqr-pub-hero-min-height, 320px);
	display: flex;
	align-items: center;
	margin-bottom: 2rem;
	position: relative;
	overflow: hidden;
}

.saqr-pub-hero--pattern {
	background-image:
		linear-gradient(135deg, rgba(26, 43, 74, 0.92) 0%, rgba(30, 136, 229, 0.85) 100%),
		repeating-linear-gradient(
			-45deg,
			transparent,
			transparent 12px,
			rgba(255, 255, 255, 0.04) 12px,
			rgba(255, 255, 255, 0.04) 24px
		);
}

@media (min-width: 769px) {
	.saqr-pub-hero {
		min-height: 420px;
		padding: 4rem 2.5rem;
	}

	.saqr-pub-hero h1 {
		font-size: 2.75rem;
	}
}

/* Hero slider */
.saqr-pub-hero-slider {
	position: relative;
	min-height: var(--saqr-pub-hero-min-height, 320px);
	margin-bottom: 2rem;
	overflow: hidden;
	background: var(--saqr-pub-navy, #1a2b4a);
}

@media (min-width: 769px) {
	.saqr-pub-hero-slider {
		min-height: 420px;
	}
}

.saqr-pub-hero-slider__viewport {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: inherit;
}

.saqr-pub-hero-slider__slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 0.6s ease;
}

.saqr-pub-hero-slider__slide.is-active {
	opacity: 1;
	z-index: 1;
}

.saqr-pub-hero-slider__slide::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
}

.saqr-pub-hero-slider__overlay {
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 2;
	max-width: 520px;
	margin: 2rem;
	padding: 1.5rem 1.75rem;
	background: linear-gradient(135deg, rgba(107, 16, 41, 0.92) 0%, rgba(26, 43, 74, 0.88) 100%);
	color: #fff;
	clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
}

.saqr-pub-hero-slider__overlay h1 {
	margin: 0 0 0.5rem;
	font-size: 1.75rem;
	color: #fff;
}

.saqr-pub-hero-slider__overlay p {
	margin: 0 0 1rem;
	font-size: 0.9375rem;
	opacity: 0.92;
}

@media (min-width: 769px) {
	.saqr-pub-hero-slider__overlay {
		margin: 3rem 4rem;
		padding: 2rem 2.5rem;
	}

	.saqr-pub-hero-slider__overlay h1 {
		font-size: 2.25rem;
	}
}

.saqr-pub-hero-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--saqr-pub-navy, #1a2b4a);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
	transition: background 0.15s ease, transform 0.15s ease;
}

.saqr-pub-hero-slider__arrow:hover {
	background: #fff;
	transform: translateY(-50%) scale(1.05);
}

.saqr-pub-hero-slider__arrow--prev {
	left: 1rem;
}

.saqr-pub-hero-slider__arrow--next {
	right: 1rem;
}

.saqr-pub-hero-slider__dots {
	position: absolute;
	bottom: 1rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
	display: flex;
	gap: 0.5rem;
}

.saqr-pub-hero-slider__dot {
	width: 10px;
	height: 10px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.45);
	cursor: pointer;
	padding: 0;
	transition: background 0.15s ease, transform 0.15s ease;
}

.saqr-pub-hero-slider__dot.is-active {
	background: #fff;
	transform: scale(1.15);
}

.saqr-pub-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.35);
}

.saqr-pub-hero__content {
	position: relative;
	max-width: 600px;
}

.saqr-pub-hero h1 {
	margin: 0 0 0.5rem;
	font-size: 2rem;
	color: #fff;
}

.saqr-pub-hero__cta {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-top: 1.5rem;
}

/* Stats */
.saqr-pub-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 0;
	margin-bottom: 2rem;
	background: var(--saqr-pub-stats-bg, #1a2b4a);
	border-radius: var(--saqr-radius);
	overflow: hidden;
	box-shadow: var(--saqr-shadow);
}

.saqr-pub-stat {
	background: transparent;
	border: none;
	border-right: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 0;
	padding: 1.5rem 1.25rem;
	text-align: center;
	box-shadow: none;
}

.saqr-pub-stat:last-child {
	border-right: none;
}

.saqr-pub-stat strong {
	display: block;
	font-size: 2rem;
	color: #fff;
}

.saqr-pub-stat span {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.75);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* Cards */
.saqr-pub-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.25rem;
	margin-bottom: 2rem;
}

.saqr-pub-card {
	background: var(--saqr-card-bg);
	border: 1px solid var(--saqr-border);
	border-radius: var(--saqr-radius);
	padding: 1.25rem;
	box-shadow: var(--saqr-shadow);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.saqr-pub-card--feature {
	border-top: 4px solid var(--saqr-primary);
	overflow: hidden;
}

.saqr-pub-card--feature:nth-child(2) {
	border-top-color: var(--saqr-pub-accent);
}

.saqr-pub-card--feature:nth-child(3) {
	border-top-color: #2e7d32;
}

.saqr-pub-card--feature:hover,
.saqr-pub-card--teaser:hover,
.saqr-pub-card--news:hover,
.saqr-pub-card--event:hover {
	transform: translateY(var(--saqr-pub-card-hover-lift, -4px));
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.saqr-pub-card__icon {
	color: var(--saqr-primary);
	margin-bottom: 0.75rem;
}

.saqr-pub-card__date {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--saqr-pub-accent);
	background: rgba(198, 40, 40, 0.08);
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	margin: 0 0 0.5rem;
}

.saqr-pub-card__link {
	display: inline-block;
	margin-top: 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--saqr-primary);
	text-decoration: none;
}

.saqr-pub-card__link:hover {
	color: var(--saqr-primary-dark);
}

.saqr-pub-card__avatar {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 0.75rem;
	display: block;
}

.saqr-pub-card h3 {
	margin: 0 0 0.5rem;
	font-size: 1.125rem;
}

.saqr-pub-card__img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 0.75rem;
}

.saqr-pub-card__meta {
	font-size: 0.875rem;
	color: var(--saqr-text-muted);
	margin: 0 0 0.5rem;
}

.saqr-pub-card.is-past {
	opacity: 0.7;
}

/* Buttons */
.saqr-pub-btn {
	display: inline-block;
	padding: 0.6rem 1.25rem;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	font-size: 0.9375rem;
}

.saqr-pub-btn--primary {
	background: var(--saqr-pub-accent, #c62828);
	color: #fff;
	border-color: var(--saqr-pub-accent, #c62828);
}

.saqr-pub-btn--outline {
	background: transparent;
	color: #fff;
	border-color: #fff;
}

/* Forms */
.saqr-pub-field {
	margin-bottom: 1rem;
}

.saqr-pub-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.saqr-pub-field input,
.saqr-pub-field textarea {
	width: 100%;
	max-width: 480px;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--saqr-border);
	border-radius: 8px;
}

/* Exam */
.saqr-pub-exam-result {
	margin-top: 1.5rem;
}

.saqr-exam-card {
	background: var(--saqr-card-bg);
	border-radius: var(--saqr-radius);
	border: 1px solid var(--saqr-border);
	box-shadow: var(--saqr-shadow);
	overflow: hidden;
}

.saqr-exam-card__header {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.25rem 1.5rem;
	background: linear-gradient(135deg, var(--saqr-pub-navy) 0%, var(--saqr-pub-navy-dark) 100%);
	color: #fff;
}

.saqr-exam-card__photo {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid rgba(255, 255, 255, 0.35);
	flex-shrink: 0;
}

.saqr-exam-card__identity {
	min-width: 0;
}

.saqr-exam-card__name {
	margin: 0 0 0.25rem;
	font-size: 1.25rem;
	font-weight: 700;
	color: #fff;
}

.saqr-exam-card__class,
.saqr-exam-card__reg {
	margin: 0;
	font-size: 0.9rem;
	opacity: 0.9;
}

.saqr-exam-card__exam {
	padding: 1.25rem 1.5rem 1.5rem;
	border-top: 1px solid var(--saqr-border);
}

.saqr-exam-card__exam:first-of-type {
	border-top: none;
}

.saqr-exam-card__exam-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	margin-bottom: 1rem;
}

.saqr-exam-card__exam-title {
	margin: 0;
	font-size: 1.05rem;
	color: var(--saqr-pub-text);
}

.saqr-exam-card__year-badge {
	display: inline-block;
	padding: 0.2rem 0.65rem;
	font-size: 0.75rem;
	font-weight: 600;
	border-radius: 999px;
	background: var(--saqr-pub-warm);
	color: var(--saqr-pub-maroon);
	border: 1px solid rgba(107, 16, 41, 0.15);
}

.saqr-exam-card__table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1rem;
}

.saqr-exam-card__table th,
.saqr-exam-card__table td {
	padding: 0.55rem 0.75rem;
	border-bottom: 1px solid var(--saqr-border);
	text-align: left;
}

.saqr-exam-card__table th {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--saqr-text-muted);
	background: var(--saqr-pub-warm);
}

.saqr-exam-card__table td:nth-child(2),
.saqr-exam-card__table td:nth-child(3) {
	font-weight: 600;
}

.saqr-exam-card__summary {
	padding: 1rem 1.1rem;
	background: var(--saqr-pub-warm);
	border-radius: 10px;
	border: 1px solid var(--saqr-border);
}

.saqr-exam-card__marks-line {
	margin-bottom: 0.75rem;
	font-size: 1rem;
}

.saqr-exam-card__obtained-label {
	color: var(--saqr-text-muted);
}

.saqr-exam-card__obtained-value {
	font-size: 1.35rem;
	color: var(--saqr-pub-navy);
}

.saqr-exam-card__max-value {
	font-size: 1.1rem;
	color: var(--saqr-text-muted);
}

.saqr-exam-card__progress {
	height: 8px;
	background: rgba(26, 43, 74, 0.12);
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 0.5rem;
}

.saqr-exam-card__progress-bar {
	height: 100%;
	background: linear-gradient(90deg, var(--saqr-pub-maroon) 0%, var(--saqr-pub-accent) 100%);
	border-radius: 999px;
	transition: width 0.4s ease;
}

.saqr-exam-card__percentage {
	margin: 0 0 0.5rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--saqr-pub-maroon);
}

.saqr-exam-card__grade {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0.75rem 0 0;
	padding-top: 0.75rem;
	border-top: 1px dashed var(--saqr-border);
	font-size: 0.95rem;
}

.saqr-exam-card__grade span {
	color: var(--saqr-text-muted);
}

.saqr-exam-card__grade strong {
	font-size: 1.15rem;
	color: var(--saqr-pub-navy);
}

/* Gallery */
.saqr-pub-gallery__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 0.75rem;
	margin-bottom: 2rem;
}

.saqr-pub-gallery__item img {
	width: 100%;
	height: 140px;
	object-fit: cover;
	border-radius: 8px;
}

/* Calendar */
.saqr-pub-calendar__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1rem;
	margin-bottom: 2rem;
}

.saqr-pub-calendar__month {
	background: var(--saqr-card-bg);
	border: 1px solid var(--saqr-border);
	border-radius: 8px;
	padding: 1rem;
}

.saqr-pub-calendar__month ul {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.875rem;
}

.saqr-pub-calendar__month li.is-holiday {
	color: var(--saqr-pub-accent);
}

/* Teasers */
.saqr-pub-teasers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
	margin-bottom: 2rem;
}

.saqr-pub-teaser h2 {
	margin-bottom: 1rem;
}

.saqr-pub-teaser__cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 600px) {
	.saqr-pub-teaser__cards {
		grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	}
}

/* Staff highlight */
.saqr-pub-staff {
	margin-bottom: 2rem;
}

.saqr-pub-staff__inner {
	max-width: var(--saqr-pub-content-max, 1400px);
	margin: 0 auto;
	padding: 0 1rem;
}

.saqr-pub-staff h2 {
	margin-bottom: 1rem;
}

.saqr-pub-staff__grid {
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.saqr-pub-card--staff {
	text-align: center;
}

/* Footer */
.saqr-pub-footer {
	background: var(--saqr-pub-navy, #1a2b4a);
	color: rgba(255, 255, 255, 0.85);
	margin-top: auto;
	padding: 2rem 1.25rem;
	width: 100%;
}

.saqr-pub-footer__inner {
	max-width: var(--saqr-pub-content-max, 1400px);
	margin: 0 auto;
	text-align: center;
	width: 100%;
}

.saqr-pub-footer__brand strong {
	display: block;
	font-size: 1.125rem;
	color: #fff;
	margin-bottom: 0.5rem;
}

.saqr-pub-footer__address,
.saqr-pub-footer__contact,
.saqr-pub-footer__copy {
	font-size: 0.875rem;
	margin: 0.35rem 0;
}

.saqr-pub-footer a {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
}

.saqr-pub-footer a:hover {
	color: #fff;
	text-decoration: underline;
}

.saqr-pub-footer__social {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 1rem 0;
}

.saqr-pub-footer__social a {
	font-size: 0.8125rem;
	font-weight: 600;
}

.saqr-pub-footer__sep {
	margin: 0 0.5rem;
	opacity: 0.5;
}

/* Demo badge */
.saqr-pub-demo-badge {
	display: inline-block;
	vertical-align: middle;
	background: rgba(198, 40, 40, 0.12);
	color: var(--saqr-pub-accent);
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.15rem 0.5rem;
	border-radius: 4px;
	margin-left: 0.5rem;
}

.saqr-pub-notice {
	padding: 0.75rem 1rem;
	border-radius: 8px;
}

.saqr-pub-notice--success {
	background: #e8f5e9;
	color: #2e7d32;
}

.saqr-pub-notice--error {
	background: #ffebee;
	color: #c62828;
}

.saqr-pub-badge {
	display: inline-block;
	background: var(--saqr-pub-accent);
	color: #fff;
	font-size: 0.75rem;
	padding: 0.15rem 0.5rem;
	border-radius: 4px;
	margin-left: 0.5rem;
}

.saqr-pub-date-pill {
	display: inline-block;
	background: var(--saqr-pub-warm, #f8f5f0);
	color: var(--saqr-text-muted);
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	margin-bottom: 0.5rem;
	font-style: normal;
}

.saqr-pub-link {
	color: var(--saqr-primary);
	font-weight: 600;
	font-size: 0.875rem;
	text-decoration: none;
}

.saqr-pub-link:hover {
	text-decoration: underline;
}

.saqr-pub-teaser__list {
	list-style: none;
	padding: 0;
	margin: 0 0 1rem;
}

.saqr-pub-teaser__list li {
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--saqr-border);
}

/* Gallery lightbox */
.saqr-pub-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10000;
	background: rgba(0, 0, 0, 0.88);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.saqr-pub-lightbox__img {
	max-width: min(92vw, 1200px);
	max-height: 85vh;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.saqr-pub-lightbox__close,
.saqr-pub-lightbox__nav {
	position: absolute;
	border: none;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	cursor: pointer;
	border-radius: 50%;
	width: 44px;
	height: 44px;
	font-size: 1.5rem;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}

.saqr-pub-lightbox__close:hover,
.saqr-pub-lightbox__nav:hover {
	background: rgba(255, 255, 255, 0.28);
}

.saqr-pub-lightbox__close {
	top: 1rem;
	right: 1rem;
	font-size: 2rem;
}

.saqr-pub-lightbox__nav--prev {
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
}

.saqr-pub-lightbox__nav--next {
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
}

.saqr-pub-lightbox__counter {
	position: absolute;
	bottom: 1rem;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.875rem;
}

.saqr-pub-lightbox__nav[disabled] {
	opacity: 0.35;
	cursor: default;
}

