/* Compact Premium Testimonials Section */
.testimonials-section {
    background: #f9fafb;
    padding: 80px 40px;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Bottom design - flowing wave */
.testimonials-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='grad4' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23667eea' stop-opacity='0.03'/%3E%3Cstop offset='100%25' stop-color='%23764ba2' stop-opacity='0.05'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0,60 C200,20 400,80 600,40 C800,0 1000,60 1200,30 L1200,120 L0,120 Z' fill='url(%23grad4)'/%3E%3C/svg%3E");
    background-size: cover;
    pointer-events: none;
    z-index: 0;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Header */
.testimonials-header {
    text-align: center;
    margin-bottom: 64px;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-badge-bg);
    color: var(--color-badge-text);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 12px rgba(55, 100, 229, 0.18);
}

.testimonials-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.testimonials-title .highlight-word {
    background: var(--color-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.testimonials-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    font-weight: 400;
}

/* Layout - SWAPPED ORDER */
.testimonial-wrapper {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 32px;
    align-items: flex-start;
}

/* Profile Card */
.testimonial-profile-card {
    background: white;
    border-radius: 24px;
    padding: 32px 24px; /* Increased from 24px 20px */
    text-align: center;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08), 0 2px 16px rgba(0, 0, 0, 0.04); /* Enhanced shadow */
    border: 1px solid #f3f4f6;
    position: relative;
    min-width: 280px; /* Added minimum width */
}

.testimonial-profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.15);
    position: relative;
}

.testimonial-profile-photo {
    width: 140px;
    height: 140px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.testimonial-profile-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.testimonial-profile-journey {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 8px;
}

.testimonial-profile-current {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
    margin-bottom: 24px;
}

.testimonial-profile-badge {
    display: block;
    text-align: left;
    background: #ffffff;
    color: #4b5563;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.08);
    margin-bottom: 4px;
}

/* Story Card with Consistent Colors */
.testimonials-section .story-card {
    background: white;
    border-radius: 24px;
    padding: 48px 56px;
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08), 0 2px 16px rgba(0, 0, 0, 0.04); /* Enhanced shadow */
    border: 1px solid #f3f4f6;
    position: relative;
}

/* PRIMARY: Main heading */
.testimonials-section .story-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #111827; /* Dark gray - highest contrast */
    margin-bottom: 24px;
    text-align: left;
}

/* SECONDARY: Introduction text */
.story-intro {
    font-size: 0.9375rem;
    color: #374151; /* Medium-dark gray */
    line-height: 1.7;
    margin-bottom: 48px;
}

.story-intro strong {
    color: #111827; /* Dark gray for emphasis */
    font-weight: 600;
}

/* Timeline */
.timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 48px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, #e5e7eb 0%, #d1d5db 50%, #e5e7eb 100%);
    z-index: 0;
}

.timeline-phase {
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Icons with warm shimmer gradient background - Shimmer V3 */
.phase-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ffffff 0%, #fefeff 20%, #fcfdff 40%, #f7f9ff 70%, #f1f4ff 100%);
    border: 2px solid transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.05);
}

.timeline-phase:hover .phase-icon {
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    border-color: #667eea;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.15);
}

.phase-label {
    font-size: 0.9rem;
    color: #667eea; /* Brand color */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}

.phase-text {
    font-size: 0.8rem;
    color: #6b7280; /* Medium-dark gray - consistent */
    line-height: 1.7;
    text-align: center;
}

/* Special alignment for insight phase */
.insight-phase .phase-text {
    text-align: left;
}

.phase-text strong {
    color: #111827; /* Dark gray for emphasis */
    font-weight: 600;
}

/* Quote Box - Shimmer V3 */
.quote-box {
    background: linear-gradient(135deg, #ffffff 0%, #fefeff 20%, #fcfdff 40%, #f7f9ff 70%, #f1f4ff 100%);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px 32px;
    margin-bottom: 32px;
    border: 1px solid rgba(102, 126, 234, 0.09);
    position: relative;
}

.quote-text {
    font-size: 0.935rem;
    color: #374151; /* Medium-dark gray - consistent */
    line-height: 1.7;
    padding-bottom: 16px;
}

.quote-text strong {
    color: #111827; /* Dark gray for emphasis */
    font-weight: 600;
}

/* Expand link */
.expand-link {
    color: #667eea; /* Brand color */
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0 auto;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: none;
    padding: 12px 0 0 0;
}

.expand-link:hover {
    color: #5b6de8; /* Darker brand color on hover */
}

.expand-link svg {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
}

.expand-link.expanded svg {
    transform: rotate(180deg);
}

/* Full letter inside quote box */
.full-letter {
    margin-top: 0;
    padding-top: 0;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.full-letter .expand-link {
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.full-letter .letter-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding-top: 0;
}

.full-letter.show .letter-content {
    max-height: 800px;
    padding-top: 16px;
}

.letter-content p {
    font-size: 0.875rem;
    color: #374151; /* Medium-dark gray - consistent */
    line-height: 1.7;
    font-style: italic;
    padding-bottom: 16px;
}

.letter-content p:last-child {
    margin-bottom: 0;
}

.letter-content strong {
    color: #111827; /* Dark gray for emphasis */
    font-weight: 600;
}

/* Story ending */
.story-ending {
    font-size: 0.9375rem;
    color: #374151; /* Medium-dark gray - consistent */
    line-height: 1.7;
}

.story-ending strong {
    font-weight: 600;
    color: #111827; /* Dark gray for emphasis */
}

/* Responsive */
@media (max-width: 768px) {
    .testimonials-section {
        min-height: auto;
        padding: 60px 12px; /* Reduced from 20px to 12px */
    }

    .testimonial-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .testimonial-profile-card {
        max-width: 340px;
        margin: 0 auto;
    }

    .story-card {
        padding: 24px 20px; /* Reduced padding for mobile */
    }
    
    /* Mobile Quote Box Improvements */
    .quote-box {
        padding: 16px 20px; /* Reduced padding */
        margin-bottom: 24px;
        border-radius: 12px; /* Smaller border radius */
    }
    
    .quote-text {
        font-size: 0.8125rem; /* Smaller font - was 0.9375rem */
        line-height: 1.5; /* Tighter line height - was 1.7 */
        padding-bottom: 12px; /* Reduced padding */
    }
    
    /* Mobile Letter Content */
    .letter-content p {
        font-size: 0.75rem; /* Smaller font - was 0.875rem */
        line-height: 1.5; /* Tighter line height - was 1.7 */
        padding-bottom: 12px; /* Reduced spacing */
    }
    
    /* Mobile Expand Link */
    .expand-link {
        font-size: 0.75rem; /* Smaller font - was 0.8125rem */
        padding: 8px 0 0 0; /* Reduced padding */
    }

    .timeline {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .timeline::before {
        display: none;
    }

    .testimonials-title {
        font-size: 2rem;
    }
    
    /* Mobile story text improvements */
    .story-intro {
        font-size: 0.8125rem; /* Smaller font */
        line-height: 1.5; /* Tighter line height */
        margin-bottom: 32px;
    }
    
    .story-ending {
        font-size: 0.8125rem; /* Smaller font */
        line-height: 1.5; /* Tighter line height */
    }
    
    /* Mobile timeline text */
    .phase-text {
        font-size: 0.75rem; /* Smaller font - was 0.875rem */
        line-height: 1.4; /* Tighter line height */
    }
    
    /* Mobile story title */
    .testimonials-section .story-title {
        font-size: 1.12rem; /* Smaller title - was 1.75rem */
        margin-bottom: 16px;
    }
    
    /* Smaller wave on mobile */
    .testimonials-section::after {
        height: 80px;
    }
}