/*
Theme Name: Bridge Child
Template: bridge
Description: Child theme for Bridge — Expertos en Pensiones
Version: 1.0
*/

/* ============================================================
   BLOG PAGE — Custom design
   ============================================================ */

/* Reset conflictos del padre en la página blog */
.eep-blog-page {
	width: 100%;
	font-family: inherit;
}
.eep-blog-page .container,
.eep-blog-page .container_inner {
	max-width: 100% !important;
	width: 100% !important;
	padding: 0 !important;
}

/* ---- Hero ------------------------------------------------- */
.eep-blog-hero {
	background: #F5C800;
	padding: 60px 0 120px;
}
.eep-blog-hero__inner,
.eep-blog-featured__inner,
.eep-blog-recent__inner,
.eep-blog-cta__inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 32px;
}
.eep-blog-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #111;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	border-radius: 20px;
	padding: 5px 14px;
	margin-bottom: 28px;
}
.eep-dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #F5C800;
}
.eep-blog-hero__title {
	font-size: clamp(42px, 6vw, 76px);
	font-weight: 900;
	line-height: 1.05;
	color: #111;
	margin: 0 0 20px;
	letter-spacing: -.02em;
}
.eep-blog-hero__subtitle {
	font-size: 16px;
	color: #333;
	margin: 0 0 36px;
	max-width: 420px;
	line-height: 1.5;
}

/* Filter pills */
.eep-blog-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.eep-filter-pill {
	display: inline-block;
	padding: 8px 18px;
	border-radius: 50px;
	border: 1.5px solid #111;
	font-size: 13px;
	font-weight: 600;
	color: #111;
	text-decoration: none;
	background: transparent;
	transition: background .18s, color .18s;
}
.eep-filter-pill:hover,
.eep-filter-pill.active {
	background: #111;
	color: #F5C800;
}

/* ---- Featured card --------------------------------------- */
.eep-blog-featured {
	background: transparent;
	margin-top: -90px;
	padding: 0;
	position: relative;
	z-index: 2;
}
.eep-featured-card {
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: #111;
	border-radius: 16px;
	overflow: hidden;
	min-height: 340px;
}
.eep-featured-card__content {
	padding: 40px 44px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 18px;
}
.eep-featured-card__badges {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.eep-badge {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .12em;
	border-radius: 4px;
	padding: 4px 10px;
	text-transform: uppercase;
}
.eep-badge--highlight {
	background: #F5C800;
	color: #111;
}
.eep-badge--outline {
	border: 1.5px solid #555;
	color: #aaa;
}
.eep-featured-card__title,
.eep-blog-featured .eep-featured-card__title {
	font-size: clamp(22px, 2.4vw, 32px) !important;
	font-weight: 800 !important;
	color: #fff !important;
	margin: 0 !important;
	line-height: 1.22 !important;
	text-transform: none !important;
	letter-spacing: -0.02em !important;
}
.eep-featured-card__title a,
.eep-blog-featured .eep-featured-card__title a {
	color: #fff !important;
	text-decoration: none !important;
	text-transform: none !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	letter-spacing: inherit !important;
}
.eep-featured-card__excerpt {
	font-size: 14px;
	color: #aaa;
	line-height: 1.6;
	margin: 0;
}
.eep-featured-card__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #888;
}
.eep-author-avatar {
	width: 28px !important;
	height: 28px !important;
	border-radius: 50%;
}
.eep-author-name {
	color: #ccc;
	font-weight: 600;
}
.eep-meta-sep { color: #555; }
.eep-featured-card__cta {
	display: inline-block;
	background: #F5C800;
	color: #111;
	font-size: 13px;
	font-weight: 800;
	padding: 10px 22px;
	border-radius: 50px;
	text-decoration: none;
	align-self: flex-start;
	transition: opacity .18s;
}
.eep-featured-card__cta:hover { opacity: .85; }
.eep-featured-card__image {
	position: relative;
	overflow: hidden;
	min-height: 340px;
}
.eep-featured-card__image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.eep-featured-card__image-placeholder {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #3a342c 0%, #2a251f 60%, #1a1612 100%);
}

/* ---- Image skeleton (shimmer until img loads) -------------- */
@keyframes eep-skeleton-shimmer {
	0%   { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

.eep-img-skeleton-wrap {
	position: relative;
}

.eep-image-skeleton {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		90deg,
		#d9d9d9 0%,
		#ececec 45%,
		#d9d9d9 90%
	);
	background-size: 200% 100%;
	animation: eep-skeleton-shimmer 1.35s ease-in-out infinite;
	pointer-events: none;
	transition: opacity 0.35s ease;
}

.eep-post-card:nth-child(even) .eep-image-skeleton {
	background: linear-gradient(
		90deg,
		#2a2520 0%,
		#3a3530 45%,
		#2a2520 90%
	);
	background-size: 200% 100%;
}

.eep-featured-card__image .eep-image-skeleton {
	background: linear-gradient(
		90deg,
		#2a2520 0%,
		#3a3530 45%,
		#2a2520 90%
	);
	background-size: 200% 100%;
}

.eep-img-skeleton-wrap img.eep-img-skeleton-target {
	opacity: 0;
	transition: opacity 0.35s ease;
}

.eep-img-skeleton-wrap.is-loaded .eep-image-skeleton {
	opacity: 0;
}

.eep-img-skeleton-wrap.is-loaded img.eep-img-skeleton-target {
	opacity: 1;
}

/* ---- Recent posts ---------------------------------------- */
.eep-blog-recent {
	background: #fff;
	padding: 80px 0 72px;
}
.eep-section-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 32px;
	position: relative;
}
.eep-section-filter-trigger {
	display: none;
}
.eep-section-title {
	font-size: 26px;
	font-weight: 800;
	color: #111;
	margin: 0;
}
.eep-section-tabs {
	display: flex;
	gap: 20px;
}
.eep-tab {
	font-size: 13px;
	font-weight: 600;
	color: #888;
	cursor: pointer;
	padding-bottom: 2px;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	font-family: inherit;
	transition: color .15s;
}
.eep-tab:hover { color: #333; }
.eep-tab.active {
	color: #111;
	border-bottom: 2px solid #111;
}

/* Posts grid — embeddable block (pages / WPBakery) */
.eep-posts-grid-block {
	padding: 64px 0;
}
.eep-posts-grid-block__inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 24px;
}
.eep-posts-grid-block__title {
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	font-weight: 700;
	margin: 0 0 32px;
	color: #0A0A0A;
}
.eep-posts-grid__empty {
	grid-column: 1 / -1;
	color: #666;
	margin: 0;
}

/* Posts grid */
.eep-posts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
/* 4th and 5th cards span wider (2-col row) */
.eep-posts-grid .eep-post-card:nth-child(4),
.eep-posts-grid .eep-post-card:nth-child(5) {
	grid-column: span 1;
}
/* When only 5 cards make the last row 2-col centered */
@media (min-width: 900px) {
	.eep-posts-grid .eep-post-card:nth-child(4) { grid-column: 1 / 2; }
	.eep-posts-grid .eep-post-card:nth-child(5) { grid-column: 2 / 3; }
}

/* Card — alternating yellow/dark */
.eep-post-card {
	border-radius: 18px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	border: 2px solid #0A0A0A;
	background: #F5C800;
	color: #0A0A0A;
	transition: box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Image area */
.eep-post-card__image-wrap {
	display: block;
	position: relative;
	width: 100%;
	height: 200px;
	overflow: hidden;
	background: #1a1601;
	flex-shrink: 0;
	border-bottom: 2px solid #0A0A0A;
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
	transform-origin: center center;
	backface-visibility: hidden;
}
.eep-post-card__image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.eep-post-card__image-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #3a342c 0%, #2a251f 60%, #1a1612 100%);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.eep-post-card:hover {
		box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
	}

	.eep-post-card:hover .eep-post-card__image-wrap {
		transform: scale(1.03);
	}
}

.eep-post-card:nth-child(even) {
	background: #0A0A0A;
	color: #fff;
}

/* Card body */
.eep-post-card__body {
	padding: 22px 24px 24px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* Category badge */
.eep-category-badge {
	display: inline-flex;
	align-self: flex-start;
	padding: 5px 11px;
	border-radius: 999px;
	font-size: 10.5px !important;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	margin-bottom: 14px;
	line-height: 1;
}
.eep-post-card:nth-child(odd) .eep-category-badge {
	background: #0A0A0A;
	color: #F5C800;
}
.eep-post-card:nth-child(even) .eep-category-badge {
	background: #F5C800;
	color: #0A0A0A;
}

/* Title */
.eep-post-card__title,
.eep-posts-grid .eep-post-card__title {
	font-size: 18px !important;
	font-weight: 700 !important;
	line-height: 1.18 !important;
	letter-spacing: -0.015em !important;
	text-transform: none !important;
	margin: 0 0 10px !important;
	color: inherit;
}
.eep-post-card__title a,
.eep-posts-grid .eep-post-card__title a {
	color: inherit !important;
	text-decoration: none !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	text-transform: none !important;
	letter-spacing: inherit !important;
}
.eep-post-card__title a:hover { text-decoration: underline !important; }

/* Excerpt */
.eep-post-card__excerpt,
.eep-posts-grid .eep-post-card__excerpt {
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 1.55 !important;
	margin: 0 0 18px !important;
	flex: 1;
}
.eep-post-card:nth-child(odd)  .eep-post-card__excerpt { color: rgba(10,10,10,.72); }
.eep-post-card:nth-child(even) .eep-post-card__excerpt { color: rgba(255,255,255,.75); }

/* Meta row */
.eep-post-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 12.5px;
	font-weight: 500;
	padding-top: 14px;
	margin-top: 0;
}
.eep-post-card:nth-child(odd)  .eep-post-card__meta { border-top: 1.5px solid rgba(10,10,10,.18); }
.eep-post-card:nth-child(even) .eep-post-card__meta { border-top: 1.5px solid rgba(255,255,255,.2); }
.eep-post-card__meta .eep-author-name { font-weight: 600; }
.eep-post-card:nth-child(odd)  .eep-post-card__meta .eep-author-name { color: #0A0A0A; }
.eep-post-card:nth-child(even) .eep-post-card__meta .eep-author-name { color: #fff; }
.eep-post-card__meta .eep-meta-right {
	opacity: .7;
	white-space: nowrap;
}

/* ---- CTA section ----------------------------------------- */
.eep-blog-cta {
	background: #111;
	padding: 64px 0;
}
.eep-blog-cta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 48px;
}
.eep-blog-cta__content { flex: 1; }
.eep-cta-badge {
	display: inline-block;
	background: #F5C800;
	color: #111;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .12em;
	padding: 4px 12px;
	border-radius: 4px;
	margin-bottom: 16px;
}
.eep-blog-cta__title {
	font-size: clamp(22px, 3vw, 32px);
	font-weight: 800;
	color: #fff;
	margin: 0 0 12px;
	line-height: 1.2;
}
.eep-blog-cta__subtitle {
	font-size: 14px;
	color: #888;
	line-height: 1.6;
	margin: 0;
}
.eep-blog-cta__actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 260px;
}
.eep-cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-align: center;
	padding: 14px 24px;
	border-radius: 50px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: opacity .18s;
}
.eep-icon-whatsapp {
	flex-shrink: 0;
}
.eep-cta-btn:hover { opacity: .85; }
.eep-cta-btn--primary {
	background: #F5C800;
	color: #111;
}
.eep-cta-btn--secondary {
	background: transparent;
	color: #fff;
	border: 1.5px solid #444;
}

/* ---- Responsive ------------------------------------------ */
@media (max-width: 900px) {
	/* Featured card: stack image on top, content below */
	.eep-featured-card {
		grid-template-columns: 1fr;
	}
	.eep-featured-card__image {
		min-height: 210px;
		order: -1;
	}
	.eep-posts-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.eep-blog-cta__inner {
		flex-direction: column;
		align-items: flex-start;
	}
	.eep-blog-cta__actions {
		width: 100%;
	}
}

@media (max-width: 600px) {
	/* Containers */
	.eep-blog-hero__inner,
	.eep-blog-featured__inner,
	.eep-blog-recent__inner,
	.eep-blog-cta__inner {
		padding: 0 20px;
	}

	/* Hero */
	.eep-blog-hero {
		padding: 32px 0 96px;
	}
	.eep-blog-hero__title {
		font-size: 52px !important;
		letter-spacing: -0.035em !important;
	}
	.eep-blog-hero__subtitle {
		font-size: 16px;
		margin-bottom: 28px;
	}

	/* Filter pills: horizontal scroll on mobile */
	.eep-blog-filters {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 4px;
	}
	.eep-blog-filters::-webkit-scrollbar { display: none; }
	.eep-filter-pill {
		white-space: nowrap;
		flex-shrink: 0;
	}

	/* Featured: overlap hero by 64px */
	.eep-blog-featured {
		margin-top: -64px;
	}
	.eep-featured-card {
		grid-template-columns: 1fr;
		border-radius: 20px;
	}
	.eep-featured-card__image {
		min-height: 210px;
		order: -1;
	}
	.eep-featured-card__content {
		padding: 22px 22px 24px;
		border-top: 2px solid #0A0A0A;
	}
	.eep-featured-card__title,
	.eep-blog-featured .eep-featured-card__title {
		font-size: 26px !important;
	}

	/* Recent section */
	.eep-blog-recent {
		padding: 48px 0 32px;
		overflow: visible;
	}
	.eep-blog-recent__inner {
		overflow: visible;
	}
	.eep-posts-grid {
		position: relative;
		z-index: 1;
		grid-template-columns: 1fr;
		gap: 18px;
	}
	.eep-post-card__image-wrap {
		height: 160px;
	}
	.eep-post-card__body {
		padding: 18px 18px 20px;
	}
	.eep-post-card__title,
	.eep-posts-grid .eep-post-card__title {
		font-size: 19px !important;
	}

	/* Section header on mobile: collapsible filter menu */
	.eep-section-filter-trigger {
		display: inline-flex;
		align-items: center;
		gap: 4px;
		padding: 0;
		border: 0;
		background: none;
		font-family: inherit;
		font-size: 12px;
		font-weight: 600;
		color: rgba(10,10,10,.55);
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}
	.eep-section-filter-trigger__chevron {
		transition: transform .2s ease;
	}
	.eep-section-filter-trigger[aria-expanded="true"] .eep-section-filter-trigger__chevron {
		transform: rotate(180deg);
	}
	.eep-section-tabs {
		display: none;
		position: absolute;
		top: calc(100% + 8px);
		right: 0;
		z-index: 60;
		min-width: 180px;
		flex-direction: column;
		gap: 0;
		padding: 8px 0;
		background: #fff;
		border: 1px solid rgba(10,10,10,.12);
		border-radius: 12px;
		box-shadow: 0 12px 32px rgba(0,0,0,.12);
	}
	.eep-section-tabs.is-open {
		display: flex;
	}
	.eep-section-tabs .eep-tab {
		width: 100%;
		text-align: left;
		padding: 10px 16px;
		border-bottom: none;
	}
	.eep-section-tabs .eep-tab.active {
		background: rgba(245,200,0,.18);
	}
	.eep-section-header {
		align-items: center;
		position: relative;
		z-index: 50;
		isolation: isolate;
	}
	.eep-section-title {
		font-size: 24px !important;
	}

	/* CTA section: card style on mobile */
	.eep-blog-cta {
		padding: 24px 20px 40px;
		background: transparent;
	}
	.eep-blog-cta__inner {
		background: #0A0A0A;
		border-radius: 20px;
		padding: 32px 24px;
		flex-direction: column;
	}
	.eep-blog-cta__title {
		font-size: 26px !important;
	}
	.eep-blog-cta__actions {
		width: 100%;
	}
	.eep-cta-btn {
		display: flex;
		align-items: center;
		justify-content: center;
	}
}

/* ============================================================
   ARTICLE PAGE — Single post redesign
   Design ref: variation-c.jsx → ArticleYellow / MobileArticle
   ============================================================ */

/* Page wrapper — aggressive Bridge parent overrides.
   We keep Bridge's .content and .content_inner wrappers intact,
   but reset their default paddings, margins, and backgrounds on single posts
   so our custom .eep-article-page can span full-width without any gaps. */
.single-post .content {
	background-color: #fff !important;
	padding: 0 !important;
	margin-bottom: 0 !important;
}

.single-post .content_inner {
	padding: 0 !important;
	margin: 0 !important;
	background-color: #fff !important;
}

.eep-article-page {
	width: 100% !important;
	max-width: 100% !important;
	font-family: inherit !important;
	color: #0A0A0A !important;
	background: #fff !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	overflow: visible !important;
}

/* Reset any Bridge wrappers around or inside our layout */
.wrapper .eep-article-page,
.wrapper_inner .eep-article-page,
.content .eep-article-page,
.content_inner .eep-article-page,
.full_width .eep-article-page {
	max-width: 100% !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

.eep-article-page *,
.eep-article-page *::before,
.eep-article-page *::after {
	box-sizing: border-box;
}

/* Reset Bridge container/grid classes inside our page */
.eep-article-page .container,
.eep-article-page .container_inner,
.eep-article-page .full_width,
.eep-article-page .full_width_inner,
.eep-article-page .grid_section,
.eep-article-page .section_inner {
	max-width: 100% !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* ---- Yellow Hero Band ---------------------------------------- */
.eep-article-hero {
	background: #F5C800 !important;
	color: #0A0A0A !important;
	position: relative;
	display: block !important;
	width: 100% !important;
}

.eep-article-page .eep-article-hero {
	background: #F5C800 !important;
}

.eep-article-hero__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 32px 56px 72px;
}

/* Back link */
.eep-article-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 24px 0;
	font-family: ui-monospace, monospace;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(10, 10, 10, 0.7);
	text-decoration: none;
	transition: color 0.15s;
}

.eep-article-back:hover {
	color: #0A0A0A;
}

/* Category pills */
.eep-article-pills {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 36px;
}

.eep-article-pill {
	padding: 7px 16px;
	border-radius: 999px;
	font-family: ui-monospace, monospace;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1;
	transition: background 0.15s, color 0.15s;
}

.eep-article-pill--filled {
	background: #0A0A0A;
	color: #F5C800;
}

.eep-article-pill--filled:hover {
	background: #222;
	color: #F5C800;
}

.eep-article-pill--outline {
	border: 2px solid #0A0A0A;
	color: #0A0A0A;
	background: transparent;
}

.eep-article-pill--outline:hover {
	background: #0A0A0A;
	color: #F5C800;
}

/* Title */
.eep-article-hero__title {
	font-size: clamp(42px, 6.5vw, 96px) !important;
	font-weight: 700 !important;
	line-height: 0.96 !important;
	letter-spacing: -0.035em !important;
	color: #0A0A0A !important;
	margin: 0 0 32px !important;
	text-wrap: balance;
	text-transform: none !important;
}

/* Subtitle */
.eep-article-hero__subtitle {
	font-size: 22px;
	font-weight: 400;
	line-height: 1.5;
	color: rgba(10, 10, 10, 0.78);
	margin: 0 0 36px;
	max-width: 820px;
	text-wrap: pretty;
}

/* Byline */
.eep-article-byline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 24px;
	border-top: 2px solid #0A0A0A;
}

.eep-article-byline__left {
	display: flex;
	align-items: center;
	gap: 14px;
}

/* Avatar */
.eep-article-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	background: #D6C39F;
	display: flex;
	align-items: center;
	justify-content: center;
}

.eep-article-avatar__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.eep-article-avatar__initials {
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	line-height: 1;
}

.eep-article-byline__name {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: #0A0A0A;
}

.eep-article-byline__date {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	color: rgba(10, 10, 10, 0.65);
	margin-top: 2px;
}

.eep-article-byline__actions {
	display: flex;
	gap: 8px;
}

.eep-article-btn-outline {
	padding: 10px 16px;
	border-radius: 999px;
	border: 2px solid #0A0A0A;
	background: transparent;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	color: #0A0A0A;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
	line-height: 1;
}

.eep-article-btn-outline:hover {
	background: #0A0A0A;
	color: #F5C800;
}

.eep-article-btn-share .eep-btn-icon {
	display: none;
}

/* ---- Hero Image (overlap) ------------------------------------ */
.eep-article-hero-image {
	max-width: 1200px;
	margin: -56px auto 0;
	padding: 0 56px;
	position: relative;
	z-index: 1;
}

.eep-article-hero-image__inner {
	border-radius: 24px;
	overflow: hidden;
	border: 2.5px solid #0A0A0A;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
	min-height: 280px;
}

.eep-article-hero-image__inner .eep-image-skeleton {
	min-height: 280px;
}

.eep-article-hero-image__img {
	width: 100%;
	height: auto;
	max-height: 520px;
	object-fit: cover;
	display: block;
}

.eep-article-hero-image__placeholder {
	width: 100%;
	height: 420px;
	background: linear-gradient(135deg, #3a342c 0%, #2a251f 60%, #1a1612 100%);
}

/* ---- Article Body -------------------------------------------- */
.eep-article__body {
	max-width: 760px;
	margin: 0 auto;
	padding: 72px 24px 32px;
	font-weight: 400;
	line-height: 1.7;
	color: #0A0A0A;
}

/* Lead paragraph — first child */
.eep-article__body > p:first-child {
	font-weight: 500 !important;
	line-height: 1.55 !important;
	color: #0A0A0A !important;
	margin: 0 0 32px !important;
	letter-spacing: -0.005em;
}

/* Regular paragraphs */
.eep-article__body > p {
	margin: 0 0 28px;
	color: rgba(10, 10, 10, 0.85);
}

/* Headings within article */
.eep-article__body h2 {
	font-weight: 700 !important;
	line-height: 1.1 !important;
	letter-spacing: -0.025em !important;
	margin: 40px 0 18px !important;
	color: #0A0A0A !important;
	text-transform: none !important;
}

.eep-article__body h3 {
	font-weight: 700 !important;
	line-height: 1.15 !important;
	letter-spacing: -0.02em !important;
	margin: 36px 0 14px !important;
	color: #0A0A0A !important;
	text-transform: none !important;
}

.eep-article__body h4 {
	font-weight: 700 !important;
	line-height: 1.2 !important;
	margin: 32px 0 12px !important;
	color: #0A0A0A !important;
	text-transform: none !important;
}

/* Lists */
.eep-article__body ul,
.eep-article__body ol {
	margin: 0 0 32px;
	padding: 0 0 0 22px;
	color: rgba(10, 10, 10, 0.85);
}

.eep-article__body li {
	margin-bottom: 12px;
}

.eep-article__body li strong {
	color: #0A0A0A;
}

/* Links within article */
.eep-article__body a {
	color: #0A0A0A;
	text-decoration: underline;
	text-decoration-color: #F5C800;
	text-underline-offset: 3px;
	text-decoration-thickness: 2px;
	transition: text-decoration-color 0.15s;
}

.eep-article__body a:hover {
	text-decoration-color: #0A0A0A;
}

/* Images within article */
.eep-article__body img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	margin: 16px 0;
}


/* ---- CTA Card ------------------------------------------------ */
.eep-article-cta {
	padding: 32px 56px 64px;
}

.eep-article-cta__inner {
	max-width: 1200px;
	margin: 0 auto;
	background: #0A0A0A;
	color: #fff;
	border-radius: 24px;
	padding: 48px 56px;
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 40px;
	align-items: center;
}

.eep-article-cta__title {
	font-size: 36px !important;
	font-weight: 700 !important;
	line-height: 1.1 !important;
	letter-spacing: -0.02em !important;
	margin: 0 !important;
	text-wrap: balance;
	color: #fff !important;
	text-transform: none !important;
}

.eep-article-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #F5C800;
	color: #0A0A0A;
	padding: 18px 28px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	justify-self: end;
	transition: opacity 0.15s;
	white-space: nowrap;
}

.eep-article-cta__btn:hover {
	opacity: 0.85;
	color: #0A0A0A;
}

/* ---- Related Posts ------------------------------------------- */
.eep-article-related {
	border-top: 1px solid #E5E5E5;
	padding: 24px 56px 80px;
}

.eep-article-related__inner {
	max-width: 1200px;
	margin: 0 auto;
}

.eep-article-related__title {
	font-size: 36px !important;
	font-weight: 700 !important;
	line-height: 1.05 !important;
	letter-spacing: -0.025em !important;
	color: #0A0A0A !important;
	margin: 40px 0 32px !important;
	text-transform: none !important;
}

/* The related posts grid reuses .eep-posts-grid and .eep-post-card
   styles from the blog index above */
.eep-posts-grid--related {
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

/* ---- Article Responsive: Tablet (768-1279px) ----------------- */
@media (max-width: 1279px) and (min-width: 768px) {

	.eep-article-hero__inner {
		padding: 24px 32px 56px;
	}

	.eep-article-hero__title {
		font-size: 72px !important;
	}

	.eep-article-hero__subtitle {
		font-size: 20px;
	}

	.eep-article-hero-image {
		padding: 0 32px;
		margin-top: -48px;
	}

	.eep-article-cta {
		padding: 28px 32px 56px;
	}

	.eep-article-cta__inner {
		padding: 40px 40px;
	}

	.eep-article-related {
		padding: 24px 32px 64px;
	}

	.eep-posts-grid--related {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ---- Article Responsive: Mobile (<768px) --------------------- */
@media (max-width: 767px) {

	/* Hero */
	.eep-article-hero__inner {
		padding: 20px 20px 80px;
	}

	.eep-article-back {
		padding: 20px 0;
		font-size: 11px;
	}

	.eep-article-pills {
		margin-bottom: 24px;
		gap: 6px;
	}

	.eep-article-pill {
		padding: 6px 12px;
		font-size: 10px;
	}

	.eep-article-hero__title {
		font-size: 42px !important;
		line-height: 0.98 !important;
		letter-spacing: -0.03em !important;
		margin: 0 0 20px !important;
	}

	.eep-article-hero__subtitle {
		font-size: 16px;
		line-height: 1.5;
		margin: 0 0 24px;
	}

	.eep-article-byline {
		flex-direction: row;
		gap: 12px;
		padding-top: 20px;
	}

	.eep-article-byline__actions {
		flex-shrink: 0;
	}

	.eep-article-byline__actions .eep-article-btn-outline:last-child {
		display: none; /* Hide PDF on mobile, keep Share */
	}

	/* Mobile share button: round with icon, no text */
	.eep-article-btn-share {
		width: 38px;
		height: 38px;
		border-radius: 50% !important;
		padding: 0 !important;
		display: flex !important;
		align-items: center;
		justify-content: center;
	}

	.eep-article-btn-share .eep-btn-text {
		display: none;
	}

	.eep-article-btn-share .eep-btn-icon {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.eep-article-avatar {
		width: 40px;
		height: 40px;
	}

	.eep-article-avatar__initials {
		font-size: 14px;
	}

	.eep-article-byline__name {
		font-size: 13.5px;
	}

	.eep-article-byline__date {
		font-size: 11.5px;
	}

	/* Hero image */
	.eep-article-hero-image {
		padding: 0 20px;
		margin-top: -52px;
	}

	.eep-article-hero-image__inner {
		border-radius: 18px;
		border-width: 2px;
	}

	.eep-article-hero-image__img {
		max-height: 280px;
	}

	.eep-article-hero-image__placeholder {
		height: 240px;
	}

	/* Body */
	.eep-article__body {
		padding: 36px 24px 24px;
	}

	.eep-article__body > p:first-child {
		margin: 0 0 24px !important;
	}

	.eep-article__body > p {
		margin: 0 0 24px;
	}

	.eep-article__body h2 {
		margin: 32px 0 14px !important;
	}

	.eep-article__body h3 {
		margin: 28px 0 12px !important;
	}


	/* CTA mobile */
	.eep-article-cta {
		padding: 20px 20px 32px;
	}

	.eep-article-cta__inner {
		border-radius: 20px;
		padding: 32px 24px;
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.eep-article-cta__title {
		font-size: 24px !important;
	}

	.eep-article-cta__btn {
		width: 100%;
		justify-self: stretch;
		text-align: center;
		padding: 14px 20px;
		font-size: 14px;
	}

	/* Related posts mobile */
	.eep-article-related {
		padding: 24px 20px 36px;
	}

	.eep-article-related__title {
		font-size: 24px !important;
		margin: 24px 0 18px !important;
	}

	.eep-posts-grid--related {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}

/* ============================================================
   ANIMATED NAVIGATION — View Transition API (MPA)
   Per-post view-transition-name links card image ↔ article hero.
   Requires: Chrome 126+, Edge 126+, Safari 18.2+
   ============================================================ */
@keyframes eep-vt-fade-out {
	to {
		opacity: 0;
		transform: scale(1.03);
	}
}

@keyframes eep-vt-fade-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes eep-vt-zoom-out {
	to {
		opacity: 0;
		transform: scale(1.08);
		filter: blur(4px);
	}
}

@keyframes eep-vt-zoom-in {
	from {
		opacity: 0;
		transform: scale(0.82);
		filter: blur(6px);
	}
	to {
		opacity: 1;
		transform: scale(1);
		filter: blur(0);
	}
}

@media (prefers-reduced-motion: no-preference) {
	@view-transition {
		navigation: auto;
	}

	.page_header {
		view-transition-name: eep-site-header;
	}

	.eep-blog-page,
	.eep-article-page {
		view-transition-name: eep-page-content;
	}

	/* Article: split shell so hero text does not paint over the morphing image */
	body.single-post .eep-article-page {
		view-transition-name: none;
	}

	body.single-post .eep-article-hero {
		view-transition-name: eep-article-hero-text;
	}

	body.single-post .eep-article__body,
	body.single-post .eep-article-cta,
	body.single-post .eep-article-related {
		view-transition-name: eep-article-rest;
	}

	/* MDN: group(*) sets shared timing for all snapshots */
	::view-transition-group(*) {
		animation-duration: 0.58s;
		animation-timing-function: cubic-bezier(0.2, 0.9, 0.15, 1);
	}

	::view-transition-group(eep-page-content),
	::view-transition-group(eep-article-hero-text),
	::view-transition-group(eep-article-rest) {
		z-index: 1;
	}

	::view-transition-group(eep-site-header) {
		z-index: 20;
	}

	::view-transition-old(eep-site-header),
	::view-transition-new(eep-site-header) {
		animation: none;
	}

	/* Per-post image morph rules are injected in <head> via eep_print_view_transition_post_styles() */

	/* Page shell fades behind linked image morphs */
	::view-transition-old(eep-page-content) {
		transform-origin: center center;
		animation: eep-vt-fade-out 0.38s cubic-bezier(0.4, 0, 0.2, 1) both;
	}

	::view-transition-new(eep-page-content) {
		transform-origin: center center;
		animation: eep-vt-fade-in 0.44s cubic-bezier(0.16, 1, 0.3, 1) both;
	}

	::view-transition-old(eep-article-hero-text),
	::view-transition-old(eep-article-rest) {
		animation: eep-vt-fade-out 0.28s ease both;
	}

	::view-transition-new(eep-article-hero-text) {
		animation: eep-vt-fade-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both;
	}

	::view-transition-new(eep-article-rest) {
		animation: eep-vt-fade-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.36s both;
	}

	body.blog ::view-transition-old(eep-page-content) {
		animation: eep-vt-zoom-out 0.4s cubic-bezier(0.4, 0, 1, 1) both;
	}

	body.single-post ::view-transition-new(eep-page-content) {
		animation: eep-vt-fade-in 0.35s ease both;
	}

	body.single-post ::view-transition-old(eep-page-content) {
		animation: eep-vt-fade-out 0.3s ease both;
	}

	body.blog ::view-transition-new(eep-page-content) {
		animation: eep-vt-fade-in 0.44s cubic-bezier(0.16, 1, 0.3, 1) both;
	}

	/* Skip CSS entrance animations while a cross-page view transition runs */
	html.eep-vt-navigation .eep-article-hero__inner > *,
	html.eep-vt-navigation .eep-article-hero-image,
	html.eep-vt-navigation .eep-article__body,
	html.eep-vt-navigation .eep-article-cta__inner,
	html.eep-vt-navigation .eep-article-related__title,
	html.eep-vt-navigation .eep-posts-grid--related .eep-post-card {
		animation: none !important;
	}
}

/* Nav link hover */
.main_menu > ul > li > a {
	transition: opacity 0.2s ease;
}
.main_menu > ul > li > a:hover {
	opacity: 0.72;
}
.main_menu > ul > li > a .underline_dash {
	transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

/* ============================================================
   PAGE ANIMATIONS — CSS only
   ============================================================ */
@keyframes eep-page-enter {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes eep-fade-in-up {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes eep-fade-in-down {
	from {
		opacity: 0;
		transform: translateY(-16px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes eep-scale-in {
	from {
		opacity: 0;
		transform: scale(0.96);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@media (prefers-reduced-motion: no-preference) {
	/* Page shell */
	.eep-blog-page,
	.eep-article-page {
		animation: eep-page-enter 0.45s ease both;
	}

	/* Blog — hero stagger */
	.eep-blog-hero__inner > * {
		animation: eep-fade-in-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
	}
	.eep-blog-hero__inner > *:nth-child(1) { animation-delay: 0.05s; }
	.eep-blog-hero__inner > *:nth-child(2) { animation-delay: 0.12s; }
	.eep-blog-hero__inner > *:nth-child(3) { animation-delay: 0.19s; }
	.eep-blog-hero__inner > *:nth-child(4) { animation-delay: 0.26s; }

	/* Blog — featured card */
	.eep-featured-card {
		animation: eep-scale-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
	}

	/* Blog — recent section */
	.eep-section-header {
		animation: eep-fade-in-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
	}
	.eep-posts-grid:not(.eep-posts-grid--related) .eep-post-card {
		animation: eep-fade-in-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
	}
	.eep-posts-grid:not(.eep-posts-grid--related) .eep-post-card:nth-child(1) { animation-delay: 0.32s; }
	.eep-posts-grid:not(.eep-posts-grid--related) .eep-post-card:nth-child(2) { animation-delay: 0.4s; }
	.eep-posts-grid:not(.eep-posts-grid--related) .eep-post-card:nth-child(3) { animation-delay: 0.48s; }
	.eep-posts-grid:not(.eep-posts-grid--related) .eep-post-card:nth-child(4) { animation-delay: 0.56s; }
	.eep-posts-grid:not(.eep-posts-grid--related) .eep-post-card:nth-child(5) { animation-delay: 0.64s; }
	.eep-posts-grid:not(.eep-posts-grid--related) .eep-post-card:nth-child(6) { animation-delay: 0.72s; }

	/* Blog — CTA */
	.eep-blog-cta__inner {
		animation: eep-fade-in-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
	}

	/* Article — hero stagger */
	.eep-article-hero__inner > * {
		animation: eep-fade-in-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
	}
	.eep-article-hero__inner > *:nth-child(1) { animation-delay: 0.05s; }
	.eep-article-hero__inner > *:nth-child(2) { animation-delay: 0.12s; }
	.eep-article-hero__inner > *:nth-child(3) { animation-delay: 0.19s; }
	.eep-article-hero__inner > *:nth-child(4) { animation-delay: 0.26s; }
	.eep-article-hero__inner > *:nth-child(5) { animation-delay: 0.33s; }

	/* Article — hero image (wrapper only; inner keeps view-transition morph) */
	.eep-article-hero-image {
		animation: eep-scale-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
	}

	/* Article — body */
	.eep-article__body {
		animation: eep-fade-in-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
	}

	/* Article — CTA */
	.eep-article-cta__inner {
		animation: eep-fade-in-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
	}

	/* Article — related posts */
	.eep-article-related__title {
		animation: eep-fade-in-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.36s both;
	}
	.eep-posts-grid--related .eep-post-card {
		animation: eep-fade-in-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
	}
	.eep-posts-grid--related .eep-post-card:nth-child(1) { animation-delay: 0.44s; }
	.eep-posts-grid--related .eep-post-card:nth-child(2) { animation-delay: 0.52s; }
	.eep-posts-grid--related .eep-post-card:nth-child(3) { animation-delay: 0.6s; }
}

@media (prefers-reduced-motion: reduce) {
	.eep-image-skeleton {
		animation: none;
	}

	.eep-img-skeleton-wrap img.eep-img-skeleton-target {
		opacity: 1;
	}

	.eep-img-skeleton-wrap .eep-image-skeleton {
		display: none;
	}

	.eep-blog-page,
	.eep-article-page,
	.eep-blog-hero__inner > *,
	.eep-featured-card,
	.eep-section-header,
	.eep-posts-grid:not(.eep-posts-grid--related) .eep-post-card,
	.eep-blog-cta__inner,
	.eep-article-hero__inner > *,
	.eep-article-hero-image,
	.eep-article__body,
	.eep-article-cta__inner,
	.eep-article-related__title,
	.eep-posts-grid--related .eep-post-card {
		animation: none !important;
	}
}

/* ---- Print styles -------------------------------------------- */
@media print {
	.eep-article-back,
	.eep-article-byline__actions,
	.eep-article-cta,
	.eep-article-related {
		display: none !important;
	}

	.eep-article-hero {
		background: #F5C800 !important;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	.eep-article__body {
		max-width: 100%;
		padding: 24px 0;
	}
}