/*
 * 12 Testimonials Styles.
 * Purpose: Centralized, standard testimonial card and carousel overrides.
 * Aesthetic: Premium floating SaaS cards with micro-hover translates and cyan avatars.
 */

div.wp-block-kadence-testimonials div.kt-testimonial-item-wrap,
.editor-styles-wrapper div.wp-block-kadence-testimonials div.kt-testimonial-item-wrap {
    background-color: #ffffff;
    padding: clamp(30px, 4vw, 50px) clamp(20px, 3vw, 40px);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(8, 38, 60, 0.04);
    border: 1px solid rgba(8, 38, 60, 0.08);
    max-width: 780px;
    margin: 0 auto;
    box-sizing: border-box;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

div.wp-block-kadence-testimonials div.kt-testimonial-item-wrap:hover,
.editor-styles-wrapper div.wp-block-kadence-testimonials div.kt-testimonial-item-wrap:hover {
    transform: translateY(-6px);
    border-color: rgba(60, 188, 230, 0.6); /* Brand Cyan highlight border on hover */
    box-shadow: 0 16px 36px rgba(8, 38, 60, 0.1);
}

.wp-block-kadence-testimonials .kt-testimonial-content,
.editor-styles-wrapper .wp-block-kadence-testimonials .kt-testimonial-content {
    font-size: clamp(16px, 1.8vw, 19px) !important;
    line-height: 1.6 !important;
    font-style: italic !important;
    margin-bottom: 20px !important;
}

div.wp-block-kadence-testimonials div.kt-testimonial-item-wrap .kt-testimonial-name,
.editor-styles-wrapper div.wp-block-kadence-testimonials div.kt-testimonial-item-wrap .kt-testimonial-name {
    color: var(--global-palette1, var(--dmax-blue, #155492)) !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
}

div.wp-block-kadence-testimonials .kt-testimonial-rating-wrap,
.editor-styles-wrapper div.wp-block-kadence-testimonials .kt-testimonial-rating-wrap {
    color: #ffd700 !important;
    letter-spacing: 2px !important;
    margin-bottom: 12px !important;
}

div.wp-block-kadence-testimonials .kt-blocks-carousel .kt-blocks-carousel-init:not(.kt-carousel-arrowstyle-none):not(.tns-slider) {
    padding-left: 0;
    padding-right: 0;
}

div.wp-block-kadence-testimonials .kt-testimonial-media-inner-wrap,
.editor-styles-wrapper div.wp-block-kadence-testimonials .kt-testimonial-media-inner-wrap {
    /* width: 72px !important; */
    /* overflow: hidden !important; */
    border-radius: 50%; /* /dental-sensors/ */
    border: 2px solid var(--dmax-sky, #3cbce6);
    /* margin-bottom: 1rem; */
}

div.wp-block-kadence-testimonials .kt-testimonial-media-inner-wrap img,
.editor-styles-wrapper div.wp-block-kadence-testimonials .kt-testimonial-media-inner-wrap img {
    /* width: 72px !important; */
    /* height: 72px !important; */
    /* object-fit: cover !important; */
}

div.wp-block-kadence-testimonials .dmax-reviews-source,
.editor-styles-wrapper div.wp-block-kadence-testimonials .dmax-reviews-source {
    margin-top: 18px !important;
    color: #757575 !important;
}

/* Equal-height review cards (#52, round-3 feedback): carousel slides share the
   track height (set by the tallest card), but the cards inside don't stretch,
   so shorter cards end mid-air next to taller ones. Flex the slide and let the
   card fill it — every card matches the tallest sibling. */
div.wp-block-kadence-testimonials .kt-blocks-testimonial-carousel-item,
.editor-styles-wrapper div.wp-block-kadence-testimonials .kt-blocks-testimonial-carousel-item {
    display: flex;
}

div.wp-block-kadence-testimonials .kt-blocks-testimonial-carousel-item .kt-testimonial-item-wrap,
.editor-styles-wrapper div.wp-block-kadence-testimonials .kt-blocks-testimonial-carousel-item .kt-testimonial-item-wrap {
    flex: 1 1 auto;
    width: 100%;
    box-sizing: border-box;
}
