/* ===== Testimonial cards (testimonial-cards), L3b's slider: assets/js/testimonials.js wraps the cards in a Swiper
   (assets/vendor/swiper) and adds the arrows and dots. Without it the cards show in a grid. Stars and the big quote
   mark are decoration (CSS); the initials badge repeats the name beside it. ===== */
.ig-tcards {
	/* Swiper's stylesheet spaces the dots with these; the gap below does it instead (as on L3b). */
	--swiper-pagination-bullet-size: 8px;
	--swiper-pagination-bullet-horizontal-gap: 0px;
	background: var(--wp--preset--color--white);
}
.ig-tslider {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	margin-top: 56px;
}
.ig-tslider.is-ready { display: block; }
.ig-tslider .swiper-wrapper { height: auto; align-items: stretch; }
.ig-tslider .swiper-slide { display: flex; height: auto; }
.ig-tcard {
	position: relative;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	width: 100%;
	padding: 28px;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	background: var(--wp--preset--color--grey);
	text-align: left;
}
.ig-tcard::before {
	content: "“" / "";
	position: absolute;
	top: -20px;
	right: 8px;
	color: var(--wp--preset--color--light-blue);
	font-family: Georgia, serif;
	font-size: 120px;
	font-weight: 800;
	line-height: 1;
	opacity: 0.12;
	pointer-events: none;
}
.ig-tcard::after {
	content: "★★★★★" / "";
	order: -1;
	color: #fbbf24;
	font-size: 16px;
	letter-spacing: 4px;
	line-height: 1.2;
}
.ig-tcard__quote {
	position: relative;
	margin-top: 16px;
	color: var(--wp--preset--color--navy);
	font-size: 14px;
	font-style: italic;
	font-weight: 300;
	line-height: 1.65;
}
.ig-tcard__author {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
	padding-top: 24px;
}
.ig-tcard__avatar {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	background: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--white);
	font-size: 13px;
	font-weight: 700;
}
.ig-tcard__avatar.is-red { background: var(--wp--preset--color--red); }
.ig-tcard__avatar.is-light-blue { background: var(--wp--preset--color--light-blue); }
.ig-tcard__name {
	color: var(--wp--preset--color--navy);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
}
.ig-tcard__role {
	color: var(--wp--preset--color--muted);
	font-size: 12px;
	line-height: 1.3;
}
.ig-tcontrols {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin-top: 32px;
}
.ig-tnav {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--blue);
	line-height: 0;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.ig-tnav:hover,
.ig-tnav:focus-visible {
	border-color: var(--wp--preset--color--blue);
	background: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--white);
}
.ig-tnav svg { display: block; width: 18px; height: 18px; }
/* Three classes: Swiper's stylesheet prints after this one and sets the pagination to full width, absolutely placed. */
.ig-tcontrols .ig-tdots.swiper-pagination {
	position: static;
	display: flex;
	align-items: center;
	gap: 8px;
	width: auto;
	line-height: 0;
}
.ig-tcontrols .ig-tdots .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	margin: 0;
	border-radius: 999px;
	background: #cbd5e1;
	opacity: 1;
	transition: width 0.3s ease, background-color 0.3s ease;
}
.ig-tcontrols .ig-tdots .swiper-pagination-bullet-active {
	width: 24px;
	background: var(--wp--preset--color--blue);
}
/* Phones: smaller dots, so one per testimonial (19) still fits between the arrows. */
@media (max-width: 479px) {
	.ig-tcontrols { gap: 12px; }
	.ig-tcontrols .ig-tdots.swiper-pagination { gap: 5px; }
	.ig-tcontrols .ig-tdots .swiper-pagination-bullet { width: 6px; height: 6px; }
	.ig-tcontrols .ig-tdots .swiper-pagination-bullet-active { width: 18px; }
}
@media (min-width: 768px) {
	.ig-tslider:not(.is-ready) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) and (max-width: 1023px) {
	.ig-tcard { padding: 20px; }
}
