/* Custom CSS */
/* Overlay gradiente da esquerda para o centro */
:root {
    --color-primary: #00387D;
    --color-primary-shade: #00366d;
    --color-primary-dark: #002142;
    --color-primary-tint: #1a5089;
    --color-primary-rgb: 0, 61, 124;
    --color-primary-dark-rgb: 0, 33, 66;
    --color-tertiary: #D80000;
    --color-tertiary-shade: #D80000;
    --color-tertiary-dark: #660000;
    --color-tertiary-tint: #D80000;
    --color-tertiary-rgb: 217, 0, 0;
}
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right, 
		rgba(0, 81, 148, 0.9) 0%,
        rgba(0, 81, 148, 0.7) 30%,
        rgba(0, 81, 148, 0.0) 60%,
        transparent 70%           
    );
    z-index: 0;
}

.heading-overlay{
	background-color: rgba(0, 0, 0, 0.6);
    background-blend-mode: overlay;
}

/* ========================================
   CSS PERSONALIZADO PARA DEPOIMENTOS
   ======================================== */

.testimonials-widget {
    max-width: 100%;
    margin: 0 auto;
    font-family: "Open Sans", sans-serif;
}

.rating-box {
    border: 1px solid #e0e0e0 !important;
    background: #ffffff !important;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.rating-box h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 8px;
}

.rating-box .stars img {
    width: 24px !important;
    height: 24px !important;
    margin: 0 2px;
}

.rating-box .rating-info {
    font-size: 15px;
    line-height: 1.3;
    margin-top: 8px;
}

.testimonial-card {
    border: 1px solid #e0e0e0 !important;
    background: #ffffff !important;
    min-height: 200px;
    transition: none;
    font-size: 14px;
    position: relative;
}

.testimonial-card:hover {
    transform: none;
    box-shadow: none;
}

.testimonial-avatar {
    border: none !important;
}

.testimonial-header h6 {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.testimonial-text {
    font-size: 14px;
    line-height: 1.5;
    color: #333 !important;
    margin-bottom: 8px;
    display: block;
    overflow: hidden;
}

.testimonial-text.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.testimonial-text.expanded {
    display: block;
}

.read-more-btn {
    font-size: 12px;
    color: #666;
    text-decoration: underline;
    opacity: 0.8;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    margin-top: 5px;
    display: none; /* Inicialmente oculto */
}

.read-more-btn.visible {
    display: block;
}

.read-more-btn:hover {
    color: #666;
    opacity: 1;
}

.stars img {
    width: 20px !important;
    height: 20px !important;
    margin-right: 2px;
}

.platform-icon {
    opacity: 1;
    position: absolute;
    top: 8px;
    right: 8px;
}

.google-logo {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.google-logo img {
    max-width: 80px !important;
    height: 24px !important;
    opacity: 1 !important;
    filter: brightness(1) contrast(1) !important;
    display: block !important;
    visibility: visible !important;
}

/* Navegação dos depoimentos */
.nav-arrow {
    background: transparent;
    border: none;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #007bff;
    font-size: 24px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    padding: 8px;
}

.nav-arrow-left {
    left: -12px;
}

.nav-arrow-right {
    right: -12px;
}

.nav-arrow:hover {
    color: #0056b3;
    transform: translateY(-50%) scale(1.1);
}

.nav-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
    color: #6c757d;
}

.testimonials-slider {
    overflow: hidden;
    margin: 0 40px;
    position: relative;
}

.testimonials-track {
    display: flex;
    transition: transform 0.3s ease;
    width: 200%;
}

.testimonials-slide {
    width: 50%;
    flex-shrink: 0;
}

/* Responsividade */
@media (max-width: 992px) {
    .rating-box {
        min-height: 150px;
        margin-bottom: 2rem;
    }
    
    .testimonials-slider {
        margin: 0 35px;
    }
    
    .nav-arrow-left {
        left: -30px;
    }
    
    .nav-arrow-right {
        right: -30px;
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        min-height: 180px;
    }
    
    .rating-box {
        text-align: center !important;
    }
    
    .testimonials-slider {
        margin: 0 30px;
    }
    
    .nav-arrow-left {
        left: -25px;
    }
    
    .nav-arrow-right {
        right: -25px;
    }
    
    .nav-arrow {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .testimonials-widget .row > div {
        margin-bottom: 1rem;
    }
    
    .testimonial-text.collapsed {
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }
    
    .testimonials-slider {
        margin: 0 25px;
    }
    
    .nav-arrow-left {
        left: -20px;
    }
    
    .nav-arrow-right {
        right: -20px;
    }
    
    .nav-arrow {
        font-size: 18px;
    }
}

/* Gradiente escuro para overlay de imagens */
.bg-gradient-dark {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%) !important;
}

/* Altura mínima para cards de imagem */
.card-img {
    min-height: 400px;
    object-fit: cover;
}

@media (max-width: 991.98px) {
    .card-img {
        min-height: 250px;
    }
}