/* ===================================
   ESTILOS PARA CARROSSEL
   =================================== */

.depoimentos-carrossel {
    position: relative;
    max-width: 1280px;
    margin: 40px 0px 0px 0px;
    padding: 0px 0px 0px px;
    overflow: hidden;
}

.depoimentos-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.depoimento-item {
    min-width: calc(33.333333% - 20px);
    max-width: calc(33.333333% - 20px);
    width: calc(33.333333% - 20px);
    padding: 0;
    margin: 0px 20px 0px 2px;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* ===================================
   CARD DO DEPOIMENTO
   =================================== */

.depoimento-content {
    background: #fff;
    padding: var(--esp-40);
    border-radius: var(--borda-20);
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: 0.3s ease;
    border: 1px solid #eeeeee8f;
}

/* ===================================
   HEADER (FOTO + INFORMAÇÕES)
   =================================== */

.depoimento-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #f2f2f2;
}

/* Foto do depoimento */
.depoimento-foto {
    flex-shrink: 0;
}

.depoimento-foto img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

/* Informações do autor */
.depoimento-autor {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
    flex-grow: 1;
}

.depoimento-autor strong {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.depoimento-autor > span:not(.plataforma) {
    font-size: 13px;
    color: #7f8c8d;
    line-height: 1.4;
}

.depoimento-autor .plataforma {
    font-size: 12px;
    color: #3498db;
    font-weight: 500;
    margin-top: 2px;
}

/* ===================================
   TEXTO DO DEPOIMENTO
   =================================== */

.depoimento-texto-wrapper {
    flex-grow: 1;
    margin-bottom: 25px;
}

.depoimento-texto {
    font-size: 16px;
    line-height: 26px;
    color: var(--txt);
    margin: 0;
    text-align: left;
}

.depoimento-texto-resumo {
    display: block;
}

.depoimento-texto-completo {
    display: none;
}

/* ===================================
   BOTÃO VER MAIS
   =================================== */

.ver-mais-btn {
    background: transparent;
    color: var(--txt);
    border: none;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    align-self: flex-start;
    border: 1px solid var(--txt);
}

.ver-mais-btn:hover {
    opacity: 0.4;
}

.ver-mais-btn:active {
    transform: translateY(0);
}

/* ===================================
   BOTÕES DE NAVEGAÇÃO DO CARROSSEL
   =================================== */

.carrossel-prev,
.carrossel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #2c3e50;
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.carrossel-prev:hover,
.carrossel-next:hover {
    background: #34495e;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.carrossel-prev:active,
.carrossel-next:active {
    transform: translateY(-50%) scale(0.95);
}

.carrossel-prev {
    left: 10px;
}

.carrossel-next {
    right: 10px;
}

/* ===================================
   INDICADORES (DOTS)
   =================================== */

.carrossel-dots {
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

.carrossel-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #bdc3c7;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carrossel-dot:hover {
    background: #95a5a6;
    transform: scale(1.2);
}

.carrossel-dot.active {
    background: var(--c2);
    transform: scale(1.3);
    border-color: var(--c2);
}

/* ===================================
   ESTILOS PARA GRID
   =================================== */

.depoimentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    max-width: 1280px;
    margin: 40px 0px 0px 0px;
    padding: 0px;
}

.depoimentos-grid .depoimento-item {
    padding: 0;
    min-width: auto;
    max-width: none;
    width: auto;
    margin: 0;
}

.depoimentos-grid .depoimento-content {
    height: 100%;
}

.depoimentos-grid .depoimento-foto img {
    width: 60px;
    height: 60px;
}

.depoimentos-grid .depoimento-autor strong {
    font-size: 15px;
}

.depoimentos-grid .depoimento-autor > span:not(.plataforma) {
    font-size: 12px;
}

.depoimentos-grid .depoimento-texto {
    font-size: 16px;
}

/* ===================================
   RESPONSIVIDADE - TABLETS (992px)
   =================================== */

@media (max-width: 992px) {
    .depoimento-item {
        min-width: calc(50% - 20px);
        max-width: calc(50% - 20px);
        width: calc(50% - 20px);
    }
    
    .depoimentos-carrossel {
        padding: 0px 0px;
    }
    
    .depoimento-content {
        padding: 35px;
    }
    
    .depoimentos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================================
   RESPONSIVIDADE - MOBILE (768px)
   =================================== */

@media (max-width: 768px) {
    .depoimento-item {
        min-width: calc(100% - 20px);
        max-width: calc(100% - 20px);
        width: calc(100% - 20px);
    }
    
    .depoimento-content {
        padding: 25px;
    }
    
    .depoimento-header {
        gap: 12px;
        margin-bottom: 15px;
        padding-bottom: 15px;
    }
    
    .depoimento-foto img {
        width: 60px;
        height: 60px;
        border-width: 2px;
    }
    
    .depoimento-autor strong {
        font-size: 15px;
    }
    
    .depoimento-autor > span:not(.plataforma) {
        font-size: 12px;
    }
    
    .depoimento-autor .plataforma {
        font-size: 11px;
    }
    
    .depoimento-texto {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .ver-mais-btn {
        padding: 6px 16px;
        font-size: 12px;
    }
    
    .carrossel-prev,
    .carrossel-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .carrossel-prev {
        left: 5px;
    }
    
    .carrossel-next {
        right: 5px;
    }
    
    .carrossel-dot {
        width: 6px;
        height: 6px;
        margin: 0 4px;
    }
    
    .depoimentos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ===================================
   ANIMAÇÕES
   =================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.depoimento-texto-completo,
.depoimento-texto-resumo {
    animation: fadeIn 0.3s ease;
}

/* Animação de entrada dos cards */
.depoimento-item {
    animation: fadeIn 0.5s ease;
}

/* ===================================
   MELHORIAS VISUAIS
   =================================== */

/* Efeito de foco para acessibilidade 
.ver-mais-btn:focus,
.carrossel-prev:focus,
.carrossel-next:focus,
.carrossel-dot:focus {
    outline: 3px solid var(--txt);
    outline-offset: 2px;
}*/

/* Transições suaves */
* {
    box-sizing: border-box;
}

.depoimento-content * {
    transition: color 0.2s ease;
}

/* Estado de carregamento */
.depoimentos-carrossel.loading,
.depoimentos-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}