/* Slideshow Widget Styles */

.slideshow-widget {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.slideshow-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f5f5f5;
}

.slideshow-slide {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    animation: fadeIn 0.5s ease-in-out;
}

.slideshow-slide.active {
    display: flex;
}

.slideshow-image-wrapper {
    width: 100%;
    max-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #000;
}

.slideshow-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
}

.slideshow-description {
    width: 100%;
    min-height: 60px;
    padding: 20px;
    text-align: center;
    background-color: #fff;
    font-size: 16px;
    line-height: 1.5;
    color: #1e3268;
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-description-placeholder {
    visibility: hidden;
}

/* Navigation Arrows */
.slideshow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.slideshow-arrow:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.slideshow-arrow:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.slideshow-arrow-prev {
    left: 16px;
}

.slideshow-arrow-next {
    right: 16px;
}

/* Navigation Dots */
.slideshow-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 5px;
    padding: 10px 0;
}

.slideshow-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
    padding: 0;
}

.slideshow-dot:hover {
    background-color: #999;
    transform: scale(1.2);
}

    .slideshow-dot.active {
        background-color: #1e3268;
        transform: scale(1.3);
    }

    .slideshow-dot:focus {
        outline: 2px solid #1e3268;
        outline-offset: 2px;
    }

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .slideshow-image-wrapper {
        max-height: 400px;
    }

    .slideshow-image {
        max-height: 400px;
    }

    .slideshow-description {
        min-height: 50px;
        font-size: 14px;
        padding: 15px;
    }

    .slideshow-arrow {
        width: 40px;
        height: 40px;
    }

    .slideshow-arrow-prev {
        left: 8px;
    }

    .slideshow-arrow-next {
        right: 8px;
    }

    .slideshow-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
    }
}

@media (max-width: 480px) {
    .slideshow-image-wrapper {
        max-height: 300px;
    }

    .slideshow-image {
        max-height: 300px;
    }

    .slideshow-description {
        min-height: 45px;
        font-size: 13px;
        padding: 12px;
    }

    .slideshow-arrow {
        width: 36px;
        height: 36px;
    }

    .slideshow-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
    }
}
