/**
 * Candlewide Testimonials - Compact Grid Design
 * 
 * Responsive 3-column grid with compact testimonial cards
 * Ratings box on left, product image on right
 */

* {
	box-sizing: border-box;
}

/* ===== Container ===== */
.candlewide-testimonials-container {
	width: 100%;
	margin: 0 auto;
}

/* ===== Grid Layout ===== */
.candlewide-testimonials-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

/* ===== Testimonial Card ===== */
.candlewide-testimonial-card {
	background: #fffdfb;
	border: 1px solid #eee4dc;
	border-radius: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
	color: #172338;
	box-shadow: 0 10px 30px rgba(80, 55, 35, 0.08);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
	font-family: Barlow Semi Condensed, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.candlewide-testimonial-card:hover {
	box-shadow: 0 12px 35px rgba(80, 55, 35, 0.12);
	transform: translateY(-2px);
}

/* ===== Content Section ===== */
.candlewide-testimonial-content {
	padding: 22px 22px 18px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* ===== Quote ===== */
.candlewide-testimonial-quote {
	margin-bottom: 14px;
}

.candlewide-quote-text {
    font-family: Barlow Semi Condensed, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 600;
    color: #C7AC81;
    margin: 0;
}

/* ===== Description ===== */
.candlewide-testimonial-description {
    font-size: 15px;
    line-height: 1.55;
    color: #C7AC81;
    margin-bottom: 18px;
}

/* ===== Ratings + Image Container ===== */
.candlewide-ratings-image-container {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 14px;
	align-items: stretch;
	flex: 1;
}

/* Full-width image layout for multi-image testimonials - keep side-by-side for compact cards */
.candlewide-ratings-image-container.full-width-image {
	grid-template-columns: 120px 1fr;
}

/* Full-width image layout when there are no ratings */
.candlewide-testimonial-card.no-ratings .candlewide-ratings-image-container {
	grid-template-columns: 1fr;
}

/* Horizontal ratings layout when there are ratings but no image */
.candlewide-testimonial-card.has-ratings.no-photo .candlewide-ratings-image-container {
	grid-template-columns: 1fr;
}

.candlewide-testimonial-card.has-ratings.no-photo .candlewide-ratings-box {
	flex-direction: column;
	justify-content: space-around;
	gap: 12px;
	min-height: auto;
	padding: 14px;
}

.candlewide-testimonial-card.has-ratings.no-photo .candlewide-rating-item {
	flex: 1;
	border: 1px solid #e8dbd1;
	padding: 14px 10px;
	border-radius: 0;
	background: #fff;
}

.candlewide-testimonial-card.has-ratings.no-photo .candlewide-rating-item.has-separator {
	border-top: 1px solid #e8dbd1;
	border-left: none;
	padding-top: 14px;
	padding-left: 10px;
	margin-top: 0;
	margin-left: 0;
}

/* ===== Ratings Box ===== */
.candlewide-ratings-box {
	background: #faf3ed;
	border-radius: 0;
	padding: 14px 10px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0;
	box-sizing: border-box;
	min-height: 210px;
}

.candlewide-rating-item {
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 0;
	align-items: center;
	justify-content: center;
}

.candlewide-rating-item.has-separator {
	border-top: 1px solid #e8dbd1;
	padding-top: 14px;
	margin-top: 14px;
}

.candlewide-rating-stars {
	color: #d79d78;
	font-size: 20px;
	letter-spacing: 2px;
	line-height: 1;
	margin-bottom: 4px;
	display: block;
	text-align: center;
}

.candlewide-rating-score {
	font-size: 18px;
	font-weight: 700;
	color: #172338;
	margin-top: 4px;
	line-height: 1.1;
	display: block;
	text-align: center;
}

.candlewide-rating-label {
	font-size: 11px;
	color: #6b7280;
	margin-top: 4px;
	line-height: 1.3;
	display: block;
	text-align: center;
}

/* ===== Product Image ===== */
.candlewide-product-image-container {
	height: 100%;
	min-height: 210px;
	border-radius: 0;
	overflow: hidden;
	background: #e8e8e8;
	flex: 1;
}

.candlewide-photo-image {
	width: 100%;
	height: 100% !important;
	display: block;
	object-fit: cover;
	transition: transform 0.3s ease;
	cursor: pointer;
}

.candlewide-photo-image:hover {
	transform: scale(1.05);
}

/* ===== Photo Slider ===== */
.candlewide-photo-slider {
	position: relative;
	height: 240px;
	border-radius: 0;
	overflow: hidden;
	background: #e8e8e8;
	border: 1px solid #ddd;
	flex: 1;
}

.candlewide-slider-track {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.candlewide-slider-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.candlewide-slider-slide.active {
	opacity: 1;
	z-index: 10;
}

.candlewide-slider-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Slider Navigation Buttons */
.candlewide-slider-prev,
.candlewide-slider-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	border: none;
	color: #fff;
	font-size: 24px;
	width: 40px;
	height: 40px;
	border-radius: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.3s ease;
	z-index: 20;
}

.candlewide-slider-prev:hover,
.candlewide-slider-next:hover {
	background: rgba(0, 0, 0, 0.7);
}

.candlewide-slider-prev {
	left: 10px;
}

.candlewide-slider-next {
	right: 10px;
}

/* Slider Dots */
.candlewide-slider-dots {
	position: absolute;
	bottom: 12px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 20;
}

.candlewide-slider-dot {
	width: 10px;
	height: 10px;
	border-radius: 0;
	background: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: background 0.3s ease, transform 0.3s ease;
}

.candlewide-slider-dot:hover {
	background: rgba(255, 255, 255, 0.8);
}

.candlewide-slider-dot.active {
	background: #fff;
	transform: scale(1.2);
}

/* Photo Counter */
.candlewide-photo-counter {
	position: absolute;
	bottom: 12px;
	right: 12px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	padding: 6px 10px;
	border-radius: 0;
	font-size: 12px;
	z-index: 20;
}

/* ===== Footer Section ===== */
.candlewide-testimonial-footer {
	border-top: 1px solid #eee4dc;
	padding: 14px 22px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #fffdfb;
}

.candlewide-client-name {
	font-size: 18px;
	font-weight: 700;
	color: #4e4e4e;
	line-height: 1.2;
	margin: 0;
}

.candlewide-client-label {
	font-family: Barlow Semi Condensed, "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 12px;
	font-style: italic;
	color: #d19a77;
	margin-top: 3px;
	line-height: 1.2;
}

/* ===== Pagination ===== */
.candlewide-testimonials-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 30px;
	padding: 0 20px;
}

.candlewide-testimonials-show-more,
.candlewide-testimonials-back-to-start {
	background: #172338;
	color: #fff;
	border: none;
	padding: 12px 30px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 0;
	cursor: pointer;
	transition: background 0.3s ease;
}

.candlewide-testimonials-show-more:hover,
.candlewide-testimonials-back-to-start:hover {
	background: #273346;
}

.candlewide-page-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 0;
	background: #ddd;
	margin: 0 6px;
	cursor: pointer;
	transition: background 0.3s ease;
}

.candlewide-page-dot:hover {
	background: #999;
}

.candlewide-page-dot.active {
	background: #172338;
}

/* ===== Empty State ===== */
.candlewide-testimonials-empty {
	text-align: center;
	padding: 40px 20px;
	color: #999;
	font-style: italic;
}

/* ===== Responsive Design ===== */

/* Tablets & Large Mobile */
@media (max-width: 1024px) {
	.candlewide-testimonials-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 18px;
		padding: 18px;
	}

	.candlewide-testimonial-content {
		padding: 18px 18px 14px;
	}

	.candlewide-quote-text {
		font-size: 18px;
	}

	.candlewide-testimonial-description {
		font-size: 12px;
		margin-bottom: 14px;
	}

	.candlewide-ratings-box {
		padding: 11px 6px;
	}

	.candlewide-rating-stars {
		font-size: 16px;
		letter-spacing: 1px;
	}

	.candlewide-rating-score {
		font-size: 16px;
	}

	.candlewide-rating-label {
		font-size: 10px;
	}

	.candlewide-product-image-container {
		height: 200px;
		border-radius: 0;
	}

	.candlewide-photo-slider {
		height: 200px;
		border-radius: 0;
	}

	.candlewide-slider-prev,
	.candlewide-slider-next {
		width: 36px;
		height: 36px;
		font-size: 20px;
	}

	.candlewide-slider-dots {
		bottom: 10px;
		gap: 6px;
	}

	.candlewide-slider-dot {
		width: 8px;
		height: 8px;
	}

	.candlewide-photo-counter {
		font-size: 11px;
		padding: 5px 8px;
		bottom: 10px;
		right: 10px;
	}

	.candlewide-testimonial-footer {
		padding: 12px 18px;
	}

	.candlewide-client-name {
		font-size: 13px;
	}

	.candlewide-client-label {
		font-size: 11px;
	}
}

/* Mobile */
@media (max-width: 768px) {
	.candlewide-testimonials-grid {
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 16px;
	}

	.candlewide-testimonial-card {
		border-radius: 0;
	}

	.candlewide-testimonial-content {
		padding: 16px 16px 12px;
	}

	.candlewide-quote-text {
		font-size: 16px;
		line-height: 1.4;
	}

	.candlewide-testimonial-description {
		font-size: 12px;
		line-height: 1.5;
		margin-bottom: 12px;
	}

	.candlewide-ratings-image-container {
		flex-direction: column;
		grid-template-columns: 1fr;
	}

	.candlewide-ratings-box {
		width: 100%;
		padding: 14px 10px;
		flex-direction: row;
		gap: 12px;
		min-height: auto;
	}

	.candlewide-rating-item {
		flex: 1;
	}

	.candlewide-rating-item.has-separator {
		border-top: none;
		border-left: 1px solid #e8dbd1;
		padding-top: 0;
		padding-left: 12px;
		margin-top: 0;
	}

	.candlewide-rating-stars {
		font-size: 18px;
	}

	.candlewide-rating-score {
		font-size: 15px;
	}

	.candlewide-rating-label {
		font-size: 10px;
	}

	.candlewide-testimonial-footer {
		padding: 12px 16px;
	}

	.candlewide-client-name {
		font-size: 13px;
	}

	.candlewide-client-label {
		font-size: 11px;
	}
}

/* Small Mobile */
@media (max-width: 480px) {
	.candlewide-testimonials-grid {
		grid-template-columns: 1fr;
		gap: 14px;
		padding: 14px;
	}

	.candlewide-testimonial-content {
		padding: 14px 14px 10px;
	}

	.candlewide-quote-text {
		font-size: 15px;
		line-height: 1.35;
	}

	.candlewide-testimonial-description {
		font-size: 11px;
		line-height: 1.5;
		margin-bottom: 10px;
	}

	.candlewide-ratings-box {
		border-radius: 0;
		padding: 10px 8px;
		flex-direction: row;
		gap: 10px;
		min-height: auto;
	}

	.candlewide-rating-item {
		flex: 1;
	}

	.candlewide-rating-item.has-separator {
		border-top: none;
		border-left: 1px solid #e8dbd1;
		padding-top: 0;
		padding-left: 10px;
		margin-top: 0;
	}

	.candlewide-rating-stars {
		font-size: 15px;
		letter-spacing: 1px;
	}

	.candlewide-rating-score {
		font-size: 13px;
	}

	.candlewide-rating-label {
		font-size: 8px;
	}

	.candlewide-product-image-container {
		height: 160px;
		border-radius: 0;
	}

	.candlewide-photo-slider {
		height: 160px;
		border-radius: 0;
	}

	.candlewide-slider-prev,
	.candlewide-slider-next {
		width: 32px;
		height: 32px;
		font-size: 18px;
		left: 6px;
	}

	.candlewide-slider-next {
		right: 6px;
	}

	.candlewide-slider-dots {
		bottom: 8px;
		gap: 5px;
	}

	.candlewide-slider-dot {
		width: 7px;
		height: 7px;
	}

	.candlewide-photo-counter {
		font-size: 10px;
		padding: 4px 6px;
		bottom: 8px;
		right: 8px;
	}

	.candlewide-testimonial-footer {
		padding: 10px 14px;
	}

	.candlewide-client-name {
		font-size: 12px;
	}

	.candlewide-client-label {
		font-size: 10px;
		margin-top: 2px;
	}

	.candlewide-testimonials-show-more {
		width: 100%;
		padding: 10px 20px;
		font-size: 13px;
	}
}

.candlewide-product-testimonials-title{
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}