/* Google Reviews Custom Styles - Centering Fix & Slideshow Logic */

/* 
   Target the container logic 
   We use flex column to center the content vertically/horizontally
   BUT we must not prevent children from being hidden.
*/
.slideshow-container {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    text-align: center !important;
}

/* 
   The review slide wrapper 
   CRITICAL: Do NOT use display: !important here.
   The JS needs to toggle between display: block (or flex) and display: none.
   If we say !important, JS cannot hide it.
*/
.review-card-google {
    width: 100%;
    /* We want the slide to take full width so its child margin:0 auto works */
    justify-content: center;
    align-items: center;
}

/* The visible card box */
.google-review-box {
    background: rgba(255, 255, 255, 0.05);
    /* Glassmorphism effect */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    max-width: 800px;
    width: 90%;
    /* Responsive width */
    margin: 0 auto !important;
    /* FORCE CENTER MARGIN */
    text-align: left;
    /* Keep text inside left-aligned for readability */
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;

    /* Ensure box itself is treated as a block for margin auto to work */
    display: block;
}

/* Header layout */
.google-review-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.google-author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid #fff;
    object-fit: cover;
}

.google-author-info {
    flex-grow: 1;
    text-align: left;
}

.google-author-info strong {
    display: block;
    font-size: 1.1rem;
    color: #fff;
}

.google-rating {
    font-size: 0.9rem;
    margin-top: 2px;
    text-align: left;
}

.google-rating .fa-star {
    color: #FFD700;
}

.google-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.google-logo-icon {
    font-size: 24px;
    color: #4285F4;
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0.9;
}

.google-review-text q {
    font-family: 'Open Sans', sans-serif;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    display: block;
    text-align: left;
}

.google-review-text q::before,
.google-review-text q::after {
    color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .google-review-box {
        padding: 15px;
    }

    .google-review-text q {
        font-size: 1rem;
    }
}