/* Google reviews panel inside the video-testimonials header column. */

.ogr {
    margin-top: 16px;
    max-width: 410px;
}

/* Summary line: G logo + average + stars. */
.ogr__summary {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: #111;
}

.ogr__avg {
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

/* Star rows (base gray, green fill overlay for fractional averages). */
.ogr-stars {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.ogr-stars svg {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: top;
}

.ogr-stars__base svg {
    fill: #d8d8d8;
}

.ogr-stars__fill {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
}

.ogr-stars__fill svg {
    fill: var(--brand-green, #8cb83b);
}

/* Card carousel: native horizontal scroll with snap points. */
.ogr__viewport {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    outline: none;
    border-radius: 14px;
}

.ogr__viewport::-webkit-scrollbar {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .ogr__viewport {
        cursor: grab;
    }
}

.ogr__viewport.is-dragging {
    scroll-snap-type: none;
    cursor: grabbing;
    scroll-behavior: auto;
    user-select: none;
}

.ogr__carousel {
    position: relative;
}

.ogr-card {
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.05);
    border-radius: 14px;
    padding: 18px 18px 34px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.ogr-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.ogr-card__text {
    margin: 0;
    color: #374151;
    font-size: 15px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ogr-card.is-expanded .ogr-card__text {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.ogr-card__toggle {
    align-self: flex-start;
    margin-top: 6px;
    padding: 0;
    background: none;
    border: 0;
    color: #27830d;
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(71, 180, 37, 0.35);
    text-underline-offset: 3px;
    cursor: pointer;
}

.ogr-card__toggle:hover,
.ogr-card__toggle:focus {
    color: #1f6f0a;
    text-decoration-color: currentColor;
}

.ogr-card__author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
}

.ogr-card .ogr-card__avatar,
.ogr-card img.ogr-card__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

.ogr-card__avatar--fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-green, #8cb83b);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.ogr-card__meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ogr-card__name {
    color: #111;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ogr-card__date {
    color: #6b7280;
    font-size: 12.5px;
    line-height: 1.3;
}

/* Minimal line indicators inside the review bubble; the active one doubles
   as the autoplay progress loader. */
.ogr__dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

.ogr__dot {
    position: relative;
    width: 12px;
    height: 3px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.14);
    overflow: hidden;
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}

.ogr__dot.is-active {
    width: 30px;
    background: rgba(140, 184, 59, 0.22);
}

.ogr__dot-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: var(--brand-green, #8cb83b);
    transform: scaleX(0);
    transform-origin: left center;
}

.ogr__dot.is-active .ogr__dot-progress {
    animation: ogr-progress var(--ogr-interval, 7s) linear forwards;
}

.ogr.is-paused .ogr__dot-progress {
    animation-play-state: paused;
}

@keyframes ogr-progress {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
    .ogr__dot.is-active .ogr__dot-progress {
        animation: none;
        transform: scaleX(1);
    }
}

/* The panel replaces the static subtitle, keep the heading tight above it. */
.testimonial-slider-header--google h2 {
    margin-bottom: 10px;
}

@media (min-width: 992px) {
    .testimonial-slider-header--google h2 {
        font-size: 33px;
    }
}
