/* Testimonials Section Styles */

.testimonials-wrapper {
    --tm-bg-color: #fafafa;
    --tm-text-main: #333333;
    --tm-text-muted: #6b7280;
    
    font-family: 'Inter', sans-serif;
    background-color: var(--tm-bg-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
}

.testimonials-wrapper .hero-section {
    width: 100%;
    padding: 15vh 20px 8vh 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3EABFF;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* Removed animated orbs for solid blue background */

.testimonials-wrapper .envelope-section {
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.testimonials-wrapper .section-title {
    font-size: 5.5rem;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-align: center;
    line-height: 1.05;
    margin: 0;
    z-index: 2;
    position: relative;
}

.testimonials-wrapper .section-title span {
    background: none;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
}

.testimonials-wrapper .envelope-wrapper {
    position: relative;
    width: 650px;
    height: 380px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 10;
    filter: drop-shadow(0 30px 40px rgba(230, 140, 20, 0.15));
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
    will-change: transform;
    flex-shrink: 0;
}

.testimonials-wrapper .envelope-back {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: auto;
    z-index: 1;
    object-fit: contain;
}

.testimonials-wrapper .cards-container {
    position: absolute;
    bottom: 60px;
    width: 480px;
    height: 360px;
    z-index: 5;
    perspective: 1000px;
}

.testimonials-wrapper .card {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.05);
    padding: 40px;
    box-sizing: border-box;
    border: 1px solid #f0f0f0;
    will-change: transform, opacity, box-shadow;
    height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transform-origin: center bottom;
}

.testimonials-wrapper .card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.testimonials-wrapper .card-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonials-wrapper .card-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.testimonials-wrapper .card-name {
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--tm-text-main);
    margin: 0;
}

.testimonials-wrapper .card-title {
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--tm-text-muted);
    margin: 0;
}

.testimonials-wrapper .card-body {
    overflow-y: auto;
    flex-grow: 1;
    min-height: 0;
    padding-right: 10px;
}

.testimonials-wrapper .card-body::-webkit-scrollbar {
    width: 6px;
}

.testimonials-wrapper .card-body::-webkit-scrollbar-track {
    background: transparent;
}

.testimonials-wrapper .card-body::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 10px;
}

.testimonials-wrapper .card-body p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #4a4a4a;
    margin: 0;
    font-weight: 400;
}

.testimonials-wrapper .envelope-front {
    position: absolute;
    bottom: -5px;
    width: 100%;
    height: auto;
    z-index: 10;
    pointer-events: none;
    object-fit: contain;
}

.testimonials-wrapper .interaction-hint {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    color: var(--tm-text-muted);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.7;
}

.testimonials-wrapper .hint-icons {
    display: flex;
    gap: 15px;
}

@media (max-width: 768px) {
    .testimonials-wrapper .hero-section {
        padding: 10vh 20px 5vh 20px;
    }
    .testimonials-wrapper .section-title {
        font-size: 3.5rem;
    }
    .testimonials-wrapper .envelope-section {
        height: auto;
        min-height: 80vh;
        padding: 15vh 0 25vh 0;
        overflow: visible;
    }
    .testimonials-wrapper .envelope-wrapper {
        width: 95vw;
        height: calc(95vw * 380 / 650);
        flex-shrink: 0;
    }
    .testimonials-wrapper .cards-container {
        width: 72%;
        height: 320px;
        bottom: 12%;
    }
    .testimonials-wrapper .card {
        height: 320px;
        padding: 24px;
    }
    .testimonials-wrapper .card-avatar {
        width: 48px;
        height: 48px;
    }
    .testimonials-wrapper .card-name {
        font-size: 1.05rem;
    }
    .testimonials-wrapper .card-title {
        font-size: 0.85rem;
    }
    .testimonials-wrapper .card-body p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    .testimonials-wrapper .interaction-hint {
        bottom: 2vh;
    }
}
