/* 证书轮播样式 */
.certificate-slider {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.certificates-swiper {
    padding: 20px 0;
    overflow: visible;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.swiper-slide-active {
    opacity: 1;
}

.swiper {
    overflow: hidden;
}

.certificate-prev,
.certificate-next {
    width: 50px;
    height: 50px;
    background-color: rgba(230, 57, 70, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.certificate-prev:hover,
.certificate-next:hover {
    background-color: rgba(230, 57, 70, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.certificate-prev {
    left: -25px;
}

.certificate-next {
    right: -25px;
}

.certificate-prev:after,
.certificate-next:after {
    font-size: 20px;
    font-weight: bold;
}

.certificate-pagination {
    position: relative;
    bottom: 0;
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.certificate-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: #ccc;
    opacity: 1;
    margin: 0 6px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.certificate-pagination .swiper-pagination-bullet-active {
    background-color: #e63946;
    transform: scale(1.3);
}

/* 证书内容样式 */
.swiper-slide.bg-white {
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}



.swiper-slide .flex.flex-col.md\:flex-row {
    gap: 24px;
}

.swiper-slide img {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    max-height: 12rem; /* 192px */
    width: auto;
    height: auto;
    object-fit: contain;
}

.swiper-slide img:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
}

.swiper-slide h3 {
    color: #1d3557;
    margin-bottom: 12px;
}

.swiper-slide p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.swiper-slide a {
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .certificate-prev,
    .certificate-next {
        width: 40px;
        height: 40px;
    }
    
    .certificate-prev:after,
    .certificate-next:after {
        font-size: 16px;
    }
    
    .certificate-prev {
        left: -20px;
    }
    
    .certificate-next {
        right: -20px;
    }
    
    .swiper-slide .flex.flex-col.md\:flex-row {
        gap: 16px;
    }
    
    .certificate-pagination {
        margin-top: 20px;
    }
    
    .swiper-slide img {
        max-height: 10rem; /* 160px */
    }
}

@media (max-width: 480px) {
    .certificate-prev,
    .certificate-next {
        width: 35px;
        height: 35px;
    }
    
    .certificate-prev:after,
    .certificate-next:after {
        font-size: 14px;
    }
    
    .certificate-prev {
        left: -15px;
    }
    
    .certificate-next {
        right: -15px;
    }
    
    .swiper-slide img {
        max-height: 8rem; /* 128px */
    }
}