/* ── Testimonial Grid Section ── */
.testimonial-grid-section {
    position: relative;
    padding: 60px 0;
}

.testimonial-grid-title {
    text-align: center;
    margin: 0 0 10px;
    color: #333;
}

.testimonial-grid-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin: 0 0 40px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Rating Summary ── */
.testimonial-grid-summary {
    text-align: center;
    margin-bottom: 35px;
}

.testimonial-grid-summary-inner {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.testimonial-grid-summary .google-icon {
    flex-shrink: 0;
}

.summary-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Source Sans 3", sans-serif;
}

.summary-rating {
    font-size: 22px;
    font-weight: 700;
    color: #333;
}

.summary-stars .star {
    font-size: 20px;
    line-height: 1;
}

.summary-stars .star-full {
    color: #f5a623;
}

.summary-stars .star-half {
    color: #f5a623;
}

.summary-stars .star-empty {
    color: #ddd;
}

.summary-count {
    font-size: 15px;
    color: #777;
    margin-left: 4px;
}

/* ── Custom Grid Cards (JSON data) ── */
.testimonial-grid-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.tg-card-inner {
    background: #fff;
    border-radius: 8px;
    padding: 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.tg-card-inner:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.tg-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.tg-card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.tg-card-avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #4797a3;
    color: #fff;
    font-family: "Source Sans 3", sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.tg-card-author {
    margin-left: 12px;
    flex: 1;
    min-width: 0;
}

.tg-card-name {
    display: block;
    font-family: "Source Sans 3", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #4797a3;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tg-card-name:hover {
    color: #c5502b;
}

.tg-card-date {
    display: block;
    font-size: 13px;
    color: #999;
    margin-top: 2px;
}

.tg-card-google-icon {
    flex-shrink: 0;
    margin-left: 8px;
    opacity: 0.7;
}

.tg-card-stars {
    margin-bottom: 14px;
    line-height: 1;
}

.tg-card-stars .star {
    font-size: 18px;
    margin-right: 1px;
}

.tg-card-stars .star-full {
    color: #f5a623;
}

.tg-card-stars .star-empty {
    color: #ddd;
}

.tg-card-text {
    flex: 1;
}

.tg-card-text p {
    font-size: 15px;
    line-height: 1.65;
    color: #474747;
    margin: 0;
}

.testimonial-grid-wrapper {
    padding: 60px 0 50px;
}

/* ── Actions ── */
.testimonial-grid-actions {
    text-align: center;
    margin-top: 40px;
}

.testimonial-grid-readmore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background-color: #c5502b;
    color: #fff;
    font-family: "Source Sans 3", sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border: 2px solid #c5502b;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.testimonial-grid-readmore:hover {
    background-color: transparent;
    color: #c5502b;
}

.testimonial-grid-readmore:active {
    transform: scale(0.97);
}

.readmore-icon::after {
    content: "\25BC";
    font-size: 12px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.testimonial-grid-readmore[aria-expanded="true"] .readmore-icon::after {
    transform: rotate(180deg);
}

/* ── CTA link ── */
.testimonial-grid-cta {
    text-align: center;
    margin-top: 20px;
}

.testimonial-grid-link {
    display: inline-block;
    padding: 0;
    background: transparent;
    color: #c5502b;
    font-size: 16px;
    font-weight: 600;
    text-decoration: underline;
    border: none;
    position: relative;
    padding-right: 22px;
    transition: color 0.3s ease;
}

.testimonial-grid-link:hover {
    color: #4797a3;
}

.testimonial-grid-link:hover::after {
    right: -4px;
}

/* Hide reviews below 4 stars */
.testimonial-grid-wrapper .grw-review:has([style*="--rating:1"]),
.testimonial-grid-wrapper .grw-review:has([style*="--rating:2"])    ,
.testimonial-grid-wrapper .grw-review:has([style*="--rating:3"]) {
    display: none !important;
}

/* Google review overwrite */


.testimonial-grid-wrapper .wp-gr .grw-content {
    text-align: center;
}

.testimonial-grid-wrapper .wp-gr .wp-google-text {
    line-height: 26px !important
}

.wp-gr .grw-review-inner.grw-round {
    border-bottom: 5px solid #c5502b;
}

.testimonial-grid-wrapper .wp-gr div, 
.testimonial-grid-wrapper .wp-gr span {
    text-align: left;
}
.testimonial-grid-wrapper .wp-gr .grw-review .wp-google-feedback {
    text-align: left;
    padding-right: 20px;
}

.testimonial-grid-wrapper .wp-gr .wp-google-url {
    background: #c5502b;
    color: #fff !important;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    border-radius: 100px;
    font-size: 16px;
    padding: 18px 28px;
    transition: all ease-in-out 0.2s;
    margin: 50px auto 0 !important;
}

.testimonial-grid-wrapper .wp-gr .wp-google-url:hover {
    background: #161616;
    color: #ffffff;
}

* {
    scrollbar-width: 10px;
    scrollbar-color: #c5502b #fdece7;
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background-color: #fdece7;
    border-radius: 8px;
    padding: 1px;
}


*::-webkit-scrollbar-thumb {
    background-color: #c5502b;
    border-radius: 8px;
    min-height: 30px;
}

/* Mobile: 1 column (default) */
.testimonial-grid-wrapper .grw-row .grw-review {
    width: 100% !important;
}

@media (min-width: 600px) {
    .testimonial-grid-wrapper .grw-row .grw-review {
        max-width: 50%;
    }
}
/* Tablet: 2 columns */
@media (min-width: 768px) {
    .testimonial-grid-wrapper .grw-row .grw-review {
        flex: calc(50% - 10px) !important;
    }
}

/* Desktop: 3 columns */
@media (min-width: 1025px) {
    .testimonial-grid-wrapper .grw-row .grw-review {
        flex: calc(33.333% - 14px) !important;
        max-width: 33.333% !important;
    }
}

/* ── Review Info ── */

.testimonial-review-info {
    padding: 14px 20px 15px 15px;
    background-color: #f6f6f6;
    border-radius: 5px;
    max-width: 284px;
    margin-top: 20px !important;
    margin-left: 0 !important;
}

.testimonial-review-info-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.testimonial-review-info-content {
    width: calc(100% - 64px);
    padding-left: 11px;
}

.testimonial-review-info-content p {
    font-size: 16px;
    color: #474747;
    font-weight: 700;
    margin: 0 0 5px;
}

.testimonial-review-info a.btn {
    padding: 0;
    background-color: transparent;
    padding-right: 22px;
    color: #c5502b;
    font-size: 16px;
    text-decoration: underline;
    border: none;
    margin-top: -5px;
    margin-left: 7px;
}

.testimonial-review-info a.btn:after {
    content: "\e911";
    font-family: "icomoon" !important;
    position: absolute;
    right: 0;
    font-size: 14px;
    top: 50%;
    font-weight: normal;
    transform: translate(0, -50%);
}