
/* PHW Reviews: matches the live site's Home doctor carousel (Inter 300, slate #4e6070, navy #2e4e65,
   teal #1b5e75 sublabels and dots, chevron arrows outside the track) and the 30px radius of the service tiles. */

/* contain:inline-size + width:100%: the section never sizes itself from the carousel's content. On doctor pages Elementor's
   display:contents widget wrapper makes the parent group a flex item sized to max-content, which widened the page to 1,150px. */
.phw-reviews {
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 0 8px;
	overflow-x: hidden;
	contain: inline-size;
	color: #4e6070;
	font-weight: 300;
	text-align: center;
}

.phw-reviews__heading {
	margin: 0 0 12px;
	color: #4e6070;
	font-size: 40px;
	font-weight: 300;
	line-height: 1.2;
}

.phw-reviews__summary {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin: 0 0 6px;
	font-size: 18px;
	line-height: 1.4;
}

.phw-reviews__summary strong {
	color: #2e4e65;
	font-size: 28px;
	font-weight: 300;
	line-height: 1;
}

.phw-reviews__note {
	margin: 0 0 6px;
	font-size: 15px;
}

/* 8px vertical padding so focus outlines aren't clipped by overflow-x:hidden (which forces overflow-y:auto). */
.phw-reviews__carousel {
	position: relative;
	margin-top: 20px;
	padding: 8px 44px;
	overflow-x: hidden;
}

.phw-review-track {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding: 2px;
}

.phw-review-track::-webkit-scrollbar {
	display: none;
}

.phw-review-track:focus-visible {
	outline: 2px solid #2b6f8c;
	outline-offset: -2px;
	border-radius: 8px;
}

/* position:relative keeps the absolutely positioned screen-reader-text inside the scrolling track; without it the label escapes to the carousel and widens the page on mobile. */
.phw-review-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	flex: 0 0 calc(( 100% - 48px ) / 3);
	box-sizing: border-box;
	margin: 0;
	padding: 34px 30px 30px;
	border-radius: 30px;
	background: #f3f7f9;
	scroll-snap-align: start;
}

/* Center 1–2 cards that don't fill the view; auto margins collapse to 0 once the track overflows. */
.phw-review-card:first-child {
	margin-left: auto;
}

.phw-review-card:last-child {
	margin-right: auto;
}

.phw-review-stars {
	display: inline-flex;
	gap: 3px;
	vertical-align: middle;
}

.phw-review-stars svg {
	display: block;
	width: 18px;
	height: 18px;
}

.phw-review-stars .is-on path {
	fill: #eeb111;
}

.phw-review-stars .is-off path {
	fill: #d5dde2;
}

.phw-review-card__text {
	display: -webkit-box;
	flex: 1 1 auto;
	margin: 0;
	overflow: hidden;
	color: #4e6070;
	font-size: 15px;
	font-weight: 300;
	line-height: 1.5;
	-webkit-line-clamp: 8;
	-webkit-box-orient: vertical;
}

.phw-review-card__name {
	margin: 4px 0 0;
	color: #2e4e65;
	font-size: 22px;
	font-weight: 300;
	line-height: 1.2;
}

.phw-review-card__meta {
	margin: 0;
	color: #1b5e75;
	font-size: 15px;
	font-weight: 300;
	line-height: 1.3;
}

.phw-review-card__meta a {
	color: #1b5e75;
	text-decoration: underline;
}

/* Scoped under .phw-reviews so the theme's global button:hover/focus (#c36 fill) can't restyle the arrows. */
.phw-reviews .phw-reviews__arrow, .phw-reviews .phw-reviews__arrow:focus, .phw-reviews .phw-reviews__arrow:active {
	position: absolute;
	top: 50%;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	margin-top: -18px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	color: #2e4e65;
	cursor: pointer;
}

.phw-reviews .phw-reviews__arrow[hidden] {
	display: none;
}

.phw-reviews .phw-reviews__arrow svg {
	width: 25px;
	height: 25px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.phw-reviews .phw-reviews__arrow:hover, .phw-reviews .phw-reviews__arrow:focus-visible {
	background: rgba(27, 94, 117, .08);
	color: #1b5e75;
}

.phw-reviews .phw-reviews__arrow:focus-visible {
	outline: 2px solid #2b6f8c;
	outline-offset: -2px;
}

.phw-reviews .phw-reviews__arrow[aria-disabled="true"] {
	opacity: .3;
	cursor: default;
	background: transparent;
}

.phw-reviews__arrow--prev {
	left: 0;
}

.phw-reviews__arrow--next {
	right: 0;
}

.phw-reviews__dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	min-height: 6px;
	margin-top: 22px;
}

.phw-reviews__dots span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #1b5e75;
	opacity: .2;
}

.phw-reviews__dots span.is-active {
	opacity: 1;
}

@media (max-width:1024px) {
	.phw-review-card {
		flex-basis: calc(( 100% - 24px ) / 2);
	}
}

@media (max-width:767px) {
	.phw-reviews__heading {
		font-size: 28px;
	}
	
	.phw-reviews__carousel {
		padding: 8px 34px;
	}
	
	.phw-review-card {
		flex-basis: 100%;
		padding: 28px 22px 24px;
	}
}

@media (prefers-reduced-motion:reduce) {
	.phw-review-track {
		scroll-behavior: auto;
	}
}
