body:not(.elv-homepage-page) #footer,
body:not(.elv-homepage-page) .ct-footer {
	display: none !important;
}

.elv-global-footer {
	position: relative;
	z-index: 2;
	padding: 68px max(24px, calc((100vw - 1120px) / 2)) 22px;
	background: #07110f;
	color: rgba(255, 255, 255, 0.72);
	font-family: "Noto Serif", Georgia, serif;
}

.elv-global-footer-main {
	display: grid;
	grid-template-columns: minmax(280px, 1.5fr) minmax(160px, 0.7fr) minmax(260px, 1fr);
	gap: clamp(40px, 7vw, 90px);
	align-items: start;
}

.elv-global-footer-brand img {
	display: block;
	width: 190px;
	max-width: 100%;
	padding: 8px;
	border-radius: 5px;
	background: #fff;
}

.elv-global-footer-brand p {
	margin: 18px 0;
	font-size: 14px;
}

.elv-global-footer-socials {
	display: flex;
	gap: 9px;
}

.elv-global-footer-socials a {
	display: grid;
	width: 40px;
	height: 40px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	color: #fff;
	transition:
		border-color 180ms ease,
		background-color 180ms ease;
}

.elv-global-footer-socials a:hover {
	border-color: #e4b51b;
	background: rgba(228, 181, 27, 0.12);
}

.elv-global-footer-socials svg,
.elv-global-footer-contact svg {
	width: 18px;
	height: 18px;
}

.elv-global-footer-nav,
.elv-global-footer-contact {
	display: flex;
	flex-direction: column;
	gap: 11px;
}

.elv-global-footer strong {
	margin-bottom: 7px;
	color: #e4b51b;
	font-size: 12px;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.elv-global-footer a {
	color: rgba(255, 255, 255, 0.74);
	text-decoration: none;
}

.elv-global-footer a:hover {
	color: #fff;
}

.elv-global-footer-contact a {
	display: flex;
	gap: 11px;
	align-items: flex-start;
}

.elv-global-footer-contact svg {
	flex: 0 0 auto;
	color: #e4b51b;
}

.elv-global-footer-bottom {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 24px;
	align-items: center;
	margin-top: 58px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.13);
	font-size: 11px;
	letter-spacing: 0.04em;
}

.elv-global-footer-bottom span:last-child {
	text-align: right;
}

@media (max-width: 820px) {
	.elv-global-footer {
		padding: 52px 24px 22px;
	}

	.elv-global-footer-main {
		grid-template-columns: 1fr 1fr;
	}

	.elv-global-footer-brand {
		grid-column: 1 / -1;
	}

	.elv-global-footer-bottom {
		grid-template-columns: 1fr;
		gap: 9px;
		text-align: left;
	}

	.elv-global-footer-bottom span:last-child {
		text-align: left;
	}
}

@media (max-width: 520px) {
	.elv-global-footer-main {
		grid-template-columns: 1fr;
	}

	.elv-global-footer-brand {
		grid-column: auto;
	}
}

body.elv-error-404 {
	background: #07110f;
}

body.elv-error-404 .site-main,
body.elv-error-404 .content-area {
	margin: 0;
	padding: 0;
}

.elv-404 {
	position: relative;
	overflow: hidden;
	min-height: min(800px, calc(100vh - 90px));
	padding: clamp(116px, 12vw, 170px) 24px clamp(72px, 9vw, 120px);
	background:
		linear-gradient(115deg, rgba(3, 15, 13, 0.98), rgba(7, 32, 28, 0.96)),
		radial-gradient(circle at 78% 30%, rgba(228, 181, 27, 0.15), transparent 34%);
	color: #fff;
	font-family: "Noto Serif", Georgia, serif;
	isolation: isolate;
}

.elv-404::before {
	position: absolute;
	z-index: -1;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
	background-size: 72px 72px;
	content: "";
	mask-image: linear-gradient(to right, transparent, #000 25%, #000 75%, transparent);
}

.elv-404-orb {
	position: absolute;
	z-index: -1;
	border: 1px solid rgba(228, 181, 27, 0.16);
	border-radius: 50%;
}

.elv-404-orb-one {
	top: -250px;
	right: -170px;
	width: 650px;
	height: 650px;
}

.elv-404-orb-two {
	right: 180px;
	bottom: -350px;
	width: 560px;
	height: 560px;
}

.elv-404-shell {
	width: min(1180px, 100%);
	margin-inline: auto;
}

.elv-404-breadcrumbs {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-bottom: clamp(45px, 6vw, 82px);
	color: rgba(255, 255, 255, 0.52);
	font-size: 12px;
	letter-spacing: 0.05em;
}

.elv-404-breadcrumbs a {
	color: #e4b51b;
	text-decoration: none;
}

.elv-404-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.75fr);
	gap: clamp(58px, 8vw, 120px);
	align-items: center;
}

.elv-404-copy {
	position: relative;
}

.elv-404-kicker,
.elv-404-panel-kicker {
	margin: 0 0 19px;
	color: #e4b51b;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.elv-404-number {
	position: absolute;
	z-index: -1;
	top: -118px;
	left: -15px;
	margin: 0;
	color: rgba(255, 255, 255, 0.035);
	font-size: clamp(190px, 24vw, 350px);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.09em;
	user-select: none;
}

.elv-404 h1 {
	max-width: 760px;
	margin: 0;
	color: #fff;
	font-size: clamp(50px, 6.3vw, 92px);
	font-weight: 500;
	line-height: 0.98;
	letter-spacing: -0.055em;
}

.elv-404 h1 em {
	color: #e4b51b;
	font-weight: 500;
}

.elv-404-lead {
	max-width: 690px;
	margin: 30px 0 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: clamp(16px, 1.4vw, 19px);
	line-height: 1.8;
}

.elv-404-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 36px;
}

.elv-404-button {
	display: inline-flex;
	min-height: 52px;
	align-items: center;
	justify-content: center;
	padding: 13px 23px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.elv-404-button:hover {
	transform: translateY(-2px);
	border-color: #fff;
	color: #fff;
}

.elv-404-button-primary {
	border-color: #e4b51b;
	background: #e4b51b;
	color: #07110f;
}

.elv-404-button-primary:hover {
	border-color: #f0c633;
	background: #f0c633;
	color: #07110f;
}

.elv-404-panel {
	padding: clamp(31px, 4vw, 48px);
	border-top: 3px solid #e4b51b;
	background: rgba(255, 255, 255, 0.065);
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.23);
	backdrop-filter: blur(12px);
}

.elv-404-panel h2 {
	margin: 0 0 28px;
	color: #fff;
	font-size: clamp(29px, 3vw, 43px);
	font-weight: 500;
	line-height: 1.13;
	letter-spacing: -0.035em;
}

.elv-404-panel ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.elv-404-panel li {
	margin: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.elv-404-panel li:last-child {
	border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.elv-404-panel li a {
	display: grid;
	grid-template-columns: 30px 1fr auto;
	gap: 12px;
	align-items: center;
	padding: 15px 0;
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
}

.elv-404-panel li span {
	color: #e4b51b;
	font-size: 10px;
	letter-spacing: 0.08em;
}

.elv-404-panel li b {
	color: #e4b51b;
	font-weight: 400;
}

.elv-404-panel li a:hover {
	color: #fff;
}

.elv-404-search {
	margin-top: 30px;
}

.elv-404-search label {
	display: block;
	margin-bottom: 10px;
	color: rgba(255, 255, 255, 0.58);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.elv-404-search > div {
	display: grid;
	grid-template-columns: 1fr auto;
	background: #fff;
}

.elv-404-search input {
	min-width: 0;
	height: 48px;
	padding: 0 15px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #13221f;
	font: inherit;
	font-size: 13px;
	outline: none;
}

.elv-404-search input:focus {
	box-shadow: inset 0 0 0 2px #e4b51b;
}

.elv-404-search button {
	min-width: 108px;
	padding: 0 15px;
	border: 0;
	border-radius: 0;
	background: #e4b51b;
	color: #07110f;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

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

	.elv-404-panel {
		max-width: 620px;
	}
}

@media (max-width: 600px) {
	.elv-404 {
		padding: 102px 18px 66px;
	}

	.elv-404-breadcrumbs {
		margin-bottom: 42px;
	}

	.elv-404 h1 {
		font-size: clamp(46px, 14vw, 64px);
	}

	.elv-404-number {
		top: -70px;
		font-size: 160px;
	}

	.elv-404-actions {
		flex-direction: column;
	}

	.elv-404-button {
		width: 100%;
	}

	.elv-404-panel {
		padding: 28px 22px;
	}

	.elv-404-search > div {
		grid-template-columns: 1fr;
	}

	.elv-404-search button {
		min-height: 46px;
	}
}

/* Keep every primary navigation item visible on desktop. */
@media (min-width: 1000px) {
	#header [data-device="desktop"] [data-row="middle"] > .ct-container {
		width: calc(100% - 32px) !important;
		max-width: 1600px !important;
		grid-template-columns: minmax(130px, 160px) minmax(0, 1fr) auto !important;
		column-gap: 10px !important;
	}

	#header [data-device="desktop"] [data-id="menu"] {
		--menu-items-spacing: 26px !important;
		font-size: 13px !important;
	}

	#header [data-device="desktop"] [data-id="menu"] > ul {
		gap: 2px !important;
	}
}

/* Pontic-dialect video lessons restored from Joomla's separate video field. */
body.elv-pontic-lesson .hero-section[data-type="type-2"] {
	min-height: clamp(220px, 23vw, 320px) !important;
	background:
		linear-gradient(115deg, rgba(5, 35, 32, 0.96), rgba(8, 119, 114, 0.83)),
		#08736f !important;
}

body.elv-pontic-lesson .hero-section .page-title {
	color: #fff !important;
}

body.elv-pontic-lesson .hero-section .ct-breadcrumbs,
body.elv-pontic-lesson .hero-section .ct-breadcrumbs a {
	color: rgba(255, 255, 255, 0.78) !important;
}

body.elv-pontic-lesson .hero-section .ct-breadcrumbs a:hover {
	color: #e4b51b !important;
}

.elv-video-lesson {
	max-width: 1040px;
	margin: 0 auto;
	padding: clamp(30px, 5vw, 64px);
	border: 1px solid rgba(12, 47, 43, 0.12);
	border-top: 4px solid #e4b51b;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 22px 60px rgba(12, 47, 43, 0.09);
}

.elv-video-lesson-kicker {
	margin: 0 0 12px;
	color: #087b77;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.elv-video-lesson h2 {
	margin: 0;
	color: #12211f;
	font-size: clamp(31px, 4vw, 52px);
	line-height: 1.08;
}

.elv-video-lesson-intro {
	max-width: 760px;
	margin: 18px 0 30px;
	color: #526460;
	font-size: 17px;
	line-height: 1.75;
}

.elv-video-frame {
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border-radius: 14px;
	background: #06110f;
	box-shadow: 0 18px 42px rgba(3, 22, 20, 0.2);
}

.elv-video-frame iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.elv-video-actions {
	display: flex;
	align-items: center;
	gap: 22px;
	margin-top: 26px;
}

.elv-video-actions a {
	font-weight: 700;
	text-decoration: none;
}

.elv-video-primary {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 46px;
	padding: 0 20px;
	background: #e4b51b;
	color: #07110f !important;
}

.elv-video-actions > a:not(.elv-video-primary) {
	color: #087b77;
	border-bottom: 1px solid currentColor;
}

@media (max-width: 689px) {
	.elv-video-lesson {
		padding: 26px 18px;
		border-radius: 12px;
	}

	.elv-video-lesson-intro {
		font-size: 16px;
	}

	.elv-video-frame {
		border-radius: 8px;
	}

	.elv-video-actions {
		align-items: stretch;
		flex-direction: column;
		gap: 16px;
	}

	.elv-video-primary {
		justify-content: center;
	}

	.elv-video-actions > a:not(.elv-video-primary) {
		align-self: center;
	}
}
