/* Azedw Testimonials — scoped front-end styles */

.azt {
	--azt-border: #e6e6e6;
	--azt-muted: #6b7280;
	--azt-accent: var(--e-global-color-primary, #ff5740);
	--azt-star: #f5a623;
	--azt-card-bg: #fff;
	margin: 2rem 0;
}

/* Inherit the site/Elementor typography rather than imposing our own */
.azt,
.azt .azt-name,
.azt .azt-quote,
.azt .azt-tab { font-family: inherit; }

.azt *,
.azt *::before,
.azt *::after { box-sizing: border-box; }

/* ---- Tabs ---- */
.azt-tablist {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	border-bottom: 1px solid var(--azt-border);
	margin-bottom: 1.75rem;
}

.azt-tab {
	appearance: none;
	background: transparent;
	border: 0;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	padding: .65rem .9rem;
	font: inherit;
	font-weight: 600;
	color: var(--azt-muted);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	line-height: 1.2;
	transition: color .15s ease, border-color .15s ease;
}

.azt-tab:hover { color: inherit; }

.azt-tab.is-active {
	color: inherit;
	border-bottom-color: var(--azt-accent);
}

.azt-tab:focus-visible {
	outline: 2px solid var(--azt-accent);
	outline-offset: 2px;
	border-radius: 3px;
}

.azt-count > span {
	display: inline-block;
	min-width: 1.4em;
	padding: 0 .35em;
	border-radius: 999px;
	background: #f0f1f3;
	color: var(--azt-muted);
	font-size: .72em;
	line-height: 1.5em;
	text-align: center;
}

.azt-tab.is-active .azt-count > span {
	background: var(--azt-accent);
	color: #fff;
}

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

/* ---- Grid ---- */
.azt-grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(var(--azt-cols, 2), minmax(0, 1fr));
}
.azt-cols-1 { --azt-cols: 1; }
.azt-cols-2 { --azt-cols: 2; }
.azt-cols-3 { --azt-cols: 3; }
.azt-cols-4 { --azt-cols: 4; }

@media (max-width: 900px) { .azt-grid { --azt-cols: 2; } }
@media (max-width: 640px) { .azt-grid { --azt-cols: 1; } }

.azt--list .azt-grid { --azt-cols: 1; }

/* ---- Card ---- */
.azt-card {
	margin: 0;
	padding: 1.5rem 1.5rem 1.35rem;
	background: var(--azt-card-bg);
	border: 1px solid var(--azt-border);
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	gap: .9rem;
}

.azt-stars { letter-spacing: 2px; font-size: 1rem; line-height: 1; }
.azt-star { color: #d9d9d9; }
.azt-star.is-on { color: var(--azt-star); }

/* Reset aggressive theme blockquote styling (azedw skins every blockquote) */
.azt .azt-quote {
	margin: 0;
	padding: 0 0 0 1.4rem;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	color: inherit !important;
	font: inherit;
	font-size: 1.02rem;
	line-height: 1.7;
	quotes: none;
	position: relative;
}
.azt .azt-quote::before,
.azt .azt-quote::after {
	all: unset;
}
.azt .azt-quote::before {
	content: "\201C";
	position: absolute;
	top: .15em;
	left: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 2.4rem;
	line-height: 1;
	color: var(--azt-border);
	pointer-events: none;
}
.azt .azt-quote p {
	margin: 0 0 .6rem;
	padding: 0;
	background: none !important;
	color: inherit !important;
	font: inherit;
}
.azt .azt-quote p:last-child { margin-bottom: 0; }

.azt-meta {
	display: flex;
	align-items: center;
	gap: .8rem;
	margin-top: auto;
	padding-top: .35rem;
}

.azt-avatar {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	overflow: hidden;
	flex: 0 0 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f0f1f3;
}
.azt-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.azt-avatar--initials {
	font-weight: 700;
	color: var(--azt-muted);
	font-size: .95rem;
	letter-spacing: .5px;
}

.azt-who { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.azt-name { font-weight: 700; }
.azt-role,
.azt-source { font-size: .85rem; color: var(--azt-muted); }
.azt-source a { color: inherit; text-decoration: underline; }

/* ---- Stacked sections layout ---- */
.azt--sections .azt-group-title,
.azt--grid .azt-group-title,
.azt--list .azt-group-title {
	margin: 3rem 0 1.5rem;
	padding-bottom: .6rem;
	border-bottom: 1px solid var(--azt-border);
	font-size: 1.5rem;
	line-height: 1.3;
}
.azt--sections > .azt-group-title:first-child,
.azt--grid > .azt-group-title:first-child,
.azt--list > .azt-group-title:first-child { margin-top: 0; }

.azt-group-title { margin: 2rem 0 1rem; }
.azt-empty { color: var(--azt-muted); font-style: italic; margin: 0 0 1rem; }
