/*
 * Las Encinas Hospital: Testimonials page
 * Loaded only by template-testimonials.php. Uses the site's existing tokens:
 * Montserrat, blue #144b91, green #85B594, body text #3b3b3b.
 */

.le-tm {
	--le-blue: #144b91;
	--le-green: #85B594;
	--le-ink: #3b3b3b;
	--le-muted: #6b7280;
	--le-line: #d9d9d9;
	--le-gold: #e8a317;
	font-family: Montserrat, sans-serif;
	color: var(--le-ink);
	font-size: 16px;
	line-height: 1.6;
}

.le-tm * {
	box-sizing: border-box;
}

/* ---------- Page layout (this template only) ---------- */

/* Genesis full-width layout is forced in the template; these are fallbacks
   in case the child theme keeps its two-column grid or prints the sidebar. */
.le-testimonials-page .content-sidebar-wrap {
	grid-template-columns: minmax(0, 1fr);
}

.le-testimonials-page aside.sidebar {
	display: none;
}

/* Theme gives .text-area a 75px top margin; the breadcrumb already provides
   ~55px of space, so remove the extra gap. */
.le-testimonials-page .entry-content > .text-area {
	margin-top: 0;
	margin-bottom: 72px;
}

/* ---------- Intro + filters ---------- */

.le-tm-intro {
	margin: 0 0 24px;
	font-size: 17px;
}

.le-tm-intro p {
	font-size: inherit;
	margin: 0 0 12px;
}

.le-tm-intro > :last-child {
	margin-bottom: 0;
}

.le-tm-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 8px;
}

.le-tm-filter button {
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	border: 1.5px solid var(--le-blue);
	background: #fff;
	color: var(--le-blue);
	border-radius: 999px;
	padding: 6px 16px;
	cursor: pointer;
	transition: background .15s, color .15s;
}

.le-tm-filter button[aria-pressed="true"],
.le-tm-filter button:hover {
	background: var(--le-blue);
	color: #fff;
}

.le-tm-filter button:focus-visible {
	outline: 3px solid var(--le-green);
	outline-offset: 2px;
}

/* ---------- Testimonials ---------- */

.le-tm-item {
	padding: 28px 0;
	border-bottom: 1px solid var(--le-line);
	margin: 0;
}

.le-tm-item[hidden] {
	display: none;
}

.le-tm-stars {
	display: flex;
	gap: 2px;
	margin-bottom: 10px;
}

.le-tm-star svg {
	width: 17px;
	height: 17px;
	fill: var(--le-gold);
	display: block;
}

.le-tm-star--off svg {
	fill: #d5d9dc;
}

.le-tm-quote {
	margin: 0;
	padding: 0;
	border: 0;
}

.le-tm-quote p {
	margin: 0 0 12px;
	font-size: 16px;
	color: var(--le-ink);
}

/* ---------- Read more / read less ----------
   Without JS the full review shows and the excerpt/button stay hidden.
   The template adds .le-tm-js inline, before the reviews render. */

.le-tm-excerpt,
.le-tm-toggle {
	display: none;
}

.le-tm.le-tm-js .has-more .le-tm-excerpt {
	display: block;
}

.le-tm.le-tm-js .has-more .le-tm-full {
	display: none;
}

.le-tm.le-tm-js .has-more.is-open .le-tm-excerpt {
	display: none;
}

.le-tm.le-tm-js .has-more.is-open .le-tm-full {
	display: block;
}

.le-tm.le-tm-js .le-tm-toggle {
	display: inline-block;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--le-blue);
	background: none;
	border: 0;
	padding: 0;
	margin: 0 0 14px;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.le-tm.le-tm-js .le-tm-toggle:hover {
	color: #0f3a70;
}

.le-tm.le-tm-js .le-tm-toggle:focus-visible {
	outline: 3px solid var(--le-green);
	outline-offset: 2px;
}

.le-tm-meta {
	font-size: 14px;
	color: var(--le-muted);
}

.le-tm-name {
	display: block;
	font-weight: 600;
	color: var(--le-ink);
	font-size: 16px;
	margin-bottom: 2px;
}

.le-tm-meta a {
	color: var(--le-blue);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.le-tm p.le-tm-note {
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--le-muted);
	margin: 32px 0 0;
}

/* ---------- CTA ----------
   Same design as the homepage "Your Journey to Recovery Starts Here" section.
   Those rules live in front-page.css, which only loads on the homepage, so
   they are repeated here. The button uses the theme's existing
   .button.yellow.large.no-arrow classes. */

.le-tm .full-width-cta {
	background-color: #144b91;
	border-top-left-radius: 150px;
	border-bottom-right-radius: 150px;
	padding: 55px 0;
	text-align: center;
	position: relative;
	margin-top: 48px;
}

.le-tm .full-width-cta .inner {
	max-width: 1110px;
	margin: 0 auto;
	padding: 0 15px;
}

.le-tm .full-width-cta h2 {
	font-family: Montserrat, sans-serif;
	font-size: 35px;
	line-height: 42px;
	font-weight: 600;
	color: #fff;
	margin: 0 0 12px;
}

.le-tm .full-width-cta p {
	color: #fff;
	margin: 0 0 48px;
}

.le-tm .full-width-cta p:has(.button) {
	margin: 0;
	padding-top: 8px;
}

.le-tm .full-width-cta .button {
	margin-bottom: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
	.le-tm .full-width-cta {
		padding: 40px 0;
		border-top-left-radius: 50px;
		border-bottom-right-radius: 50px;
	}

	.le-tm .full-width-cta h2 {
		font-size: 28px;
		line-height: 34px;
	}

	.le-tm .full-width-cta p {
		margin-bottom: 32px;
	}
}

@media (max-width: 640px) {
	.le-testimonials-page .entry-content > .text-area {
		margin-bottom: 48px;
	}

	.le-tm-item {
		padding: 22px 0;
	}
}
