/* Testimonials — home block + dedicated page (Slick slider) */
.hm-testimonials.pattern-bg-primary {
    color: #fff;
}

.hm-testimonials .testimonials-slider .slick-dots li button:before {
    color: #fff;
}

.hm-testimonials.pattern-3 .testimonials-slider .slick-dots li button:before {
    color: #062433;
}

.testimonials-slider .testimonial-card {
    max-width: 720px;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.testimonials-slider .testimonial-card__quote {
    min-height: 180px;
}

.testimonials-slider .testimonial-review {
    max-height: 200px;
    overflow-y: auto;
}

.testimonials-slider .slick-prev,
.testimonials-slider .slick-next {
    z-index: 2;
}

.hm-testimonials.pattern-bg-primary .slick-prev:before,
.hm-testimonials.pattern-bg-primary .slick-next:before {
    color: #fff;
}

/* Testimonials carousel — equal review box heights, visible footer */
.testimonial-holder:not(.sagar-bg-light):not(.sagar-bg-gradient):not(.sagar-bg-dark) {
    background-color: #ecf4fe !important;
}

.testimonial-holder.pattern-3 {
    background-color: transparent !important;
}

.testimonial-holder > .container {
    margin-bottom: 0;
}

.testimonial-holder .tesimonials.owl-carousel {
    margin-bottom: 0;
    padding-bottom: 0.5rem;
}

.testimonial-holder .tesimonials .owl-nav {
    margin-top: 1.5rem !important;
    margin-bottom: 3.5rem !important;
    position: relative;
    z-index: 1;
}

.testimonial-holder .tesimonials.owl-carousel .owl-stage {
    display: flex;
    align-items: stretch;
}

.testimonial-holder .tesimonials.owl-carousel .owl-item {
    display: flex;
    align-items: stretch;
    float: none;
}

.testimonial-holder .tesimonials .item {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.testimonial-holder .tesimonials .item > .container {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 100%;
    padding: 0 0.5rem;
}

.testimonial-holder .tesimonials .testimonial-slide {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
}

.testimonial-holder .tesimonials .slideContent {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.testimonial-holder .tesimonials .testimonial-review {
    overflow-y: auto;
    max-height: 220px;
    margin: 0;
    padding-right: 0.25rem;
    text-align: center;
    line-height: 1.65;
}

.testimonial-holder .tesimonials .testimonial-review p {
    margin-bottom: 0.75rem;
}

.testimonial-holder .tesimonials .testimonial-review p:last-child {
    margin-bottom: 0;
}

.testimonial-holder .tesimonials .iconHolder {
    flex-shrink: 0;
}

/* Footer: image + name — always visible below speech bubble */
.testimonial-holder .tesimonials .testimonial-slide__footer {
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
    padding-top: 2.75rem;
    margin-top: 0.5rem;
}

.testimonial-holder .tesimonials .slideImage {
    min-height: 85px;
    margin-bottom: 0.75rem;
}

.testimonial-holder .tesimonials .slideImage a {
    display: inline-block;
}

.testimonial-holder .tesimonials img.testimonial-fixed-image {
    width: 85px !important;
    height: 85px !important;
    max-width: 85px !important;
    min-width: 85px;
    object-fit: cover;
    display: inline-block !important;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-holder .tesimonials .testimonialName {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    color: #062433 !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 2;
    padding-bottom: 0.5rem;
}

.testimonial-holder .tesimonials .testimonialName h3 {
    margin: 0 0 0.25rem;
    font-size: 1.125rem;
    color: #062433 !important;
}

.testimonial-holder .tesimonials .testimonialName span {
    display: block;
    font-size: 0.85rem;
    color: #5a6578 !important;
    word-break: break-word;
    max-width: 100%;
}

@media (min-width: 768px) {
    .testimonial-holder .tesimonials .testimonial-review {
        max-height: 240px;
    }
}

@media (min-width: 1200px) {
    .testimonial-holder .tesimonials .testimonial-review {
        max-height: 260px;
    }
}
