/* ==========================================================================
   Mộc Lam – style cho element tuỳ chỉnh & các section trang chủ
   Màu thương hiệu: nâu #554233 (chính), xanh lá #8ec850 (nhấn)
   ========================================================================== */
:root {
	--ml-brown: #554233;
	--ml-brown-dark: #3e3025;
	--ml-green: #8ec850;
	--ml-green-dark: #6fa638;
	--ml-gray: #f4f2ef;
}

.ml-empty {
	text-align: center;
	color: #888;
	margin: 20px 0;
}

/* ---------- Tiêu đề section (dùng chung class heading-home) ---------- */
.heading-home h3,
.heading-home .h3 {
	color: var(--ml-brown);
	font-size: 30px;
	font-weight: 800;
	margin-bottom: 30px;
}
.heading-home h3::before,
.heading-home .h3::before {
	border-top-color: var(--ml-green) !important;
	border-top-width: 3px !important;
	margin-top: 8px;
}
.heading-home.text-white h3,
.heading-home.text-white .h3 {
	color: #fff;
}
.heading-home.text-white h3::before {
	border-top-color: #fff !important;
}

/* ---------- Dự án (Tab lọc) ---------- */
.ml-pt-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 25px;
}
.ml-pt-tab {
	margin: 0;
	padding: 0 22px;
	min-height: 38px;
	line-height: 36px;
	border: 1px solid var(--ml-brown);
	border-radius: 40px;
	background: #fff;
	color: var(--ml-brown);
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0;
	transition: all .2s;
}
.ml-pt-tab:hover,
.ml-pt-tab.active {
	background: var(--ml-brown);
	color: #fff;
}
.ml-pt-panel {
	display: none;
}
.ml-pt-panel.active {
	display: block;
	animation: mlFade .35s ease;
}
@keyframes mlFade {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}
.ml-pt-card {
	position: relative;
	display: block;
	border-radius: 8px;
	overflow: hidden;
	background: #eee;
}
.ml-pt-image {
	position: relative;
	display: block;
	height: 0;
	overflow: hidden;
}
.ml-pt-image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s ease;
}
.ml-pt-card:hover .ml-pt-image img {
	transform: scale(1.08);
}
.ml-pt-title {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 40px 15px 15px;
	background: linear-gradient(to top, rgba(85, 66, 51, .95) 0%, rgba(85, 66, 51, .6) 55%, rgba(85, 66, 51, 0) 100%);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	text-transform: uppercase;
}
.ml-pt-more {
	text-align: center;
	margin-top: 10px;
}

/* Nút "Xem thêm" dạng viên thuốc + mũi tên tròn */
.ml-btn-more {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 5px 5px 5px 22px;
	border: 1px solid var(--ml-brown);
	border-radius: 40px;
	color: var(--ml-brown);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 14px;
	transition: all .2s;
}
.ml-btn-more i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--ml-brown);
	color: #fff;
	font-size: 16px;
}
.ml-btn-more:hover {
	background: var(--ml-brown);
	color: #fff;
}
.ml-btn-more:hover i {
	background: var(--ml-green);
}

/* ---------- Gallery lướt ngang ---------- */
.ml-gallery-slider {
	margin-bottom: 25px;
}
.ml-gs-caption {
	margin-bottom: 10px;
	color: #555;
}
.ml-project-gallery .ml-gs-caption::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 8px;
	border-radius: 50%;
	background: var(--ml-green);
	box-shadow: 0 0 0 3px rgba(142, 200, 80, .25);
	vertical-align: middle;
}
.ml-project-gallery {
	margin-bottom: 30px;
}
.ml-gallery-slider .ml-gs-track .ml-gs-cell {
	/* Flatsome ép .flickity-slider > a { width:100%; margin:0 } bằng !important */
	width: var(--ml-gs-w, 70%) !important;
	height: var(--ml-gs-h, 420px);
	margin-right: 15px !important;
}
@media (max-width: 849px) {
	.ml-gallery-slider .ml-gs-track .ml-gs-cell { height: var(--ml-gs-h-md, 360px); }
}
@media (max-width: 549px) {
	.ml-gallery-slider .ml-gs-track .ml-gs-cell { width: 85% !important; height: var(--ml-gs-h-sm, 240px); }
}
.ml-gs-track .ml-gs-cell {
	display: block;
	border-radius: 6px;
	overflow: hidden;
	background: #f1f1f1;
}
.ml-gs-track .ml-gs-cell img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ml-gs-track .flickity-prev-next-button {
	width: 42px;
	height: 42px;
	border: 1px solid rgba(255, 255, 255, .8);
	border-radius: 4px;
	background: rgba(0, 0, 0, .25);
	color: #fff;
	opacity: 1;
}
.ml-gs-track .flickity-prev-next-button:hover {
	background: var(--ml-brown);
}
.ml-gs-track .flickity-prev-next-button.previous {
	left: 17%;
}
.ml-gs-track .flickity-prev-next-button.next {
	right: 17%;
}
@media (max-width: 549px) {
	.ml-gs-track .flickity-prev-next-button.previous { left: 10px; }
	.ml-gs-track .flickity-prev-next-button.next { right: 10px; }
}

/* ---------- Carousel (nhiều cột) ---------- */
.ml-carousel .flickity-prev-next-button {
	color: var(--ml-brown);
}
.ml-carousel-builder > * {
	margin-bottom: 15px;
}

/* ---------- Đánh giá khách hàng (Testimonial trong Carousel) ---------- */
.ml-reviews .col-inner,
.ml-reviews .testimonial-box {
	height: 100%;
}
.ml-reviews .testimonial-box {
	position: relative;
	padding: 30px 25px 25px 25px;
	background: var(--ml-gray);
	border-radius: 6px;
	border-top: 3px solid var(--ml-green);
}
.ml-reviews .testimonial-box::before {
	content: "\201C";
	position: absolute;
	top: 12px;
	right: 20px;
	color: var(--ml-green);
	font: 700 70px/1 Georgia, serif;
	opacity: .5;
}
.ml-reviews .testimonial-box .icon-box-img {
	align-self: center;
	margin-right: 18px;
}
.ml-reviews .testimonial-box .icon-box-img img {
	border-radius: 50%;
	aspect-ratio: 1;
	object-fit: cover;
	border: 3px solid #fff;
	box-shadow: 0 3px 10px rgba(85, 66, 51, .15);
}
/* Có ảnh: dấu ngoặc kép nằm dưới avatar như mẫu */
.ml-reviews .testimonial-box .icon-box-img::after {
	content: "\201D";
	display: block;
	margin-top: 6px;
	color: var(--ml-green);
	font: 700 56px/0.7 Georgia, serif;
	text-align: center;
}
.ml-reviews .testimonial-box:has(.icon-box-img)::before {
	display: none;
}
.ml-reviews .testimonial-text {
	font-style: normal !important;
	font-size: 15px;
	line-height: 1.6;
	color: #333;
}
.ml-reviews .testimonial-meta {
	margin-top: 10px;
}
.ml-reviews .testimonial-name-divider {
	display: none;
}
.ml-reviews .testimonial-name {
	display: block;
	color: var(--ml-brown);
	font-size: 15px;
}
.ml-reviews .testimonial-company {
	color: #888;
	font-size: 13px;
}

/* ---------- Tin tức nổi bật (Blog Posts slider) ---------- */
.ml-news .box-image {
	border-radius: 6px;
	overflow: hidden;
}
.ml-news .box-text {
	padding: 15px 0 0;
	text-align: left;
}
.ml-news .post-title {
	color: var(--ml-brown);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
}
.ml-news .post-title a {
	color: inherit;
}
.ml-news .is-divider {
	display: none;
}
.ml-news .from_the_blog_excerpt {
	color: #666;
	font-size: 14px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---------- Giấy chứng nhận (Gallery slider) ---------- */
.ml-certs .box-image {
	padding: 8px;
	background: #fff;
	border: 1px solid #e6e2dc;
	box-shadow: 0 6px 20px rgba(85, 66, 51, .08);
}
.ml-certs .box-image img {
	object-fit: cover;
}

/* ---------- Danh mục sản phẩm (3 cột, nhãn xéo) ---------- */
.danh-muc-san-pham .box-cate .box-text p {
	color: #fff;
	margin: 0;
}

/* ---------- Banner slider ảnh ---------- */
.banner-slider_home .banner-title h2 {
	display: inline-block;
	margin: 0;
	padding: 35px 50px;
	border: 1px solid rgba(255, 255, 255, .85);
	border-radius: 10px;
	color: #fff;
	font-size: 48px;
	line-height: 1.2;
	text-align: center;
	text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.banner-slider_home .text-box .button.white {
	color: var(--ml-brown) !important;
	font-weight: 700;
}
.banner-slider_home .text-box .button.white:hover {
	background: var(--ml-green) !important;
	border-color: var(--ml-green) !important;
	color: #fff !important;
}
.banner-slider_home .banner-hotline p {
	margin: 10px 0 0;
	font-size: 26px;
	letter-spacing: 1px;
	text-shadow: 0 2px 10px rgba(0, 0, 0, .4);
}
.banner-slider_home .banner-hotline a {
	color: #fff;
}
.banner-slider_home .banner-hotline a:hover {
	color: var(--ml-green);
}
@media (max-width: 849px) {
	.banner-slider_home .banner-title h2 { font-size: 32px; padding: 25px 30px; }
	.banner-slider_home .banner-hotline p { font-size: 20px; }
}
@media (max-width: 549px) {
	.banner-slider_home .banner-title h2 { font-size: 18px; padding: 12px 15px; }
	.banner-slider_home .text-box .button { font-size: 12px; margin-bottom: 5px; }
	.banner-slider_home .banner-hotline p { font-size: 15px; margin-top: 5px; }
}
.banner-slider_home .flickity-page-dots .dot {
	border-color: #fff;
}
.banner-slider_home .flickity-page-dots .dot.is-selected {
	background: var(--ml-green);
	border-color: var(--ml-green);
}

@media (max-width: 549px) {
	.heading-home h3,
	.heading-home .h3 {
		font-size: 22px;
		line-height: 30px;
	}
	.ml-pt-tab {
		padding: 0 14px;
		font-size: 13px;
	}
}
