.ctr-testimonials-grid {
	display: grid;
	gap: 30px;
	margin: 20px 0;
}

.ctr-columns-1 { grid-template-columns: 1fr; }
.ctr-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ctr-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ctr-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ctr-columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ctr-columns-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.ctr-testimonial {
	box-sizing: border-box;
	width: 100%;
	padding: 28px;
	background: #fff;
}

.ctr-testimonial__avatar {
	margin-bottom: 18px;
}

.ctr-testimonial__avatar img {
	display: block;
	width: 100px;
	height: 100px;
	object-fit: cover;
}

.ctr-testimonial__avatar--circle img {
	border-radius: 50%;
}

.ctr-testimonial__avatar--square img {
	border-radius: 4px;
}

.ctr-testimonial__content {
	position: relative;
}

.ctr-testimonial__quote {
	display: block;
	font-size: 58px;
	line-height: .7;
	opacity: .18;
}

.ctr-testimonial__text {
	margin-bottom: 20px;
}

.ctr-testimonial__text p:last-child {
	margin-bottom: 0;
}

.ctr-testimonial__author {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	align-items: baseline;
}

.ctr-testimonial__job,
.ctr-testimonial__company {
	opacity: .75;
}

.ctr-testimonial__rating {
	letter-spacing: 2px;
	margin-bottom: 12px;
}

.ctr-slider {
	position: relative;
	width: 100%;
	margin: 20px 0;
}

.ctr-slider__viewport {
	overflow: hidden;
}

.ctr-slider__track {
	display: flex;
	will-change: transform;
	transition: transform .5s ease;
}

.ctr-slider__slide {
	flex: 0 0 100%;
	min-width: 0;
	box-sizing: border-box;
	padding: 0 8px;
}

.ctr-slider__prev,
.ctr-slider__next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	background: rgba(0,0,0,.08);
	font-size: 28px;
	line-height: 1;
}

.ctr-slider__prev { left: 4px; }
.ctr-slider__next { right: 4px; }

.ctr-slider__dots {
	display: flex;
	justify-content: center;
	gap: 7px;
	margin-top: 15px;
}

.ctr-slider__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #aaa;
	cursor: pointer;
}

.ctr-slider__dot.is-active {
	background: currentColor;
}

@media (max-width: 900px) {
	.ctr-columns-4,
	.ctr-columns-5,
	.ctr-columns-6 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.ctr-columns-2,
	.ctr-columns-3,
	.ctr-columns-4,
	.ctr-columns-5,
	.ctr-columns-6 {
		grid-template-columns: 1fr;
	}
}
/* =========================================================
   Testimonials Grid
   ========================================================= */

.ctr-testimonials-grid {
	display: grid;
	width: 100%;
	gap: 30px;
	align-items: stretch;
}


/* 1 Column */
.ctr-testimonials-grid.ctr-columns-1 {
	grid-template-columns: 1fr;
}


/* 2 Columns */
.ctr-testimonials-grid.ctr-columns-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}


/* 3 Columns */
.ctr-testimonials-grid.ctr-columns-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}


/* 4 Columns */
.ctr-testimonials-grid.ctr-columns-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}


/* 5 Columns */
.ctr-testimonials-grid.ctr-columns-5 {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}


/* 6 Columns */
.ctr-testimonials-grid.ctr-columns-6 {
	grid-template-columns: repeat(6, minmax(0, 1fr));
}


/* =========================================================
   Individual Grid Item
   ========================================================= */

.ctr-testimonials-grid .ctr-testimonial {
	width: 100%;
	height: 100%;
	box-sizing: border-box;
}


/* =========================================================
   Grid Image
   ========================================================= */

.ctr-testimonials-grid .ctr-testimonial__avatar {
	margin-bottom: 20px;
	text-align: center;
}


.ctr-testimonials-grid .ctr-testimonial__avatar img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 auto;
	object-fit: cover;
}


/* Circle image */
.ctr-testimonials-grid
.ctr-testimonial__avatar--circle img {
	border-radius: 50%;
}


/* Square image */
.ctr-testimonials-grid
.ctr-testimonial__avatar--square img {
	border-radius: 0;
}


/* =========================================================
   Grid Content
   ========================================================= */

.ctr-testimonials-grid .ctr-testimonial__content {
	width: 100%;
}


.ctr-testimonials-grid .ctr-testimonial__text {
	margin-bottom: 15px;
}


/* =========================================================
   Client / Title
   ========================================================= */

.ctr-testimonials-grid .ctr-testimonial__author {
	display: flex;
	flex-direction: column;
	gap: 4px;
}


.ctr-testimonials-grid .ctr-testimonial__client {
	display: block;
	font-size: 18px;
	line-height: 1.4;
}


.ctr-testimonials-grid .ctr-testimonial__job {
	display: block;
	font-size: 14px;
	line-height: 1.4;
}


.ctr-testimonials-grid .ctr-testimonial__company {
	display: block;
	font-size: 14px;
	line-height: 1.4;
}


/* =========================================================
   Rating
   ========================================================= */

.ctr-testimonials-grid .ctr-testimonial__rating {
	margin-bottom: 10px;
}


/* =========================================================
   Hide quote in grid
   ========================================================= */

.ctr-testimonials-grid .ctr-testimonial__quote {
	display: none;
}


/* =========================================================
   Tablet
   ========================================================= */

@media screen and (max-width: 991px) {

	.ctr-testimonials-grid.ctr-columns-4,
	.ctr-testimonials-grid.ctr-columns-5,
	.ctr-testimonials-grid.ctr-columns-6 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ctr-testimonials-grid.ctr-columns-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}


/* =========================================================
   Mobile
   ========================================================= */

@media screen and (max-width: 767px) {

	.ctr-testimonials-grid.ctr-columns-2,
	.ctr-testimonials-grid.ctr-columns-3,
	.ctr-testimonials-grid.ctr-columns-4,
	.ctr-testimonials-grid.ctr-columns-5,
	.ctr-testimonials-grid.ctr-columns-6 {
		grid-template-columns: 1fr;
	}

	.ctr-testimonials-grid {
		gap: 20px;
	}

}
/* Homepage rotator: centered card independent of the retired plugin CSS. */
.ctr-slider .ctr-testimonial {
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 28px 42px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}
.ctr-slider .ctr-testimonial__text,
.ctr-slider .ctr-testimonial__text p { text-align: center; }
.ctr-slider .ctr-testimonial__avatar img { margin: 0 auto; }
.ctr-slider .ctr-testimonial__author { justify-content: center; }
.ctr-testimonial__read-more { margin: 16px 0; }
.ctr-testimonial__read-more a { text-decoration: underline; }
.ctr-testimonial__read-more a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
@media (max-width: 600px) {
    .ctr-slider .ctr-testimonial { padding: 24px 36px; }
}

/* Compact grid cards matching the production homepage structure. */
.ctr-testimonials-grid.ctr-homepage-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
}
.ctr-homepage-cards .ctr-homepage-card {
    box-sizing: border-box;
    flex: 0 1 195px;
    width: 195px;
    max-width: 100%;
    margin: 10px 0;
    padding: 15px 0;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,.2), 0 6px 20px rgba(0,0,0,.19);
    text-align: left;
}
.ctr-homepage-card .ctr-homepage-card__body { padding: 0 15px; }
.ctr-homepage-card .ctr-homepage-card__image { margin-bottom: 20px; }
.ctr-homepage-card .ctr-homepage-card__image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 0;
}
.ctr-homepage-card .ctr-homepage-card__quote { line-height: 1.75; }
.ctr-homepage-card .ctr-homepage-card__quote p { margin: 0; text-align: left; }
.ctr-homepage-card .ctr-homepage-card__footer {
    margin-top: 15px;
    padding: 15px 15px 0;
    border-top: 1px solid #dfdfdf;
    font-size: 12px;
    line-height: 1.75;
}
.ctr-homepage-card__footer a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
