/* Front page + page.php article content — layout only, giữ màu/font từ editor admin */
.halink-front-section {
	margin: 0;
}

.halink-front-article {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 60, 40, 0.08);
	overflow: hidden;
	border: 1px solid rgba(45, 138, 78, 0.12);
}

.halink-front-section .entry-content,
.halink-front-content {
	padding: 24px 22px 30px !important;
	line-height: 1.75;
	background: linear-gradient(180deg, #f8fcf9 0%, #fff 120px);
	overflow: visible;
}

.halink-front-content > p:first-child {
	margin: 0 0 22px;
	padding: 14px 18px;
	background: linear-gradient(90deg, rgba(0, 137, 201, 0.08) 0%, rgba(45, 154, 88, 0.06) 100%);
	border-left: 4px solid #0089c9;
	border-radius: 0 10px 10px 0;
}

.halink-section-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 28px 0 16px;
	padding: 12px 16px;
	background: linear-gradient(90deg, rgba(45, 154, 88, 0.1) 0%, rgba(45, 154, 88, 0.03) 100%);
	border-left: 4px solid #2d9a58;
	border-radius: 0 8px 8px 0;
}

.halink-section-title .halink-section-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #2d9a58;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	flex-shrink: 0;
}

.halink-section-title strong,
.halink-section-title span,
.halink-section-title em {
	line-height: 1.4;
}

.halink-front-content h2,
.halink-front-content h3,
.halink-front-content h4 {
	margin: 26px 0 14px;
	padding-bottom: 8px;
	border-bottom: 2px solid rgba(45, 154, 88, 0.2);
	line-height: 1.4;
}

.halink-front-content p {
	margin: 0 0 14px;
}

.halink-price-tag {
	display: inline-block;
	margin: 6px 0 14px;
	padding: 8px 16px;
	background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
	border: 1px solid rgba(229, 57, 53, 0.2);
	border-radius: 999px;
	box-shadow: 0 2px 8px rgba(229, 57, 53, 0.1);
}

.halink-price-tag em {
	font-style: inherit;
}

.halink-front-content a:hover {
	opacity: 0.85;
}

.halink-front-content img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 16px auto;
	border-radius: 10px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Bảng sản phẩm từ editor: ảnh trái + mô tả phải */
#content .halink-front-content table,
.halink-front-content table.halink-product-table {
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	margin: 0 0 18px;
	border-collapse: separate;
	border-spacing: 0;
	table-layout: auto;
	background: #fff;
	border: 1px solid rgba(45, 154, 88, 0.16);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 18px rgba(0, 60, 40, 0.06);
}

#content .halink-front-content table tbody,
#content .halink-front-content table tr {
	width: 100%;
}

#content .halink-front-content table td,
#content .halink-front-content table th {
	border: 0;
	background: transparent !important;
	vertical-align: middle;
	padding: 14px 16px;
	color: inherit;
	font-size: inherit;
}

#content .halink-front-content table tr:hover td,
#content .halink-front-content table tr:hover th {
	background: transparent !important;
}

#content .halink-front-content table td:first-child {
	width: 240px;
	max-width: 42%;
	padding: 12px;
	text-align: center;
}

#content .halink-front-content table td:last-child:not(:first-child) {
	padding: 16px 18px 16px 8px;
	font-family: "Ubuntu", "Segoe UI", Tahoma, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.7;
	color: #334155;
	text-align: left;
}

#content .halink-front-content table td strong {
	display: block;
	margin: 0 0 8px;
	color: #1a5c2e;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
}

#content .halink-front-content table td br {
	display: block;
	content: "";
	margin-top: 3px;
}

#content .halink-front-content table a {
	display: inline-block;
	max-width: 100%;
}

#content .halink-front-content table a:hover {
	opacity: 1;
}

#content .halink-front-content table img {
	display: block;
	width: 100%;
	max-width: 220px;
	height: auto !important;
	margin: 0 auto;
	border-radius: 8px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.halink-product-block {
	margin: 0 0 20px;
	border: 1px solid rgba(45, 154, 88, 0.16);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 4px 18px rgba(0, 60, 40, 0.06);
}

.halink-product-block .halink-product-table,
#content .halink-front-content .halink-product-block table {
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.halink-front-content .halink-product-caption {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0 !important;
	padding: 9px 14px 11px;
	background: linear-gradient(90deg, rgba(45, 154, 88, 0.09) 0%, rgba(0, 137, 201, 0.07) 100%);
	border-top: 1px dashed rgba(45, 154, 88, 0.25);
	font-family: "Ubuntu", "Segoe UI", Tahoma, Arial, sans-serif;
	font-size: 13px;
	font-style: italic;
	font-weight: 600;
	letter-spacing: 0.15px;
	line-height: 1.4;
	color: #1a5c2e;
	text-align: center;
}

.halink-front-content .halink-product-caption::before {
	content: "";
	flex-shrink: 0;
	width: 16px;
	height: 12px;
	border: 2px solid #2d9a58;
	border-radius: 2px;
	box-shadow: 0 -2px 0 0 #2d9a58;
	opacity: 0.85;
}

.halink-front-content a:hover img {
	transform: scale(1.01);
	box-shadow: 0 10px 32px rgba(45, 154, 88, 0.18);
}

.halink-front-content blockquote {
	margin: 20px 0;
	padding: 16px 20px;
	background: linear-gradient(135deg, #f0faf4 0%, #e8f5ec 100%);
	border-left: 4px solid #2d9a58;
	border-radius: 0 10px 10px 0;
	box-shadow: inset 0 0 0 1px rgba(45, 154, 88, 0.12);
}

.halink-front-content blockquote p {
	margin: 0;
}

/* Ghi đè #content ul/ol trong desktop-snapshot-008 (list-style decimal/disc + margin-left 30px) */
#content .halink-front-content ul,
#content .halink-front-content ol,
#content .halink-front-content ul ul,
#content .halink-front-content ol ol,
#content .halink-front-content ul ol,
#content .halink-front-content ol ul {
	margin: 12px 0 18px !important;
	padding-left: 0 !important;
	list-style: none !important;
	list-style-type: none !important;
	list-style-image: none !important;
}

#content .halink-front-content li {
	list-style: none !important;
	list-style-type: none !important;
	list-style-image: none !important;
}

#content .halink-front-content ul > li,
#content .halink-front-content ol > li {
	position: relative;
	margin: 0 0 10px;
	padding: 10px 14px 10px 38px;
	background: #f8faf9;
	border-radius: 8px;
	border: 1px solid rgba(45, 154, 88, 0.1);
	line-height: 1.65;
}

#content .halink-front-content ul > li::marker,
#content .halink-front-content ol > li::marker {
	content: none;
}

#content .halink-front-content ul > li::before {
	content: "✓";
	position: absolute;
	left: 12px;
	top: 11px;
	color: #2d9a58;
	font-weight: 700;
}

#content .halink-front-content ol {
	counter-reset: halink-step;
}

#content .halink-front-content ol > li {
	counter-increment: halink-step;
	padding-left: 44px;
}

#content .halink-front-content ol > li::before {
	content: counter(halink-step);
	position: absolute;
	left: 12px;
	top: 10px;
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #2d9a58;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	border-radius: 50%;
}

#content .halink-front-content ol > li::after {
	content: none;
}

.halink-video-wrap {
	position: relative;
	width: 100%;
	max-width: 700px;
	margin: 20px auto;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	border-radius: 12px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
	background: #000;
}

.halink-video-wrap iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
	border: 0 !important;
}

.halink-front-content p[style*="text-align: right"],
.halink-front-content p[style*="text-align:right"] {
	margin-top: 24px;
	padding-top: 18px;
	border-top: 1px dashed rgba(45, 154, 78, 0.25);
}

.halink-page-links {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid #eee;
	font-size: 14px;
}

@media (max-width: 767px) {
	.halink-front-content {
		padding: 18px 14px 22px;
	}

	.halink-section-title {
		margin-top: 22px;
		padding: 10px 12px;
	}

	#content .halink-front-content table,
	#content .halink-front-content table tbody,
	#content .halink-front-content table tr,
	#content .halink-front-content table td {
		display: block;
		width: 100% !important;
		max-width: 100% !important;
	}

	#content .halink-front-content table td:first-child {
		padding: 12px 12px 0;
	}

	#content .halink-front-content table td:last-child:not(:first-child) {
		padding: 12px 14px 16px;
	}

	#content .halink-front-content table img {
		max-width: 100%;
	}
}
