/**
 * Styles for the [ahcm_testimonials] shortcode (stacked + slider layouts).
 * Colors match the site's existing button/heading treatment (#01b1ed
 * brand blue) from service-hub-styles.php.
 */

.ahcm-testimonials {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.ahcm-testimonials-empty {
	text-align: center;
	font-size: 16px;
	color: #6b6b6b;
}

/* Stacked layout: simple responsive grid */
.ahcm-testimonials-stacked {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

@media (max-width: 1024px) {
	.ahcm-testimonials-stacked {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 680px) {
	.ahcm-testimonials-stacked {
		grid-template-columns: 1fr;
	}
}

/* Slider layout: Swiper needs its slides as direct flex children,
   so the card styles below apply equally inside .swiper-slide.
   Swiper's own CSS sets overflow:hidden AND padding:0 on .swiper (this
   element), which clips the card's box-shadow at the container edge -
   padding on top/sides gives the shadow room to render before it hits that
   clip boundary. swiper-bundle.min.css loads after this stylesheet (it's
   only enqueued once we know layout="slider" was used, from wp_footer), so
   its same-specificity ".swiper { padding: 0 }" would otherwise win on
   source order alone - the doubled-up selector here raises specificity so
   this rule wins regardless of load order. */
.ahcm-testimonials .ahcm-testimonials-slider {
	padding: 16px 8px 50px; /* top/sides for shadow room, bottom for pagination dots */
}

.ahcm-testimonials-slider .swiper-slide {
	height: auto;
	display: flex;
}

.ahcm-testimonials-slider .swiper-button-next,
.ahcm-testimonials-slider .swiper-button-prev {
	color: #01b1ed;
}

.ahcm-testimonials-slider .swiper-pagination-bullet-active {
	background: #01b1ed;
}

/* Slider cards: bordered/flat treatment instead of the stacked layout's
   drop shadow (also makes the shadow-clipping padding above moot for this
   layout, but it's left in place since it doesn't hurt anything). */
.ahcm-testimonials-slider .ahcm-testimonial-card {
	border: 1px solid #efefef;
	background: #fbfbfb;
	box-shadow: none;
}

/* Card, shared by both layouts */
.ahcm-testimonial-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	box-sizing: border-box;
	background: #fff;
	border-radius: 10px;
	padding: 24px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.ahcm-testimonial-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.ahcm-testimonial-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.ahcm-testimonial-name {
	font-weight: 600;
	font-size: 16px;
	color: #0a0a0a;
	margin: 0;
}

.ahcm-testimonial-rating {
	color: #f5a623;
	font-size: 14px;
	letter-spacing: 1px;
}

.ahcm-testimonial-service {
	display: inline-block;
	margin-bottom: 10px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #01b1ed;
	font-weight: 600;
}

.ahcm-testimonial-text {
	font-size: 15px;
	line-height: 1.5;
	color: #3a3a3a;
	margin: 0;
}
