/*
 * Server-rendered testimonial card styles. Used by the wp:group.pod-testimonials block
 * inserted in the post_content of pillar / use-case / material / vs / campaign pages.
 *
 * Replaces the JS-injected closures in functions.php (pod-{sls,mat,camp,cnc}-testimonials)
 * which were not crawlable by AI search engines.
 *
 * Markup contract:
 *   .pod-testimonials > .pod-testimonials__inner > .pod-testimonials__title
 *                                                > .pod-testimonials__grid > .pod-testimonial
 *                                                                              > .pod-testimonial__quote
 *                                                                              > .pod-testimonial__author
 *                                                                              > .pod-testimonial__role
 *                                                                              > .pod-testimonial__link
 */

.pod-testimonials {
	background: #000a1e;
	padding: 3.5rem 1rem 4rem;
	margin: 0;
}

.pod-testimonials__inner {
	max-width: 1100px;
	margin: 0 auto;
}

.pod-testimonials__title {
	font-size: 1.4rem;
	font-weight: 800;
	color: #fff;
	margin: 0 0 2rem;
	text-align: left;
	line-height: 1.3;
}

.pod-testimonials__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}

@media (max-width: 768px) {
	.pod-testimonials__grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
}

.pod-testimonial {
	background: rgba(255, 255, 255, .04);
	border: 1px solid rgba(255, 255, 255, .06);
	border-radius: 8px;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: .5rem;
}

.pod-testimonial__quote {
	font-size: .9rem;
	color: rgba(255, 255, 255, .65);
	line-height: 1.65;
	margin: 0 0 1rem;
	font-style: italic;
}

.pod-testimonial__author {
	font-size: .82rem;
	color: #fff;
	font-weight: 700;
	margin: 0;
}

.pod-testimonial__role {
	font-size: .78rem;
	color: rgba(255, 255, 255, .35);
	margin: .15rem 0 0;
}

.pod-testimonial__link {
	font-size: .78rem;
	margin: .5rem 0 0;
	margin-top: auto;
	display: inline-block;
}

/* The Gutenberg paragraph wraps an <a>; color the anchor itself so theme/Yoast
 * default link colors don't override the pink. The bundled stntheme styles.css
 * sets a strong `.entry-content a` rule (higher specificity than a single class),
 * so we use a 3-class selector + !important to win without nuking other rules. */
.pod-testimonials .pod-testimonial .pod-testimonial__link,
.pod-testimonials .pod-testimonial .pod-testimonial__link a,
.pod-testimonials .pod-testimonial .pod-testimonial__link a:visited,
.pod-testimonials .pod-testimonial .pod-testimonial__link a:hover,
.pod-testimonials .pod-testimonial .pod-testimonial__link a:focus {
	color: #ff2360 !important;
	text-decoration: none;
}

.pod-testimonials .pod-testimonial .pod-testimonial__link a:hover,
.pod-testimonials .pod-testimonial .pod-testimonial__link a:focus {
	text-decoration: underline;
}
