/* ======================================== */
/* ===== VIDEO TESTIMONIALS SECTION ===== */
/* ======================================== */

.video-testimonials-section {
    background-color: #FFF8F0; /* Light off-white/beige background */
    padding: 80px 0; /* Generous padding top and bottom */
    overflow: hidden; /* Prevents horizontal scrollbar if cards slightly exceed bounds */
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    text-align: center; /* Center the title */
}

.testimonials-title {
    color: #2D88C3; /* Blue color similar to the image */
    font-size: 2.5rem; /* Adjust size as needed */
    font-weight: 700; /* Bold */
    margin-bottom: 50px; /* Space below the title */
    text-align: center;
}

.testimonial-cards-wrapper {
    display: flex;
    justify-content: center; /* Center the cards horizontally */
    align-items: center;   /* Align cards vertically */
    position: relative; /* Needed for z-index stacking context */
    min-height: 350px; /* Ensure wrapper has height to contain cards */
    margin-bottom: 20px;
    pointer-events: auto; /* Ensure hover events are not blocked */
}

.testimonial-card {
    background-color: #888888; /* Medium grey for placeholders */
    border-radius: 25px;    /* Generous rounding */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Subtle shadow for depth */
    position: absolute; /* Use absolute positioning for precise overlap control */
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease; /* Added opacity transition */

    /* Base size (adjust as needed) */
    width: 200px;
    height: 300px;
}

/* --- Positioning and Scaling Individual Cards --- */

/* Center Card (Largest & Topmost) */
.testimonial-card.center-card { /* .card-3 */
    width: 250px;  /* Slightly wider */
    height: 380px; /* Slightly taller */
    z-index: 3;   /* Highest stack order */
    transform: translateX(0) scale(1); /* No translation, base scale */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

/* Cards Immediately Beside Center */
.testimonial-card.card-2 {
    width: 250px;  /* Slightly wider */
    height: 380px; /* Slightly taller */
    z-index: 2; /* Below center */
    /* Increased translateX value */
    transform: translateX(-200px) scale(0.9); /* Was -110px */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
    
}

.testimonial-card.card-4 {
    width: 250px;  /* Slightly wider */
    height: 380px; /* Slightly taller */
    z-index: 2; /* Below center */
    /* Increased translateX value */
    transform: translateX(200px) scale(0.9); /* Was 110px */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
    
}

/* Outermost Cards */
.testimonial-card.card-1 {
    width: 250px;  /* Slightly wider */
    height: 380px; /* Slightly taller */
    z-index: 1; /* Lowest stack order */
    /* Increased translateX value */
    transform: translateX(-350px) scale(0.8); /* Was -200px */
     opacity: 0.9; /* Optional: slightly fade outer cards */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
     
}

.testimonial-card.card-5 {
    width: 250px;  /* Slightly wider */
    height: 380px; /* Slightly taller */
    z-index: 1; /* Lowest stack order */
    /* Increased translateX value */
    transform: translateX(350px) scale(0.8); /* Was 200px */
     opacity: 0.9; /* Optional: slightly fade outer cards */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
     
}


/* ============================ */
/* == RESPONSIVENESS (Example) == */
/* ============================ */

/* Tablet View */
@media (max-width: 992px) {
    .testimonials-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    /* Adjust card positions proportionally */
     .testimonial-card.card-2 {
        transform: translateX(-150px) scale(0.85); /* Was -90px */
    }
    .testimonial-card.card-4 {
        transform: translateX(150px) scale(0.85); /* Was 90px */
    }
    .testimonial-card.card-1 {
        transform: translateX(-270px) scale(0.75); /* Was -160px */
    }
    .testimonial-card.card-5 {
        transform: translateX(270px) scale(0.75); /* Was 160px */
    }
    /* .testimonial-card.center-card {
         width: 200px;
         height: 300px;
    } */
}

@media (max-width: 769px) {
    /* Adjust card positions proportionally */
     .testimonial-card.card-2 {
        width: 210px;  /* Slightly wider */
        height: 340px;
    }
    .testimonial-card.card-4 {
        width: 210px;  /* Slightly wider */
        height: 340px;
    }
    .testimonial-card.card-1 {
        width: 190px;  /* Slightly wider */
        height: 320px;
    }
    .testimonial-card.card-5 {
        width: 190px;  /* Slightly wider */
        height: 320px;
    }
    .testimonial-card.center-card {
        width: 220px;  /* Slightly wider */
        height: 350px;
    }
}

@media (max-width: 601px) {
    /* Adjust card positions proportionally */
     .testimonial-card.card-2 {
        transform: translateX(-110px) scale(0.85); /* Was -90px */
        width: 200px;  /* Slightly wider */
        height: 330px;
    }
    .testimonial-card.card-4 {
        transform: translateX(110px) scale(0.85); /* Was -90px */
        width: 200px;  /* Slightly wider */
        height: 330px;
    }
    .testimonial-card.card-1 {
        transform: translateX(-210px) scale(0.75); /* Was -160px */
        width: 180px;  /* Slightly wider */
        height: 310px;
    }
    .testimonial-card.card-5 {
        transform: translateX(210px) scale(0.75); /* Was -160px */
        width: 180px;  /* Slightly wider */
        height: 310px;
    }
    .testimonial-card.center-card {
        width: 190px;  /* Slightly wider */
        height: 320px;
    }
}

/* Mobile View */
@media (max-width: 426px) {
     .video-testimonials-section {
         padding: 60px 0;
     }
    .testimonials-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .testimonial-cards-wrapper {
        min-height: 280px; /* Adjust height */
    }

    /* Significantly reduce overlap and size on mobile */
     .testimonial-card {
         width: 160px;
         height: 240px;
         border-radius: 15px;
     }
    .testimonial-card.center-card {
         width: 180px;
         height: 270px;
         border-radius: 20px;
    }
     .testimonial-card.card-2 {
        /* Adjusted for mobile width */
        transform: translateX(-80px) scale(0.8); /* Was -60px */
    }
    .testimonial-card.card-4 {
       /* Adjusted for mobile width */
        transform: translateX(80px) scale(0.8); /* Was 60px */
    }
    /* Hide outermost cards on small mobile for simplicity */
    .testimonial-card.card-1,
    .testimonial-card.card-5 {
        transform: translateX(0) scale(0.6); /* Scale down significantly */
        opacity: 0; /* Hide them */
        pointer-events: none; /* Prevent interaction */
    }
}

@media (max-width: 321px) {
     /* Even smaller adjustments if needed */
      .testimonial-card.card-2 {
        transform: translateX(-70px) scale(0.75); /* Was -50px */
    }
    .testimonial-card.card-4 {
        transform: translateX(70px) scale(0.75); /* Was 50px */
    }
     .testimonial-card.center-card {
         width: 160px;
         height: 240px;
    }
     /* Ensure outer cards stay hidden */
     .testimonial-card.card-1,
     .testimonial-card.card-5 {
        opacity: 0;
        pointer-events: none;
     }
}