/* ==========================================================================
   Jeeva Earth Customer Reviews & Testimonials Slider Stylesheet
   Matching Reference Design Exactly:
   - Soft Cream Cards (#f6f4ee) with 24px rounded corners
   - Verified Badge at Top-Right
   - 5 Star Rating with Score (4.9 / 5.0)
   - Bold Product / Review Heading & Clean Review Quote
   - Customer Avatar + Name + City/Product Subtitle
   - Circular Navigation Arrows (Prev Outlined, Next Dark Green Filled)
   ========================================================================== */

:root {
    --jeeva-green: #045A31;
    --jeeva-green-hover: #034425;
    --jeeva-orange: #F47521;
    --jeeva-card-bg: #f6f4ee;
    --jeeva-text-dark: #1e293b;
    --jeeva-text-muted: #64748b;
    --jeeva-border: #e2e8f0;
}

.jeeva-testimonials-section {
    width: 100%;
    max-width: 1280px;
    margin: 60px auto;
    padding: 0 20px;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--jeeva-text-dark);
}

.jeeva-testimonials-container {
    width: 100%;
    position: relative;
}

/* ==========================================================================
   1. Header Row (Title on Left, Nav Arrows on Right)
   ========================================================================== */
.jeeva-testimonials-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    gap: 20px;
}

.jeeva-testimonials-header.no-title {
    justify-content: flex-end;
    margin-bottom: 18px;
}

.jeeva-testimonials-title-wrap {
    flex: 1;
}

.jeeva-testimonials-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--jeeva-text-dark);
    margin: 0 0 6px 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.jeeva-testimonials-subtitle {
    font-size: 15px;
    color: var(--jeeva-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Circular Slider Nav Buttons */
.jeeva-testimonials-nav-btns {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
}

.jeeva-testimonial-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    outline: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* Prev: White background with Theme Orange border */
.jeeva-testimonial-prev {
    background: #ffffff !important;
    border: 1.5px solid var(--jeeva-orange, #F47521) !important;
    color: var(--jeeva-orange, #F47521) !important;
}

.jeeva-testimonial-prev:hover {
    background: #fff7ed !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 117, 33, 0.18) !important;
}

/* Next: Theme Orange filled background with white arrow */
.jeeva-testimonial-next {
    background: var(--jeeva-orange, #F47521) !important;
    border: 1.5px solid var(--jeeva-orange, #F47521) !important;
    color: #ffffff !important;
}

.jeeva-testimonial-next:hover {
    background: var(--jeeva-orange-hover, #dd6212) !important;
    border-color: var(--jeeva-orange-hover, #dd6212) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(244, 117, 33, 0.3) !important;
}

.jeeva-testimonial-arrow:active {
    transform: scale(0.95) !important;
}

.jeeva-testimonial-arrow svg {
    display: block;
}

/* ==========================================================================
   2. Carousel Track & Container
   ========================================================================== */
.jeeva-testimonials-track-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE / Edge */
    padding: 8px 4px 20px;
    cursor: grab;
    user-select: none;
}

.jeeva-testimonials-track-wrap::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.jeeva-testimonials-track-wrap.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.jeeva-testimonials-track {
    display: flex;
    gap: 24px;
    width: max-content;
}

/* ==========================================================================
   3. Single Review Card (Soft Cream Box #f6f4ee)
   ========================================================================== */
.jeeva-testimonial-card {
    background-color: var(--jeeva-card-bg);
    border-radius: 24px;
    padding: 32px 30px 28px;
    box-sizing: border-box;
    width: 380px;
    min-height: 330px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.4);
    scroll-snap-align: start;
    flex-shrink: 0;
}

.jeeva-testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

/* Top Row: Verified Badge (Top Right) */
.jeeva-card-top-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
    min-height: 28px;
}

.jeeva-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 4px 12px 4px 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.jeeva-verified-badge svg {
    display: block;
    color: var(--jeeva-green);
}

/* Rating Row: 5 Stars + Score */
.jeeva-card-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.jeeva-rating-stars {
    display: flex;
    align-items: center;
    gap: 4px;
}

.jeeva-star-svg {
    display: block;
    width: 17px;
    height: 17px;
    fill: var(--jeeva-orange);
}

.jeeva-rating-score {
    font-size: 15px;
    font-weight: 700;
    color: var(--jeeva-text-dark);
    margin-left: 2px;
}

/* Review Title */
.jeeva-card-title {
    font-size: 21px;
    font-weight: 800;
    line-height: 1.28;
    color: var(--jeeva-text-dark);
    margin: 0 0 12px 0;
    letter-spacing: -0.3px;
}

/* Review Text Quote */
.jeeva-card-review-text {
    font-size: 14.5px;
    line-height: 1.55;
    color: #475569;
    margin: 0 0 28px 0;
    flex-grow: 1;
}

/* Author Row at Bottom */
.jeeva-card-author-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    padding-top: 14px;
}

.jeeva-author-avatar-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #e2e8f0;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.jeeva-author-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.jeeva-author-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--jeeva-green);
    color: #ffffff;
    font-weight: 700;
    font-size: 18px;
}

.jeeva-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.jeeva-author-name {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--jeeva-text-dark);
    margin: 0;
    line-height: 1.2;
}

.jeeva-author-meta {
    font-size: 13px;
    color: var(--jeeva-text-muted);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Nav visibility helpers */
.jeeva-nav-mobile-only {
    display: none !important;
}

.jeeva-nav-desktop-only {
    display: flex !important;
}

/* ==========================================================================
   4. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
    .jeeva-testimonial-card {
        width: 340px;
        padding: 26px 24px 22px;
    }

    .jeeva-testimonials-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .jeeva-testimonials-section {
        margin: 28px auto 38px;
        padding: 0 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden;
    }

    .jeeva-testimonials-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto;
        box-sizing: border-box !important;
    }

    .jeeva-testimonials-header.no-title {
        display: none !important;
    }

    .jeeva-nav-desktop-only {
        display: none !important;
    }

    .jeeva-testimonials-bottom-nav.jeeva-nav-mobile-only {
        display: flex !important;
        justify-content: center;
        align-items: center;
        margin-top: 20px;
        width: 100%;
    }

    .jeeva-testimonials-bottom-nav .jeeva-testimonials-nav-btns {
        margin: 0 auto;
        gap: 16px;
    }

    .jeeva-testimonials-track-wrap {
        padding: 4px 0 12px;
        scroll-snap-type: x mandatory;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto;
        overflow-y: hidden;
        margin: 0;
        box-sizing: border-box !important;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .jeeva-testimonials-track-wrap::-webkit-scrollbar {
        display: none !important;
    }

    .jeeva-testimonials-track {
        gap: 16px;
        display: flex;
        width: 100%;
        box-sizing: border-box;
    }

    /* Single Card view on mobile (100% fit inside 16px edge margins) */
    .jeeva-testimonial-card {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        min-height: auto;
        padding: 28px 24px 26px;
        border-radius: 24px;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    .jeeva-card-top-row {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        margin-bottom: 16px;
        box-sizing: border-box;
    }

    .jeeva-card-title {
        font-size: 20px;
        line-height: 1.25;
        margin-bottom: 12px;
    }

    .jeeva-card-review-text {
        font-size: 14.5px;
        line-height: 1.55;
        margin-bottom: 24px;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .jeeva-author-meta {
        font-size: 13px;
        white-space: normal;
        line-height: 1.35;
    }

    .jeeva-testimonial-arrow {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .jeeva-testimonial-card {
        padding: 26px 20px 24px;
        border-radius: 22px;
    }
}
