/* ============================================
   Testimonials Section Styles
   ============================================ */

   .testimonials-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 90px 80px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Headline Section */
.testimonials-headline {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
}

.testimonials-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #183FBA;
    border-radius: 20px;
    background: #ffffff;
    margin-bottom: 32px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #183FBA;
    transition: all 0.3s ease;
}

.testimonials-badge-icon {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
}

.testimonials-headline-line1 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 500;
    font-size: 56px;
    line-height: 1.2;
    text-align: center;
    color: #A7BFE9;
    margin: 0;
}

.testimonials-headline-line2 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: 64px;
    line-height: 1.2;
    text-align: center;
    background: linear-gradient(180deg, #0256DB 0%, #0256DB 35%, #031450 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

/* Testimonials Grid */
.testimonials-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 32px;
    max-width: 1400px;
    width: 100%;
    height: 700px;
    overflow: hidden;
    position: relative;
}

/* Smooth and subtle gradient blur effect at top and bottom - IMPROVED */
.testimonials-grid::before,
.testimonials-grid::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 180px;
    pointer-events: none;
    z-index: 10;
}

.testimonials-grid::before {
    top: 0;
    background: linear-gradient(
        to bottom, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 255, 255, 0.95) 20%,
        rgba(255, 255, 255, 0.85) 35%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0.3) 70%,
        rgba(255, 255, 255, 0.1) 85%,
        rgba(255, 255, 255, 0) 100%
    );
}

.testimonials-grid::after {
    bottom: 0;
    background: linear-gradient(
        to top, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 255, 255, 0.95) 20%,
        rgba(255, 255, 255, 0.85) 35%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0.3) 70%,
        rgba(255, 255, 255, 0.1) 85%,
        rgba(255, 255, 255, 0) 100%
    );
}

/* Column */
.testimonials-column {
    flex: 0 1 auto;
    max-width: 600px;
    width: 100%;
    overflow: hidden;
    position: relative;
    height: 100%;
}

.testimonials-scroll {
    display: flex;
    flex-direction: column;
    gap: 24px;
    will-change: transform;
}

/* Testimonial Card */
.testimonial-card {
    background: linear-gradient(135deg, #F0F7FF 0%, #E8F2FF 100%);
    border-radius: 24px;
    height: 327px;
    width: 100%;
    max-width: 600px;
    padding: 32px;
    box-shadow: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
    border: 1px solid #D4E8FF;
    will-change: filter, opacity, transform;
    margin: 0;
}

.testimonial-card:hover {
    box-shadow: none;
}

/* Header with Avatar and Name */
.testimonial-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E0E0E0;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.author-info {
    flex: 1;
}

.author-name {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #1A1F3A;
    margin: 0 0 10px 0;
}

.author-rating {
    display: flex;
    gap: 6px;
}

.author-rating .star {
    width: 20px;
    height: 20px;
    display: inline-block;
    background-image: url('https://pocketly-public-bucket.s3.ap-south-1.amazonaws.com/dbb46889-8ae9-45f2-9500-fb4cd5f2482c.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1;
}

/* Title styling */
.testimonial-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #1A1F3A;
    margin: 0 0 20px 0;
    display: block;
    padding: 0;
}

/* Description - This is the main comment */
.testimonial-description {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 400;
    color: #4A5568;
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .testimonials-section {
        padding: 100px 60px 60px;
    }
    
    .testimonials-grid {
        gap: 10px;
    }
}

@media (max-width: 1024px) {
    .testimonials-section {
        padding: 100px 40px 60px;
    }
    
    .testimonials-badge {
        padding: 7px 14px;
        font-size: 13px;
        gap: 7px;
    }
    
    .testimonials-badge-icon {
        width: 14px;
        height: 14px;
    }
    
    .testimonials-headline-line1 {
        font-size: 48px;
    }
    
    .testimonials-headline-line2 {
        font-size: 56px;
    }
    
    .testimonials-grid {
        height: 650px;
        gap: 10px;
    }
    
    .testimonial-card {
        padding: 24px;
        height: 280px;
        min-height: 280px;
        max-height: 280px;
    }
    
    .author-avatar {
        width: 56px;
        height: 56px;
    }
    
    .author-name {
        font-size: 18px;
    }
    
    .author-rating .star {
        width: 16px;
        height: 16px;
    }
    
    .testimonial-title {
        font-size: 18px;
        margin-bottom: 14px;
    }
    
    .testimonial-description {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .testimonial-header {
        margin-bottom: 20px;
        padding-bottom: 14px;
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 80px 0 40px;
        min-height: auto;
        overflow: hidden;
    }
    
    .testimonials-badge {
        padding: 5px 10px;
        font-size: 11px;
        gap: 5px;
        margin-bottom: 20px;
    }
    
    .testimonials-badge-icon {
        width: 12px;
        height: 12px;
    }
    
    .testimonials-headline {
        margin-bottom: 50px;
        padding: 0 24px;
    }
    
    .testimonials-headline-line1 {
        font-size: 36px;
    }
    
    .testimonials-headline-line2 {
        font-size: 42px;
    }
    
    .testimonials-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        height: auto;
        max-width: none;
        padding: 0 24px;
        width: 100%;
        justify-content: center;
        align-items: center;
    }
    
    /* Hide gradient overlays on mobile */
    .testimonials-grid::before,
    .testimonials-grid::after {
        display: none;
    }
    
    .testimonials-column {
        display: block;
        width: 100%;
        overflow: hidden;
    }
    
    .testimonials-scroll {
        display: flex;
        flex-direction: row;
        gap: 20px;
        padding: 0;
        will-change: transform;
        animation: none;
        width: 100%;
    }
    
    .testimonials-column[data-column="1"] .testimonials-scroll {
        animation: scrollHorizontal 40s linear infinite;
    }
    
    .testimonials-column[data-column="2"] .testimonials-scroll {
        animation: scrollHorizontalReverse 40s linear infinite;
    }
    
    .testimonials-column:hover .testimonials-scroll {
        animation-duration: 200s; /* Slow down to 20% speed (40s * 5 = 200s) */
    }
    
    @keyframes scrollHorizontal {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-50%);
        }
    }
    
    @keyframes scrollHorizontalReverse {
        0% {
            transform: translateX(-50%);
        }
        100% {
            transform: translateX(0);
        }
    }
    
    .testimonial-card {
        padding: 20px;
        height: auto;
        min-height: 220px;
        max-height: 240px;
        min-width: 280px;
        max-width: 280px;
        flex-shrink: 0;
    }
    
    .author-avatar {
        width: 48px;
        height: 48px;
    }
    
    .author-name {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .author-rating .star {
        width: 14px;
        height: 14px;
    }
    
    .testimonial-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .testimonial-description {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .testimonial-header {
        gap: 12px;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .testimonials-section {
        padding: 60px 0 40px;
    }
    
    .testimonials-badge {
        padding: 4px 8px;
        font-size: 10px;
        gap: 4px;
        margin-bottom: 16px;
    }
    
    .testimonials-badge-icon {
        width: 11px;
        height: 11px;
    }
    
    .testimonials-headline {
        margin-bottom: 40px;
        padding: 0 20px;
    }
    
    .testimonials-headline-line1 {
        font-size: 28px;
    }
    
    .testimonials-headline-line2 {
        font-size: 32px;
    }
    
    .testimonials-grid {
        gap: 16px;
        padding: 0 20px;
    }
    
    .testimonials-scroll {
        gap: 16px;
        padding: 0;
    }
    
    .testimonials-column[data-column="1"] .testimonials-scroll {
        animation: scrollHorizontal 35s linear infinite;
    }
    
    .testimonials-column[data-column="2"] .testimonials-scroll {
        animation: scrollHorizontalReverse 35s linear infinite;
    }
    
    .testimonials-column:hover .testimonials-scroll {
        animation-duration: 175s; /* Slow down to 20% speed (35s * 5 = 175s) */
    }
    
    .testimonial-card {
        padding: 16px;
        min-height: 200px;
        max-height: 220px;
        min-width: 240px;
        max-width: 240px;
    }
    
    .author-avatar {
        width: 40px;
        height: 40px;
    }
    
    .author-name {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .author-rating .star {
        width: 12px;
        height: 12px;
    }
    
    .testimonial-header {
        gap: 10px;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
    
    .testimonial-title {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .testimonial-description {
        font-size: 12px;
        line-height: 1.4;
    }
}