/* Partnership Certificates Section */
.certificates-section {
    text-align: center;
    padding: 60px 5%;
    background-color: #ffffff;
    position: relative;
    margin-bottom: 50px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.certificates-section.show {
    opacity: 1;
    transform: translateY(0);
}


/* Section Title */
.certificates-title {
    font-size: 2.9rem;
    font-weight: bold;
    font-style: italic;
    color: #004aad;
    margin-bottom: 20px;
}

/* Container for Scrolling */
.certificates-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

/* Track to Scroll */
.certificates-wrapper {
    width: 80%;
    overflow: hidden;
    position: relative;
}

.certificates-track {
    display: flex;
    gap: 40px;
    width: calc(250px * 6); 
    animation: scroll 10s linear infinite;
}

/* Certificates */
.certificate {
    width: 350px;
    height: auto;
    border-radius: 0px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Hover Effect */
.certificate:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
}

/* Navigation Buttons */
.scroll-btn {
    position: absolute;
    background: none;
    border: none;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #000;
    transition: color 0.3s ease;
}

.left-btn {
    left: -40px;
}

.right-btn {
    right: -40px;
}

.scroll-btn:hover {
    color: #004aad;
}

/* Auto-Scroll Keyframes */
@keyframes scroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Stop Animation on Hover */
.certificates-wrapper:hover .certificates-track {
    animation-play-state: paused;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .certificates-section {
        margin-bottom: 20px;
    }
    .certificates-title {
        font-size: 2.1rem;
        margin-bottom: 15px;
    }
    .certificates-wrapper {
        width: 100%;
    }

    .certificate {
        width: 180px;
    }

    .scroll-btn {
        font-size: 1.5rem;
    }
}
