/* KS LP CTA 4 - Modern Hero with Title, Sub Title & Floating Feature Image Uploaders */

.kslp-cta4-section {
	position: relative;
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
	background-size: cover;
	background-repeat: no-repeat;
}

.kslp-cta4-bg-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	pointer-events: none;
	z-index: 1;
}

.kslp-cta4-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 2;
}

.kslp-cta4-container {
	position: relative;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	box-sizing: border-box;
}

/* 1. Logo Cover Top */
.kslp-cta4-logo-wrap {
	width: 100%;
	display: flex;
	box-sizing: border-box;
}
.kslp-cta4-logo-wrap.align-left {
	justify-content: flex-start;
}
.kslp-cta4-logo-wrap.align-center {
	justify-content: center;
}
.kslp-cta4-logo-wrap.align-right {
	justify-content: flex-end;
}
.kslp-cta4-logo-img {
	height: auto;
	object-fit: contain;
	display: block;
}

/* 2. Header Images (Title & Sub Title Image Uploaders) */
.kslp-cta4-header-images {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	box-sizing: border-box;
}

.kslp-cta4-title-img-wrap,
.kslp-cta4-subtitle-img-wrap {
	width: 100%;
	display: flex;
	box-sizing: border-box;
	border-radius: 0 !important;
}

.kslp-cta4-title-img-wrap.align-left,
.kslp-cta4-subtitle-img-wrap.align-left {
	justify-content: flex-start;
	text-align: left;
}
.kslp-cta4-title-img-wrap.align-center,
.kslp-cta4-subtitle-img-wrap.align-center {
	justify-content: center;
	text-align: center;
}
.kslp-cta4-title-img-wrap.align-right,
.kslp-cta4-subtitle-img-wrap.align-right {
	justify-content: flex-end;
	text-align: right;
}

.kslp-cta4-title-img,
.kslp-cta4-subtitle-img {
	max-width: 100%;
	height: auto;
	display: inline-block;
	object-fit: contain;
	vertical-align: middle;
	border-radius: 0 !important;
}

/* Placeholders for editor */
.kslp-cta4-img-placeholder {
	border: 2px dashed #cbd5e1;
	background-color: rgba(241, 245, 249, 0.7);
	border-radius: 12px;
	padding: 16px 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	color: #64748b;
	cursor: pointer;
	transition: all 0.2s ease;
	width: 100%;
	max-width: 380px;
	box-sizing: border-box;
}
.kslp-cta4-img-placeholder:hover {
	border-color: #085034;
	background-color: rgba(241, 245, 249, 0.95);
	color: #085034;
}
.kslp-cta4-img-placeholder .bi {
	font-size: 22px;
}

.kslp-cta4-feature-img-placeholder {
	border: 2px dashed #d4a03c;
	background-color: rgba(255, 255, 255, 0.9);
	border-radius: 10px;
	padding: 8px 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	color: #8c6508;
	font-size: 11px;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
	box-sizing: border-box;
}
.kslp-cta4-feature-img-placeholder:hover {
	border-color: #085034;
	color: #085034;
	transform: scale(1.03);
}

.kslp-cta4-btn-img-placeholder {
	border: 2px dashed #d4a03c;
	background-color: rgba(255, 255, 255, 0.95);
	border-radius: 14px;
	padding: 16px 28px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	color: #8c6508;
	cursor: pointer;
	transition: all 0.2s ease;
	width: 100%;
	max-width: 380px;
	box-sizing: border-box;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.kslp-cta4-btn-img-placeholder:hover {
	border-color: #085034;
	color: #085034;
	transform: scale(1.02);
}

/* 3. Continuous / Loop Animations */
@keyframes kslp-cta4-float {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-8px);
	}
}

@keyframes kslp-cta4-pulse {
	0%, 100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.04);
	}
}

@keyframes kslp-cta4-swing {
	0%, 100% {
		transform: rotate(0deg);
	}
	25% {
		transform: rotate(-2.5deg);
	}
	75% {
		transform: rotate(2.5deg);
	}
}

@keyframes kslp-cta4-bounce {
	0%, 20%, 50%, 80%, 100% {
		transform: translateY(0);
	}
	40% {
		transform: translateY(-8px);
	}
	60% {
		transform: translateY(-4px);
	}
}

@keyframes kslp-cta4-shine {
	0% {
		filter: brightness(1) drop-shadow(0 0 0 rgba(212, 160, 60, 0));
	}
	50% {
		filter: brightness(1.15) drop-shadow(0 4px 15px rgba(212, 160, 60, 0.45));
	}
	100% {
		filter: brightness(1) drop-shadow(0 0 0 rgba(212, 160, 60, 0));
	}
}

.kslp-cta4-loop-floating {
	animation: kslp-cta4-float 3.5s ease-in-out infinite !important;
}
.kslp-cta4-loop-pulse {
	animation: kslp-cta4-pulse 2.8s ease-in-out infinite !important;
}
.kslp-cta4-loop-swing {
	transform-origin: center top;
	animation: kslp-cta4-swing 4s ease-in-out infinite !important;
}
.kslp-cta4-loop-bounce {
	animation: kslp-cta4-bounce 2.5s ease infinite !important;
}
.kslp-cta4-loop-shine {
	animation: kslp-cta4-shine 3s ease-in-out infinite !important;
}

/* 4. Floating Features Area (Image Based - Border Radius 0px) */
.kslp-cta4-features-area {
	position: relative;
	width: 100%;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
}

.kslp-cta4-center-img-wrap {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 1;
	pointer-events: none;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	border-radius: 0 !important;
}
.kslp-cta4-center-img {
	max-width: 480px;
	width: 100%;
	height: auto;
	object-fit: contain;
	display: block;
	border-radius: 0 !important;
}

.kslp-cta4-features--floating {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: inherit;
	z-index: 2;
}

.kslp-cta4-feature-img-wrap {
	position: absolute;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	border-radius: 0 !important;
}

.kslp-cta4-feature-img-wrap.pos-left {
	top: 45%;
	left: 0;
	transform: translateY(-50%);
}
.kslp-cta4-feature-img-wrap.pos-left-top {
	top: 6%;
	left: 0;
}
.kslp-cta4-feature-img-wrap.pos-left-bottom {
	bottom: 6%;
	left: 0;
}
.kslp-cta4-feature-img-wrap.pos-right {
	top: 45%;
	right: 0;
	transform: translateY(-50%);
}
.kslp-cta4-feature-img-wrap.pos-right-top {
	top: 6%;
	right: 0;
}
.kslp-cta4-feature-img-wrap.pos-right-bottom {
	bottom: 6%;
	right: 0;
}

.kslp-cta4-feature-img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: contain;
	border-radius: 0 !important;
	filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.15));
	transition: transform 0.3s ease, filter 0.3s ease;
}
.kslp-cta4-feature-img:hover {
	transform: scale(1.06);
	filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.22));
}

/* 5. Bottom CTA Button */
.kslp-cta4-cta-wrap {
	width: 100%;
	display: flex;
	justify-content: center;
	margin-top: 30px;
	z-index: 5;
	box-sizing: border-box;
}

.kslp-cta4-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	text-decoration: none !important;
	box-shadow: 0 8px 25px rgba(7, 77, 49, 0.35);
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	box-sizing: border-box;
	text-align: center;
	max-width: 100%;
	position: relative;
	overflow: hidden;
}

.kslp-cta4-btn:hover {
	transform: translateY(-2px) scale(1.02);
	box-shadow: 0 12px 32px rgba(7, 77, 49, 0.45);
}

/* Mode Image Button */
.kslp-cta4-btn--image {
	background: transparent !important;
	border: none !important;
	padding: 0 !important;
	box-shadow: none !important;
	overflow: visible !important;
}

.kslp-cta4-btn--image:hover {
	transform: translateY(-2px) scale(1.03);
	box-shadow: none !important;
}

.kslp-cta4-btn-img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: contain;
	filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.2));
	transition: transform 0.3s ease, filter 0.3s ease;
}

.kslp-cta4-btn-img:hover {
	filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.28));
}

.kslp-cta4-btn-icon-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	flex-shrink: 0;
}

.kslp-cta4-btn-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.kslp-cta4-btn-text {
	display: block;
	letter-spacing: 0.3px;
	word-break: break-word;
}

.kslp-cta4-btn-subtext {
	display: block;
	font-size: 0.75em;
	opacity: 0.9;
	font-weight: 500;
	margin-top: 2px;
}

/* CTA Animations */
.kslp-cta4-btn.anim-pulse {
	animation: kslp-cta4-pulse 2s infinite ease-in-out;
}
.kslp-cta4-btn.anim-glow-gold {
	box-shadow: 0 0 20px rgba(212, 160, 60, 0.6), 0 8px 22px rgba(0, 0, 0, 0.2);
}
.kslp-cta4-btn.anim-glow-gold:hover {
	box-shadow: 0 0 30px rgba(212, 160, 60, 0.9), 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* Background Animations */
@keyframes kslp-cta4-kenburns {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.08) translate(-1%, -1%);
	}
	100% {
		transform: scale(1);
	}
}
.kslp-cta4-bg-anim--ken-burns {
	animation: kslp-cta4-kenburns 20s ease infinite alternate;
}

@keyframes kslp-cta4-pan-h {
	0% {
		transform: scale(1.08) translateX(-2%);
	}
	50% {
		transform: scale(1.08) translateX(2%);
	}
	100% {
		transform: scale(1.08) translateX(-2%);
	}
}
.kslp-cta4-bg-anim--pan-horizontal {
	animation: kslp-cta4-pan-h 16s ease-in-out infinite;
}

@keyframes kslp-cta4-pan-v {
	0% {
		transform: scale(1.08) translateY(-2%);
	}
	50% {
		transform: scale(1.08) translateY(2%);
	}
	100% {
		transform: scale(1.08) translateY(-2%);
	}
}
.kslp-cta4-bg-anim--pan-vertical {
	animation: kslp-cta4-pan-v 16s ease-in-out infinite;
}

/* Responsive adjustments for Smartphone / Mobile Viewports (including 360x780) */
@media (max-width: 767px) {
	.kslp-cta4-section {
		overflow-x: hidden;
	}
	.kslp-cta4-container {
		padding: 0;
	}
	.kslp-cta4-center-img {
		max-width: 160px;
	}
	.kslp-cta4-feature-img-wrap.pos-left {
		top: 45%;
		left: 0;
	}
	.kslp-cta4-feature-img-wrap.pos-left-top {
		top: 0;
		left: 0;
	}
	.kslp-cta4-feature-img-wrap.pos-left-bottom {
		bottom: 0;
		left: 0;
	}
	.kslp-cta4-feature-img-wrap.pos-right {
		top: 45%;
		right: 0;
	}
	.kslp-cta4-feature-img-wrap.pos-right-top {
		top: 0;
		right: 0;
	}
	.kslp-cta4-feature-img-wrap.pos-right-bottom {
		bottom: 0;
		right: 0;
	}
	.kslp-cta4-cta-wrap {
		margin-top: 26px;
	}
	.kslp-cta4-btn {
		width: 100%;
	}
}
