/* TM Split Media */
.tm-split {
	--tm-split-content: 50%;

	display: grid;
	grid-template-columns: minmax(0, var(--tm-split-content)) minmax(0, 1fr);
	align-items: center;
	gap: clamp(32px, 5vw, 72px);
}

.tm-split--reverse .tm-split__content {
	order: 2;
}

.tm-split--solo {
	grid-template-columns: 1fr;
}

.tm-split--solo .tm-split__aside {
	display: none;
}

.tm-split__head .tm-head__text {
	margin-top: 18px;
}

.tm-split__subtitle {
	margin: 20px 0 0;
	color: var(--tm-carbon);
	font-family: var(--tm-font-cond);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: .02em;
}

.tm-dark .tm-split__subtitle {
	color: var(--tm-white);
}

.tm-split__list {
	display: grid;
	gap: 18px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
}

.tm-split__list > li {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 16px;
	align-items: start;
}

.tm-split__item strong {
	display: block;
	color: var(--tm-carbon);
	font-family: var(--tm-font-cond);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.tm-split__item span {
	display: block;
	margin-top: 4px;
	color: var(--tm-steel);
	font-size: 13.5px;
	line-height: 1.6;
}

.tm-dark .tm-split__item strong {
	color: var(--tm-white);
}

.tm-dark .tm-split__item span {
	color: #AEB8C2;
}

/* numbered: số serif đỏ */
.tm-split__num {
	min-width: 30px;
	color: var(--tm-red);
	font-family: var(--tm-font-serif);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.1;
}

/* check (1 cột) */
.tm-split__list--check {
	gap: 10px;
}

.tm-split__list--check li {
	display: block;
	color: var(--tm-carbon);
	font-family: var(--tm-font-cond);
	font-size: 14px;
	font-weight: 600;
}

.tm-dark .tm-split__list--check li {
	color: #E2E8F0;
}

/* bullets */
.tm-split__list--bullets li {
	position: relative;
	display: block;
	padding-left: 22px;
	color: var(--tm-slate);
	font-size: 14.5px;
	line-height: 1.6;
}

.tm-split__list--bullets li::before {
	content: "";
	position: absolute;
	top: .65em;
	left: 4px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--tm-red);
}

/* check-2 */
.tm-split__list--check-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 26px 32px;
}

.tm-split__mark {
	display: inline-flex;
	color: var(--tm-red);
}

.tm-split__mark .tm-icon {
	width: 20px;
	height: 20px;
	stroke-width: 2.5;
}

/* boxed: hàng có khung + ô số */
.tm-split__list--boxed {
	gap: 12px;
}

.tm-split__list--boxed > li {
	align-items: center;
	padding: 16px 18px;
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-radius);
	background: var(--tm-white);
	box-shadow: var(--tm-shadow-sm);
	transition: border-color .25s, transform .25s var(--tm-ease);
}

.tm-split__list--boxed > li:hover {
	border-color: rgba(144, 16, 16, .35);
	transform: translateX(4px);
}

.tm-split__list--boxed .tm-split__num,
.tm-split__list--boxed-2 .tm-split__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	width: 30px;
	height: 26px;
	border: 1px solid rgba(144, 16, 16, .2);
	border-radius: var(--tm-radius-sm);
	background: #FBF1F1;
	font-family: var(--tm-font-cond);
	font-size: 12px;
}

.tm-split__list--boxed .tm-split__item strong,
.tm-split__list--boxed-2 .tm-split__item strong,
.tm-split__list--icon .tm-split__item strong {
	font-family: var(--tm-font-serif);
	font-size: 17px;
	letter-spacing: 0;
	text-transform: none;
}

/* boxed-2 */
.tm-split__list--boxed-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px 24px;
}

/* labeled: case study */
.tm-split__list--labeled {
	gap: 0;
}

.tm-split__list--labeled > li {
	display: block;
	padding: 14px 0 14px 18px;
	border-left: 2px solid var(--tm-line);
}

.tm-split__list--labeled > li + li {
	border-top: 0;
}

.tm-split__list--labeled > li:last-child {
	border-left-color: var(--tm-red);
}

.tm-split__list--labeled .tm-split__item strong {
	color: var(--tm-red);
	font-size: 12px;
	letter-spacing: .14em;
}

.tm-split__list--labeled .tm-split__item span {
	color: var(--tm-slate);
	font-size: 14.5px;
}

/* icon */
.tm-split__list--icon {
	gap: 26px;
}

.tm-split__list--icon .tm-icon-box {
	width: 40px;
	height: 40px;
}

/* Callout */
.tm-split__callout {
	margin-top: 32px;
	padding: 18px 22px;
	border-left: 3px solid var(--tm-red);
	background: rgba(144, 16, 16, .05);
}

.tm-split__callout strong {
	display: block;
	margin-bottom: 6px;
	color: var(--tm-carbon);
	font-family: var(--tm-font-serif);
	font-size: 17px;
	text-transform: uppercase;
}

.tm-split__callout p {
	margin: 0;
	color: var(--tm-slate);
	font-size: 14px;
	line-height: 1.6;
}

.tm-dark .tm-split__callout {
	background: rgba(255, 255, 255, .04);
}

.tm-dark .tm-split__callout strong {
	color: var(--tm-white);
}

.tm-dark .tm-split__callout p {
	color: #C9D1D9;
}

.tm-split__btns {
	margin-top: 36px;
}

/* Media */
.tm-split__fig {
	position: relative;
	margin: 0;
}

.tm-split__frame {
	border-radius: var(--tm-radius);
	background: var(--tm-mist);
	box-shadow: var(--tm-shadow-lg);
}

.tm-split__frame > img {
	height: 100%;
}

.tm-split__fig figcaption {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 12px;
	color: var(--tm-carbon);
	font-family: var(--tm-font-cond);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.tm-split__fig figcaption em {
	padding: 3px 8px;
	border: 1px solid var(--tm-line);
	border-radius: 2px;
	color: var(--tm-steel);
	font-family: ui-monospace, Consolas, monospace;
	font-size: 11px;
	font-style: normal;
	letter-spacing: 0;
	text-transform: none;
}

/* mosaic */
.tm-split__media--mosaic {
	display: grid;
	gap: 14px;
}

.tm-split__media--mosaic .tm-split__frame {
	aspect-ratio: 16 / 9;
}

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

.tm-split__thumbs .tm-split__frame {
	aspect-ratio: 16 / 10;
	box-shadow: var(--tm-shadow);
}

.tm-split__media--mosaic figcaption {
	position: absolute;
	right: 10px;
	bottom: 10px;
	left: 10px;
	margin: 0;
	color: var(--tm-white);
	font-size: 11px;
	text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}

.tm-split__media--mosaic figcaption span {
	padding: 4px 8px;
	border-radius: 2px;
	background: rgba(16, 24, 32, .75);
	text-shadow: none;
}

.tm-split__media--mosaic figcaption em {
	border-color: rgba(255, 255, 255, .35);
	color: rgba(255, 255, 255, .85);
}

/* certificate */
.tm-split__fig--cert {
	padding: 16px;
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-radius-lg);
	background: var(--tm-white);
	box-shadow: var(--tm-shadow-lg);
}

.tm-split__fig--cert .tm-split__frame {
	aspect-ratio: auto;
	box-shadow: none;
	background: #F1F5F9;
}

.tm-split__fig--cert .tm-split__frame > img {
	object-fit: contain;
}

.tm-split__fig--cert figcaption {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--tm-line);
}

.tm-split__fig--cert figcaption em {
	background: var(--tm-mist);
	font-family: var(--tm-font-cond);
	font-weight: 700;
}

/* slider */
.tm-split__slides {
	display: grid;
}

.tm-split__slide {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	transition: opacity .6s var(--tm-ease), visibility .6s;
}

.tm-split__slide.is-active {
	opacity: 1;
	visibility: visible;
}

.tm-split__media--slider .tm-split__frame {
	aspect-ratio: 16 / 10;
}

.tm-split__media--slider figcaption {
	justify-content: center;
	margin-top: 40px;
	font-family: var(--tm-font-cond);
	letter-spacing: .04em;
	text-transform: none;
}

.tm-split__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: -52px;
	position: relative;
}

.tm-split__dots button {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: #CBD5E1;
	cursor: pointer;
	transition: width .3s var(--tm-ease), background-color .3s;
}

.tm-split__dots button.is-active {
	width: 24px;
	background: var(--tm-red);
}

@media (max-width: 1024px) {
	.tm-split {
		grid-template-columns: 1fr;
	}

	.tm-split--reverse .tm-split__content {
		order: 0;
	}
}

@media (max-width: 767px) {
	.tm-split__list--check-2,
	.tm-split__list--boxed-2 {
		grid-template-columns: 1fr;
	}

	.tm-split__btns .tm-btn {
		flex: 1 1 100%;
	}
}
