/* =====================================================
   Bera Software — Client Feedback Section
   ===================================================== */

.bs-testimonials,
.bs-testimonials * {
    box-sizing: border-box;
}

.bs-testimonials {
    --bs-feedback-bg: #0b0d10;
    --bs-feedback-card: #15181d;
    --bs-feedback-border: rgba(255, 255, 255, 0.1);
    --bs-feedback-text: #f6f3ea;
    --bs-feedback-muted: #a8adb6;
    --bs-feedback-yellow: #ffc43d;

    position: relative;
    overflow: hidden;

    width: 100%;
    padding: 76px 0 82px;

    color: var(--bs-feedback-text);
    background:
        radial-gradient(
            circle at 85% 10%,
            rgba(255, 196, 61, 0.1),
            transparent 27%
        ),
        var(--bs-feedback-bg);
}

.bs-testimonials-container {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}


/* Header */

.bs-testimonials-header {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    align-items: end;
    gap: 50px;

    margin-bottom: 34px;
}

.bs-testimonials-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 13px;

    color: var(--bs-feedback-yellow);

    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.bs-testimonials-eyebrow::before {
    content: "";

    width: 30px;
    height: 2px;

    background: var(--bs-feedback-yellow);
}

.bs-testimonials-header h2 {
    max-width: 700px;
    margin: 0;

    font-size: clamp(38px, 4.3vw, 62px);
    font-weight: 650;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.bs-testimonials-header h2 span {
    display: block;
    color: var(--bs-feedback-yellow);
}

.bs-testimonials-intro {
    padding-bottom: 3px;
}

.bs-testimonials-intro p {
    margin: 0 0 14px;

    color: var(--bs-feedback-muted);

    font-size: 15px;
    line-height: 1.65;
}

.bs-testimonials-proof {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #d8dbe0;

    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.bs-testimonials-proof::before {
    content: "✓";

    display: grid;
    place-items: center;

    width: 18px;
    height: 18px;

    border-radius: 50%;

    color: #0b0d10;
    background: var(--bs-feedback-yellow);

    font-size: 11px;
    font-weight: 900;
}


/* Main Grid */

.bs-testimonials-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
}

.bs-feedback-panel {
    min-width: 0;
    height: 405px;
    padding: 18px;

    border: 1px solid var(--bs-feedback-border);
    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.015)
        ),
        var(--bs-feedback-card);

    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}

.bs-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;

    height: 44px;
    margin-bottom: 13px;
}

.bs-panel-label {
    display: block;

    color: var(--bs-feedback-text);

    font-size: 15px;
    font-weight: 700;
    line-height: 1.1;
}

.bs-panel-heading p {
    margin: 5px 0 0;

    color: var(--bs-feedback-muted);

    font-size: 12px;
    line-height: 1.2;
}

.bs-slider-count,
.bs-review-count {
    color: var(--bs-feedback-muted);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}


/* Video Slider */

.bs-video-stage {
    position: relative;

    height: 280px;
}

.bs-video-slide {
    height: 100%;

    animation: bsFeedbackReveal 450ms ease both;
}

.bs-video-slide:not(.is-active) {
    display: none;
}

.bs-video-open {
    position: relative;
    overflow: hidden;

    display: block;

    width: 100%;
    height: 220px;
    padding: 0;

    border: 0;
    border-radius: 14px;

    background: #050607;

    cursor: pointer;
}

.bs-video-open img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    transition:
        transform 500ms ease,
        opacity 300ms ease;
}

.bs-video-open:hover img {
    opacity: 0.86;
    transform: scale(1.025);
}

.bs-video-shade {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.6),
            transparent 50%
        );
}

.bs-video-play {
    position: absolute;
    top: 50%;
    left: 50%;

    display: grid;
    place-items: center;

    width: 44px;
    height: 44px;

    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;

    color: #ffffff;
    background: rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.25),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);

    transform: translate(-50%, -50%);

    transition:
        transform 200ms ease,
        background 200ms ease,
        border-color 200ms ease;
}

.bs-video-play svg {
    width: 24px;
    height: 24px;

    fill: currentColor;

    transform: translateX(1px);
}

.bs-video-open:hover .bs-video-play {
    border-color: #ffc43d;

    color: #ffc43d;
    background: rgba(0, 0, 0, 0.38);

    transform: translate(-50%, -50%) scale(1.08);
}

.bs-video-open:hover .bs-video-play {
    background: #ffffff;
    transform: translate(-50%, -50%) scale(1.08);
}

.bs-video-play svg {
    width: 25px;
    height: 25px;

    fill: currentColor;
}

.bs-video-source {
    position: absolute;
    right: 12px;
    bottom: 11px;

    padding: 6px 9px;

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;

    color: #ffffff;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(8px);

    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.03em;
}

.bs-video-information {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    min-height: 60px;
    padding: 11px 3px 0;
}

.bs-video-information h3 {
    margin: 0 0 4px;

    color: var(--bs-feedback-text);

    font-size: 15px;
    font-weight: 700;
}

.bs-video-information p {
    margin: 0;

    color: var(--bs-feedback-muted);

    font-size: 12px;
}

.bs-video-information > span {
    max-width: 155px;

    color: var(--bs-feedback-yellow);

    font-size: 11px;
    font-weight: 650;
    line-height: 1.35;
    text-align: right;
}


/* Written Review Slider */

.bs-review-stage {
    position: relative;

    height: 280px;
}

.bs-review-slide {
    display: flex;
    flex-direction: column;

    height: 100%;

    animation: bsFeedbackReveal 450ms ease both;
}

.bs-review-slide:not(.is-active) {
    display: none;
}

.bs-review-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    margin-bottom: 18px;
}

.bs-platform {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 6px 9px;

    border: 1px solid var(--bs-feedback-border);
    border-radius: 50px;

    color: #e9ebee;
    background: rgba(255, 255, 255, 0.035);

    font-size: 10px;
    font-weight: 650;
}

.bs-platform-google b {
    color: #4285f4;
    font-size: 13px;
}

.bs-platform-trustpilot b {
    color: #00b67a;
    font-size: 14px;
}

.bs-review-stars,
.bs-modal-stars {
    color: var(--bs-feedback-yellow);

    font-size: 13px;
    letter-spacing: 1px;
}

.bs-review-text {
    display: -webkit-box;
    overflow: hidden;

    margin: 0;

    color: #eef0f3;

    font-size: 15px;
    font-weight: 400;
    line-height: 1.65;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    line-clamp: 6;
}

.bs-review-text::before {
    content: "“";

    margin-right: 4px;

    color: var(--bs-feedback-yellow);

    font-family: Georgia, serif;
    font-size: 27px;
    line-height: 0;
}

.bs-review-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;

    margin-top: auto;
    padding-top: 16px;

    border-top: 1px solid var(--bs-feedback-border);
}

.bs-review-person {
    display: flex;
    align-items: center;
    gap: 10px;

    min-width: 0;
}

.bs-review-person > span {
    flex: 0 0 auto;

    display: grid;
    place-items: center;

    width: 36px;
    height: 36px;

    border-radius: 50%;

    color: #0b0d10;
    background: var(--bs-feedback-yellow);

    font-size: 11px;
    font-weight: 800;
}

.bs-review-person h3 {
    overflow: hidden;

    max-width: 155px;
    margin: 0 0 3px;

    color: var(--bs-feedback-text);

    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bs-review-person p {
    margin: 0;

    color: var(--bs-feedback-muted);

    font-size: 10px;
}

.bs-review-actions {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 6px;
}

.bs-read-review,
.bs-review-actions a {
    padding: 0;

    border: 0;

    color: var(--bs-feedback-yellow);
    background: transparent;

    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;

    cursor: pointer;
}

.bs-review-actions a {
    color: var(--bs-feedback-muted);
}

.bs-read-review:hover,
.bs-review-actions a:hover {
    color: #ffffff;
}


/* Slider Controls */

.bs-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    height: 32px;
    margin-top: 9px;
}

.bs-slider-button {
    display: grid;
    place-items: center;

    width: 30px;
    height: 30px;
    padding: 0;

    border: 1px solid var(--bs-feedback-border);
    border-radius: 50%;

    color: #ffffff;
    background: transparent;

    cursor: pointer;

    transition:
        color 180ms ease,
        border-color 180ms ease,
        background 180ms ease;
}

.bs-slider-button:hover {
    border-color: var(--bs-feedback-yellow);

    color: #0b0d10;
    background: var(--bs-feedback-yellow);
}

.bs-slider-button svg {
    width: 15px;
    height: 15px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bs-video-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bs-video-dots span {
    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.25);

    transition:
        width 200ms ease,
        background 200ms ease;
}

.bs-video-dots span.is-active {
    width: 18px;

    border-radius: 20px;

    background: var(--bs-feedback-yellow);
}

.bs-review-progress {
    overflow: hidden;

    width: 80px;
    height: 3px;

    border-radius: 20px;

    background: rgba(255, 255, 255, 0.12);
}

.bs-review-progress span {
    display: block;

    width: 12.5%;
    height: 100%;

    border-radius: inherit;

    background: var(--bs-feedback-yellow);

    transition: width 350ms ease;
}


/* Animation */

@keyframes bsFeedbackReveal {
    from {
        opacity: 0;
        transform: translateY(7px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Modals */

.bs-feedback-modal[hidden] {
    display: none;
}

.bs-feedback-modal {
    position: fixed;
    z-index: 99999;
    inset: 0;

    display: grid;
    place-items: center;

    padding: 22px;

    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(8px);
}

.bs-modal-dialog {
    position: relative;
    overflow: auto;

    width: min(900px, 100%);
    max-height: calc(100vh - 44px);
    padding: 20px;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;

    color: #ffffff;
    background: #12151a;

    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.55);

    animation: bsModalOpen 250ms ease both;
}

@keyframes bsModalOpen {
    from {
        opacity: 0;
        transform: scale(0.97);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.bs-modal-close {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 10px;

    display: grid;
    place-items: center;

    width: 38px;
    height: 38px;
    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;

    color: #ffffff;
    background: rgba(0, 0, 0, 0.7);

    font-size: 25px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;
}

.bs-video-dialog {
    width: min(760px, 100%);
    overflow: hidden;
}

.bs-video-embed {
    overflow: hidden;

    width: 100%;
    height: min(72vh, 650px);

    border-radius: 12px;

    background: #000000;
}

.bs-facebook-frame {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;
}

.bs-facebook-frame {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;
}

.bs-open-facebook {
    display: block;

    margin-top: 14px;

    color: #ffc43d;

    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.bs-review-dialog {
    width: min(650px, 100%);
    padding: 38px;
}

.bs-review-dialog h2 {
    margin: 14px 45px 7px 0;

    color: #ffffff;

    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.15;
}

.bs-modal-platform {
    color: #ffc43d;

    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bs-modal-stars {
    margin-bottom: 22px;
}

.bs-modal-review-copy {
    margin: 0;

    color: #d8dbe0;

    font-size: 16px;
    line-height: 1.75;
    white-space: pre-line;
}

.bs-modal-source {
    display: inline-block;

    margin-top: 25px;

    color: #ffc43d;

    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

body.bs-modal-is-open {
    overflow: hidden;
}

.bs-visually-hidden {
    position: absolute !important;

    overflow: hidden;

    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;

    border: 0 !important;

    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}


/* Focus */

.bs-testimonials button:focus-visible,
.bs-testimonials a:focus-visible,
.bs-feedback-modal button:focus-visible,
.bs-feedback-modal a:focus-visible {
    outline: 2px solid #ffc43d;
    outline-offset: 3px;
}


/* Tablet */

@media (max-width: 900px) {

    .bs-testimonials {
        padding: 66px 0 72px;
    }

    .bs-testimonials-header {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bs-testimonials-grid {
        grid-template-columns: 1fr;
    }

    .bs-feedback-panel {
        height: 405px;
    }

}


/* Mobile */

@media (max-width: 600px) {

    .bs-testimonials {
        padding: 55px 0 60px;
    }

    .bs-testimonials-container {
        width: min(100% - 28px, 1200px);
    }

    .bs-testimonials-header {
        margin-bottom: 27px;
    }

    .bs-testimonials-header h2 {
        font-size: 39px;
    }

    .bs-testimonials-intro p {
        font-size: 14px;
    }

    .bs-feedback-panel {
        height: 390px;
        padding: 14px;

        border-radius: 18px;
    }

    .bs-video-stage,
    .bs-review-stage {
        height: 270px;
    }

    .bs-video-open {
        height: 210px;
    }

    .bs-video-information > span {
        display: none;
    }

    .bs-review-text {
        font-size: 14px;
        line-height: 1.6;

        -webkit-line-clamp: 6;
        line-clamp: 6;
    }

    .bs-review-bottom {
        gap: 8px;
    }

    .bs-review-person h3 {
        max-width: 120px;
    }

    .bs-review-dialog {
        padding: 32px 22px 26px;
    }

    .bs-video-dialog {
        padding: 10px;
    }

    .bs-video-embed {
        margin-top: 42px;
        aspect-ratio: 9 / 12;
    }

}


/* Reduced Motion */

@media (prefers-reduced-motion: reduce) {

    .bs-video-slide,
    .bs-review-slide,
    .bs-modal-dialog {
        animation: none;
    }

    .bs-video-open img,
    .bs-video-play,
    .bs-video-dots span,
    .bs-review-progress span {
        transition: none;
    }

}