/* =============================================================
   Clearwater Client Story Module
   clearwater-client-story.css
   Place in Divi child theme root alongside the PHP file.
   ============================================================= */

.cw-client-story {
	background: #fff;
	border: 1px solid #E4E7F2;
	border-radius: 4px;
	padding: 40px;
	box-shadow: 0 0 1rem rgba(55, 85, 230, 0.1);
}

.cw-cs-subheadline {
	font-family: "Red Hat Display", Arial, sans-serif;
	font-size: .85rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #3755E6;
	display: block;
	margin: 0 0 10px;
}

.cw-cs-title {
	font-family: "Red Hat Display", Arial, sans-serif;
	font-size: 1.4rem;
	font-weight: 700;
	color: #3755E6;
	margin: 0 0 10px;
}

.cw-cs-desc {
	color: #3755E6;
	max-width: 760px;
	margin: 0 0 22px;
}

/* ── Video + quotes side-by-side ─────────────────────────── */
.cw-cs-media-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	align-items: start;
}

/* Video takes the left column, stays 16:9 within its cell */
.cw-cs-video-frame {
	position: relative;
	padding-top: 56.25%;
	background: #000;
	border-radius: 4px;
	overflow: hidden;
}

.cw-cs-video-frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Quotes stack in the right column */
.cw-cs-quote-row {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cw-cs-quote-card {
	background: #fff;
	border-left: 4px solid #3755E6;
	border-radius: 0 4px 4px 0;
	padding: 18px 22px;
	box-shadow: 0 0 1rem rgba(55, 85, 230, 0.1);
}

.cw-cs-quote-card p {
	font-family: "Red Hat Display", Arial, sans-serif;
	font-weight: 500;
	font-size: .95rem;
	color: #3755E6;
	margin: 0 0 12px;
}

.cw-cs-quote-attr {
	display: flex;
	align-items: center;
	gap: 10px;
}

.cw-cs-avatar-initials {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #CDD7F5;
	color: #3755E6;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Red Hat Display", Arial, sans-serif;
	font-weight: 700;
	font-size: .8rem;
	flex: 0 0 auto;
}

.cw-cs-who-name {
	font-size: .85rem;
	font-weight: 700;
	color: #3755E6;
}

.cw-cs-who-title {
	font-size: .78rem;
	color: #3755E6;
}

/* Stack vertically on smaller screens */
@media (max-width: 768px) {
	.cw-cs-media-row {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 900px) {
	.cw-client-story {
		padding: 26px 22px;
	}
}

/* =============================================================
   Builder preview placeholder
   Only visible inside the Divi Visual Builder
   ============================================================= */

.cw-client-story--preview .cw-cs-preview-media-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	align-items: start;
	margin-top: 16px;
}

.cw-client-story--preview .cw-cs-preview-quotes {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cw-client-story--preview .cw-cs-quote-card p {
	color: #a0aac4;
	font-style: italic;
}

.cw-client-story--preview .cw-cs-preview-video {
	background: #E4E7F2;
	border-radius: 4px;
	aspect-ratio: 16 / 9;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #3755E6;
	gap: 8px;
}

.cw-client-story--preview .cw-cs-preview-video span {
	font-size: 2rem;
	line-height: 1;
}

.cw-client-story--preview .cw-cs-preview-video p {
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #3755E6;
	margin: 0;
}