/* ============================================
   CERTIFICATIONS CAROUSEL - HORIZONTAL SCROLL
   ============================================ */

.certifications-carousel-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.certifications-grid {
    display: flex;
    gap: 1rem;
    animation: slideLeft 15s linear infinite;
    width: fit-content;
}

.certifications-grid:hover {
    animation-play-state: paused;
}

.certification-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: white;
    padding: 3rem 2rem 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    min-width: 260px;
    max-width: 260px;
    position: relative;
    border-top: 4px solid var(--primary-color);
}

.certification-item::before {
    content: '✓';
    position: absolute;
    top: -15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(106, 27, 154, 0.4);
}

.certification-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.certification-item img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.certification-item:hover img {
    transform: rotate(-5deg) scale(1.08);
}

.certification-item h4 {
    font-size: 0.95rem;
    color: var(--text-color);
    margin: 0;
    text-align: center;
    line-height: 1.5;
    font-weight: 600;
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Badge ribbon effect */
.certification-item::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes slideLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .certifications-grid {
        gap: 1.5rem;
    }
    
    .certification-item {
        min-width: 150px;
        max-width: 150px;
        padding: 1.5rem 1.2rem 1.2rem;
    }
    
    .certification-item img {
        width: 75px;
        height: 75px;
    }
    
    .certification-item h4 {
        font-size: 0.8rem;
        min-height: 45px;
    }
}

@media (max-width: 480px) {
    .certifications-grid {
        gap: 1.2rem;
    }
    
    .certification-item {
        min-width: 130px;
        max-width: 130px;
        padding: 1.2rem 1rem 1rem;
    }
    
    .certification-item img {
        width: 65px;
        height: 65px;
    }
    
    .certification-item h4 {
        font-size: 0.75rem;
        min-height: 40px;
    }
}

