/*============================================*/
/*       SDGI CIRCULAR CAROUSEL WIDGET        */
/*       Created: 2026/01/16                  */
/*       Version: 1.0.0                       */
/*============================================*/

:root {
	--cert-green-light: #fed75e;
	--cert-card-bg: #f2f2f2;
	--cert-text-color: #333;
}

.cert-section-wrapper {
	max-width: 1400px;
	display: flex;
	justify-content: center;
	font-family: "Aeonik", sans-serif;
	box-sizing: border-box;
	padding: 60px 0;
	margin-inline: auto;
}

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

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

.cert-slot {
	position: relative;
	background: transparent;
	overflow: hidden;
	width: 100%;
	display: block;
}

.cert-slot.side {
	height: 260px;
	opacity: 1;
	transition: all 0.3s;
}
.cert-slot.center {
	height: 530px;
	z-index: 10;
	transition: height 0.3s;
	/* overflow: visible; */
}

.cert-content-layer {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	will-change: transform;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	transform-style: preserve-3d;
}

.cert-gray-card {
	background-color: var(--cert-card-bg);
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 40px;
	position: relative;
	overflow: hidden;
	flex-shrink: 0;
	border-radius: 20px;
}

.cert-slot.side .cert-gray-card {
	height: 100%;
}
.cert-slot.center .cert-gray-card {
	height: 350px;
}

.cert-gray-card img {
	max-width: 80%;
	max-height: 80%;
	object-fit: contain;
	display: block;
}

.cert-info-content {
	text-align: center;
	padding-top: 24px;
	color: var(--cert-text-color);
	width: 100%;
	opacity: 0;
	animation: certFadeIn 0.6s forwards 0.2s;
}

.cert-info-content h3 {
	font-family: "Aeonik", sans-serif;
	font-size: 38px;
	font-weight: 800;
	margin: 0 0 10px 0;
	color: #222;
	word-break: break-word;
}

.cert-info-content p {
	font-family: "Aeonik", sans-serif;
	font-size: 14px;
	line-height: 1.2;
	color: #22282b;
	margin: 0 auto;
	max-width: 600px;
}

@keyframes certFadeIn {
	to {
		opacity: 1;
	}
}

.cert-right-group {
	grid-column: 3;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 30px;
	width: 100%;
	height: 100%;
	position: relative;
}

.cert-nav-buttons {
	display: flex;
	gap: 20px;
	justify-content: flex-start;
	margin-top: 0;
}

/* --- FIXED BUTTON STYLES --- */
.cert-nav-btn {
	width: 56px !important;
	height: 56px !important;
	padding: 0 !important;

	flex-shrink: 0;
	border-radius: 50% !important;
	background-color: #ffffff;
	cursor: pointer;
	transition: 0.2s;
	display: flex;
	justify-content: center;
	align-items: center;
	line-height: 1;

	/* FIX: Remove Blue Focus Border */
	outline: none !important;
	-webkit-tap-highlight-color: transparent; /* Removes flash on mobile */
}

.cert-nav-btn:focus {
	outline: none !important; /* Double ensures no focus ring */
}

.cert-nav-btn:active {
	/* transform: scale(0.95); */
}

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

/* LEFT BUTTON (PREVIOUS) - White Default, Yellow on Interaction */
#cert-btn-prev, #cert-btn-next {
	background-color: #ffffff !important;
	border: 1px solid #000000;
}

/* Turn Yellow on Hover AND Click (Active) */
#cert-btn-prev:hover, #cert-btn-next:hover {
	background-color: var(--cert-green-light) !important;
	border: 1px solid var(--cert-green-light) !important;
}

/* RIGHT BUTTON (NEXT) - Gold with Gold Border */
/* #cert-btn-next {
	background-color: var(--cert-green-light) !important;
	border: 1px solid var(--cert-green-light);
} */

#cert-btn-next:hover {
	/* filter: brightness(1.05); */
}

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

@media (max-width: 1024px) {
	.cert-stage {
		grid-template-columns: 65px 1fr 65px;
		gap: 50px;
		padding: 0;
		align-items: flex-start;
		height: auto;
	}
	.cert-slot.side {
		height: 180px;
		overflow: hidden;
		display: block;
		opacity: 1;
	}
	.cert-slot.side .cert-gray-card {
		height: 100%;
		margin-top: 0;
	}
	.cert-slot.center {
		display: grid;
		grid-template-columns: 1fr;
		grid-template-rows: 1fr;
		overflow: hidden;
		height: auto;
		min-height: 450px;
		padding-bottom: 0;
		z-index: 20;
	}
	.cert-slot.center .cert-gray-card {
		padding: 30px;
		box-shadow: none;
		height: 250px;
	}
	.cert-content-layer {
		grid-row: 1;
		grid-column: 1;
		position: relative;
		width: 100%;
		justify-content: flex-start;
		will-change: transform;
	}
	.cert-info-content {
		position: relative;
		padding-bottom: 0px;
		padding-top: 20px;
	}
	.cert-info-content h3 {
		font-size: 24px;
		margin-top: 0;
	}
	.cert-info-content p {
		font-size: 14px;
		padding: 0 10px;
	}
	.cert-right-group {
		display: contents;
	}
	#cert-slot-2 {
		grid-column: 3;
		border-top-left-radius: 20px;
		border-bottom-left-radius: 20px;
	}
	.cert-nav-buttons {
		position: absolute;
		top: 230px;
		left: 0;
		width: 100%;
		margin: 0;
		padding: 0 10px;
		justify-content: space-between;
		z-index: 50;
		pointer-events: none;
	}

	#cert-slot-0 {
		border-top-right-radius: 20px;
		border-bottom-right-radius: 20px;
	}
	.cert-nav-btn {
		pointer-events: auto;
		width: 48px !important;
		height: 48px !important;
		border: none;
		background: white;
	}
}
@media (max-width: 768px) {
	.cert-stage {
		grid-template-columns: 50px 1fr 50px;
	}
}