/**
 * Bếp Nhà Bíu — giao diện chung + Trang 1.
 *
 * Bảng màu đọc từ mockup của khách; thay bằng brand guide thật khi có.
 * Mobile-first: học viên gần như toàn bộ dùng điện thoại.
 *
 * CHỮ: Be Vietnam Pro, tự host. fonts.css được enqueue riêng trong
 * functions.php — KHÔNG dùng @import vì nó bắt trình duyệt tải tuần tự.
 * Thang cỡ chữ dùng clamp() để co giãn mà không cần media query từng mức.
 */

:root {
	/* Thương hiệu */
	--c-red: #c0392b;
	--c-red-dark: #9c2c1f;
	--c-red-soft: #fdecea;
	--c-green: #587552;
	--c-green-dark: #435a3f;
	--c-green-soft: #7c9a78; /* sắc xanh nhạt gốc từ mockup, chỉ dùng cho viền/nền nhạt */
	--c-orange: #e2725b;

	/* Nền & chữ */
	--c-cream: #fdf6ec;
	--c-surface: #fff;
	--c-ink: #2b2118;
	--c-muted: #857464;
	--c-line: #ecdfcd;
	--c-star: #f0a92c;

	/* Hình khối */
	--r-sm: 8px;
	--r-md: 12px;
	--r-lg: 18px;
	--r-pill: 999px;

	--sh-sm: 0 1px 2px rgba(80, 50, 20, .06);
	--sh-md: 0 4px 16px rgba(80, 50, 20, .09);
	--sh-lg: 0 14px 38px rgba(80, 50, 20, .16);

	--ease: cubic-bezier(.22, .8, .3, 1);
	--gap: 20px;
	--maxw: 1280px;

	/* Chữ */
	--font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--fs-xs: 12px;
	--fs-sm: 13px;
	--fs-base: 15px;
	--fs-md: 16px;
	--fs-lg: clamp(17px, 1.5vw, 19px);
	--fs-xl: clamp(19px, 2vw, 23px);
	--fs-2xl: clamp(22px, 2.6vw, 30px);
	--fs-3xl: clamp(27px, 4vw, 44px);

	/* Chữ Việt nhiều dấu nên cần dòng thoáng hơn bình thường, nếu không dấu
	   thanh của dòng dưới sẽ chạm chân chữ dòng trên. */
	--lh-tight: 1.22;
	--lh-snug: 1.4;
	--lh-base: 1.65;
}

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--c-cream);
	color: var(--c-ink);
	font-family: var(--font);
	font-size: var(--fs-base);
	line-height: var(--lh-base);
	font-feature-settings: "kern" 1, "liga" 1;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* Tiêu đề dùng letter-spacing âm nhẹ: cỡ chữ càng lớn, khoảng cách mặc định
   trông càng rời rạc. Không siết quá tay vì chữ có dấu cần chỗ thở. */
h1, h2, h3, h4 {
	font-family: var(--font);
	font-weight: 800;
	line-height: var(--lh-tight);
	letter-spacing: -0.015em;
	text-wrap: balance;
}

p {
	line-height: var(--lh-base);
}

strong, b {
	font-weight: 700;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
}

.bnb-container {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 16px 64px;
}

.bnb-icon {
	flex: 0 0 auto;
	vertical-align: -0.15em;
}

.bnb-skip {
	position: absolute;
	left: -9999px;
}

.bnb-skip:focus {
	left: 12px;
	top: 12px;
	z-index: 100;
	padding: 10px 16px;
	border-radius: var(--r-sm);
	background: var(--c-ink);
	color: #fff;
}

/* ============================ Header ============================ */

.bnb-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(253, 246, 236, .92);
	-webkit-backdrop-filter: saturate(160%) blur(10px);
	backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid var(--c-line);
}

.bnb-header__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 11px 16px;
}

.bnb-header__logo {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: var(--c-red);
	text-decoration: none;
}

.bnb-header__logo-mark {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: var(--r-md);
	background: var(--c-red);
	color: #fff;
	box-shadow: var(--sh-sm);
}

.bnb-header__logo-text {
	font-size: clamp(15px, 2vw, 19px);
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.bnb-header__actions {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
}

.bnb-iconbtn {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: var(--r-md);
	background: transparent;
	color: var(--c-ink);
	text-decoration: none;
	cursor: pointer;
	transition: background .18s var(--ease), color .18s var(--ease);
}

.bnb-iconbtn:hover,
.bnb-iconbtn:focus-visible {
	background: var(--c-red-soft);
	color: var(--c-red);
}

.bnb-header__account {
	display: flex;
	align-items: center;
	gap: 2px;
}

.bnb-header__user {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 10px 4px 4px;
	border-radius: var(--r-pill);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background .18s var(--ease);
}

.bnb-header__user:hover {
	background: var(--c-red-soft);
}

.bnb-header__user img {
	border-radius: 50%;
}

.bnb-header__login {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 16px;
	border-radius: var(--r-pill);
	background: var(--c-red);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: background .18s var(--ease), transform .18s var(--ease);
}

.bnb-header__login:hover {
	background: var(--c-red-dark);
	color: #fff;
	transform: translateY(-1px);
}

/*
 * Nút "Đăng ký" đứng cạnh "Đăng nhập" nên phải là nút phụ — viền thay vì nền
 * đặc. Hai nút đặc cạnh nhau sẽ tranh nhau sự chú ý và không nút nào nổi.
 */
.bnb-header__register {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 15px;
	border: 1.5px solid var(--c-green);
	border-radius: var(--r-pill);
	background: transparent;
	color: var(--c-green);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: background .18s var(--ease), color .18s var(--ease);
}

.bnb-header__register:hover {
	background: var(--c-green);
	color: #fff;
}

.bnb-header__cart {
	position: relative;
}

.bnb-header__cart-count {
	position: absolute;
	top: 3px;
	right: 2px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: var(--r-pill);
	background: var(--c-red);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	line-height: 17px;
	text-align: center;
}

/* ============================= Hero ============================= */

.bnb-hero {
	padding: 14px 16px 0;
}

.bnb-hero__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 22px;
	align-items: center;
	max-width: var(--maxw);
	margin: 0 auto;
	position: relative;
	padding: 26px 24px;
	border-radius: var(--r-lg);
	background:
		radial-gradient(120% 140% at 8% 0%, #f6a488 0%, transparent 55%),
		linear-gradient(105deg, #e8825f 0%, #d9604a 55%, #c94f3c 100%);
	color: #fff;
	box-shadow: var(--sh-md);
	overflow: hidden;
}

/* Kết cấu chấm mờ cho nền cam đỡ phẳng. */
.bnb-hero__inner::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px);
	background-size: 22px 22px;
	opacity: .5;
	pointer-events: none;
}

.bnb-hero__text,
.bnb-hero__media {
	position: relative;
	z-index: 1;
}

.bnb-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 10px;
	padding: 5px 12px;
	border-radius: var(--r-pill);
	background: rgba(255, 255, 255, .18);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.bnb-hero__title {
	margin: 0;
	font-size: var(--fs-3xl);
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.12;
}

.bnb-hero__subtitle {
	margin: 10px 0 0;
	font-size: var(--fs-lg);
	font-weight: 500;
	letter-spacing: .01em;
	opacity: .94;
}

.bnb-hero__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	padding: 11px 20px;
	border-radius: var(--r-pill);
	background: #fff;
	color: var(--c-red);
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
	box-shadow: var(--sh-sm);
	transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.bnb-hero__cta:hover {
	color: var(--c-red-dark);
	transform: translateY(-2px);
	box-shadow: var(--sh-md);
}

.bnb-hero__media img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: var(--r-md);
	box-shadow: 0 14px 34px rgba(0, 0, 0, .26);
}

/* Dải số liệu trong hero — lấp khoảng trống bằng thông tin thật. */

.bnb-hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	margin: 18px 0 0;
	padding-top: 15px;
	border-top: 1px solid rgba(255, 255, 255, .26);
}

.bnb-hero__stat dt {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	opacity: .82;
}

.bnb-hero__stat dd {
	margin: 4px 0 0;
	font-size: var(--fs-xl);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}

/* ============================== Nav ============================= */

.bnb-nav {
	position: sticky;
	top: 61px;
	z-index: 40;
	margin-top: 18px;
	background: var(--c-green);
	/* Bóng đậm hơn một chút: khi nội dung trôi qua bên dưới, thanh nav phải
	   đọc ra là một lớp riêng chứ không dính vào chữ. */
	box-shadow: 0 4px 14px rgba(80, 50, 20, .16);
}

.bnb-nav__inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 8px;
}

.bnb-nav__list {
	display: flex;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}

.bnb-nav__list::-webkit-scrollbar {
	display: none;
}

/*
 * Chữ HOA tiếng Việt cần xử lý riêng:
 *   - Dấu thanh nằm TRÊN chữ hoa (Ấ, Ả, Ớ, Ặ) nên cần line-height rộng hơn
 *     bình thường, không thì nhìn chật và dấu gần chạm mép trên.
 *   - letter-spacing vừa phải thôi — chữ hoa vốn đã thoáng sẵn, giãn nhiều
 *     cộng với dấu thanh sẽ thành rối.
 *   - Chữ trắng ĐẶC, không để mờ: nền xanh + chữ mờ chỉ đạt 2,62:1, dưới xa
 *     chuẩn WCAG AA 4,5:1.
 */
.bnb-nav__link {
	display: block;
	padding: 14px 16px 13px;
	border-bottom: 3px solid transparent;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: .045em;
	text-decoration: none;
	white-space: nowrap;
	transition: background .18s var(--ease), border-color .18s var(--ease);
}

.bnb-nav__link:hover,
.bnb-nav__link:focus-visible {
	background: rgba(0, 0, 0, .14);
	color: #fff;
}

.bnb-nav__link.is-active {
	border-bottom-color: #fff;
	color: #fff;
}

/* ========================== Bán chạy ========================== */

/*
 * Dải mảnh một hàng, không phải card lớn — mockup vẽ đúng như vậy, và quan
 * trọng hơn: lưới khóa học phải xuất hiện ngay dưới màn hình đầu. Bản trước
 * dựng thành card cao khiến người xem phải cuộn hai màn mới thấy khóa học.
 */
.bnb-bestseller {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 18px 0 26px;
	padding: 10px 14px 10px 10px;
	border: 1px solid var(--c-line);
	border-radius: var(--r-pill);
	background: var(--c-surface);
	box-shadow: var(--sh-sm);
	color: inherit;
	text-decoration: none;
	transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}

.bnb-bestseller:hover {
	border-color: var(--c-red);
	transform: translateY(-1px);
	box-shadow: var(--sh-md);
}

.bnb-bestseller__media {
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	overflow: hidden;
}

.bnb-bestseller__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bnb-bestseller__label {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 6px;
	padding: 5px 11px;
	border-radius: var(--r-pill);
	background: var(--c-red-soft);
	color: var(--c-red);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	white-space: nowrap;
}

.bnb-bestseller__name {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -0.01em;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bnb-bestseller__meta {
	flex: 0 0 auto;
	color: var(--c-muted);
	font-size: 13px;
}

.bnb-bestseller__go {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--c-red);
	color: #fff;
	transition: transform .2s var(--ease);
}

.bnb-bestseller:hover .bnb-bestseller__go {
	transform: translateX(3px);
}

/* ========================== Nút chung ========================== */

.bnb-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 11px 20px;
	border: 0;
	border-radius: var(--r-pill);
	font-family: var(--font);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .01em;
	text-decoration: none;
	cursor: pointer;
	transition: background .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}

.bnb-btn--primary {
	background: var(--c-red);
	color: #fff;
}

.bnb-btn--primary:hover {
	background: var(--c-red-dark);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: var(--sh-md);
}

.bnb-btn--lg {
	padding: 14px 28px;
	font-size: 15px;
}

/* =========================== Sections =========================== */

.bnb-sections {
	display: grid;
	grid-template-columns: 1fr;
	gap: 44px;
	padding-top: 28px;
}

/*
 * Nav dính ở top:61px nên khi nhảy tới neo, tiêu đề khối sẽ chui xuống dưới
 * thanh nav. scroll-margin-top đẩy điểm dừng xuống cho đủ chỗ.
 * 61px (header) + 50px (nav) + 20px thở.
 */
.bnb-section {
	scroll-margin-top: 131px;
}

.bnb-section__head {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 18px;
	padding-bottom: 11px;
	border-bottom: 2px solid var(--c-line);
}

.bnb-section__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: var(--fs-md);
	font-weight: 800;
	letter-spacing: .015em;
	text-transform: uppercase;
}

.bnb-section__title::before {
	content: "";
	flex: 0 0 auto;
	width: 4px;
	height: 18px;
	border-radius: 2px;
	background: var(--c-red);
}

.bnb-section__more {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	margin-left: auto;
	color: var(--c-muted);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: color .18s var(--ease);
}

.bnb-section__more:hover {
	color: var(--c-red);
}

/* ============================= Card ============================= */

.bnb-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.bnb-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--c-line);
	border-radius: var(--r-md);
	background: var(--c-surface);
	box-shadow: var(--sh-sm);
	overflow: hidden;
	transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}

.bnb-card:hover {
	border-color: #dfc9ab;
	transform: translateY(-3px);
	box-shadow: var(--sh-lg);
}

.bnb-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	background: #f3e9db;
	overflow: hidden;
}

.bnb-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s var(--ease);
}

.bnb-card:hover .bnb-card__img {
	transform: scale(1.06);
	filter: brightness(1.04);
}

.bnb-card__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	color: #c9b499;
}

.bnb-card__flag {
	position: absolute;
	top: 9px;
	left: 9px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 9px;
	border-radius: var(--r-pill);
	background: rgba(192, 57, 43, .95);
	color: #fff;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .03em;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.bnb-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 7px;
	padding: 12px 13px 13px;
}

/*
 * Chốt chiều cao đúng 2 dòng. Không có dòng này thì tên ngắn ("Mứt Dừa Non")
 * chỉ chiếm 1 dòng, kéo sao + số học viên + giá của thẻ đó lên cao hơn hẳn
 * hai thẻ bên cạnh — cả hàng nhìn so le.
 */
.bnb-card__title {
	margin: 0;
	min-height: calc(var(--lh-snug) * 2em);
	font-size: 15px;
	font-weight: 700;
	line-height: var(--lh-snug);
	letter-spacing: -0.005em;
}

.bnb-card__title a {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-decoration: none;
	transition: color .18s var(--ease);
}

.bnb-card__title a:hover {
	color: var(--c-red);
}

/* Khóa nào chưa có đánh giá thì hàng này vẫn giữ chỗ, để hàng giá bên dưới
   của mọi thẻ luôn nằm cùng một đường ngang. */
.bnb-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	min-height: 20px;
	gap: 4px 10px;
	color: var(--c-muted);
	font-size: 12px;
}

.bnb-card__students {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.bnb-stars {
	display: inline-flex;
	align-items: center;
	gap: 1px;
	line-height: 0;
}

.bnb-star {
	display: inline-flex;
	color: #dccfbe;
}

.bnb-star.is-full,
.bnb-star.is-half {
	color: var(--c-star);
}

.bnb-star.is-half {
	opacity: .55;
}

.bnb-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px dashed var(--c-line);
}

.bnb-card__price {
	font-size: 17px;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--c-ink);
	font-variant-numeric: tabular-nums;
}

.bnb-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 8px 14px;
	border-radius: var(--r-sm);
	background: var(--c-red);
	color: #fff;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .06em;
	text-decoration: none;
	white-space: nowrap;
	transition: background .18s var(--ease), transform .18s var(--ease);
}

.bnb-card__cta:hover {
	background: var(--c-red-dark);
	color: #fff;
	transform: translateY(-1px);
}

.bnb-card__cta.is-owned {
	background: var(--c-green);
}

.bnb-card__cta.is-owned:hover {
	background: var(--c-green-dark);
}

.bnb-card__cta.is-expired {
	background: var(--c-muted);
}

.bnb-empty {
	padding: 56px 0;
	color: var(--c-muted);
	text-align: center;
}

/* ========================= Chat nổi ========================= */

.bnb-chat-widget {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 45;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 12px 20px;
	border-radius: var(--r-pill);
	background: var(--c-red);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 8px 26px rgba(192, 57, 43, .38);
	transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.bnb-chat-widget:hover {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(192, 57, 43, .48);
}

.bnb-chat-widget__icon {
	display: inline-flex;
}

/* ========================== Trang khóa học ========================== */

.bnb-page,
.bnb-course {
	padding: 26px 0 40px;
}

.bnb-page__title,
.bnb-course__title {
	margin: 0 0 14px;
	font-size: var(--fs-2xl);
	font-weight: 800;
	letter-spacing: -0.025em;
}

.bnb-course__hero {
	display: grid;
	grid-template-columns: 1fr;
	gap: 22px;
	margin-bottom: 30px;
}

.bnb-course__media img {
	width: 100%;
	border-radius: var(--r-lg);
	box-shadow: var(--sh-md);
}

.bnb-course__students {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 6px;
	color: var(--c-muted);
	font-size: 14px;
}

.bnb-course__price {
	margin: 16px 0 20px;
	font-size: clamp(26px, 3.4vw, 34px);
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--c-red);
	font-variant-numeric: tabular-nums;
}

.bnb-course__body {
	max-width: 68ch;
	margin-bottom: 32px;
	font-size: var(--fs-md);
	line-height: 1.75;
}

.bnb-course__curriculum h2 {
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--c-line);
	font-size: 16px;
	font-weight: 800;
}

.bnb-course__chapter {
	margin: 20px 0 8px;
	color: var(--c-green-dark);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.bnb-course__lessons {
	margin: 0;
	padding-left: 20px;
	font-size: 14.5px;
	line-height: 2;
}

/* ============================ Footer ============================ */

.bnb-footer {
	margin-top: 56px;
	padding: 44px 16px 0;
	border-top: 1px solid var(--c-line);
	background: var(--c-surface);
}

.bnb-footer__inner {
	max-width: var(--maxw);
	margin: 0 auto;
}

.bnb-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
	padding-bottom: 34px;
}

.bnb-footer__col {
	min-width: 0;
}

/* --- Cột thương hiệu --- */

.bnb-footer__logo {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 12px;
}

.bnb-footer__logo-mark {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: var(--r-md);
	background: var(--c-red);
	color: #fff;
}

.bnb-footer__logo-text {
	color: var(--c-red);
	font-size: 16px;
	font-weight: 800;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.bnb-footer__about {
	max-width: 42ch;
	margin: 0 0 14px;
	color: var(--c-muted);
	font-size: 13.5px;
	line-height: 1.7;
}

.bnb-footer__stat {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	padding: 7px 13px;
	border-radius: var(--r-pill);
	background: var(--c-cream);
	color: var(--c-ink);
	font-size: 13px;
	font-weight: 600;
}

/* --- Cột link --- */

.bnb-footer__title {
	margin: 0 0 14px;
	color: var(--c-ink);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.bnb-footer__list,
.bnb-footer__contact {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bnb-footer__list li,
.bnb-footer__contact li {
	margin-bottom: 9px;
}

.bnb-footer__list a,
.bnb-footer__contact a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--c-muted);
	font-size: 13.5px;
	text-decoration: none;
	transition: color .18s var(--ease);
}

.bnb-footer__list a:hover,
.bnb-footer__contact a:hover {
	color: var(--c-red);
}

.bnb-footer__note {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 14px 0 0;
	color: var(--c-muted);
	font-size: 13px;
}

/* --- Thanh dưới cùng --- */

.bnb-footer__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 20px;
	padding: 18px 0 26px;
	border-top: 1px solid var(--c-line);
}

.bnb-footer__copy,
.bnb-footer__secure {
	margin: 0;
	color: var(--c-muted);
	font-size: 12.5px;
}

.bnb-footer__secure {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--c-green-dark);
	font-weight: 600;
}

/* =========================== Breakpoints =========================== */

@media (min-width: 720px) {
	.bnb-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.bnb-hero__inner {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
		padding: 38px 34px;
	}

	.bnb-course__hero {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
		align-items: center;
	}
}

@media (min-width: 640px) {
	.bnb-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px 28px;
	}
}

@media (min-width: 960px) {
	/* Cột thương hiệu rộng gấp rưỡi, 3 cột link còn lại đều nhau. */
	.bnb-footer__grid {
		grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
		gap: 36px;
	}
}

@media (min-width: 1080px) {
	/* Hai cột khối danh mục, đúng như mockup bố trí. */
	.bnb-sections {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 34px 32px;
	}

	.bnb-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 13px;
	}
}

@media (max-width: 600px) {
	.bnb-header__user-name {
		display: none;
	}

	/* Màn hình hẹp: giữ nút đăng nhập có chữ, nút đăng ký thu về icon. */
	.bnb-header__register span {
		display: none;
	}

	.bnb-header__register {
		padding: 8px 10px;
	}

	.bnb-nav {
		top: 59px;
	}

	.bnb-chat-widget__label {
		display: none;
	}

	.bnb-chat-widget {
		padding: 14px;
	}

	.bnb-card__footer {
		flex-wrap: wrap;
	}

	/* Dải bán chạy trên điện thoại: bỏ số học viên cho khỏi chật. */
	.bnb-bestseller__meta {
		display: none;
	}

	.bnb-bestseller__label span,
	.bnb-bestseller {
		font-size: 13.5px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}

/* Dòng nhắc dưới nút "ĐĂNG KÝ HỌC" — giải thích quy trình chốt đơn qua tin nhắn. */
.bnb-course__note {
	margin: 10px 0 0;
	max-width: 340px;
	color: var(--c-muted);
	font-size: var(--fs-sm);
	line-height: var(--lh-base);
}

/* ==========================================================================
   Ô TÌM KIẾM
   ========================================================================== */

.bnb-searchform {
	display: flex;
	align-items: center;
	gap: 0;
	border: 1.5px solid var(--c-line);
	border-radius: var(--r-pill);
	background: var(--c-surface);
	overflow: hidden;
	transition: border-color .18s var(--ease);
}

.bnb-searchform:focus-within {
	border-color: var(--c-green);
}

.bnb-searchform input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 8px 14px;
	border: 0;
	background: transparent;
	color: var(--c-ink);
	font-family: var(--font);
	font-size: var(--fs-sm);
	line-height: var(--lh-snug);
}

.bnb-searchform input[type="search"]:focus {
	outline: none;
}

.bnb-searchform input[type="search"]::placeholder {
	color: var(--c-muted);
}

.bnb-searchform__go {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: 0;
	background: var(--c-green);
	color: #fff;
	font-family: var(--font);
	font-size: var(--fs-sm);
	font-weight: 700;
	cursor: pointer;
	transition: background .18s var(--ease);
}

.bnb-searchform__go:hover {
	background: var(--c-green-dark);
}

/* Trong header: gọn, và nhường chỗ trên màn hình hẹp. */
.bnb-searchform--header {
	max-width: 300px;
	margin-left: auto;
	margin-right: 14px;
}

.bnb-searchform--big {
	max-width: 460px;
	margin-top: 14px;
}

.bnb-searchform--big input[type="search"] {
	padding: 11px 18px;
	font-size: var(--fs-base);
}

.bnb-searchform--big .bnb-searchform__go {
	padding: 11px 20px;
}

/* ==========================================================================
   TRANG DANH MỤC & KẾT QUẢ TÌM KIẾM
   ========================================================================== */

.bnb-archive {
	padding: 30px 0 56px;
}

.bnb-archive__head {
	margin-bottom: 24px;
}

.bnb-archive__title {
	margin: 0 0 6px;
	font-size: var(--fs-2xl);
	font-weight: 800;
	line-height: var(--lh-tight);
	letter-spacing: -.02em;
	color: var(--c-ink);
}

.bnb-archive__count {
	margin: 0;
	color: var(--c-muted);
	font-size: var(--fs-sm);
	font-variant-numeric: tabular-nums;
}

.bnb-archive__desc {
	margin: 10px 0 0;
	max-width: 62ch;
	color: var(--c-muted);
	line-height: var(--lh-base);
}

.bnb-sort {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 20px;
}

.bnb-sort__label {
	color: var(--c-muted);
	font-size: var(--fs-sm);
	font-weight: 600;
}

.bnb-sort__select {
	padding: 7px 12px;
	border: 1.5px solid var(--c-line);
	border-radius: var(--r-md);
	background: var(--c-surface);
	color: var(--c-ink);
	font-family: var(--font);
	font-size: var(--fs-sm);
}

.bnb-sort__select:focus {
	outline: none;
	border-color: var(--c-green);
}

/* Phân trang — dùng chung cho trang danh mục và tìm kiếm. */
.bnb-archive .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 11px;
	margin: 24px 4px 0 0;
	border: 1.5px solid var(--c-line);
	border-radius: var(--r-md);
	background: var(--c-surface);
	color: var(--c-ink);
	font-size: var(--fs-sm);
	font-weight: 600;
	text-decoration: none;
	font-variant-numeric: tabular-nums;
}

.bnb-archive a.page-numbers:hover {
	border-color: var(--c-green);
	color: var(--c-green);
}

.bnb-archive .page-numbers.current {
	background: var(--c-green);
	border-color: var(--c-green);
	color: #fff;
}

@media (max-width: 900px) {
	.bnb-searchform--header {
		display: none;
	}
}

/* ==========================================================================
   TRANG TÀI KHOẢN CỦA TÔI
   ========================================================================== */

.bnb-account {
	padding: 30px 0 60px;
}

.bnb-account__inner {
	max-width: 760px;
}

.bnb-account__title {
	margin: 0 0 20px;
	font-size: var(--fs-2xl);
	font-weight: 800;
	line-height: var(--lh-tight);
	letter-spacing: -.02em;
	color: var(--c-ink);
}

.bnb-account__msg {
	margin: 0 0 20px;
	padding: 11px 15px;
	border-left: 4px solid;
	border-radius: var(--r-sm);
	font-size: var(--fs-sm);
	line-height: var(--lh-base);
}

.bnb-account__msg--ok {
	border-color: #2f7a3d;
	background: #eef7f0;
	color: #24602f;
}

.bnb-account__msg--loi {
	border-color: var(--c-red);
	background: var(--c-red-soft);
	color: #8f261b;
}

.bnb-panel {
	margin: 0 0 22px;
	padding: 22px;
	border: 1px solid var(--c-line);
	border-radius: var(--r-lg);
	background: var(--c-surface);
}

.bnb-panel__title {
	margin: 0 0 16px;
	font-size: var(--fs-lg);
	font-weight: 700;
	color: var(--c-ink);
}

.bnb-panel__note {
	margin: -8px 0 16px;
	color: var(--c-muted);
	font-size: var(--fs-sm);
	line-height: var(--lh-base);
}

.bnb-form__row {
	margin: 0 0 14px;
}

.bnb-form__row label {
	display: block;
	margin-bottom: 5px;
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--c-ink);
}

.bnb-form__row input[type="text"],
.bnb-form__row input[type="password"],
.bnb-form__row input[type="email"] {
	width: 100%;
	max-width: 380px;
	padding: 10px 13px;
	border: 1.5px solid var(--c-line);
	border-radius: var(--r-md);
	background: var(--c-surface);
	color: var(--c-ink);
	font-family: var(--font);
	font-size: var(--fs-base);
}

.bnb-form__row input:focus {
	outline: none;
	border-color: var(--c-green);
}

.bnb-form__static {
	color: var(--c-muted);
	font-size: var(--fs-base);
	line-height: var(--lh-base);
}

/* --- Lớp học của tôi --- */

.bnb-mycourses {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bnb-mycourses__item {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 0;
	border-bottom: 1px solid var(--c-line);
}

.bnb-mycourses__item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.bnb-mycourses__name {
	font-weight: 700;
	color: var(--c-ink);
	text-decoration: none;
}

.bnb-mycourses__name:hover {
	color: var(--c-green);
}

.bnb-mycourses__meta {
	color: var(--c-muted);
	font-size: var(--fs-sm);
	font-variant-numeric: tabular-nums;
}

/* --- Thiết bị đang đăng nhập --- */

.bnb-devices {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bnb-devices__item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid var(--c-line);
}

.bnb-devices__item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.bnb-devices__badge {
	display: inline-block;
	margin-left: 7px;
	padding: 2px 9px;
	border-radius: var(--r-pill);
	background: var(--c-green);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .03em;
}

.bnb-devices__meta {
	color: var(--c-muted);
	font-size: var(--fs-sm);
}

.bnb-btn--ghost {
	border: 1.5px solid var(--c-line);
	background: transparent;
	color: var(--c-muted);
}

.bnb-btn--ghost:hover {
	border-color: var(--c-red);
	color: var(--c-red);
	background: transparent;
}

/* ==========================================================================
   CHUÔNG THÔNG BÁO (FR-J1)
   ========================================================================== */

.bnb-bell {
	position: relative;
}

.bnb-bell__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	color: var(--c-ink);
	cursor: pointer;
	list-style: none;
	transition: background .18s var(--ease);
}

/* Bỏ mũi tên mặc định của <details> trên mọi trình duyệt. */
.bnb-bell__btn::-webkit-details-marker { display: none; }
.bnb-bell__btn::marker { content: ''; }

.bnb-bell__btn:hover {
	background: var(--c-cream);
}

.bnb-bell__count {
	position: absolute;
	top: 2px;
	right: 1px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: var(--r-pill);
	background: var(--c-red);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	line-height: 17px;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.bnb-bell__panel {
	position: absolute;
	top: calc(100% + 9px);
	right: 0;
	z-index: 60;
	width: min(300px, calc(100vw - 30px));
	padding: 8px;
	border: 1px solid var(--c-line);
	border-radius: var(--r-lg);
	background: var(--c-surface);
	box-shadow: 0 12px 32px rgba(43, 33, 24, .16);
}

.bnb-bell__empty {
	margin: 0;
	padding: 12px;
	color: var(--c-muted);
	font-size: var(--fs-sm);
	text-align: center;
}

.bnb-bell__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bnb-bell__list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 11px;
	border-radius: var(--r-md);
	color: var(--c-ink);
	text-decoration: none;
	transition: background .15s var(--ease);
}

.bnb-bell__list a:hover {
	background: var(--c-cream);
}

.bnb-bell__course {
	font-size: var(--fs-sm);
	font-weight: 600;
	line-height: var(--lh-snug);
}

.bnb-bell__badge {
	flex-shrink: 0;
	padding: 2px 8px;
	border-radius: var(--r-pill);
	background: var(--c-red-soft);
	color: var(--c-red-dark);
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
}
