/**
 * licham-footer.css — Header (thanh xanh full-width) + Footer (nền tối) (B-builder).
 * Mobile-first, nhẹ; nạp site-wide. Dùng design token ở style.css.
 */

/* ===== HEADER STICKY — bám đỉnh màn hình khi cuộn/vuốt ===== */
.licham-site__header {
	position: sticky;
	top: 0;
	z-index: 100;
	/* Shadow nhẹ khi header nổi lên trên nội dung */
	box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

/* ===== HEADER: 2 dòng — (1) nền trắng + logo giữa; (2) nền xanh + menu cuốn ngang ===== */

/* Dòng 1: brand bar nền trắng, logo căn giữa. */
.licham-site__brandbar {
	background: #fff;
	padding: 1rem 1rem;
	text-align: center;
	border-bottom: 1px solid var(--licham-border, #e5e7eb);
}

.licham-site__brand {
	display: inline-block;
}

.licham-site__brand .custom-logo {
	max-height: 31px;
	width: auto;
	display: block;
	margin: 0 auto;
}

@media (min-width: 640px) {
	.licham-site__brandbar {
		padding: 1.25rem 1rem;
	}
	.licham-site__brand .custom-logo {
		max-height: 34px;
	}
}

.licham-site__title {
	margin: 0;
	font-size: 1.35rem;
}

.licham-site__brandbar .licham-site__title a {
	color: var(--licham-green-dark, #166534);
	text-decoration: none;
}

/* Dòng 2: nav bar nền xanh, menu MỘT HÀNG, cuốn ngang nếu dài (vuốt để xem). */
.licham-site__navbar {
	background: var(--licham-green-dark, #166534);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none; /* Firefox: ẩn thanh cuộn */
}

.licham-site__navbar::-webkit-scrollbar {
	height: 0; /* WebKit: ẩn thanh cuộn */
}

.licham-site__navbar .licham-site__menu {
	list-style: none;
	margin: 0;
	padding: var(--licham-space-sm, .5rem) var(--licham-space-md, 1rem);
	display: flex;
	flex-wrap: nowrap; /* KHÔNG xuống dòng */
	gap: var(--licham-space-lg, 1.5rem);
	white-space: nowrap;
	width: max-content; /* để cuốn ngang khi dài hơn màn hình */
	min-width: 100%;
	justify-content: flex-start;
}

.licham-site__navbar .licham-site__menu > li {
	position: relative;
	flex: 0 0 auto;
}

.licham-site__navbar .licham-site__menu a {
	display: inline-block;
	padding: .35rem .15rem;
	color: #eafdf0;
	text-decoration: none;
	font-weight: 600;
}

.licham-site__navbar .licham-site__menu a:hover,
.licham-site__navbar .licham-site__menu .current-menu-item > a,
.licham-site__navbar .licham-site__menu .current_page_item > a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Mũi tên cho mục CÓ menu con: tam giác CSS đặc, sắc cạnh (gợi ý có dropdown). */
.licham-site__navbar .licham-site__menu .menu-item-has-children > a {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
}

.licham-site__navbar .licham-site__menu .menu-item-has-children > a::after {
	content: "";
	width: 0;
	height: 0;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 7px solid currentColor;
	transition: transform .15s ease;
}

/* Mở dropdown → mũi tên xoay lên. */
.licham-site__navbar .licham-site__menu > li:hover > a::after,
.licham-site__navbar .licham-site__menu > li:focus-within > a::after {
	transform: rotate(180deg);
}

/* --- Dropdown menu con --- */
.licham-site__navbar .licham-site__menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: var(--licham-space-xs, .25rem) 0;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 12rem;
	display: none;
	background: #fff;
	border: 1px solid var(--licham-border, #e5e7eb);
	border-radius: var(--licham-radius-sm, 8px);
	box-shadow: 0 6px 18px rgba(17, 24, 39, .15);
	z-index: 50;
	white-space: nowrap;
}

.licham-site__navbar .licham-site__menu > li:hover > .sub-menu,
.licham-site__navbar .licham-site__menu > li:focus-within > .sub-menu {
	display: block;
}

.licham-site__navbar .licham-site__menu .sub-menu a {
	display: block;
	padding: .5rem 1rem;
	color: var(--licham-text, #1f2937);
	font-weight: 500;
}

.licham-site__navbar .licham-site__menu .sub-menu a:hover {
	background: var(--licham-green-bg, #f0fdf4);
	color: var(--licham-green-dark, #166534);
	text-decoration: none;
}

/* Màn rộng: menu ngắn → căn giữa + thoáng; mở overflow để dropdown KHÔNG bị cắt. */
@media (min-width: 640px) {
	.licham-site__navbar {
		overflow: visible;
	}
	.licham-site__navbar .licham-site__menu {
		justify-content: center;
		padding: var(--licham-space-sm, .5rem) var(--licham-space-md, 1rem);
		gap: var(--licham-space-xl, 2rem);
		width: auto;
	}
}

/* =====================================================================
 * MOBILE DROPDOWN PANEL — hiện khi tap menu có con trên mobile.
 * Vị trí: absolute bên dưới header (header là position: sticky).
 * ===================================================================== */
.licham-nav-panel {
	display: none;
}

.licham-nav-panel.is-open {
	display: block;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border-bottom: 2px solid var(--licham-green, #15803d);
	box-shadow: 0 8px 24px rgba(17, 24, 39, .18);
	z-index: 200;
	max-height: 60vh;
	overflow-y: auto;
}

.licham-nav-panel__list {
	list-style: none;
	margin: 0;
	padding: .4rem 0;
}

.licham-nav-panel__list li a {
	display: block;
	padding: .75rem 1.25rem;
	color: var(--licham-text, #1f2937);
	text-decoration: none;
	font-weight: 500;
	font-size: .95rem;
	border-bottom: 1px solid var(--licham-border, #e5e7eb);
	transition: background .15s, color .15s;
}

.licham-nav-panel__list li:last-child a {
	border-bottom: none;
}

.licham-nav-panel__list li a:hover,
.licham-nav-panel__list li a:active {
	background: var(--licham-green-bg, #f0fdf4);
	color: var(--licham-green-dark, #166534);
}

/* Desktop: panel không bao giờ hiện (dùng hover CSS thuần) */
@media (min-width: 640px) {
	.licham-nav-panel.is-open {
		display: none !important;
	}
}

/* ===================================================================
 * FOOTER — nền xanh đậm, giữ đúng 1000px, 3 cột trên desktop.
 * =================================================================== */

.licham-site__footer {
	background: #1a4731; /* xanh đậm, gần với màu ảnh mẫu */
	color: #cde8d7;
	margin-top: var(--licham-space-xl, 2rem);
	padding: 2.5rem 0 0;
	font-size: .9rem;
}

.licham-footer__inner {
	max-width: var(--licham-container, 62.5rem); /* 1000px */
	margin: 0 auto;
	padding: 0 var(--licham-space-md, 1rem);
}

/* ---- 3 cột ---- */
.licham-footer__cols {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	padding-bottom: 2rem;
}

@media (min-width: 640px) {
	.licham-footer__cols {
		grid-template-columns: repeat(3, 1fr);
		gap: 2.5rem;
	}
}

/* ---- Tiêu đề cột: icon tròn + text ---- */
.licham-footer__title {
	display: flex;
	align-items: center;
	gap: .6rem;
	font-size: 1.05rem;
	font-weight: 700;
	color: #fff;
	margin: 0 0 1rem;
}

/* Vòng tròn bọc icon SVG */
.licham-footer__title-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	min-width: 34px;
	border: 2px solid rgba(255, 255, 255, .35);
	border-radius: 50%;
	color: #fff;
	flex-shrink: 0;
}

.licham-footer__title-icon svg {
	width: 17px;
	height: 17px;
}

/* ---- Nội dung cột ---- */
.licham-footer__body {
	color: #d4eedf;
	line-height: 1.7;
}

/* Col 3: list từ wp_kses_post (thường là <ul><li>) — style bullet + đường ngăn */
.licham-footer__body--list ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.licham-footer__body--list ul li {
	display: flex;
	align-items: center;
	gap: .5rem;
	padding: .45rem 0;
	color: #d4eedf;
	/* không có đường kẻ ngang giữa các mục */
}

/* Col 3: chevron › giống cột 2 */
.licham-footer__body--list ul li::before {
	content: "›";
	color: #7ecf9e;
	font-size: 1rem;
	line-height: 1;
	flex-shrink: 0;
}

.licham-footer__body--list ul li a,
.licham-footer__body--list a {
	color: #d4eedf;
	text-decoration: none;
}

.licham-footer__body--list ul li a:hover,
.licham-footer__body--list a:hover {
	color: #fff;
	text-decoration: underline;
}

/* ---- Danh sách liên kết cột 2: chevron trước, KHÔNG có > sau ---- */
.licham-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.licham-footer__links li {
	/* không có đường kẻ ngang giữa các liên kết */
}

.licham-footer__links li a {
	display: flex;
	align-items: center;
	gap: .4rem;
	padding: .45rem 0;
	color: #d4eedf;
	text-decoration: none;
	transition: color .15s;
}

.licham-footer__links li a:hover {
	color: #fff;
}

/* Chevron › trước tên link */
.licham-footer__link-chevron {
	font-size: 1rem;
	line-height: 1;
	color: #7ecf9e;
	flex-shrink: 0;
}

/* ---- Global link trong footer ---- */
.licham-footer__inner a {
	color: #b7d9c4;
	text-decoration: none;
}

.licham-footer__inner a:hover {
	color: #fff;
}

/* ===================================================================
 * THANH MXH: đường kẻ phân cách + 3 icon vòng tròn căn giữa.
 * Chỉ hiển thị ICON, KHÔNG có tên chữ.
 * =================================================================== */
.licham-footer__social-bar {
	border-top: 1px solid rgba(255, 255, 255, .15);
	padding: 1.5rem 0;
}

.licham-footer__social {
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
}

/* Ngăn cách bằng đường dọc giữa các icon (giống ảnh mẫu) */
.licham-footer__social-item {
	display: flex;
	align-items: center;
}

.licham-footer__social-item + .licham-footer__social-item {
	padding-left: 0;
}

/* Vòng tròn icon MXH */
.licham-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 2px solid #fff;
	border-radius: 50%;
	color: #fff;
	text-decoration: none;
	transition: background .2s, border-color .2s, color .2s;
}

.licham-footer__social-link:hover {
	background: rgba(255, 255, 255, .15);
	border-color: #fff;
	color: #fff;
}

.licham-footer__social-link svg {
	width: 18px;
	height: 18px;
	display: block;
}

/* ===================================================================
 * DÒNG COPYRIGHT — đường kẻ phân cách + text căn giữa.
 * =================================================================== */
.licham-footer__copy {
	margin: 0;
	text-align: center;
	color: #86efac;
	border-top: 1px solid rgba(255, 255, 255, .1);
	padding: 1rem 0 1.5rem;
	font-size: .85rem;
}

/* ===================================================================
 * Khối "Liên kết nhanh" site-wide (licham-seo, B9) — giữ nguyên.
 * =================================================================== */
.licham-related {
	max-width: var(--licham-container);
	margin: 0 auto;
	padding: var(--licham-space-md);
	font-size: .85rem;
	color: var(--licham-muted);
}

.licham-related__label {
	font-weight: 600;
	margin-right: var(--licham-space-sm);
}

.licham-related__list {
	display: inline-flex;
	flex-wrap: wrap;
	gap: var(--licham-space-sm) var(--licham-space-md);
	list-style: none;
	margin: 0;
	padding: 0;
}

.licham-related__list a {
	color: var(--licham-green-dark);
	text-decoration: none;
}

.licham-related__list a:hover {
	text-decoration: underline;
}
