/* Mộc Gia Hải Phòng – chỉ tải trên các trang thuộc cụm sửa đồ gỗ */
.mocgia-page {
	--mg-wood: #7a4a21;
	--mg-wood-dark: #4f2f13;
	--mg-accent: #e0892b;
	--mg-zalo: #0068ff;
	--mg-bg: #faf6f1;
	--mg-line: #e8dccd;
	--mg-text: #2b2118;
}
.mocgia-page .entry-content,
.mocgia-page .mg-wrap { color: var(--mg-text); line-height: 1.7; }
.mocgia-page .entry-content h2 { color: var(--mg-wood-dark); margin-top: 2em; }
.mocgia-page .entry-content h3 { color: var(--mg-wood); }

.mg-breadcrumb { font-size: 14px; margin: 0 0 12px; color: #6b5a4a; }
.mg-breadcrumb a { color: var(--mg-wood); text-decoration: none; }
.mg-breadcrumb .mg-sep { margin: 0 4px; }

.mg-answer {
	background: var(--mg-bg);
	border-left: 4px solid var(--mg-accent);
	padding: 16px 18px;
	border-radius: 6px;
	margin: 0 0 20px;
}
.mg-answer p:last-child { margin-bottom: 0; }

.mg-cta {
	background: linear-gradient(135deg, var(--mg-wood-dark), var(--mg-wood));
	color: #fff;
	padding: 22px 20px;
	border-radius: 10px;
	margin: 28px 0;
	text-align: center;
}
.mg-cta p { color: #fff; margin: 0 0 8px; }
.mg-cta-title { font-size: 20px; font-weight: 700; }
.mg-cta-meta { font-size: 13px; opacity: .85; margin-top: 12px !important; }
.mg-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; }

.mg-btn {
	display: inline-block;
	padding: 12px 20px;
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none !important;
	line-height: 1.2;
}
.mg-btn-call { background: var(--mg-accent); color: #fff !important; }
.mg-btn-zalo { background: var(--mg-zalo); color: #fff !important; }
.mg-btn-outline { border: 2px solid var(--mg-wood); color: var(--mg-wood) !important; }

.mg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 16px 0; }
.mg-card {
	display: block;
	border: 1px solid var(--mg-line);
	border-radius: 10px;
	padding: 16px;
	background: #fff;
	text-decoration: none !important;
	color: var(--mg-text) !important;
	transition: box-shadow .2s, transform .2s;
}
.mg-card:hover { box-shadow: 0 6px 18px rgba(79, 47, 19, .12); transform: translateY(-2px); }
.mg-card strong { display: block; color: var(--mg-wood-dark); font-size: 17px; margin-bottom: 6px; }
.mg-card span { font-size: 14px; color: #5c4a3a; }
.mg-card em { display: block; margin-top: 8px; font-style: normal; color: var(--mg-accent); font-weight: 700; font-size: 14px; }

.mg-table-wrap { overflow-x: auto; margin: 12px 0 20px; -webkit-overflow-scrolling: touch; }
.mg-table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 15px; }
.mg-table th, .mg-table td { border: 1px solid var(--mg-line); padding: 9px 10px; text-align: left; vertical-align: top; }
.mg-table thead th { background: var(--mg-wood); color: #fff; }
.mg-table tbody tr:nth-child(even) { background: var(--mg-bg); }
.mg-table td:nth-child(3) { white-space: nowrap; font-weight: 600; }

.mg-steps { counter-reset: mgstep; list-style: none; padding: 0; }
.mg-steps li { counter-increment: mgstep; position: relative; padding: 0 0 14px 46px; }
.mg-steps li::before {
	content: counter(mgstep);
	position: absolute; left: 0; top: 0;
	width: 32px; height: 32px; border-radius: 50%;
	background: var(--mg-accent); color: #fff; font-weight: 700;
	display: flex; align-items: center; justify-content: center;
}

.mg-note { background: #fff8e8; border: 1px solid #f1d9a6; padding: 12px 14px; border-radius: 6px; font-size: 15px; }
.mg-warn { background: #fdecea; border: 1px solid #f5c2bc; padding: 12px 14px; border-radius: 6px; font-size: 15px; }

.mg-faq { margin: 12px 0 24px; }
.mg-faq-item { border: 1px solid var(--mg-line); border-radius: 8px; margin-bottom: 8px; background: #fff; }
.mg-faq-item summary { cursor: pointer; padding: 12px 14px; font-weight: 700; color: var(--mg-wood-dark); list-style: none; }
.mg-faq-item summary::-webkit-details-marker { display: none; }
.mg-faq-item summary::after { content: '+'; float: right; font-weight: 700; color: var(--mg-accent); }
.mg-faq-item[open] summary::after { content: '–'; }
.mg-faq-a { padding: 0 14px 12px; }

.mg-related { border-top: 2px solid var(--mg-line); margin-top: 28px; padding-top: 16px; }
.mg-related-title { font-weight: 700; color: var(--mg-wood-dark); }
.mg-related ul { columns: 2; column-gap: 24px; padding-left: 18px; }
.mg-related li { break-inside: avoid; margin-bottom: 6px; }

.mg-author { display: flex; gap: 14px; align-items: flex-start; background: var(--mg-bg); border-radius: 10px; padding: 16px; margin-top: 20px; }
.mg-author img { border-radius: 50%; }
.mg-author p { margin: 0 0 6px; font-size: 14px; }
.mg-author-name { font-weight: 700; }
.mg-updated { font-size: 13px; color: #6b5a4a; }

.mg-projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.mg-project { border: 1px solid var(--mg-line); border-radius: 10px; overflow: hidden; background: #fff; }
.mg-project img { width: 100%; height: 200px; object-fit: cover; display: block; }
.mg-project h3 { font-size: 17px; margin: 10px 12px 6px; }
.mg-project ul { list-style: none; margin: 0 12px 12px; padding: 0; font-size: 14px; }

.mg-float {
	position: fixed; z-index: 9999; right: 14px; bottom: 16px;
	display: flex; flex-direction: column; gap: 8px;
}
.mg-float a {
	display: block; padding: 11px 16px; border-radius: 999px; color: #fff !important;
	font-weight: 700; text-decoration: none !important; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); text-align: center;
}
.mg-float-call { background: var(--mg-accent); }
.mg-float-zalo { background: var(--mg-zalo); }

@media (max-width: 640px) {
	.mg-related ul { columns: 1; }
	.mg-float { left: 0; right: 0; bottom: 0; flex-direction: row; gap: 0; }
	.mg-float a { flex: 1; border-radius: 0; padding: 14px 8px; }
	.mocgia-page { padding-bottom: 52px; }
}
