/* Google Business Reviews Carousel Styles */
.testimonials-section {
    padding: 60px 0;
    background-color: #f9f9f9;
    position: relative;
}

/* Container for the testimonials carousel */
.testimonials-section .swiper {
    max-width: 80%;
    margin: 0 auto;
    padding: 0;
}

/* Add space between heading and carousel */
.testimonials-section .heading-section {
    margin-bottom: 30px;
}

.testimonial-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin: 20px 0px 30px 0px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.testimonial-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
}

.testimonial-rating {
    margin-bottom: 15px;
    text-align: center;
}

.testimonial-rating .star {
    color: #FFD700;
    font-size: 18px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
    flex-grow: 1;
    font-style: italic;
    text-align: center;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: auto;
    justify-content: center;
}

.author-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.author-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.google-badge {
    display: flex;
    align-items: center;
    justify-content: center;
}

.google-badge img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.google-badge span {
    font-size: 14px;
    color: #777;
}

/* Swiper navigation and pagination customization */
.testimonials-swiper {
    padding-bottom: 50px; /* Increased padding to accommodate pagination below */
    position: relative;
    margin-bottom: 20px; /* Add extra space at the bottom */
}

/* Create a container for pagination and navigation */
.testimonials-swiper .swiper-pagination {
    position: absolute !important;
    bottom: 0 !important;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
    width: 100%;
    padding-bottom: 10px;
    display: block !important; /* Ensure visibility */
    opacity: 1 !important; /* Ensure visibility */
    margin-bottom: -20px !important; /* Position below the slides */
}

/* Pagination bullets styling */
.swiper-pagination-bullet {
    width: 10px !important;
    height: 10px !important;
    background-color: #ccc !important;
    opacity: 1 !important;
    margin: 0 5px !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
}

.swiper-pagination-bullet-active {
    background-color: #333 !important;
    transform: scale(1.2) !important;
}

/* Position the navigation arrows (currently hidden) */
.testimonial-next,
.testimonial-prev {
    display: none !important; /* Hide the navigation arrows */
    color: #333 !important;
    width: 40px !important;
    height: 40px !important;
    background-color: #fff !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
    top: auto !important;
    bottom: 20px !important; /* Align with pagination dots */
    margin-top: 0 !important;
    transform: translateY(0) !important;
    z-index: 11 !important; /* Ensure arrows are above other elements */
}

.testimonial-next {
    right: calc(50% - 100px) !important; /* Position to the right of dots */
}

.testimonial-prev {
    left: calc(50% - 100px) !important; /* Position to the left of dots */
}

.testimonial-next:after,
.testimonial-prev:after {
    font-size: 18px !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .testimonials-section .swiper {
        max-width: 90%;
        padding: 0 10px;
    }

    .testimonial-card {
        padding: 20px;
        margin: 15px 5px;
    }

    .testimonial-text {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .testimonials-section .swiper {
        max-width: 95%;
        padding: 0 5px;
    }

    /* Center the testimonial content on mobile */
    .testimonial-content {
        text-align: center;
        margin: 0 auto;
    }

    .testimonial-author {
        justify-content: center;
    }

    /* Ensure the testimonial card has proper padding */
    .testimonial-card {
        padding: 20px 15px;
        position: relative;
        margin-bottom: 10px;
    }

    /* Move pagination dots below the box */
    .testimonials-swiper .swiper-pagination {
        bottom: 0 !important;
        position: relative;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    /* Make pagination dots slightly smaller on mobile */
    .testimonial-pagination .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }

    /* Adjust overall container padding */
    .testimonials-swiper {
        padding-bottom: 40px;
    }
}
