/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Elite Prodigy Nexus GeneratePress child theme
 Author:       Elite Prodigy Nexus
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      1.11.2
*/
.site-header {
	position: fixed;
	z-index: 999;
	width: 100%;
	top: 0;
	left: 0;
}

/* =========
   HERO
   ========= */

.no-sidebar .entry-content .alignfull {
	max-width: 100%;
}

.epn-hero {
	position: relative;
	height: 100dvh;
	color: var(--base-3);
	background: radial-gradient(circle at 10% 0%, rgba(201, 168, 106, 0.32), transparent 55%),
		radial-gradient(circle at 80% 100%, rgba(221, 188, 132, 0.22), transparent 55%),
		linear-gradient(135deg, var(--contrast) 0%, #050505 40%, #111111 100%);
	overflow: hidden;
}

.epn-hero-video-wrapper {
	position: absolute;
	inset: 0;
	overflow: hidden;
	z-index: 0;
	pointer-events: none;
}

.epn-hero-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(0.2) contrast(1.2) saturate(0.8);
	opacity: 0.9;
	transform: scale(1.02);
}

.epn-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 20% 10%, rgba(201, 168, 106, 0.30), transparent 55%),
		radial-gradient(circle at 80% 90%, rgba(221, 188, 132, 0.20), transparent 55%),
		linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.85));
	mix-blend-mode: hard-light;
	pointer-events: none;
	z-index: 1;
}

.epn-hero-inner {
	position: relative;
	z-index: 2;
	max-width: 1160px;
	margin: 0 auto;
	padding: 6rem 1.5rem 5rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1.75rem;
}

.epn-hero-kicker {
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-size: 0.78rem;
	color: var(--accent-2);
	opacity: 0.9;
	width: fit-content;
	background: rgba(0, 0, 0, 0.6);
}

.epn-hero-title {
	position: relative;
	font-size: clamp(2.4rem, 5vw, 3.4rem);
	display: inline-block;
	line-height: 1.05;
	color: var(--base-3);
	text-wrap: balance;
}

/* Ensured page-hero heading — injected by epn_ensure_page_h1() when a page hero
   (e.g. Contact) lacks its own <h1>. Scoped to the injection-only .epn-ensured-h1
   class so it never restyles author-written .epn-page-hero-title headings. Inherits
   the cover's text colour so it matches the adjacent subtitle's legibility. */
.epn-ensured-h1 {
	color: inherit;
	font-size: clamp(2.2rem, 4.5vw, 3.2rem);
	line-height: 1.08;
	margin: 0 0 0.4em;
	text-wrap: balance;
}

/* Moving shine across the title, 1s active, then long pause */
.epn-hero-title::after {
	content: "";
	position: absolute;
	top: 0;
	left: -50%;
	width: 50%;
	height: 100%;
	background: linear-gradient(120deg,
			transparent 0%,
			rgba(255, 255, 255, 0.6) 50%,
			transparent 100%);
	pointer-events: none;
	animation: epn-hero-shine 6s ease-in-out infinite;
	mix-blend-mode: screen;
	opacity: 0.9;
}

@keyframes epn-hero-shine {
	0% {
		transform: translateX(0);
		opacity: 0;
	}

	5% {
		opacity: 1;
	}

	20% {
		transform: translateX(260%);
		opacity: 0;
	}

	100% {
		transform: translateX(260%);
		opacity: 0;
	}
}

.epn-hero-subtitle {
	max-width: 680px;
	font-size: 1.02rem;
	color: var(--contrast-3);
	opacity: 0.9;
	margin-bottom: 2rem;
	min-height: 2.4em;
	display: block;
}

.epn-spark-word {
	display: inline-block;
}

.epn-spark-char {
	display: inline-block;
	position: relative;
	/* a11y: text stays visible (opacity:1) so its contrast is always
	   determinable. The per-char stagger runs >5s, so an opacity:0 start
	   left most letters invisible when axe/pa11y sampled — flagged as
	   (near-)zero contrast. Entrance is now a transform-only "rise". */
	opacity: 1;
	transform: translateY(0.3em);
	animation: epn-spark-fade 0.6s ease-out forwards;
	transition: transform 360ms ease-out;
}

@keyframes epn-spark-fade {
	0% {
		transform: translateY(0.3em);
	}

	100% {
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.epn-spark-char {
		animation: none;
		transform: none;
	}
}

/* =========
   BUTTONS
   ========= */

.epn-hero-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
}

.epn-btn .wp-block-button__link {
	padding: 0.75rem 1.9rem;
	border-radius: 999px;
	font-size: 0.92rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border: 1px solid transparent;
	transition:
		background-color 220ms ease-out,
		color 220ms ease-out,
		border-color 220ms ease-out,
		transform 220ms ease-out,
		box-shadow 220ms ease-out;
}

.epn-btn-primary .wp-block-button__link {
	background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
	color: var(--contrast);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55), 0 18px 45px rgba(0, 0, 0, 0.55);
}

.epn-btn-primary .wp-block-button__link:hover {
	transform: translateY(-1px);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.7), 0 22px 55px rgba(0, 0, 0, 0.75);
}

.epn-btn-ghost .wp-block-button__link {
	background: rgba(0, 0, 0, 0.35);
	color: var(--base-3);
	border-color: rgba(255, 255, 255, 0.14);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6);
}

.epn-btn-ghost .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.3);
	transform: translateY(-1px);
}

/* outline variant used lower on page */
.epn-btn-outline .wp-block-button__link {
	background: transparent;
	color: var(--contrast);
	border-color: var(--accent);
}

.epn-btn-outline .wp-block-button__link:hover {
	background: rgba(201, 168, 106, 0.06);
}

/* =========
   TRUST SECTION
   ========= */

.epn-trust {
	background: var(--contrast);
	padding: 4rem 1.5rem 3.5rem;
}

.epn-trust-label {
	text-align: center;
	font-size: 1.5rem;
	margin-bottom: 1.5rem;
}

.epn-trust>p {
	max-width: 820px;
	margin: 0 auto 2rem;
	text-align: center;
	color: var(--contrast-2);
}

.epn-trust-logos {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0.75rem 2.5rem;
	max-width: 960px;
	margin: 0 auto;
}

.epn-trust-logos p {
	margin: 0;
	padding: 0.4rem 0.6rem;
	border-radius: 999px;
	border: 1px solid var(--contrast-3);
	font-size: 0.86rem;
}

/* =========
   ABOUT + MAP
   ========= */

.epn-about-grid {
	padding: 4rem 1.5rem 4.5rem;
	background: linear-gradient(180deg, var(--contrast3) 0%, var(--contrast2) 100%);
}

.epn-about-grid .wp-block-columns {
	max-width: 1160px;
	margin: 0 auto;
	gap: 3rem;
}

.epn-about-grid h2 {
	margin-bottom: 1rem;
}

.epn-about-grid p {
	color: var(--base);
}

.epn-europe-presence h3 {
	margin-bottom: 0.75rem;
}

.epn-map-interactive {
	position: relative;
	margin-top: 1.5rem;
	border-radius: 1.5rem;
	overflow: hidden;
	background: radial-gradient(circle at 10% 0%, rgba(201, 168, 106, 0.16), transparent 60%),
		radial-gradient(circle at 90% 100%, rgba(221, 188, 132, 0.10), transparent 60%),
		#050608;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
	isolation: isolate;
}

/* map image itself */
.epn-europe-map img {
	display: block;
	width: 100%;
	height: auto;
	mix-blend-mode: screen;
	opacity: 0.9;
}

/* golden "strings" reacting to cursor */
.epn-map-interactive::before,
.epn-map-interactive::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	mix-blend-mode: screen;
}

/* soft glow following cursor */
.epn-map-interactive::before {
	background:
		radial-gradient(circle at var(--epn-cx, 50%) var(--epn-cy, 40%),
			rgba(201, 168, 106, 0.35) 0,
			rgba(201, 168, 106, 0.18) 18%,
			transparent 55%);
	opacity: 0.9;
	transition: opacity 240ms ease-out;
}

/* subtle network lines */
.epn-map-interactive::after {
	background-image:
		linear-gradient(115deg, transparent 0, rgba(221, 188, 132, 0.23) 40%, transparent 70%),
		linear-gradient(245deg, transparent 10%, rgba(201, 168, 106, 0.18) 45%, transparent 80%),
		radial-gradient(circle at 15% 15%, rgba(221, 188, 132, 0.18), transparent 45%),
		radial-gradient(circle at 80% 80%, rgba(201, 168, 106, 0.20), transparent 55%);
	background-size: 260% 260%;
	animation: epn-map-flow 26s linear infinite;
	opacity: 0.55;
}

@keyframes epn-map-flow {
	0% {
		background-position: 0% 50%;
	}

	50% {
		background-position: 100% 50%;
	}

	100% {
		background-position: 0% 50%;
	}
}

/* =========
   SPLIT SERVICES
   ========= */

.epn-split {
	padding: 4rem 1.5rem 4.5rem;
	background: var(--contrast);
}

.epn-split .wp-block-columns {
	max-width: 1160px;
	margin: 0 auto;
	gap: 2rem;
}

.epn-card,
.epn-role-card,
.epn-story-card,
.epn-news-card,
.epn-signup-card {
	background: linear-gradient(135deg, #111111 0%, #0a0a0a 100%);
	color: var(--base-3);
	padding: 2.5rem;
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.02);
	transition: all 0.3s ease;
}

/* Slight glow on hover */
.epn-card:hover,
.epn-role-card:hover,
.epn-story-card:hover,
.epn-news-card:hover {
	border-color: rgba(201, 168, 106, 0.4);
	transform: translateY(-4px);
	box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(201, 168, 106, 0.2);
}

.epn-card h2,
.epn-card h3,
.epn-role-card h3,
.epn-news-card h3,
.epn-story-card h3 {
	color: var(--base-3);
}

.epn-kicker,
.epn-story-label,
.epn-news-tag {
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.78rem;
	margin-bottom: 0.5rem;
	color: var(--accent);
	opacity: 0.95;
}

.epn-card ul {
	margin-top: 1rem;
}

/* =========
   FEATURED ROLES
   ========= */

.epn-featured-roles {
	padding: 4rem 1.5rem 4.5rem;
	background: var(--contrast);
}

.epn-featured-roles .epn-section-header {
	max-width: 900px;
	margin: 0 auto 2.2rem;
	text-align: center;
}

.epn-role-list {
	max-width: 1160px;
	margin: 0 auto;
	gap: 1.6rem;
}

.epn-role-location {
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent-2);
	margin-bottom: 0.3rem;
}

.epn-role-card h3 {
	font-size: 1.05rem;
	margin-bottom: 0.4rem;
}

.epn-role-tags {
	margin-top: 0.6rem;
	font-size: 0.82rem;
	font-style: italic;
	color: var(--base-2);
}

.epn-center {
	margin-top: 2rem;
	justify-content: center;
}

/* =========
   SUCCESS STORIES
   ========= */

.epn-success {
	padding: 4rem 1.5rem 4.5rem;
	background: var(--contrast);
}

.epn-success .epn-section-header {
	max-width: 900px;
	margin: 0 auto 2.2rem;
	text-align: center;
}

/* =========
   NEWS / INSIGHTS
   ========= */

.epn-news {
	padding: 4rem 1.5rem 4.5rem;
	background: var(--contrast);
}

.epn-news .epn-section-header {
	max-width: 900px;
	margin: 0 auto 2.2rem;
	text-align: center;
}

.epn-news-grid {
	max-width: 1160px;
	margin: 0 auto;
	gap: 1.8rem;
}

.epn-news-card h3 {
	font-size: 1.02rem;
	margin-bottom: 0.4rem;
}

/* =========
   SIGNUPS
   ========= */

.epn-signups {
	padding: 4rem 1.5rem 4.5rem;
	background: var(--contrast);
}

.epn-signups .wp-block-columns {
	max-width: 1160px;
	margin: 0 auto;
	gap: 2rem;
}

.epn-inline-form {
	margin-top: 1.1rem;
	display: flex;
	gap: 0.6rem;
	flex-wrap: nowrap;
}

.epn-inline-form input[type="email"] {
	flex: 1;
	padding: 0.7rem 0.9rem;
	border-radius: 999px;
	border: 1px solid var(--contrast-3);
	font-size: 0.9rem;
	background: var(--base-2);
	color: var(--contrast);
}

.epn-inline-form input[type="email"]::placeholder {
	color: var(--contrast-3);
}

.epn-inline-btn {
	padding: 0.7rem 1.4rem;
	border-radius: 999px;
	font-size: 0.85rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border: 1px solid transparent;
	cursor: pointer;
	transition: all 200ms ease-out;
}

/* =========
   CONTACT CTA
   ========= */

.epn-contact-cta {
	padding: 3.5rem 1.5rem 4rem;
	background: linear-gradient(135deg, #050506 0%, #111111 55%, #151515 100%);
	color: var(--base-3);
}

.epn-contact-inner {
	max-width: 900px;
	margin: 0 auto;
	text-align: center;
}

.epn-contact-inner p {
	color: var(--contrast-3);
	margin-bottom: 1.6rem;
}

/* =========
   RESPONSIVE
   ========= */

@media (max-width: 900px) {
	.epn-hero-inner {
		padding: 4.5rem 1.25rem 3.5rem;
	}

	.epn-about-grid .wp-block-columns,
	.epn-split .wp-block-columns,
	.epn-role-list,
	.epn-news-grid,
	.epn-signups .wp-block-columns {
		gap: 1.4rem;
	}

	.epn-card,
	.epn-role-card,
	.epn-story-card,
	.epn-news-card,
	.epn-signup-card {
		padding: 1.6rem 1.4rem;
	}

	.epn-inline-form {
		flex-direction: column;
		align-items: stretch;
	}

	.epn-inline-btn {
		width: 100%;
		text-align: center;
	}
}

@media (max-width: 600px) {
	.epn-hero-title {
		font-size: clamp(2rem, 8vw, 2.4rem);
	}

	.epn-hero-subtitle {
		font-size: 0.96rem;
	}

	.epn-trust,
	.epn-about-grid,
	.epn-split,
	.epn-featured-roles,
	.epn-success,
	.epn-news,
	.epn-signups,
	.epn-contact-cta {
		padding-inline: 1.1rem;
	}

	.epn-map-interactive {
		margin-top: 1rem;
	}
}

/* disable cursor-reactive intensity on touch devices */
@media (hover: none) {
	.epn-map-interactive::before {
		opacity: 0.45;
	}
}











body:not(.home) .site.container {
	margin-top: 100px;
}

body:not(.home) .site-header {
	background: black;
}

/* =========
   FOOTER
   ========= */

.site-footer {
	background: linear-gradient(180deg, var(--contrast) 0%, #050505 100%);
	border-top: 1px solid rgba(201, 168, 106, 0.2);
	padding: 3rem 0 2.5rem;
	margin-top: 4rem;
}

.site-footer .inside-footer {
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 2rem;
}


/* Letter E - appears in EPN, Elite, EL */
.site-footer .epn-letter-e {
	color: var(--base-3);
	opacity: 1;
	animation: epn-letter-e 12s ease-in-out infinite;
}

/* Letter P - appears in EPN, Prodigy, PRO */
.site-footer .epn-letter-p {
	color: var(--base-3);
	opacity: 1;
	animation: epn-letter-p 12s ease-in-out infinite;
}

/* Letter N - appears in EPN, Nexus, N */
.site-footer .epn-letter-n {
	color: var(--base-3);
	opacity: 1;
	animation: epn-letter-n 12s ease-in-out infinite;
}

@keyframes epn-letter-e {
	0% {
		color: var(--base-3);
		text-shadow: none;
	}

	8.33% {
		color: var(--accent);
		text-shadow: 0 0 8px rgba(201, 168, 106, 0.4);
	}

	25% {
		color: var(--accent);
		text-shadow: 0 0 12px rgba(201, 168, 106, 0.6);
	}

	33.33% {
		color: var(--base-3);
		text-shadow: none;
	}

	33.34%,
	100% {
		color: var(--base-3);
		text-shadow: none;
	}
}

@keyframes epn-letter-p {

	0%,
	33.33% {
		color: var(--base-3);
		text-shadow: none;
	}

	41.66% {
		color: var(--accent);
		text-shadow: 0 0 8px rgba(201, 168, 106, 0.4);
	}

	58.33% {
		color: var(--accent);
		text-shadow: 0 0 12px rgba(201, 168, 106, 0.6);
	}

	66.66% {
		color: var(--base-3);
		text-shadow: none;
	}

	66.67%,
	100% {
		color: var(--base-3);
		text-shadow: none;
	}
}

@keyframes epn-letter-n {

	0%,
	66.66% {
		color: var(--base-3);
		text-shadow: none;
	}

	75% {
		color: var(--accent);
		text-shadow: 0 0 8px rgba(201, 168, 106, 0.4);
	}

	91.66% {
		color: var(--accent);
		text-shadow: 0 0 12px rgba(201, 168, 106, 0.6);
	}

	100% {
		color: var(--base-3);
		text-shadow: none;
	}
}

/* Cyprus flag - C */
.site-footer .epn-cy-c {
	color: #D57800;
}

/* Cyprus flag - Y (a11y: olive lightened #4E5B31 2.86:1 -> 5.76:1 on black footer) */
.site-footer .epn-cy-y {
	color: #7e8c52;
}

/* =========
   GENERAL TYPOGRAPHY
   ========= */

/* Improve general body text to match article styles */
body {
	font-weight: 400;
	letter-spacing: 0.01em;
}

/* Better link styling throughout site */
a {
	transition: color 200ms ease, border-color 200ms ease;
}

/* =========
   FORM WRAPPER
   ========= */
.epn-form {
	max-width: 700px;
	margin: 0 auto;
	color: var(--base-3);
}

/* Labels */
.epn-form label {
	display: block;
	margin-bottom: 1rem;
	font-size: .95rem;
	font-weight: 500;
	color: var(--base-3);
}

/* Inputs */
.epn-form input[type="text"],
.epn-form input[type="email"],
.epn-form textarea,
.epn-form input[type="file"] {
	width: 100%;
	padding: 14px 18px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.05);
	color: var(--base-3);
	border-radius: 12px;
	font-size: 0.95rem;
	margin-top: 0.3rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.epn-form input[type="text"]:hover,
.epn-form input[type="email"]:hover,
.epn-form textarea:hover {
	border-color: rgba(201, 168, 106, 0.3);
	background: rgba(255, 255, 255, 0.08);
}

.epn-form input:focus,
.epn-form textarea:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(201, 168, 106, 0.2), 0 4px 12px rgba(0, 0, 0, 0.1);
	background: rgba(255, 255, 255, 0.1);
	outline: none;
}

/* Submit Button */
.epn-form .epn-btn-primary {
	display: inline-block;
	margin-top: 1rem;
	padding: 14px 32px !important;
	background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
	color: var(--contrast);
	border-radius: 50px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	font-size: 0.9rem;
	transition: all 0.25s ease;
	box-shadow: 0 4px 15px rgba(201, 168, 106, 0.3);
	border: none;
}

.epn-form .epn-btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(201, 168, 106, 0.4);
	opacity: 0.95;
}

/* File field styling */
.epn-form input[type="file"] {
	background: var(--base-3);
	border: 1px solid var(--contrast-2);
	padding: 10px;
	cursor: pointer;
}

/* =========
   ARTICLE TEMPLATES
   ========= */

/* Article Hero Section */
.epn-article-hero {
	position: relative;
	margin: -100px -40px 4rem -40px;
	height: 65vh;
	min-height: 450px;
	max-height: 700px;
	overflow: hidden;
	border-radius: 0 0 20px 20px;
}

.epn-article-hero-image {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.epn-article-hero-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.05);
	transition: transform 0.6s ease;
}

.epn-article-hero:hover .epn-article-hero-image img {
	transform: scale(1);
}

.epn-article-hero-overlay {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 20% 30%, rgba(201, 168, 106, 0.15) 0%, transparent 50%),
		radial-gradient(circle at 80% 70%, rgba(221, 188, 132, 0.1) 0%, transparent 50%),
		linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.9) 100%);
	z-index: 1;
}

.epn-article-hero-content {
	position: relative;
	z-index: 2;
	height: 100%;
	display: flex;
	align-items: flex-end;
	padding: 4rem 2rem 3rem;
}

.epn-article-hero-inner {
	max-width: 1160px;
	width: 100%;
	margin: 0 auto;
}

.epn-article-hero-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.epn-article-hero-category {
	display: inline-block;
	padding: 0.4rem 1rem;
	background: rgba(201, 168, 106, 0.2);
	border: 1px solid var(--accent);
	border-radius: 999px;
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent);
	text-decoration: none;
	transition: all 200ms ease;
	width: fit-content;
}

.epn-article-hero-category:hover {
	background: rgba(201, 168, 106, 0.3);
	border-color: var(--accent-2);
	color: var(--accent-2);
	transform: translateY(-1px);
}

.epn-article-hero-title {
	font-size: clamp(2.2rem, 5vw, 3.5rem);
	line-height: 1.15;
	color: var(--base-3);
	margin: 0;
	text-shadow: 0 2px 30px rgba(0, 0, 0, 0.9), 0 4px 10px rgba(0, 0, 0, 0.5);
	font-weight: 600;
	letter-spacing: -0.02em;
}

/* Article Metadata Bar */
.epn-article-metadata {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
	border-top: 1px solid rgba(201, 168, 106, 0.2);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	padding: 2rem 0;
	margin: -2rem 0 3rem 0;
	backdrop-filter: blur(10px);
}

.epn-article-metadata-inner {
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 2rem;
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	align-items: center;
}

.epn-article-meta-item {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 0.5rem 0;
	position: relative;
}

.epn-article-meta-item:not(:last-child)::after {
	content: "";
	position: absolute;
	right: -1rem;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 60%;
	background: rgba(255, 255, 255, 0.1);
}

.epn-article-meta-label {
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--contrast-3);
	opacity: 0.7;
}

.epn-article-meta-value {
	font-size: 0.9rem;
	color: var(--base-3);
	text-decoration: none;
	transition: color 200ms ease;
}

.epn-article-meta-value a {
	color: var(--accent);
	text-decoration: none;
	font-weight: 500;
	transition: color 200ms ease;
}

.epn-article-meta-value a:hover {
	color: var(--accent-2);
}

.epn-article-meta-value:hover {
	color: var(--accent);
}

/* Article Typography */
.single-post .entry-content {
	max-width: 780px;
	margin: 0 auto;
	padding: 0 2rem 4rem;
}

.single-post .entry-content p {
	font-size: 1.1rem;
	line-height: 1.85;
	margin-bottom: 1.75rem;
	color: var(--base-2);
	font-weight: 400;
	letter-spacing: 0.01em;
}

.single-post .entry-content h2 {
	font-size: 2.2rem;
	line-height: 1.3;
	margin-top: 3.5rem;
	margin-bottom: 1.75rem;
	color: var(--base-3);
	position: relative;
	padding-bottom: 0.75rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.single-post .entry-content h2::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 80px;
	height: 3px;
	background: linear-gradient(90deg, var(--accent) 0%, rgba(201, 168, 106, 0.3) 100%);
	border-radius: 2px;
}

.single-post .entry-content h3 {
	font-size: 1.65rem;
	line-height: 1.4;
	margin-top: 3rem;
	margin-bottom: 1.25rem;
	color: var(--base-3);
	font-weight: 600;
	letter-spacing: -0.005em;
}

.single-post .entry-content h4 {
	font-size: 1.25rem;
	line-height: 1.4;
	margin-top: 2rem;
	margin-bottom: 1rem;
	color: var(--base-3);
}

.single-post .entry-content ul,
.single-post .entry-content ol {
	margin: 2rem 0;
	padding-left: 2.5rem;
}

.single-post .entry-content li {
	font-size: 1.1rem;
	line-height: 1.85;
	margin-bottom: 1rem;
	color: var(--base-2);
	position: relative;
}

.single-post .entry-content ul li::marker {
	color: var(--accent);
}

.single-post .entry-content ol li::marker {
	color: var(--accent);
	font-weight: 600;
}

.single-post .entry-content blockquote {
	margin: 3rem 0;
	padding: 2rem 2.5rem;
	border-left: 4px solid var(--accent);
	background: linear-gradient(90deg, rgba(201, 168, 106, 0.08) 0%, rgba(201, 168, 106, 0.02) 100%);
	border-radius: 0 12px 12px 0;
	font-style: italic;
	color: var(--base-2);
	font-size: 1.15rem;
	line-height: 1.75;
	position: relative;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.single-post .entry-content blockquote::before {
	content: "\201C";
	position: absolute;
	top: -0.5rem;
	left: 1.5rem;
	font-size: 4rem;
	color: var(--accent);
	opacity: 0.2;
	font-family: Georgia, serif;
	line-height: 1;
}

.single-post .entry-content blockquote p {
	margin-bottom: 0;
}

.single-post .entry-content img {
	border-radius: 12px;
	margin: 3rem 0;
	box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.single-post .entry-content img:hover {
	transform: translateY(-2px);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 168, 106, 0.2);
}

.single-post .entry-content .wp-block-image {
	margin: 2.5rem 0;
}

.single-post .entry-content .wp-block-image figcaption {
	margin-top: 0.8rem;
	font-size: 0.9rem;
	color: var(--contrast-3);
	text-align: center;
	font-style: italic;
}

.single-post .entry-content a {
	color: var(--accent);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 200ms ease;
}

.single-post .entry-content a:hover {
	border-bottom-color: var(--accent);
}

.single-post .entry-content code {
	background: rgba(201, 168, 106, 0.1);
	padding: 0.2rem 0.5rem;
	border-radius: 4px;
	font-size: 0.9em;
	color: var(--accent);
}

.single-post .entry-content pre {
	background: linear-gradient(135deg, #0a0a0a 0%, #111 100%);
	padding: 2rem;
	border-radius: 12px;
	overflow-x: auto;
	margin: 2.5rem 0;
	border: 1px solid rgba(201, 168, 106, 0.2);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.single-post .entry-content pre code {
	background: transparent;
	padding: 0;
	color: var(--base-2);
}

/* Related Articles */
.epn-related-articles {
	background: var(--contrast);
	padding: 4rem 2rem;
	margin-top: 4rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.epn-related-articles-inner {
	max-width: 1160px;
	margin: 0 auto;
}

.epn-related-articles-title {
	font-size: 2rem;
	margin-bottom: 2.5rem;
	color: var(--base-3);
	text-align: center;
	position: relative;
	padding-bottom: 1rem;
}

.epn-related-articles-title::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 2px;
	background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
}

.epn-related-articles-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

/* Article Cards */
.epn-article-card,
.epn-article-card-compact {
	background: #111111;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	overflow: hidden;
	transition: all 240ms ease;
	display: flex;
	flex-direction: column;
}

.epn-article-card:hover,
.epn-article-card-compact:hover {
	border-color: var(--accent);
	transform: translateY(-3px);
	box-shadow: 0 14px 35px rgba(201, 168, 106, 0.15);
}

.epn-article-card-image {
	position: relative;
	width: 100%;
	height: 200px;
	overflow: hidden;
	display: block;
}

.epn-article-card-compact .epn-article-card-image {
	height: 180px;
}

.epn-article-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 400ms ease;
}

.epn-article-card:hover .epn-article-card-image img {
	transform: scale(1.05);
}

.epn-article-card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
	opacity: 0.7;
	transition: opacity 240ms ease;
}

.epn-article-card:hover .epn-article-card-overlay {
	opacity: 0.9;
}

.epn-article-card-content {
	padding: 1.5rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.epn-article-card-compact .epn-article-card-content {
	padding: 1.25rem;
}

.epn-article-card-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.epn-article-card-category {
	display: inline-block;
	padding: 0.3rem 0.8rem;
	background: rgba(201, 168, 106, 0.1);
	border: 1px solid rgba(201, 168, 106, 0.3);
	border-radius: 999px;
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
	text-decoration: none;
	transition: all 200ms ease;
	width: fit-content;
}

.epn-article-card-category:hover {
	background: rgba(201, 168, 106, 0.2);
	border-color: var(--accent);
	color: var(--accent-2);
}

.epn-article-card-title {
	font-size: 1.1rem;
	line-height: 1.4;
	margin: 0 0 0.8rem 0;
	color: var(--base-3);
}

.epn-article-card-compact .epn-article-card-title {
	font-size: 1rem;
}

.epn-article-card-title a {
	color: var(--base-3);
	text-decoration: none;
	transition: color 200ms ease;
}

.epn-article-card-title a:hover {
	color: var(--accent);
}

.epn-article-card-excerpt {
	font-size: 0.9rem;
	line-height: 1.6;
	color: var(--base-2);
	margin: 0 0 1rem 0;
	flex: 1;
}

.epn-article-card-meta {
	display: flex;
	gap: 1rem;
	align-items: center;
	font-size: 0.8rem;
	color: var(--contrast-3);
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.epn-article-card-author {
	color: var(--accent);
	text-decoration: none;
	transition: color 200ms ease;
}

.epn-article-card-author:hover {
	color: var(--accent-2);
}

.epn-article-card-date {
	opacity: 0.7;
}

/* =========
   LATEST ARTICLES (HOMEPAGE)
   ========= */

.epn-latest-articles {
	padding: 4rem 1.5rem 4.5rem;
	background: var(--contrast);
}

.epn-latest-articles-inner {
	max-width: 1160px;
	margin: 0 auto;
}

.epn-latest-articles-header {
	text-align: center;
	margin-bottom: 3rem;
}

.epn-latest-articles-title {
	font-size: clamp(2rem, 4vw, 2.8rem);
	color: var(--base-3);
	margin: 0;
	position: relative;
	padding-bottom: 1rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.epn-latest-articles-title::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100px;
	height: 3px;
	background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
	border-radius: 2px;
}

.epn-latest-articles-grid {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
	gap: 2rem;
	width: 100%;
}

/* Ensure cards in homepage grid don't expand to full width */
.epn-latest-articles-grid .epn-article-card,
.epn-latest-articles-grid .epn-article-card-compact {
	max-width: 100%;
	width: 100%;
	min-width: 0;
	/* Prevent grid items from overflowing */
}

@media (max-width: 900px) {
	.epn-latest-articles {
		padding: 3rem 1.5rem 3.5rem;
	}

	.epn-latest-articles-grid {
		grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
		gap: 1.5rem;
	}
}

@media (max-width: 600px) {
	.epn-latest-articles-grid {
		grid-template-columns: 1fr;
	}
}

.epn-latest-articles-footer {
	text-align: center;
	margin-top: 3rem;
}

/* Archive Layout */
.epn-archive-header {
	max-width: 1160px;
	margin: 0 auto 3rem;
	padding: 2rem 2rem 0;
	text-align: center;
}

/* Hide default archive post content but keep the article wrapper for our cards */
body.epn-archive-custom-cards .epn-archive-grid article .entry-header,
body.epn-archive-custom-cards .epn-archive-grid article .entry-content,
body.epn-archive-custom-cards .epn-archive-grid article .entry-meta,
body.epn-archive-custom-cards .epn-archive-grid article .entry-summary,
body.epn-archive-custom-cards .epn-archive-grid article .entry-title {
	display: none !important;
}

/* Show only our custom cards in archive grid */
body.epn-archive-custom-cards .epn-archive-grid article:not(.epn-article-card):not(.epn-article-card-compact)>*:not(.epn-article-card):not(.epn-article-card-compact) {
	display: none !important;
}

/* Hide ALL default archive content that appears after our cards */
body.epn-archive-custom-cards .main-content .page-header,
body.epn-archive-custom-cards .main-content .archive-description,
body.epn-archive-custom-cards .main-content .taxonomy-description,
body.epn-archive-custom-cards .main-content .category-description,
body.epn-archive-custom-cards .main-content .term-description,
body.epn-archive-custom-cards .main-content .archive-header,
body.epn-archive-custom-cards .main-content .page-title,
body.epn-archive-custom-cards .main-content h1:not(.epn-archive-title),
body.epn-archive-custom-cards .main-content h2:not(.epn-related-articles-title) {
	display: none !important;
}

/* Hide any default post thumbnails, images, or content that appear at bottom */
body.epn-archive-custom-cards .main-content article:not(.epn-article-card) .post-thumbnail,
body.epn-archive-custom-cards .main-content article:not(.epn-article-card) img,
body.epn-archive-custom-cards .main-content article:not(.epn-article-card) .entry-content,
body.epn-archive-custom-cards .main-content article:not(.epn-article-card) .entry-header,
body.epn-archive-custom-cards .main-content article:not(.epn-article-card) .entry-meta,
body.epn-archive-custom-cards .main-content article:not(.epn-article-card) {
	display: none !important;
}

/* Hide default category/tag lists, entry footers, and any other archive meta */
body.epn-archive-custom-cards .main-content .cat-links,
body.epn-archive-custom-cards .main-content .tags-links,
body.epn-archive-custom-cards .main-content .entry-footer,
body.epn-archive-custom-cards .main-content .archive-meta,
body.epn-archive-custom-cards .main-content .taxonomy-description p,
body.epn-archive-custom-cards .main-content .category-description p {
	display: none !important;
}

/* Hide any loop or content wrapper that might contain default archive content */
body.epn-archive-custom-cards .main-content .main-navigation+*:not(.epn-archive-header):not(.epn-archive-grid),
body.epn-archive-custom-cards .main-content>*:not(.epn-archive-header):not(.epn-archive-grid):not(.epn-related-articles) {
	display: none !important;
}

/* Aggressively hide everything after .epn-archive-grid */
body.epn-archive-custom-cards .main-content .epn-archive-grid~* {
	display: none !important;
}

/* Hide all default archive loop content */
body.epn-archive-custom-cards .main-content .inside-article,
body.epn-archive-custom-cards .main-content .main-navigation,
body.epn-archive-custom-cards .main-content .paging-navigation {
	display: none !important;
}

/* Show only our custom elements */
body.epn-archive-custom-cards .main-content .epn-archive-header,
body.epn-archive-custom-cards .main-content .epn-archive-grid {
	display: block !important;
}

/* Hide entry-header completely on single posts (we show title in hero) */
.single-post .entry-header {
	display: none !important;
}

/* Hide GeneratePress page header featured image on single posts */
.single-post .page-header-image-single,
.single-post .featured-image.page-header-image-single,
.single-post .page-header-image {
	display: none !important;
}

/* Ensure custom cards are visible */
.epn-archive-grid .epn-article-card,
.epn-archive-grid .epn-article-card-compact {
	display: flex !important;
}

.epn-archive-title {
	font-size: clamp(2rem, 4vw, 3rem);
	color: var(--base-3);
	margin: 0;
	position: relative;
	padding-bottom: 1rem;
}

.epn-archive-title::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100px;
	height: 2px;
	background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
}

.epn-archive-description {
	max-width: 800px;
	margin: 1.5rem auto 0;
	padding: 0 2rem;
	text-align: center;
	color: var(--base-2);
	font-size: 1rem;
	line-height: 1.6;
}

.epn-archive-description {
	max-width: 800px;
	margin: 1.5rem auto 0;
	padding: 0 2rem;
	text-align: center;
	color: var(--base-2);
	font-size: 1rem;
	line-height: 1.6;
}

.epn-archive-grid {
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 2rem 4rem;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 2rem;
}

/* Responsive */
@media (max-width: 900px) {
	.epn-article-hero {
		margin: -100px -20px 2rem -20px;
		height: 50vh;
		min-height: 350px;
	}

	.epn-article-hero-content {
		padding: 2rem 1.5rem;
	}

	.epn-article-metadata-inner {
		padding: 0 1.5rem;
		gap: 1.5rem;
	}

	.single-post .entry-content {
		padding: 0 1.5rem;
	}

	.epn-related-articles {
		padding: 3rem 1.5rem;
	}

	.epn-related-articles-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.epn-archive-grid {
		grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
		gap: 1.5rem;
		padding: 0 1.5rem 3rem;
	}
}

@media (max-width: 600px) {
	.epn-article-hero {
		height: 40vh;
		min-height: 300px;
		margin: -100px -15px 1.5rem -15px;
	}

	.epn-article-hero-content {
		padding: 1.5rem 1rem;
	}

	.epn-article-hero-title {
		font-size: clamp(1.5rem, 6vw, 2rem);
	}

	.epn-article-metadata-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}

	.single-post .entry-content {
		padding: 0 1rem;
	}

	.single-post .entry-content h2 {
		font-size: 1.75rem;
	}

	.epn-archive-grid {
		grid-template-columns: 1fr;
	}
}

/* =========================================================
   ACCESSIBILITY — WCAG 2.2 AA contrast + determinable bg
   axe cannot judge contrast over gradients/images/video and
   returns those as "incomplete" (surfaced as non-blocking
   warnings by the CI gate). These rules give text a
   determinable solid background and adequate contrast.
   ========================================================= */

/* CTA buttons render with GeneratePress's global gold (--accent) background and
   light text (1.71:1), and the primary variant adds a gold *gradient*
   (undeterminable). Force a solid gold fill + near-black text (#0a0a0a on
   #C9A86A = 9:1). -webkit-text-fill-color overrides GP's fill; the selector
   specificity (0,3,1) beats GP's a.wp-block-button__link:not(.has-background). */
.entry-content .wp-block-button a.wp-block-button__link,
.epn-inline-btn {
	background: var(--accent) !important;
	color: #0a0a0a !important;
	-webkit-text-fill-color: #0a0a0a !important;
	border-color: var(--accent);
}

/* Restore primary↔secondary CTA hierarchy without losing AA. The uniform rule
   above (0,3,1) forces EVERY CTA solid gold, flattening the authored ghost/
   outline secondaries (a luxury brand needs the two tiers visually distinct).
   Re-style the secondaries with a determinable dark fill + light label + gold
   hairline border: #e0e0e0 on #151515 = 13.8:1, border #C9A86A on #151515 =
   8.3:1 (non-text). .epn-btn-ghost/.epn-btn-outline sit on the .wp-block-button
   wrapper, so `.epn-btn-ghost.wp-block-button a.wp-block-button__link` is (0,4,1)
   under .entry-content (beats the uniform rule) and (0,3,1) bare (beats GP's
   global gold on the hero, which renders OUTSIDE .entry-content). !important is
   mandatory — the uniform rule sets background/color/-webkit-text-fill-color
   with it. A SOLID fill stays axe-determinable even over the hero video, so
   primary reads as bold gold and secondary as quiet dark. */
.entry-content .epn-btn-ghost.wp-block-button a.wp-block-button__link,
.entry-content .epn-btn-outline.wp-block-button a.wp-block-button__link,
.epn-btn-ghost.wp-block-button a.wp-block-button__link,
.epn-btn-outline.wp-block-button a.wp-block-button__link {
	background: #151515 !important;
	color: #e0e0e0 !important;
	-webkit-text-fill-color: #e0e0e0 !important;
	border-color: var(--accent) !important;
}

.entry-content .epn-btn-ghost.wp-block-button a.wp-block-button__link:hover,
.entry-content .epn-btn-outline.wp-block-button a.wp-block-button__link:hover,
.epn-btn-ghost.wp-block-button a.wp-block-button__link:hover,
.epn-btn-outline.wp-block-button a.wp-block-button__link:hover {
	border-color: var(--accent-2) !important;
	transform: translateY(-1px);
}

/* Contact-CTA band uses a near-black gradient — swap to a solid so the white
   text on it is a determinable, passing pair (homepage + about share it). */
.epn-contact-cta {
	background: #0a0a0a;
}

/* About hero is a Cover block over a dark texture image — add an opaque dark
   scrim on the text container so contrast over the image is determinable.
   Visually identical (the cover is already near-black). */
.epn-about-hero .wp-block-cover__inner-container {
	background-color: #0a0a0a;
}