/* --- Astra Unlock (Garante Full Width) --- */
.ast-page-builder-template .entry-content #mapea-testimonials-wrapper,
.ast-container #mapea-testimonials-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Previne rolagem horizontal global */
html, body { overflow-x: hidden !important; }

/* --- ESCOPO CSS LOCAL --- */
#mapea-testimonials {
    /* Variáveis Locais */
    --t-merlot: #4F0713;
    --t-rosa: #E499B6;
    --t-gold: #FDC762;
    --t-rubi: #AD0919;
    --t-bg: #E499B6;
    --t-white: #ffffff;
    
    position: relative;
    padding: 100px 20px;
    background-color: var(--t-bg);
    background-image: linear-gradient(180deg, #E499B6 0%, #e08ba9 100%);
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* Bolhas de Fundo */
#mapea-testimonials .bg-bubble {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}
#mapea-testimonials .b1 { width: 300px; height: 300px; background: white; top: -50px; left: -50px; }
#mapea-testimonials .b2 { width: 400px; height: 400px; background: var(--t-gold); bottom: -100px; right: -100px; opacity: 0.2; }

#mapea-testimonials .testimonials-container {
    max-width: 1100px; margin: 0 auto;
    position: relative; z-index: 2;
}

/* --- HEADER --- */
#mapea-testimonials .section-header { text-align: center; margin-bottom: 60px; }

#mapea-testimonials .tag-pill-white {
    display: inline-block;
    background: rgba(255,255,255,0.3);
    border: 1px solid rgba(255,255,255,0.5);
    color: var(--t-merlot);
    font-size: 12px; font-weight: 800; letter-spacing: 2px;
    padding: 8px 20px; border-radius: 50px; margin-bottom: 20px;
}

#mapea-testimonials .section-header h2 {
    font-size: 2.8rem; color: var(--t-merlot); font-weight: 800; margin-bottom: 15px; line-height: 1.1;
}

#mapea-testimonials .highlight-merlot {
    color: var(--t-white); position: relative; z-index: 1;
}
#mapea-testimonials .highlight-merlot::after {
    content: ''; position: absolute; bottom: 2px; left: 0; width: 100%; height: 10px;
    background: var(--t-gold); opacity: 0.5; z-index: -1; transform: rotate(-1deg);
}

#mapea-testimonials .section-desc {
    color: var(--t-merlot); opacity: 0.9;
    font-size: 1.1rem; max-width: 600px; margin: 0 auto;
    font-weight: 400;
}

/* --- CARROSSEL --- */
#mapea-testimonials .carousel-wrapper {
    position: relative;
    display: flex; align-items: center;
    z-index: 5;
}

#mapea-testimonials .testimonials-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 40px 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    scroll-behavior: smooth;
}
#mapea-testimonials .testimonials-track::-webkit-scrollbar { display: none; }

/* BOTÕES */
#mapea-testimonials .nav-btn {
    background: rgba(255, 255, 255, 0.2);
    color: var(--t-merlot);
    border: 1px solid rgba(255,255,255,0.4);
    width: 50px; height: 50px; border-radius: 50%;
    font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    flex-shrink: 0;
    position: absolute; top: 50%; transform: translateY(-50%);
    backdrop-filter: blur(5px);
}
#mapea-testimonials .nav-btn:hover { background: var(--t-merlot); color: white; border-color: var(--t-merlot); }
 
#mapea-testimonials .prev-btn { left: -25px; }
#mapea-testimonials .next-btn { right: -25px; }

/* --- CARD --- */
#mapea-testimonials .testimonial-card {
    background: var(--t-white);
    border-radius: 20px;
    padding: 30px;
    /* Largura Desktop */
    min-width: 320px; 
    max-width: 340px;
    
    scroll-snap-align: center;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 15px 40px rgba(79, 7, 19, 0.1);
    border: 1px solid rgba(255,255,255,0.5);
    transition: transform 0.3s;
    display: flex; flex-direction: column;
}

#mapea-testimonials .testimonial-card:hover { transform: translateY(-10px); }

#mapea-testimonials .quote-icon {
    position: absolute; top: 20px; right: 20px;
    font-size: 40px; color: var(--t-rosa); opacity: 0.2;
}

#mapea-testimonials .stars { color: var(--t-gold); font-size: 14px; margin-bottom: 20px; }

#mapea-testimonials .feedback-text {
    font-size: 0.95rem; line-height: 1.6; color: #555;
    margin-bottom: 25px; flex-grow: 1; font-style: italic;
}

/* PERFIL */
#mapea-testimonials .student-profile {
    display: flex; align-items: center; gap: 15px;
    border-top: 1px solid #f0f0f0; padding-top: 20px;
}
#mapea-testimonials .avatar {
    width: 50px; height: 50px; border-radius: 50%;
    object-fit: cover; border: 2px solid var(--t-rosa);
}
#mapea-testimonials .info { display: flex; flex-direction: column; text-align: left; }
#mapea-testimonials .info strong { font-size: 14px; color: var(--t-merlot); }
#mapea-testimonials .info span { font-size: 12px; color: #888; text-transform: uppercase; font-weight: 600; }

/* --- MOBILE RESPONSIVO --- */
@media (max-width: 992px) {
    #mapea-testimonials { 
        padding: 60px 0; /* Remove padding lateral */
    } 
    
    #mapea-testimonials .testimonials-container { 
        padding: 0; /* Container full width */
    }
    
    #mapea-testimonials .section-header { padding: 0 20px; margin-bottom: 10px; }
    #mapea-testimonials .section-header h2 { font-size: 2.2rem; }

    #mapea-testimonials .carousel-wrapper { 
        padding: 0; 
    }

    /* Ajuste do Scroll */
    #mapea-testimonials .testimonials-track {
        gap: 15px;
        padding: 30px 20px 50px 20px; 
        scroll-padding: 0 5vw;
    }

    /* CARD MOBILE */
    #mapea-testimonials .testimonial-card {
        min-width: 85vw; 
        max-width: 85vw;
    }

    /* Setas Ajustadas */
    #mapea-testimonials .nav-btn {
        width: 40px; height: 40px; font-size: 14px;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    #mapea-testimonials .prev-btn { left: 10px; }
    #mapea-testimonials .next-btn { right: 10px; }
}