/* =============================================
   newsletters.css
   For newsletters.php – Slow Food Oʻahu
============================================= */

.newsletter-grid {
	margin-top: 3rem;
}

.newsletter-grid h2 {
	margin-bottom: 2rem;
	text-align: center;
}

/* Grid – matches your featured sections */
.grid-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
	margin: 0 auto;
	max-width: 1200px;
}

/* Newsletter Card */
.newsletter-card {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transition: all 0.25s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.newsletter-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.newsletter-card a {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

/* Image area */
.teaser-image {
	height: 220px;
	background: #f5f5f5;
	position: relative;
	overflow: hidden;
}

.teaser-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.newsletter-card:hover .teaser-image img {
	transform: scale(1.06);
}

.placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
	color: #888;
	font-size: 0.9rem;
	text-align: center;
	padding: 1rem;
}

/* Text area */
.teaser-text {
	flex: 1;
	padding: 1.25rem 1.5rem;
	display: flex;
	flex-direction: column;
}

.teaser-text h3 {
	margin: 0 0 0.5rem 0;
	font-size: 1.15rem;
	line-height: 1.3;
	color: #1a1a1a;
}

.teaser-text time {
	font-size: 0.85rem;
	color: #777;
	margin-bottom: 0.75rem;
}

.teaser-body {
	margin: 0;
	flex-grow: 1;
	color: #444;
	line-height: 1.45;
	font-size: 0.95rem;
}

/* Mobile tweaks */
@media (max-width: 600px) {
	.grid-container {
		grid-template-columns: 1fr;
		gap: 1.75rem;
	}

	.teaser-image {
		height: 200px;
	}
}

/* Optional subtle accent for Slow Food feel */
.newsletter-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: #c8102e; /* Slow Food red */
	opacity: 0;
	transition: opacity 0.3s;
}

.newsletter-card:hover::before {
	opacity: 1;
}

/* ===== Sitwide Changes ====== */
main.content {
	max-width: 1400px; /* wider for nice 3-col */
	margin: 0 auto;
	padding: 0 1.5rem;
}
.intro p {text-align: center;}

.newsletter-grid .grid-container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem 2rem;
}

@media (min-width: 640px) {
	.newsletter-grid .grid-container {
		grid-template-columns: repeat(2, 1fr);
	}
}

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

.loading-hidden,
.fallback-hidden {
	display: none;
}

.loading-dots {
	text-align: center;
	font-size: 1.15rem;
	color: #555;
	padding: 4rem 1rem;
	font-style: italic;
}

.loading-dots span {
	animation: loadingDots 1.4s infinite both;
}

@keyframes loadingDots {
	0%,
	100% {
		opacity: 0;
	}
	50% {
		opacity: 1;
	}
}
