/* Testimonials block (inc/testimonials-block.php). Rules copied verbatim
   from the child theme; only the lightbox chrome is renamed from
   .dfi-cta-modal* to .dfi-testimonial-lightbox* (see that file's header). */

/* "Read more" lightbox chrome (assets/js/testimonials.js). */

.dfi-testimonial-lightbox[hidden] {
	display: none;
}

.dfi-testimonial-lightbox {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}

.dfi-testimonial-lightbox__overlay {
	position: absolute;
	inset: 0;
	background: rgba(20, 20, 20, 0.55);
}

.dfi-testimonial-lightbox__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 520px;
	max-height: calc(100vh - 3rem);
	overflow-y: auto;
	background: #ffffff;
	border-radius: 8px;
	padding: 2.5rem 2rem;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.dfi-testimonial-lightbox__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	width: 36px;
	height: 36px;
	border: 0;
	background: transparent;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: #666666;
}

.dfi-testimonial-lightbox__close:hover {
	color: #111111;
}

body.dfi-testimonial-lightbox-open {
	overflow: hidden;
}

.dfi-testimonials {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.75rem;
	padding-bottom: 2.5rem;
}

/* Full-bleed spans exactly the viewport width (see .dfi-full-bleed),
   so without this the first/last column's cards would touch the screen
   edge — this insets the grid's own content instead of touching the
   width/margin math that does the edge-to-edge positioning. */
.dfi-testimonials.dfi-full-bleed {
	padding-inline: 2rem;
}

.dfi-testimonial {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid #dce6ed;
	border-radius: 14px;
	padding: 2rem 1.85rem 1.75rem;
	box-shadow: 0 4px 20px rgba(20, 45, 75, 0.06);
}

.dfi-testimonial__quote-icon {
	color: #4a90d9;
	opacity: 0.25;
	font-size: 1.75rem;
	margin-bottom: 0.75rem;
}

.dfi-testimonial__text {
	flex: 1 1 auto;
	margin: 0 0 1rem;
	color: #333333;
	line-height: 1.65;
}

.dfi-testimonial__read-more {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0 0 1.25rem;
	padding: 0;
	border: 0;
	background: none;
	color: #4a90d9;
	font-weight: 600;
	font-size: 0.9rem;
	cursor: pointer;
	transition: gap 0.15s ease, color 0.15s ease;
}

.dfi-testimonial__read-more:hover,
.dfi-testimonial__read-more:focus {
	gap: 0.65rem;
	color: #2e6d93;
}

.dfi-testimonial__read-more i {
	font-size: 0.8em;
}

.dfi-testimonial__attribution {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin-top: auto;
	padding-top: 1.25rem;
	border-top: 1px solid #eef3f7;
}

.dfi-testimonial__photo {
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid #dce6ed;
}

.dfi-testimonial__who {
	min-width: 0;
}

.dfi-testimonial__name {
	font-weight: 700;
	font-size: 0.95rem;
	color: #1b2a41;
}

.dfi-testimonial__title {
	font-size: 0.85rem;
	color: #6c7f91;
}

@media (max-width: 768px) {
	.dfi-testimonials {
		grid-template-columns: 1fr;
	}

	.dfi-testimonials.dfi-full-bleed {
		padding-inline: 1.25rem;
	}
}

/* Wider dialog + body styling for the "Read more" lightbox. */

.dfi-testimonial-modal__dialog {
	max-width: 640px;
}

.dfi-testimonial-modal__quote-icon {
	display: block;
	color: #4a90d9;
	opacity: 0.3;
	font-size: 2rem;
	margin-bottom: 1rem;
}

.dfi-testimonial-modal__text {
	margin: 0 0 1.5rem;
	color: #333333;
	line-height: 1.75;
	font-size: 1.05rem;
}
