/* ZenOnco Reviews Gallery — design tokens from UI asset pack */
.rg-page {
	--rg-teal: #007C78;
	--rg-navy: #102A56;
	--rg-mint: #EAF9F7;
	--rg-mint-border: #C9EFEB;
	--rg-gold: #F2A400;
	--rg-body: #4D6280;
	--rg-border: #DCEBED;
	--rg-bg: #F7FCFC;
	--rg-white: #ffffff;
	--rg-radius: 20px;
	background: var(--rg-bg);
	color: var(--rg-body);
	font-family: Poppins, sans-serif;
	overflow-x: hidden;
}

.rg-page .container {
	max-width: 1140px;
	margin: 0 auto;
	padding-left: 16px;
	padding-right: 16px;
}

.rg-page .sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

/* —— Hero —— */
.rg-hero {
	position: relative;
	background:
		radial-gradient(ellipse 80% 70% at 85% 40%, rgba(0, 124, 120, 0.12), transparent 55%),
		radial-gradient(ellipse 60% 50% at 10% 80%, rgba(201, 239, 235, 0.7), transparent 50%),
		linear-gradient(165deg, #f0fbfa 0%, #ffffff 55%, #f7fcfc 100%);
	padding: 48px 0 56px;
	overflow: hidden;
}

.rg-hero-inner {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 40px;
	align-items: center;
}

.rg-kicker {
	margin: 0 0 12px;
	color: var(--rg-teal);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	opacity: 0;
	animation: rg-fade-up 0.6s ease forwards;
}

.rg-hero-title {
	margin: 0 0 14px;
	color: var(--rg-navy);
	font-size: clamp(32px, 4vw, 46px);
	font-weight: 700;
	line-height: 1.15;
	opacity: 0;
	animation: rg-fade-up 0.65s ease 0.08s forwards;
}

.rg-hero-title span {
	color: var(--rg-teal);
}

.rg-hero-sub {
	margin: 0 0 28px;
	max-width: 460px;
	font-size: 16px;
	line-height: 1.55;
	color: var(--rg-body);
	opacity: 0;
	animation: rg-fade-up 0.65s ease 0.16s forwards;
}

.rg-trust {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
	opacity: 0;
	animation: rg-fade-up 0.65s ease 0.24s forwards;
}

.rg-trust li {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.rg-trust img {
	display: block;
	width: 28px;
	height: 28px;
}

.rg-trust span {
	font-size: 12px;
	line-height: 1.35;
	color: var(--rg-navy);
}

.rg-trust strong {
	display: block;
	font-weight: 600;
}

.rg-hero-visual {
	position: relative;
	min-height: 400px;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	animation: rg-fade-in 0.8s ease 0.2s forwards;
}

.rg-hero-stage {
	position: relative;
	width: 100%;
	max-width: 560px;
	aspect-ratio: 5 / 4;
	margin-left: auto;
	animation: rg-fade-up 0.75s ease 0.15s both;
}

.rg-hero-photo-wrap {
	position: absolute;
	left: 0;
	top: 0;
	width: 58%;
	aspect-ratio: 4 / 3;
	border-radius: 18px;
	overflow: hidden;
	background: var(--rg-mint);
	box-shadow: 0 18px 40px rgba(16, 42, 86, 0.12);
	z-index: 2;
}

.rg-hero-photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
}

.rg-hero-script {
	position: absolute;
	left: 64%;
	right: 0;
	top: 10%;
	margin: 0;
	z-index: 3;
	color: var(--rg-teal);
	font-family: Caveat, "Segoe Script", cursive;
	font-size: clamp(28px, 4.2vw, 44px);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: 0.01em;
	text-align: left;
	transform: rotate(-4deg);
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.rg-hero-heart {
	display: inline-block;
	color: var(--rg-teal);
	font-size: 0.72em;
	vertical-align: middle;
	animation: rg-heart-pulse 2.4s ease-in-out infinite;
}

.rg-hero-quote {
	position: absolute;
	left: 6%;
	top: auto;
	bottom: 4%;
	z-index: 4;
	width: min(52%, 250px);
	margin: 0;
	padding: 14px 16px 12px;
	background: var(--rg-white);
	border-radius: 14px;
	box-shadow: 0 12px 28px rgba(16, 42, 86, 0.1);
	animation: rg-fade-up 0.7s ease 0.35s both;
}

.rg-hero-quote img {
	display: block;
	width: 22px;
	height: 22px;
	margin-bottom: 6px;
	opacity: 0.85;
}

.rg-hero-quote p {
	margin: 0 0 4px;
	color: var(--rg-navy);
	font-size: clamp(13px, 1.35vw, 15px);
	font-weight: 700;
	line-height: 1.35;
}

.rg-hero-quote cite {
	display: block;
	font-style: italic;
	font-size: 12px;
	color: #6a7f99;
	font-weight: 500;
}

@keyframes rg-heart-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.12); }
}

/* —— Stats —— */
.rg-stats {
	padding: 0 0 8px;
	margin-top: -12px;
	position: relative;
	z-index: 2;
}

.rg-stats-bar {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	background: linear-gradient(180deg, #f3fbfb 0%, #ffffff 100%);
	border: 1px solid var(--rg-mint-border);
	border-radius: 20px;
	box-shadow: 0 8px 28px rgba(16, 42, 86, 0.06);
	overflow: hidden;
}

.rg-stat {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 22px 20px;
	border-right: 1px solid var(--rg-border);
}

.rg-stat:last-child {
	border-right: none;
}

.rg-stat-icon {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--rg-mint);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transform: scale(0.7);
	transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.rg-stat.is-revealed .rg-stat-icon {
	opacity: 1;
	transform: scale(1);
}

.rg-stat-google {
	background: transparent;
}

.rg-stat-value {
	margin: 0 0 4px;
	color: var(--rg-navy);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.rg-stat.is-revealed .rg-stat-value {
	opacity: 1;
	transform: none;
}

.rg-stat-value[data-rg-count].is-counted,
.rg-stat-value[data-rg-text].is-counted {
	animation: rg-stat-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.rg-stat-value-sm {
	font-size: 16px;
}

.rg-stat-label {
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
	color: var(--rg-body);
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.55s ease 0.35s, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.35s;
}

.rg-stat.is-revealed .rg-stat-label {
	opacity: 1;
	transform: none;
}

.rg-stat-label span {
	color: #7a8da6;
	font-size: 12px;
	display: inline-block;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.5s ease 0.65s, transform 0.55s ease 0.65s;
}

.rg-stat.is-revealed .rg-stat-label span {
	opacity: 1;
	transform: none;
}

.rg-stat-link {
	display: inline-block;
	margin-top: 6px;
	color: var(--rg-teal);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.5s ease 0.55s, transform 0.55s ease 0.55s;
}

.rg-stat.is-revealed .rg-stat-link {
	opacity: 1;
	transform: none;
}

.rg-stat-link:hover {
	text-decoration: underline;
}

@keyframes rg-stat-pop {
	0% { transform: scale(1); }
	40% { transform: scale(1.08); }
	100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
	.rg-stat-icon,
	.rg-stat-value,
	.rg-stat-label,
	.rg-stat-label span,
	.rg-stat-link {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
		animation: none !important;
	}
}

/* —— Gallery —— */
.rg-gallery {
	padding: 48px 0 40px;
}

.rg-gallery-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 28px;
}

.rg-gallery-titles h2 {
	margin: 0 0 6px;
	color: var(--rg-navy);
	font-size: 28px;
	font-weight: 700;
}

.rg-gallery-titles p {
	margin: 0;
	font-size: 14px;
	color: var(--rg-body);
}

.rg-search {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 1 380px;
	min-width: 240px;
	padding: 12px 16px;
	background: var(--rg-white);
	border: 1px solid var(--rg-border);
	border-radius: 999px;
	box-shadow: 0 2px 8px rgba(16, 42, 86, 0.04);
}

.rg-search input {
	flex: 1;
	border: 0;
	outline: none;
	background: transparent;
	font-family: inherit;
	font-size: 13px;
	color: var(--rg-navy);
	min-width: 0;
}

.rg-search input::placeholder {
	color: #8fa0b5;
}

.rg-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 28px;
}

.rg-filter {
	appearance: none;
	border: 1.5px solid var(--rg-teal);
	background: transparent;
	color: var(--rg-teal);
	border-radius: 999px;
	padding: 8px 16px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.rg-filter:hover {
	background: rgba(0, 124, 120, 0.08);
}

.rg-filter.is-active {
	background: var(--rg-teal);
	color: var(--rg-white);
	box-shadow: 0 4px 12px rgba(0, 124, 120, 0.25);
}

.rg-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	min-height: 120px;
}

.rg-grid.is-loading {
	opacity: 0.55;
	pointer-events: none;
}

.rg-empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 48px 16px;
	color: var(--rg-body);
	background: var(--rg-white);
	border: 1px dashed var(--rg-border);
	border-radius: var(--rg-radius);
}

/* —— Cards —— */
.rg-card {
	display: flex;
	flex-direction: column;
	background: var(--rg-white);
	border: 1px solid var(--rg-border);
	border-radius: var(--rg-radius);
	padding: 20px;
	box-shadow: 0 8px 24px rgba(16, 42, 86, 0.06);
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rg-card-image {
	padding: 0;
	overflow: hidden;
}

.rg-card-image-link {
	display: block;
	background: #f3f8f8;
	line-height: 0;
}

.rg-card-image-img {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: top;
}

.rg-card-image .rg-card-actions {
	padding: 12px 16px;
	border-top: 1px solid var(--rg-border);
	justify-content: space-between;
}

.rg-card-name-inline {
	font-size: 13px;
	font-weight: 600;
	color: var(--rg-navy);
	max-width: 65%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rg-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(16, 42, 86, 0.1);
}

.rg-card-head {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 12px;
}

.rg-card-avatar {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--rg-mint);
	color: var(--rg-teal);
	font-weight: 700;
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rg-card-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rg-card-name-row {
	display: flex;
	align-items: center;
	gap: 6px;
}

.rg-card-name {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--rg-navy);
	line-height: 1.3;
}

.rg-card-verified {
	display: inline-flex;
	line-height: 0;
}

.rg-card-sub {
	margin: 4px 0 0;
	font-size: 12px;
	color: #7a8da6;
}

.rg-card-stars {
	display: flex;
	gap: 2px;
	margin-bottom: 10px;
}

.rg-card-stars svg {
	display: block;
	width: 16px;
	height: 16px;
}

.rg-card-text {
	margin: 0 0 16px;
	flex: 1;
	font-size: 13px;
	line-height: 1.55;
	color: var(--rg-body);
	display: -webkit-box;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rg-card-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	padding-top: 12px;
	border-top: 1px solid var(--rg-border);
	margin-top: auto;
}

.rg-card-helpful {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--rg-body);
}

.rg-card-share {
	appearance: none;
	border: 0;
	background: transparent;
	padding: 0;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	color: var(--rg-body);
	cursor: pointer;
}

.rg-card-share:hover {
	color: var(--rg-teal);
}

/* —— Pagination —— */
.rg-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 36px;
}

.rg-page-btn {
	appearance: none;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border-radius: 10px;
	border: 1px solid var(--rg-border);
	background: var(--rg-white);
	color: var(--rg-navy);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.rg-page-btn:hover:not(:disabled):not(.is-active) {
	border-color: var(--rg-teal);
	color: var(--rg-teal);
}

.rg-page-btn.is-active {
	background: var(--rg-teal);
	border-color: var(--rg-teal);
	color: var(--rg-white);
}

.rg-page-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

/* —— Bottom CTA —— */
.rg-cta {
	padding: 24px 0 56px;
}

.rg-cta-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 28px 32px;
	background: linear-gradient(90deg, #e8f8f6 0%, #f3fcfb 100%);
	border: 1px solid var(--rg-mint-border);
	border-radius: 20px;
}

.rg-cta-copy {
	display: flex;
	align-items: center;
	gap: 16px;
}

.rg-cta-copy h2 {
	margin: 0 0 4px;
	color: var(--rg-navy);
	font-size: 22px;
	font-weight: 700;
}

.rg-cta-copy p {
	margin: 0;
	font-size: 14px;
	color: var(--rg-body);
}

.rg-cta-action {
	text-align: right;
}

.rg-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	background: var(--rg-teal);
	color: var(--rg-white) !important;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	box-shadow: 0 8px 20px rgba(0, 124, 120, 0.25);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rg-cta-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px rgba(0, 124, 120, 0.3);
}

.rg-cta-btn img {
	filter: brightness(0) invert(1);
}

.rg-cta-note {
	margin: 8px 0 0;
	font-size: 12px;
	color: #7a8da6;
}

@keyframes rg-fade-up {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes rg-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* —— Responsive —— */
@media (max-width: 991px) {
	.rg-hero {
		padding: 28px 0 36px;
	}

	.rg-hero-inner {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.rg-hero-visual {
		min-height: 0;
		order: -1;
		width: 100%;
	}

	.rg-hero-stage {
		max-width: 480px;
		margin: 0 auto;
	}

	.rg-hero-title {
		font-size: clamp(28px, 7vw, 38px);
		line-height: 1.2;
		margin-bottom: 12px;
	}

	.rg-hero-sub {
		margin-bottom: 22px;
		max-width: none;
	}

	.rg-kicker {
		margin-bottom: 8px;
	}

	.rg-trust {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rg-stats {
		margin-top: -4px;
	}

	.rg-stats-bar {
		grid-template-columns: 1fr 1fr;
	}

	.rg-stat:nth-child(2) {
		border-right: none;
	}

	.rg-stat:nth-child(1),
	.rg-stat:nth-child(2) {
		border-bottom: 1px solid var(--rg-border);
	}

	.rg-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rg-gallery {
		padding: 36px 0 32px;
	}

	.rg-gallery-head {
		flex-direction: column;
		align-items: stretch;
	}

	.rg-search {
		flex: 1 1 auto;
		width: 100%;
	}

	.rg-cta-inner {
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
	}

	.rg-cta-action {
		text-align: left;
		width: 100%;
	}
}

@media (max-width: 575px) {
	.rg-page .container {
		padding-left: 18px;
		padding-right: 18px;
	}

	.rg-hero {
		padding: 18px 0 28px;
	}

	.rg-hero-inner {
		gap: 16px;
	}

	.rg-hero-stage {
		max-width: 100%;
		aspect-ratio: 5 / 4;
		min-height: 280px;
	}

	.rg-hero-photo-wrap {
		left: 0;
		top: 0;
		width: 56%;
		border-radius: 14px;
		box-shadow: 0 12px 28px rgba(16, 42, 86, 0.12);
	}

	.rg-hero-script {
		left: 62%;
		right: 0;
		top: 8%;
		font-size: clamp(24px, 7.5vw, 32px);
	}

	.rg-hero-quote {
		left: 4%;
		top: auto;
		bottom: 2%;
		width: min(58%, 220px);
		padding: 11px 12px 9px;
		border-radius: 12px;
	}

	.rg-hero-quote img {
		width: 18px;
		height: 18px;
		margin-bottom: 4px;
	}

	.rg-hero-quote p {
		font-size: 12.5px;
	}

	.rg-hero-quote cite {
		font-size: 11px;
	}

	.rg-hero-title {
		font-size: 30px;
		line-height: 1.22;
		letter-spacing: -0.02em;
	}

	.rg-hero-sub {
		font-size: 15px;
		line-height: 1.5;
		margin-bottom: 18px;
	}

	.rg-trust {
		grid-template-columns: 1fr 1fr;
		gap: 12px 14px;
	}

	.rg-trust img {
		width: 24px;
		height: 24px;
	}

	.rg-trust span {
		font-size: 11.5px;
	}

	.rg-stats-bar {
		grid-template-columns: 1fr;
		border-radius: 16px;
	}

	.rg-stat {
		border-right: none;
		border-bottom: 1px solid var(--rg-border);
		padding: 18px 16px;
	}

	.rg-stat:last-child {
		border-bottom: none;
	}

	.rg-stat:nth-child(1),
	.rg-stat:nth-child(2) {
		border-bottom: 1px solid var(--rg-border);
	}

	.rg-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.rg-gallery {
		padding: 28px 0 28px;
	}

	.rg-gallery-titles h2 {
		font-size: 24px;
	}

	.rg-filters {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 6px;
		margin-bottom: 20px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.rg-filters::-webkit-scrollbar {
		display: none;
	}

	.rg-filter {
		flex: 0 0 auto;
	}

	.rg-cta {
		padding: 8px 0 40px;
	}

	.rg-cta-inner {
		padding: 22px 18px;
		border-radius: 16px;
	}

	.rg-cta-copy {
		align-items: flex-start;
	}

	.rg-cta-copy h2 {
		font-size: 20px;
	}
}
