/* ============================================================
   Divi Testimonial Tabs – Front-end styles
   ============================================================ */

:root {
	--dtt-accent:      #4a7c00;
	--dtt-star-filled: #00b67a;   /* Trustpilot green */
	--dtt-star-empty:  #dcdcdc;
	--dtt-panel-bg:    #f2ede8;   /* warm off-white / cream */
	--dtt-text-dark:   #1a1a1a;
	--dtt-text-mid:    #444444;
	--dtt-text-light:  #888888;
	--dtt-tab-border:  #e0e0e0;
	--dtt-radius:      14px;
}

/* ── Wrapper ────────────────────────────────────────────────── */
.dtt-wrapper {
	max-width: 1140px;
	margin: 0 auto;
	padding: 48px 24px 60px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
}

/* ── Section heading ────────────────────────────────────────── */
.dtt-section-title {
	text-align: center;
	font-size: clamp(28px, 4vw, 46px);
	font-weight: 800;
	color: var(--dtt-text-dark);
	line-height: 1.18;
	margin: 0 auto 44px;
	max-width: 780px;
	letter-spacing: -0.5px;
}

/* ── Tab navigation ─────────────────────────────────────────── */
.dtt-tabs-nav {
	display: flex;
	flex-wrap: wrap;
	border-bottom: 1.5px solid var(--dtt-tab-border);
	margin-bottom: 28px;
	gap: 0;
}

.dtt-tab {
	background: none;
	border: none;
	border-bottom: 2.5px solid transparent;
	margin-bottom: -1.5px;
	padding: 14px 28px;
	font-size: 15px;
	font-weight: 500;
	color: var(--dtt-text-light);
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease;
	white-space: nowrap;
	letter-spacing: 0.01em;
}

.dtt-tab:hover {
	color: var(--dtt-text-dark);
}

.dtt-tab--active {
	color: var(--dtt-accent);
	font-weight: 700;
	border-bottom-color: var(--dtt-accent);
}

/* ── Panel card ─────────────────────────────────────────────── */
.dtt-panel {
	background: var(--dtt-panel-bg);
	border-radius: var(--dtt-radius);
	padding: 52px 60px;
}

.dtt-panel[hidden] {
	display: none;
}

.dtt-panel-inner {
	display: flex;
	align-items: center;
	gap: 56px;
}

/* ── Testimonial content ────────────────────────────────────── */
.dtt-content {
	flex: 1 1 0;
	min-width: 0;
}

/* Stars */
.dtt-stars {
	display: flex;
	gap: 5px;
	margin-bottom: 24px;
}

.dtt-star {
	font-size: 30px;
	line-height: 1;
	color: var(--dtt-star-empty);
	transition: color 0.15s;
}

.dtt-star--filled {
	color: var(--dtt-star-filled);
}

/* Quote headline */
.dtt-quote-title {
	font-size: 21px;
	font-weight: 700;
	color: var(--dtt-text-dark);
	margin: 0 0 16px;
	line-height: 1.35;
}

/* Full testimonial */
.dtt-quote-text {
	font-size: 16px;
	color: var(--dtt-text-mid);
	line-height: 1.75;
	margin: 0 0 28px;
}

/* Author block */
.dtt-author {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.dtt-author-name {
	display: block;
	font-size: 16px;
	font-weight: 700;
	color: var(--dtt-text-dark);
}

.dtt-author-location {
	font-size: 14px;
	color: var(--dtt-text-light);
}

/* ── Author photo ───────────────────────────────────────────── */
.dtt-photo {
	flex: 0 0 400px;
	max-width: 400px;
}

.dtt-photo img {
	width: 100%;
	height: 460px;
	object-fit: cover;
	object-position: center top;
	border-radius: var(--dtt-radius);
	display: block;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media ( max-width: 960px ) {
	.dtt-panel {
		padding: 40px 40px;
	}

	.dtt-panel-inner {
		gap: 36px;
	}

	.dtt-photo {
		flex: 0 0 300px;
		max-width: 300px;
	}

	.dtt-photo img {
		height: 360px;
	}
}

@media ( max-width: 720px ) {
	.dtt-panel {
		padding: 32px 24px;
	}

	.dtt-panel-inner {
		flex-direction: column-reverse;
		gap: 28px;
	}

	.dtt-photo {
		flex: none;
		width: 100%;
		max-width: 100%;
	}

	.dtt-photo img {
		height: 300px;
		object-position: center 20%;
	}

	.dtt-tabs-nav {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		flex-wrap: nowrap;
		padding-bottom: 2px;
	}

	.dtt-tab {
		padding: 12px 18px;
		font-size: 14px;
	}
}
