/**
 * licham-home.css — Trang chủ builder (B-builder). Mobile-first, nhẹ.
 * Chỉ nạp khi dùng Template "Builder HOME".
 */

.licham-home {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

/* Khi module lịch tháng nằm trực tiếp trong home (không có .licham-thang wrapper),
   cần tự thêm padding ngang để không sát viền. */
.licham-home .licham-thang__block {
	padding-left: 1rem;
	padding-right: 1rem;
}

.licham-home__block-title,
.licham-home__hero-title {
	margin: 0 0 .75rem;
	font-size: 1.3rem;
	font-weight: 700;
	text-transform: uppercase;
}

/* Hero hôm nay */
.licham-home__hero {
	text-align: center;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 12px;
	padding: 1.25rem;
}

.licham-home__hero-top {
	margin: 0;
	color: #6b7280;
	font-size: .9rem;
}

.licham-home__hero-num {
	margin: .25rem 0;
	font-size: 3.5rem;
	font-weight: 800;
	line-height: 1;
	color: #15803d;
}

.licham-home__hero-lunar,
.licham-home__hero-canchi {
	margin: .15rem 0;
	font-weight: 600;
}

.licham-home__hero-badges {
	margin: .6rem 0;
	display: flex;
	gap: .5rem;
	justify-content: center;
	flex-wrap: wrap;
}

.licham-home__badge {
	display: inline-block;
	padding: .2rem .6rem;
	border-radius: 999px;
	font-size: .85rem;
	background: #e5e7eb;
	color: #374151;
}

.licham-home__badge--hd {
	background: #dcfce7;
	color: #166534;
}

.licham-home__badge--hac {
	background: #fee2e2;
	color: #991b1b;
}

.licham-home__hero-gio ul {
	list-style: none;
	margin: .3rem 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	justify-content: center;
	font-size: .85rem;
}

.licham-home__hero-gio li {
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	padding: .1rem .5rem;
}

.licham-home__hero-summary {
	margin: .8rem 0 0;
	padding: .6rem .9rem;
	background: #fff;
	border-left: 3px solid #22c55e;
	border-radius: 0 6px 6px 0;
	text-align: left;
	color: #374151;
}

.licham-home__muted {
	color: #6b7280;
	font-size: .85rem;
}

/* Quick nav */
.licham-home__quicknav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .6rem;
}

.licham-home__quicknav-list a {
	display: block;
	padding: .7rem;
	text-align: center;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	text-decoration: none;
	color: #166534;
}

/* CTA tools */
.licham-home__cta-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .75rem;
}

.licham-home__cta-item a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .4rem;
	padding: 1rem;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	text-decoration: none;
	color: #111827;
}

.licham-home__cta-icon {
	width: 40px;
	height: 40px;
}

/* Bài viết mới */
.licham-home__latest-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.licham-home__latest-item {
	display: flex;
	align-items: center;
	gap: .85rem;
	padding: .5rem 0;
}

.licham-home__latest-item:last-child {
	padding-bottom: 0;
}

/* Ô icon xanh nhạt */
.licham-home__latest-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 29px;
	height: 29px;
	min-width: 29px;
	background: var(--licham-green-bg, #f0fdf4);
	border-radius: 6px;
	flex-shrink: 0;
}

.licham-home__latest-icon img {
	width: 16px;
	height: 16px;
	object-fit: contain;
}

.licham-home__latest-title {
	font-weight: 600;
	text-decoration: none;
	color: var(--licham-green, #15803d);
	font-size: .9rem;
	line-height: 1.45;
}

.licham-home__latest-title:hover {
	color: var(--licham-green-dark, #166534);
	text-decoration: underline;
}

/* FAQ */
.licham-home__faq-item {
	border-bottom: 1px solid #e5e7eb;
	padding: .5rem 0;
}

.licham-home__faq-q {
	cursor: pointer;
	font-weight: 600;
}

.licham-home__faq-a {
	margin: .5rem 0 0;
	color: #374151;
}

/* Search box + form dùng chung */
.licham-search {
	display: flex;
	gap: .5rem;
}

.licham-search input[type="search"] {
	flex: 1;
	padding: .6rem .8rem;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 1rem;
}

.licham-search button {
	padding: .6rem 1rem;
	border: 0;
	border-radius: 8px;
	background: #15803d;
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}

@media (min-width: 640px) {
	.licham-home__cta-grid {
		grid-template-columns: repeat(4, 1fr);
	}
	.licham-home__quicknav-list {
		grid-template-columns: repeat(4, 1fr);
	}
}
