/* ==========================================================================
   1. Brands Directory Styles (Fallback & Main Template)
   ========================================================================== */

/* Typography & Colors */
.brand-alpha-container,
.brands-directory-container {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #2c3e50;
	padding: 40px 0;
}
.brand__title {
	font-size: 28px;
	font-weight: 800;
	text-align: center;
	margin-bottom: 30px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #1a252f;
}

/* Search and Filtering Options */
.brand-filter-box {
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 40px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.brand-filter-title {
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	color: #85929e;
	margin-bottom: 15px;
	letter-spacing: 1px;
}

/* Alphabet Menus */
.desktop-alphabet {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
}
.desktop-alphabet a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	font-size: 14px;
	font-weight: 700;
	color: #4d5656;
	background: #fff;
	border: 1px solid #d5dbdb;
	border-radius: 8px;
	text-decoration: none !important;
	transition: all 0.2s ease;
	cursor: pointer;
}
.desktop-alphabet a:hover,
.desktop-alphabet a.active {
	color: #fff;
	background: #db0404;
	border-color: #db0404;
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(219,4,4,0.2);
}
.desktop-alphabet a.disabled {
	color: #ccd1d1;
	background: #f2f4f4;
	border-color: #eaeded;
	cursor: default;
	pointer-events: none;
}

.alphabet {
	display: none;
}

/* Brand Grid Layout */
.brand-section-header {
	font-size: 24px;
	font-weight: 800;
	color: #db0404;
	border-bottom: 2px solid #eaeded;
	padding-bottom: 8px;
	margin-bottom: 20px;
	margin-top: 40px;
}
.brand-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 16px;
}
.brand-item {
	display: flex;
	align-items: center;
	padding: 12px 16px;
	background: #fff;
	border: 1px solid #eaeded;
	border-radius: 8px;
	text-decoration: none !important;
	transition: all 0.2s ease;
}
.brand-item:hover {
	border-color: #db0404;
	box-shadow: 0 4px 12px rgba(0,0,0,0.05);
	transform: translateY(-1px);
}
.brand-logo-wrap {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	overflow: hidden;
	background: #f8f9fa;
	border: 1px solid #f2f4f4;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 12px;
	flex-shrink: 0;
}
.brand-logo-wrap img {
	max-width: 80%;
	max-height: 80%;
	object-fit: contain;
}
.brand-name {
	font-size: 14px;
	font-weight: 600;
	color: #2c3e50;
	transition: color 0.2s ease;
}
.brand-item:hover .brand-name {
	color: #db0404;
}

/* Responsive */
@media (max-width: 767px) {
	.brand-filter-box {
		padding: 16px;
	}
	.desktop-alphabet {
		display: none;
	}
	.alphabet {
		display: flex;
		flex-wrap: wrap;
		gap: 6px;
		justify-content: center;
	}
	.alphabet a {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 32px;
		height: 32px;
		font-size: 13px;
		font-weight: 700;
		color: #4d5656;
		background: #fff;
		border: 1px solid #d5dbdb;
		border-radius: 6px;
		text-decoration: none !important;
		transition: all 0.2s ease;
	}
	.alphabet a:hover,
	.alphabet a.active {
		color: #fff;
		background: #db0404;
		border-color: #db0404;
	}
	.alphabet a.disabled {
		color: #ccd1d1;
		background: #f2f4f4;
		border-color: #eaeded;
		pointer-events: none;
	}
	.brand-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
	.brand-item {
		padding: 10px 12px;
	}
	.brand-name {
		font-size: 13px;
	}
}

/* Template Brands specific stylesheet additions */
.desktop-alphabet a:hover,
.desktop-alphabet a.active {
	background: #252525;
	color: #fff;
	border-color: #252525;
}
.desktop-alphabet a.disabled {
	opacity: 0.4;
	pointer-events: none;
	background: #e9ecef;
	border-color: #dee2e6;
}
.alphabet-scroll-wrapper {
	display: none;
}
.brand__title {
	border-bottom: 2px solid #252525;
	color: #252525;
}
.brands-section {
	display: flex;
	margin-bottom: 40px;
	border-bottom: 1px solid #e9ecef;
	padding-bottom: 30px;
	scroll-margin-top: 120px;
}
.brand-letter {
	flex: 0 0 100px;
	font-size: 36px;
	font-weight: 800;
	color: #252525;
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
}
.brand-letter span {
	background: #252525;
	color: #fff;
	width: 56px;
	height: 56px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	box-shadow: 0 4px 6px rgba(0,0,0,0.08);
}
.brands-list-wrapper {
	flex: 1;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 16px;
}
.brand-item {
	height: 150px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.brand-item:hover {
	border-color: #252525;
	transform: translateY(-3px);
	box-shadow: 0 6px 15px rgba(0,0,0,0.06);
}
.brand_logo {
	height: 65px;
	width: 100%;
}
.brand-item a.brand-name-link {
	font-weight: 700;
	color: #333;
	font-size: 14px;
	text-decoration: none;
	transition: color 0.2s ease;
	line-height: 1.3;
}
.brand-item:hover a.brand-name-link {
	color: #db0404;
}

@media (max-width: 768px) {
	.desktop-alphabet {
		display: none;
	}
	.alphabet-scroll-wrapper {
		display: block;
		margin-bottom: 25px;
	}
	.alphabet {
		display: flex;
		overflow-x: auto;
		white-space: nowrap;
		gap: 8px;
		padding: 10px 0;
		border-bottom: 1px solid #e9ecef;
		-webkit-overflow-scrolling: touch;
	}
	.alphabet::-webkit-scrollbar {
		height: 4px;
	}
	.alphabet::-webkit-scrollbar-thumb {
		background-color: #ced4da;
		border-radius: 4px;
	}
	.alphabet a {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 32px;
		height: 32px;
		padding: 0 10px;
		background: #f1f3f5;
		border: 1px solid #dee2e6;
		border-radius: 6px;
		font-weight: 700;
		color: #495057;
		text-decoration: none;
		user-select: none;
		cursor: pointer;
	}
	.alphabet a.active {
		background: #252525;
		color: #fff;
		border-color: #252525;
	}
	.alphabet a.disabled {
		opacity: 0.4;
		pointer-events: none;
	}
	.brands-list-wrapper {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
	.brands-section {
		flex-direction: column;
		gap: 15px;
		padding-bottom: 20px;
		margin-bottom: 30px;
	}
	.brand-letter {
		flex: none;
		justify-content: flex-start;
	}
	.brand-letter span {
		width: 44px;
		height: 44px;
		font-size: 20px;
		border-radius: 8px;
	}
	.brand-item {
		height: 130px;
		padding: 12px;
	}
	.brand_logo {
		height: 50px;
	}
	.brand-item a.brand-name-link {
		font-size: 13px;
	}
}

/* ==========================================================================
   2. Collections Directory Styles
   ========================================================================== */

.collections-directory-container {
	padding: 40px 0;
}
.collections-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
}
.collection-card {
	display: block;
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	height: 350px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.06);
	transition: all 0.3s ease-in-out;
	text-decoration: none !important;
}
.collection-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.collection-bg-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
.collection-bg-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
	display: block;
}
.collection-card:hover .collection-bg-img img {
	transform: scale(1.05);
}
.collection-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0) 100%);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 24px;
	z-index: 2;
}
.collection-title {
	font-size: 22px;
	font-weight: 800;
	color: #fff;
	margin: 0 0 8px 0;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}
.collection-count {
	font-size: 13px;
	font-weight: 600;
	color: rgba(255,255,255,0.8);
	text-transform: uppercase;
	letter-spacing: 1px;
}

@media (max-width: 768px) {
	.collections-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
	.collection-card {
		height: 240px;
	}
	.collection-title {
		font-size: 16px;
		margin-bottom: 4px;
	}
	.collection-count {
		font-size: 11px;
	}
	.collection-overlay {
		padding: 16px;
	}
}

/* ==========================================================================
   3. Scent Notes Directory Styles (from template-scent-notes.php)
   ========================================================================== */

.page-notehuong {
	padding: 40px 0;
	background-color: #fafbfc;
}
.title-notehuong {
	font-size: 32px;
	font-weight: 800;
	text-transform: uppercase;
	color: #111;
	text-align: center;
	margin-bottom: 8px;
}
.bread-arch {
	font-size: 13px;
	color: #8c92a0;
	margin-bottom: 30px;
}
.bread-arch a {
	color: #8c92a0;
	text-decoration: none;
}
.bread-arch a:hover {
	color: #db0404;
}

/* Collapsible Description Box */
.desc-wrapper {
	margin: 0 auto 30px auto;
	background: #fff;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.02);
	border: 1px solid #f1f3f5;
}
.desc-content-outer {
	position: relative;
	max-height: 150px;
	overflow: hidden;
	transition: max-height 0.4s ease-in-out;
}
.desc-content {
	font-size: 14px;
	line-height: 1.7;
	color: #555;
}
.desc-content p {
	margin-bottom: 15px;
}
.desc-content p:last-child {
	margin-bottom: 0;
}
.desc-content h2 {
	font-size: 18px;
	font-weight: 800;
	color: #111;
	margin-top: 20px;
	margin-bottom: 10px;
}
.desc-content h2:first-child {
	margin-top: 0;
}
.desc-content strong {
	color: #111;
}
.desc-fade-mask {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 50px;
	background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
	pointer-events: none;
	transition: opacity 0.3s ease;
}
.desc-toggle-btn {
	display: block;
	margin: 15px auto 0 auto;
	background: #252525;
	color: #fff;
	border: none;
	border-radius: 30px;
	padding: 8px 24px;
	font-weight: 700;
	font-size: 13px;
	cursor: pointer;
	text-transform: uppercase;
	transition: all 0.2s ease;
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.desc-toggle-btn:hover {
	background: #db0404;
	transform: translateY(-1px);
	box-shadow: 0 6px 15px rgba(219,4,4,0.25);
}

/* AJAX Search Box */
.note-search-wrapper {
	max-width: 450px;
	margin: 0 auto 40px auto;
	position: relative;
}
.note-search-input {
	width: 100%;
	height: 48px;
	border-radius: 30px !important;
	border: 1px solid #dee2e6 !important;
	padding: 10px 25px !important;
	font-size: 15px !important;
	box-shadow: 0 4px 15px rgba(0,0,0,0.02) !important;
	transition: all 0.25s ease;
	background: #fff;
}
.note-search-input:focus {
	border-color: #db0404 !important;
	box-shadow: 0 4px 20px rgba(219,4,4,0.08) !important;
	outline: none;
}
.note-search-results {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.1);
	border: 1px solid #e9ecef;
	margin-top: 8px;
	padding: 10px 0;
	list-style: none;
	max-height: 350px;
	overflow-y: auto;
	z-index: 999;
	display: none;
}
.note-search-results li {
	margin: 0;
}
.note-search-results a {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 10px 20px;
	text-decoration: none;
	color: #333;
	transition: background 0.2s ease;
}
.note-search-results a:hover {
	background: #f8f9fa;
	color: #db0404;
}
.search-result-img {
	width: 40px;
	height: 40px;
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid #e9ecef;
}
.search-result-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.search-result-info {
	display: flex;
	flex-direction: column;
}
.search-result-title {
	font-weight: 700;
	font-size: 14px;
}
.search-result-english {
	font-size: 11px;
	color: #8c92a0;
	font-style: italic;
}

/* Quick Links Origins Menu */
.list-nguon-goc {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0 auto 50px auto;
	padding: 0 15px;
}
.scroll-to {
	font-size: 13px;
	font-weight: 700;
	color: #495057;
	text-decoration: none;
	background: #fff;
	padding: 6px 16px;
	border-radius: 20px;
	border: 1px solid #dee2e6;
	transition: all 0.2s ease;
}
.scroll-to:hover {
	background: #db0404;
	color: #fff;
	border-color: #db0404;
	transform: translateY(-1px);
}

/* Origin Section Styles */
.origin-section {
	margin-bottom: 60px;
	background: #fff;
	border-radius: 16px;
	padding: 30px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.01);
	border: 1px solid #f1f3f5;
}
.origin-banner {
	position: relative;
	height: 200px;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 25px;
	border: 1px solid #e9ecef;
}
.origin-banner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.origin-banner-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
	padding: 20px 25px;
}
.origin-title-overlay {
	color: #fff;
	font-size: 24px;
	font-weight: 800;
	margin: 0;
	text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.origin-desc-wrapper {
	font-size: 14px;
	line-height: 1.6;
	color: #666;
	max-height: 100px;
	overflow: hidden;
	transition: max-height 0.4s ease;
}
.origin-desc-wrapper p {
	margin-bottom: 12px;
}
.origin-desc-wrapper p:last-child {
	margin-bottom: 0;
}
.origin-desc-mask {
	position: relative;
	margin-bottom: 20px;
}
.origin-desc-mask::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 35px;
	background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
	pointer-events: none;
	transition: opacity 0.3s ease;
}
.origin-desc-mask.expanded::after {
	opacity: 0;
}
.origin-toggle-desc {
	background: none;
	border: none;
	color: #db0404;
	font-weight: 700;
	font-size: 13px;
	cursor: pointer;
	padding: 0;
	text-transform: uppercase;
	display: block;
	margin: 10px auto 0 auto;
}
.origin-toggle-desc:hover {
	text-decoration: underline;
}

/* Note Cards Grid */
.list-notehuong {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 15px;
	margin-top: 30px;
}
.note-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: #fcfcfc;
	border-radius: 8px;
	border: 1px solid #f1f3f5;
	padding: 15px 10px;
	transition: all 0.25s ease-in-out;
	text-decoration: none !important;
}
.note-card:hover {
	background: #f4f4f5;
	border-color: #dee2e6;
	transform: translateY(-2px);
}
.note-icon-wrapper {
	width: 60px;
	height: 60px;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e9ecef;
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.note-icon-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}
.note-card:hover .note-icon-wrapper img {
	transform: scale(1.08);
}
.note-title-vn {
	font-size: 13px;
	font-weight: 800;
	color: #111;
	line-height: 1.3;
	margin-bottom: 2px;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	height: 34px;
}
.note-title-en {
	font-size: 11px;
	color: #8c92a0;
	font-style: italic;
	line-height: 1.2;
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	width: 100%;
}

@media (max-width: 768px) {
	.origin-section {
		padding: 20px;
	}
	.origin-banner {
		height: 140px;
	}
	.origin-title-overlay {
		font-size: 18px;
	}
	.list-notehuong {
		grid-template-columns: repeat(3, 1fr);
		gap: 10px;
	}
	.note-icon-wrapper {
		width: 50px;
		height: 50px;
	}
	.note-title-vn {
		font-size: 12px;
	}
	.note-title-en {
		font-size: 10px;
	}
	.scroll-to {
		font-size: 11px;
		padding: 5px 12px;
	}
	.page-notehuong {
		padding: 20px 0;
	}
	.title-notehuong {
		font-size: 24px;
	}
}

@media (max-width: 480px) {
	.list-notehuong {
		grid-template-columns: repeat(2, 1fr);
	}
}

.no-notes-found {
	text-align: center;
	margin-top: 20px;
	font-size: 13px;
	color: #8c92a0;
}
.no-brands-found {
	text-align: center;
	color: #7f8c8d;
}

/* ==========================================================================
   4. Scent Library Styles (from template-scents.php)
   ========================================================================== */

.page-tvm {
	padding: 40px 0;
	background-color: #fafbfc;
}
.title-tvm {
	font-size: 32px;
	font-weight: 800;
	text-transform: uppercase;
	color: #111;
	text-align: center;
	margin-bottom: 8px;
}

/* Scent Grid Cards */
.scents-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 20px;
	margin-bottom: 40px;
}
.scent-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	background: #fff;
	border-radius: 12px;
	padding: 20px 15px;
	text-align: center;
	border: 1px solid #f1f3f5;
	box-shadow: 0 4px 10px rgba(0,0,0,0.01);
	transition: all 0.25s ease-in-out;
	text-decoration: none !important;
}
.scent-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.05);
	border-color: #dee2e6;
}
.scent-icon-wrapper {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	overflow: hidden;
	margin-bottom: 12px;
	background: #f8f9fa;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #e9ecef;
}
.scent-icon-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}
.scent-card:hover .scent-icon-wrapper img {
	transform: scale(1.06);
}
.scent-title-vn {
	font-size: 15px;
	font-weight: 800;
	color: #111;
	margin-bottom: 4px;
	line-height: 1.3;
}
.scent-title-en {
	font-size: 12px;
	color: #8c92a0;
	font-style: italic;
	line-height: 1.2;
}

@media (max-width: 768px) {
	.scents-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 12px;
	}
	.scent-card {
		padding: 15px 10px;
	}
	.scent-icon-wrapper {
		width: 70px;
		height: 70px;
	}
	.scent-title-vn {
		font-size: 13px;
	}
	.scent-title-en {
		font-size: 11px;
	}
	.page-tvm {
		padding: 20px 0;
	}
	.title-tvm {
		font-size: 24px;
	}
}

@media (max-width: 480px) {
	.scents-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ==========================================================================
   5. Scent Families Library Styles (from template-scent-families.php)
   ========================================================================== */

.page-tvnh {
	padding: 40px 0;
	background-color: #fafbfc;
}
.title-tvnh {
	font-size: 32px;
	font-weight: 800;
	text-transform: uppercase;
	color: #111;
	text-align: center;
	margin-bottom: 8px;
}

/* Scent Families Lookup Table */
.families-table-title {
	font-size: 22px;
	font-weight: 800;
	color: #111;
	text-align: center;
	margin-top: 20px;
	margin-bottom: 20px;
}
.note-groups {
	margin: 0 auto 50px auto;
	overflow-x: auto;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
	box-shadow: 0 4px 15px rgba(0,0,0,0.02);
	background: #fff;
}
.note-groups table {
	width: 100%;
	border-collapse: collapse;
}
.note-groups th {
	background: #f9fafb;
	color: #111827;
	font-weight: 700;
	padding: 14px 18px;
	border-bottom: 2px solid #e5e7eb;
	text-align: left;
	font-size: 14px;
}
.note-groups td {
	padding: 14px 18px;
	border-bottom: 1px solid #e5e7eb;
	color: #374151;
	font-size: 14px;
}
.note-groups tr:hover {
	background-color: #f9fafb;
}
.note-groups tr:last-child td {
	border-bottom: none;
}

/* Scent Family Grid Cards (Horizontal Aspect Ratio) */
.families-grid-title {
	font-size: 22px;
	font-weight: 800;
	color: #111;
	text-align: center;
	margin-bottom: 30px;
}
.families-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 25px;
	margin-bottom: 50px;
}
.family-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0,0,0,0.02);
	border: 1px solid #f1f3f5;
	transition: all 0.25s ease-in-out;
	text-decoration: none !important;
	display: flex;
	flex-direction: column;
	text-align: center;
}
.family-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 25px rgba(0,0,0,0.06);
	border-color: #dee2e6;
}
.family-banner-wrapper {
	height: 110px;
	overflow: hidden;
	position: relative;
	background: #f8f9fa;
	border-bottom: 1px solid #f1f3f5;
}
.family-banner-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}
.family-card:hover .family-banner-wrapper img {
	transform: scale(1.05);
}
.family-card-body {
	padding: 18px 15px;
}
.family-title-vn {
	font-size: 16px;
	font-weight: 800;
	color: #111;
	margin-bottom: 4px;
}
.family-title-en {
	font-size: 12px;
	color: #8c92a0;
	font-style: italic;
}

@media (max-width: 990px) {
	.families-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
}

@media (max-width: 768px) {
	.page-tvnh {
		padding: 20px 0;
	}
	.title-tvnh {
		font-size: 24px;
	}
	.note-groups th, .note-groups td {
		padding: 10px 12px;
		font-size: 13px;
	}
	.families-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	}
	.family-banner-wrapper {
		height: 90px;
	}
	.family-title-vn {
		font-size: 14px;
	}
	.family-title-en {
		font-size: 11px;
	}
}

@media (max-width: 480px) {
	.families-grid {
		grid-template-columns: 1fr;
	}
	.family-banner-wrapper {
		height: 100px;
	}
}
