/* 1. Container: Acts as the anchor for absolute positioning */
.review-slider-container {
    margin: 0px 0px 20px 0px !important; 
    position: relative; 
    overflow: hidden;
    text-align: left;
    /* Ensure the container is a flex or block context to match your theme */
    display: block; 
}

.review-slide {
    display: none;
    padding: 20px 50px;
    border: none !important; /* Removes the border */
    margin: 0 !important;
    position: relative;
    background: transparent; /* Ensures no background color shows either */
}

/* Force first slide to show initially */
.review-slide:first-child {
    display: block; 
}

/* 3. Arrows: Positioned inside the boundaries */
.prev-arrow, .next-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #ccc;
    padding: 8px 12px;
    font-size: 18px;
    border-radius: 50%;
    line-height: 1;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    /* Prevent mobile "flicker" or vanishing */
    -webkit-tap-highlight-color: transparent; 
}

/* Only apply hover effects on screens larger than mobile */
@media (min-width: 769px) {
    .prev-arrow:hover, .next-arrow:hover {
        background: #fff;
        border-color: #999;
    }
}

/* Exact positioning */
.prev-arrow { left: 10px; }
.next-arrow { right: 10px; }

/* 4. Responsive adjustments */
@media (max-width: 480px) {
    .review-slide {
        padding: 15px 40px; /* Adjust padding for smaller screens */
    }
    .prev-arrow, .next-arrow {
        padding: 6px 10px;
        font-size: 16px;
    }
}