/* Customer Reviews Section - Full Width */
.customer-reviews-section {
    width: 100vw;
    height: 380px; /* Increased height for larger cards */
    margin: 80px 0;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    /* Dark navy/charcoal background - exact tone */
    background: #FFD66B;
    /* Disable text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Inner wrapper for centering content */
.customer-reviews-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
}

/* Subtle dotted texture - TWO layers for premium feel */
.customer-reviews-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Layer 1: Fine dots */
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1.5px, transparent 1.5px);
    background-size: 14px 14px;
    pointer-events: none;
}

.customer-reviews-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Layer 2: Subtle noise texture */
    background-image: repeating-radial-gradient(
        circle at 7px 7px,
        rgba(255, 255, 255, 0.04) 1px,
        transparent 1px
    );
    background-size: 14px 14px;
    pointer-events: none;
    opacity: 0.8;
}

/* Internal layout container */
.customer-reviews-container {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    padding: 0 40px;
    /* Disable text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* RIGHT ZONE: Character illustration */
.character-illustration {
    width: 32%;
    min-width: 280px;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.character-illustration img {
    max-height: 100%;
    width: auto;
    opacity: 0.9;
    position: absolute; /* موقعیت مطلق */
    bottom: 0;
}


/* LEFT ZONE: Review cards slider with Swiper */
.reviews-slider-wrapper {
    width: 68%;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Swiper container */
.reviews-swiper {
    width: 100%;
    height: 100%;
}

/* Swiper wrapper */
.reviews-swiper .swiper-wrapper {
    height: 100%;
    align-items: center;
}

/* Swiper slides */
.reviews-swiper .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* Review Cards - Responsive for multiple cards view */
.review-card {
    width: 100%;
    max-width: 450px; /* Much larger width */
    min-width: 350px; /* Larger minimum */
    height: 220px; /* Much larger height */
    background: #ffffff;
    border-radius: 50px; /* Larger border radius */
    /* Multi-layer shadow for premium floating effect */
    box-shadow:
        0 25px 50px #ffd56b14,
        0 15px 30px #ffd56b14;
    padding: 10px; /* More padding */
    margin: 0 25px; /* More margin */
    position: relative;
    /* Disable text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* No hover effects - calm, professional */
}

.review-card-content {
    text-align: center;
}

/* Header row - User info */
.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

/* User avatar */
.user-avatar {
    width: 40px; /* Much larger */
    height: 40px; /* Much larger */
    border-radius: 12px 12px 0 0;
    background: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-avatar svg {
    width: 100%;
    height: 100%;
}

/* User info container */
.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

/* Star rating */
.star-rating {
    display: flex;
    gap: 5px;
}

.star {
    font-size: 16px; /* Much larger */
    line-height: 1;
}

.star.filled {
    color: #16a34a;
}

.star.empty {
    color: #d1d5db;
}

/* User name */
.user-name {
    font-size: 18px; /* Much larger */
    font-weight: 600;
    color: #111827;
    line-height: 1.2;
}

/* Review text */
.review-text {
    font-size: 16px; /* Much larger */
    font-weight: 400;
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}




/* Comprehensive Responsive Design for All Devices */

/* Extra small mobile (320px - 479px) */
@media (max-width: 479px) {
    .customer-reviews-section {
        height: 275px; /* Half the height */
        margin: 30px 0;
        border-radius: 0;
    }

    .customer-reviews-wrapper {
        max-width: 100%;
        padding: 0 5px;
    }

    .customer-reviews-container {
        padding: 5px 20px 20px 20px; /* Much less top padding, more space for cards */
        min-height: auto;
        flex-direction: column; /* Normal column: slider first, image second */
        gap: 80px; /* Much more gap between slider and image */
        justify-content: flex-start; /* Align items to top */
    }

    .character-illustration {
        width: 100%;
        height: auto;
        padding-top: 20px; /* Padding from top */
        padding-bottom: 0; /* No bottom padding */
        justify-content: center;
        align-items: center;
        order: 2; /* Second in order */
    }

    .character-illustration img {
        max-width: 180px; /* Larger in extra small mobile */
        max-height: 170px; /* Larger in extra small mobile */
    }

    .reviews-slider-wrapper {
        width: 100%;
        height: auto;
        padding-bottom: 15px; /* Padding from bottom */
        padding-top: 0; /* No top padding */
        order: -1; /* Force first position */
        direction: rtl; /* Ensure RTL direction */
    }

    .review-card {
        width: 100%;
        max-width: none; /* Remove max-width to allow full width */
        min-width: 140px; /* Smaller minimum for 2 cards */
        height: 100px; /* Smaller height for mobile */
        border-radius: 16px; /* Smaller radius */
        padding: 12px; /* Less padding */
        margin: 0 2px; /* Small margin */
    }

    .star-rating {
        gap: 2px;
    }

    .review-text {
        font-size: 12px; /* Much larger for better readability */
    }

    .star {
        font-size: 11px; /* Larger stars */
    }

    .user-name {
        font-size: 13px; /* Much larger name */
    }

    .user-avatar {
        width: 24px; /* Larger avatar for bigger cards */
        height: 24px;
    }

    .user-avatar svg {
        width: 24px;
        height: 24px;
    }

    .review-header {
        margin-bottom: 8px;
        gap: 8px;
    }

    .reviews-slider-wrapper::after,
    .reviews-slider-wrapper::before {
        width: 25px;
    }
}

/* Small mobile (480px - 639px) */
@media (min-width: 480px) and (max-width: 639px) {
    .customer-reviews-section {
        height: 300px; /* Half the height */
        margin: 35px 0;
        border-radius: 0;
    }

    .customer-reviews-wrapper {
        max-width: 100%;
        padding: 0 8px;
    }

    .customer-reviews-container {
        padding: 8px 25px 25px 25px; /* Much less top padding, more space for cards */
        min-height: auto;
        flex-direction: column; /* Normal column: slider first, image second */
        gap: 100px; /* Much more gap between slider and image */
        justify-content: flex-start; /* Align items to top */
    }

    .character-illustration {
        width: 100%;
        height: auto;
        padding-top: 22px; /* Padding from top */
        padding-bottom: 0; /* No bottom padding */
        justify-content: center;
        align-items: center;
        order: 2; /* Second position - image after slider */
    }

    .character-illustration svg {
        max-width: 140px; /* Smaller image */
        max-height: 130px;
    }

    .reviews-slider-wrapper {
        width: 100%;
        height: auto;
        padding-bottom: 18px; /* Padding from bottom */
        padding-top: 0; /* No top padding */
        order: -1; /* Force first position */
        direction: rtl; /* Ensure RTL direction */
    }

    .review-card {
        width: 100%;
        max-width: none; /* Remove max-width to allow full width */
        min-width: 160px; /* Smaller minimum for 2 cards */
        height: 110px; /* Smaller height for mobile */
        border-radius: 18px; /* Smaller radius */
        padding: 14px; /* Less padding */
        margin: 0 3px; /* Small margin */
    }

    .star-rating {
        gap: 2px;
    }

    .review-text {
        font-size: 13px; /* Much larger for better readability */
    }

    .star {
        font-size: 12px; /* Larger stars */
    }

    .user-name {
        font-size: 14px; /* Much larger name */
    }

    .user-avatar {
        width: 26px; /* Larger avatar for bigger cards */
        height: 26px;
    }

    .user-avatar svg {
        width: 26px;
        height: 26px;
    }

    .review-header {
        margin-bottom: 9px;
        gap: 9px;
    }

    .reviews-slider-wrapper::after,
    .reviews-slider-wrapper::before {
        width: 30px;
    }
}

/* Mobile (640px - 767px) */
@media (min-width: 640px) and (max-width: 767px) {
    .customer-reviews-section {
        height: 325px; /* Half the height */
        margin: 40px 0;
        border-radius: 0;
    }

    .customer-reviews-wrapper {
        max-width: 100%;
        padding: 0 10px;
    }

    .customer-reviews-container {
        padding: 10px 30px 30px 30px; /* Much less top padding, more space for cards */
        min-height: auto;
        flex-direction: column; /* Normal column: slider first, image second */
        gap: 120px; /* Much more gap between slider and image */
        justify-content: flex-start; /* Align items to top */
    }

    .character-illustration {
        width: 100%;
        height: auto;
        padding-top: 25px; /* Padding from top */
        padding-bottom: 0; /* No bottom padding */
        justify-content: center;
        align-items: center;
        order: 2; /* Second in order - image at bottom */
    }

    .character-illustration svg {
        max-width: 160px; /* Smaller image */
        max-height: 150px;
    }

    .reviews-slider-wrapper {
        width: 100%;
        height: auto;
        padding-bottom: 20px; /* Padding from bottom */
        padding-top: 0; /* No top padding */
        order: -1; /* Force first position */
        direction: rtl; /* Ensure RTL direction */
    }

    .review-card {
        width: 100%;
        max-width: none; /* Remove max-width to allow full width */
        min-width: 180px; /* Smaller minimum for 2 cards */
        height: 120px; /* Smaller height for mobile */
        border-radius: 20px; /* Smaller radius */
        padding: 16px; /* Less padding */
        margin: 0 4px; /* Small margin */
    }

    .star-rating {
        gap: 3px;
    }

    .review-text {
        font-size: 14px; /* Much larger for better readability */
    }

    .star {
        font-size: 13px; /* Larger stars */
    }

    .user-name {
        font-size: 15px; /* Much larger name */
    }

    .user-avatar {
        width: 28px; /* Larger avatar for bigger cards */
        height: 28px;
    }

    .user-avatar svg {
        width: 28px;
        height: 28px;
    }

    .review-header {
        margin-bottom: 10px;
        gap: 10px;
    }

    .reviews-slider-wrapper::after,
    .reviews-slider-wrapper::before {
        width: 35px;
    }
}

/* Small tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .customer-reviews-section {
        height: auto;
        margin: 50px 0;
        border-radius: 0;
    }

    .customer-reviews-wrapper {
        max-width: 100%;
        padding: 0 15px;
    }

    .customer-reviews-container {
        padding: 25px;
        min-height: 250px;
    }

    .character-illustration {
        width: 45%;
        min-width: 220px;
    }

    .character-illustration svg {
        max-width: 220px;
    }

    .reviews-slider-wrapper {
        width: 55%;
    }

    .review-card {
        width: 100%;
        max-width: 320px; /* Much larger for tablets */
        min-width: 280px; /* Larger minimum */
        height: 160px; /* Much larger height */
        border-radius: 30px; /* Larger radius */
        padding: 20px; /* More padding */
        margin: 0 8px; /* More margin */
    }

    .star-rating {
        gap: 2px;
    }

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

    .star {
        font-size: 10px;
    }

    .user-name {
        font-size: 12px;
    }

    .user-avatar {
        width: 24px;
        height: 24px;
    }

    .user-avatar svg {
        width: 24px;
        height: 24px;
    }

    .review-header {
        margin-bottom: 7px;
        gap: 7px;
    }

    .reviews-slider-wrapper::after,
    .reviews-slider-wrapper::before {
        width: 45px;
    }
}

/* Tablet (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .customer-reviews-section {
        height: auto;
        margin: 55px 0;
        border-radius: 0;
    }

    .customer-reviews-wrapper {
        max-width: 1100px;
        padding: 0 18px;
    }

    .customer-reviews-container {
        padding: 28px;
        min-height: 270px;
    }

    .character-illustration {
        width: 42%;
        min-width: 240px;
    }

    .character-illustration svg {
        max-width: 240px;
    }

    .reviews-slider-wrapper {
        width: 58%;
    }

    .review-card {
        width: 100%;
        max-width: 260px;
        min-width: 240px;
        height: 130px;
        border-radius: 22px;
        padding: 15px;
        margin: 0 3px;
    }

    .star-rating {
        gap: 2px;
    }

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

    .star {
        font-size: 11px;
    }

    .user-name {
        font-size: 13px;
    }

    .user-avatar {
        width: 26px;
        height: 26px;
    }

    .user-avatar svg {
        width: 26px;
        height: 26px;
    }

    .review-header {
        margin-bottom: 8px;
        gap: 8px;
    }

    .reviews-slider-wrapper::after,
    .reviews-slider-wrapper::before {
        width: 50px;
    }
}

/* Small laptop (1200px - 1439px) */
@media (min-width: 1200px) and (max-width: 1439px) {
    .customer-reviews-section {
        height: 340px;
        margin: 70px 0;
        border-radius: 0;
    }

    .customer-reviews-wrapper {
        max-width: 1200px;
        padding: 0 20px;
    }

    .customer-reviews-container {
        padding: 32px;
        min-height: 300px;
    }

    .character-illustration {
        width: 35%;
        min-width: 260px;
    }

    .character-illustration svg {
        max-width: 260px;
    }

    .reviews-slider-wrapper {
        width: 65%;
    }

    .review-card {
        width: 100%;
        max-width: 380px; /* Much larger for laptops */
        min-width: 340px; /* Larger minimum */
        height: 190px; /* Much larger height */
        border-radius: 36px; /* Larger radius */
        padding: 25px; /* More padding */
        margin: 0 12px; /* More margin */
    }

    .star-rating {
        gap: 3px;
    }

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

    .star {
        font-size: 12px;
    }

    .user-name {
        font-size: 14px;
    }

    .user-avatar {
        width: 28px;
        height: 28px;
    }

    .user-avatar svg {
        width: 28px;
        height: 28px;
    }

    .review-header {
        margin-bottom: 9px;
        gap: 9px;
    }

    .reviews-slider-wrapper::after,
    .reviews-slider-wrapper::before {
        width: 60px;
    }
}

/* Laptop (1440px - 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
    .customer-reviews-section {
        height: 350px;
        margin: 75px 0;
        border-radius: 0;
    }

    .customer-reviews-wrapper {
        max-width: 1300px;
        padding: 0 22px;
    }

    .customer-reviews-container {
        padding: 35px;
        min-height: 310px;
    }

    .character-illustration {
        width: 34%;
        min-width: 280px;
    }

    .character-illustration svg {
        max-width: 280px;
    }

    .reviews-slider-wrapper {
        width: 66%;
    }

    .review-card {
        width: 100%;
        max-width: 400px; /* Much larger for laptops */
        min-width: 360px; /* Larger minimum */
        height: 200px; /* Much larger height */
        border-radius: 40px; /* Larger radius */
        padding: 28px; /* More padding */
        margin: 0 15px; /* More margin */
    }

    .star-rating {
        gap: 3px;
    }

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

    .star {
        font-size: 13px;
    }

    .user-name {
        font-size: 15px;
    }

    .user-avatar {
        width: 30px;
        height: 30px;
    }

    .user-avatar svg {
        width: 30px;
        height: 30px;
    }

    .review-header {
        margin-bottom: 10px;
        gap: 10px;
    }

    .reviews-slider-wrapper::after,
    .reviews-slider-wrapper::before {
        width: 70px;
    }
}

/* Desktop monitor (1920px - 2559px) */
@media (min-width: 1920px) and (max-width: 2559px) {
    .customer-reviews-section {
        height: 380px;
        margin: 85px 0;
        border-radius: 0;
    }

    .customer-reviews-wrapper {
        max-width: 1600px;
        padding: 0 25px;
    }

    .customer-reviews-container {
        padding: 40px;
        min-height: 340px;
    }

    .character-illustration {
        width: 32%;
        min-width: 320px;
    }

    .character-illustration svg {
        max-width: 320px;
    }

    .reviews-slider-wrapper {
        width: 68%;
    }

    .review-card {
        width: 100%;
        max-width: 420px; /* Even larger for monitors */
        min-width: 380px; /* Larger minimum */
        height: 210px; /* Much larger height */
        border-radius: 42px; /* Larger radius */
        padding: 32px; /* More padding */
        margin: 0 20px; /* More margin */
    }

    .star-rating {
        gap: 4px;
    }

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

    .star {
        font-size: 14px;
    }

    .user-name {
        font-size: 16px;
    }

    .user-avatar {
        width: 34px;
        height: 34px;
    }

    .user-avatar svg {
        width: 34px;
        height: 34px;
    }

    .review-header {
        margin-bottom: 12px;
        gap: 12px;
    }

    .reviews-slider-wrapper::after,
    .reviews-slider-wrapper::before {
        width: 85px;
    }
}

/* Large monitor / TV (2560px+) */
@media (min-width: 2560px) {
    .customer-reviews-section {
        height: 420px;
        margin: 100px 0;
        border-radius: 0;
    }

    .customer-reviews-wrapper {
        max-width: 2000px;
        padding: 0 30px;
    }

    .customer-reviews-container {
        padding: 45px;
        min-height: 380px;
    }

    .character-illustration {
        width: 30%;
        min-width: 380px;
    }

    .character-illustration svg {
        max-width: 380px;
    }

    .reviews-slider-wrapper {
        width: 70%;
    }

    .review-card {
        width: 100%;
        max-width: 480px; /* Maximum size for TVs */
        min-width: 420px; /* Larger minimum */
        height: 240px; /* Maximum height */
        border-radius: 48px; /* Maximum radius */
        padding: 35px; /* Maximum padding */
        margin: 0 25px; /* Maximum margin */
    }

    .star-rating {
        gap: 5px;
    }

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

    .star {
        font-size: 15px;
    }

    .user-name {
        font-size: 17px;
    }

    .user-avatar {
        width: 38px;
        height: 38px;
    }

    .user-avatar svg {
        width: 38px;
        height: 38px;
    }

    .review-header {
        margin-bottom: 14px;
        gap: 14px;
    }

    .reviews-slider-wrapper::after,
    .reviews-slider-wrapper::before {
        width: 100px;
    }
}


@media (max-width: 480px) {
    .customer-reviews-section {
        margin: 30px 0;
        border-radius: 0;
    }

    .customer-reviews-wrapper {
        padding: 0 5px;
    }

    .customer-reviews-container {
        padding: 15px;
    }

    .character-illustration {
        padding-bottom: 20px;
    }

    .character-illustration svg {
        max-width: 150px;
        max-height: 140px;
    }

    .reviews-slider-wrapper {
        padding-top: 15px;
    }

    .review-card {
        width: 100%;
        max-width: 180px;
        min-width: 160px;
        height: 90px;
        border-radius: 16px;
        padding: 10px;
        margin: 0 2px;
    }

    .star-rating {
        gap: 1px;
    }

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

    .star {
        font-size: 9px;
    }

    .user-name {
        font-size: 11px;
    }

    .user-avatar {
        width: 20px;
        height: 20px;
    }

    .user-avatar svg {
        width: 20px;
        height: 20px;
    }

    .review-header {
        margin-bottom: 6px;
        gap: 6px;
    }

    .reviews-slider-wrapper::after {
        width: 40px;
    }

    .reviews-slider-wrapper::before {
        width: 40px;
    }

    /* Small hint of next card on mobile */
    .next-card-overlay {
        width: 30px;
    }
}

/* Dragging state styles */
.reviews-slider-wrapper.dragging {
    cursor: grabbing;
}

.reviews-slider-wrapper.dragging .reviews-slider {
    transition: none;
}

/* Very small devices (phones, 320px and down) */
@media (max-width: 320px) {
    .customer-reviews-section {
        height: 250px; /* Even smaller for very small devices */
        margin: 25px 0;
        border-radius: 0;
    }

    .customer-reviews-wrapper {
        padding: 0 3px;
    }

    .customer-reviews-container {
        padding: 3px 15px 15px 15px; /* Much less top padding */
        gap: 60px; /* Adjusted gap for smaller screens */
        justify-content: flex-start;
    }

    .reviews-slider-wrapper {
        order: -1;
        direction: rtl;
    }

    .character-illustration {
        order: 2;
    }

    .character-illustration img {
        max-width: 140px; /* Smaller for very small devices */
        max-height: 130px;
    }

    .review-card {
        width: 100%;
        max-width: none;
        min-width: 120px; /* Smaller cards */
        height: 85px; /* Smaller height */
        border-radius: 14px;
        padding: 10px;
        margin: 0 1px;
    }

    .star-rating {
        gap: 1px;
    }

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

    .star {
        font-size: 9px;
    }

    .user-name {
        font-size: 12px;
    }

    .user-avatar {
        width: 20px;
        height: 20px;
    }
}

/* Very large devices (4K and above) */
@media (min-width: 2560px) {
    .customer-reviews-section {
        height: 400px; /* Taller for large screens */
        margin: 60px 0;
        border-radius: 32px;
    }

    .customer-reviews-wrapper {
        max-width: 1400px; /* Limit max width */
        margin: 0 auto;
        padding: 0 20px;
    }

    .customer-reviews-container {
        padding: 50px 60px;
        gap: 100px;
    }

    .character-illustration img {
        max-width: 300px; /* Larger for 4K */
        max-height: 280px;
    }

    .review-card {
        width: 100%;
        min-width: 420px; /* Larger cards */
        height: 200px; /* Larger height */
        border-radius: 36px;
        padding: 30px;
    }

    .star-rating {
        gap: 6px;
    }

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

    .star {
        font-size: 18px;
    }

    .user-name {
        font-size: 18px;
    }

    .user-avatar {
        width: 40px;
        height: 40px;
    }

    .user-avatar svg {
        width: 40px;
        height: 40px;
    }
}

/* Medium tablets and small laptops (1024px - 1199px) - gap in existing breakpoints */
@media (min-width: 1024px) and (max-width: 1199px) {
    .customer-reviews-section {
        height: 360px;
        margin: 50px 0;
        border-radius: 24px;
    }

    .customer-reviews-container {
        padding: 40px 50px;
        gap: 80px;
    }

    .character-illustration img {
        max-width: 220px;
        max-height: 200px;
    }

    .review-card {
        min-width: 340px;
        height: 150px;
        border-radius: 28px;
        padding: 22px;
    }
}
