/* Hàng Hóa HCM Portal - Main styles */
:root {
	--hhhcm-navy: #0a1628;
	--hhhcm-navy-light: #132337;
	--hhhcm-gold: #c9a227;
	--hhhcm-gold-hover: #b8911f;
	--hhhcm-white: #ffffff;
	--hhhcm-bg: #f5f7fa;
	--hhhcm-text: #1a2332;
	--hhhcm-muted: #5a6a7a;
	--hhhcm-border: #e2e8f0;
	--hhhcm-green: #16a34a;
	--hhhcm-red: #dc2626;
	--hhhcm-radius: 8px;
	--hhhcm-shadow: 0 4px 20px rgba(10, 22, 40, 0.08);
	--hhhcm-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--hhhcm-container: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--hhhcm-font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--hhhcm-text);
	background: var(--hhhcm-white);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--hhhcm-navy); text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: var(--hhhcm-gold); }
h1, h2, h3, h4 { line-height: 1.3; color: var(--hhhcm-navy); margin-top: 0; }
.container { width: 100%; max-width: var(--hhhcm-container); margin: 0 auto; padding: 0 20px; }
.screen-reader-text {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.skip-link:focus {
	position: fixed; top: 10px; left: 10px; z-index: 99999;
	background: var(--hhhcm-gold); color: var(--hhhcm-navy);
	padding: 12px 20px; clip: auto; width: auto; height: auto;
}

/* Buttons */
.btn {
	display: inline-block;
	padding: 12px 24px;
	font-weight: 600;
	font-size: 0.95rem;
	border-radius: var(--hhhcm-radius);
	border: 2px solid transparent;
	cursor: pointer;
	text-align: center;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-gold { background: var(--hhhcm-gold); color: var(--hhhcm-navy); }
.btn-gold:hover, .btn-gold:focus { background: var(--hhhcm-gold-hover); color: var(--hhhcm-navy); }
.btn-navy { background: var(--hhhcm-navy); color: var(--hhhcm-white); }
.btn-navy:hover, .btn-navy:focus { background: var(--hhhcm-navy-light); color: var(--hhhcm-white); }
.btn-outline { background: transparent; border-color: var(--hhhcm-white); color: var(--hhhcm-white); }
.btn-outline:hover, .btn-outline:focus { background: var(--hhhcm-white); color: var(--hhhcm-navy); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.7); color: var(--hhhcm-white); }
.btn-outline-light:hover { background: var(--hhhcm-white); color: var(--hhhcm-navy); }
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-block { display: block; width: 100%; }

/* Header */
.site-header {
	background: var(--hhhcm-navy);
	color: var(--hhhcm-white);
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 70px;
	gap: 16px;
}
.site-branding a { color: var(--hhhcm-white); }
.site-title { font-size: 1.25rem; font-weight: 700; letter-spacing: 0.02em; display: block; }
.site-description { font-size: 0.75rem; opacity: 0.75; display: block; }
.custom-logo-link img { max-height: 48px; width: auto; }

.main-navigation ul {
	list-style: none; margin: 0; padding: 0;
	display: flex; gap: 4px; flex-wrap: wrap;
}
.main-navigation a {
	color: rgba(255,255,255,0.9);
	padding: 8px 14px;
	display: block;
	font-size: 0.9rem;
	font-weight: 500;
	border-radius: 4px;
}
.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a {
	color: var(--hhhcm-gold);
	background: rgba(255,255,255,0.06);
}

.menu-toggle {
	display: none;
	background: transparent;
	border: 1px solid rgba(255,255,255,0.3);
	border-radius: 4px;
	padding: 8px 10px;
	cursor: pointer;
	flex-direction: column;
	gap: 5px;
}
.menu-toggle-bar {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--hhhcm-white);
}

/* Hero */
.hero-section {
	background: linear-gradient(135deg, var(--hhhcm-navy) 0%, #152a45 50%, #0d1f35 100%);
	color: var(--hhhcm-white);
	padding: 80px 0 90px;
	text-align: center;
}
.hero-title {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	color: var(--hhhcm-white);
	margin-bottom: 16px;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}
.hero-desc {
	font-size: 1.1rem;
	opacity: 0.9;
	max-width: 640px;
	margin: 0 auto 28px;
	line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Sections */
.section { padding: 60px 0; }
.section-header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 32px;
}
.section-header h2 { margin-bottom: 8px; font-size: 1.75rem; }
.section-header p { color: var(--hhhcm-muted); margin: 0; max-width: 560px; }
.section-header.light h2, .section-header.light p { color: var(--hhhcm-white); }
.section-more { font-weight: 600; color: var(--hhhcm-gold); white-space: nowrap; }
.bg-light { background: var(--hhhcm-bg); }
.bg-navy { background: var(--hhhcm-navy); color: var(--hhhcm-white); }
.section-cta-center { text-align: center; margin-top: 32px; }

.market-notice {
	background: #fff8e6;
	border-left: 4px solid var(--hhhcm-gold);
	padding: 14px 18px;
	margin-bottom: 28px;
	border-radius: 0 var(--hhhcm-radius) var(--hhhcm-radius) 0;
	font-size: 0.95rem;
	color: var(--hhhcm-muted);
}

.commodity-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.commodity-card {
	background: var(--hhhcm-white);
	border: 1px solid var(--hhhcm-border);
	border-radius: var(--hhhcm-radius);
	padding: 28px 24px;
	box-shadow: var(--hhhcm-shadow);
	transition: transform 0.2s, box-shadow 0.2s;
}
.commodity-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(10,22,40,0.12); }
.commodity-icon { font-size: 2rem; margin-bottom: 12px; }
.commodity-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.commodity-card p { color: var(--hhhcm-muted); font-size: 0.95rem; margin-bottom: 16px; }
.card-link { font-weight: 600; color: var(--hhhcm-gold); }

.posts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.posts-grid-4 { grid-template-columns: repeat(4, 1fr); }
.post-card {
	background: var(--hhhcm-white);
	border-radius: var(--hhhcm-radius);
	overflow: hidden;
	border: 1px solid var(--hhhcm-border);
	box-shadow: var(--hhhcm-shadow);
	display: flex;
	flex-direction: column;
	transition: transform 0.2s;
}
.post-card:hover { transform: translateY(-2px); }
.post-card-thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--hhhcm-navy); }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card-thumb-placeholder {
	display: flex; align-items: center; justify-content: center;
	color: rgba(255,255,255,0.4); font-weight: 600; font-size: 0.9rem;
}
.post-card-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.post-card-meta { font-size: 0.8rem; color: var(--hhhcm-muted); margin-bottom: 8px; display: flex; gap: 10px; }
.post-cat { color: var(--hhhcm-gold); font-weight: 600; }
.post-card-title { font-size: 1.05rem; margin-bottom: 8px; }
.post-card-title a { color: var(--hhhcm-navy); }
.post-card-title a:hover { color: var(--hhhcm-gold); }
.post-card-excerpt { font-size: 0.9rem; color: var(--hhhcm-muted); flex: 1; margin-bottom: 12px; }
.post-card-more { font-weight: 600; font-size: 0.9rem; color: var(--hhhcm-gold); }

.knowledge-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}
.knowledge-item {
	background: var(--hhhcm-bg);
	padding: 24px;
	border-radius: var(--hhhcm-radius);
	border: 1px solid var(--hhhcm-border);
}
.knowledge-item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.knowledge-item p { margin: 0; color: var(--hhhcm-muted); font-size: 0.95rem; }

.benefits-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
.benefit-item h3 { color: var(--hhhcm-gold); font-size: 1.15rem; }
.benefit-item p { color: rgba(255,255,255,0.85); margin: 0; }

.cta-form-section { background: var(--hhhcm-navy-light); color: var(--hhhcm-white); }
.cta-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: start;
}
.cta-text h2 { color: var(--hhhcm-white); }
.cta-text p { opacity: 0.9; margin-bottom: 20px; }
.cta-form-wrap {
	background: var(--hhhcm-white);
	color: var(--hhhcm-text);
	padding: 28px;
	border-radius: var(--hhhcm-radius);
	box-shadow: var(--hhhcm-shadow);
}

/* Form */
.hhhcm-contact-form .form-row { margin-bottom: 16px; }
.hhhcm-contact-form label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.hhhcm-contact-form input[type="text"],
.hhhcm-contact-form input[type="tel"],
.hhhcm-contact-form input[type="email"],
.hhhcm-contact-form textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--hhhcm-border);
	border-radius: 6px;
	font: inherit;
	transition: border-color 0.2s;
}
.hhhcm-contact-form input:focus,
.hhhcm-contact-form textarea:focus {
	outline: none;
	border-color: var(--hhhcm-gold);
	box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}
.hhhcm-contact-form .required { color: var(--hhhcm-red); }
.form-checkbox label { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
.form-checkbox input { margin-top: 4px; }
.hhhcm-hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-message { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 0.95rem; }
.form-success { background: #dcfce7; color: #166534; }
.form-error { background: #fee2e2; color: #991b1b; }

/* Content pages */
.content-area { padding: 40px 0 60px; }
.page-header { margin-bottom: 32px; }
.page-title { font-size: 1.85rem; }
.entry-header { margin-bottom: 24px; }
.entry-title { font-size: 2rem; }
.entry-meta { font-size: 0.9rem; color: var(--hhhcm-muted); margin-top: 8px; }
.entry-meta .sep { margin: 0 6px; }
.entry-thumbnail { margin-bottom: 28px; border-radius: var(--hhhcm-radius); overflow: hidden; }
.entry-content { max-width: 720px; }
.entry-content h2, .entry-content h3 { margin-top: 1.5em; }
.entry-content p { margin-bottom: 1.1em; }
.entry-content ul, .entry-content ol { margin-bottom: 1.1em; padding-left: 1.4em; }
.entry-footer { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--hhhcm-border); max-width: 720px; }
.share-buttons { margin-bottom: 24px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.share-buttons a {
	padding: 6px 12px;
	background: var(--hhhcm-bg);
	border-radius: 4px;
	font-size: 0.85rem;
	font-weight: 600;
}
.single-cta {
	background: var(--hhhcm-bg);
	padding: 20px 24px;
	border-radius: var(--hhhcm-radius);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.single-cta p { margin: 0; font-weight: 500; }
.related-posts { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--hhhcm-border); }
.related-posts h2 { font-size: 1.35rem; margin-bottom: 20px; }

/* Pagination */
.navigation.pagination { margin-top: 40px; text-align: center; }
.navigation.pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.navigation.pagination a,
.navigation.pagination span {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid var(--hhhcm-border);
	border-radius: 4px;
	font-weight: 500;
}
.navigation.pagination .current { background: var(--hhhcm-navy); color: var(--hhhcm-white); border-color: var(--hhhcm-navy); }

/* Search form */
.search-form { display: flex; gap: 8px; max-width: 400px; margin-top: 16px; }
.search-field {
	flex: 1;
	padding: 10px 14px;
	border: 1px solid var(--hhhcm-border);
	border-radius: 6px;
	font: inherit;
}

/* Footer */
.site-footer {
	background: var(--hhhcm-navy);
	color: rgba(255,255,255,0.85);
	padding-top: 48px;
}
.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1.2fr;
	gap: 32px;
	padding-bottom: 40px;
}
.footer-title { color: var(--hhhcm-white); font-size: 1.05rem; margin-bottom: 14px; }
.footer-about p { font-size: 0.9rem; line-height: 1.6; margin: 0; opacity: 0.85; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { color: rgba(255,255,255,0.8); font-size: 0.9rem; display: block; padding: 4px 0; }
.footer-links a:hover { color: var(--hhhcm-gold); }
.footer-contact-list { list-style: none; margin: 0; padding: 0; font-size: 0.9rem; }
.footer-contact-list li { margin-bottom: 10px; }
.footer-contact-list a { color: rgba(255,255,255,0.9); }
.footer-contact-list a:hover { color: var(--hhhcm-gold); }
.footer-risk {
	background: rgba(0,0,0,0.25);
	padding: 16px 0;
}
.risk-warning { font-size: 0.8rem; line-height: 1.55; margin: 0; opacity: 0.85; }
.footer-bottom {
	padding: 16px 0;
	border-top: 1px solid rgba(255,255,255,0.1);
	text-align: center;
	font-size: 0.85rem;
	opacity: 0.7;
}
.footer-bottom p { margin: 0; }

/* Responsive */
@media (max-width: 992px) {
	.commodity-grid,
	.posts-grid,
	.benefits-grid { grid-template-columns: repeat(2, 1fr); }
	.posts-grid-4 { grid-template-columns: repeat(2, 1fr); }
	.cta-form-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
	.menu-toggle { display: flex; }
	.main-navigation {
		display: none;
		position: absolute;
		top: 70px;
		left: 0; right: 0;
		background: var(--hhhcm-navy-light);
		padding: 16px;
		border-top: 1px solid rgba(255,255,255,0.1);
	}
	.main-navigation.is-open { display: block; }
	.main-navigation ul { flex-direction: column; }
	.header-cta { display: none; }
	.header-inner { position: relative; }
	.hero-section { padding: 50px 0 60px; }
	.commodity-grid,
	.posts-grid,
	.posts-grid-4,
	.knowledge-grid,
	.benefits-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.single-cta { flex-direction: column; align-items: flex-start; }
	.section { padding: 40px 0; }
}