/* static/connections/css/carousel.css */

.carousel-container {
    max-width: 1000px;
    margin: 40px auto 60px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 20px;
    user-select: none;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    pointer-events: none;
}

.slide-title {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(to bottom right, #393EB4 40%, #8F39B4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: -0.5px;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(57, 62, 180, 0.8);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 22px;
}

.carousel-btn:hover {
    background-color: #393EB4;
    transform: translateY(-50%) scale(1.05);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-dots {
    text-align: center;
    padding: 15px 0;
    background-color: #fff;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #393EB4;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .slide-title {
        font-size: 20px;
    }
    .carousel-slide {
        padding: 15px;
    }
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    .carousel-btn.prev {
        left: 10px;
    }
    .carousel-btn.next {
        right: 10px;
    }
}