/* ========================================
   Reviews Section - Google-Inspired Design
   ======================================== */

.reviews-section {
    padding: 6rem 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.reviews-section .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Header */
.reviews-section .section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    z-index: 1;
}

.reviews-section .section-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.reviews-section .section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 500;
}

/* Reviews Carousel Container */
.reviews-carousel {
    position: relative;
    margin: 0 auto;
    padding: 0 3.5rem 2.5rem;
    overflow: visible !important;
    width: 100%;
}

.reviews-carousel .swiper {
    width: 100%;
    height: 100%;
}

.reviews-carousel .swiper-wrapper {
    display: flex !important;
    align-items: stretch;
    box-sizing: content-box;
}

.reviews-carousel .swiper-slide {
    height: auto;
    display: flex;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* Review Card - Google Maps Style */
.review-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    height: 100%;
    width: 100%;
    box-shadow: none;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.2s ease;
    position: relative;
    overflow: visible;
    box-sizing: border-box;
}

.review-card:hover {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* RTL Support for Review Card */
.reviews-section[dir="rtl"] .review-card,
[dir="rtl"] .reviews-section .review-card {
    text-align: right;
    direction: rtl;
}

/* Review Header */
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    gap: 1rem;
    width: 100%;
}



.reviewer-info {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    flex: 1;
}



.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: none;
    transition: none;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviewer-details {
    flex: 1;
    min-width: 0;
}

.reviewer-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #202124;
    margin: 0 0 0.25rem 0;
    line-height: 1.4;
}

.review-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    background: transparent;
    color: #5f6368;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 400;
    border: none;
}

.verified-badge svg {
    width: 14px;
    height: 14px;
}

/* Review Rating */
.review-rating {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

.star-icon {
    width: 14px;
    height: 14px;
    color: #e0e0e0;
    transition: none;
}

.star-icon.filled {
    color: #fbbc04;
    filter: none;
}

/* Review Content */
.review-content {
    flex: 1;
    margin-bottom: 1rem;
}

.review-text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #3c4043;
    margin: 0;
    font-weight: 400;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* RTL Support for Review Content */
.reviews-section[dir="rtl"] .review-text,
[dir="rtl"] .reviews-section .review-text {
    text-align: right;
}

/* Quote Icon Background */
.review-quote-icon {
    display: none;
}



/* Swiper Navigation Buttons */
.reviews-nav-prev,
.reviews-nav-next {
    width: 48px;
    height: 48px;
    background: #33A1E0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(51, 161, 224, 0.25);
    color: white;
    transition: all 0.3s ease;
    border: none;
    z-index: 10;
    margin-top: 0;
    top: 50%;
    transform: translateY(-50%);
}

.reviews-nav-prev:after,
.reviews-nav-next:after {
    font-size: 18px;
    font-weight: 900;
    color: white;
}

.reviews-nav-prev:hover,
.reviews-nav-next:hover {
    background: #2892cc;
    box-shadow: 0 6px 20px rgba(51, 161, 224, 0.4);
    transform: translateY(-50%) scale(1.08);
}

.reviews-nav-prev.swiper-button-disabled,
.reviews-nav-next.swiper-button-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #cbd5e1;
    box-shadow: none;
}

.reviews-nav-prev.swiper-button-disabled:hover,
.reviews-nav-next.swiper-button-disabled:hover {
    transform: translateY(-50%);
}

.reviews-nav-prev {
    left: 0;
}

.reviews-nav-next {
    right: 0;
}



/* Swiper Pagination */
.reviews-dots {
    position: static !important;
    margin-top: 2rem;
    padding-bottom: 0;
    text-align: center;
    bottom: auto !important;
}

.reviews-dots .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #d1d5db;
    opacity: 1;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.reviews-dots .swiper-pagination-bullet-active {
    background: #33A1E0;
    width: 32px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(51, 161, 224, 0.4);
}

.reviews-dots .swiper-pagination-bullet-active-main {
    background: #33A1E0;
}

/* Rating Summary */
.rating-summary {
    text-align: center;
    margin-top: 3rem;
    padding: 2.5rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.rating-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.rating-number {
    font-size: 4rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
    background: linear-gradient(135deg, #33A1E0 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-stars {
    display: flex;
    gap: 0.5rem;
}

.rating-summary .star-icon {
    width: 28px;
    height: 28px;
}

.rating-text {
    font-size: 1rem;
    color: #6b7280;
    margin: 0.5rem 0 0;
    font-weight: 500;
}

/* ======================================
   Responsive Design
   ====================================== */

/* Large Tablets */
@media (max-width: 991px) {
    .reviews-section {
        padding: 4.5rem 0;
    }

    .reviews-section .section-title {
        font-size: 2.25rem;
    }

    .reviews-section .section-subtitle {
        font-size: 1rem;
    }

    .reviews-carousel {
        padding: 0 3rem 2.5rem;
    }

    .review-card {
        padding: 1.75rem;
    }

    .reviewer-avatar {
        width: 40px;
        height: 40px;
    }

    .reviewer-name {
        font-size: 0.875rem;
    }

    .review-text {
        font-size: 0.938rem;
    }

    .rating-number {
        font-size: 3.5rem;
    }

    .rating-summary .star-icon {
        width: 24px;
        height: 24px;
    }

    .reviews-nav-prev,
    .reviews-nav-next {
        width: 46px;
        height: 46px;
        border-radius: 10px;
    }

    .reviews-nav-prev:after,
    .reviews-nav-next:after {
        font-size: 16px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .reviews-section {
        padding: 3.5rem 0;
    }

    .reviews-section .container {
        padding: 0 15px;
    }

    .reviews-section .section-header {
        margin-bottom: 2.5rem;
    }

    .reviews-section .section-title {
        font-size: 2rem;
    }

    .reviews-carousel {
        padding: 0 3.5rem 2rem;
    }

    .review-card {
        padding: 1.25rem;
        border-radius: 8px;
        border-width: 1px;
    }

    .review-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .review-rating {
        order: -1;
        width: 100%;
        justify-content: flex-start;
    }

    .reviewer-info {
        width: 100%;
    }

    .reviewer-avatar {
        width: 40px;
        height: 40px;
    }

    .rating-summary {
        padding: 2rem;
        margin-top: 2.5rem;
    }

    .rating-number {
        font-size: 3rem;
    }

    .reviews-nav-prev,
    .reviews-nav-next {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

    .reviews-nav-prev:after,
    .reviews-nav-next:after {
        font-size: 16px;
    }

    .reviews-nav-prev {
        left: 0.5rem;
    }

    .reviews-nav-next {
        right: 0.5rem;
    }

}

/* Mobile */
@media (max-width: 640px) {
    .reviews-section {
        padding: 3rem 0;
    }

    .reviews-section .container {
        padding: 0 10px;
    }

    .reviews-section .section-title {
        font-size: 1.75rem;
    }

    .reviews-section .section-subtitle {
        font-size: 0.938rem;
        padding: 0 10px;
    }

    .reviews-carousel {
        padding: 0 3rem 1.5rem;
    }

    .review-card {
        padding: 1.25rem;
        border-radius: 8px;
        border-width: 1px;
    }

    .review-header {
        gap: 1rem;
    }

    .reviewer-avatar {
        width: 40px;
        height: 40px;
    }

    .reviewer-name {
        font-size: 0.875rem;
    }

    .review-meta {
        font-size: 0.813rem;
    }

    .verified-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.688rem;
    }

    .review-text {
        font-size: 0.938rem;
        line-height: 1.65;
    }

    .star-icon {
        width: 18px;
        height: 18px;
    }

    .rating-summary {
        padding: 1.75rem 1.5rem;
        margin-top: 2rem;
    }

    .rating-number {
        font-size: 2.5rem;
    }

    .rating-summary .star-icon {
        width: 22px;
        height: 22px;
    }

    .rating-text {
        font-size: 0.938rem;
    }

    .reviews-nav-prev,
    .reviews-nav-next {
        width: 42px;
        height: 42px;
        border-radius: 8px;
    }

    .reviews-nav-prev:after,
    .reviews-nav-next:after {
        font-size: 15px;
    }

    .reviews-nav-prev {
        left: 0.5rem;
    }

    .reviews-nav-next {
        right: 0.5rem;
    }

    .reviews-dots {
        margin-top: 1.5rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .reviews-section {
        padding: 2.5rem 0;
    }

    .reviews-section .section-header {
        margin-bottom: 2rem;
    }

    .reviews-section .section-title {
        font-size: 1.5rem;
    }

    .reviews-carousel {
        padding: 0 2.75rem 1.5rem;
    }

    .review-card {
        padding: 1rem;
        border-radius: 8px;
        border-width: 1px;
    }

    .reviewer-avatar {
        width: 40px;
        height: 40px;
    }

    .review-header {
        gap: 0.875rem;
    }

    .reviewer-info {
        gap: 0.875rem;
    }

    .reviewer-name {
        font-size: 0.938rem;
    }

    .review-text {
        font-size: 0.875rem;
    }

    .rating-number {
        font-size: 2.25rem;
    }

    .rating-summary .star-icon {
        width: 20px;
        height: 20px;
    }

    .reviews-nav-prev,
    .reviews-nav-next {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }

    .reviews-nav-prev:after,
    .reviews-nav-next:after {
        font-size: 14px;
    }
}

/* ======================================
   Reviews Plugin Wrapper Styling
   ====================================== */

.reviews-plugin-wrapper {
    margin-top: 2rem;
    width: 100%;
}

/* Ensure plugin content is centered and responsive */
.reviews-plugin-wrapper > div,
.reviews-plugin-wrapper > * {
    max-width: 100%;
}

/* Mobile responsiveness for plugin */
@media (max-width: 768px) {
    .reviews-plugin-wrapper {
        margin-top: 1.5rem;
    }
}

@media (max-width: 640px) {
    .reviews-plugin-wrapper {
        margin-top: 1rem;
    }
}
