/**
 * Reviews/Testimonials Styles
 * Exact match to reference design
 *
 * @package Estanar
 */

/* ==========================================================================
   Reviews Section
   ========================================================================== */

.estanar-reviews-section {
    padding: 60px 0 80px;
    background: #6B4DE6;
    overflow: hidden;
}

/* ==========================================================================
   Section Header
   ========================================================================== */

.reviews-section-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.reviews-section-title {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 14px 0;
    line-height: 1.1;
}

.reviews-section-subtitle {
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   Carousel Container
   ========================================================================== */

.reviews-carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.reviews-carousel {
    overflow: hidden;
}

.reviews-carousel-track {
    display: flex;
    transition: transform 0.4s ease-out;
}

.reviews-carousel-slide {
    flex: 0 0 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

/* ==========================================================================
   Card Wrapper
   ========================================================================== */

.review-card-wrapper {
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   Review Card - Rounded Square with Gradient Border
   ========================================================================== */

.review-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px 18px 24px;
    position: relative;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    border: 3px solid transparent;
}

/* Card 1 - Coral to Purple gradient border */
.reviews-carousel-slide:nth-child(3n+1) .review-card {
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(to bottom, #F26A5E 0%, #9B5DE5 100%) border-box;
}

/* Card 2 - Purple to Deep Purple gradient border */
.reviews-carousel-slide:nth-child(3n+2) .review-card {
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(to bottom, #9B5DE5 0%, #6B4DE6 100%) border-box;
}

/* Card 3 - Mint to Purple gradient border */
.reviews-carousel-slide:nth-child(3n) .review-card {
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(to bottom, #A8E6CF 0%, #8B7DE6 100%) border-box;
}

/* ==========================================================================
   Rating - Top Right Inside Card
   ========================================================================== */

.review-rating {
    position: absolute;
    top: 22px;
    right: 22px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.review-rating-number {
    font-size: 14px;
    font-weight: 500;
    color: #9CA3AF;
}

.review-rating-star {
    color: #FBBF24;
    font-size: 15px;
}

/* ==========================================================================
   Review Content
   ========================================================================== */

.review-content {
    flex: 1;
    display: flex;
    align-items: center;
    padding-top: 10px;
}

.review-text {
    font-size: 15px;
    line-height: 1.75;
    color: #1a1a2e;
    margin: 0;
    font-weight: 400;
    text-align: left;
}

/* ==========================================================================
   Author - Outside Card on Purple
   ========================================================================== */

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.review-author-image {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255,255,255,0.1);
}

.review-author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.review-author-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.review-author-job {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ==========================================================================
   Carousel Navigation
   ========================================================================== */

.reviews-carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 35px;
}

.reviews-carousel-arrows {
    display: flex;
    gap: 10px;
}

.carousel-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.carousel-arrow svg {
    width: 18px;
    height: 18px;
}

.reviews-carousel-dots {
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.carousel-dot.active {
    background: #fff;
}

.carousel-dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   No Reviews
   ========================================================================== */

.no-reviews {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
}

/* ==========================================================================
   Responsive - Mobile First
   ========================================================================== */

@media (min-width: 576px) {
    .reviews-section-title {
        font-size: 32px;
    }

    .review-card {
        padding: 24px 22px 28px;
        min-height: 200px;
    }

    .review-text {
        font-size: 16px;
    }

    .review-author-image {
        width: 48px;
        height: 48px;
    }

    .review-author-name {
        font-size: 15px;
    }

    .review-author-job {
        font-size: 13px;
    }
}

@media (min-width: 768px) {
    .estanar-reviews-section {
        padding: 80px 0 100px;
    }

    .reviews-carousel-slide {
        flex: 0 0 50%;
        padding: 0 14px;
    }

    .reviews-section-title {
        font-size: 38px;
    }

    .reviews-section-subtitle {
        font-size: 17px;
    }

    .review-card {
        padding: 30px 28px 35px;
        min-height: 240px;
        border-radius: 24px;
    }

    .reviews-carousel-nav {
        margin-top: 45px;
    }
}

@media (min-width: 992px) {
    .reviews-carousel-slide {
        flex: 0 0 33.333%;
    }

    .reviews-section-title {
        font-size: 48px;
    }
}

/* ==========================================================================
   RTL Support
   ========================================================================== */

[dir="rtl"] .review-text {
    text-align: right;
}

[dir="rtl"] .review-rating {
    right: auto;
    left: 22px;
}

[dir="rtl"] .review-author {
    flex-direction: row-reverse;
}

[dir="rtl"] .review-author-info {
    text-align: right;
}

[dir="rtl"] .reviews-carousel-arrows {
    flex-direction: row-reverse;
}

[dir="rtl"] .carousel-arrow svg {
    transform: scaleX(-1);
}
