/* Dark Elegance Theme for Google Reviews */
.tw-google-reviews-container {
    padding: 20px 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Grid Layout */
.tw-layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* Slider Overrides */
.tw-reviews-swiper {
    padding-bottom: 50px !important; /* Space for pagination */
}
.tw-reviews-swiper .swiper-slide {
    height: auto; /* Allow cards to stretch */
}

/* Common Card Styling */
.tw-review-card {
    background: linear-gradient(145deg, #1e2024, #151619);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.tw-review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.tw-review-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    position: relative;
}

.tw-review-avatar {
    border-radius: 50%;
    object-fit: cover;
    margin-right: 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.tw-review-meta {
    flex-grow: 1;
}

.tw-review-author {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.tw-review-author a {
    color: #f8fafc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tw-review-author a:hover {
    color: #fbbf24;
}

.tw-review-date {
    font-size: 0.85rem;
    color: #94a3b8;
}

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

.tw-review-stars {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.tw-star-filled {
    color: #fbbf24; /* Golden yellow */
}

.tw-star-empty {
    color: rgba(255, 255, 255, 0.2);
}

.tw-review-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #cbd5e1;
    overflow-wrap: break-word;
    flex-grow: 1;
}

/* Slider 2 (Center Content) Specifics */
.tw-layout-slider2 .tw-center {
    text-align: center;
    margin-bottom: 16px;
}
.tw-layout-slider2 .tw-center-header {
    justify-content: center;
    margin-top: auto; /* Push to bottom */
    margin-bottom: 0;
}
.tw-layout-slider2 .tw-center-header .tw-review-avatar {
    margin-right: 12px;
}
.tw-layout-slider2 .tw-center-header .tw-review-meta {
    flex-grow: 0;
    text-align: left;
}
.tw-layout-slider2 .tw-icon-bottom-right {
    position: absolute;
    bottom: 24px;
    right: 24px;
    top: auto;
}
.tw-layout-slider2 .tw-review-stars {
    margin-bottom: 20px;
}

/* Custom Swiper Controls */
.tw-swiper-pagination .swiper-pagination-bullet {
    background: #cbd5e1;
    opacity: 0.5;
}
.tw-swiper-pagination .swiper-pagination-bullet-active {
    background: #fbbf24;
    opacity: 1;
}

.tw-swiper-prev, .tw-swiper-next {
    color: #cbd5e1 !important;
    background: rgba(30, 32, 36, 0.8);
    border-radius: 50%;
    width: 40px !important;
    height: 40px !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}
.tw-swiper-prev:after, .tw-swiper-next:after {
    font-size: 16px !important;
    font-weight: bold;
}
.tw-swiper-prev:hover, .tw-swiper-next:hover {
    color: #fbbf24 !important;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .tw-layout-grid {
        grid-template-columns: 1fr;
    }
}
