/* =============================================
   Google Reviews Carousel – Card Slider
   ============================================= */

/* --- Reset --- */
.tbgr-carousel,
.tbgr-carousel *,
.tbgr-carousel *::before,
.tbgr-carousel *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- Container --- */
.tbgr-carousel {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    user-select: none;
}

/* --- Viewport (clips overflow) --- */
.tbgr-viewport {
    overflow: hidden;
    overflow: clip;
    clip-path: inset(0);
    position: relative;
    cursor: grab;
}
.tbgr-viewport.is-dragging {
    cursor: grabbing;
}

/* --- Track (horizontal strip moved via transform) --- */
.tbgr-track {
    display: flex;
    will-change: transform;
}
.tbgr-track.is-animating {
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Card wrapper --- */
.tbgr-card {
    flex: 0 0 25%;
    padding: 0.75rem;
}

/* Kill card transitions during infinite jump */
.tbgr-no-transition .tbgr-card {
    transition: none !important;
}

/* --- Card inner (white card) --- */
.tbgr-card-inner {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.75rem 1.5rem 1.5rem;
}

/* --- Card body --- */
.tbgr-card-body {
    flex: 1;
    margin-bottom: 1rem;
}

.tbgr-card-text {
    font-size: 1rem;
    font-weight: bold;
    font-family: "Mulish", Sans-serif;
    line-height: 1.3rem;
    color: #181A20;
    margin: 0;
}

.tbgr-read-more {
    display: inline;
    color:  #E1B546 !important;
    text-decoration: none;
    font-weight: 600;
    font-style: normal;
    cursor: pointer;
    margin-left: 0.125rem;
}

/* --- Stars --- */
.tbgr-card-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 1rem;
    align-items: center;
}

.tbgr-star { 
    width: 1.1rem; 
    height: 1.1rem; 
    display: inline-block;
    object-fit: contain;
}
.tbgr-star.filled { opacity: 1; }
.tbgr-star.empty { opacity: 0.25; }

/* --- Card footer (avatar + name) --- */
.tbgr-card-footer {
    border-top: 0.0625rem solid #E1B546;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1.3rem;
    margin-top: 0.3rem;
}

.tbgr-card-avatar {
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.tbgr-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tbgr-card-avatar-letter {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
}

.tbgr-card-meta {
    flex: 1;
    min-width: 0;
}

.tbgr-card-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: poppins, sans-serif;
    color: #181A20;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tbgr-card-source {
    display: block;
    font-size: 0.8rem;
    color: #999;
    line-height: 1.3;
}

/* --- Dots --- */
.tbgr-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 0 0.5rem;
}

.tbgr-dot {
    display: inline-block;
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: #bdc1c6;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}
.tbgr-dot:hover {
    background: #80868b;
}
.tbgr-dot.active {
    background: #E1B546;
    transform: scale(1.2);
}

/* --- Modal --- */
.tbgr-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    inset: 0;
}
.tbgr-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}
.tbgr-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}
.tbgr-modal-content {
    position: relative;
    z-index: 1;
    background: #fff;
    padding: 2rem;
    border-radius: 1.25rem;
    max-width: 35rem;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 1.25rem 3.75rem rgba(0, 0, 0, 0.25);
}
.tbgr-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    font-size: 1.75rem;
    color: #5f6368;
    cursor: pointer;
    line-height: 1;
}
.tbgr-modal-close:hover { color: #202124; }
.tbgr-modal-body p {
    font-size: 1rem;
    line-height: 1.75;
    color: #3c4043;
    margin: 0;
}

/* =============================================
   Responsive
   ============================================= */

/* Tablet: <=1024  →  2 cards */
@media (max-width: 1024px) {
    .tbgr-card {
        flex: 0 0 50%;
    }
}

/* Mobile: <=767  →  1 card */
@media (max-width: 767px) {
    .tbgr-carousel { padding: 0 0.75rem; }
    .tbgr-card {
        flex: 0 0 100%;
        padding: 0.5rem;
    }
    .tbgr-card-inner {
        border-radius: 1rem;
        padding: 1.25rem 1rem 1rem;
    }
    .tbgr-modal-content { padding: 1.5rem 1.25rem; }
}
