/* Vantorix - Toolkit for Elementor Advanced Post Title Stylesheet */

.vantorix-post-title-container {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
}

.vantorix-post-title-container.align-left {
	align-items: flex-start;
	text-align: left;
}

.vantorix-post-title-container.align-center {
	align-items: center;
	text-align: center;
}

.vantorix-post-title-container.align-right {
	align-items: flex-end;
	text-align: right;
}

.vantorix-post-title-container.align-justify {
	align-items: stretch;
	text-align: justify;
}

/* Heading Styling */
.vantorix-post-title-heading {
	margin: 0;
	padding: 0;
	line-height: 1.2;
	transition: color 0.3s ease;
	display: inline-block;
	max-width: 100%;
}

.vantorix-post-title-heading a {
	color: inherit;
	text-decoration: none;
	transition: color 0.3s ease;
}

/* 1. Gradient Effect */
.vantorix-post-title-heading.gradient-effect {
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	display: inline-block;
}

.vantorix-post-title-heading.gradient-effect a {
	background: inherit;
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* 2. Stroke Effect */
.vantorix-post-title-heading.stroke-effect {
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.vantorix-post-title-heading.stroke-effect a {
	-webkit-text-fill-color: transparent;
	color: transparent;
}

/* 3. Highlighted Text Marker */
.vantorix-title-highlight {
	position: relative;
	display: inline-block;
	z-index: 1;
}

.vantorix-title-highlight::after {
	content: '';
	position: absolute;
	bottom: 5%;
	left: 0;
	width: 100%;
	height: 35%;
	background-color: var(--es-title-highlight-color, #ffeb3b);
	z-index: -1;
	transform: rotate(-1deg);
	transform-origin: left center;
	border-radius: 4px;
}

/* Highlight Type: Sketch Underline */
.vantorix-title-highlight.sketch-underline::after {
	height: 4px;
	bottom: -2px;
	border-bottom: 3px double var(--es-title-highlight-color, #ffeb3b);
	background: none;
	transform: none;
}

/* Highlight Type: Full Background */
.vantorix-title-highlight.full-bg::after {
	height: 90%;
	bottom: 5%;
	transform: rotate(0deg);
	opacity: 0.8;
}

/* 4. Split Text styling */
.title-split-first {
	color: var(--es-title-split-first-color, inherit);
	font-weight: var(--es-title-split-first-weight, inherit);
	font-style: var(--es-title-split-first-style, inherit);
}

.title-split-second {
	color: var(--es-title-split-second-color, inherit);
	font-weight: var(--es-title-split-second-weight, inherit);
	font-style: var(--es-title-split-second-style, inherit);
}

/* 5. Animated Underline */
.vantorix-post-title-heading.underline-effect {
	position: relative;
	padding-bottom: 4px;
}

.vantorix-post-title-heading.underline-effect::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: var(--es-title-underline-height, 2px);
	background-color: var(--es-title-underline-color, currentColor);
	transition: width 0.3s ease, left 0.3s ease;
}

.vantorix-post-title-heading.underline-effect.underline-left::after {
	left: 0;
}

.vantorix-post-title-heading.underline-effect.underline-right::after {
	left: auto;
	right: 0;
}

.vantorix-post-title-container:hover .vantorix-post-title-heading.underline-effect::after {
	width: 100%;
}

.vantorix-post-title-container:hover .vantorix-post-title-heading.underline-effect.underline-left::after {
	left: 0;
}

.vantorix-post-title-container:hover .vantorix-post-title-heading.underline-effect.underline-right::after {
	right: 0;
}

/* 6. Background Highlight Box */
.vantorix-post-title-heading.bg-highlight-effect {
	background-color: var(--es-title-box-bg-color, rgba(0,0,0,0.05));
	padding: var(--es-title-box-padding, 10px 20px);
	border-radius: var(--es-title-box-border-radius, 4px);
	display: inline-block;
}

/* Title Decorators (Before/After) */
.vantorix-post-title-meta-before,
.vantorix-post-title-meta-after {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.85em;
	opacity: 0.85;
}

.vantorix-post-title-meta-before {
	margin-bottom: 8px;
}

.vantorix-post-title-meta-after {
	margin-top: 8px;
}

/* Badge Decoration */
.vantorix-post-title-badge {
	display: inline-flex;
	align-items: center;
	font-size: 0.6em;
	font-weight: 700;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 20px;
	background-color: var(--es-title-badge-bg-color, #e91e63);
	color: var(--es-title-badge-text-color, #ffffff);
	margin-left: 8px;
	vertical-align: middle;
}

/* Separator Element */
.vantorix-post-title-separator {
	width: var(--es-title-sep-width, 50px);
	height: var(--es-title-sep-height, 3px);
	background-color: var(--es-title-sep-color, #e0e0e0);
	margin-top: 12px;
	border-radius: 2px;
}

.vantorix-post-title-container.align-center .vantorix-post-title-separator {
	margin-left: auto;
	margin-right: auto;
}

.vantorix-post-title-container.align-right .vantorix-post-title-separator {
	margin-left: auto;
}

/* Reveal Scroll Animations */
.vantorix-reveal-fade {
	opacity: 0;
	animation: esFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.vantorix-reveal-slide {
	opacity: 0;
	transform: translateY(20px);
	animation: esSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Split character reveal */
.reveal-word {
	display: inline-block;
	white-space: nowrap;
}

.reveal-char {
	display: inline-block;
	opacity: 0;
	transform: translateY(15px) rotate(5deg);
	animation: esRevealCharAnim 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Keyframes */
@keyframes esFadeIn {
	to {
		opacity: 1;
	}
}

@keyframes esSlideIn {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes esRevealCharAnim {
	to {
		opacity: 1;
		transform: translateY(0) rotate(0deg);
	}
}
