/* Shared news/article card (post.twig): image zoom on hover, steady shadow */

.post-card__media {
	overflow: hidden;
}

.post-card__img {
	transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.post-card:hover .post-card__img {
	transform: scale(1.05);
}

/* Read more button: the default white-fill hover vanishes on the white card,
   so deepen the orange instead and slide the arrow (matches the other blocks). */
.post-card .btn-orange:hover {
	background-color: #c96700;
	border-color: #c96700;
	color: #fff;
}

.post-card .btn-orange svg {
	transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.post-card .btn-orange:hover svg {
	transform: translateX(3px);
}

/* Feature cards (cards.twig flexible block): elevated surface, image zoom,
   single accessible link, arrow-slide CTA — consistent with the site. */
.feature-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
	background: #fff;
	border: 1px solid rgba(0, 126, 193, 0.12);
	border-radius: 1.25rem;
	overflow: hidden;
	box-shadow:
		0 1px 2px rgba(13, 42, 64, 0.04),
		0 12px 26px -14px rgba(13, 42, 64, 0.16);
	transition: border-color 0.3s ease;
}

.feature-card:hover {
	border-color: rgba(0, 126, 193, 0.3);
}

.feature-card:focus-visible {
	outline: 2px solid #007ec1;
	outline-offset: 3px;
}

.feature-card__media {
	overflow: hidden;
}

.feature-card__img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	background: #f3f4f6;
	transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.feature-card:hover .feature-card__img {
	transform: scale(1.05);
}

.feature-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 1.5rem;
}

.feature-card__title {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.25;
	color: #0d2a40;
	transition: color 0.2s ease;
}

.feature-card:hover .feature-card__title {
	color: #007ec1;
}

.feature-card__excerpt {
	margin-top: 0.6rem;
	margin-bottom: 1.25rem;
	font-size: 0.95rem;
	line-height: 1.55;
	color: #5a6b78;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.feature-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin-top: auto;
	padding-top: 1.1rem;
	border-top: 1px solid rgba(0, 126, 193, 0.1);
	font-weight: 600;
	color: #007ec1;
}

.feature-card__cta svg {
	flex: none;
	transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.feature-card:hover .feature-card__cta svg {
	transform: translateX(4px);
}

/* keep a gap above the CTA when the excerpt is short */
.feature-card__title + .feature-card__cta {
	margin-top: 1.25rem;
}

/* Download buttons (download-block.twig) */
.download-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.9rem 1.1rem;
	color: #0d2a40;
	text-decoration: none;
	background: #fff;
	border: 1px solid rgba(0, 126, 193, 0.14);
	border-radius: 0.85rem;
	box-shadow: 0 1px 2px rgba(13, 42, 64, 0.04);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.download-item:hover {
	border-color: rgba(0, 126, 193, 0.4);
	box-shadow: 0 10px 22px -14px rgba(13, 42, 64, 0.3);
}

.download-item:focus-visible {
	outline: 2px solid #007ec1;
	outline-offset: 2px;
}

.download-item__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 2.75rem;
	height: 2.75rem;
	color: #007ec1;
	background: #e5f2f9;
	border-radius: 9999px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.download-item:hover .download-item__icon {
	color: #fff;
	background: #007ec1;
}

.download-item__icon svg {
	width: 1.4rem;
	height: 1.4rem;
}

.download-item__text {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-width: 0;
}

.download-item__title {
	font-weight: 600;
	line-height: 1.3;
}

.download-item__meta {
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #5a6b78;
}

@media (prefers-reduced-motion: reduce) {
	.post-card__img,
	.post-card .btn-orange svg,
	.feature-card__img,
	.feature-card__cta svg,
	.download-item__icon {
		transition: none;
	}

	.post-card:hover .post-card__img,
	.post-card .btn-orange:hover svg,
	.feature-card:hover .feature-card__img,
	.feature-card:hover .feature-card__cta svg {
		transform: none;
	}
}

