/* =========================================================================
   Mamoki — Giải pháp nổi bật (Featured Solutions Slider)
   Màu chủ đạo: --primary-color của Flatsome
   Chiều rộng: bọc .container Flatsome → theo Site Width trong Customizer
   ========================================================================== */

.mamoki-fs-section {
	width: 100%;
}

/* Không override max-width — để Flatsome .container tự theo Site Width trong Customizer */

.mamoki-fs-wrap {
	--mfs-primary: var(--primary-color, #b9412c);
	--mfs-primary-dark: color-mix(in srgb, var(--mfs-primary) 75%, #000);
	--mfs-star: #f5b301;
	--mfs-nav-bg: #f3f3f3;
	--mfs-nav-color: #888;
	--mfs-slide-height: clamp(460px, 48vw, 580px);
	position: relative;
	width: 100%;
	max-width: none;
	margin: 0;
}

@supports not (background: color-mix(in srgb, red, blue)) {
	.mamoki-fs-wrap {
		--mfs-primary-dark: #8a2f1f;
	}
}

.mamoki-fs-viewport {
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, .06);
	box-shadow: 0 8px 32px rgba(0, 0, 0, .06);
}

.mamoki-fs-track {
	display: flex;
	transition: transform .55s cubic-bezier(.25, .8, .25, 1);
	will-change: transform;
}

.mamoki-fs-slide {
	flex: 0 0 100%;
	min-width: 100%;
}

/* ---------- 3 cột ---------- */
.mamoki-fs-grid {
	display: grid;
	grid-template-columns: 30% 34% 36%;
	min-height: var(--mfs-slide-height);
	align-items: stretch;
}

.mamoki-fs-col--brand {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 36px 28px 40px;
	background: linear-gradient(165deg, var(--mfs-primary) 0%, var(--mfs-primary-dark) 100%);
	color: #fff;
	overflow: hidden;
	min-height: var(--mfs-slide-height);
}

.mamoki-fs-col--image {
	position: relative;
	background: #e8e4df;
	overflow: hidden;
	min-height: var(--mfs-slide-height);
}

.mamoki-fs-col--image .mamoki-fs-img,
.mamoki-fs-col--image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.mamoki-fs-img-placeholder {
	width: 100%;
	height: 100%;
	min-height: var(--mfs-slide-height);
	background: linear-gradient(135deg, #ddd 0%, #eee 100%);
}

.mamoki-fs-col--quote {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 44px 48px;
	background: #fff;
	text-align: center;
	min-height: var(--mfs-slide-height);
}

/* ---------- Badge ---------- */
.mamoki-fs-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	position: relative;
	z-index: 2;
}

.mamoki-fs-badge-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .18);
	border: 1px solid rgba(255, 255, 255, .35);
	color: #fff;
	flex-shrink: 0;
}

.mamoki-fs-badge-text {
	font-size: .9rem;
	font-weight: 600;
	letter-spacing: .02em;
	line-height: 1.3;
}

/* ---------- Quote decoration ---------- */
.mamoki-fs-quote-deco {
	position: absolute;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(6rem, 14vw, 10rem);
	line-height: 1;
	color: rgba(255, 255, 255, .12);
	pointer-events: none;
	user-select: none;
	z-index: 1;
}

.mamoki-fs-quote-deco--left {
	left: 8px;
	top: 50%;
	transform: translateY(-50%);
}

.mamoki-fs-quote-deco--right {
	right: 16px;
	top: 12px;
	color: rgba(0, 0, 0, .06);
	font-size: clamp(4rem, 10vw, 7rem);
}

/* ---------- Brand text ---------- */
.mamoki-fs-brand-bottom {
	position: relative;
	z-index: 2;
	margin-top: auto;
	padding-top: 24px;
}

.mamoki-fs-company {
	margin: 0 0 6px;
	font-size: clamp(1.75rem, 3.5vw, 2.35rem);
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
}

.mamoki-fs-category {
	margin: 0;
	font-size: 1.05rem;
	opacity: .88;
	font-weight: 400;
}

/* ---------- Quote text ---------- */
.mamoki-fs-text {
	position: relative;
	z-index: 2;
	margin: 0 0 24px;
	padding: 0;
	border: none;
	font-size: 1rem;
	line-height: 1.8;
	color: #333;
	font-style: normal;
	max-width: 100%;
}

/* ---------- Stars ---------- */
.mamoki-fs-stars {
	display: flex;
	gap: 4px;
	justify-content: center;
	position: relative;
	z-index: 2;
}

.mamoki-fs-star {
	font-size: 1.35rem;
	line-height: 1;
	color: #ddd;
}

.mamoki-fs-star.is-filled {
	color: var(--mfs-star);
}

/* ---------- Navigation ---------- */
.mamoki-fs-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	background: var(--mfs-nav-bg);
	color: var(--mfs-nav-color);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
}

.mamoki-fs-nav:hover,
.mamoki-fs-nav:focus-visible {
	background: #fff;
	color: var(--mfs-primary);
	border-color: color-mix(in srgb, var(--mfs-primary) 30%, #e0e0e0);
	box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
	outline: none;
}

.mamoki-fs-prev { left: 8px; }
.mamoki-fs-next { right: 8px; }

.mamoki-fs-empty {
	padding: 20px;
	text-align: center;
	color: #666;
	background: #fff8e1;
	border: 1px solid #ffe082;
	border-radius: 8px;
}

/* ---------- Tablet ---------- */
@media (max-width: 849px) {
	.mamoki-fs-wrap {
		--mfs-slide-height: clamp(400px, 72vw, 500px);
	}

	.mamoki-fs-grid {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto auto;
		min-height: var(--mfs-slide-height);
	}

	.mamoki-fs-col--brand {
		grid-column: 1;
		grid-row: 1;
		min-height: 240px;
		padding: 28px 22px;
	}

	.mamoki-fs-col--image {
		grid-column: 2;
		grid-row: 1 / span 2;
		min-height: var(--mfs-slide-height);
	}

	.mamoki-fs-col--quote {
		grid-column: 1;
		grid-row: 2;
		min-height: 0;
		padding: 28px 22px;
		align-items: flex-start;
		text-align: left;
	}

	.mamoki-fs-quote-deco--right {
		right: 8px;
		top: 8px;
	}

	.mamoki-fs-prev { left: 4px; }
	.mamoki-fs-next { right: 4px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 549px) {
	.mamoki-fs-wrap {
		--mfs-slide-height: clamp(280px, 65vw, 360px);
	}

	.mamoki-fs-grid {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
	}

	.mamoki-fs-col--brand {
		grid-column: 1;
		grid-row: 1;
		min-height: 200px;
		padding: 24px 20px;
	}

	.mamoki-fs-col--image {
		grid-column: 1;
		grid-row: 2;
		min-height: var(--mfs-slide-height);
	}

	.mamoki-fs-col--quote {
		grid-column: 1;
		grid-row: 3;
		min-height: 0;
		padding: 28px 20px 32px;
	}

	.mamoki-fs-company {
		font-size: 1.35rem;
	}

	.mamoki-fs-text {
		font-size: .88rem;
	}

	.mamoki-fs-nav {
		width: 32px;
		height: 32px;
		top: auto;
		bottom: 12px;
		transform: none;
	}

	.mamoki-fs-prev { left: 12px; }
	.mamoki-fs-next { right: 12px; }
}
