/* Section spacing */
.rw-section {
    padding: 40px 20px;
}

/* Center text in container */
.rw-container {
    max-width: 1160px;
    margin: 0 auto;
    text-align: center;
}

/* Title */
.rw-title {
    font-size: 32px;
    margin-bottom: 10px;
}

.rw-title span {
    color: #6c63ff;
}

.section-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    color: #555;
}

/* Carousel wrapper hides scroll overflow */
.carousel-wrapper {
    position: relative;
    overflow-x: hidden;
    padding-bottom: 20px;
}

.carousel-container {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;

    scrollbar-width: none; /* Firefox */
}

.carousel-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.carousel-track {
    display: flex;
    gap: 24px;
}

/* Card styling */
.carousel-card {
    flex: 0 0 auto;
    width: 480px;
    background: #fff;
    border-radius: 10px;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ✅ Original image size restored */
.rw-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    border-radius: 6px;
    margin-bottom: 15px;
}

.rw-btn {
    display: inline-block;
    padding: 10px 18px;
    background: #333;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.rw-btn:hover {
    background: #555;
    transform: translateY(-2px);
}

/* Scroll indicator */
.scroll-indicator {
    height: 4px;
    background: #eee;
    position: relative;
    margin-top: 10px;
    border-radius: 2px;
    overflow: hidden;
}

.indicator-progress {
    width: 0%;
    height: 100%;
    background-color: #6c63ff;
    transition: width 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .rw-title {
        font-size: 26px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .carousel-card {
        width: 260px;
    }

    .rw-image {
        max-height: 180px;
    }
}

@media (max-width: 480px) {
    .carousel-card {
        width: 90%;
        margin: 0 auto;
    }

    .rw-image {
        max-height: 160px;
    }
}


/* Wrapper to position button over image */
.rw-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
}

/* Image styling remains the same */
.rw-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    display: block;
    border-radius: 6px;
}

/* Button positioned over image, hidden by default */
.rw-image-wrapper .rw-btn {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

/* Show button on image hover */
.rw-image-wrapper:hover .rw-btn {
    opacity: 1;
}
