:root {
	--cdn-brand-green: #166534;
	--cdn-brand-green-dark: #14532d;
	--cdn-brand-gold: #f4b740;
	--cdn-brand-line: #dbe7df;
	--cdn-brand-footer: #14532d;
}

.cdn-global-header,
.cdn-global-footer {
	box-sizing: border-box;
	width: 100%;
	font-family: Arial, sans-serif;
}

.cdn-global-header {
	position: relative;
	z-index: 100;
	background: #fff;
	border-bottom: 1px solid var(--cdn-brand-line);
	box-shadow: 0 3px 16px rgba(23, 107, 58, 0.07);
}

.cdn-global-header-inner {
	box-sizing: border-box;
	width: min(1200px, calc(100% - 40px));
	min-height: 76px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 28px;
}

.cdn-global-branding {
	flex: 0 0 auto;
}

.cdn-global-branding a {
	display: flex;
	align-items: center;
	text-decoration: none;
}

.cdn-global-branding .site-logo,
.cdn-global-branding img {
	display: block;
	width: auto;
	max-width: 190px;
	max-height: 54px;
	object-fit: contain;
}

.cdn-global-navigation {
	margin-left: auto;
}

.cdn-global-menu {
	display: flex;
	align-items: center;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.cdn-global-menu li {
	margin: 0;
	padding: 0;
}

.cdn-global-menu a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--cdn-brand-green) !important;
	text-decoration: none !important;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: none;
	border: 0 !important;
}

.cdn-global-menu a:hover,
.cdn-global-menu a:focus {
	color: var(--cdn-brand-green-dark) !important;
	text-decoration: underline !important;
	text-underline-offset: 5px;
}

.cdn-global-quote {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-height: 44px;
	padding: 10px 17px;
	border-radius: 10px;
	background: var(--cdn-brand-gold);
	color: var(--cdn-brand-green-dark) !important;
	text-decoration: none !important;
	font-size: 14px;
	font-weight: 800;
}

.cdn-global-quote:hover,
.cdn-global-quote:focus {
	background: #ffc84f;
}

.cdn-global-mobile-menu {
	display: none;
	position: relative;
	flex: 0 0 auto;
}

.cdn-global-mobile-menu summary {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 42px;
	height: 42px;
	padding: 9px;
	list-style: none;
	cursor: pointer;
	border: 1px solid var(--cdn-brand-line);
	border-radius: 9px;
}

.cdn-global-mobile-menu summary::-webkit-details-marker {
	display: none;
}

.cdn-global-mobile-menu summary span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--cdn-brand-green);
}

.cdn-global-mobile-menu nav {
	position: absolute;
	top: 50px;
	right: 0;
	z-index: 120;
	width: min(250px, calc(100vw - 32px));
	padding: 8px;
	background: #fff;
	border: 1px solid var(--cdn-brand-line);
	border-radius: 12px;
	box-shadow: 0 14px 35px rgba(17, 86, 46, 0.16);
}

.cdn-global-mobile-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cdn-global-mobile-list li {
	margin: 0;
	padding: 0;
}

.cdn-global-mobile-list a {
	display: block;
	padding: 11px 12px;
	color: var(--cdn-brand-green) !important;
	text-decoration: none !important;
	font-size: 15px;
	font-weight: 700;
	border-radius: 8px;
}

.cdn-global-mobile-list a:hover,
.cdn-global-mobile-list a:focus {
	background: #edf7f1;
}

.cdn-global-footer {
	display: block !important;
	clear: both;
	background: var(--cdn-brand-footer);
	color: #fff;
}

.cdn-global-footer-inner {
	box-sizing: border-box;
	width: min(1200px, calc(100% - 40px));
	margin: 0 auto;
	padding: 32px 0 22px;
	display: grid;
	grid-template-columns: 1.1fr 0.8fr 1.5fr 1fr;
	gap: 36px;
}

.cdn-global-footer h2 {
	margin: 0 0 14px !important;
	color: #fff !important;
	font-size: 17px !important;
	line-height: 1.3 !important;
}

.cdn-global-footer p {
	margin: 12px 0 0 !important;
	color: #e0f0e7 !important;
	font-size: 14px;
	line-height: 1.65;
}

.cdn-global-footer ul {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.cdn-global-footer li {
	margin: 0 0 10px !important;
	padding: 0 !important;
	color: #e0f0e7 !important;
	font-size: 14px;
	line-height: 1.5;
}

.cdn-global-footer a {
	color: #fff !important;
	text-decoration: none !important;
}

.cdn-global-footer a:hover,
.cdn-global-footer a:focus {
	text-decoration: underline !important;
	text-underline-offset: 4px;
}

.cdn-global-footer-brand > a {
	display: inline-block;
	font-size: 21px;
	font-weight: 500;
}

.cdn-global-footer-brand strong {
	color: var(--cdn-brand-gold);
	text-transform: uppercase;
}

.cdn-global-branches a {
	color: var(--cdn-brand-gold) !important;
	font-weight: 800;
}

.cdn-global-footer-bottom {
	box-sizing: border-box;
	width: min(1200px, calc(100% - 40px));
	margin: 0 auto;
	padding: 14px 0 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	color: #d6eadf;
	text-align: center;
	font-size: 13px;
}

@media (max-width: 980px) {
	.cdn-global-navigation {
		display: none;
	}

	.cdn-global-quote {
		margin-left: auto;
	}

	.cdn-global-mobile-menu {
		display: block;
	}

	.cdn-global-footer-inner {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 600px) {
	.cdn-global-header-inner {
		width: min(100% - 24px, 1200px);
		min-height: 66px;
		gap: 10px;
	}

	.cdn-global-branding .site-logo,
	.cdn-global-branding img {
		max-width: 116px;
		max-height: 40px;
	}

	.cdn-global-quote {
		min-height: 40px;
		padding: 9px 11px;
		font-size: 12px;
	}

	.cdn-global-mobile-menu summary {
		width: 40px;
		height: 40px;
	}

	.cdn-global-footer-inner {
		width: min(100% - 32px, 1200px);
		grid-template-columns: 1fr;
		gap: 26px;
		padding: 26px 0 20px;
	}

	.cdn-global-footer-bottom {
		width: min(100% - 32px, 1200px);
	}
}

/* ── Mobile only (W1-7D) — không ảnh hưởng header/menu desktop ──── */
@media (max-width: 767px) {
	.cdn-global-header-inner {
		flex-wrap: nowrap;
		gap: 10px;
	}

	/* Thứ tự: nút menu → logo → CTA (DOM giữ nguyên, chỉ đổi order) */
	.cdn-global-mobile-menu {
		order: 1;
		margin-left: 0;
	}

	.cdn-global-branding {
		order: 2;
		flex: 1 1 auto;
		min-width: 0;
	}

	.cdn-global-quote {
		order: 3;
		margin-left: 0;
		flex: 0 0 auto;
		white-space: nowrap;
		background: #fff;
		border: 1.5px solid var(--cdn-brand-green);
		color: var(--cdn-brand-green) !important;
	}

	.cdn-global-quote:hover,
	.cdn-global-quote:focus {
		background: #edf7f1;
		border-color: var(--cdn-brand-green-dark);
		color: var(--cdn-brand-green-dark) !important;
	}

	/* Logo lớn hơn (trong mức +50%), có trần để CTA không xuống hàng */
	.cdn-global-branding a {
		color: var(--cdn-brand-green);
	}

	.cdn-global-branding .site-logo,
	.cdn-global-branding img {
		max-width: 160px;
		max-height: 56px;
	}
}
