/* CEC Corredores - Certifications Carousel CSS */

.certifications-carousel-wrapper {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.certifications-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    background-color: #f5f5f5;
}

.carousel-slide {
    display: none;
    position: relative;
    width: 100%;
    min-height: 500px;
    animation: fadeIn 0.8s ease-in-out;
}

.carousel-slide.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.carousel-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    padding: 2rem;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(60, 129, 98, 0.95), rgba(60, 129, 98, 0.7));
    padding: 1.5rem;
    text-align: center;
}

.carousel-caption p {
    color: var(--color-white);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Progress Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding: 0;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #d1d1d1;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-dot:hover {
    background-color: #cf9b2a;
    transform: scale(1.2);
}

.carousel-dot.active {
    background-color: var(--color-gold);
    border-color: var(--color-teal);
    transform: scale(1.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-slide {
        min-height: 400px;
    }

    .carousel-image {
        max-height: 400px;
        padding: 1rem;
    }

    .carousel-caption {
        padding: 1rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }

    .carousel-dots {
        gap: 0.5rem;
        margin-top: 1.5rem;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .carousel-slide {
        min-height: 300px;
    }

    .carousel-image {
        max-height: 300px;
        padding: 0.5rem;
    }

    .carousel-caption {
        padding: 0.75rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
    }
}

/* Accessibility */
.carousel-dot:focus {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
}

/* Animation for slide transition */
.carousel-slide.fade-out {
    animation: fadeOut 0.5s ease-in-out;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Loading State */
.carousel-image[data-loading] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Print Styles */
@media print {
    .certifications-carousel-wrapper {
        box-shadow: none;
    }

    .carousel-slide {
        display: block !important;
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }

    .carousel-dots {
        display: none;
    }

    .carousel-caption {
        position: static;
        background: var(--color-teal);
        color: white;
    }
}
