/*!
 * Influenzic Gen 2 — Homepage Testimonials Section
 *
 * @package influenzic
 */

.g2-stories-section {
	padding: 72px 0;
}

.g2-stories-grid {
	gap: 24px;
}

.g2-story-card {
	margin: 0;
	padding: 28px;
	border-radius: var(--g2-radius-md);
	background: #ffffff;
	border: 1px solid var(--g2-border);
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
	display: flex;
	flex-direction: column;
}

.g2-stars {
	color: var(--g2-secondary);
	font-size: 15px;
	letter-spacing: 2px;
	margin-bottom: 12px;
}

.g2-story-title {
	margin: 0 0 10px;
	font-size: 16.5px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--g2-text-heading);
}

.g2-story-text {
	margin: 0 0 22px;
	font-size: 14.5px;
	line-height: 1.65;
	color: var(--g2-text-body);
}

.g2-story-author {
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid #f1f5f9;
	display: flex;
	align-items: center;
	gap: 12px;
}

.g2-story-author .g2-avatar {
	width: 42px;
	height: 42px;
	background: linear-gradient(135deg, var(--g2-primary), var(--g2-primary-hover));
}

.g2-story-author strong {
	display: block;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--g2-text-heading);
}

.g2-story-role {
	display: block;
	font-size: 12.5px;
	color: var(--g2-text-muted);
}

@media (max-width: 768px) {
	.g2-stories-section {
		padding: 56px 0;
	}

	.g2-stories-head {
		flex-direction: column;
		align-items: flex-start;
	}

	.g2-stories-grid {
		display: flex;
		flex-wrap: nowrap;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		gap: 14px;
		padding: 4px 2px 14px;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.g2-stories-grid::-webkit-scrollbar {
		display: none;
	}

	.g2-stories-grid > * {
		flex: 0 0 84%;
		scroll-snap-align: center;
	}

	.g2-stories-grid > *:last-child {
		scroll-snap-align: end;
	}
}
