/* =====================================================
   KNPS Newsletter Grid Styles
   KeyNotes Piano Studio
   ===================================================== */

/* ── Grid Container ── */
.knps-newsletter-grid {
	display: grid;
	gap: 30px;
	padding: 20px 0 40px;
}

.knps-newsletter-grid.knps-nl-cols-3 {
	grid-template-columns: repeat(3, 1fr);
}

.knps-newsletter-grid.knps-nl-cols-2 {
	grid-template-columns: repeat(2, 1fr);
}

.knps-newsletter-grid.knps-nl-cols-1 {
	grid-template-columns: 1fr;
}

/* ── Card ── */
.knps-newsletter-card {
	background: #ffffff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.knps-newsletter-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

.knps-nl-link {
	display: block;
	text-decoration: none;
	color: inherit;
	height: 100%;
}

/* ── Featured Image ── */
.knps-nl-image-wrap {
	position: relative;
	overflow: hidden;
	aspect-ratio: 3 / 4;
	background: #f5f5f5;
}

.knps-nl-image-wrap img.knps-nl-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
	transition: transform 0.4s ease;
}

.knps-newsletter-card:hover .knps-nl-thumb {
	transform: scale(1.03);
}

/* No image fallback */
.knps-nl-no-image {
	width: 100%;
	height: 100%;
	min-height: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f0f0f0;
	color: #aaa;
	font-size: 40px;
}

/* ── Card Content ── */
.knps-nl-content {
	padding: 18px 20px 22px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* "NEWSLETTER" badge label */
.knps-nl-label {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.5px;
	color: #888;
	text-transform: uppercase;
	margin-bottom: 2px;
}

/* Issue title */
.knps-nl-title {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	color: #c0392b; /* matches KeyNotes red/rose brand color */
	margin: 0;
	padding: 0;
}

.knps-newsletter-card:hover .knps-nl-title {
	color: #a93226;
}

/* Excerpt */
.knps-nl-excerpt {
	font-size: 13.5px;
	color: #555;
	line-height: 1.6;
	margin: 4px 0 0;
}

/* Read More link */
.knps-nl-read-more {
	display: inline-block;
	margin-top: 10px;
	font-size: 13px;
	font-weight: 600;
	color: #c0392b;
	letter-spacing: 0.3px;
}

.knps-newsletter-card:hover .knps-nl-read-more {
	text-decoration: underline;
}

/* ── PDF Embed on Single Newsletter Page ── */
.knps-nl-pdf-wrap {
	margin: 0 0 40px 0;
}

.knps-nl-pdf-container {
	position: relative;
	width: 100%;
	background: #f5f5f5;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.knps-nl-pdf-embed {
	display: block;
	width: 100%;
	height: 900px;
	border: none;
	min-height: 600px;
}

.knps-nl-pdf-actions {
	display: flex;
	gap: 12px;
	margin-top: 16px;
	flex-wrap: wrap;
}

.knps-nl-pdf-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 22px;
	border-radius: 5px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.knps-nl-pdf-open {
	background: #c0392b;
	color: #fff;
}

.knps-nl-pdf-open:hover {
	background: #a93226;
	color: #fff;
}

.knps-nl-pdf-download {
	background: #f5f5f5;
	color: #333;
	border: 1px solid #ddd;
}

.knps-nl-pdf-download:hover {
	background: #e8e8e8;
	color: #000;
}

/* Notice when no PDF available */
.knps-nl-no-pdf-notice {
	background: #fff3cd;
	border-left: 4px solid #ffc107;
	padding: 12px 16px;
	border-radius: 4px;
	font-size: 14px;
	color: #664d03;
	margin-bottom: 20px;
}

/* ── Responsive Breakpoints ── */
@media ( max-width: 1024px ) {
	.knps-newsletter-grid.knps-nl-cols-3 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media ( max-width: 640px ) {
	.knps-newsletter-grid.knps-nl-cols-3,
	.knps-newsletter-grid.knps-nl-cols-2 {
		grid-template-columns: 1fr;
	}

	.knps-nl-image-wrap {
		aspect-ratio: 3 / 2;
	}

	.knps-nl-pdf-embed {
		height: 500px;
	}

	.knps-nl-pdf-actions {
		flex-direction: column;
	}

	.knps-nl-pdf-btn {
		justify-content: center;
	}
}
