/* 3D Cylindrical Carousel CSS for matrasparsh */
.pro-slider {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    perspective: 2000px;
    /* Stronger perspective for better visibility */
    perspective-origin: 50% 50%;
    padding: 20px 0;
    user-select: none;
    cursor: grab;
    overflow: visible !important;
}

/* The rotating track */
.pro-slide-track {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280px;
    height: 380px;
    transform-style: preserve-3d;
    transform: translate(-50%, -50%);
}
.pro-slide {
    position: absolute;
    width: 280px;
    height: 380px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    backface-visibility: hidden;
}
.pro-slide.active {
    border-color: #00a399;
    /* matrasparsh brand teal */
    box-shadow: 0 20px 60px rgba(0, 163, 153, 0.4);
    z-index: 100 !important;
    /* Force to front */
}

.pro-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    pointer-events: none;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Status Badge - Auto-rotating indicator */
.status-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #005a32;
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s, transform 0.4s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.pro-slide.active .status-badge {
    opacity: 1;
    transform: translateY(0);
}

.status-badge .dot {
    width: 8px;
    height: 8px;
    background: #7fff00;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(0.9);
        opacity: 0.7;
    }
}

/* Distance Dimming Overlay - Softened to ensure images stay clear */
.pro-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: opacity 0.6s;
    pointer-events: none;
    z-index: 2;
}

.pro-slide.active::after {
    opacity: 0;
}

/* Navigation Buttons at bottom */
.pro-nav {
    margin-top: 420px;
    display: flex;
    gap: 20px;
    z-index: 50;
    position: relative;
}

.pro-nav button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: #003633;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.pro-nav button:hover {
    background: #00a399;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 163, 153, 0.4);
}

/* Ensure no parent containers clip the 3D depth */
.rs-about-2__thumb,
.col-lg-6,
.row,
#rs-about {
    overflow: visible !important;
}

/* Mobile Responsive Adjustments */
@media (max-width: 767px) {
    .pro-slide {
        width: 240px;
        height: 320px;
    }

    .pro-slide-track {
        width: 240px;
        height: 320px;
        margin-left: -120px;
    }

    .pro-slider {
        height: 440px;
    }

    .pro-nav {
        margin-top: 340px;
    }
}
.pro-slide {
    overflow: hidden;
}
.pro-slider {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
    overflow: visible;
}

.pro-slide-track {
    position: absolute;
    width: 280px;
    height: 380px;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.pro-slide {
    position: absolute;
    width: 280px;
    height: 380px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    backface-visibility: hidden;
}

.pro-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}