/* Header Style 16 — frontend */
.header-style-16-banner-wrap-tsol {
	position: relative;
	width: 100%;
	max-height: 450px;
	overflow: hidden;
	background: #000;
	transition: max-height .45s ease, opacity .35s ease, margin .35s ease, padding .35s ease;
}

.header-style-16-banner-wrap-tsol.is-closing-tsol {
	max-height: 0;
	opacity: 0;
	margin: 0 !important;
	padding: 0 !important;
}

.header-style-16-banner-content-tsol img {
	width: 100%;
	height: 100%;
	max-height: 450px;
	object-fit: cover;
}

.header-style-16-banner-close-tsol {
	position: absolute;
	left: 50%;
	bottom: 8px;
	transform: translateX(-50%);
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	border: none;
	cursor: pointer;
	z-index: 12;
}

.tl-h16-news-section {
	background: #fff;
	border-bottom: 1px solid #efefef;
	padding: 15px 0;
}

.tl-h16-zones {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	align-items: stretch;
}

.tl-h16-zone {
	box-sizing: border-box;
	flex: 0 0 auto;
	border-right: var(--tl-h16-col-divider, none);
	display: flex;
	align-items: center;
	min-height: 80px;
	padding: 0 12px;
}

.tl-h16-zone:last-child {
	border-right: none;
}

.tl-h16-news-slider {
	overflow: hidden;
	width: 100%;
	position: relative;
}

.tl-h16-news-slider-track {
	display: flex;
	transition: transform 0.5s ease-in-out;
	width: 100%;
}

.tl-h16-news-slide {
	flex: 0 0 100%;
	display: flex;
	box-sizing: border-box;
}

.tl-h16-news-item {
	flex: 0 0 calc(100% / var(--tl-h16-cols, 4));
	display: flex;
	padding: 0 16px;
	border-right: var(--tl-h16-item-divider, 1px solid #efefef);
	align-items: center;
	box-sizing: border-box;
}

.tl-h16-news-item:last-child {
	border-right: none;
}

.tl-h16-news-info {
	flex: 1;
	padding-right: 12px;
	min-width: 0;
}

.tl-h16-news-meta {
	font-family: var(--tl-h16-meta-font, Arial, sans-serif);
	font-size: var(--tl-h16-meta-size, 12px);
	color: var(--tl-h16-meta-color, #333);
	margin-bottom: 4px;
	font-weight: 400;
}

.tl-h16-news-meta span {
	margin-right: 8px;
}

.tl-h16-kicker {
	text-transform: uppercase;
}

.tl-h16-title {
	font-family: var(--tl-h16-title-font, "Playfair Display", serif);
	font-weight: var(--tl-h16-title-weight, bold);
	font-size: var(--tl-h16-title-size, 16px);
	color: var(--tl-h16-title-color, #c00);
	text-decoration: none;
	display: block;
	line-height: 1.35;
}

.tl-h16-title:hover {
	color: #333;
}

.tl-h16-excerpt {
	font-family: var(--tl-h16-excerpt-font, Arial, sans-serif);
	font-size: var(--tl-h16-excerpt-size, 14px);
	font-weight: var(--tl-h16-excerpt-weight, normal);
	color: var(--tl-h16-excerpt-color, #555);
	margin: 6px 0 0;
	line-height: 1.45;
}

.tl-h16-thumb {
	flex: 0 0 var(--tl-h16-thumb-size, 70px);
	width: var(--tl-h16-thumb-size, 70px);
	height: var(--tl-h16-thumb-size, 70px);
	border-radius: var(--tl-h16-thumb-radius, 50%);
	overflow: hidden;
}

.tl-h16-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tl-h16-logo-zone {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tl-h16-logo-zone .site-branding img,
.tl-h16-logo-zone img.custom-logo,
.tl-h16-logo-zone .logo-image img {
	max-height: 80px;
	max-width: 220px;
	width: auto;
	object-fit: contain;
}

.tl-h16-custom-zone {
	width: 100%;
	font-size: 14px;
	line-height: 1.5;
	color: #333;
}

.tl-h16-slider-nav {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	gap: 4px;
	z-index: 2;
}

.tl-h16-slider-nav button {
	width: 28px;
	height: 28px;
	border: 1px solid #ddd;
	background: #fff;
	border-radius: 50%;
	cursor: pointer;
	line-height: 1;
	padding: 0;
}

/*
 * Display layer — Header Style 16: menu sticky luôn trên content/sidebar/block/widget.
 * Nguyên nhân: .sidebar-column-primary z-index:1000 + header không có tầng z-index
 * → block (vd. listing-block-59) đè lên menu sticky (mặc định ~9980 trong context thấp).
 */
.site-header.header-style-16 {
	position: relative;
	z-index: 100040;
}

.site-header.header-style-16 .tl-h16-news-section,
.site-header.header-style-16 .header-style-16-bottom-bar,
.site-header.header-style-16 .bs-pinning-wrapper,
.site-header.header-style-16 .bspw-header-style-16 {
	position: relative;
}

.site-header.header-style-16 .main-menu-wrapper,
.site-header.header-style-16 .main-menu-wrapper.bs-pinning-block,
.site-header.header-style-16 .main-menu-wrapper.bs-pinning-block.pinned,
.site-header.header-style-16 .main-menu-wrapper.bs-pinning-block.unpinned,
.site-header.header-style-16 .main-menu-wrapper.bs-pinning-block.unpinned-no-transition,
.site-header.header-style-16 .bs-pinning-block.main-menu-wrapper.pinned {
	position: relative;
	z-index: 100041 !important;
}

.site-header.header-style-16 .main-menu.menu li.bsm-enter > .mega-menu,
.site-header.header-style-16 .main-menu.menu li.bsm-enter > .sub-menu,
.site-header.header-style-16 .main-menu.menu.bsm-pure li:hover > .mega-menu,
.site-header.header-style-16 .main-menu.menu.bsm-pure li:hover > .sub-menu {
	z-index: 100045 !important;
}

.site-header.header-style-16 .menu-action-buttons {
	position: relative;
	z-index: 100042;
}

.header-style-16-bottom-bar {
	position: relative;
	z-index: auto;
}

.header-style-16-bottom-bar .main-menu-wrapper .container {
	position: relative;
	padding-right: 15px;
	transition: padding-right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.h16-logo-docked .header-style-16-bottom-bar .main-menu-wrapper .container {
	padding-right: calc(var(--tl-h16-sticky-brand-w, 180px) + 24px);
}

.header-style-16-bottom-bar .main-menu-container {
	flex-grow: 1;
}

/* Ô đích đo kích thước logo trên menu sticky — không render logo thật */
.header-style-16-sticky-brand {
	position: absolute;
	right: 15px;
	top: 0;
	bottom: 0;
	width: var(--tl-h16-sticky-brand-w, 180px);
	height: 100%;
	pointer-events: none;
	visibility: hidden;
	opacity: 0;
	z-index: 0;
}

/* Logo nguồn bị ẩn khi đang morph / dock trên menu */
.tl-h16-logo-zone.is-flip-hidden {
	opacity: 0 !important;
	visibility: hidden !important;
}

/* Layer FLIP — logo trên menu sticky, dưới dropdown mega menu */
.tl-h16-logo-flip {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 100043;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform-origin: top left;
	will-change: transform, opacity, width, height;
	overflow: hidden;
}

.tl-h16-logo-flip.is-visible {
	opacity: 1;
	visibility: visible;
}

.tl-h16-logo-flip.is-interactive {
	pointer-events: auto;
}

.tl-h16-logo-flip.is-animating {
	pointer-events: none;
}

.tl-h16-logo-flip a {
	display: block;
	width: 100%;
	height: 100%;
	line-height: 0;
}

.tl-h16-logo-flip img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center right;
}

@media (max-width: 991px) {
	.tl-h16-zones {
		flex-direction: column;
	}

	.tl-h16-zone {
		width: 100% !important;
		flex: 0 0 100% !important;
		border-right: none;
		border-bottom: var(--tl-h16-col-divider, none);
		padding: 12px 0;
	}

	.tl-h16-zone:last-child {
		border-bottom: none;
	}

	.tl-h16-news-slide {
		flex-wrap: wrap;
	}

	.tl-h16-news-item {
		flex: 0 0 50%;
		margin-bottom: 12px;
	}

	.header-style-16-bottom-bar .main-menu-wrapper .container {
		padding-right: 15px;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	body.h16-logo-docked .header-style-16-bottom-bar .main-menu-wrapper .container {
		padding-right: calc(var(--tl-h16-sticky-brand-w, 140px) + 16px);
	}

	.header-style-16-sticky-brand {
		width: var(--tl-h16-sticky-brand-w, 140px);
		right: 10px;
	}

	.header-style-16-bottom-bar .main-menu-container {
		flex-grow: 0;
	}
}

@media (max-width: 767px) {
	.tl-h16-news-item {
		flex: 0 0 100%;
		border-right: none;
		border-bottom: var(--tl-h16-item-divider, 1px solid #efefef);
		padding-bottom: 12px;
	}

	.tl-h16-news-item:last-child {
		border-bottom: none;
	}
}
