/* Custom Testimonial Styles */

/* Make testimonial images MUCH bigger and uniform */
.testimonial-card__image {
    position: relative;
    margin: 0 auto !important; /* Center the image */
}

.testimonial-card__image img {
    width: 150px !important;
    height: 150px !important;
    border-radius: 10px;
    object-fit: cover; /* Ensures images maintain aspect ratio and fill the space */
    object-position: center; /* Centers the image */
}

/* Force all carousel items to have equal height */
.testimonials-one__carousel.owl-carousel {
    display: flex !important;
    align-items: stretch !important;
}

.testimonials-one__carousel .owl-stage {
    display: flex !important;
    align-items: stretch !important;
}

.testimonials-one__carousel .owl-item {
    display: flex !important;
    height: auto !important;
}

.testimonials-one__carousel .item {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
}

/* Make all testimonial cards uniform height with flexible height for content */
.testimonial-card {
    height: auto !important;
    min-height: 420px !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 40px 40px 42px !important;
    background-color: var(--eduhive-white, #FFFFFF);
    border-radius: 20px;
    box-shadow: 0px 4px 25px rgba(0, 0, 0, 0.06);
}

/* Stack image and name/designation vertically and center them */
.testimonial-card__top {
    flex-shrink: 0;
    margin-bottom: 25px;
    display: flex !important;
    flex-direction: column !important; /* Stack vertically */
    align-items: center !important; /* Center horizontally */
    text-align: center !important;
    gap: 15px !important;
}

/* Center the identity section */
.testimonial-card__identity {
    text-align: center !important;
    width: 100%;
}

/* Ensure content fills remaining space */
.testimonial-card__content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden;
}

/* Make quote text fully visible without truncation */
.testimonial-card__quote {
    margin-bottom: 25px;
    font-weight: 400;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 1399px) {
    .testimonial-card__image img {
        width: 140px !important;
        height: 140px !important;
    }
    
    .testimonial-card {
        padding: 30px !important;
        min-height: 400px !important;
    }
}

@media (max-width: 991px) {
    .testimonial-card__image img {
        width: 120px !important;
        height: 120px !important;
    }
    
    .testimonial-card {
        min-height: 380px !important;
    }
}

@media (max-width: 767px) {
    .testimonial-card__image img {
        width: 100px !important;
        height: 100px !important;
    }
    
    .testimonial-card {
        min-height: 360px !important;
    }
}

@media (max-width: 480px) {
    .testimonial-card__image img {
        width: 90px !important;
        height: 90px !important;
    }
    
    .testimonial-card {
        min-height: 340px !important;
    }
}

@media (max-width: 390px) {
    .testimonial-card__image img {
        width: 80px !important;
        height: 80px !important;
    }
    
    .testimonial-card {
        min-height: 320px !important;
    }
}