:root {
    --grp-accent: var(--color-accent, #f59e0b);
    --grp-text: var(--color-foreground, #1a1a1a);
    --grp-text-muted: var(--color-muted, #4b5563);
    --grp-bg: var(--color-card-bg, #ffffff);
    --grp-border: var(--color-border, #d1d5db);
}

/* High Contrast Mode Overrides */
html[data-contrast=high] .grp-review-card {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
}

html[data-contrast=high] .grp-author-name,
html[data-contrast=high] .grp-review-text {
    color: #ffffff !important;
}

html[data-contrast=high] .grp-review-time {
    color: #ffff00 !important;
    /* Yellow for high contrast visibility */
}

html[data-contrast=high] .grp-star.filled {
    color: #ffff00 !important;
}

html[data-contrast=high] .swiper-button-next,
html[data-contrast=high] .swiper-button-prev {
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #ffff00 !important;
}

.grp-reviews-wrapper {
    padding: 2rem 1rem 4rem 1rem;
    font-family: 'Outfit', sans-serif;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* Swiper navigation buttons styling */
.grp-reviews-wrapper .swiper-button-next,
.grp-reviews-wrapper .swiper-button-prev {
    color: var(--grp-accent);
    background: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    top: 50%;
    transform: translateY(-50%);
}

.grp-reviews-wrapper .swiper-button-next::after,
.grp-reviews-wrapper .swiper-button-prev::after {
    font-size: 1.25rem;
    font-weight: bold;
}

.grp-reviews-wrapper .swiper-pagination-bullet-active {
    background: var(--grp-accent);
}

.grp-reviews-wrapper .swiper-pagination {
    bottom: 1rem !important;
}

.grp-review-card {
    background: var(--grp-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--grp-border);
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

/* Glassmorphism only in normal mode */
html:not([data-contrast=high]) .grp-review-card {
    background: rgba(255, 255, 255, 0.9);
}

.grp-review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.grp-author-img {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.grp-author-info {
    display: flex;
    flex-direction: column;
}

.grp-author-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--grp-text);
}

.grp-review-time {
    font-size: 0.813rem;
    color: var(--grp-text-muted);
}

.grp-google-icon {
    position: absolute;
    right: 0;
    top: 0;
}

.grp-stars {
    display: flex;
    gap: 0.125rem;
    margin-bottom: 0.75rem;
}

.grp-star {
    color: #e5e7eb;
    font-size: 1.125rem;
}

.grp-star.filled {
    color: var(--grp-accent);
}

.grp-review-text {
    font-size: 0.938rem;
    line-height: 1.6;
    color: var(--grp-text);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

/* Hide navigation on small screens */
@media (max-width: 1024px) {

    .grp-reviews-wrapper .swiper-button-next,
    .grp-reviews-wrapper .swiper-button-prev {
        display: none;
    }
}

.grp-more-reviews {
    text-align: center;
    margin-top: 1rem;
}

.grp-more-reviews .btn-primary {
    display: inline-flex;
    text-decoration: none;
}