/**
 * Quality & Trust — Figma 12. Quality&Trust V3, node 1:4437
 */

.nn-trust {
	background: #fff8e6;
}

.nn-trust .container {
	max-width: 1568px;
}

.nn-trust-page h1,
.nn-trust-page h2,
.nn-trust-page p {
	margin-top: 0;
}

/* Hero — cùng pattern banner trang chủ */
.nn-trust-page .nn-trust-hero.nn-hero-section {
	position: relative;
	min-height: 750px;
	overflow: hidden;
	padding: 0;
	background-color: #f8f1e1;
}

.nn-trust-page .nn-trust-hero .nn-hero-slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	z-index: 1;
	background-color: #f8f1e1;
	background-image: var(--nn-hero-image);
	background-repeat: no-repeat;
	background-position: right center;
	background-size: cover;
}

.nn-trust-hero-copy {
	max-width: 690px;
}

.nn-trust-hero-title {
	margin: 0;
	color: #1f4d44;
	font-family: "Beautique Display", "Bodoni Moda", "Playfair Display", Georgia, serif;
	font-size: 64px;
	font-weight: 500;
	line-height: 90px;
}

.nn-trust-hero-lead {
	max-width: 616px;
	margin: 32px 0 0;
	color: #1d5c4b;
	font-family: "Be Vietnam Pro", sans-serif;
	font-size: 24px;
	font-weight: 400;
	line-height: 36px;
}

.nn-trust-origin {
	padding: 120px 0 110px;
	background: #fff8e6;
}

.nn-trust-origin-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 593px);
	gap: 55px;
	align-items: center;
	max-width: 1262px;
	margin: 0 auto;
}

.nn-trust-origin-title {
	max-width: 561px;
	margin: 0 0 30px;
	color: #1d5c4b;
	font-family: "Beautique Display", "Bodoni Moda", "Playfair Display", Georgia, serif;
	font-size: 45px;
	font-weight: 700;
	line-height: 65px;
}

.nn-trust-origin-copy p {
	margin: 0 0 15px;
	color: #1f4d44;
	font-family: "Be Vietnam Pro", sans-serif;
	font-size: 22px;
	font-weight: 400;
	line-height: 32px;
}

.nn-trust-origin-copy p:last-child {
	margin-bottom: 0;
}

.nn-trust-origin-copy a {
	color: #1d5c4b;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.nn-trust-origin-copy a:hover {
	color: #b63726;
}

.nn-trust-origin-photo {
	margin: 0;
}

.nn-trust-origin-photo img {
	width: 100%;
	height: auto;
	aspect-ratio: 593 / 480;
	object-fit: cover;
	border-radius: 25px;
}

.nn-trust-certs {
	position: relative;
	overflow: hidden;
	padding: 94px 0 100px;
	background-color: #5e9c86;
	background-image: url("../images/bg-profile.png");
	background-repeat: no-repeat;
	background-position: center bottom;
	background-size: cover;
}

.nn-trust-certs-title,
.nn-trust-reviews-title,
.nn-trust-stats-title {
	margin: 0;
	text-align: center;
	font-family: "Beautique Display", "Bodoni Moda", "Playfair Display", Georgia, serif;
	font-size: 45px;
	font-weight: 700;
	line-height: 65px;
}

.nn-trust-certs-title {
	margin-bottom: 65px;
	color: #fff;
}

.nn-trust-certs-track {
	display: flex;
	gap: 40px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.nn-trust-certs-track::-webkit-scrollbar {
	display: none;
}

.nn-trust-cert {
	display: flex;
	flex-direction: column;
	flex: 0 0 calc((100% - 120px) / 4);
	width: calc((100% - 120px) / 4);
	gap: 18px;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.nn-trust-cert-frame {
	aspect-ratio: 342 / 469;
	padding: 20px;
	border-radius: 20px;
	background: linear-gradient(150deg, rgba(221, 239, 238, 0.20) 0.7%, rgba(173, 217, 217, 0.20) 75.89%);
	box-shadow: -3px -3px 1.9px 0 rgba(255, 255, 255, 0.50) inset;
}

.nn-trust-certs .nn-cert-name {
	font-size: 24px;
}

.nn-trust-certs .nn-cert-place,
.nn-trust-certs .nn-cert-note {
	font-size: 14px;
}

.nn-trust-cert-sheet {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 12px;
	background: #fff;
	cursor: zoom-in;
}

.nn-trust-cert-sheet img {
	width: auto;
	max-width: 92%;
	height: auto;
	max-height: 94%;
	object-fit: contain;
	pointer-events: none;
}

.nn-trust-dots {
	display: flex;
	justify-content: center;
	gap: 9px;
	margin-top: 50px;
}

.nn-trust-dot {
	width: 14px;
	height: 14px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #d8eee3;
}

button.nn-trust-dot {
	cursor: pointer;
}

.nn-trust-certs .nn-trust-dot.is-active {
	background: #fff;
}

.nn-trust-reviews {
	padding: 115px 0 80px;
	background: #fff8e6;
}

.nn-trust-reviews-title {
	margin-bottom: 75px;
	color: #1d5c4b;
	line-height: 55px;
}

.nn-trust-mosaic {
	display: flex;
	flex-direction: column;
	gap: 27px;
}

.nn-trust-mosaic-row {
	display: flex;
	gap: 26px;
}

.nn-trust-review {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	height: 298px;
	padding: 14px 16px 12px;
	border-radius: 23px;
}

.nn-trust-review.is-wide {
	flex: 1.61 1 0;
	background: #f7ebd1;
}

.nn-trust-review.is-narrow {
	flex: 1 1 0;
	background: #d8eadb;
}

.nn-trust-review img {
	width: 100%;
	min-height: 0;
	flex: 1;
	object-fit: cover;
	object-position: center top;
	border-radius: 16px;
}

.nn-trust-review-tag {
	align-self: flex-start;
	padding: 2px 9px;
	border-radius: 13px;
	background: rgba(255, 255, 255, 0.78);
	color: #1d5c4b;
	font-family: "Be Vietnam Pro", sans-serif;
	font-size: 11px;
	font-weight: 400;
	line-height: 19px;
}

.nn-trust-dots--ink .nn-trust-dot.is-active {
	background: #479e85;
}

.nn-trust-stats {
	position: relative;
	overflow: hidden;
	padding: 96px 0 88px;
	background-color: #e8f1eb;
	background-image: url("../images/bg-profile-s1.png");
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}

.nn-trust-stats .container {
	position: relative;
	z-index: 1;
}

.nn-trust-stats-title {
	margin-bottom: 28px;
	color: #1d5c4b;
}

.nn-trust-stats-grid {
	display: flex;
	justify-content: center;
	align-items: stretch;
	gap: 48px;
}

.nn-trust-stat {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	width: 315px;
	min-height: 280px;
	padding: 88px 28px 40px;
	border-radius: 50%;
	text-align: center;
	background: transparent;
}

.nn-trust-stat--sage,
.nn-trust-stat--gold {
	background: transparent;
}

.nn-trust-stat__value {
	display: block;
	height: 55px;
	color: #1d5c4b;
	font-family: "Bricolage Grotesque", "Be Vietnam Pro", sans-serif;
	font-size: 55px;
	font-weight: 600;
	line-height: 55px;
	font-variant-numeric: tabular-nums;
}

.nn-trust-stat__label {
	display: block;
	max-width: 240px;
	min-height: 64px;
	margin-top: 14px;
	color: #1d5c4b;
	font-family: "Be Vietnam Pro", sans-serif;
	font-size: 22px;
	font-weight: 400;
	line-height: 32px;
}

@media (max-width: 1280px) {
	.nn-trust-hero-title {
		font-size: 52px;
		line-height: 1.25;
	}

	.nn-trust-certs-track {
		gap: 20px;
	}

	.nn-trust-cert {
		flex-basis: calc((100% - 60px) / 4);
		width: calc((100% - 60px) / 4);
	}

	.nn-trust-stat {
		width: 250px;
		min-height: 230px;
		padding: 64px 20px 28px;
	}

	.nn-trust-stat__value {
		height: 42px;
		font-size: 42px;
		line-height: 42px;
	}

	.nn-trust-stat__label {
		min-height: 52px;
		font-size: 18px;
		line-height: 26px;
	}

	.nn-trust-stats-grid {
		gap: 28px;
	}
}

@media (max-width: 1024px) {
	.nn-trust-origin-grid {
		grid-template-columns: 1fr;
		gap: 36px;
		justify-items: center;
	}

	.nn-trust-origin-copy {
		text-align: center;
	}

	.nn-trust-origin-title {
		margin-left: auto;
		margin-right: auto;
		text-align: center;
	}

	.nn-trust-origin-photo {
		max-width: 640px;
		width: 100%;
	}

	.nn-trust-certs-track {
		display: flex;
		gap: 20px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding-bottom: 8px;
		scrollbar-width: none;
	}

	.nn-trust-certs-track::-webkit-scrollbar {
		display: none;
	}

	.nn-trust-cert {
		flex: 0 0 280px;
		scroll-snap-align: start;
	}

	.nn-trust-review {
		height: 250px;
	}
}

@media (max-width: 760px) {
	.nn-trust-page {
		overflow-x: clip;
	}

	/* Hero mobile — giống trang chủ */
	.nn-trust-page .nn-trust-hero.nn-hero-section {
		margin-top: -120px;
		min-height: 548px;
	}

	.nn-trust-page .nn-trust-hero .nn-hero-slide {
		align-items: flex-start;
		padding: 136px 0 28px;
		background-image: var(--nn-hero-image-mobile, var(--nn-hero-image));
		background-size: cover;
		background-position: center top;
	}

	.nn-trust-hero-copy {
		max-width: 100%;
		padding: 0;
		border-radius: 0;
		background: transparent;
	}

	.nn-trust-hero-title,
	.nn-trust-page .nn-trust-hero .nn-hero-title {
		margin-bottom: 12px;
        color: #1F4D44;
        font-family: "Beautique Display";
        font-size: 30px;
        font-style: normal;
        font-weight: 500;
        line-height: 37.377px;
	}

	.nn-trust-hero-lead,
	.nn-trust-page .nn-trust-hero .nn-hero-desc {
		max-width: none;
		margin-top: 0;
		margin-bottom: 0;
		font-size: 15px;
		line-height: 1.5;
	}

	/* Origin: centered copy + image below */
	.nn-trust-origin {
		padding: 40px 0 48px;
	}

	.nn-trust-origin-grid {
		gap: 24px;
		justify-items: center;
	}

	.nn-trust-origin-copy {
		text-align: center;
	}

	.nn-trust-origin-title {
		max-width: none;
		margin: 0 0 14px;
		text-align: left;
        color: var(--Color-body, #1F4D44);
        font-family: "Beautique Display";
        font-size: 24px;
        font-style: normal;
        font-weight: 700;
        line-height: 37.377px;
	}

	.nn-trust-origin-copy p {
		font-size: 15px;
		line-height: 1.55;
		text-align: left;
	}

	.nn-trust-origin-photo {
		max-width: none;
		width: 100%;
	}

	.nn-trust-origin-photo img {
		border-radius: 18px;
		aspect-ratio: 5 / 4;
	}

	.nn-trust-certs-title,
	.nn-trust-reviews-title,
	.nn-trust-stats-title {
		font-size: 28px;
		line-height: 1.3;
	}

	/* Certs slider with peek */
	.nn-trust-certs {
		padding: 48px 0 40px;
	}

	.nn-trust-certs-title {
        max-width: 290px;
        margin: 30px auto;
        font-size: 24px;
        line-height: 1.3;
	}

	.nn-trust-certs .container {
		overflow: visible;
	}

	.nn-trust-certs-track {
		gap: 14px;
		width: 100vw;
		max-width: none;
		margin-left: calc(50% - 50vw);
		padding: 0 20px;
		scroll-padding-inline: 20px;
		-webkit-overflow-scrolling: touch;
	}

	.nn-trust-cert {
		flex: 0 0 min(280px, 78vw);
		width: min(280px, 78vw);
		height: auto;
		gap: 14px;
		scroll-snap-align: center;
		scroll-snap-stop: always;
	}

	.nn-trust-cert-frame {
		height: 288px;
		aspect-ratio: auto;
		padding: 10px;
		border-radius: 18px;
	}

	.nn-trust-certs .nn-cert-name {
		font-size: 22px;
	}

	.nn-trust-cert-sheet {
		width: 100%;
		height: 100%;
		border-radius: 12px;
	}

	.nn-trust-cert-sheet img {
		width: 100%;
		max-width: none;
		height: 100%;
		max-height: none;
		object-fit: contain;
	}

	.nn-trust-dots {
		margin-top: 24px;
		gap: 8px;
	}

	.nn-trust-dot {
        width: 7px;
        height: 7px;
    }


	/* Reviews heading spacing on trust page */
	.nn-trust-page .nn-reviews-section {
		padding: 40px 0 48px;
		background: #fff8e6;
	}

	.nn-trust-page .nn-reviews-section .nn-section-title {
		font-size: 28px;
		line-height: 1.3;
		margin-bottom: 24px;
		padding: 0 8px;
	}

	.nn-trust-page .nn-reviews-gallery {
		--nn-review-gap: 12px;
		margin: 0 -16px;
		padding: 0 16px;
	}

	.nn-trust-page .nn-reviews-row + .nn-reviews-row {
		margin-top: 12px;
	}

	.nn-trust-page .nn-review-card {
		width: max-content;
		height: auto;
		padding: 10px;
		border-radius: 18px;
	}

	.nn-trust-page .nn-review-card img {
		width: 292.255px;
		height: 167px;
		flex: none;
		min-height: 0;
		max-height: 167px;
		object-fit: cover;
		object-position: top center;
		border-radius: 14px;
	}

	.nn-trust-page .nn-review-card figcaption {
		margin-top: 8px;
		padding: 2px 10px;
		font-size: 10px;
		line-height: 1.4;
		border-radius: 999px;
	}

	.nn-trust-page .nn-reviews-dots {
		margin-top: 20px;
	}

	/* Stats: staggered 2-col like Figma mobile */
	.nn-trust-stats {
		padding: 48px 0 56px;
		background-color: #dce9dc;
		background-image: url("../images/trust-stats-bg-mobile.svg");
		background-position: center center;
		background-repeat: no-repeat;
		background-size: cover;
	}

	.nn-trust-stats-title {
		margin-bottom: 28px;
		font-size: 28px;
		line-height: 1.3;
	}

	.nn-trust-stats-grid {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-areas:
			"sold rate"
			"reviews reviews";
		column-gap: 12px;
		row-gap: 28px;
		align-items: start;
		justify-items: stretch;
	}

	.nn-trust-stat {
		width: auto;
		max-width: none;
		min-height: 0;
		padding: 0;
		border-radius: 0;
		align-items: flex-start;
		text-align: left;
	}

	/* 5.000+ — top left */
	.nn-trust-stat:nth-child(1) {
		grid-area: sold;
		padding-right: 4px;
	}

	/* 300+ — bottom, slightly left of center */
	.nn-trust-stat:nth-child(2) {
		grid-area: reviews;
		max-width: 230px;
		justify-self: center;
		margin-left: -12%;
		margin-top: 4px;
	}

	/* 95% — top right, staggered lower */
	.nn-trust-stat:nth-child(3) {
		grid-area: rate;
		margin-top: 56px;
		padding-left: 4px;
	}

	.nn-trust-stat__value {
		height: auto;
		font-size: 40px;
		line-height: 1.1;
	}

	.nn-trust-stat__label {
		max-width: none;
		min-height: 0;
		margin-top: 10px;
		font-size: 16px;
		line-height: 1.45;
	}

	.nn-trust-page .nn-cta-section {
        padding: 40px 0 80px;
    }
	.nn-trust-page .nn-cta-section h2 {
		max-width: 280px;
	}
	.nn-trust-page .nn-cta-frame {
		width: 363.57px;
		max-width: 100%;
		height: 321.844px;
		min-height: 321.844px;
		aspect-ratio: auto;
		margin-right: auto;
		margin-left: auto;
	}

	.nn-trust-page .nn-cta-frame__bg {
		width: 363.57px;
		height: 321.844px;
		object-fit: fill;
	}
}
