/* ═══════════════════════════════════════════════════════════════════════════
   HOME — TESTIMONIALS SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.home-testimonials {
	padding: var(--ci-section-padding) 0;
	background-color: #751a3b;
	border-top: 0.3rem solid #ffffff;
}

.home-testimonials__heading {
	font-family: var(--ci-font-primary);
	font-size: clamp(1.6rem, 2.4vw, 2.4rem);
	font-weight: 700;
	color: #c6a54e;
	margin: 0 0 3rem;
	text-align: center;
}

/* 3-column grid — stretch so all cards in a row match height */
.home-testimonials__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
	align-items: stretch;
}

/* ── Base card — premium white, used on all pages except home ──────────── */
.home-testimonials__card {
	position: relative;
	margin: 0;
	padding: 1.75rem;
	border-radius: 16px;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.07);
	box-shadow:
		0 2px 8px rgba(0, 0, 0, 0.06),
		0 8px 24px rgba(0, 0, 0, 0.05);
}

/* ── Liquid Glass override — only inside .home-testimonials (dark maroon bg) */
.home-testimonials .home-testimonials__card {
	border-radius: 24px;
	background: rgba(180, 180, 180, 0.22);
	backdrop-filter: blur(24px) saturate(80%) brightness(0.95);
	-webkit-backdrop-filter: blur(24px) saturate(80%) brightness(0.95);
	border: 1px solid rgba(255, 255, 255, 0.18);
	box-shadow:
		0 8px 32px rgba(0, 0, 0, 0.30),
		inset 0 1px 0 rgba(255, 255, 255, 0.40);
}

/* Faint top-left catch — only on home glass cards */
.home-testimonials .home-testimonials__card::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(
		145deg,
		rgba(255, 255, 255, 0.08) 0%,
		rgba(255, 255, 255, 0.00) 50%
	);
	pointer-events: none;
	z-index: 0;
}

/* Ensure card children sit above pseudo overlays */
.home-testimonials .home-testimonials__card > * {
	position: relative;
	z-index: 1;
}

/* ── Shared layout pieces ──────────────────────────────────────────────── */

/* Header row: square logo + attribution side by side */
.home-testimonials__header {
	display: flex;
	align-items: center;
	gap: 1rem;
}

/* Logo container */
.home-testimonials__logo {
	width: 68px;
	height: 68px;
	flex-shrink: 0;
	border-radius: 10px;
	background: #ffffff;
	border: 2px solid #c6a54e;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	box-sizing: border-box;
}

/* Logo on glass — white panel, no gold border */
.home-testimonials .home-testimonials__logo {
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.35);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.home-testimonials__logo img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

/* Attribution */
.home-testimonials__attribution {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.home-testimonials__name {
	font-size: 0.875rem;
	font-weight: 700;
	color: #1a2e36;
	line-height: 1.3;
}

.home-testimonials__school {
	font-size: 0.8rem;
	color: rgba(0, 0, 0, 0.50);
	line-height: 1.3;
}

/* On glass — text goes white */
.home-testimonials .home-testimonials__name  { color: #ffffff; }
.home-testimonials .home-testimonials__school { color: rgba(255, 255, 255, 0.60); }

/* wpautop injects a <br> between the name and school spans — suppress it */
.home-testimonials__attribution br {
	display: none;
}

/* Quote */
.home-testimonials__quote {
	font-size: 0.95rem;
	line-height: 1.75;
	color: #2e4a55;
	font-style: normal;
	margin: 0;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	flex-grow: 1;
}

/* On glass — quote goes white */
.home-testimonials .home-testimonials__quote {
	color: rgba(255, 255, 255, 0.90);
	border-top-color: rgba(255, 255, 255, 0.14);
}

/* CTA */
.home-testimonials__cta {
	align-self: flex-start;
	margin-top: auto;
}

/* On glass — adapt pill button for dark surface */
.home-testimonials .home-testimonials__cta {
	color: #ffffff !important;
	border-color: rgba(255, 255, 255, 0.40) !important;
}

.home-testimonials .home-testimonials__cta:hover {
	background: rgba(255, 255, 255, 0.14) !important;
	border-color: rgba(255, 255, 255, 0.65) !important;
	color: #ffffff !important;
}

/* ── Tablet: 2 columns ── */
@media (max-width: 1024px) {
	.home-testimonials__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ── Mobile: 1 column ── */
@media (max-width: 600px) {
	.home-testimonials {
		padding: var(--ci-section-padding-mobile) 0;
	}

	.home-testimonials__heading {
		text-align: left;
		margin-bottom: 1.5rem;
	}

	.home-testimonials__grid {
		grid-template-columns: 1fr;
	}

	.home-testimonials__card {
		padding: 1.25rem;
	}
}
