/* Teamtika Child – bổ sung cho Kadence. Màu lấy từ biến --craft-* / --global-palette* (Customizer). */

:root {
	--craft-radius: 12px;
	--craft-radius-pill: 999px;
	--craft-shadow: 0 10px 30px rgba(31, 41, 51, 0.08);
}

/* Ảnh 16:9 cho danh sách bài và ảnh đại diện (Kadence dùng padding-bottom theo tỉ lệ). */
.craft-169 .post-thumbnail[class*="kadence-thumbnail-ratio-"] {
	padding-bottom: 56.25%;
}
.craft-169 .post-thumbnail-inner img,
.craft-169 .wp-block-post-featured-image img {
	object-fit: cover;
}
.craft-169 .wp-block-post-featured-image img,
.craft-ratio-16-9 img {
	aspect-ratio: 16 / 9;
	width: 100%;
	height: auto;
}

/* Nút chung theo màu thương hiệu */
.craft-btn,
.wp-block-button.is-style-craft-pill .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 12px 24px;
	border-radius: var(--craft-radius-pill);
	background: var(--craft-primary, var(--global-palette1));
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}
.craft-btn:hover,
.wp-block-button.is-style-craft-pill .wp-block-button__link:hover {
	background: var(--craft-primary-dark, var(--global-palette2));
	color: #fff;
}

/* Chữ nhỏ viết hoa phía trên tiêu đề section */
.craft-eyebrow {
	font-family: var(--craft-heading-font, inherit);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--craft-accent, var(--global-palette1));
	margin-bottom: 6px;
}

/* Thẻ nội dung (dùng trong mẫu khối) */
.craft-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: var(--craft-radius);
	overflow: hidden;
}
.craft-card-pad {
	padding: 20px;
}
.craft-placeholder {
	aspect-ratio: 16 / 9;
	background: var(--craft-light, #e8f6fd);
	border-radius: var(--craft-radius);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--craft-accent, #1a6f9c);
	font-size: 14px;
	font-weight: 600;
}

/* Chọn ngôn ngữ */
.craft-lang-list {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	align-items: center;
}
.craft-lang-list a {
	text-decoration: none;
	color: inherit;
	opacity: 0.85;
	font-size: 0.9em;
	padding: 4px 2px;
}
.craft-lang-list a.is-current {
	opacity: 1;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Liên hệ */
.craft-contact a {
	color: inherit;
	text-decoration: none;
}
.craft-contact a:hover {
	text-decoration: underline;
}
.craft-sep {
	opacity: 0.6;
	margin: 0 4px;
}

/* Văn phòng */
.craft-offices {
	display: flex;
	flex-direction: column;
	gap: 32px;
}
.craft-office-country h3 {
	margin: 0 0 12px;
}
.craft-office-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}
.craft-office {
	border: 1px solid #e5e7eb;
	border-radius: var(--craft-radius);
	padding: 20px;
	background: #fff;
}
.craft-office-img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 12px;
}
.craft-office h4 {
	margin: 0 0 6px;
	font-size: 1.05em;
}
.craft-office p {
	margin: 0 0 6px;
	font-size: 0.95em;
}

/* Đối tác cấp phép */
.craft-partner,
.craft-partner a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: inherit;
	text-decoration: none;
	font-size: 13px;
}
.craft-partner-logo {
	max-height: 36px;
	width: auto;
}

/* Dòng pháp nhân cuối trang */
.craft-legal-bar {
	background: var(--global-palette8, #f7f8fa);
	border-top: 1px solid #e5e7eb;
	color: var(--global-palette5, #4b5563);
	font-size: 13px;
	line-height: 1.6;
}
.craft-legal-inner {
	max-width: var(--global-content-width, 1200px);
	margin: 0 auto;
	padding: 14px var(--global-content-edge-padding, 24px);
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	align-items: center;
	justify-content: space-between;
}
.craft-legal-text strong {
	color: var(--global-palette4, #374151);
}

/* Nút nổi */
.craft-float {
	position: fixed;
	bottom: 24px;
	z-index: 9990;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.craft-float-right {
	right: 24px;
}
.craft-float-left {
	left: 24px;
}
.craft-float-btn {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
	transition: transform 0.15s ease;
}
.craft-float-btn:hover,
.craft-float-btn:focus-visible {
	transform: scale(1.06);
}
@media (max-width: 600px) {
	.craft-float {
		bottom: 16px;
	}
	.craft-float-right {
		right: 16px;
	}
	.craft-float-left {
		left: 16px;
	}
	.craft-float-btn {
		width: 52px;
		height: 52px;
	}
}

/* Thanh trên cùng (dùng trong khối HTML của header Kadence) */
.craft-topbar {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 24px;
	align-items: center;
	justify-content: space-between;
	font-size: 13px;
}

/* ===== Bộ chọn ngôn ngữ Polylang trong menu (1.0.3): cờ bên trái, tên bên phải ===== */
.menu-item.lang-item > a,
.lang-item a {
	display: inline-flex !important;
	flex-direction: row !important;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}
.lang-item a img {
	display: inline-block !important;
	margin: 0 !important;
	flex: none;
	width: 16px;
	height: auto;
}
.lang-item a span {
	margin: 0 !important;
}
.craft-lang-list a img {
	vertical-align: middle;
	margin-right: 6px;
}

/* ===== 1.0.4: hiển thị trên điện thoại ===== */

/* Khối toàn màn hình luôn có lề hai bên (chữ không dính mép) */
.entry-content > .wp-block-group.alignfull,
.entry-content > .wp-block-cover.alignfull {
	padding-left: max(20px, env(safe-area-inset-left));
	padding-right: max(20px, env(safe-area-inset-right));
}

/* Nút viền: bo tròn giống nút chính */
.wp-block-button.is-style-outline .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 24px;
	border-width: 2px;
	border-radius: var(--craft-radius-pill, 999px);
	font-weight: 700;
}

/* Tiêu đề hero tự co theo màn hình (cả trang đã dựng từ bản cũ) */
.craft-eyebrow + h1.wp-block-heading,
.craft-hero h1.wp-block-heading {
	font-size: clamp(34px, 7vw, 54px) !important;
	line-height: 1.12 !important;
}

@media (max-width: 767px) {
	/* Bớt khoảng trống phía trên trang chủ */
	.home .content-area {
		margin-top: 0 !important;
	}
	.home .entry-content-wrap {
		padding-top: 0 !important;
	}
	.craft-hero,
	.entry-content > .wp-block-group.alignfull:has(.craft-eyebrow + h1) {
		padding-top: 32px !important;
		padding-bottom: 40px !important;
	}
	.craft-eyebrow {
		font-size: 12px;
		letter-spacing: 0.08em;
	}
	/* Hai nút hero xếp dọc, rộng hết màn hình */
	.craft-hero .wp-block-buttons,
	.wp-block-column:has(> .craft-eyebrow) .wp-block-buttons {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}
	.craft-hero .wp-block-buttons .wp-block-button,
	.wp-block-column:has(> .craft-eyebrow) .wp-block-buttons .wp-block-button {
		width: 100%;
	}
	.craft-hero .wp-block-buttons .wp-block-button__link,
	.wp-block-column:has(> .craft-eyebrow) .wp-block-buttons .wp-block-button__link {
		width: 100%;
		box-sizing: border-box;
	}
}

/* ===== 1.0.5: bộ chọn ngôn ngữ 🌐 EN ▾ ===== */
.craft-globe {
	flex: none;
	color: var(--craft-accent, #1A6F9C);
}
.craft-lang-menu > a,
.craft-langdd > summary {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}
.craft-lang-code {
	font-weight: 600;
	letter-spacing: 0.02em;
}
.craft-lang-menu .sub-menu {
	min-width: 200px;
}
.craft-lang-option > a {
	white-space: nowrap;
}
.craft-lang-current > a,
.craft-langdd a.is-current {
	font-weight: 700;
}
.craft-lang-current > a::after,
.craft-langdd a.is-current::after {
	content: "✓";
	margin-left: auto;
	padding-left: 12px;
	color: var(--craft-primary, #D7262F);
}
.craft-lang-option > a {
	display: flex !important;
	align-items: center;
}

/* Dropdown độc lập [craft_lang_menu] */
.craft-langdd {
	position: relative;
	display: inline-block;
	font-size: 15px;
}
.craft-langdd > summary {
	list-style: none;
	cursor: pointer;
	padding: 8px 4px;
	user-select: none;
}
.craft-langdd > summary::-webkit-details-marker {
	display: none;
}
.craft-langdd-caret {
	width: 7px;
	height: 7px;
	border-right: 1.8px solid currentColor;
	border-bottom: 1.8px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	margin-left: 2px;
}
.craft-langdd > ul {
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 1000;
	min-width: 200px;
	margin: 6px 0 0;
	padding: 6px 0;
	list-style: none;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.craft-langdd-left > ul {
	right: auto;
	left: 0;
}
.craft-langdd li {
	margin: 0;
}
.craft-langdd li a {
	display: flex;
	align-items: center;
	padding: 9px 16px;
	color: #1f2933;
	text-decoration: none;
	white-space: nowrap;
}
.craft-langdd li a:hover,
.craft-langdd li a:focus-visible {
	background: #f2f6f9;
}

/* Bớt khoảng trống phía trên trang chủ trên máy tính */
.home .content-area {
	margin-top: 0 !important;
}
.home .entry-content-wrap {
	padding-top: 0 !important;
}
@media (min-width: 768px) {
	.craft-hero,
	.entry-content > .wp-block-group.alignfull:has(.craft-eyebrow + h1) {
		padding-top: 48px !important;
	}
}

/* =====================================================================
 * 1.0.6: Header & hero kiểu A
 * ================================================================== */

/* Thanh trên cùng [craft_topbar] */
.craft-topbar-a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	width: 100%;
	font-size: 13px;
	line-height: 1.3;
}
.craft-topbar-note,
.craft-topbar-links,
.craft-topbar-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.craft-topbar-links {
	gap: 22px;
	margin-left: auto;
}
.craft-topbar-a a,
.craft-topbar-a a:visited {
	color: inherit;
	text-decoration: none !important;
}
.craft-topbar-a a:hover {
	opacity: 0.8;
}
.craft-only-mobile {
	display: none !important;
}
@media (max-width: 767px) {
	.craft-only-desktop {
		display: none !important;
	}
	.craft-only-mobile {
		display: inline-flex !important;
	}
	.craft-topbar-a {
		font-size: 12px;
	}
	.craft-topbar-links {
		gap: 4px;
	}
	.craft-topbar-link {
		width: 32px;
		height: 32px;
		justify-content: center;
	}
}

/* Nút báo giá trên header [craft_quote_button] */
.craft-quote-btn,
.craft-quote-btn:visited {
	display: inline-flex;
	align-items: center;
	height: 44px;
	padding: 0 22px;
	border-radius: 999px;
	background: var(--craft-primary, #D7262F);
	color: #fff !important;
	font-family: var(--craft-heading-font, inherit);
	font-weight: 700;
	font-size: 14px;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background 0.15s ease;
}
.craft-quote-btn:hover {
	background: var(--craft-primary-dark, #9E1219);
	color: #fff !important;
}

/* Nút 🌐 EN dạng viên thuốc có viền */
.main-navigation .craft-lang-menu > a,
.craft-lang-menu > a {
	height: 40px;
	padding: 0 12px !important;
	margin: 0 4px;
	border: 1px solid #DDE3EA;
	border-radius: 999px;
	font-weight: 600;
}
.craft-lang-menu > a:hover {
	border-color: var(--craft-accent, #1A6F9C);
}
.craft-langdd > summary {
	border: 1px solid #DDE3EA;
	border-radius: 999px;
	padding: 6px 12px;
}

/* Mục menu đang xem: màu đỏ */
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
	color: var(--craft-primary, #D7262F) !important;
}

/* Kadence bọc nhãn menu trong .nav-drop-title-wrap → giữ 🌐 EN ▾ cùng một hàng */
.craft-lang-menu > a .nav-drop-title-wrap {
	display: inline-flex !important;
	flex-direction: row;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}
.craft-lang-menu > a .craft-globe {
	display: block;
}
.craft-lang-menu > a .craft-lang-code {
	line-height: 1;
}
.craft-lang-menu > a .dropdown-nav-toggle {
	position: static;
	display: inline-flex;
	align-items: center;
	margin-left: 0;
	transform: none !important;
	top: auto !important;
	height: auto;
}
.craft-lang-menu > a .dropdown-nav-toggle svg {
	top: 0 !important;
	width: 12px;
	height: 12px;
}
.mobile-navigation .craft-lang-menu .drawer-nav-drop-wrap > a {
	display: flex !important;
	align-items: center;
	gap: 8px;
}
.mobile-navigation .craft-lang-menu .craft-globe {
	color: #35A8DF;
}

/* ===== 1.0.8: nút cờ + tên ngôn ngữ kia (web 2 ngôn ngữ) ===== */
.main-navigation .craft-lang-switch > a,
.craft-lang-switch-sc {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 14px !important;
	margin: 0 4px;
	border: 1px solid #DDE3EA;
	border-radius: 999px;
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none;
	color: inherit;
}
.main-navigation .craft-lang-switch > a:hover,
.craft-lang-switch-sc:hover {
	border-color: var(--craft-accent, #1A6F9C);
}
.craft-lang-switch .nav-drop-title-wrap {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
}
.craft-flag {
	display: block;
	flex: none;
	width: 24px;
	height: 16px;
	border-radius: 3px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.craft-lang-name {
	line-height: 1;
}
.mobile-navigation .craft-lang-switch > a,
.mobile-navigation .craft-lang-switch .drawer-nav-drop-wrap > a {
	display: flex !important;
	align-items: center;
	gap: 10px;
}

/* =====================================================================
 * 1.0.7: KIỂU DÁNG KHỐI (chọn ở cột phải → "Kiểu dáng" khi sửa trang)
 * Mỗi kiểu là một class is-style-craft-*; sửa bằng chuột, không cần CSS.
 * ================================================================== */

/* ---- Nhóm: Hero trang chủ ---- */
.wp-block-group.is-style-craft-hero {
	background: #F5F9FC;
	padding: 56px max(20px, env(safe-area-inset-left)) 120px max(20px, env(safe-area-inset-right)) !important;
	margin-top: 0 !important;
}
.is-style-craft-hero > .wp-block-columns,
.is-style-craft-hero .wp-block-columns {
	gap: 56px;
	margin: 0;
	align-items: center;
}
.is-style-craft-hero .wp-block-column > * + * {
	margin-top: 20px;
}
.is-style-craft-hero h1 {
	font-size: clamp(34px, 5vw, 54px);
	line-height: 1.08;
	font-weight: 800;
}
.is-style-craft-hero h1 em {
	color: var(--craft-primary, #D7262F);
}
.is-style-craft-hero .wp-block-buttons {
	gap: 12px;
	margin-top: 28px !important;
}
.is-style-craft-hero .is-style-craft-pill .wp-block-button__link {
	min-height: 52px;
	padding: 12px 28px;
	font-size: 16px;
	box-shadow: 0 8px 20px rgba(215, 38, 47, 0.25);
}
/* Cột ảnh chưa có ảnh: hiện khung xanh nhạt 16:9 thay vì để trống */
.is-style-craft-hero .wp-block-column:not(:has(*))::before {
	content: "";
	display: block;
	aspect-ratio: 16 / 9;
	border-radius: 20px;
	background: linear-gradient(135deg, #E3F1F9, #CFE7F5);
}

/* ---- Nhóm: Section nền xanh nhạt / nền tối ---- */
.wp-block-group.is-style-craft-section-light {
	background: #F5F9FC;
	padding: 96px max(20px, env(safe-area-inset-left)) !important;
}
.wp-block-group.is-style-craft-section-dark {
	background: var(--craft-text, #1F2933);
	color: #fff;
	padding: 96px max(20px, env(safe-area-inset-left)) !important;
}
.wp-block-group.is-style-craft-section-dark :is(h1, h2, h3, h4) {
	color: #fff;
}
.wp-block-group.is-style-craft-section-dark .is-style-craft-lead {
	color: #C9D2DC;
}
.is-style-craft-section-light h2,
.is-style-craft-section-dark h2 {
	font-size: clamp(30px, 4vw, 42px);
	line-height: 1.15;
	margin: 0 0 14px;
}

/* ---- Đoạn văn: nhãn nhỏ / nhãn dạng viên / đoạn mở đầu ---- */
.is-style-craft-eyebrow,
.is-style-craft-eyebrow-pill {
	font-family: var(--craft-heading-font, inherit);
	font-weight: 700;
	font-size: 13px !important;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--craft-accent, #1A6F9C);
	margin-bottom: 10px;
}
.is-style-craft-eyebrow-pill {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	width: auto;
	padding: 6px 14px;
	border-radius: 999px;
	background: #E3F1F9;
	font-size: 12px !important;
	letter-spacing: 0.1em;
	margin-bottom: 0;
}
.is-style-craft-eyebrow-pill::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--craft-primary, #D7262F);
}
.is-style-craft-lead {
	font-size: 18px;
	line-height: 1.6;
	color: #475467;
	max-width: 620px;
}
.is-style-craft-lead.has-text-align-center {
	margin-left: auto !important;
	margin-right: auto !important;
	margin-bottom: 48px !important;
}

/* ---- Nút viền tối (có mũi tên) ---- */
.wp-block-button.is-style-craft-outline-dark .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 10px 26px;
	border: 2px solid var(--craft-text, #1F2933);
	border-radius: 999px;
	background: transparent;
	color: var(--craft-text, #1F2933);
	font-size: 16px;
	font-weight: 700;
}
.wp-block-button.is-style-craft-outline-dark .wp-block-button__link::after {
	content: "→";
	margin-left: 8px;
	transition: transform 0.15s ease;
}
.wp-block-button.is-style-craft-outline-dark .wp-block-button__link:hover {
	background: var(--craft-text, #1F2933);
	color: #fff;
}
.wp-block-button.is-style-craft-outline-dark .wp-block-button__link:hover::after {
	transform: translateX(3px);
}

/* ---- Danh sách: dòng uy tín có dấu ✓ ---- */
ul.is-style-craft-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	list-style: none;
	padding: 0;
	margin: 22px 0 0 !important;
	font-size: 14px;
	color: #475467;
}
ul.is-style-craft-trust li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}
ul.is-style-craft-trust li::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	background: var(--craft-accent, #1A6F9C);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12l3 3 5-6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12l3 3 5-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---- Ảnh 16:9 bo góc ---- */
.wp-block-image.is-style-craft-16x9 {
	margin: 0;
}
.wp-block-image.is-style-craft-16x9 img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 20px;
	box-shadow: 0 24px 48px rgba(16, 24, 40, 0.16);
	display: block;
}

/* ---- Cột: thẻ trắng (cho cả hàng cột hoặc từng cột) ---- */
.wp-block-columns.is-style-craft-cards {
	display: grid !important;
	grid-template-columns: repeat(var(--craft-cards, 4), minmax(0, 1fr));
	gap: 24px !important;
	margin: 0;
}
.wp-block-columns.is-style-craft-cards:has(> .wp-block-column:nth-child(3):last-child) {
	--craft-cards: 3;
}
.wp-block-columns.is-style-craft-cards:has(> .wp-block-column:nth-child(2):last-child) {
	--craft-cards: 2;
}
.wp-block-columns.is-style-craft-cards > .wp-block-column,
.wp-block-column.is-style-craft-card {
	margin: 0 !important;
	padding: 32px 28px;
	background: #fff;
	color: var(--craft-text, #1F2933);
	border-radius: 18px;
	box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
}
.is-style-craft-cards h3,
.is-style-craft-card h3 {
	color: var(--craft-text, #1F2933) !important;
	font-size: 19px !important;
	line-height: 1.3;
	margin: 0 0 10px;
}
.is-style-craft-cards p,
.is-style-craft-card p {
	color: #475467;
	font-size: 15px;
	line-height: 1.65;
	margin: 0;
}

/* ---- Khối Biểu tượng (craft/icon) ---- */
.craft-icon-tile {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin: 0 0 18px;
	border-radius: 14px;
	background: #FDECEC;
	color: var(--craft-primary, #D7262F);
}
.craft-icon-tile.is-tone-blue {
	background: #E3F1F9;
	color: var(--craft-accent, #1A6F9C);
}
.craft-icon-tile.is-tone-dark {
	background: #EEF1F4;
	color: var(--craft-text, #1F2933);
}
.craft-icon-tile.aligncenter {
	margin-left: auto;
	margin-right: auto;
}
.craft-icon-tile svg {
	width: 28px;
	height: 28px;
}

/* ---- Ô tìm chương trình nổi (mẫu [tbh_finder] ngay dưới hero) ---- */
.craft-finder-wrap {
	position: relative;
	z-index: 2;
	margin-top: -64px !important;
	padding-left: max(20px, env(safe-area-inset-left));
	padding-right: max(20px, env(safe-area-inset-right));
}
.craft-finder-wrap .tbhf {
	padding: 22px 24px;
	border: 0;
	border-radius: 18px;
	box-shadow: 0 18px 44px rgba(16, 24, 40, 0.12);
}
.craft-finder-wrap .tbhf__field span {
	font-family: var(--craft-heading-font, inherit);
	font-weight: 700;
	color: var(--craft-text, #1F2933);
}
.craft-finder-wrap .tbhf__field select {
	min-height: 46px;
	border-color: #DDE3EA;
	border-radius: 10px;
}
.craft-finder-wrap .tbhf__submit {
	min-height: 46px;
	border-radius: 10px;
	background: var(--craft-text, #1F2933);
	border-color: var(--craft-text, #1F2933);
	color: #fff;
	font-weight: 700;
}

/* ---- Header Kadence: thanh trên cùng trải hết chiều ngang ---- */
.site-top-header-wrap .site-top-header-inner-wrap {
	grid-template-columns: 1fr !important;
}
.site-top-header-wrap .site-header-top-section-left {
	flex: 1 1 100%;
	max-width: 100%;
}
.site-top-header-wrap .site-header-top-section-left > .site-header-item {
	flex: 1 1 auto;
	margin-right: 0;
}
.site-top-header-wrap .site-header-top-section-right {
	display: none;
}
.site-top-header-wrap :is(.header-html, .header-html-inner, .mobile-html, .mobile-html-inner) {
	width: 100%;
}
.site-top-header-wrap .craft-topbar-a {
	color: #fff;
}
.craft-topbar-note .craft-icon {
	display: none;
}
.craft-topbar-note {
	font-weight: 600;
	letter-spacing: 0.02em;
}
.site-header-main-section-right .header-button {
	min-height: 44px;
	padding: 0 22px;
	display: inline-flex;
	align-items: center;
}

/* ---- Điện thoại / máy tính bảng ---- */
@media (max-width: 1024px) {
	.wp-block-columns.is-style-craft-cards {
		--craft-cards: 2 !important;
	}
}
@media (max-width: 781px) {
	.wp-block-group.is-style-craft-hero {
		padding-top: 28px !important;
		padding-bottom: 84px !important;
	}
	.is-style-craft-hero .wp-block-columns {
		gap: 28px;
	}
	.is-style-craft-eyebrow-pill {
		font-size: 11px !important;
		letter-spacing: 0.08em;
	}
	.is-style-craft-lead {
		font-size: 16px;
	}
	.is-style-craft-hero .wp-block-buttons {
		flex-direction: column;
		align-items: stretch;
	}
	.is-style-craft-hero .wp-block-buttons .wp-block-button,
	.is-style-craft-hero .wp-block-buttons .wp-block-button__link {
		width: 100%;
		box-sizing: border-box;
		justify-content: center;
	}
	.craft-finder-wrap {
		margin-top: -56px !important;
		padding-left: 16px;
		padding-right: 16px;
	}
	.craft-finder-wrap .tbhf {
		padding: 18px;
	}
}
@media (max-width: 600px) {
	.wp-block-group.is-style-craft-section-light,
	.wp-block-group.is-style-craft-section-dark {
		padding-top: 64px !important;
		padding-bottom: 64px !important;
	}
	.wp-block-columns.is-style-craft-cards {
		--craft-cards: 1 !important;
		gap: 16px !important;
	}
}

/* Section logo khách hàng: tự ẩn khi bộ sưu tập chưa có ảnh, tự hiện khi thêm logo */
body:not(.wp-admin) .wp-block-group.craft-logos:not(:has(img)) {
	display: none;
}
