/* Contentore CMS - Image Carousel Styles */

.contentore-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-image {
    max-width: 90%;
    max-height: 60%;
    object-fit: contain;
    margin-bottom: 2rem;
    animation: slideImageIn 1s ease-out;
}

.carousel-content {
    text-align: center;
    max-width: 600px;
    animation: slideContentIn 1s ease-out 0.3s both;
}

.carousel-heading {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--contentore-primary) 0%, var(--contentore-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.carousel-subheading {
    font-size: 1.25rem;
    color: #6c757d;
    font-weight: 400;
    line-height: 1.6;
}

[data-bs-theme="dark"] .carousel-subheading {
    color: #a1a5b7;
}

/* Navigation dots */
.carousel-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--contentore-primary);
    border-color: var(--contentore-primary);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

/* Animations */
@keyframes slideImageIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes slideContentIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive styles */
@media (max-width: 991.98px) {
    .carousel-heading {
        font-size: 2.5rem;
    }

    .carousel-subheading {
        font-size: 1.125rem;
    }

    .carousel-slide {
        padding: 2rem;
    }

    .carousel-image {
        max-height: 50%;
    }
}

@media (max-width: 767.98px) {
    .carousel-heading {
        font-size: 2rem;
    }

    .carousel-subheading {
        font-size: 1rem;
    }

    .carousel-slide {
        padding: 1.5rem;
    }

    .carousel-dots {
        bottom: 1rem;
    }
}

@media (max-width: 575.98px) {
    .carousel-heading {
        font-size: 1.75rem;
    }

    .carousel-subheading {
        font-size: 0.95rem;
    }

    .carousel-image {
        max-height: 40%;
        margin-bottom: 1.5rem;
    }
}
