/* Global Reviews Component Styles */
.global-reviews-section {
    
    background-color: #F9F8EF;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    /* Prevent horizontal scroll on mobile while allowing vertical overflow */
    overflow-x: hidden;
    overflow-y: visible;
}

.global-reviews-container {
    max-width: 1200px;
    margin: 40px auto;
    /* Keep horizontal scroll disabled to avoid layout break on small screens */
    overflow-x: hidden;
    overflow-y: visible;
}

/* Header Styles */
.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    align-self: stretch;
    gap: 16px;
}

.reviews-title {
    font-family: 'Fira Sans';
    font-size: 40px;
    font-weight: 600;
    line-height: 1.4em;
    letter-spacing: -1%;
    color: #333231;
    margin: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: left;
}

.title-line-1 {
    color: #333231;
}

.title-line-2 {
    color: #3E7B51;
}

/* Navigation Styles - Enhanced UX */
.reviews-navigation {
    display: flex;
    gap: 16px;
    align-items: center;
    z-index: 10;
    position: relative;
}

.nav-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: #3E7B51;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 12px;
    gap: 8px;
    /* Enhanced touch target */
    min-width: 44px;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: inherit;
    transform: scale(0);
    transition: transform 0.2s ease;
}

.nav-btn:active::before {
    transform: scale(1);
}

.nav-btn:hover {
    background-color: #2a5a3a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-btn:hover svg path {
    stroke: #FFFFFF;
}

.nav-btn:disabled {
    cursor: not-allowed;
    opacity: 0.4;
    transform: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.nav-btn.disabled {
    pointer-events: none;
}

/* Reviews Slider Styles - Enhanced for Modern UX */
.reviews-slider-container {
    overflow: visible;
    margin-bottom: 48px;
    /* ensure only this level allows visual overflow for cards/shadows */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    position: relative;
    z-index: 1000;
    /* Enhanced touch support */
    touch-action: pan-x;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.reviews-slider {
    display: flex;
    gap: 24px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: max-content;
    will-change: transform;
    /* Hardware acceleration for smooth performance */
    transform: translate3d(0, 0, 0);
    cursor: grab;
}

.reviews-slider:active {
    cursor: grabbing;
}

/* Review Card Styles */
.review-card {
    flex: 0 0 320px;
    width: 320px;
    background: white;
    border-radius: 0;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

/* All review cards have gray text */
.review-card .review-text {
    color: #6E6C6A;
}

/* Satisfaction Card Styles */
.satisfaction-card {
    width: 320px;
    height: 400px;
    border: 1px solid #C0BFB8;
    background: #FFFFFF;
    border-radius: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    text-align: center;
}

.satisfaction-rate {
    font-family: 'Fira Sans', sans-serif;
    font-size: 120px;
    font-weight: 500;
    line-height: 1.4em;
    letter-spacing: -0.01em;
    color: #333231;
    text-align: center;
}

.satisfaction-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    gap: 12px;
}

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

.star-icon {
    width: 20px;
    height: 20px;
}

.satisfaction-title {
    font-family: 'Fira Sans', sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4em;
    letter-spacing: -0.01em;
    color: #333231;
    text-align: center;
    align-self: stretch;
}

.customer-count {
    font-family: 'Fira Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5em;
    color: #6E6C6A;
    text-align: center;
    align-self: stretch;
}

/* Customer Review Card Styles */
.customer-review {
    justify-content: space-between;
    width: 320px;
    height: 400px;
    border: 1px solid #C0BFB8;
    border-radius: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 5000;
}

.review-text {
    font-family: 'Fira Sans', sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5em;
    letter-spacing: -0.01em;
    text-align: left;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 15em; /* 10 lines with 1.5em line height */
    /* Standard line-clamp for better browser support */
    display: -webkit-box;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
    align-self: stretch;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3E7B51 0%, #5A9B6B 100%);
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.reviewer-name {
    font-family: 'Fira Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4em;
    letter-spacing: -0.01em;
    color: #333231;
    flex-grow: 1;
}

/* View All Button Styles */
.view-all-container {
    display: flex;
    justify-content: center;
}

.view-all-btn {
    background: #3E7B51;
    border: none;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.view-all-btn:hover {
    background-color: #2d5a3b;
    transform: translateY(-2px);
}

.view-all-text {
    font-family: 'Fira Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #FFFFFF;
    letter-spacing: 2%;
    text-transform: uppercase;
    line-height: 1.2em;
    padding: 0 6px;
}

/* Responsive Design - Modern UX/UI Optimized */

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    .global-reviews-container {
        max-width: 1200px;
        
    }
    
    .reviews-slider {
        gap: 32px;
    }
    
    .review-card {
        flex: 0 0 340px;
        width: 340px;
        padding: 36px;
    }
    
    .satisfaction-card {
        width: 340px;
        height: 420px;
        padding: 24px;
    }
    
    .customer-review {
        width: 340px;
        height: 420px;
        padding: 24px;
    }
}

/* Standard Desktop (1200px - 1439px) */
@media (min-width: 1200px) and (max-width: 1439px) {
    .global-reviews-container {
        max-width: 1200px;
        padding: 0 32px;
    }
    
    .reviews-slider {
        gap: 28px;
    }
}

/* Desktop-only overflow behavior: allow visual overflow on wider screens */
@media (min-width: 1200px) {
    .global-reviews-section,
    .global-reviews-container {
        overflow: visible; /* show card edges/shadows beyond container on desktop */
    }
}

/* Large Tablet Landscape (993px - 1199px) */
@media (min-width: 993px) and (max-width: 1199px) {
    .global-reviews-container {
        max-width: 1000px;
        padding: 0 32px;
    }
    
    .reviews-slider {
        gap: 24px;
    }
    
    .review-card {
        flex: 0 0 300px;
        width: 300px;
        padding: 28px;
    }
    
    .satisfaction-card {
        width: 300px;
        height: 380px;
        padding: 20px;
        gap: 32px;
    }
    
    .customer-review {
        width: 300px;
        height: 380px;
        padding: 20px;
    }
    
    .reviews-title {
        font-size: 36px;
    }
    
    .satisfaction-rate {
        font-size: 100px;
    }
}

/* Medium Tablet Portrait (769px - 992px) */
@media (min-width: 769px) and (max-width: 992px) {
    .global-reviews-container {
        max-width: 900px;
        padding: 0 24px;
    }
    
    .reviews-slider {
        gap: 20px;
    }
    
    .review-card {
        flex: 0 0 280px;
        width: 280px;
        padding: 24px;
    }
    
    .satisfaction-card {
        width: 280px;
        height: 360px;
        padding: 18px;
        gap: 28px;
    }
    
    .customer-review {
        width: 280px;
        height: 360px;
        padding: 18px;
        gap: 18px;
    }
    
    .reviews-title {
        font-size: 34px;
    }
    
    .satisfaction-rate {
        font-size: 90px;
    }
    
    .satisfaction-title {
        font-size: 18px;
    }
    
    .review-text {
        font-size: 18px;
        -webkit-line-clamp: 8;
    }
}

/* Small Tablet Portrait (601px - 768px) */
@media (min-width: 601px) and (max-width: 768px) {
    .global-reviews-section {
        padding: 48px 0;
    }
    
    .global-reviews-container {
        padding: 0 20px;
        margin: 32px auto;
    }
    
    .reviews-header {
        flex-direction: column;
        gap: 24px;
        align-items: center;
        text-align: center;
        margin-bottom: 32px;
    }
    
    .reviews-title {
        font-size: 32px;
        text-align: center;
    }
    
    .reviews-navigation {
        order: -1;
    }
    
    .reviews-slider {
        gap: 18px;
    }
    
    .review-card {
        flex: 0 0 260px;
        width: 260px;
        padding: 22px;
        min-height: 320px;
    }
    
    .satisfaction-card {
        width: 260px;
        height: 340px;
        padding: 16px;
        gap: 24px;
    }
    
    .customer-review {
        width: 260px;
        height: 340px;
        padding: 16px;
        gap: 16px;
    }
    
    .satisfaction-rate {
        font-size: 75px;
    }
    
    .satisfaction-title {
        font-size: 17px;
    }
    
    .review-text {
        font-size: 17px;
        -webkit-line-clamp: 6;
    }
    
    .reviewer-name {
        font-size: 15px;
    }
}

/* Large Mobile Landscape (481px - 600px) */
@media (min-width: 481px) and (max-width: 600px) {
    .global-reviews-section {
        padding: 40px 0;
    }
    
    .global-reviews-container {
        margin: 28px auto;
        padding: 0 16px;
    }
    
    .reviews-header {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
        margin-bottom: 28px;
    }
    
    .reviews-title {
        font-size: 30px;
        text-align: center;
    }
    
    .reviews-navigation {
        gap: 14px;
        order: -1;
    }
    
    .nav-btn {
        width: 42px;
        height: 42px;
        padding: 11px;
    }
    
    .reviews-slider {
        gap: 16px;
    }
    
    .reviews-slider-container {
        margin-bottom: 32px;
        overflow: visible;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0 4px;
    }
    
    .reviews-slider-container::-webkit-scrollbar {
        display: none;
    }
    
    .review-card {
        flex: 0 0 240px;
        width: 240px;
        padding: 20px;
        min-height: 300px;
        border-radius: 8px;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    }
    
    .satisfaction-card {
        width: 240px;
        height: 320px;
        padding: 16px;
        gap: 20px;
        border-radius: 8px;
    }
    
    .customer-review {
        width: 240px;
        height: 320px;
        padding: 16px;
        gap: 14px;
        border-radius: 8px;
    }
    
    .satisfaction-rate {
        font-size: 70px;
    }
    
    .satisfaction-title {
        font-size: 16px;
    }
    
    .customer-count {
        font-size: 13px;
    }
    
    .review-text {
        font-size: 16px;
        -webkit-line-clamp: 5;
    }
    
    .reviewer-name {
        font-size: 14px;
    }
    
    .view-all-btn {
        padding: 12px 16px;
        border-radius: 8px;
    }
}

/* Standard Mobile Portrait (361px - 480px) */
@media (min-width: 361px) and (max-width: 480px) {
    .global-reviews-section {
        padding: 36px 0;
    }
    
    .global-reviews-container {
        margin: 24px auto;
        padding: 0 14px;
    }
    
    .reviews-header {
        flex-direction: column;
        gap: 18px;
        align-items: center;
        text-align: center;
        margin-bottom: 24px;
    }
    
    .reviews-title {
        font-size: 28px;
        text-align: center;
        line-height: 1.3em;
    }
    
    .reviews-navigation {
        gap: 12px;
        order: -1;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        padding: 10px;
        border-radius: 10px;
    }
    
    .reviews-slider {
        gap: 14px;
    }
    
    .reviews-slider-container {
        margin-bottom: 28px;
        overflow: visible;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0 2px;
    }
    
    .reviews-slider-container::-webkit-scrollbar {
        display: none;
    }
    
    .review-card {
        flex: 0 0 220px;
        width: 220px;
        padding: 18px;
        min-height: 280px;
        border-radius: 6px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .satisfaction-card {
        width: 220px;
        height: 300px;
        padding: 14px;
        gap: 18px;
        border-radius: 6px;
    }
    
    .customer-review {
        width: 220px;
        height: 300px;
        padding: 14px;
        gap: 12px;
        border-radius: 6px;
    }
    
    .satisfaction-rate {
        font-size: 65px;
    }
    
    .satisfaction-title {
        font-size: 15px;
    }
    
    .customer-count {
        font-size: 12px;
    }
    
    .review-text {
        font-size: 15px;
        -webkit-line-clamp: 4;
        line-height: 1.4em;
    }
    
    .reviewer-avatar {
        width: 36px;
        height: 36px;
    }
    
    .reviewer-name {
        font-size: 13px;
    }
    
    .view-all-btn {
        padding: 10px 14px;
        border-radius: 6px;
    }
    
    .view-all-text {
        font-size: 12px;
    }
}

/* Small Mobile Portrait (320px - 360px) */
@media (min-width: 320px) and (max-width: 360px) {
    .global-reviews-section {
        padding: 32px 0;
    }
    
    .global-reviews-container {
        margin: 20px auto;
        padding: 0 12px;
    }
    
    .reviews-header {
        flex-direction: column;
        gap: 16px;
        align-items: center;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .reviews-title {
        font-size: 24px;
        text-align: center;
        line-height: 1.2em;
    }
    
    .reviews-navigation {
        gap: 10px;
        order: -1;
    }
    
    .nav-btn {
        width: 36px;
        height: 36px;
        padding: 8px;
        border-radius: 8px;
    }
    
    .reviews-slider {
        gap: 12px;
    }
    
    .reviews-slider-container {
        margin-bottom: 24px;
        overflow: visible;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0 1px;
    }
    
    .reviews-slider-container::-webkit-scrollbar {
        display: none;
    }
    
    .review-card {
        flex: 0 0 200px;
        width: 200px;
        padding: 16px;
        min-height: 260px;
        border-radius: 4px;
        box-shadow: 0 3px 16px rgba(0, 0, 0, 0.08);
    }
    
    .satisfaction-card {
        width: 200px;
        height: 280px;
        padding: 12px;
        gap: 16px;
        border-radius: 4px;
    }
    
    .customer-review {
        width: 200px;
        height: 280px;
        padding: 12px;
        gap: 10px;
        border-radius: 4px;
    }
    
    .satisfaction-rate {
        font-size: 55px;
    }
    
    .satisfaction-title {
        font-size: 14px;
    }
    
    .customer-count {
        font-size: 11px;
    }
    
    .review-text {
        font-size: 14px;
        -webkit-line-clamp: 3;
        line-height: 1.3em;
    }
    
    .reviewer-avatar {
        width: 32px;
        height: 32px;
    }
    
    .reviewer-name {
        font-size: 12px;
    }
    
    .view-all-btn {
        padding: 8px 12px;
        border-radius: 4px;
    }
    
    .view-all-text {
        font-size: 11px;
    }
}

/* Extra Small Mobile (below 320px) */
@media (max-width: 319px) {
    .global-reviews-section {
        padding: 28px 0;
    }
    
    .global-reviews-container {
        margin: 16px auto;
        padding: 0 8px;
    }
    
    .reviews-header {
        flex-direction: column;
        gap: 14px;
        align-items: center;
        text-align: center;
        margin-bottom: 16px;
    }
    
    .reviews-title {
        font-size: 22px;
        text-align: center;
        line-height: 1.1em;
    }
    
    .reviews-navigation {
        gap: 8px;
        order: -1;
    }
    
    .nav-btn {
        width: 32px;
        height: 32px;
        padding: 6px;
        border-radius: 6px;
    }
    
    .reviews-slider {
        gap: 10px;
    }
    
    .reviews-slider-container {
        margin-bottom: 20px;
        overflow: visible;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .review-card {
        flex: 0 0 180px;
        width: 180px;
        padding: 14px;
        min-height: 240px;
        border-radius: 2px;
    }
    
    .satisfaction-card {
        width: 180px;
        height: 260px;
        padding: 10px;
        gap: 14px;
        border-radius: 2px;
    }
    
    .customer-review {
        width: 180px;
        height: 260px;
        padding: 10px;
        gap: 8px;
        border-radius: 2px;
    }
    
    .satisfaction-rate {
        font-size: 48px;
    }
    
    .satisfaction-title {
        font-size: 13px;
    }
    
    .customer-count {
        font-size: 10px;
    }
    
    .review-text {
        font-size: 13px;
        -webkit-line-clamp: 2;
        line-height: 1.2em;
    }
    
    .reviewer-avatar {
        width: 28px;
        height: 28px;
    }
    
    .reviewer-name {
        font-size: 11px;
    }
    
    .view-all-btn {
        padding: 6px 10px;
        border-radius: 2px;
    }
    
    .view-all-text {
        font-size: 10px;
    }
}