/* Article Cards & Video Embeds Styles */

.ave-news-card {
	display: flex;
	flex-direction: column;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	overflow: hidden;
	background: #ffffff !important;
	color: #1a1a1a !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	margin: 1.5em 0;
	max-width: 680px;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ave-news-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
}

.ave-card-image {
	display: block;
	width: 100%;
	height: 220px;
	overflow: hidden;
	background: #f5f5f5;
}

.ave-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.ave-news-card:hover .ave-card-image img {
	transform: scale(1.04);
}

.ave-card-content {
	padding: 1.2em 1.4em 1.4em;
	color: #1a1a1a !important;
}

.ave-card-site {
	display: inline-block;
	font-size: 0.75em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #ffffff !important;
	margin-bottom: 0.6em;
	background: #444444 !important;
	padding: 0.25em 0.7em;
	border-radius: 4px;
}

.ave-card-title {
	margin: 0 0 0.6em;
	font-size: 1.25em;
	line-height: 1.35;
}

.ave-card-title a {
	text-decoration: none;
}

.ave-card-title a:hover {
	text-decoration: underline;
}

.ave-card-excerpt,
.ave-news-card p.ave-card-excerpt {
	margin: 0 0 1em;
	color: #1a1a1a !important;
	font-size: 0.95em;
	line-height: 1.5;
}

.ave-card-link {
	display: inline-block;
	font-weight: 600;
	text-decoration: none;
	font-size: 0.95em;
}

.ave-card-link:hover {
	text-decoration: underline;
}

/* Dark mode support only when body has .dark class */
body.dark .ave-news-card,
.dark .ave-news-card {
	background: #1e1e1e !important;
	border-color: #333;
	color: #eeeeee !important;
}

body.dark .ave-card-title a,
.dark .ave-card-title a {
	color: #f0f0f0 !important;
}

body.dark .ave-card-excerpt,
.dark .ave-card-excerpt {
	color: #cccccc !important;
}

body.dark .ave-card-site,
.dark .ave-card-site {
	color: #aaaaaa !important;
}

/* Video embeds */
.ave-video-container,
.ave-video-wrapper {
	position: relative;
	margin: 1.5em 0;
	max-width: 100%;
}

.ave-video-wrapper {
	padding-bottom: 56.25%; /* 16:9 */
	height: 0;
	overflow: hidden;
}

.ave-video-wrapper.ave-tiktok {
	padding-bottom: 0;
	height: auto;
	max-width: 325px;
	margin-left: auto;
	margin-right: auto;
}

.ave-video-wrapper.ave-tiktok iframe {
	position: static;
	width: 100%;
	height: 578px;
	max-height: 80vh;
}

.ave-error {
	color: #b32d2e;
	background: #fcf0f1;
	padding: 0.8em 1em;
	border-left: 4px solid #b32d2e;
	border-radius: 4px;
}

/* Responsive */
@media (min-width: 640px) {
	.ave-news-card {
		flex-direction: row;
		max-width: 100%;
	}

	.ave-card-image {
		width: 240px;
		height: auto;
		min-height: 180px;
		flex-shrink: 0;
	}

	.ave-card-content {
		flex: 1;
	}
}