* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #ffffff;
    color: #1e293b;
    overflow-x: hidden;
}

.reviews-section {
    position: relative;
    padding: 80px 20px; /* Standard section padding matching the OS section */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    align-items: center;
    background-image: url('../assets/images/features-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.reviews-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1600px;
    /* Perfect width for a 'full' dense look */
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.reviews-content-row {
    display: flex;
    justify-content: flex-start; 
    width: 100%;
    gap: 200px;
}

/* Columns */
.left-column {
    flex: 0 0 380px; /* Optimized width for slider */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0;
}

.right-column {
    flex: 0 0 auto;
    /* Stop text column from taking infinite space */
    display: flex;
    align-items: center;
    padding-left: 20px;
}

/* Header */
.reviews-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 50px; /* Balanced gap between header and card */
}

.sub-heading {
    color: #2563eb;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.main-heading {
    font-size: 42px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: -0.02em;

}

.trustpilot-ref {
    font-size: 16px;
    color: #475569;
}

.trustpilot-ref strong {
    color: #0f172a;
}

/* Arc Slider */
.arc-slider {
    position: relative;
    width: 350px;
    height: 320px;
    flex-shrink: 0;
    transform: scale(1.15);
    transform-origin: left center;
}

.arc-svg {
    position: absolute;
    top: -30px;
    left: -20px;
    width: 250px;
    height: 400px;
    overflow: visible;
}

/* Carousel Items */
.carousel-item {
    position: absolute;
    display: flex;
    align-items: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left center;
    cursor: pointer;
    margin-top: -34px;
    /* Adjusted for larger avatars */
    margin-left: -34px;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.avatar {
    width: 60px;
    /* Increased from 40px */
    height: 60px;
    border-radius: 50%;
    background-color: #8ba4cf;
    /* Light blue-grey for inactive */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    /* Increased from 14px */
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.6s ease;
    border: 4px solid #ffffff;
    /* Added white border for pop */
}

.author-info h4 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
    transition: all 0.6s ease;
}

.meta-row {
    font-size: 14px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.6s ease;
}

.rating-text strong {
    color: #0f172a;
}

.location-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    color: #475569;
}

.author-info {
    position: absolute;
    left: 95px; /* Safely to the right of the avatar to prevent overlap */
    width: 250px; /* Prevent wrapping */
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Position states for arc layout */
.item-hidden-top {
    top: -50px;
    left: -40px;
    opacity: 0;
    transform: scale(0.6);
}
.item-hidden-top .author-info {
    transform: translateX(125px); /* Perfectly aligns names vertically */
}

.item-top {
    top: 30px;
    left: 40px;
    opacity: 1;
    transform: scale(0.85);
    pointer-events: auto;
    z-index: 2;
}
.item-top .author-info {
    transform: translateX(45px); /* Perfectly aligns names vertically */
    opacity: 0.5; 
}

.item-active {
    top: 150px;
    left: 85px;
    opacity: 1;
    transform: scale(1.1);
    pointer-events: auto;
    z-index: 3;
}
.item-active .author-info {
    transform: translateX(0); /* Anchor text position */
}

.item-active .avatar {
    background-color: #2563eb;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.item-bottom {
    top: 270px;
    left: 40px;
    opacity: 1;
    transform: scale(0.85);
    pointer-events: auto;
    z-index: 2;
}
.item-bottom .author-info {
    transform: translateX(45px); /* Perfectly aligns names vertically */
    opacity: 0.5; 
}

.item-hidden-bottom {
    top: 350px;
    left: -40px;
    opacity: 0;
    transform: scale(0.6);
}
.item-hidden-bottom .author-info {
    transform: translateX(125px); /* Perfectly aligns names vertically */
}

/* Hover effects */
.item-top:hover,
.item-bottom:hover {
    opacity: 0.9;
}

/* Review Text Display */
.review-text-wrapper {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    max-width: 750px;
    /* Keep text constrained so it wraps beautifully */
}

.quote-mark {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 80px;
    color: #2563eb;
    /* Blue quote mark */
    line-height: 0.8;
    margin-top: 0px;
}

.review-text-content {
    font-family: 'Roboto', sans-serif;
    font-size: 34px;
    /* Increased from 20px */
    font-weight: 500;
    line-height: 1.6;
    color: #1a4480;
    padding-top: 4px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .reviews-content-row {
        gap: 60px;
        /* Reduce massive gap on medium screens */
    }
}

@media (max-width: 992px) {
    .reviews-container {
        padding: 30px 40px;
    }

    .reviews-content-row {
        flex-direction: row;
        /* Keep side-by-side layout on tablets */
        gap: 30px;
    }

    .left-column {
        flex: 0 0 350px;
        /* Reduced since it's scaled down heavily */
        align-items: flex-start;
    }

    .arc-slider {
        transform: scale(0.7);
        /* Scale down the wider slider for tablet */
        transform-origin: left center;
        margin: 0;
        width: 450px;
        /* Keep exact width so curve math works */
    }

    .main-heading {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .reviews-content-row {
        flex-direction: column;
        /* Only stack on mobile phones */
        gap: 60px;
    }

    .left-column {
        flex: none;
        width: 100%;
        margin-bottom: 20px;
        align-items: center;
    }

    .arc-slider {
        margin: 0 auto -64px auto;
        width: 450px;
        transform: scale(0.65);
        /* Scale down for mobile */
        transform-origin: center top;
    }

    .right-column {
        padding-left: 0;
        width: 100%;
        justify-content: center;
    }

    .review-text-wrapper {
        text-align: center;
        padding-left: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .quote-mark {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin: 0 auto -20px auto;
        font-size: 80px;
        text-align: center;
    }

    .review-text-content {
        font-size: 20px;
        padding-top: 10px;
    }

    .main-heading {
        font-size: 32px;
    }


}

@media (max-width: 576px) {
    .main-heading {
        font-size: 26px;
    }

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

    .sub-heading {
        font-size: 14px;
    }

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