/* Review Slider Styles */
.reviews-slider-container {
    position: relative;
    width: 100%;
    max-width: 1000px; /* Adjusted to 900px for slides + 50px padding on each side for buttons */
    margin: 30px auto;
    overflow: hidden; /* Crucial for the sliding effect */
    padding: 0 50px; /* Added padding to create space for buttons */
    box-sizing: border-box; /* Ensures padding is included in max-width */
}

.reviews-slider {
    display: flex;
    transition: transform 0.5s ease-in-out, opacity 0.3s ease-in-out; /* Added opacity transition */
    opacity: 0; /* Initially hidden to prevent FOUC */
    gap: 20px; /* Added gap for spacing between cards */
}

.review-card-slide {
    /* width will be set by JS to 50% */
    box-sizing: border-box;
    flex-shrink: 0; 
    padding: 20px; /* Adjusted padding */
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center;

    /* Enhanced card styling */
    background-color: #ffffff;
    border: 1px solid #e9ecef; /* Lighter border */
    border-radius: 12px;        /* More pronounced rounded corners */
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); /* Softer, more spread shadow */
    /* margin: 10px; */ /* Removed margin, using gap on parent now */
}

/* Individual Review Card Styling (inside the slide) */
.review-card-slide .review-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.review-card-slide .review-image-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: #adb5bd;
    font-size: 2.5em; /* Placeholder icon size */
}
.review-card-slide .review-image-placeholder i {
    line-height: 1; /* Ensure icon is centered */
}

.review-card-slide .review-text {
    font-style: italic;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.review-card-slide .review-author {
    font-weight: bold;
    color: #333;
}

.review-card-slide .author-name {
    display: block; /* Or inline, depending on desired layout */
}

.review-card-slide .author-role {
    font-size: 0.9em;
    color: #777;
    font-weight: normal;
}

/* Slider Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 20; /* Increased z-index */
    border-radius: 50%;
    width: 45px; /* Slightly larger */
    height: 45px; /* Slightly larger */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slider-btn.prev-btn {
    left: 5px; /* Positioned within the left padding area */
}

.slider-btn.next-btn {
    right: 5px; /* Positioned within the right padding area */
}

/* Slider Dots Navigation */
.slider-dots {
    text-align: center;
    padding: 15px 0;
}

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

.dot.active,
.dot:hover {
    background-color: #717171;
}

/* Adjustments for the .review-card if it's being directly used within .review-card-slide */
.review-card-slide .review-card {
    width: 100%; /* Make sure the card itself takes the full width of the slide */
    margin-bottom: 0; /* Remove margin if it was for grid layout */
    box-shadow: none; /* Optional: remove shadow if slide has its own or if it looks cluttered */
    /* Add any other overrides if necessary */
}
