/* MSH Blog Listing — matches blog-listing.html */

.msh-blog-band,
.msh-blog-listing {
	--msh-blog-red: #c10230;
	--msh-blog-red-dark: #9a0226;
	--msh-blog-ink: #333132;
	--msh-blog-ink-soft: #5c5a5b;
	--msh-blog-line: rgba(51, 49, 50, 0.13);
	--msh-blog-grey: #f6f6f6;
	--msh-blog-white: #fff;
	--msh-blog-font: "Poppins-Regular", "Poppins", system-ui, sans-serif;

	font-family: var(--msh-blog-font);
	color: var(--msh-blog-ink);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

.msh-blog-band a,
.msh-blog-listing a {
	color: inherit;
	text-decoration: none;
}

.msh-blog-band h1,
.msh-blog-band p,
.msh-blog-listing h3,
.msh-blog-listing p {
	margin: 0;
}

.msh-blog-box {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px;
}

.msh-blog-red {
	color: var(--msh-blog-red);
}

/* Header band */
.msh-blog-band {
	background: var(--msh-blog-grey);
	padding: 80px 0;
	text-align: center !important;
}

.msh-blog-band .msh-blog-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center !important;
}

.msh-blog-band__title {
	font-family: "Poppins-ExtraBold", "Poppins", system-ui, sans-serif;
	font-size: 48px;
	line-height: 1.15;
	font-weight: 800;
	margin: 0;
	color: var(--msh-blog-ink);
	text-align: center !important;
	width: 100%;
}

.msh-blog-band__desc,
.msh-blog-band p.msh-blog-band__desc {
	display: block;
	max-width: 640px;
	width: 100%;
	margin: 16px auto 0 !important;
	padding: 0;
	color: var(--msh-blog-ink-soft);
	text-align: center !important;
}

/* Beat Elementor widget/column text-align overrides */
.elementor-widget-msh-blog-header,
.elementor-widget-msh-blog-header .elementor-widget-container,
.elementor-widget-msh-blog-header .msh-blog-band,
.elementor-widget-msh-blog-header .msh-blog-band__desc {
	text-align: center !important;
}

/* Listing section */
.msh-blog-listing {
	padding: 64px 0 96px;
	background: var(--msh-blog-white);
}

/* Category filters */
.msh-blog-filter {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 48px;
}

.msh-blog-filter a {
	font-size: 14px;
	font-weight: 500;
	padding: 9px 20px;
	border-radius: 40px;
	background: var(--msh-blog-line);
	transition: background 0.2s ease, color 0.2s ease;
}

.msh-blog-filter a:hover {
	background: rgba(193, 2, 48, 0.12);
	color: var(--msh-blog-red);
}

.msh-blog-filter a.on {
	background: var(--msh-blog-red);
	color: var(--msh-blog-white);
}

.msh-blog-filter a.on:hover {
	background: var(--msh-blog-red-dark);
	color: var(--msh-blog-white);
}

/* Post cards */
.msh-blog-posts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

.msh-blog-card {
	background: var(--msh-blog-white);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 8px 28px rgba(51, 49, 50, 0.10);
	display: flex;
	flex-direction: column;
	margin: 0;
}

/* Thumbnail link */
.msh-blog-card__thumb {
	position: relative;
	display: block;
	width: 100%;
}

/*
 * Fixed 3:2 media frame (padding-bottom) — same on listing + category pages.
 * Beats Bootstrap/theme img height:auto and WP width/height attributes.
 */
.msh-blog-card__media {
	position: relative !important;
	display: block !important;
	width: 100% !important;
	height: 0 !important;
	padding-bottom: 66.666% !important; /* 3 / 2 */
	overflow: hidden !important;
	background: #f0f0f0;
}

.msh-blog-card__media img,
.msh-blog-card__media .msh-blog-card__img,
.msh-blog-card__media .wp-post-image,
.msh-blog-card__placeholder {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	object-fit: cover !important;
	object-position: center center !important;
}

.msh-blog-card__placeholder {
	background: #fff4d9 radial-gradient(circle at 76% 34%, #f7a81b 0 12%, transparent 12.5%);
}

.msh-blog-badge {
	position: absolute;
	left: 20px;
	bottom: -13px;
	background: var(--msh-blog-red);
	color: var(--msh-blog-white);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 16px;
	padding: 5px 14px;
	border-radius: 40px;
	z-index: 1;
}

.msh-blog-card__txt {
	padding: 32px 24px 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.msh-blog-card__title {
	font-family: "Poppins-SemiBold", "Poppins", system-ui, sans-serif;
	font-size: 20px;
	line-height: 1.4;
	font-weight: 600;
	margin: 0;
}

.msh-blog-card__title a:hover {
	color: var(--msh-blog-red);
}

.msh-blog-card__excerpt {
	font-size: 15px;
	line-height: 1.65;
	color: var(--msh-blog-ink-soft);
}

.msh-blog-more {
	color: var(--msh-blog-red) !important;
	font-weight: 600;
	font-size: 14px;
}

.msh-blog-more:hover {
	color: var(--msh-blog-red-dark) !important;
}

.msh-blog-card__meta {
	margin-top: auto;
	border-top: 1px solid var(--msh-blog-line);
	padding-top: 14px;
	font-size: 13px;
	color: var(--msh-blog-ink-soft);
}

.msh-blog-empty {
	text-align: center;
	color: var(--msh-blog-ink-soft);
	padding: 40px 0;
}

/* Pagination */
.msh-blog-pager {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 56px;
	font-size: 14px;
	font-weight: 600;
}

.msh-blog-pager a,
.msh-blog-pager span {
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border-radius: 40px;
	display: grid;
	place-items: center;
	box-sizing: border-box;
}

.msh-blog-pager a:hover {
	background: rgba(193, 2, 48, 0.12);
	color: var(--msh-blog-red);
}

.msh-blog-pager a.on,
.msh-blog-pager span.on,
.msh-blog-pager span.current {
	background: var(--msh-blog-red);
	color: var(--msh-blog-white);
}

.msh-blog-pager .dots,
.msh-blog-pager span.dots {
	background: transparent;
	min-width: auto;
}

/* Tablet / mobile (Elementor breakpoints 1024 / 767) */
@media (max-width: 1024px) {
	.msh-blog-posts {
		grid-template-columns: 1fr 1fr;
		gap: 24px;
	}
}

@media (max-width: 767px) {
	.msh-blog-posts {
		grid-template-columns: 1fr;
	}

	.msh-blog-band {
		padding: 56px 0;
	}

	.msh-blog-band__title {
		font-size: 34px;
	}

	.msh-blog-listing {
		padding: 40px 0 64px;
	}

	.msh-blog-filter {
		flex-wrap: nowrap;
		overflow-x: auto;
		justify-content: flex-start;
		margin: 0 -20px 32px;
		padding: 0 20px 4px;
		-webkit-overflow-scrolling: touch;
	}

	.msh-blog-filter a {
		flex: none;
	}
}
