/*!
 * St. Joseph's School theme – site chrome: header, menus, footer, blog, search, 404.
 * Colours and fonts come from Appearance → Customize (CSS variables below).
 */

:root {
	--sjbs-c-primary: #2F6BFF;
	--sjbs-c-navy: #0B1630;
	--sjbs-c-accent: #FFC23D;
	--sjbs-c-bg: #EEF3FF;
	--sjbs-c-footer: #0B1A44;
	--sjbs-f-head: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
	--sjbs-f-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--sjbs-gap: 14px;
	--sjbs-shell: 1240px;
}

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--sjbs-c-bg);
	font-family: var(--sjbs-f-body);
	font-size: 16px;
	line-height: 1.7;
	color: #4A5672;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--sjbs-c-primary);
}

a:hover {
	color: var(--sjbs-c-navy);
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .5em;
	font-family: var(--sjbs-f-head);
	font-weight: 400;
	line-height: 1.05;
	color: var(--sjbs-c-navy);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: 10px;
	left: 10px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 12px 20px;
	clip: auto;
	border-radius: 999px;
	background: #FFFFFF;
	color: var(--sjbs-c-navy);
	font-weight: 700;
}

:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--sjbs-c-primary) 60%, transparent);
	outline-offset: 2px;
}

.sjbs-container {
	width: 100%;
	max-width: var(--sjbs-shell);
	margin: 0 auto;
	padding: 0 28px;
}

.sjbs-main {
	display: block;
	min-height: 40vh;
}

/* ---------------------------------------------------------------- Header */
.sjbs-header {
	position: relative;
	z-index: 900;
	padding: calc(var(--sjbs-gap) + 14px) calc(var(--sjbs-gap) + 22px) 14px;
	transition: padding .35s ease;
}

.sjbs-header-overlay.sjbs-designed-page .sjbs-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
}

.admin-bar.sjbs-header-overlay.sjbs-designed-page .sjbs-header {
	top: 32px;
}

.sjbs-header__bar {
	display: flex;
	align-items: center;
	gap: 18px;
	max-width: 1340px;
	margin: 0 auto;
	padding: 8px 8px 8px 12px;
	border: 1px solid rgba(255, 255, 255, .85);
	border-radius: 999px;
	background: rgba(255, 255, 255, .55);
	-webkit-backdrop-filter: blur(16px) saturate(1.4);
	backdrop-filter: blur(16px) saturate(1.4);
	box-shadow: 0 14px 34px -22px rgba(23, 52, 140, .55);
	transition: background-color .35s ease, box-shadow .35s ease, transform .35s ease;
}

.sjbs-header-solid .sjbs-header__bar,
body:not(.sjbs-designed-page) .sjbs-header__bar {
	background: #FFFFFF;
}

/* Sticky: becomes a floating bar after scrolling */
.sjbs-header.is-sticky.is-stuck {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	padding-top: 10px;
	animation: sjbs-drop .45s cubic-bezier(.2, .8, .2, 1);
}

.admin-bar .sjbs-header.is-sticky.is-stuck {
	top: 32px;
}

.sjbs-header.is-stuck .sjbs-header__bar {
	background: rgba(255, 255, 255, .88);
	box-shadow: 0 18px 40px -20px rgba(23, 52, 140, .5);
}

.sjbs-header.is-hidden .sjbs-header__bar {
	transform: translateY(-140%);
}

@keyframes sjbs-drop {
	from { transform: translateY(-100%); }
	to   { transform: none; }
}

/* Logo */
.sjbs-header__logo {
	flex: 0 0 auto;
	min-width: 0;
}

.sjbs-header__logo .custom-logo-link img,
.sjbs-header__logo img.custom-logo {
	display: block;
	width: auto;
	max-height: 52px;
}

.sjbs-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--sjbs-c-navy);
}

.sjbs-brand__mark {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: conic-gradient(from 210deg, var(--sjbs-c-primary), #7FA4FF, var(--sjbs-c-accent), var(--sjbs-c-primary));
	font-family: var(--sjbs-f-head);
	font-size: 22px;
	letter-spacing: .02em;
	color: #FFFFFF;
	box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .7);
	transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
}

.sjbs-brand:hover .sjbs-brand__mark {
	transform: rotate(-12deg) scale(1.06);
}

.sjbs-brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.05;
}

.sjbs-brand__text strong {
	font-family: var(--sjbs-f-head);
	font-size: 23px;
	font-weight: 400;
	letter-spacing: .02em;
	white-space: nowrap;
}

.sjbs-brand__text em {
	font-size: 11.5px;
	font-style: normal;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--sjbs-c-primary);
	white-space: nowrap;
}

/* Main menu – a pill inside the pill */
.sjbs-nav {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
	min-width: 0;
}

.sjbs-nav__list,
.sjbs-nav__list ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sjbs-nav__list {
	display: flex;
	align-items: center;
	gap: 2px;
	padding: 5px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .7);
}

.sjbs-nav__list > li {
	position: relative;
}

.sjbs-nav__list a {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	border-radius: 999px;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--sjbs-c-navy);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .25s ease, color .25s ease;
}

.sjbs-nav__list > li > a:hover,
.sjbs-nav__list > li:focus-within > a {
	background: rgba(47, 107, 255, .1);
	color: var(--sjbs-c-primary);
}

.sjbs-nav__list > li.current-menu-item > a,
.sjbs-nav__list > li.current-menu-ancestor > a,
.sjbs-nav__list > li.current_page_item > a,
.sjbs-nav__list > li.current_page_ancestor > a {
	background: var(--sjbs-c-navy);
	color: #FFFFFF;
}

.sjbs-nav__list .menu-item-has-children > a::after,
.sjbs-nav__list .page_item_has_children > a::after {
	content: "";
	width: 7px;
	height: 7px;
	margin: -3px 0 0 2px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform .3s ease;
}

.sjbs-nav__list li:hover > a::after,
.sjbs-nav__list li:focus-within > a::after {
	transform: rotate(225deg) translate(-2px, -2px);
}

/* Drop-downs */
.sjbs-nav__list .sub-menu,
.sjbs-nav__list .children {
	position: absolute;
	top: calc(100% + 14px);
	left: 50%;
	z-index: 20;
	min-width: 230px;
	padding: 8px;
	border: 1px solid rgba(47, 107, 255, .12);
	border-radius: 20px;
	background: #FFFFFF;
	box-shadow: 0 24px 50px -22px rgba(23, 52, 140, .5);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 10px) rotateX(-18deg);
	transform-origin: 50% 0;
	transition: opacity .25s ease, transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .35s;
}

.sjbs-nav__list .sub-menu::before,
.sjbs-nav__list .children::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -16px;
	height: 16px;
}

.sjbs-nav__list li:hover > .sub-menu,
.sjbs-nav__list li:focus-within > .sub-menu,
.sjbs-nav__list li.is-open > .sub-menu,
.sjbs-nav__list li:hover > .children,
.sjbs-nav__list li:focus-within > .children {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0) rotateX(0);
	transition-delay: 0s;
}

.sjbs-nav__list .sub-menu a,
.sjbs-nav__list .children a {
	padding: 11px 14px;
	border-radius: 12px;
	font-size: 14.5px;
}

.sjbs-nav__list .sub-menu a::before,
.sjbs-nav__list .children a::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--sjbs-c-accent);
	transition: transform .3s ease;
}

.sjbs-nav__list .sub-menu a:hover,
.sjbs-nav__list .sub-menu .current-menu-item > a,
.sjbs-nav__list .children a:hover {
	background: var(--sjbs-c-bg);
	color: var(--sjbs-c-primary);
}

.sjbs-nav__list .sub-menu a:hover::before {
	transform: scale(1.5);
}

.sjbs-nav__list .sub-menu .sub-menu {
	top: -8px;
	left: 100%;
	transform: translate(10px, 0);
}

/* Header end: CTA + burger */
.sjbs-header__end {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
}

.sjbs-cta {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 6px 6px 6px 20px;
	border-radius: 999px;
	background: var(--sjbs-c-primary);
	box-shadow: 0 12px 26px -14px rgba(47, 107, 255, .9);
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.2;
	color: #FFFFFF;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .3s ease, transform .3s ease;
}

.sjbs-cta i {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #FFFFFF;
	color: var(--sjbs-c-primary);
	font-size: 16px;
	transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), background-color .3s ease;
}

.sjbs-cta:hover,
.sjbs-cta:focus-visible {
	background: var(--sjbs-c-navy);
	color: #FFFFFF;
	transform: translateY(-1px);
}

.sjbs-cta:hover i {
	transform: rotate(45deg);
	background: var(--sjbs-c-accent);
	color: var(--sjbs-c-navy);
}

.sjbs-cta--mobile {
	display: none;
}

.sjbs-ico {
	display: inline-block;
	flex: 0 0 auto;
	vertical-align: middle;
}

.sjbs-burger {
	display: none;
	place-items: center;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--sjbs-c-navy);
	color: #FFFFFF;
	font-size: 22px;
	cursor: pointer;
}

.sjbs-burger__close {
	display: none;
}

.sjbs-menu-open .sjbs-burger__open {
	display: none;
}

.sjbs-menu-open .sjbs-burger__close {
	display: inline;
}

@media (max-width: 1200px) {
	.sjbs-nav__list a {
		padding: 10px 11px;
		font-size: 14px;
	}

	.sjbs-brand__text em {
		display: none;
	}
}

/* Mobile menu */
@media (max-width: 1080px) {
	.sjbs-header {
		padding: calc(var(--sjbs-gap) + 10px) calc(var(--sjbs-gap) + 10px) 10px;
	}

	.sjbs-burger {
		display: grid;
	}

	.sjbs-header__end .sjbs-cta {
		display: none;
	}

	.sjbs-header__bar {
		justify-content: space-between;
	}

	.sjbs-nav {
		position: fixed;
		inset: 0;
		z-index: -1;
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		gap: 22px;
		padding: 110px 24px 40px;
		overflow-y: auto;
		background:
			radial-gradient(600px 400px at 100% 0%, rgba(47, 107, 255, .25), transparent 70%),
			var(--sjbs-c-bg);
		opacity: 0;
		visibility: hidden;
		clip-path: circle(0 at calc(100% - 50px) 50px);
		transition: clip-path .6s cubic-bezier(.65, 0, .35, 1), opacity .3s ease, visibility 0s linear .6s;
	}

	.sjbs-menu-open .sjbs-nav {
		opacity: 1;
		visibility: visible;
		clip-path: circle(150% at calc(100% - 50px) 50px);
		transition-delay: 0s;
	}

	.sjbs-menu-open {
		overflow: hidden;
	}

	.sjbs-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 6px;
		padding: 0;
		background: transparent;
	}

	.sjbs-nav__list > li {
		opacity: 0;
		transform: translateY(16px);
		transition: opacity .4s ease, transform .4s ease;
	}

	.sjbs-menu-open .sjbs-nav__list > li {
		opacity: 1;
		transform: none;
	}

	.sjbs-menu-open .sjbs-nav__list > li:nth-child(2) { transition-delay: .05s; }
	.sjbs-menu-open .sjbs-nav__list > li:nth-child(3) { transition-delay: .1s; }
	.sjbs-menu-open .sjbs-nav__list > li:nth-child(4) { transition-delay: .15s; }
	.sjbs-menu-open .sjbs-nav__list > li:nth-child(5) { transition-delay: .2s; }
	.sjbs-menu-open .sjbs-nav__list > li:nth-child(6) { transition-delay: .25s; }
	.sjbs-menu-open .sjbs-nav__list > li:nth-child(7) { transition-delay: .3s; }

	.sjbs-nav__list a {
		justify-content: space-between;
		padding: 16px 20px;
		border-radius: 18px;
		background: #FFFFFF;
		font-family: var(--sjbs-f-head);
		font-size: 28px;
		font-weight: 400;
		letter-spacing: .02em;
	}

	.sjbs-nav__list .sub-menu,
	.sjbs-nav__list .children {
		position: static;
		display: none;
		min-width: 0;
		margin: 6px 0 0 14px;
		padding: 4px;
		border: 0;
		box-shadow: none;
		background: transparent;
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: none;
	}

	.sjbs-nav__list li.is-open > .sub-menu,
	.sjbs-nav__list li.is-open > .children {
		display: block;
	}

	.sjbs-nav__list li:hover > .sub-menu,
	.sjbs-nav__list li:focus-within > .sub-menu {
		transform: none;
	}

	.sjbs-nav__list .sub-menu a {
		font-family: var(--sjbs-f-body);
		font-size: 16px;
		font-weight: 700;
		letter-spacing: 0;
		justify-content: flex-start;
	}

	.sjbs-nav__list li.is-open > a::after {
		transform: rotate(225deg) translate(-2px, -2px);
	}

	.sjbs-cta--mobile {
		display: inline-flex;
		align-self: flex-start;
		font-size: 16px;
	}
}

@media (max-width: 480px) {
	.sjbs-brand__mark {
		width: 40px;
		height: 40px;
		font-size: 19px;
	}

	.sjbs-brand__text strong {
		font-size: 19px;
	}
}

/* ---------------------------------------------------------------- Footer */
.sjbs-footer {
	position: relative;
	margin: 60px var(--sjbs-gap) var(--sjbs-gap);
	overflow: hidden;
	border-radius: 36px;
	background:
		radial-gradient(700px 400px at 100% 0%, color-mix(in srgb, var(--sjbs-c-primary) 45%, transparent), transparent 70%),
		radial-gradient(500px 360px at 0% 100%, color-mix(in srgb, var(--sjbs-c-accent) 22%, transparent), transparent 70%),
		var(--sjbs-c-footer);
	color: rgba(255, 255, 255, .78);
}

.sjbs-footer__grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient(90% 90% at 80% 0%, #000, transparent 80%);
	mask-image: radial-gradient(90% 90% at 80% 0%, #000, transparent 80%);
	pointer-events: none;
}

.sjbs-footer__top {
	position: relative;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1.1fr;
	gap: 48px;
	padding-top: 76px;
	padding-bottom: 54px;
}

.sjbs-footer .sjbs-brand {
	color: #FFFFFF;
}

.sjbs-footer .sjbs-brand__text em {
	display: block;
	color: var(--sjbs-c-accent);
}

.sjbs-footer__brand p {
	max-width: 400px;
	margin: 20px 0 0;
	font-size: 15px;
}

.sjbs-footer__title {
	margin: 4px 0 20px;
	font-size: 28px;
	letter-spacing: .02em;
	color: #FFFFFF;
}

.sjbs-footer__links,
.sjbs-footer__contact {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sjbs-footer__links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 18px;
}

.sjbs-footer a {
	color: rgba(255, 255, 255, .82);
	text-decoration: none;
	transition: color .25s ease;
}

.sjbs-footer a:hover {
	color: var(--sjbs-c-accent);
}

.sjbs-footer__links a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}

.sjbs-footer__links a::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--sjbs-c-accent);
	transition: transform .3s ease;
}

.sjbs-footer__links a:hover::before {
	transform: scale(1.6);
}

.sjbs-footer__contact li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 14px;
	font-size: 15px;
}

.sjbs-footer__contact .sjbs-ico {
	display: grid;
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	padding: 10px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .1);
	color: var(--sjbs-c-accent);
}

.sjbs-footer__contact span,
.sjbs-footer__contact a {
	padding-top: 7px;
}

.sjbs-socials {
	display: flex;
	gap: 10px;
	margin-top: 22px;
}

.sjbs-socials a {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .1);
	font-size: 18px;
	transition: background-color .25s ease, color .25s ease, transform .3s ease;
}

.sjbs-socials a:hover {
	background: var(--sjbs-c-accent);
	color: var(--sjbs-c-navy);
	transform: translateY(-3px);
}

.sjbs-footer__bottom {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-top: 22px;
	padding-bottom: 22px;
	border-top: 1px solid rgba(255, 255, 255, .12);
	font-size: 14px;
}

.sjbs-footer__bottom p {
	margin: 0;
}

.sjbs-totop {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--sjbs-c-primary);
	font-size: 20px;
	color: #FFFFFF !important;
	transition: transform .3s ease, background-color .3s ease;
}

.sjbs-totop:hover {
	background: var(--sjbs-c-accent);
	color: var(--sjbs-c-navy) !important;
	transform: translateY(-4px);
}

@media (max-width: 900px) {
	.sjbs-footer__top {
		grid-template-columns: 1fr 1fr;
	}

	.sjbs-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	.sjbs-footer {
		border-radius: 26px;
	}

	.sjbs-footer__top {
		grid-template-columns: 1fr;
		gap: 34px;
		padding-top: 54px;
	}
}

/* ---------------------------------------------------------------- Blog, pages, search, 404 */
.sjbs-pagehead {
	position: relative;
	margin: var(--sjbs-gap) var(--sjbs-gap) 0;
	padding: 150px 0 70px;
	overflow: hidden;
	border-radius: 36px;
	background:
		radial-gradient(600px 360px at 85% 10%, rgba(255, 255, 255, .85), transparent 65%),
		linear-gradient(178deg, #E9F0FF 0%, #B9CEFF 60%, #7EA4FF 100%);
}

.sjbs-pagehead__grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, .6) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .6) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient(100% 90% at 70% 30%, #000, transparent 85%);
	mask-image: radial-gradient(100% 90% at 70% 30%, #000, transparent 85%);
	pointer-events: none;
}

.sjbs-pagehead .sjbs-container {
	position: relative;
}

.sjbs-pagehead__title {
	margin: 0;
	font-size: clamp(48px, 7vw, 92px);
	line-height: .92;
	text-transform: uppercase;
}

.sjbs-pagehead__sub {
	max-width: 620px;
	margin: 14px 0 0;
	font-size: 17px;
	font-weight: 500;
	color: #2C3A5C;
}

body:not(.sjbs-designed-page) .sjbs-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
}

.sjbs-content {
	padding: 70px 0 30px;
}

.sjbs-entry {
	max-width: 820px;
	margin: 0 auto;
	padding: 48px;
	border-radius: 30px;
	background: #FFFFFF;
	box-shadow: 0 24px 50px -34px rgba(23, 52, 140, .45);
}

.sjbs-entry h2,
.sjbs-entry h3 {
	margin-top: 1.4em;
}

.sjbs-entry h2 { font-size: 40px; }
.sjbs-entry h3 { font-size: 30px; }

.sjbs-entry blockquote {
	margin: 1.6em 0;
	padding: 18px 26px;
	border-left: 5px solid var(--sjbs-c-accent);
	border-radius: 0 18px 18px 0;
	background: var(--sjbs-c-bg);
	font-size: 18px;
	color: var(--sjbs-c-navy);
}

.sjbs-entry__thumb {
	margin: -48px -48px 34px;
	overflow: hidden;
	border-radius: 30px 30px 0 0;
}

.sjbs-entry__thumb img {
	display: block;
	width: 100%;
}

.sjbs-entry__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 18px;
	font-size: 14px;
	font-weight: 700;
	color: var(--sjbs-c-primary);
}

.sjbs-entry__meta span {
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--sjbs-c-bg);
}

.sjbs-posts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 28px;
}

.sjbs-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 28px;
	background: #FFFFFF;
	box-shadow: 0 20px 40px -30px rgba(23, 52, 140, .5);
	transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s ease;
}

.sjbs-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 30px 50px -30px rgba(23, 52, 140, .6);
}

.sjbs-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: linear-gradient(135deg, #DCE6FF, #B9CEFF);
}

.sjbs-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .7s ease;
}

.sjbs-card:hover .sjbs-card__media img {
	transform: scale(1.06);
}

.sjbs-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 24px 26px 28px;
}

.sjbs-card__meta {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--sjbs-c-primary);
}

.sjbs-card__title {
	margin: 8px 0 10px;
	font-size: 30px;
	line-height: 1;
}

.sjbs-card__title a {
	color: var(--sjbs-c-navy);
	text-decoration: none;
}

.sjbs-card__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	font-weight: 700;
	text-decoration: none;
}

.sjbs-pagination,
.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 46px 0 10px;
}

.page-numbers {
	display: grid;
	place-items: center;
	min-width: 46px;
	height: 46px;
	padding: 0 14px;
	border-radius: 999px;
	background: #FFFFFF;
	font-weight: 700;
	color: var(--sjbs-c-navy);
	text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover {
	background: var(--sjbs-c-primary);
	color: #FFFFFF;
}

.sjbs-search {
	display: flex;
	gap: 6px;
	max-width: 520px;
	padding: 6px;
	border-radius: 999px;
	background: #FFFFFF;
	box-shadow: 0 14px 30px -22px rgba(23, 52, 140, .5);
}

.sjbs-search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0 18px;
	border: 0;
	background: transparent;
	font: inherit;
	color: var(--sjbs-c-navy);
	outline: 0;
}

.sjbs-search button,
.sjbs-entry .wp-block-button__link,
.comment-form input[type="submit"] {
	padding: 13px 24px;
	border: 0;
	border-radius: 999px;
	background: var(--sjbs-c-primary);
	font: 700 15px/1.2 var(--sjbs-f-body);
	color: #FFFFFF;
	cursor: pointer;
}

.sjbs-404 {
	position: relative;
	margin: var(--sjbs-gap) var(--sjbs-gap) 0;
	padding: 150px 0 80px;
	overflow: hidden;
	border-radius: 36px;
	background:
		radial-gradient(600px 360px at 85% 10%, rgba(255, 255, 255, .85), transparent 65%),
		linear-gradient(178deg, #E9F0FF 0%, #C9DAFF 100%);
	text-align: center;
}

.sjbs-404 h1 {
	font-size: clamp(34px, 4vw, 52px);
	text-transform: uppercase;
}

.sjbs-404 .sjbs-search {
	margin: 26px auto 18px;
}

.sjbs-404__num {
	font-family: var(--sjbs-f-head);
	font-size: clamp(120px, 22vw, 260px);
	line-height: .85;
	background: linear-gradient(180deg, var(--sjbs-c-primary), var(--sjbs-c-navy));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.sjbs-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 24px;
	margin-top: 40px;
}

.sjbs-widget {
	padding: 26px;
	border-radius: 24px;
	background: #FFFFFF;
}

/* Comments */
.comment-list {
	padding: 0;
	list-style: none;
}

.comment-body {
	margin-bottom: 18px;
	padding: 20px 24px;
	border-radius: 20px;
	background: var(--sjbs-c-bg);
}

.comment-form input:not([type="submit"]):not([type="checkbox"]),
.comment-form textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #D6E0F5;
	border-radius: 14px;
	background: #FFFFFF;
	font: inherit;
}

/* WordPress core alignment classes */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text,
.gallery-caption,
figcaption { font-size: 14px; color: #6B7591; }

/* Sticky posts and comments by the post author (blog only) */
.sjbs-card.sticky { box-shadow: 0 0 0 3px var(--sjbs-c-accent, #FFC23D); }
.bypostauthor > .comment-body { border-left: 4px solid var(--sjbs-c-primary, #2F6BFF); }

/* Elementor "full width" pages: no extra gaps */
.sjbs-designed-page .sjbs-main > .elementor,
.sjbs-designed-page .elementor-section.elementor-section-stretched {
	max-width: none;
}

@media (max-width: 782px) {
	.admin-bar.sjbs-header-overlay.sjbs-designed-page .sjbs-header,
	.admin-bar .sjbs-header.is-sticky.is-stuck {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.sjbs-entry {
		padding: 28px 22px;
	}

	.sjbs-entry__thumb {
		margin: -28px -22px 24px;
	}

	.sjbs-pagehead {
		padding: 130px 0 50px;
		border-radius: 26px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

.sjbs-card__date {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--sjbs-c-primary);
}

.sjbs-card__ph {
	display: block;
	width: 100%;
	height: 100%;
	background:
		radial-gradient(circle at 70% 30%, rgba(255, 255, 255, .7) 0 14%, transparent 15%),
		linear-gradient(135deg, #DCE6FF, #7EA4FF);
}

.sjbs-content--narrow .sjbs-entry {
	max-width: 780px;
}

.sjbs-postnav .nav-links {
	justify-content: space-between;
	max-width: 820px;
	margin: 30px auto 0;
}

.sjbs-postnav a {
	display: inline-block;
	padding: 12px 20px;
	border-radius: 999px;
	background: #FFFFFF;
	font-weight: 700;
	text-decoration: none;
}

.sjbs-empty {
	padding: 30px;
	border-radius: 24px;
	background: #FFFFFF;
	text-align: center;
}

.sjbs-header {
	pointer-events: none;
}

.sjbs-header__bar {
	pointer-events: auto;
}

.comments-area,
#comments {
	max-width: 820px;
	margin: 40px auto 0;
	padding: 34px 40px;
	border-radius: 30px;
	background: #FFFFFF;
}

.comments-title,
.comment-reply-title {
	font-size: 34px;
	text-transform: uppercase;
}

/* backdrop-filter would trap the full-screen mobile menu inside the bar */
@media (max-width: 1080px) {
	.sjbs-menu-open .sjbs-header__bar {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		background: #FFFFFF;
		transform: none !important;
	}

	.sjbs-menu-open .sjbs-header {
		animation: none;
	}
}

/* ---------------------------------------------------------------- Top bar (v1.4) */
:root {
	--sjbs-topbar-h: 40px;
}

.sjbs-topbar {
	position: relative;
	z-index: 800;
	height: var(--sjbs-topbar-h);
	background: var(--sjbs-c-footer, #0B1A44);
	color: rgba(255, 255, 255, .8);
	font-size: 12.5px;
	line-height: 1;
}

.sjbs-topbar__in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	max-width: 1340px;
	height: 100%;
	margin: 0 auto;
	padding: 0 calc(var(--sjbs-gap) + 22px);
	white-space: nowrap;
}

.sjbs-topbar__info {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sjbs-topbar__tagline {
	font-weight: 700;
	letter-spacing: .02em;
	color: var(--sjbs-c-accent, #FFC23D);
}

.sjbs-topbar__tagline + .sjbs-topbar__aff::before {
	content: "";
	display: inline-block;
	width: 1px;
	height: 12px;
	margin-right: 14px;
	vertical-align: -1px;
	background: rgba(255, 255, 255, .3);
}

.sjbs-topbar__end,
.sjbs-topbar__links,
.sjbs-topbar__social {
	display: flex;
	align-items: center;
}

.sjbs-topbar__end {
	gap: 16px;
}

.sjbs-topbar__links {
	gap: 16px;
}

.sjbs-topbar a {
	color: rgba(255, 255, 255, .86);
	text-decoration: none;
	transition: color .25s ease;
}

.sjbs-topbar a:hover,
.sjbs-topbar a:focus-visible {
	color: var(--sjbs-c-accent, #FFC23D);
}

.sjbs-topbar__egenius {
	padding: 6px 13px;
	border-radius: 999px;
	background: var(--sjbs-c-accent, #FFC23D);
	font-weight: 800;
	color: var(--sjbs-c-navy, #0B1630) !important;
}

.sjbs-topbar__egenius:hover,
.sjbs-topbar__egenius:focus-visible {
	background: #FFFFFF;
}

.sjbs-topbar__social {
	gap: 4px;
}

.sjbs-topbar__social a {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	font-size: 14px;
}

.sjbs-topbar__social a:hover {
	background: rgba(255, 255, 255, .12);
}

.sjbs-has-topbar.sjbs-header-overlay.sjbs-designed-page .sjbs-header {
	top: var(--sjbs-topbar-h);
}

.admin-bar.sjbs-has-topbar.sjbs-header-overlay.sjbs-designed-page .sjbs-header {
	top: calc(32px + var(--sjbs-topbar-h));
}

@media (max-width: 1180px) {
	.sjbs-topbar__tagline {
		display: none;
	}

	.sjbs-topbar__tagline + .sjbs-topbar__aff::before {
		display: none;
	}
}

@media (max-width: 860px) {
	.sjbs-topbar__info {
		display: none;
	}

	.sjbs-topbar__in {
		justify-content: center;
		padding: 0 14px;
	}
}

@media (max-width: 782px) {
	.admin-bar.sjbs-has-topbar.sjbs-header-overlay.sjbs-designed-page .sjbs-header {
		top: calc(46px + var(--sjbs-topbar-h));
	}
}

@media (max-width: 480px) {
	.sjbs-topbar__in {
		justify-content: space-between;
		gap: 10px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.sjbs-topbar__in::-webkit-scrollbar {
		display: none;
	}

	.sjbs-topbar__end,
	.sjbs-topbar__links {
		gap: 10px;
	}

	.sjbs-topbar__social a {
		width: 22px;
	}
}

/* ---------------------------------------------------------------- Footer location, map and QR (v1.4) */
.sjbs-footer__top:has(.sjbs-footer__loc) {
	grid-template-columns: 1.1fr 1.2fr 1fr .95fr;
	gap: 34px;
}

.sjbs-footer__map {
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 16px;
	background: rgba(255, 255, 255, .06);
}

.sjbs-footer__map iframe {
	display: block;
	width: 100%;
	height: 150px;
	border: 0;
	filter: saturate(.85);
}

.sjbs-footer__qr {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 16px;
	font-size: 13.5px;
	line-height: 1.4;
}

.sjbs-footer__qr img,
.sjbs-footer__qrcode {
	flex: none;
	display: block;
	width: 88px;
	height: 88px;
	padding: 4px;
	border-radius: 10px;
	background: #FFFFFF;
}

.sjbs-footer__qrcode svg {
	display: block;
	width: 100%;
	height: 100%;
}

@media (max-width: 1100px) {
	.sjbs-footer__top:has(.sjbs-footer__loc) {
		grid-template-columns: 1fr 1fr;
	}

	.sjbs-footer__top:has(.sjbs-footer__loc) .sjbs-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	.sjbs-footer__top:has(.sjbs-footer__loc) {
		grid-template-columns: 1fr;
	}
}

/* ---------------------------------------------------------------- Long main menus (8 or more items) stay on one line */
@media (min-width: 1081px) and (max-width: 1400px) {
	.sjbs-header:has(.sjbs-nav__list > li:nth-child(8)) .sjbs-nav__list a {
		padding: 10px 8px;
		font-size: 14px;
	}
}

@media (min-width: 1081px) and (max-width: 1220px) {
	.sjbs-header:has(.sjbs-nav__list > li:nth-child(8)) .sjbs-header__end .sjbs-cta {
		display: none;
	}
}

/* Header always sits below the top bar (does not depend on the body class). */
.sjbs-header-overlay.sjbs-designed-page .sjbs-topbar + .sjbs-header {
	top: var(--sjbs-topbar-h);
}

.admin-bar.sjbs-header-overlay.sjbs-designed-page .sjbs-topbar + .sjbs-header {
	top: calc(32px + var(--sjbs-topbar-h));
}

@media (max-width: 782px) {
	.admin-bar.sjbs-header-overlay.sjbs-designed-page .sjbs-topbar + .sjbs-header {
		top: calc(46px + var(--sjbs-topbar-h));
	}
}

.sjbs-header.is-sticky.is-stuck,
.sjbs-header-overlay.sjbs-designed-page .sjbs-topbar + .sjbs-header.is-sticky.is-stuck {
	top: 0;
}

.admin-bar .sjbs-header.is-sticky.is-stuck,
.admin-bar.sjbs-header-overlay.sjbs-designed-page .sjbs-topbar + .sjbs-header.is-sticky.is-stuck {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .sjbs-header.is-sticky.is-stuck,
	.admin-bar.sjbs-header-overlay.sjbs-designed-page .sjbs-topbar + .sjbs-header.is-sticky.is-stuck {
		top: 46px;
	}
}
