/* ==========================================
   CAROUSEL.CSS - Trust Carousel/Slideshow
   ========================================== */

.carousel-section {
    margin: 60px 0;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
    max-width: 100%;
}

.carousel-wrapper {
    flex: 1;
    overflow: hidden;
    border-radius: var(--radius);
    max-width: 100%;
    width: 100%;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    flex-shrink: 0;
    flex-grow: 0;
    box-sizing: border-box;
}

.carousel-card {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 100%;
}

.carousel-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px 15px 0 0;
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.carousel-content strong {
    font-size: 20px;
    color: var(--text);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.carousel-content span {
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border);
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    transition: all 0.2s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: scale(1.05);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 5px;
}

.carousel-dot:hover {
    background: var(--primary);
}

/* Mobile Carousel */
@media (max-width: 768px) {
    .carousel-section {
        margin: 40px 0;
    }

    .carousel-container {
        flex-direction: column;
        gap: 0;
        width: 100%;
        max-width: 100%;
    }

    .carousel-wrapper {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .carousel-track {
        width: 100%;
    }

    .carousel-slide {
        min-width: 100%;
        max-width: 100%;
        width: 100%;
    }
    
    .carousel-image {
        height: 240px;
    }

    .carousel-content {
        padding: 20px;
    }
    
    .carousel-btn {
        position: absolute;
        top: 40%;
        transform: translateY(-50%);
        z-index: 10;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .carousel-section {
        margin: 30px 0;
    }

    .carousel-container {
        gap: 0;
        padding: 0;
        width: 100%;
    }

    .carousel-wrapper {
        width: 100%;
        max-width: 100%;
    }

    .carousel-track {
        width: 100%;
    }

    .carousel-slide {
        min-width: 100%;
        max-width: 100%;
        width: 100%;
    }

    .carousel-image {
        height: 200px;
    }

    .carousel-content {
        padding: 16px;
    }

    .carousel-content strong {
        font-size: 18px;
    }

    .carousel-content span {
        font-size: 14px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }
}
