/* ==========================================================================
   V20 — section-news.css
   "V20 Community / Laatste Nieuws" — 3 blog cards. 1 col / 3 col (>=768).
   ========================================================================== */

.home-news {
	position: relative;
	background-color: #0b0c0f;
	padding-top: 3rem;
	padding-bottom: 100px;
}

.news-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 1rem;
	margin-bottom: 3rem;
}

/* Inset the eyebrow/divider/title block and the CTA from the edges
   (match the .5rem inset used by the Bestsellers / Latest Arrivals headers). */
.news-head__left {
	padding-left: .5rem;
}

.news-head .section-more {
	padding-right: .5rem;
}

/* Icon sits to the right of the "Naar het overzicht" button. */
.news-head__right {
	display: flex;
	align-items: center;
	gap: 0.7rem;
}

.news-head .section-divider {
	width: 88px;   /* double the default divider width */
}

.news-head:hover .section-divider {
	width: 144px;
}

.news-eyebrow {
	margin: 0 0 .25rem;
	color: var(--v20-neon);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-size: .9rem;
}

.news-title {
	margin: 0;
	color: #fff;
	font-weight: 700;
	text-transform: uppercase;
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

.news-title__muted {
	color: rgba(255, 255, 255, .5);
}

/* ---- Grid ---- */
.news-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

.blog-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--v20-card-bg);
	border: 1px solid var(--v20-border);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0, 0, 0, .2);
	transition: border-color .3s ease, box-shadow .3s ease;
}

.blog-card:hover {
	border-color: rgba(255, 255, 255, .2);
	box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}

.blog-img-container {
	position: relative;
	width: 100%;
	height: 240px;
	overflow: hidden;
	border-radius: 12px 12px 0 0;
}

.blog-img-container img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}

.blog-card:hover .blog-img-container img {
	transform: scale(1.1);
}

/* ---- Date badge ---- */
.blog-date {
	position: absolute;
	top: 15px;
	left: 15px;
	z-index: 2;
	padding: 8px 12px;
	text-align: center;
	background: rgba(0, 0, 0, .8);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	border: 1px solid rgba(255, 255, 255, .1);
	border-bottom: 2px solid var(--v20-neon);
}

.blog-date__day {
	display: block;
	color: var(--v20-neon);
	font-weight: 700;
	font-size: 1.1rem;
	line-height: 1;
}

.blog-date__month {
	font-size: .75rem;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .85);
}

/* ---- Content ---- */
.blog-content {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding: 1.5rem;
}

.blog-cat {
	display: block;
	margin-bottom: .5rem;
	color: var(--v20-neon);
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.blog-card__title {
	margin: 0 0 1rem;
	color: #fff;
	font-weight: 700;
	font-size: 1.4rem;
	line-height: 1.3;
}

.blog-excerpt {
	flex-grow: 1;
	margin: 0 0 1rem;
	color: #9ca3af;
	font-size: .875rem;
	line-height: 1.7;
	/* Clamp to 4 lines; overflow gets an ellipsis. */
	display: -webkit-box;
	-webkit-line-clamp: 4;
	line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Third card: clamp its description to 3 lines instead of 4. */
.news-grid .blog-card:nth-child(3) .blog-excerpt {
	-webkit-line-clamp: 3;
	line-clamp: 3;
}

.blog-cta {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: auto;
}

.read-more {
	display: inline-flex;
	color: var(--v20-neon);
}

.read-more svg {
	width: 1.1em;
	height: 1.1em;
	fill: currentColor;
	transition: transform .3s ease;
}

.blog-card:hover .read-more svg {
	transform: translateX(5px);
}

.btn-neon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 30px;
	background-color: var(--v20-neon);
	color: #000;
	font-weight: 700;
	text-transform: uppercase;
	border: none;
	border-radius: 8px;
	transition: background-color .3s ease, box-shadow .3s ease;
}

.btn-neon:hover {
	color: #000;
	background-color: #fff;
	box-shadow: 0 0 15px var(--v20-neon);
}

@media (min-width: 768px) {
	.news-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Mobile: keep "Laatste Nieuws" on a single line now the CTA moves below.
   (The .section-more--head/--bottom toggle is shared from section-arrivals.css.) */
@media (max-width: 767px) {
	.home-news .news-title {
		white-space: nowrap;
	}
}
