/* Google Reviews Section Styles */
.testimonials-section.google-reviews-section {
    padding: 80px 0;
    background-color: #ffffff;
    overflow: hidden;
    position: relative;
}

.google-header {
    margin-bottom: 60px;
    padding: 0 20px;
    text-align: center;
}

.google-logo-text {
    font-family: 'Product Sans', Arial, sans-serif;
    /* Product Sans is Google's font, fallback to Arial */
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    letter-spacing: -1px;
}

.google-logo-text span {
    display: inline-block;
}

.g-blue {
    color: #4285F4;
}

.g-red {
    color: #DB4437;
}

.g-yellow {
    color: #F4B400;
}

.g-green {
    color: #0F9D58;
}

.g-dark {
    color: #202124;
    margin-left: 12px;
    font-weight: 400;
    letter-spacing: normal;
}

.reviews-marquee {
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
    position: relative;
    /* Soft edges for the marquee */
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marquee-track {
    display: flex;
    gap: 30px;
    width: max-content;
    /* Adjust time for speed */
    animation: scrollMarquee 60s linear infinite;
    padding-left: 30px;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* We assume the track contains two identical sets of cards. 
       When it reaches -50%, it snaps back to 0 without user noticing. */
}

/* Review Card Styling */
.review-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    width: 380px;
    min-width: 380px;
    /* Ensure fixed width */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e0e0e0;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #d0d0d0;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
}

.review-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.r-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 500;
    text-transform: uppercase;
    flex-shrink: 0;
}

.bg-blue {
    background-color: #4285F4;
}

.bg-red {
    background-color: #DB4437;
}

.bg-green {
    background-color: #0F9D58;
}

.bg-purple {
    background-color: #8E24AA;
}

.bg-orange {
    background-color: #FB8C00;
}

.r-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1;
    /* Takes up remaining space */
}

.r-info strong {
    font-size: 1.05rem;
    color: #202124;
    font-weight: 600;
    line-height: 1.2;
}

.r-info span {
    font-size: 0.85rem;
    color: #5f6368;
}

.r-google-icon {
    flex-shrink: 0;
}

.r-google-icon img {
    width: 28px;
    height: 28px;
    opacity: 0.8;
}

.r-stars {
    color: #F4B400;
    font-size: 1.1rem;
    margin-bottom: 12px;
    text-align: left;
    display: flex;
    gap: 2px;
}

.r-text {
    font-size: 0.95rem;
    color: #3c4043;
    line-height: 1.6;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .google-logo-text {
        font-size: 2.2rem;
    }

    .review-card {
        width: 300px;
        min-width: 300px;
        padding: 20px;
    }

    .reviews-marquee {
        padding: 20px 0;
    }
}