/**
 * Custom Testimonial Carousel CSS with Stacked Card Effect
 */

/* Main container */
.custom-testimonial-carousel {
    position: relative;
    padding: 40px 0;
}

.testimonial-container {
    display: flex;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

/* Heading section */
.testimonial-heading {
    flex: 0 0 40%;
    padding-right: 40px;
}

.testimonial-heading h2 {
    font-size: 42px;
    line-height: 1.2;
    color: #1a2142;
    font-weight: 700;
    margin-bottom: 30px;
}

/* Slider section */
.testimonial-slider {
    flex: 0 0 60%;
    position: relative;
}

.testimonial-slides-container {
    position: relative;
    margin-bottom: 40px; /* Space for the stacked card */
}

/* Active testimonial */
.testimonial-slide {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    display: none;
    position: relative;
    z-index: 2;
}

.testimonial-slide.active {
    display: block;
}

/* Next testimonial preview - stacked card effect */
.next-testimonial-preview {
    position: absolute;
    bottom: -30px;
    right: -20px;
    width: 85%;
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
    transform: scale(0.95);
}

.next-testimonial-preview:hover {
    transform: scale(0.98);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.next-preview-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.next-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.next-preview-info h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a2142;
}

.next-preview-info p {
    margin: 3px 0 0;
    font-size: 13px;
    color: #777;
}

/* Testimonial content */
.testimonial-content {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* Author section */
.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin: 0;
    font-size: 18px;
    color: #1a2142;
    font-weight: 600;
}

.author-info p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #777;
}

/* Navigation controls */
.testimonial-controls {
    display: flex;
    align-items: center;
    margin-top: 30px;
}

.testimonial-dots {
    display: flex;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.testimonial-dot.active {
    background-color: #1a2142;
}

/* Responsive styles */
@media (max-width: 991px) {
    .testimonial-container {
        flex-direction: column;
    }
    
    .testimonial-heading {
        flex: 0 0 100%;
        padding-right: 0;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .testimonial-slider {
        flex: 0 0 100%;
    }
    
    .testimonial-controls {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .testimonial-heading h2 {
        font-size: 32px;
    }
    
    .testimonial-slide {
        padding: 20px;
    }
    
    .next-testimonial-preview {
        right: -10px;
        bottom: -25px;
        width: 80%;
    }
}