/*============================================*/
/*       SDGI IMPACT CAROUSEL WIDGET          */
/*       Created: 2026/02/11                  */
/*       Version: 1.1.0                       */
/*============================================*/

:root {
	--impact-green-dark: #004d25;
	--impact-green-light: #fed75e;
	--impact-palm-red: #c90c0f;
}

/* Force black text on Explore button hover */
.impact-explore-btn:hover,
.impact-explore-btn:focus,
.impact-explore-btn:active {
	color: #000000 !important;
}

.impact-section-wrapper {
	width: 100%;
	margin-inline: auto;
	display: flex;
	justify-content: center;
	font-family: "Aeonik", sans-serif;
	box-sizing: border-box;
	padding-bottom: 50px;
	background: #fff;
}

.impact-section-wrapper * {
	box-sizing: border-box;
}

.impact-stage {
	display: grid;
	grid-template-columns: 1fr 1.92fr 1fr;
	gap: 30px;
	align-items: flex-start;
	position: relative;
	width: 100%;
	max-width: 1750px;
	transition: all 0.3s ease;
}

.impact-slot {
	position: relative;
	background: #000;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	width: 100%;
}

.impact-slot.side {
	height: 440px;
	opacity: 0.9;
	transition: height 0.3s;
}
.impact-slot.center {
	height: 800px;
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
	z-index: 10;
	transition: height 0.3s;
}

.impact-center-flex {
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	gap: 0;
	width: 100%;
	height: 100%;
	padding-left: 40px;
}

.impact-bg-number {
	position: relative;
	font-size: 300px;
	font-weight: 900;
	color: rgba(255, 255, 255, 0.2);
	-webkit-text-stroke: 1px #ffffff;
	z-index: 1;
	line-height: 0.7;
	padding-bottom: 28px;
	flex-shrink: 0;
	transition: font-size 0.3s;
	font-family: "Inter", sans-serif;
}

.impact-content {
	position: relative;
	z-index: 5;
	flex-grow: 1;
	padding: 0;
	display: block;
	padding-right: 40px;
	padding-bottom: 25px;
}

/* --- DESKTOP DETAIL BOX --- */
.impact-detail-box {
	background:
		url("https://staging.simedarbyoils.com/wp-content/uploads/2026/01/orange-corner.png") top
			right / auto no-repeat,
		url("https://staging.simedarbyoils.com/wp-content/uploads/2026/01/brown-corner.png") bottom
			left / auto no-repeat,
		var(--impact-palm-red);

	padding: 32px 49px;
	color: white;
	width: 100%;
	font-family: "Aeonik", sans-serif;
	position: relative;
	z-index: 2;
	border-radius: 4px;
}

.impact-detail-box h2 {
	font-size: 38px;
	margin-bottom: 10px;
	margin-top: 0;
}
.impact-detail-box p {
	margin-bottom: 40px;
}

.impact-right-group {
	grid-column: 3;
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
	height: 100%;
	justify-content: space-between;
}

.impact-nav-buttons {
	display: flex;
	gap: 15px;
	justify-content: flex-start;
	padding-left: 10px;
	padding-bottom: 25px;
}

/* --- GLOBAL BUTTON STYLES (55px Circle) --- */
.impact-nav-btn {
	width: 55px !important;
	height: 55px !important;
	min-width: 55px !important;
	max-width: 55px !important;
	padding: 0 !important;
	margin: 0 !important;

	flex-shrink: 0;
	border-radius: 50% !important;
	aspect-ratio: 1/1 !important;

	background-color: #ffffff;
	cursor: pointer;
	transition: 0.2s;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
	display: flex;
	justify-content: center;
	align-items: center;
	line-height: 1;
	outline: none !important;
	-webkit-tap-highlight-color: transparent;
}

.impact-nav-btn:active {
	transform: scale(0.95);
}

.impact-nav-btn img {
	width: 12px !important;
	height: auto !important;
	min-width: 12px !important;
	display: block !important;
	pointer-events: none;
	margin: 0 !important;
}

#impact-btn-prev {
	background-color: #ffffff !important;
	border: 1px solid #000000 !important;
}
#impact-btn-prev:hover,
#impact-btn-prev:active {
	background-color: var(--impact-green-light) !important;
	border: 1px solid var(--impact-green-light) !important;
}

#impact-btn-next {
	background-color: var(--impact-green-light) !important;
	border: 1px solid var(--impact-green-light) !important;
}
#impact-btn-next:hover {
	filter: brightness(1.05);
}

.impact-image-layer {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	will-change: transform;
	display: flex;
	align-items: flex-end;
}

.impact-image-layer::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 50%);
	z-index: 1;
}

.impact-side-text {
	padding-left: 30px;
}
.impact-side-text h3 {
	font-size: 20px;
	margin: 0;
	font-weight: 700 !important;
	color: white;
	font-family: "Aeonik";
}

.impact-explore-btn {
	background-color: var(--impact-green-light);
	color: #000;
	/*padding: 12px 24px !important;*/
	padding: 0 !important;
	border-radius: 30px;
	text-decoration: none;
	font-size: 16px;
	font-weight: bold !important;
	width: 175px;
	height: 55px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.impact-btn-icon {
	width: 20px;
	height: auto;
	display: block;
	pointer-events: none;
}

.impact-pos-center {
	transform: translateX(0);
	transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.impact-start-right {
	transform: translateX(100%);
}
.impact-start-left {
	transform: translateX(-100%);
}
.impact-end-left {
	transform: translateX(-100%) !important;
	transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.impact-end-right {
	transform: translateX(100%) !important;
	transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (max-width: 1024px) {
	.impact-stage {
		grid-template-columns: 45px 1fr 45px;
		gap: 30px;
		width: 100%;
		align-items: flex-start;
	}

	.impact-slot.center {
		height: auto !important;
		min-height: 600px;
		z-index: 20;
		box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
		overflow: hidden !important;
	}

	.impact-slot.side {
		height: 400px;
		opacity: 1;
	}
	.impact-side-text {
		display: none;
	}
	.impact-center-flex {
		padding-left: 0;
		justify-content: flex-end;
		text-align: center;
	}

	.impact-detail-box {
		width: 100%;
		padding: 50px 25px;
		flex-grow: 0;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;

		background:
			url("https://staging.simedarbyoils.com/wp-content/uploads/2026/01/orange-corner.png")
				top right / 50px no-repeat,
			url("https://staging.simedarbyoils.com/wp-content/uploads/2026/01/brown-corner.png")
				bottom left / 50px no-repeat,
			var(--impact-palm-red);
	}

	.impact-detail-box h2 {
		font-size: 24px;
		margin-bottom: 15px;
		position: relative;
		z-index: 5;
	}
	.impact-detail-box p {
		font-size: 14px;
		opacity: 0.9;
		margin: 0;
		max-width: 100%;
		margin-bottom: 20px;
	}
	.impact-content {
		padding: 0;
	}

	.impact-bg-number {
		position: absolute;
		top: 430px;
		left: 50%;
		transform: translate(-50%, -50%);
		margin: 0;
		z-index: 6;

		/* --- TYPOGRAPHY FROM DESIGN --- */
		font-family: "Inter", sans-serif; /* */
		font-weight: 700 !important; /* Bold */
		font-size: 72px; /* */
		line-height: 1.2; /* 120% */
		letter-spacing: -15px; /* */

		/* --- FILL & STROKE EFFECTS --- */
		color: rgba(255, 255, 255, 0.2); /* Fill: White 20% */
		-webkit-text-stroke: 1px #ffffff; /* Stroke: White 100%, 1px */

		paint-order: stroke fill;
	}

	.impact-right-group {
		display: contents;
	}
	#impact-slot-2 {
		grid-column: 3;
	}

	.impact-nav-buttons {
		position: absolute;
		bottom: 25px;
		left: 0;
		width: 100%;
		display: flex;
		justify-content: space-between;
		padding: 0 10px;
		z-index: 50;
		pointer-events: none;
	}

	.impact-nav-btn {
		pointer-events: auto;
	}

	.impact-nav-btn img {
		width: 18px !important;
		height: 20px !important;
		min-width: 18px !important;
	}

	#impact-btn-next {
		background: var(--impact-green-light);
	}
	.impact-explore-btn {
		margin-top: 10px;
	}
}
@media (max-width: 768px) {
	.impact-bg-number {
		top: 415px;
	}
}
