/* Certificates Section Styles */
#certificates {
	padding: 60px 0;
	background-color: #f8f9fa;
	overflow: hidden;
}

#certificates .container {
	margin-bottom: 50px;
}

#certificates h2 {
	font-size: 35px;
	font-weight: 600;
	color: #333;
	margin-bottom: 0;
}

#certificates .bline {
	position: relative;
	display: inline-block;
	font-size: 35px;
	color: #001f50;
	font-weight: bold;
}

#certificates .bline:after {
	content: '';
	position: absolute;
	left: 0;
	top: 50px;
	right: auto;
	height: 3px;
	width: 85px;
	background-color: #E70012;
}

.certificates-carousel-wrapper {
	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	overflow: hidden;
	box-sizing: border-box;
}

.certificates-carousel {
	display: flex;
	transition: transform 0.6s ease-in-out;
	will-change: transform;
	width: 100%;
	box-sizing: border-box;
}

.certificates-slide {
	flex: 0 0 calc(100% / 6);
	min-width: calc(100% / 6);
	padding: 0 7.5px;
	box-sizing: border-box;
	transition: transform 0.3s ease;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
}

.certificates-slide.clone {
	/* 克隆的图片保持相同的样式 */
}

.certificates-slide img {
	width: 180px;
	height: 254px;
	object-fit: cover;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
}

/* 首页证书图片尺寸 */
.home-certificates .certificates-slide img {
	width: 193px;
	height: 273px;
}

.certificates-slide img:hover {
	transform: scale(1.05);
}

/* Responsive Styles */
@media (max-width: 1200px) {
	.certificates-slide {
		flex: 0 0 calc(100% / 5);
		min-width: calc(100% / 5);
	}
}

@media (max-width: 992px) {
	.certificates-slide {
		flex: 0 0 calc(100% / 4);
		min-width: calc(100% / 4);
	}

	#certificates h2 {
		font-size: 28px;
	}
}

@media (max-width: 768px) {
	.certificates-slide {
		flex: 0 0 calc(100% / 3);
		min-width: calc(100% / 3);
	}

	.certificates-slide img {
		width: 140px;
		height: 198px;
		object-fit: cover;
	}

	/* 首页证书图片响应式尺寸 */
	.home-certificates .certificates-slide img {
		width: 150px;
		height: 212px;
	}

	#certificates h2 {
		font-size: 24px;
		margin-bottom: 50px;
	}

	#certificates .bline {
		font-size: 33px;
	}

	#certificates .bline:after {
		top: 40px;
		width: 100px;
	}

	#certificates {
		padding: 40px 0;
	}
}

@media (max-width: 576px) {
	.certificates-slide {
		flex: 0 0 calc(100% / 2);
		min-width: calc(100% / 2);
	}

	.certificates-slide img {
		width: 120px;
		height: 170px;
		object-fit: cover;
	}

	/* 首页证书图片响应式尺寸 */
	.home-certificates .certificates-slide img {
		width: 130px;
		height: 184px;
	}

	#certificates h2 {
		font-size: 20px;
	}

	.certificates-carousel-wrapper {
		padding: 0 10px;
	}
}
