.google-cta {
    position: relative;
    overflow: hidden;
    padding: 60px var(--pad-x);
    /* Fallback backdrop so the light text stays readable even before a
       background image is set (the image + overlay sit on top of this). */
    background: var(--color-dark);
}

.google-cta__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.google-cta__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.google-cta__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(32, 18, 17, 0.55);
}

.google-cta__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 940px;
    margin: 0 auto;
}

.google-cta__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.google-cta__rating-line {
    flex: 1 1 auto;
    height: 1px;
    background: var(--color-light);
    opacity: 0.4;
}

.google-cta__rating-score {
    flex: 0 0 auto;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 36px;
    line-height: 42px;
    color: var(--color-light);
    white-space: nowrap;
}

.google-cta__rating-label {
    flex: 0 0 auto;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: var(--color-light);
    white-space: nowrap;
}

.google-cta__stars {
    flex: 0 0 auto;
    color: var(--color-blush);
    font-size: 31px;
    letter-spacing: 2px;
}

.google-cta__google-icon {
    flex: 0 0 auto;
    width: 31px;
    height: 31px;
}

.google-cta__quote {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 28px;
    line-height: 34px;
    color: var(--color-light);
    text-align: center;
}

.google-cta__author {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-light);
    opacity: 0.8;
}

.google-cta__slider {
    width: 100%;
    overflow: hidden;
}

.google-cta__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.google-cta__track::-webkit-scrollbar {
    display: none;
}

.google-cta__slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.google-cta__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.google-cta__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: none;
    border: none;
    color: var(--color-light);
    cursor: pointer;
    transition: opacity var(--transition);
}

.google-cta__arrow:hover {
    opacity: 0.6;
}

.google-cta__arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.google-cta__arrow-icon {
    display: block;
    width: 48px;
    height: auto;
}

.google-cta__arrow--prev .google-cta__arrow-icon {
    transform: rotate(180deg);
}

@media (max-width: 1024px) {
    .google-cta__quote {
        font-size: 24px;
        line-height: 32px;
    }
}

@media (max-width: 767px) {
    .google-cta__rating {
        flex-wrap: wrap;
    }

    .google-cta__rating-line {
        display: none;
    }

    .google-cta__quote {
        font-size: 20px;
        line-height: 28px;
    }
}
