/* «Відгуки наших пацієнтів» (template-review.php). Стиль узгоджено з npc-info.css / npc-pages.css */
.npc-rev {
	--npc-green: #007a53;
	--npc-green-dark: #00653f;
	--npc-ink: #2b2b2b;
	--npc-muted: #6b6b6b;
	--npc-line: #e3e3e3;
	--npc-tint: #e8f3ee;
	background: #f2f2f2;
	padding: 24px 0 72px;
	font-family: 'Open Sans', sans-serif;
	color: var(--npc-ink);
}
.npc-rev *,
.npc-rev *::before,
.npc-rev *::after { box-sizing: border-box; }

.npc-rev__layout {
	display: grid;
	grid-template-columns: 340px minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}

/* ---------- Ліва колонка: заголовок, зведення, дії ---------- */
.npc-rev__aside {
	position: sticky;
	top: 112px; /* висота закріпленого хедера (~88px) + відступ, щоб заголовок не ховався під хедером */
}
.npc-rev__title {
	margin: 8px 0 16px;
	padding: 0; /* тема дає h1 padding-left 10px — заголовок з'їжджав відносно тексту */
	font-family: 'Open Sans', sans-serif;
	font-size: 40px;
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -0.01em;
	text-transform: none;
	text-align: left;
	color: var(--npc-ink);
}
.npc-rev__lead {
	margin: 0 0 28px;
	font-size: 17px;
	line-height: 1.6;
	color: var(--npc-muted);
}
.npc-rev__stat {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 28px;
	padding: 16px 20px;
	background: #fff;
	border: 1px solid var(--npc-line);
	border-left: 4px solid var(--npc-green);
	border-radius: 16px;
}
.npc-rev__stat-num {
	flex: 0 0 auto;
	font-size: 34px;
	line-height: 1;
	font-weight: 700;
	color: var(--npc-green);
	font-variant-numeric: tabular-nums;
}
.npc-rev__stat-label {
	font-size: 15px;
	line-height: 1.4;
	color: var(--npc-muted);
}

.npc-rev__actions {
	display: grid;
	gap: 12px;
}
.npc-rev .leave_rewiev { display: block; padding: 0; text-align: left; }
.npc-rev .npc-rev__btn,
.npc-rev .leave_rewiev a.npc-rev__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	padding: 14px 24px;
	border: 2px solid var(--npc-green);
	border-radius: 999px;
	background: var(--npc-green);
	color: #fff;
	font-family: 'Open Sans', sans-serif;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	text-align: center;
	text-decoration: none;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.npc-rev .npc-rev__btn:hover,
.npc-rev .leave_rewiev a.npc-rev__btn:hover {
	background: var(--npc-green-dark);
	border-color: var(--npc-green-dark);
	color: #fff;
	text-decoration: none;
}
.npc-rev .npc-rev__btn--ghost {
	background: transparent;
	color: var(--npc-green);
}
.npc-rev .npc-rev__btn--ghost:hover,
.npc-rev .npc-rev__btn--ghost:focus { background: var(--npc-green); color: #fff; }
.npc-rev .npc-rev__btn:focus-visible { outline: 2px solid var(--npc-green) !important; outline-offset: 3px; }

/* ---------- Список відгуків ---------- */
.npc-rev__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 16px;
}
.npc-rev__list > li { margin: 0; padding: 0; list-style: none !important; }
.npc-rev__list > li::marker { content: none; }
.npc-rev__list > li::before { display: none !important; content: none !important; }

.npc-rev__card {
	background: #fff;
	border: 1px solid var(--npc-line);
	border-radius: 20px;
	padding: 28px 32px;
}
.npc-rev__head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 16px;
}
.npc-rev__avatar {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--npc-tint);
	color: var(--npc-green);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: .02em;
}
.npc-rev__who { flex: 1 1 auto; min-width: 0; }
.npc-rev__name {
	margin: 0;
	font-family: 'Open Sans', sans-serif;
	font-size: 18px;
	line-height: 1.35;
	font-weight: 600;
	text-transform: none;
	text-align: left;
	color: var(--npc-ink);
	overflow-wrap: anywhere;
}
.npc-rev__date {
	display: block;
	margin-top: 2px;
	font-size: 14px;
	color: var(--npc-muted);
	font-variant-numeric: tabular-nums;
}
.npc-rev__quote {
	flex: 0 0 auto;
	color: #cfe3da;
	display: inline-flex;
}

.npc-rev__text {
	position: relative;
	font-size: 17px;
	line-height: 1.7;
	color: var(--npc-ink);
	max-height: calc(1.7em * 8);
	overflow: hidden;
	overflow-wrap: anywhere;
}
.npc-rev__text p { margin: 0 0 12px; font-size: inherit; line-height: inherit; color: inherit; }
.npc-rev__text p:last-child { margin-bottom: 0; }
.npc-rev__text p:empty { display: none; }
.npc-rev__card:not(.is-open) .npc-rev__text::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3.4em;
	background: linear-gradient(rgba(255, 255, 255, 0), #fff);
	pointer-events: none;
}
.npc-rev__card.is-open .npc-rev__text { max-height: none; }

.npc-rev__more {
	margin-top: 12px;
	padding: 6px 0;
	border: 0;
	background: none;
	color: var(--npc-green);
	font-family: 'Open Sans', sans-serif;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}
.npc-rev__more[hidden] { display: none; }
.npc-rev__more:hover { text-decoration: underline; }
.npc-rev__more:focus-visible { outline: 2px solid var(--npc-green); outline-offset: 2px; border-radius: 4px; }

/* ---------- Пагінація ---------- */
.npc-rev__pager {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 32px;
}
.npc-rev__pager .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--npc-line);
	border-radius: 12px;
	background: #fff;
	color: var(--npc-ink);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}
.npc-rev__pager a.page-numbers:hover { border-color: var(--npc-green); color: var(--npc-green); text-decoration: none; }
.npc-rev__pager .page-numbers.current { background: var(--npc-green); border-color: var(--npc-green); color: #fff; }
.npc-rev__pager .page-numbers.dots { border-color: transparent; background: transparent; min-width: 24px; padding: 0; }

/* ---------- Адаптив ---------- */
@media (max-width: 1199px) {
	.npc-rev__layout { grid-template-columns: 300px minmax(0, 1fr); gap: 32px; }
	.npc-rev__title { font-size: 34px; }
}
@media (max-width: 991px) {
	.npc-rev__layout { grid-template-columns: 1fr; gap: 28px; }
	.npc-rev__aside { position: static; }
	.npc-rev__actions { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
	.npc-rev { padding: 16px 0 48px; }
	.npc-rev__title { font-size: 28px; margin: 4px 0 10px; }
	.npc-rev__lead { font-size: 16px; margin-bottom: 20px; }
	.npc-rev__stat { margin-bottom: 20px; padding: 12px 16px; gap: 12px; }
	.npc-rev__stat-num { font-size: 28px; }
	.npc-rev__actions { grid-template-columns: 1fr; gap: 10px; }
	.npc-rev__list { gap: 12px; }
	.npc-rev__card { padding: 20px 18px; border-radius: 16px; }
	.npc-rev__avatar { flex-basis: 42px; width: 42px; height: 42px; font-size: 15px; }
	.npc-rev__name { font-size: 17px; }
	.npc-rev__quote svg { width: 22px; height: 22px; }
	.npc-rev__text { font-size: 16px; max-height: calc(1.7em * 10); }
	.npc-rev__pager .page-numbers { min-width: 40px; height: 40px; }
}

/* Скрипт теми дописує номери до ol li — на всяк випадок ховаємо їх тут */
.npc-rev .edit_list { display: none !important; }
