.testimonial-section {
    max-width: 900px;
    margin: 60px auto 0 auto;
    padding: 0 16px 32px 16px;
}

.testimonial-slider {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-card {
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    margin: auto;
    width: 100%;
    min-height: 500px;
    background: #fff;
    border-radius: 32px;
    box-shadow: 0 8px 32px rgba(60, 51, 20, 0.09), 0 1.5px 5px rgba(100, 100, 100, 0.04);
    display: flex;
    flex-direction: row;
    opacity: 0;
    transform: scale(0.93);
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(.4,0,.2,1), transform 0.5s cubic-bezier(.4,0,.2,1);
}

.testimonial-card.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
    pointer-events: auto;
}

.testimonial-card.inactive {
    opacity: 0;
    transform: scale(0.93);
    z-index: 1;
    pointer-events: none;
}

.testimonial-avatar {
    flex: 0 0 280px;
    margin: 36px 24px 36px 36px;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.testimonial-avatar img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.testimonial-avatar-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.4) 30%, rgba(0,0,0,0.8));
    padding: 60px 24px 24px;
    color: white;
}

.testimonial-avatar .name {
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 4px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.testimonial-avatar .role {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.9;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.testimonial-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 36px 36px 36px 24px;
}

.testimonial-quote {
    font-size: 4rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 24px;
    line-height: 1.45;
}

.testimonial-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.testimonial-stats .stat {
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

.testimonial-stats .stat .value {
    font-weight: bold;
    font-size: 1.1rem;
    color: #1a283d;
    margin-bottom: 2px;
}

.testimonial-stats .stat .label {
    color: #8c8c8c;
    font-size: 13px;
}

.testimonial-story-link {
    margin-top: 10px;
    display: inline-block;
    font-size: 14px;
    color: #262626;
    background: #f7f7f8;
    padding: 8px 20px;
    border-radius: 999px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
    width: fit-content;
}

.testimonial-story-link:hover {
    background: #ece6dc;
}

.testimonial-pagination {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin: 32px 0 16px 0;
}

.testimonial-dot {
    position: relative;
    width: 45px; height: 7px;
    border-radius: 7px;
    background: #e0dbd2;
    overflow: hidden;
    cursor: pointer;
    border: none;
    padding: 0;
    outline: none;
    transition: box-shadow 0.2s;
}

.testimonial-dot.active {
    box-shadow: 0 0 0 2px #2c2c3a33;
}

.testimonial-dot-bar {
    position: absolute;
    left: 0; top: 0; height: 100%;
    background: #26272b;
    border-radius: 7px;
    transition: width 0.15s;
    width: 0%;
}

.testimonial-dot.active .testimonial-dot-bar {
    background: #26272b;
}

.testimonial-progressbar {
    width: 98%;
    max-width: 720px;
    height: 5px;
    background: #e6e2da;
    margin: 0 auto 0 auto;
    border-radius: 6px;
    overflow: hidden;
}

.testimonial-progress {
    height: 100%;
    background: #28292f;
    border-radius: 6px;
    width: 0%;
    transition: width 0.18s;
}

/* --- Responsive --- */
@media (max-width: 800px) {
    .testimonial-card {
        flex-direction: column;
        min-height: 550px;
        max-width: 99vw;
        padding: 0;
    }
    
    .testimonial-avatar {
        flex: 0 0 200px;
        margin: 24px 24px 16px 24px;
        height: 200px;
    }
    
    .testimonial-avatar img {
        height: 600px;
    }
    
    .testimonial-avatar-overlay {
        padding: 40px 16px 16px;
    }
    
    .testimonial-avatar .name {
        font-size: 20px;
    }
    
    .testimonial-avatar .role {
        font-size: 14px;
    }
    
    .testimonial-content {
        margin: 8px 24px 24px 24px;
    }
    
    .testimonial-quote {
        font-size: 2.1rem;
    }
}

@media (max-width: 450px) {
    .testimonial-card {
        border-radius: 20px;
        min-height: 480px;
        font-size: 14px;
    }
    
    .testimonial-avatar {
        margin: 16px 16px 12px 16px;
        height: 160px;
    }
    
    .testimonial-avatar img {
        height: 400px;
    }
    
    .testimonial-avatar-overlay {
        padding: 30px 12px 12px;
    }
    
    .testimonial-avatar .name {
        font-size: 18px;
    }
    
    .testimonial-content {
        margin: 8px 16px 16px 16px;
    }
    
    .testimonial-stats {
        gap: 20px;
    }
}