/* ==========================================================================
   Manual Google Reviews - Premium public CSS
   Author: Ebranding (https://ebrandingbiz.com)
   ========================================================================== */

/* Main Container */
.eb-gr-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    margin: 2rem 0;
    width: 100%;
    box-sizing: border-box;
}

.eb-gr-container *, 
.eb-gr-container *::before, 
.eb-gr-container *::after {
    box-sizing: border-box;
}

/* Typography & Global Font Fallback */
.eb-gr-heading-excellent {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 600; /* Clean semi-bold, not extra bold */
    font-size: 1.3rem; /* Sized down to reduce highlighting */
    line-height: 1.2;
    margin: 0 0 0.5rem 0;
}

@media (min-width: 768px) {
    .eb-gr-heading-excellent {
        font-size: 1.45rem;
    }
}

/* Header UI Elements */
.eb-gr-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    gap: 1rem;
}

@media (min-width: 768px) {
    .eb-gr-header {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.eb-gr-header-info {
    display: flex;
    flex-direction: column;
}

.eb-gr-meta-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.eb-gr-stars {
    display: flex;
    align-items: center;
    color: #fa7301;
}

.eb-gr-stars svg,
.eb-gr-card-stars svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    display: inline-block;
}

.eb-gr-card-stars svg {
    width: 16px;
    height: 16px;
}

.eb-gr-subtext {
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0;
}

.eb-gr-logo {
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.eb-gr-logo-header {
    display: inline-block;
    width: 80px !important;
    height: auto !important;
    vertical-align: middle;
    margin-left: 0.5rem;
}

/* Light / Dark Mode Header Color Overrides */
.eb-gr-theme-light .eb-gr-heading-excellent {
    color: #0f172a;
}
.eb-gr-theme-light .eb-gr-subtext {
    color: #475569;
}

.eb-gr-theme-dark .eb-gr-heading-excellent {
    color: #ffffff;
}
.eb-gr-theme-dark .eb-gr-subtext {
    color: #cbd5e1;
}

/* Card Component Layout */
.eb-gr-card {
    border-radius: 12px !important;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.eb-gr-card:hover {
    transform: translateY(-5px);
}

/* Themes for Cards - Gold/Bronze Borders and Premium Hover Shadows */
.eb-gr-theme-light .eb-gr-card {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    border: 1px solid #dfb74a; /* Elegant thin gold/bronze border */
}
.eb-gr-theme-light .eb-gr-card:hover {
    box-shadow: 0 10px 20px rgba(223, 183, 74, 0.12);
    border-color: #d4af37;
}

.eb-gr-theme-dark .eb-gr-card {
    background-color: #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid #dfb74a; /* Matching gold/bronze border */
}
.eb-gr-theme-dark .eb-gr-card:hover {
    box-shadow: 0 10px 20px rgba(223, 183, 74, 0.2);
    border-color: #d4af37;
}

/* Verified Badge Row and Decoration Quote Icon */
.eb-gr-card-stars-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.eb-gr-verified-badge {
    display: inline-flex;
    align-items: center;
    color: #3b82f6; /* Modern Blue Badge color */
    width: 14px;
    height: 14px;
}

.eb-gr-verified-badge svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.eb-gr-card-quote {
    position: absolute;
    bottom: 5px;
    right: 12px;
    font-size: 5rem;
    font-family: Georgia, serif;
    color: rgba(223, 183, 74, 0.08); /* Transparent golden quote */
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

/* Truncation & Expansion Text Styles */
.eb-gr-text-container {
    position: relative;
    width: 100%;
    z-index: 2;
}

.eb-gr-text {
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
    word-break: break-word;
}

.eb-gr-text-truncated {
    display: block;
}

.eb-gr-text-full {
    display: none;
}

.eb-gr-readmore-toggle {
    display: inline-block;
    font-size: 0.825rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: underline;
    margin-top: 0.35rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.eb-gr-theme-light .eb-gr-readmore-toggle:hover {
    color: #dfb74a;
}

.eb-gr-theme-dark .eb-gr-readmore-toggle {
    color: #94a3b8;
}

.eb-gr-theme-dark .eb-gr-readmore-toggle:hover {
    color: #dfb74a;
}

.eb-gr-card-expanded {
    min-height: auto !important;
}

/* Card Header Components */
.eb-gr-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    width: 100%;
}

.eb-gr-author-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.eb-gr-avatar {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    flex-shrink: 0 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    font-size: 1.125rem !important;
    text-transform: uppercase !important;
    user-select: none !important;
    overflow: hidden !important; /* Ensure circular clipping for images */
}

.eb-gr-avatar img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
}

/* Avatar Colors (Dynamic Style Selection) */
.eb-gr-theme-light .eb-gr-avatar {
    background-color: #e2e8f0;
    color: #475569;
}
.eb-gr-theme-dark .eb-gr-avatar {
    background-color: #334155;
    color: #e2e8f0;
}

/* Optional Multi-colored Pastel Avatars */
.eb-gr-avatar-a { background-color: #fee2e2 !important; color: #991b1b !important; }
.eb-gr-avatar-b { background-color: #ffedd5 !important; color: #9a3412 !important; }
.eb-gr-avatar-c { background-color: #fef9c3 !important; color: #854d0e !important; }
.eb-gr-avatar-d { background-color: #dcfce7 !important; color: #166534 !important; }
.eb-gr-avatar-e { background-color: #e0f2fe !important; color: #075985 !important; }
.eb-gr-avatar-f { background-color: #f3e8ff !important; color: #6b21a8 !important; }
.eb-gr-avatar-g { background-color: #fae8ff !important; color: #86198f !important; }

.eb-gr-theme-dark .eb-gr-avatar-a { background-color: #7f1d1d !important; color: #fca5a5 !important; }
.eb-gr-theme-dark .eb-gr-avatar-b { background-color: #7c2d12 !important; color: #fed7aa !important; }
.eb-gr-theme-dark .eb-gr-avatar-c { background-color: #713f12 !important; color: #fef08a !important; }
.eb-gr-theme-dark .eb-gr-avatar-d { background-color: #14532d !important; color: #bbf7d0 !important; }
.eb-gr-theme-dark .eb-gr-avatar-e { background-color: #0c4a6e !important; color: #bae6fd !important; }
.eb-gr-theme-dark .eb-gr-avatar-f { background-color: #581c87 !important; color: #e9d5ff !important; }
.eb-gr-theme-dark .eb-gr-avatar-g { background-color: #701a75 !important; color: #f5d0fe !important; }

.eb-gr-author-meta {
    display: flex;
    flex-direction: column;
}

.eb-gr-author-name {
    font-size: 0.875rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.eb-gr-theme-light .eb-gr-author-name { color: #0f172a; }
.eb-gr-theme-dark .eb-gr-author-name { color: #f8fafc; }

.eb-gr-date {
    font-size: 0.75rem;
    margin: 0.25rem 0 0 0;
    line-height: 1;
}

.eb-gr-theme-light .eb-gr-date { color: #64748b; }
.eb-gr-theme-dark .eb-gr-date { color: #94a3b8; }

.eb-gr-card-stars {
    margin-bottom: 0.75rem;
}

.eb-gr-text {
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
    word-break: break-word;
}

.eb-gr-theme-light .eb-gr-text { color: #334155; }
.eb-gr-theme-dark .eb-gr-text { color: #cbd5e1; }

/* Grid Layout Shortcode */
.eb-gr-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
}

@media (min-width: 640px) {
    .eb-gr-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .eb-gr-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .eb-gr-grid {
        grid-template-columns: repeat(4, 1fr); /* Premium 4 columns on large screens! */
    }
}

/* AJAX Load More Button Container */
.eb-gr-loadmore-container {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
    width: 100%;
}

.eb-gr-btn-loadmore {
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    outline: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.05);
}

.eb-gr-theme-light .eb-gr-btn-loadmore {
    background-color: #0f172a;
    color: #ffffff;
}

.eb-gr-theme-light .eb-gr-btn-loadmore:hover:not(:disabled) {
    background-color: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.eb-gr-theme-dark .eb-gr-btn-loadmore {
    background-color: #f8fafc;
    color: #0f172a;
}

.eb-gr-theme-dark .eb-gr-btn-loadmore:hover:not(:disabled) {
    background-color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(255, 255, 255, 0.05), 0 4px 6px -4px rgba(255, 255, 255, 0.05);
}

.eb-gr-btn-loadmore:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Spinner Icon */
.eb-gr-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: eb-gr-spin 0.6s linear infinite;
}

@keyframes eb-gr-spin {
    to { transform: rotate(360deg); }
}

/* Fade In Animation for loaded items */
.eb-gr-fade-in {
    animation: ebGrFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(15px);
}

@keyframes ebGrFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Carousel Layout Shortcode - Side-by-Side Flex Layout
   ========================================================================== */
.eb-gr-carousel-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .eb-gr-carousel-layout {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
    }
}

.eb-gr-carousel-sidebar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 0 0 220px;
    width: 100%;
}

.eb-gr-carousel-sidebar .eb-gr-stars {
    margin-bottom: 0.5rem;
    color: #fa7301;
}

.eb-gr-carousel-sidebar .eb-gr-stars svg {
    width: 24px;
    height: 24px;
}

.eb-gr-carousel-sidebar .eb-gr-subtext {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 0 1.25rem 0;
}

.eb-gr-sidebar-logo {
    display: flex;
    align-items: center;
    width: 100%;
}

.eb-gr-sidebar-logo img.eb-gr-logo-large {
    width: 100px !important;
    height: auto !important;
    max-width: 100% !important;
    display: block !important;
}

/* Force SVG paths to remain inline shapes, shielding them from broken theme block/flex rules */
.eb-gr-container svg * {
    display: inline !important;
    float: none !important;
    position: static !important;
}

.eb-gr-carousel-main {
    flex: 1;
    position: relative;
    width: 100%;
    min-width: 0; /* CRITICAL FIX: prevents horizontal scrolling contents from stretching the parent off-screen! */
}

.eb-gr-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: visible; /* Let arrows peek out */
    padding: 1rem 0;
}

.eb-gr-carousel-track-container {
    width: 100%;
    overflow: hidden;
    padding: 10px 0; /* Prevents top/bottom borders and premium drop shadows from clipping during card hover translation */
    margin: -10px 0; /* Offsets container padding to maintain standard grid spacing rules */
}

.eb-gr-carousel-track {
    display: flex;
    align-items: flex-start !important; /* Prevent cards from stretching when one expands! */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
    will-change: transform;
}

.eb-gr-carousel-slide {
    flex-shrink: 0;
    width: 100%;
    padding: 0 0.75rem; /* half of gap */
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .eb-gr-carousel-slide {
        width: 50%;
    }
}

@media (min-width: 1024px) {
    .eb-gr-carousel-slide {
        width: 33.333333%;
    }
}

/* Circular Centered Side-Arrows Overlapped */
.eb-gr-carousel-wrapper .eb-gr-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
    outline: none;
    background-color: #ffffff;
    color: #1e293b;
}

.eb-gr-carousel-wrapper .eb-gr-arrow-prev {
    left: -20px;
}

.eb-gr-carousel-wrapper .eb-gr-arrow-next {
    right: -20px;
}

@media (max-width: 1023px) {
    .eb-gr-carousel-wrapper .eb-gr-arrow-prev {
        left: -10px;
    }
    .eb-gr-carousel-wrapper .eb-gr-arrow-next {
        right: -10px;
    }
}

.eb-gr-carousel-wrapper .eb-gr-arrow svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.eb-gr-theme-light .eb-gr-carousel-wrapper .eb-gr-arrow:hover:not(:disabled) {
    background-color: #f8fafc;
    border-color: #dfb74a;
    transform: translateY(-50%) scale(1.05);
    color: #dfb74a;
}

.eb-gr-theme-dark .eb-gr-carousel-wrapper .eb-gr-arrow {
    background-color: #1e293b;
    border-color: #334155;
    color: #ffffff;
}

.eb-gr-theme-dark .eb-gr-carousel-wrapper .eb-gr-arrow:hover:not(:disabled) {
    background-color: #334155;
    border-color: #dfb74a;
    transform: translateY(-50%) scale(1.05);
    color: #dfb74a;
}

.eb-gr-carousel-wrapper .eb-gr-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: translateY(-50%) !important;
}

/* Hide dots completely in this layout */
.eb-gr-dots {
    display: none !important;
}
