/* TM Hero */
.tm-hero {
	--tm-hero-bg: var(--tm-carbon);
	--tm-hero-overlay: .78;

	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 75vh;
	overflow: hidden;
	background: var(--tm-hero-bg);
	isolation: isolate;
}

.tm-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.tm-hero__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(16, 24, 32, calc(var(--tm-hero-overlay) - .1)) 0%, rgba(16, 24, 32, var(--tm-hero-overlay)) 55%, rgba(16, 24, 32, calc(var(--tm-hero-overlay) + .12)) 100%);
}

.tm-hero--left .tm-hero__bg::after {
	background: linear-gradient(90deg, rgba(16, 24, 32, calc(var(--tm-hero-overlay) + .12)) 0%, rgba(16, 24, 32, var(--tm-hero-overlay)) 50%, rgba(16, 24, 32, calc(var(--tm-hero-overlay) - .25)) 100%);
}

.tm-hero__inner {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 96px 24px;
}

.tm-hero__content {
	max-width: 760px;
}

.tm-hero--center .tm-hero__content {
	max-width: 960px;
	margin: 0 auto;
	text-align: center;
}

.tm-hero__eyebrow {
	margin-bottom: 20px;
	color: var(--tm-brass);
	letter-spacing: .28em;
}

.tm-hero__eyebrow.tm-eyebrow--pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #E4B5B5;
	letter-spacing: .16em;
}

.tm-hero__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--tm-red-bright);
	box-shadow: 0 0 0 3px rgba(227, 27, 35, .25);
}

.tm-hero__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 24px;
}

.tm-hero__badge {
	padding: 7px 14px;
	border: 1px solid rgba(144, 16, 16, .6);
	border-radius: 2px;
	background: rgba(144, 16, 16, .2);
	color: #D7A35B;
	font-family: var(--tm-font-cond);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.tm-hero__title {
	margin: 0;
	color: var(--tm-white);
	font-family: var(--tm-font-serif);
	font-size: clamp(36px, 4.6vw, 60px);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -.02em;
}

.tm-hero__title .tm-hl {
	color: #C8262C;
}

.tm-hero__title .tm-it {
	font-weight: 700;
}

.tm-hero__text {
	max-width: 640px;
	margin: 24px 0 0;
	color: #C9D1D9;
	font-size: 16px;
	line-height: 1.7;
}

.tm-hero--center .tm-hero__text {
	margin-inline: auto;
}

.tm-hero__checks {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 28px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.tm-hero__checks li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--tm-brass);
	font-family: var(--tm-font-cond);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.tm-hero__checks .tm-icon {
	width: 18px;
	height: 18px;
	color: #C8262C;
}

.tm-hero__btns {
	margin-top: 36px;
}

.tm-hero--center .tm-hero__btns {
	justify-content: center;
}

.tm-hero__link {
	margin-top: 22px;
}

/* split: Trang chủ */
.tm-hero--split {
	--tm-hero-bg: var(--tm-navy-2);

	min-height: 85vh;
}

.tm-hero--split .tm-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
	align-items: stretch;
	min-height: inherit;
	max-width: none;
	padding: 0;
}

.tm-hero--split .tm-hero__content {
	align-self: center;
	justify-self: end;
	width: 100%;
	max-width: 640px;
	padding: 96px 48px 96px 24px;
}

.tm-hero--split .tm-hero__title {
	font-size: clamp(38px, 4vw, 56px);
}

.tm-hero__media {
	position: relative;
	min-height: 100%;
}

.tm-hero__media::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	z-index: 1;
	width: 18%;
	background: linear-gradient(90deg, var(--tm-hero-bg), transparent);
	pointer-events: none;
}

/* Chip tính năng (Faucet) */
.tm-hero__chips {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	width: 100%;
	max-width: 1280px;
	margin: -40px auto 0;
	padding: 0 24px 56px;
}

.tm-hero__chip {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: var(--tm-radius);
	background: rgba(232, 238, 243, .92);
	color: var(--tm-carbon);
	font-family: var(--tm-font-serif);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .04em;
	text-decoration: none;
	text-transform: uppercase;
	backdrop-filter: blur(6px);
	transition: transform .25s var(--tm-ease), background-color .25s;
}

a.tm-hero__chip:hover {
	background: var(--tm-white);
	transform: translateY(-2px);
}

.tm-hero__chip .tm-icon-box {
	width: 32px;
	height: 32px;
	background: #FBF1F1;
	color: var(--tm-red);
}

.tm-hero__chip .tm-icon-box .tm-icon {
	width: 16px;
	height: 16px;
}

/* search: Resources */
.tm-hero--search {
	--tm-hero-bg: var(--tm-mist);

	min-height: 0;
	border-bottom: 1px solid var(--tm-line);
}

.tm-hero--search .tm-hero__inner {
	padding: 72px 24px 64px;
}

.tm-hero--search .tm-hero__content {
	margin: 0 auto;
	text-align: center;
}

.tm-hero--search .tm-hero__eyebrow {
	color: var(--tm-red);
}

.tm-hero--search .tm-hero__title {
	color: var(--tm-carbon);
	text-transform: uppercase;
	letter-spacing: 0;
	font-size: clamp(32px, 4vw, 48px);
}

.tm-hero--search .tm-hero__text {
	margin-inline: auto;
	color: var(--tm-steel);
	font-size: 15px;
}

.tm-hero__search {
	position: relative;
	display: flex;
	gap: 8px;
	max-width: 600px;
	margin: 32px auto 0;
	padding: 6px;
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-radius);
	background: var(--tm-white);
	box-shadow: var(--tm-shadow-sm);
}

.tm-hero__search:focus-within {
	border-color: var(--tm-red);
	box-shadow: 0 0 0 3px rgba(144, 16, 16, .12);
}

.tm-hero__search-icon {
	position: absolute;
	top: 50%;
	left: 20px;
	width: 18px;
	height: 18px;
	color: var(--tm-steel);
	transform: translateY(-50%);
}

.tm-hero__search input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 44px;
	padding: 0 12px 0 42px;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--tm-carbon);
	font-family: var(--tm-font);
	font-size: 15px;
	outline: none;
}

.tm-hero__search .tm-btn {
	min-height: 44px;
	padding: 10px 22px;
}

@media (max-width: 1024px) {
	.tm-hero--split .tm-hero__inner {
		grid-template-columns: 1fr;
	}

	.tm-hero--split .tm-hero__content {
		justify-self: stretch;
		max-width: none;
		padding: 72px 24px 48px;
	}

	.tm-hero__media {
		min-height: 360px;
	}

	.tm-hero__media::before {
		inset: 0 0 auto;
		width: auto;
		height: 20%;
		background: linear-gradient(180deg, var(--tm-hero-bg), transparent);
	}

	.tm-hero__chips {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.tm-hero {
		min-height: 0;
	}

	.tm-hero__inner {
		padding: 72px 20px;
	}

	.tm-hero__text {
		font-size: 15px;
	}

	.tm-hero__btns .tm-btn {
		flex: 1 1 100%;
	}

	.tm-hero__chips {
		grid-template-columns: 1fr;
		margin-top: -24px;
		padding: 0 20px 40px;
	}

	.tm-hero__media {
		min-height: 260px;
	}
}

/* Blocksy style button[type=submit] trên trang archive: giữ kiểu nút của theme */
.tm-hero .tm-hero__search button.tm-btn {
	font-family: var(--tm-font-cond);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}
