/* ==========================================================================
   SEÇÃO DEPOIMENTOS - CSS OTIMIZADO MOBILE-FIRST
   Performance + UX + Touch Targets + Accessibility
   ========================================================================== */

.testimonials {
    padding: 60px 0; /* Mobile first */
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

/* Background decorativo - Desabilitado por padrão (mobile first) */
.testimonials::before {
    display: none;
}

/* ==========================================================================
   HEADER - MOBILE FIRST
   ========================================================================== */

.section-badge.success {
    background: linear-gradient(135deg, var(--success) 0%, #27AE60 100%);
    color: white;
    padding: 12px 24px; /* Touch target 44px+ */
    border-radius: 50px;
    font-size: 16px; /* Mobile optimized */
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(102,124,77,0.3);
    min-height: 44px; /* Touch target */
}

/* ==========================================================================
   ESTATÍSTICAS - MOBILE FIRST
   ========================================================================== */

.testimonials-stats {
    display: grid;
    grid-template-columns: 1fr; /* Mobile first */
    gap: 20px;
    margin-bottom: 50px;
}

.stat-box {
    background: white;
    border-radius: 20px;
    padding: 20px 15px; /* Mobile optimized */
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column; /* Mobile first - vertical layout */
    align-items: center;
    text-align: center;
    gap: 15px;
    transition: all 0.3s ease;
    min-height: 44px; /* Touch target */
}

.stat-box:hover {
    transform: translateY(-3px); /* Reduzido para mobile */
    box-shadow: 0 12px 45px rgba(0,0,0,0.1);
}

.stat-icon {
    width: 50px; /* Mobile optimized */
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--success) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px; /* Mobile optimized */
    flex-shrink: 0;
}

.stat-value {
    display: block;
    font-size: 28px; /* Mobile optimized */
    font-weight: 900;
    color: var(--dark);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 13px; /* Mobile optimized */
    color: var(--gray);
    margin-top: 5px;
    line-height: 1.3;
}

/* ==========================================================================
   CAROUSEL DE DEPOIMENTOS PRINCIPAIS - MOBILE FIRST
   ========================================================================== */

.featured-testimonials {
    margin-bottom: 60px;
    position: relative;
}

.testimonials-carousel {
    position: relative;
    max-width: 100%; /* Mobile first */
    margin: 0 auto;
    padding: 0 20px; /* Mobile optimized */
}

.testimonial-card.featured {
    background: white;
    border-radius: 20px;
    padding: 25px 20px; /* Mobile optimized */
    box-shadow: 0 15px 50px rgba(0,0,0,0.08); /* Reduzido para mobile */
    position: relative;
    display: none;
    transition: opacity 0.3s ease;
    overflow: visible;
    margin-top: 20px; /* Espaço para badge */
}

.testimonial-card.featured.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.testimonial-badge-corner {
    position: absolute;
    top: -10px;
    right: 15px; /* Mobile adjusted */
    background: linear-gradient(135deg, var(--accent) 0%, #ff9500 100%);
    color: white;
    padding: 8px 16px; /* Touch target */
    border-radius: 20px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 15px rgba(242,176,59,0.4);
    min-height: 32px; /* Touch target */
}

/* Header do depoimento - Mobile First */
.testimonial-header {
    display: grid;
    grid-template-columns: 1fr; /* Mobile first */
    gap: 20px;
    align-items: center;
    text-align: center;
    margin-bottom: 25px;
}

.testimonial-avatar {
    width: 80px; /* Mobile optimized */
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary); /* Reduzido para mobile */
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    margin: 0 auto; /* Center in mobile */
}

.testimonial-name {
    font-size: 18px; /* Mobile optimized */
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 5px;
    line-height: 1.2;
}

.testimonial-location {
    display: flex;
    align-items: center;
    justify-content: center; /* Mobile center */
    gap: 5px;
    font-size: 15px; /* Mobile optimized */
    color: var(--gray);
    margin-bottom: 5px;
}

.testimonial-location i {
    color: var(--secondary);
    font-size: 14px;
}

.testimonial-rating {
    display: flex;
    align-items: center;
    justify-content: center; /* Mobile center */
    gap: 3px;
}

.testimonial-rating i {
    color: #FFD700;
    font-size: 16px; /* Touch target */
}

.rating-text {
    margin-left: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
}

/* Transformação - Mobile First */
.testimonial-transformation {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 20px 15px; /* Mobile optimized */
    display: flex;
    flex-direction: column; /* Mobile first */
    align-items: center;
    gap: 15px;
    text-align: center;
    margin-bottom: 25px;
}

.testimonial-transformation .before,
.testimonial-transformation .after {
    text-align: center;
    flex: 1;
}

.testimonial-transformation .label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.testimonial-transformation .value {
    display: block;
    font-size: 15px; /* Mobile optimized */
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.2;
}

.testimonial-transformation .income {
    display: block;
    font-size: 18px; /* Mobile optimized */
    font-weight: 900;
    line-height: 1.1;
}

.testimonial-transformation .before .income {
    color: var(--gray);
}

.testimonial-transformation .after .income.success {
    color: var(--success);
}

.testimonial-transformation .fa-arrow-right {
    color: var(--secondary);
    font-size: 20px; /* Mobile optimized */
    transform: rotate(90deg); /* Mobile: arrow down */
}

/* Texto do depoimento - Mobile Optimized */
.testimonial-text {
    font-size: 15px; /* Mobile optimized */
    line-height: 1.6; /* Melhor para mobile */
    color: var(--dark);
    font-style: italic;
    padding: 20px 15px; /* Mobile optimized */
    background: #f8f9fa;
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    margin-bottom: 25px;
}

.testimonial-text strong {
    color: var(--primary);
    font-style: normal;
}

/* Resultados - Mobile First */
.testimonial-results {
    display: flex;
    flex-direction: column; /* Mobile first */
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
    text-align: center;
}

.result-item {
    display: flex;
    align-items: center;
    justify-content: center; /* Mobile center */
    gap: 10px;
    font-size: 14px; /* Mobile optimized */
    color: var(--dark);
    padding: 8px; /* Touch target */
    min-height: 44px; /* Touch target */
}

.result-item i {
    color: var(--secondary);
    font-size: 18px;
}

.result-item strong {
    color: var(--primary);
}

/* Data */
.testimonial-date {
    text-align: center;
    font-size: 12px; /* Mobile optimized */
    color: var(--gray);
    line-height: 1.4;
}

.testimonial-date i {
    color: var(--primary);
    margin-right: 5px;
}

/* Navegação do Carousel - Touch Optimized */
.carousel-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px; /* Mobile optimized */
    margin-top: 25px;
    position: relative;
    z-index: 10;
}

.carousel-prev,
.carousel-next {
    width: 44px; /* Touch target */
    height: 44px;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px; /* Mobile optimized */
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    touch-action: manipulation; /* Better touch response */
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05); /* Reduzido para mobile */
}

.carousel-dots {
    display: flex;
    gap: 8px; /* Mobile optimized */
}

.dot {
    width: 12px;
    height: 12px;
    background: #e9ecef;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 44px; /* Touch target area */
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.dot::before {
    content: '';
    width: 12px;
    height: 12px;
    background: #e9ecef;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.dot.active::before {
    background: var(--primary);
    width: 24px; /* Mobile optimized */
    border-radius: 6px;
}

/* ==========================================================================
   GRID DE DEPOIMENTOS MENORES - MOBILE FIRST
   ========================================================================== */

.testimonials-grid {
    margin-bottom: 60px;
}

.grid-title {
    text-align: center;
    font-size: 22px; /* Mobile optimized */
    margin-bottom: 30px;
    color: var(--dark);
    line-height: 1.3;
    padding: 0 20px;
}

.testimonial-grid-container {
    display: grid;
    grid-template-columns: 1fr; /* Mobile first */
    gap: 20px;
}

.testimonial-small {
    background: white;
    border-radius: 15px;
    padding: 20px 15px; /* Mobile optimized */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    min-height: 44px; /* Touch target */
}

.testimonial-small:hover {
    transform: translateY(-3px); /* Reduzido para mobile */
    box-shadow: 0 12px 35px rgba(0,0,0,0.1);
}

.testimonial-small-header {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.testimonial-small-header img {
    width: 44px; /* Touch target */
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.testimonial-small-header strong {
    display: block;
    font-size: 15px; /* Mobile optimized */
    color: var(--dark);
    margin-bottom: 2px;
    line-height: 1.2;
}

.testimonial-small-header span {
    display: block;
    font-size: 12px; /* Mobile optimized */
    color: var(--gray);
    margin-bottom: 5px;
}

.stars {
    font-size: 12px;
}

.testimonial-small p {
    font-size: 14px; /* Mobile optimized */
    line-height: 1.5;
    color: var(--dark);
    margin-bottom: 15px;
}

.testimonial-small p strong {
    color: var(--primary);
}

.testimonial-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(42,91,127,0.1) 0%, rgba(102,124,77,0.1) 100%);
    color: var(--primary);
    padding: 8px 16px; /* Touch target */
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
}

/* ==========================================================================
   MAPA DE ALUNOS - MOBILE FIRST
   ========================================================================== */

.students-map {
    background: white;
    border-radius: 20px;
    padding: 25px 20px; /* Mobile first */
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
    margin-bottom: 60px;
}

.map-title {
    text-align: center;
    font-size: 20px; /* Mobile optimized */
    margin-bottom: 25px;
    color: var(--dark);
    line-height: 1.3;
}

.map-stats {
    display: flex;
    justify-content: center;
    gap: 15px; /* Mobile optimized */
    flex-wrap: wrap;
}

.state-stat {
    text-align: center;
    padding: 15px 12px; /* Mobile optimized */
    background: #f8f9fa;
    border-radius: 15px;
    min-width: 80px; /* Mobile optimized */
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 44px; /* Touch target */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.state-stat:hover {
    transform: scale(1.05); /* Reduzido para mobile */
    background: linear-gradient(135deg, var(--primary) 0%, var(--success) 100%);
    color: white;
}

.state-stat.featured {
    background: linear-gradient(135deg, var(--primary) 0%, var(--success) 100%);
    color: white;
    transform: scale(1.08); /* Reduzido para mobile */
}

.state-stat .state {
    display: block;
    font-size: 20px; /* Mobile optimized */
    font-weight: 900;
    margin-bottom: 5px;
    line-height: 1;
}

.state-stat .count {
    display: block;
    font-size: 16px; /* Mobile optimized */
    font-weight: 700;
    line-height: 1.1;
}

.state-stat .label {
    display: block;
    font-size: 11px; /* Mobile optimized */
    opacity: 0.8;
    margin-top: 2px;
}

.state-stat.more {
    background: var(--accent);
    color: white;
}

/* ==========================================================================
   VIDEO TESTIMONIAL - MOBILE FIRST
   ========================================================================== */

.video-testimonial {
    margin-bottom: 60px;
}

.video-title {
    text-align: center;
    font-size: 20px; /* Mobile optimized */
    margin-bottom: 25px;
    color: var(--dark);
    line-height: 1.3;
    padding: 0 20px;
}

.video-container {
    max-width: 100%; /* Mobile first */
    margin: 0 auto;
    padding: 0 20px;
}

.video-placeholder {
    position: relative;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15); /* Reduzido para mobile */
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 16/9; /* Responsive aspect ratio */
}

.video-placeholder:hover {
    transform: scale(1.01); /* Reduzido para mobile */
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4; /* Melhor contraste mobile */
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px; /* Mobile optimized */
    height: 60px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px; /* Mobile optimized */
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    touch-action: manipulation; /* Better touch response */
    min-width: 44px; /* Touch target */
    min-height: 44px;
}

.play-button:hover {
    background: white;
    transform: translate(-50%, -50%) scale(1.05); /* Reduzido para mobile */
}

.video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 15px; /* Mobile optimized */
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
}

.video-info h4 {
    font-size: 16px; /* Mobile optimized */
    margin-bottom: 8px;
    line-height: 1.3;
}

.video-info p {
    font-size: 13px; /* Mobile optimized */
    opacity: 0.9;
    line-height: 1.4;
}

/* ==========================================================================
   CTA DA SEÇÃO - MOBILE FIRST
   ========================================================================== */

.testimonials-cta {
    background: linear-gradient(135deg, rgba(102,124,77,0.05) 0%, rgba(42,91,127,0.05) 100%);
    border: 2px solid var(--success);
    border-radius: 30px;
    padding: 30px 20px; /* Mobile first */
    text-align: center;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS - DESKTOP ENHANCEMENTS
   ========================================================================== */

/* Tablet Portrait */
@media (min-width: 768px) {
    .testimonials {
        padding: 80px 0;
    }

    /* Background decorativo habilitado em tablet+ */
    .testimonials::before {
        display: block;
        content: '';
        position: absolute;
        top: 50%;
        left: -100px;
        width: 200px;
        height: 200px;
        background: radial-gradient(circle, rgba(102,124,77,0.05) 0%, transparent 70%);
        transform: translateY(-50%);
    }
    
    .testimonials-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .stat-box {
        flex-direction: row;
        text-align: left;
        gap: 20px;
        padding: 20px;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .stat-value {
        font-size: 32px;
    }
    
    .stat-label {
        font-size: 14px;
    }
    
    .testimonials-carousel {
        max-width: 1000px;
        padding: 0 60px;
    }
    
    .testimonial-card.featured {
        padding: 35px 30px;
    }
    
    .testimonial-header {
        grid-template-columns: auto 1fr auto;
        text-align: left;
        gap: 30px;
    }
    
    .testimonial-avatar {
        width: 70px;
        height: 70px;
        margin: 0;
    }
    
    .testimonial-name {
        font-size: 20px;
    }
    
    .testimonial-location {
        justify-content: flex-start;
        font-size: 14px;
    }
    
    .testimonial-rating {
        justify-content: flex-start;
    }
    
    .testimonial-transformation {
        flex-direction: row;
        padding: 20px;
        gap: 20px;
    }
    
    .testimonial-transformation .fa-arrow-right {
        font-size: 24px;
        transform: rotate(0deg); /* Desktop: right arrow */
    }
    
    .testimonial-text {
        font-size: 16px;
        padding: 25px;
    }
    
    .testimonial-results {
        flex-direction: row;
        gap: 30px;
        text-align: center;
    }
    
    .result-item {
        justify-content: center;
        font-size: 15px;
    }
    
    .testimonial-date {
        font-size: 13px;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .grid-title {
        font-size: 28px;
        padding: 0;
    }
    
    .testimonial-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .testimonial-small {
        padding: 25px;
    }
    
    .testimonial-small-header img {
        width: 50px;
        height: 50px;
    }
    
    .testimonial-small-header strong {
        font-size: 16px;
    }
    
    .testimonial-small-header span {
        font-size: 13px;
    }
    
    .testimonial-small p {
        font-size: 15px;
    }
    
    .students-map {
        padding: 40px 30px;
    }
    
    .map-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .map-stats {
        gap: 25px;
    }
    
    .state-stat {
        padding: 20px;
        min-width: 100px;
    }
    
    .state-stat .state {
        font-size: 24px;
    }
    
    .state-stat .count {
        font-size: 20px;
    }
    
    .state-stat .label {
        font-size: 12px;
    }
    
    .video-title {
        font-size: 24px;
        padding: 0;
    }
    
    .video-container {
        max-width: 800px;
        padding: 0;
    }
    
    .play-button {
        width: 80px;
        height: 80px;
        font-size: 30px;
    }
    
    .video-info {
        padding: 30px;
    }
    
    .video-info h4 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .video-info p {
        font-size: 14px;
    }
    
    .testimonials-cta {
        padding: 40px 30px;
    }
}

/* Desktop */
@media (min-width: 1200px) {
    .testimonials {
        padding: 100px 0;
    }
    
    .testimonials-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
    
    .testimonial-card.featured {
        padding: 40px;
    }
    
    .testimonial-header {
        margin-bottom: 30px;
    }
    
    .testimonial-avatar {
        width: 80px;
        height: 80px;
        border: 4px solid var(--primary);
    }
    
    .testimonial-text {
        font-size: 17px;
        line-height: 1.8;
        padding: 30px;
    }
    
    .testimonial-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .students-map {
        padding: 40px;
    }
    
    .map-stats {
        gap: 30px;
    }
    
    .testimonials-cta {
        padding: 50px;
    }
}

/* ==========================================================================
   ANIMAÇÕES OTIMIZADAS
   ========================================================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility Classes */
.testimonials .spots-urgent {
    color: #ffe920 !important;
    font-weight: 700;
}

/* Print Optimization */
@media print {
    .testimonials {
        page-break-inside: avoid;
    }
    
    .carousel-navigation,
    .play-button {
        display: none;
    }
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 767px) {
    .testimonials-grid {
        display: none !important;
    }
    .video-container > div {
    padding-top: 110.25% !important; /* ajuste a razão conforme quiser */
    }
}