/* Blaster Testimonials for Elementor */

.bte-testimonials {
    --bte-cols: var(--bte-columns-desktop, 3);
    --bte-gap: 28px;
    --bte-ink: #111827;
    --bte-muted: #6b7280;
    --bte-line: #e5e7eb;
    --bte-accent: #6366f1;
    --bte-star: #f5a623;
    --bte-star-empty: #e5e7eb;
    --bte-card-lift: -4px;
    position: relative;
    width: 100%;
}

@media (max-width: 1024px) {
    .bte-testimonials { --bte-cols: var(--bte-columns-tablet, 2); }
}

@media (max-width: 767px) {
    .bte-testimonials {
        --bte-cols: var(--bte-columns-mobile, 1);
        --bte-gap: 20px;
    }
}

.bte-testimonials *,
.bte-testimonials *::before,
.bte-testimonials *::after {
    box-sizing: border-box;
}

/* Grid */

.bte-grid {
    display: grid;
    grid-template-columns: repeat(var(--bte-cols), minmax(0, 1fr));
    gap: var(--bte-gap);
}

/* Card */

.bte-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 32px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--bte-line);
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
}

.bte-card:hover {
    transform: translateY(var(--bte-card-lift));
    box-shadow: 0 20px 40px -22px rgba(17, 24, 39, 0.25);
}

/* Quote icon */

.bte-quote-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: var(--bte-justify, flex-start);
    margin-bottom: 18px;
    color: var(--bte-accent);
    font-size: 34px;
    line-height: 1;
}

.bte-quote-icon svg,
.bte-star svg,
.bte-arrow-icon svg {
    display: block;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.bte-quote-top-right .bte-quote-icon,
.bte-quote-watermark .bte-quote-icon {
    position: absolute;
    top: calc(22px + var(--bte-quote-y, 0px));
    right: calc(24px + var(--bte-quote-x, 0px));
    margin: 0;
    pointer-events: none;
}

.bte-quote-top-right .bte-quote-icon {
    font-size: 42px;
    opacity: 0.22;
}

.bte-quote-watermark .bte-quote-icon {
    z-index: 0;
    font-size: 140px;
    opacity: 0.07;
}

/* Keep content above the watermark. */
.bte-quote-watermark .bte-card > *:not(.bte-quote-icon),
.bte-quote-watermark .bte-main > *:not(.bte-quote-icon),
.bte-quote-watermark .bte-bubble > *:not(.bte-quote-icon) {
    position: relative;
    z-index: 1;
}

/* Rating */

.bte-rating {
    display: inline-flex;
    align-self: var(--bte-justify, flex-start);
    gap: 3px;
    margin-bottom: 14px;
    font-size: 17px;
    line-height: 1;
}

.bte-star {
    display: inline-flex;
    color: var(--bte-star-empty);
}

.bte-star.is-filled {
    color: var(--bte-star);
}

.bte-author-info .bte-rating {
    margin: 6px 0 0;
    font-size: 14px;
}

/* Heading and text */

.bte-testimonials .bte-title {
    margin: 0 0 10px;
    padding: 0;
    color: var(--bte-ink);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.bte-testimonials blockquote.bte-text {
    margin: 0 0 26px;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    color: #374151;
    font-size: 16px;
    font-style: normal;
    line-height: 1.7;
    quotes: none;
}

.bte-testimonials blockquote.bte-text::before,
.bte-testimonials blockquote.bte-text::after {
    content: none;
    display: none;
}

.bte-text p {
    margin: 0 0 0.8em;
}

.bte-text > :last-child {
    margin-bottom: 0;
}

/* Client */

.bte-author {
    display: flex;
    align-items: center;
    justify-content: var(--bte-justify, flex-start);
    gap: var(--bte-photo-gap, 14px);
    margin-top: auto;
    border-top: 0 solid var(--bte-line);
}

.bte-photo {
    flex: 0 0 auto;
    width: var(--bte-photo, 56px);
    height: var(--bte-photo, 56px);
    overflow: hidden;
    border-radius: 50%;
    background: #eef2ff;
}

.bte-photo img,
.bte-photo .bte-photo-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
}

.bte-photo-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: #fff;
    font-size: calc(var(--bte-photo, 56px) * 0.36);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.bte-author-info {
    display: flex;
    flex-direction: column;
    align-items: var(--bte-justify, flex-start);
    gap: 2px;
    min-width: 0;
}

.bte-name {
    color: var(--bte-ink);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.bte-role {
    color: var(--bte-muted);
    font-size: 14px;
    line-height: 1.45;
}

/* Layout: Classic */

.bte-skin-classic .bte-author {
    padding-top: 20px;
    border-top-width: 1px;
}

/* Layout: Speech Bubble */

.bte-skin-bubble .bte-card {
    padding: 0 0 4px;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.bte-skin-bubble .bte-card:hover {
    box-shadow: none;
}

.bte-bubble {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    margin-bottom: 26px;
    padding: 28px;
    background: var(--bte-bubble-bg, #fff);
    border: 1px solid var(--bte-bubble-border, var(--bte-line));
    border-radius: 18px;
    box-shadow: 0 12px 30px -20px rgba(17, 24, 39, 0.3);
}

.bte-bubble::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: var(--bte-tail-left, 40px);
    width: 18px;
    height: 18px;
    background: var(--bte-bubble-bg, #fff);
    border-right: 1px solid var(--bte-bubble-border, var(--bte-line));
    border-bottom: 1px solid var(--bte-bubble-border, var(--bte-line));
    transform: rotate(45deg);
}

.bte-bubble > :last-child {
    margin-bottom: 0;
}

.bte-skin-bubble .bte-author {
    margin-top: 0;
    padding-left: 18px;
}

/* Layout: Centered */

.bte-skin-centered .bte-card {
    --bte-justify: center;
    --bte-photo: 80px;
    align-items: stretch;
    text-align: center;
}

.bte-skin-centered .bte-photo {
    align-self: var(--bte-justify, center);
    margin-bottom: 18px;
}

.bte-skin-centered .bte-card > .bte-author-info {
    margin-top: auto;
}

/* Layout: Side Photo (wraps to a stacked card when narrow) */

.bte-skin-side .bte-card {
    --bte-photo: 84px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 28px;
}

.bte-side {
    display: flex;
    flex: 1 1 140px;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.bte-side .bte-author-info {
    align-items: center;
}

.bte-main {
    display: flex;
    flex: 999 1 260px;
    flex-direction: column;
    min-width: 0;
}

/* Slider */

.bte-stage {
    position: relative;
}

.bte-viewport {
    overflow: hidden;
    /* Room for the hover lift and shadow, which overflow: hidden would otherwise cut off. */
    margin: -12px 0 -28px;
    padding: 12px 0 28px;
    touch-action: pan-y;
}

.bte-grid.bte-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

.bte-track > .bte-card {
    flex: 0 0 calc((100% - (var(--bte-cols) - 1) * var(--bte-gap)) / var(--bte-cols));
}

.bte-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.bte-nav-top .bte-toolbar {
    margin-bottom: 24px;
}

.bte-nav-bottom .bte-toolbar,
.bte-nav-sides .bte-toolbar {
    margin-top: 28px;
}

.bte-nav-sides .bte-toolbar {
    justify-content: center;
}

.bte-arrows {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.bte-testimonials .bte-arrow {
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin: 0;
    padding: 0;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    background: #fff;
    box-shadow: none;
    color: var(--bte-ink);
    font-family: inherit;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.bte-testimonials .bte-arrow:hover {
    border-color: var(--bte-ink);
    background: var(--bte-ink);
    color: #fff;
}

.bte-arrow-icon {
    display: inline-flex;
    line-height: 1;
}

.bte-nav-sides .bte-stage > .bte-arrow {
    position: absolute;
    top: var(--bte-arrow-top, 50%);
    z-index: 3;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.16);
    transform: translateY(-50%);
}

.bte-nav-sides .bte-stage > .bte-prev {
    left: var(--bte-arrow-offset, 12px);
}

.bte-nav-sides .bte-stage > .bte-next {
    right: var(--bte-arrow-offset, 12px);
}

/* Pagination */

.bte-dots {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.bte-testimonials .bte-dot {
    appearance: none;
    width: var(--bte-dot, 8px);
    height: var(--bte-dot, 8px);
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #d1d5db;
    box-shadow: none;
    cursor: pointer;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.bte-testimonials .bte-dot.is-active {
    width: var(--bte-dot-active, 24px);
    background: var(--bte-ink);
}

.bte-progress {
    flex: 1;
    max-width: 320px;
    height: 3px;
    overflow: hidden;
    border-radius: 3px;
    background: var(--bte-line);
}

.bte-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--bte-ink);
    transition: width 0.6s ease;
}

.bte-counter {
    color: var(--bte-ink);
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.bte-counter-sep {
    margin: 0 6px;
    opacity: 0.4;
}

/* Everything fits: no navigation needed. */
.bte-testimonials.bte-static .bte-arrow,
.bte-testimonials.bte-static .bte-dots,
.bte-testimonials.bte-static .bte-progress,
.bte-testimonials.bte-static .bte-counter {
    display: none;
}

/* Focus */

.bte-testimonials button:focus-visible {
    outline: 2px solid var(--bte-accent);
    outline-offset: 3px;
}

.bte-notice {
    padding: 12px 16px;
    border-left: 4px solid #f59e0b;
    background: #fffbeb;
    color: #92400e;
}

@media (prefers-reduced-motion: reduce) {
    .bte-card,
    .bte-grid.bte-track,
    .bte-progress span,
    .bte-testimonials .bte-dot {
        transition: none;
    }

    .bte-card:hover {
        transform: none;
    }
}
