/* Frontend styles for the review slideshow */

.swiper {
    width: 100%;
    /* height is now auto */
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 18px;
    background: #fff;
    flex-direction: column;
    padding: 30px;
    box-sizing: border-box;
}

.review-slide-content {
    max-width: 800px;
    margin: 0 auto;
    color: #333;
}

.reviewer-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #eee;
}

.star-rating {
    margin-bottom: 15px;
}

.star-rating .dashicons {
    color: #ccc; /* Default star color */
    font-size: 24px;
    width: 24px;
    height: 24px;
    line-height: 1;
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff, -1px 0 0 #fff, 1px 0 0 #fff, 0 -1px 0 #fff, 0 1px 0 #fff;
}

.star-rating .dashicons.active {
    color: #ffc107; /* Active star color */
}

.review-text {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.swiper-button-next,
.swiper-button-prev {
    color: #333;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.swiper-pagination-bullet {
    background: #999;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background: #333;
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .swiper {
        /* height is now auto */
    }
    .review-slide-content {
        padding: 20px;
    }
    .review-text {
        font-size: 1em;
    }
    .swiper-button-next,
    .swiper-button-prev {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .swiper {
        /* height is now auto */
    }
    .reviewer-photo img {
        width: 120px;
        height: 120px;
    }
    .star-rating .dashicons {
        font-size: 20px;
    }
    .review-text {
        font-size: 0.9em;
    }
}

/*
 * Custom Navigation Arrows
 * Overrides Swiper's default icon font to be CSP-compliant.
 */
.swiper-button-next::after,
.swiper-button-prev::after {
    display: none; /* Hide the default Swiper icon font */
}

.swiper-button-next span,
.swiper-button-prev span {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    line-height: 1;
}

/* Adjustments for responsive */
@media (max-width: 768px) {
    .swiper-button-next span,
    .swiper-button-prev span {
        font-size: 20px;
    }
}