/* EmbedSocial Google Reviews Widget Styling */
.testimonial-slider {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

/* EmbedSocial Widget Styling */
.embedsocial-widget {
    width: 100% !important;
    max-width: 100% !important;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%) !important;
    border-radius: 16px !important;
    padding: 2rem !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    overflow: hidden !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    margin: 0 auto !important;
}

.embedsocial-widget:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12) !important;
}

/* Hide the default powered-by link */
.embedsocial-widget .powered-by-es {
    display: none !important;
}

/* Add a modern top border */
.embedsocial-widget::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color)) !important;
    z-index: 1 !important;
}

/* Style individual review cards within EmbedSocial */
.embedsocial-widget .es-review-card,
.embedsocial-widget [class*="review"],
.embedsocial-widget div[data-testid*="review"] {
    background: #fff !important;
    border-radius: 12px !important;
    margin: 1rem 0 !important;
    padding: 2rem !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    border: none !important;
    transition: transform 0.3s ease !important;
}

.embedsocial-widget .es-review-card:hover,
.embedsocial-widget [class*="review"]:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
}

/* Enhanced EmbedSocial styling */
.embedsocial-widget .es-star,
.embedsocial-widget [class*="star"],
.embedsocial-widget svg[class*="star"] {
    color: #FFD700 !important;
    fill: #FFD700 !important;
}

.embedsocial-widget .es-reviewer-name,
.embedsocial-widget [class*="name"],
.embedsocial-widget h3,
.embedsocial-widget h4 {
    color: var(--secondary-color) !important;
    font-weight: 600 !important;
    font-family: var(--font-heading) !important;
}

.embedsocial-widget .es-review-text,
.embedsocial-widget [class*="text"],
.embedsocial-widget p {
    color: var(--text-color) !important;
    line-height: 1.6 !important;
    font-family: var(--font-body) !important;
}

.embedsocial-widget .es-review-date,
.embedsocial-widget [class*="date"],
.embedsocial-widget time {
    color: var(--light-text) !important;
    font-size: 1.2rem !important;
}

/* Hide EmbedSocial branding for cleaner look */
.embedsocial-widget .es-branding,
.embedsocial-widget [class*="branding"],
.embedsocial-widget [class*="powered"] {
    display: none !important;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .embedsocial-widget {
        border-radius: 12px !important;
        margin: 0 1rem !important;
        padding: 1.5rem !important;
    }
    
    .testimonial-slider {
        padding: 0;
    }
}

@media screen and (max-width: 576px) {
    .embedsocial-widget {
        margin: 0 !important;
        border-radius: 8px !important;
    }
}