/*
 * Blog listing (posts page) redesign.
 * Colors/fonts pulled from the site's own registered brand palette
 * (em-navy/em-gold/em-ink/em-muted, Open Sans + Roboto) and the button
 * style already used across the site's CTA boxes (#ff6b00 pill button),
 * so this matches the rest of the theme rather than introducing a new look.
 */

.epm-blog-page {
	width: 100%;
	float: none;
}

/* ---------- Hero ---------- */
.epm-blog-hero {
	background: linear-gradient(135deg, #12374f 0%, #0a1f30 100%);
	color: #fff;
	padding: 64px 20px 72px;
	text-align: center;
}

.epm-blog-hero h1,
.epm-blog-hero .epm-blog-hero__title {
	font-family: 'Open Sans', sans-serif;
	font-weight: 700;
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.25;
	color: #fff;
	margin: 0 0 14px;
}

.epm-blog-hero p {
	font-family: 'Roboto', sans-serif;
	font-weight: 300;
	font-size: 17px;
	color: rgba(255, 255, 255, 0.85);
	max-width: 640px;
	margin: 0 auto;
}

.epm-blog-hero .epm-accent-bar {
	display: block;
	width: 64px;
	height: 4px;
	background: #f5b301;
	border-radius: 2px;
	margin: 20px auto 0;
}

/* ---------- Grid section ---------- */
.epm-blog-section {
	background: #f9f9f9;
	padding: 60px 20px 84px;
}

.epm-blog-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
	max-width: 1280px;
	margin: 0 auto;
	list-style: none;
	padding: 0;
}

@media (max-width: 1200px) {
	.epm-blog-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
	.epm-blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
	.epm-blog-grid { grid-template-columns: 1fr; }
}

/* ---------- Card ---------- */
.epm-blog-card {
	background: #fff;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
	display: flex;
	flex-direction: column;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	margin: 0;
}

.epm-blog-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.epm-card-thumb {
	position: relative;
	display: block;
	height: 200px;
	overflow: hidden;
}

.epm-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.epm-blog-card:hover .epm-card-thumb img {
	transform: scale(1.07);
}

.epm-card-category {
	position: absolute;
	top: 14px;
	left: 14px;
	background: #f5b301;
	color: #12374f;
	font-family: 'Open Sans', sans-serif;
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 6px 13px;
	border-radius: 999px;
	text-decoration: none;
	z-index: 2;
}

.epm-card-body {
	padding: 20px 22px 24px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.epm-card-date {
	font-family: 'Roboto', sans-serif;
	font-size: 12.5px;
	color: #64748b;
	margin: 0 0 10px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.epm-card-date .fa {
	color: #f5b301;
	font-size: 12px;
}

.epm-card-title {
	font-family: 'Open Sans', sans-serif;
	font-weight: 600;
	font-size: 18px;
	line-height: 1.42;
	color: #12374f;
	margin: 0 0 10px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.epm-card-title a {
	color: inherit;
	text-decoration: none;
}

.epm-card-title a:hover {
	color: #f97316;
}

.epm-card-excerpt {
	font-family: 'Roboto', sans-serif;
	font-weight: 300;
	font-size: 14.5px;
	line-height: 1.65;
	color: #848484;
	margin: 0 0 20px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex-grow: 1;
}

.epm-card-readmore {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #ff6b00;
	color: #fff;
	font-family: 'Open Sans', sans-serif;
	font-weight: 700;
	font-size: 13.5px;
	padding: 10px 22px;
	border-radius: 50px;
	text-decoration: none;
	transition: background 0.25s ease, transform 0.25s ease;
}

.epm-card-readmore:hover {
	background: #e65f00;
	color: #fff;
	transform: translateY(-2px);
}

.epm-card-readmore .fa {
	font-size: 12px;
}

/* ---------- Pagination ---------- */
.epm-blog-section .numeric-navigation {
	margin-top: 54px;
	text-align: center;
}

.epm-blog-section .numeric-navigation .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	margin: 0 4px;
	padding: 0 6px;
	border-radius: 50%;
	background: #fff;
	color: #12374f;
	font-family: 'Open Sans', sans-serif;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
	transition: background 0.2s ease, color 0.2s ease;
}

.epm-blog-section .numeric-navigation .page-numbers.current {
	background: #ff6b00;
	color: #fff;
	box-shadow: none;
}

.epm-blog-section .numeric-navigation .page-numbers:hover:not(.current) {
	background: #12374f;
	color: #fff;
}

.epm-blog-section .numeric-navigation .page-numbers.dots {
	box-shadow: none;
	background: transparent;
}

/* ---------- Empty state ---------- */
.epm-blog-section .epm-blog-empty {
	max-width: 640px;
	margin: 0 auto;
	text-align: center;
	background: #fff;
	border-radius: 15px;
	padding: 50px 30px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
	font-family: 'Roboto', sans-serif;
	color: #64748b;
}
