/**
 * LNM API Homepage — minimal overrides; layout and cards use MagazineNP theme classes
 * (.featured-section, .post-item.post-block, .related-posts, .mnp-post-boxed, etc.).
 */

.lnm-homepage-api .lnm-homepage__error,
.lnm-homepage-api .lnm-homepage__empty {
	margin: 0.75rem 0;
	padding: 0.75rem;
	font-size: 0.9rem;
	color: #666;
	background: #fafafa;
	border: 1px dashed #ddd;
	border-radius: 4px;
}

.lnm-homepage-api .lnm-homepage-hero-excerpt {
	margin: 0.5rem 0 0;
	font-size: 0.95rem;
	line-height: 1.5;
	color: #555;
}

/* Ensure the three banner columns stretch to equal height */
.lnm-homepage-api .featured-section > .container > .row {
	align-items: stretch;
}

/* Single-slide hero: keep visible if carousel script is delayed */
.lnm-homepage-api .lnm-homepage-hero-slides .item {
	display: block;
}

.lnm-homepage-template .site-main.lnm-homepage-site-main {
	padding-top: 0;
}

/* Event date badge on homepage cards (matches Events page / event-cards-pro corner badge) */
.lnm-homepage-api .lnm-homepage-event-img {
	position: relative;
}

.lnm-homepage-api .lnm-homepage-event-img .lnm-homepage-event-date-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	border-radius: 8px;
	padding: 6px 10px;
	text-align: center;
	line-height: 1.1;
	color: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	pointer-events: none;
}

.lnm-homepage-api .lnm-homepage-event-img .lnm-event-month {
	display: block;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.95;
}

.lnm-homepage-api .lnm-homepage-event-img .lnm-event-day {
	display: block;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.1;
}

/*
 * MagazineNP reserves height with .mnp-post-image-wrap:before { padding-top: 50% } for background-image
 * cards. Our blocks use real <img> tags, so that pseudo-element becomes an empty grey band — remove it.
 */
.lnm-homepage-api .mnp-post-image-wrap:before,
.lnm-homepage-api .featured-mnp-post-image:before,
.lnm-homepage-api .page-single-img-wrap:before {
	content: none !important;
	display: none !important;
	padding-top: 0 !important;
}

/* Thumbnails: MagazineNP often styles <img> inside .mnp-post-image; background-only links show as grey boxes */
.lnm-homepage-api a.lnm-homepage-card-thumb {
	display: block;
	position: relative;
	overflow: hidden;
	background: #ececec;
	min-height: 180px;
}

.lnm-homepage-api a.lnm-homepage-card-thumb .lnm-homepage-card-img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
}

.lnm-homepage-api .featured-mnp-post-image.lnm-homepage-event-img {
	min-height: 200px;
}

.lnm-homepage-api .featured-mnp-post-image.lnm-homepage-event-img a.lnm-homepage-card-thumb {
	min-height: 200px;
}

.lnm-homepage-api .featured-mnp-post-image.lnm-homepage-event-img .lnm-homepage-card-img {
	height: 200px;
}

/* Side columns (Featured / Most Read): image fills card, text overlays bottom */
.lnm-homepage-api .featured-post .post-item.post-block {
	position: relative;
	overflow: hidden;
	min-height: 185px;
}

.lnm-homepage-api .featured-post .post-item.post-block .mnp-post-image-wrap {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

.lnm-homepage-api .featured-post .post-item.post-block .lnm-homepage-card-thumb {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
}

.lnm-homepage-api .featured-post .post-item.post-block .lnm-homepage-card-thumb .lnm-homepage-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.lnm-homepage-api .featured-post .post-item.post-block .entry-header {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 40px 14px 12px;
	background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.85) 100%);
	z-index: 1;
}

.lnm-homepage-api .featured-post .post-item.post-block .entry-header .entry-title a {
	color: #fff;
	text-shadow: 0 1px 3px rgba(0,0,0,.5);
	font-size: 0.95rem;
}

.lnm-homepage-api .featured-post .post-item.post-block .entry-header .entry-meta {
	color: rgba(255,255,255,.8);
}

.lnm-homepage-api .featured-post .post-item.post-block .entry-header .entry-meta a {
	color: rgba(255,255,255,.8);
}

.lnm-homepage-api .featured-post .post-item.post-block .entry-header .category-meta span {
	color: #fff;
}

/* Hero slider (News): image fills the card, text overlays bottom.
   The hero column sits in a Bootstrap .row alongside the two side columns,
   so it stretches to match their combined height automatically via flexbox. */
.lnm-homepage-api .featured-slider {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.lnm-homepage-api .featured-slider .owl-carousel {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
}

.lnm-homepage-api .featured-slider .owl-carousel > .item {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
}

.lnm-homepage-api .featured-slider .post-item.post-block {
	position: relative;
	overflow: hidden;
	flex: 1 1 auto;
	min-height: 380px;
}

.lnm-homepage-api .featured-slider .post-item.post-block .mnp-post-image-wrap {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

.lnm-homepage-api .featured-slider .post-item.post-block .lnm-homepage-card-thumb {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
}

.lnm-homepage-api .featured-slider .post-item.post-block .lnm-homepage-card-thumb .lnm-homepage-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.lnm-homepage-api .featured-slider .post-item.post-block .entry-header {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 60px 20px 16px;
	background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.85) 100%);
	color: #fff;
	z-index: 1;
}

.lnm-homepage-api .featured-slider .post-item.post-block .entry-header .entry-title a {
	color: #fff;
	text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

.lnm-homepage-api .featured-slider .post-item.post-block .entry-header .entry-meta {
	color: rgba(255,255,255,.85);
}

.lnm-homepage-api .featured-slider .post-item.post-block .entry-header .entry-meta a {
	color: rgba(255,255,255,.85);
}

.lnm-homepage-api .featured-slider .post-item.post-block .entry-header .category-meta span {
	color: #fff;
}

.lnm-homepage-api .featured-slider .lnm-homepage-hero-excerpt {
	color: rgba(255,255,255,.9);
}

@media (max-width: 991px) {
	.lnm-homepage-api .featured-slider .post-item.post-block {
		min-height: 280px;
	}
}
