@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

.google-review-wrapper {
    font-family: "Trustindex Poppins", "Poppins", sans-serif;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.google-review-summary {
    width: 220px;
    flex-shrink: 0;
    text-align: center;
}

.ti-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.ti-profile-img img {
    width: 72px !important;
    height: 72px !important;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.google-review-summary h3 {
    font-family: "Trustindex Poppins", "Poppins", sans-serif;
    font-size: 15px;
    line-height: 26px;
    font-weight: 600;
    margin: 0;
}

.google-review-summary .rating {
    font-size: 24px;
    font-weight: 600;
    color: #FBBC05;
    margin-bottom: 5px;
}

.google-review-summary p {
    font-size: 15px;
    color: #555;
    margin-bottom: 14px;
    font-weight: 600;
}

.google-review-summary a {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #4285F4;
    padding: 9px 18px;
    border-radius: 24px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.google-review-summary a:hover {
    background: #3367d6;
}


/* =========================
   OWL CAROUSEL CONTAINER
========================= */

.google-review-slider {
    width: calc(100% - 250px);
    max-width: calc(100% - 250px);
    min-width: 0;
    position: relative;
    padding: 0 44px 6px;
    box-sizing: border-box;
    overflow: hidden; /* safeguard: never let the carousel push the page wider */
}

.google-review-slider .owl-stage-outer {
    padding: 4px 0 6px; /* prevents hover translateY(-4px) from clipping */
    overflow: hidden;
}

.google-review-slider .owl-stage {
    display: flex; /* keeps items same height and prevents stray width jumps */
}

/* Undo Owl Carousel's default "width: 100%" rule on ALL images.
   Without this override, avatars, the Google "G" logo, and the
   profile photo all stretch to fill their container and lose
   their aspect ratio / border-radius. */
.google-review-slider .owl-item img {
    display: inline-block;
    width: auto;
    max-width: none;
}


/* =========================
   OWL NAVIGATION ARROWS
========================= */

.google-review-slider .owl-nav {
    position: static;
}

.google-review-slider .owl-nav button.owl-prev,
.google-review-slider .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px !important;
    height: 36px !important;
    background: #fff !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
}

.google-review-slider .owl-nav button.owl-prev {
    left: 0;
}

.google-review-slider .owl-nav button.owl-next {
    right: 0;
}

.google-review-slider .owl-prev-icon,
.google-review-slider .owl-next-icon {
    width: 8px;
    height: 8px;
    border-top: 2px solid #333;
    border-right: 2px solid #333;
    display: inline-block;
}

.google-review-slider .owl-prev-icon {
    transform: rotate(-135deg);
    margin-left: 3px;
}

.google-review-slider .owl-next-icon {
    transform: rotate(45deg);
    margin-right: 3px;
}

.google-review-slider .owl-nav button.disabled {
    opacity: 0.35;
    pointer-events: none;
}

.google-review-slider .owl-dots {
    display: none; /* dots disabled via JS config; hidden as a safeguard */
}


/* =========================
   REVIEW CARD
========================= */

.google-review-slider .google-review-card {
    font-family: "Trustindex Poppins", "Poppins", sans-serif;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 20px;
    min-height: 260px;
    height: 100%;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.google-review-slider .google-review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}


/* =========================
   AUTHOR
========================= */

.google-review-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.author-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-left img {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.google-review-author img[width="24"] {
    width: 24px !important;
    height: 24px !important;
}

.author-left strong {
    font-size: 15px;
    font-weight: 600;
}

.author-left small {
    font-size: 12px;
    color: #888;
}


/* =========================
   STARS
========================= */

.google-stars {
    font-size: 16px;
    color: #FBBC05;
    margin-bottom: 10px;
    letter-spacing: 1px;
}


/* =========================
   REVIEW TEXT
========================= */

.google-review-text {
    font-size: 14px;
    line-height: 22px;
    color: #333;
    max-height: 145px;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.google-review-text.expanded {
    max-height: 1000px;
}

.review-text-content {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.google-review-text.expanded .review-text-content {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.read-more-toggle {
    display: inline-block;
    margin-top: 6px;
    color: #4285F4;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

.read-more-toggle a {
    text-decoration: none;
    color: #3c7a53;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .google-review-wrapper {
        flex-direction: column;
    }

    .google-review-summary {
        width: 100%;
    }

    .google-review-slider {
        width: 100%;
        min-width: 0;
        padding-left: 44px;
        padding-right: 44px;
    }
}