/* =====================================================
   CERTIFICATIONS SLIDER
   ===================================================== */

.cert-section {
	padding: 30px 0;
}

.cert-section--bg-white {
	background: #fff;
}

.cert-slider__heading {
	text-align: center;
	font-size: 28px;
	font-weight: 700;
	color: #222;
	margin: 0 0 10px;
	line-height: 1.3;
}

.cert-slider__heading-accent {
	color: #24317C;
	font-weight: 800;
}

.cert-slider-wrapper {
	max-width: 1140px;
	margin: 0 auto;
	padding: 20px 50px;
	position: relative;
	opacity: 0;
	transition: opacity 0.3s ease;

	&[data-swiper-init="true"],
	&.no-slider-init {
		opacity: 1;
	}

	.cert-slider {
		overflow: hidden;
		position: relative;
	}

	/* Arrows – children of wrapper, outside overflow:hidden */
	.cert-slider-button-prev,
	.cert-slider-button-next {
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		z-index: 10;
		cursor: pointer;
		display: flex;
		align-items: center;
		justify-content: center;
		color: #24317c;
		width: 36px;
		height: 36px;
		background: rgba(255, 255, 255, 0.85);
		border-radius: 50%;
		backdrop-filter: blur(4px);
		transition: background 0.25s ease, transform 0.2s ease;

		&::after {
			font-family: swiper-icons;
			font-size: 13px;
			font-weight: 700;
		}

		&:hover {
			background: rgba(255, 255, 255, 1);
			transform: translateY(-50%) scale(1.08);
		}
	}

	.cert-slider-button-prev {
		left: 4px;

		&::after {
			content: 'prev';
		}
	}

	.cert-slider-button-next {
		right: 4px;

		&::after {
			content: 'next';
		}
	}

	.swiper-wrapper.no-swiper {
		display: flex;
		flex-wrap: nowrap;
		justify-content: center;
		gap: 20px;
		transform: none !important;

		.swiper-slide {
			flex: 0 0 auto;
			max-width: 120px;
		}
	}

	.cert-slide {
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 0;

		.cert-slide__image {
			width: 100%;
			max-width: 120px;
			aspect-ratio: 1 / 1;
			display: flex;
			align-items: center;
			justify-content: center;

			img {
				max-width: 100%;
				max-height: 100%;
				object-fit: contain;
				display: block;
			}
		}
	}

	/* Elementor editor */
	.elementor-editor-active & {
		opacity: 1 !important;
		min-height: 100px;

		.swiper-wrapper {
			display: flex;
			flex-wrap: nowrap;
			gap: 20px;
			overflow: hidden;
		}

		.swiper-slide {
			flex: 0 0 auto;
			width: calc((100% - 100px) / 6);
			min-width: 0;
		}

		.cert-slider-button-prev,
		.cert-slider-button-next {
			display: flex;
		}
	}
}

.cert-slider__caption {
	text-align: center;
	font-size: 15px;
	color: #666;
	margin: 10px 0 0;
	line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
	.cert-slider__heading {
		font-size: 22px;
	}

	.cert-slider-wrapper {
		padding: 15px 44px;

		.cert-slider-button-prev,
		.cert-slider-button-next {
			width: 30px;
			height: 30px;

			&::after {
				font-size: 11px;
			}
		}

		.cert-slide .cert-slide__image {
			max-width: 90px;
		}
	}

	.cert-slider__caption {
		font-size: 13px;
	}
}

@media (max-width: 480px) {
	.cert-slider-wrapper {
		padding: 10px 36px;

		.cert-slide .cert-slide__image {
			max-width: 70px;
		}
	}
}
