/* bravo-reviews — Elementor Widget
   Scope: .bravo-reviews  /  prefix: .brev-*
   Desktop ≥ 1025px: 3 cards | Tablet 768–1024px: 2 cards | Mobile < 768px: 1 card
*/

/* ── Elementor panel icon ─────────────────────────────── */
.bravo-icon-reviews {
    display: inline-block;
    width: 1em;
    height: 1em;
    background: url('../img/bravo-mark-2.svg') no-repeat center / contain;
    vertical-align: middle;
}
.bravo-icon-reviews::before { content: ''; }

/* ── Elementor wrapper override — allow widget to overflow column ── */
.elementor-widget-bravo-reviews,
.elementor-widget-bravo-reviews > .elementor-widget-container {
    overflow: visible !important;
}

/* ── Root — centered via left+transform so px widths > container work ── */
.bravo-reviews {
    position: relative;
    width: 100%; /* overridden per breakpoint by Elementor carousel_width control */
    left: 50%;
    transform: translateX(-50%);
    font-family: inherit;
    overflow: visible;
}

/* ── Outer wrap: [arrow] [viewport] [arrow] ───────────── */
.brev-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    overflow: visible;
    width: 100%;
}

/* ── Viewport: clip horizontal slide, allow vertical overflow ─ */
.brev-viewport {
    flex: 1 1 0;
    min-width: 0;
    overflow-x: clip;
    overflow-y: visible;
}

/* ── Track ────────────────────────────────────────────── */
.brev-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: var(--brev-gap, 24px);
}

/* ── Card ─────────────────────────────────────────────── */
.brev-card {
    flex: 0 0 var(--brev-card-w, calc(33.333% - 16px));
    min-width: 0;
    background-color: #ffffff;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.09);
}

/* ── Card header: avatar + name/date ─────────────────── */
.brev-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brev-card__avatar-wrap {
    flex-shrink: 0;
}

.brev-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.brev-card__avatar--initials {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #201d49;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.brev-card__header-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.brev-card__name {
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.3;
    color: #201d49;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brev-card__date {
    font-size: 0.8125rem;
    color: #9CA3AF;
    line-height: 1.3;
}

/* ── Stars ────────────────────────────────────────────── */
.brev-card__stars {
    font-size: 18px;
    line-height: 1;
    letter-spacing: 0.05em;
}

.brev-star--filled { color: #F59E0B; }
.brev-star--empty  { color: #D1D5DB; }

/* ── Review text ──────────────────────────────────────── */
.brev-card__text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #4B5563;
    flex: 1 1 auto;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Navigation arrows — bare icon, no box ───────────── */
.bravo-reviews .brev-arrow {
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    background: none;
    border: none;
    padding: 0;
    flex-shrink: 0;
    cursor: pointer;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    position: relative;
    z-index: 2;
}

.bravo-reviews .brev-arrow:hover {
    opacity: 0.7;
    background: none !important;
    background-color: transparent !important;
}

.bravo-reviews .brev-arrow.is-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.brev-arrow--prev { margin-right: 16px; }
.brev-arrow--next { margin-left:  16px; }

.brev-arrow svg {
    display: block;
    width: 32px;
    height: 32px;
}

/* ── Responsive: mobile ───────────────────────────────── */
@media (max-width: 767px) {
    .brev-card__text { -webkit-line-clamp: 5; }
    .brev-card { padding: 20px; }
}
