/**
 * Unlimited Flatsome — UF Section Heading (.ufl-sh)
 *
 * 100% design tokens, tự kế thừa màu Flatsome (--ufl-primary) và .dark,
 * responsive clamp() chuẩn Mobile 375px, không dùng #2563eb.
 */

.ufl-sh {
	--ufl-sh-accent: var(--ufl-primary, #446084);
	--ufl-sh-accent2: #0ea5e9;
	--ufl-sh-title-c: #0f172a;
	--ufl-sh-sub-c: #64748b;
	--ufl-sh-pill-bg: color-mix(in srgb, var(--ufl-sh-accent) 10%, #ffffff);
	--ufl-sh-pill-border: color-mix(in srgb, var(--ufl-sh-accent) 18%, transparent);
	--ufl-sh-max: 780px;
	--ufl-sh-mb: 28px;

	width: 100%;
	max-width: var(--ufl-sh-max);
	margin-top: 0;
	margin-bottom: var(--ufl-sh-mb);
	box-sizing: border-box;
}

.ufl-sh--align-center {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.ufl-sh--align-left {
	margin-left: 0;
	margin-right: auto;
	text-align: left;
}

.ufl-sh--align-right {
	margin-left: auto;
	margin-right: 0;
	text-align: right;
}

/* ==========================================================================
   Eyebrow Badge (5 biến thể: Pill / Pulse Dot / Outline / Line / Plain)
   ========================================================================== */
.ufl-sh__eyebrow-wrap {
	margin-bottom: 12px;
}

.ufl-sh__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.25;
	color: var(--ufl-sh-accent);
}

.ufl-sh__eyebrow--pill,
.ufl-sh__eyebrow--dot {
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--ufl-sh-pill-bg);
	border: 1px solid var(--ufl-sh-pill-border);
}

.ufl-sh__eyebrow--outline {
	padding: 5px 14px;
	border-radius: 999px;
	background: transparent;
	border: 1.5px solid color-mix(in srgb, var(--ufl-sh-accent) 42%, transparent);
}

.ufl-sh__eyebrow--line {
	gap: 10px;
}

.ufl-sh__eyebrow--line::before {
	content: "";
	display: inline-block;
	width: 28px;
	height: 2px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--ufl-sh-accent), var(--ufl-sh-accent2));
}

.ufl-sh--align-center .ufl-sh__eyebrow--line::after {
	content: "";
	display: inline-block;
	width: 28px;
	height: 2px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--ufl-sh-accent2), var(--ufl-sh-accent));
}

.ufl-sh__ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.ufl-sh__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ufl-sh-accent2);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ufl-sh-accent2) 24%, transparent);
	flex: 0 0 auto;
	animation: ufl-sh-pulse 2.2s ease-in-out infinite;
}

@keyframes ufl-sh-pulse {
	0%, 100% {
		box-shadow: 0 0 0 3px color-mix(in srgb, var(--ufl-sh-accent2) 24%, transparent);
	}
	50% {
		box-shadow: 0 0 0 6px color-mix(in srgb, var(--ufl-sh-accent2) 8%, transparent);
	}
}

/* ==========================================================================
   Heading Typography + Keyword Highlight
   ========================================================================== */
.ufl-sh__title {
	margin: 0 !important;
	padding: 0;
	color: var(--ufl-sh-title-c);
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.18;
	text-wrap: balance;
}

.ufl-sh--size-sm .ufl-sh__title {
	font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.ufl-sh--size-md .ufl-sh__title {
	font-size: clamp(1.5rem, 2.5vw, 2.05rem);
}

.ufl-sh--size-lg .ufl-sh__title {
	font-size: clamp(1.75rem, 3vw, 2.45rem);
}

.ufl-sh--size-xl .ufl-sh__title {
	font-size: clamp(2.05rem, 4vw, 3.1rem);
}

.ufl-sh__hl--gradient {
	background: linear-gradient(135deg, var(--ufl-sh-accent) 0%, var(--ufl-sh-accent2) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.ufl-sh__hl--color {
	color: var(--ufl-sh-accent2);
}

.ufl-sh__hl--marker {
	position: relative;
	display: inline;
	padding: 0 0.22em;
	border-radius: 6px;
	background: linear-gradient(
		180deg,
		transparent 52%,
		color-mix(in srgb, var(--ufl-sh-accent2) 26%, transparent) 52%
	);
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

.ufl-sh__hl--underline {
	text-decoration: underline;
	text-decoration-color: var(--ufl-sh-accent2);
	text-decoration-thickness: 3px;
	text-underline-offset: 6px;
}

/* ==========================================================================
   Optional Decorative Divider
   ========================================================================== */
.ufl-sh__divider {
	margin-top: 14px;
}

.ufl-sh--align-center .ufl-sh__divider {
	margin-left: auto;
	margin-right: auto;
}

.ufl-sh--align-right .ufl-sh__divider {
	margin-left: auto;
}

.ufl-sh__divider--short-bar {
	width: 52px;
	height: 4px;
	border-radius: 999px;
	background: var(--ufl-sh-accent);
}

.ufl-sh__divider--gradient-bar {
	width: 72px;
	height: 4px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--ufl-sh-accent), var(--ufl-sh-accent2));
}

.ufl-sh__divider--dots {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ufl-sh__divider--dots span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ufl-sh-accent);
}

.ufl-sh__divider--dots span:nth-child(2) {
	width: 22px;
	border-radius: 999px;
	background: var(--ufl-sh-accent2);
}

/* ==========================================================================
   Subtitle / Lead
   ========================================================================== */
.ufl-sh__sub {
	margin: 12px 0 0 !important;
	font-size: clamp(0.95rem, 1.25vw, 1.04rem);
	line-height: 1.65;
	color: var(--ufl-sh-sub-c);
	max-width: 660px;
}

.ufl-sh--align-center .ufl-sh__sub {
	margin-left: auto !important;
	margin-right: auto !important;
}

.ufl-sh--align-right .ufl-sh__sub {
	margin-left: auto !important;
}

/* ==========================================================================
   Dark Theme (theme="dark" hoặc tự kế thừa Flatsome .dark khi theme="auto")
   ========================================================================== */
.ufl-sh--theme-dark,
.dark .ufl-sh--theme-auto,
.section.dark .ufl-sh--theme-auto {
	--ufl-sh-title-c: #ffffff;
	--ufl-sh-sub-c: rgba(226, 232, 240, 0.82);
	--ufl-sh-pill-bg: rgba(255, 255, 255, 0.12);
	--ufl-sh-pill-border: rgba(255, 255, 255, 0.22);
}

.ufl-sh--theme-dark .ufl-sh__eyebrow,
.dark .ufl-sh--theme-auto .ufl-sh__eyebrow,
.section.dark .ufl-sh--theme-auto .ufl-sh__eyebrow {
	color: #f8fafc;
}

.ufl-sh--theme-dark .ufl-sh__hl--gradient,
.dark .ufl-sh--theme-auto .ufl-sh__hl--gradient,
.section.dark .ufl-sh--theme-auto .ufl-sh__hl--gradient {
	background: linear-gradient(135deg, #7dd3fc 0%, #6ee7b7 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

@media (prefers-reduced-motion: reduce) {
	.ufl-sh__dot {
		animation: none;
	}
}
