/*!
 * TKW Elements — core.css
 * Biến thiết kế + thành phần dùng chung. Mọi bộ chọn đều bắt đầu bằng .tkw-w
 * để đủ độ ưu tiên trước CSS của theme/Elementor Kit và không rò rỉ ra ngoài.
 */

:root {
	--tkw-primary: #B82132;
	--tkw-secondary: #FD3F00;
	--tkw-dark: #0B0B0B;
	--tkw-body: #EBEBEB;
	--tkw-heading: #0B0B0B;
	--tkw-text: #3A3A3A;
	--tkw-muted: #8E8E8E;
	--tkw-card: #FFFFFF;
	--tkw-line: rgba(11, 11, 11, .1);
	--tkw-container: 1320px;
	--tkw-gutter: 20px;
	--tkw-radius: 20px;
	--tkw-radius-sm: 10px;
	--tkw-ease: cubic-bezier(.22, .61, .36, 1);
	--tkw-ease-out: cubic-bezier(.16, 1, .3, 1);
	--tkw-font-head: "TKW Space Grotesk", "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--tkw-font-serif: "TKW Playfair", "Playfair Display", Georgia, "Times New Roman", serif;
	--tkw-font-body: "TKW Inter", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--tkw-section-y: clamp(72px, 8vw, 120px);
}

/* ===================== Nền tảng ===================== */
.tkw-w {
	position: relative;
	overflow-x: clip;
	font-family: var(--tkw-font-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	color: var(--tkw-text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
.tkw-w *,
.tkw-w *::before,
.tkw-w *::after { box-sizing: border-box; }
.tkw-w img { display: block; max-width: 100%; height: auto; border: 0; border-radius: 0; box-shadow: none; }
.tkw-w :where(h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd) { margin: 0; }
.tkw-w :where(ul, ol) { padding: 0; list-style: none; }
.tkw-w :where(a) { color: inherit; text-decoration: none; }
.tkw-w :where(h1, h2, h3, h4, h5, h6) {
	font-family: var(--tkw-font-head);
	color: var(--tkw-heading);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -.02em;
	text-transform: none;
}
/* Trung hòa style nút của theme / Elementor Kit. Phần nhìn thấy của nút nằm ở span bên trong;
   bộ chọn trạng thái chỉ đặt lại màu/nền (thứ theme hay đổi khi hover), không đụng kích thước. */
.tkw-w.tkw-w button {
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
	margin: 0;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-transform: none;
	text-decoration: none;
	min-height: 0;
	width: auto;
	cursor: pointer;
}
.tkw-w.tkw-w button:hover,
.tkw-w.tkw-w button:focus,
.tkw-w.tkw-w button:active {
	background: none;
	border-color: transparent;
	box-shadow: none;
	color: inherit;
	text-decoration: none;
}
.tkw-w :focus-visible { outline: 2px solid var(--tkw-primary); outline-offset: 3px; }
.tkw-w :focus:not(:focus-visible) { outline: none; }

.tkw-w .tkw-container {
	width: 100%;
	max-width: calc(var(--tkw-container) + var(--tkw-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--tkw-gutter);
}
.tkw-w .tkw-sr {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}
.tkw-w .tkw-ico { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: middle; }

/* ===================== Nhãn {01} ===================== */
.tkw-w .tkw-label {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-family: var(--tkw-font-head);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--tkw-heading);
}
.tkw-w .tkw-label__num { color: var(--tkw-primary); }
.tkw-w .tkw-label__num b { font-weight: 600; }
.tkw-w.tkw-dark .tkw-label,
.tkw-w .tkw-dark .tkw-label,
.tkw-w .tkw-label--light { color: #fff; }

/* ===================== Tiêu đề ===================== */
.tkw-w .tkw-title {
	font-family: var(--tkw-font-head);
	font-size: clamp(30px, 3.6vw, 52px);
	font-weight: 600;
	line-height: 1.14;
	letter-spacing: -.035em;
	color: var(--tkw-heading);
	margin: 0;
}
.tkw-w .tkw-serif {
	font-family: var(--tkw-font-serif);
	font-style: italic;
	font-weight: 500;
	letter-spacing: -.01em;
	color: var(--tkw-muted);
}
.tkw-w .tkw-hl { color: var(--tkw-primary); }
.tkw-w .tkw-title--upper {
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: -.045em;
	line-height: 1.06;
}
.tkw-w.tkw-dark .tkw-title,
.tkw-w .tkw-dark .tkw-title,
.tkw-w .tkw-title--light { color: #fff; }

.tkw-w .tkw-text { font-size: 16px; line-height: 1.65; color: var(--tkw-text); }
.tkw-w.tkw-dark .tkw-text,
.tkw-w .tkw-dark .tkw-text { color: rgba(255, 255, 255, .78); }

/* ===================== Nút 2 phần ===================== */
.tkw-w .tkw-btn {
	--btn-bg: var(--tkw-primary);
	--btn-fg: #fff;
	--btn-hover: var(--tkw-dark);
	--btn-h: 48px;
	display: inline-flex;
	align-items: stretch;
	gap: 3px;
	--btn-fs: 15px;
	height: var(--btn-h);
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	vertical-align: middle;
}
.tkw-w .tkw-btn__text,
.tkw-w .tkw-btn__icon {
	position: relative;
	z-index: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--btn-bg);
	color: var(--btn-fg);
	font-family: var(--tkw-font-head);
	font-size: var(--btn-fs);
	font-weight: 500;
	line-height: 1;
	border-radius: 999px;
	overflow: hidden;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -3px 8px rgba(0, 0, 0, .14);
	transition: transform .5s var(--tkw-ease-out), background-color .3s, color .3s;
}
.tkw-w .tkw-btn__text { padding: 0 24px; }
.tkw-w .tkw-btn__icon { width: var(--btn-h); font-size: 18px; }
.tkw-w .tkw-btn__text::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background: var(--btn-hover);
	transform: translateY(102%);
	transition: transform .5s var(--tkw-ease-out);
}
.tkw-w .tkw-btn__icon .tkw-ico { transition: transform .5s var(--tkw-ease-out); }
.tkw-w .tkw-btn:hover .tkw-btn__text::before,
.tkw-w .tkw-btn:focus-visible .tkw-btn__text::before { transform: translateY(0); }
.tkw-w .tkw-btn:hover .tkw-btn__icon,
.tkw-w .tkw-btn:focus-visible .tkw-btn__icon { transform: translateX(4px); }
.tkw-w .tkw-btn:hover .tkw-btn__icon .tkw-ico,
.tkw-w .tkw-btn:focus-visible .tkw-btn__icon .tkw-ico { transform: rotate(45deg); }

.tkw-w .tkw-btn--glass { --btn-bg: rgba(255, 255, 255, .12); --btn-hover: rgba(255, 255, 255, .26); }
.tkw-w .tkw-btn--glass .tkw-btn__text,
.tkw-w .tkw-btn--glass .tkw-btn__icon {
	border: 1px solid rgba(255, 255, 255, .35);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.tkw-w .tkw-btn--solo .tkw-btn__icon { display: none; }
.tkw-w .tkw-btn--dark { --btn-bg: #2a2a2a; --btn-hover: var(--tkw-primary); }
.tkw-w .tkw-btn--light { --btn-bg: #fff; --btn-fg: var(--tkw-heading); --btn-hover: #ececec; }
.tkw-w .tkw-btn--sm { --btn-h: 40px; --btn-fs: 13px; }
.tkw-w .tkw-btn--sm .tkw-btn__text { padding: 0 18px; }
.tkw-w .tkw-btn--soft { --btn-bg: #fde9eb; --btn-fg: var(--tkw-primary); --btn-hover: #fbd5da; --btn-h: 36px; --btn-fs: 13px; }
.tkw-w .tkw-btn--soft .tkw-btn__icon { display: none; }
.tkw-w .tkw-btn--soft .tkw-btn__text { padding: 0 18px; box-shadow: 0 8px 20px rgba(184, 33, 50, .16), inset 0 1px 0 #fff; }

/* ===================== Mạng xã hội ===================== */
.tkw-w .tkw-social { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tkw-w .tkw-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: inherit;
	transition: color .3s, background-color .3s, border-color .3s, transform .3s var(--tkw-ease-out);
}
.tkw-w .tkw-social svg { width: 14px; height: 14px; fill: currentColor; }
.tkw-w .tkw-social i { font-size: 14px; }
.tkw-w .tkw-social--circle a {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .22);
	color: #fff;
}
.tkw-w .tkw-social--circle a:hover,
.tkw-w .tkw-social--circle a:focus-visible { background: var(--tkw-primary); border-color: var(--tkw-primary); color: #fff; transform: translateY(-2px); }

/* ===================== Kính mờ ===================== */
.tkw-w .tkw-glass {
	background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04));
	border: 1px solid rgba(255, 255, 255, .22);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	backdrop-filter: blur(14px) saturate(140%);
	border-radius: var(--tkw-radius);
}

/* ===================== Sao & avatar ===================== */
.tkw-w .tkw-stars { display: inline-flex; gap: 2px; color: var(--tkw-primary); font-size: 14px; line-height: 1; }
.tkw-w .tkw-stars .is-off { color: #d6d6d6; }
.tkw-w .tkw-avatars { display: flex; align-items: center; }
.tkw-w .tkw-avatars > img,
.tkw-w .tkw-avatars__more {
	width: 34px;
	height: 34px;
	flex: none;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #fff;
	margin-left: -9px;
	background: #ddd;
}
.tkw-w .tkw-avatars > :first-child { margin-left: 0; }
.tkw-w .tkw-avatars__more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font: 600 12px/1 var(--tkw-font-head);
	background: var(--tkw-primary);
	color: #fff;
}

/* ===================== Marquee CSS ===================== */
.tkw-w .tkw-marquee { --speed: 30s; display: flex; overflow: hidden; -webkit-user-select: none; user-select: none; }
.tkw-w .tkw-marquee__track {
	display: flex;
	flex: none;
	min-width: 100%;
	align-items: center;
	animation: tkw-marquee var(--speed) linear infinite;
	will-change: transform;
}
.tkw-w .tkw-marquee--reverse .tkw-marquee__track { animation-direction: reverse; }
.tkw-w .tkw-marquee--pause:hover .tkw-marquee__track { animation-play-state: paused; }
@keyframes tkw-marquee {
	from { transform: translate3d(0, 0, 0); }
	to { transform: translate3d(-100%, 0, 0); }
}

/* ===================== Ảnh phủ ===================== */
.tkw-w .tkw-cover { position: relative; overflow: hidden; }
.tkw-w .tkw-cover > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

/* ===================== Chờ animation ===================== */
.tkw-js .tkw-w:not([data-tkw-static]):not(.is-ready) [data-tkw-reveal],
.tkw-js .tkw-w:not([data-tkw-static]):not(.is-ready) [data-tkw-split] { visibility: hidden; }
.tkw-w .tkw-line-mask { display: block; overflow: clip; padding-block: .06em .12em; margin-block: -.06em -.12em; }
.tkw-w [data-tkw-split] .tkw-serif { padding-right: .06em; }

/* ===================== Con trỏ "Xem" ===================== */
.tkw-cursor {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 9999;
	width: 92px;
	height: 92px;
	margin: -46px 0 0 -46px;
	border-radius: 50%;
	background: var(--tkw-primary);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
	font: 500 13px/1.2 var(--tkw-font-head);
	text-align: center;
	pointer-events: none;
	transform: scale(0);
	opacity: 0;
	transition: transform .35s var(--tkw-ease-out), opacity .35s;
	will-change: transform;
}
.tkw-cursor.is-on { transform: scale(1); opacity: 1; }

/* ===================== Editor ===================== */
.elementor-editor-active .tkw-w [data-tkw-reveal],
.elementor-editor-active .tkw-w [data-tkw-split] { visibility: visible; }

/* ===================== Giảm chuyển động ===================== */
@media (prefers-reduced-motion: reduce) {
	.tkw-w *,
	.tkw-w *::before,
	.tkw-w *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}
	.tkw-w .tkw-marquee__track { animation: none !important; }
}

@media (max-width: 767px) {
	:root { --tkw-gutter: 16px; --tkw-radius: 16px; }
	.tkw-w .tkw-btn { --btn-h: 44px; --btn-fs: 14px; }
	.tkw-w .tkw-btn__text { padding: 0 20px; }
}
