/* Carousel Testimonials Styles - Modern Design */
.ta-carousel { 
    --primary-color: #4f46e5;
    --primary-light: #818cf8;
    --primary-dark: #3730a3;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.ta-carousel-container {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin: 2rem 0;
}

.ta-carousel-header {
    background: linear-gradient(rgba(13, 63, 95, 0.9), rgba(19, 95, 143, 0.8)), url('../../assets/testimonials-bg-1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 200px;
}

.ta-carousel-title {
    color: white;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    z-index: 2;
    position: relative;
}

.ta-carousel-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-top: 0.5rem;
    z-index: 2;
    position: relative;
}

.ta-carousel-content {    
    padding: 2rem;
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.ta-quote-icon {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 3rem;
    height: 3rem;
    color: var(--primary-light);
    opacity: 0.3;
}

.ta-testimonial-text {
    font-size: 1.0rem;
    font-family: var(--font-headings);
    line-height: 1.6;
    color: var(--text-dark);
    font-style: italic;
    margin: 2rem 0 1rem 0;
    padding: 0 1rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ta-testimonial-author {
    text-align: center;
    margin-top: 1rem;
}

.ta-author-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.ta-author-title {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0.25rem 0 0 0;
}

/* Rating stars styles */
.ta-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.ta-rating-score {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.ta-stars {
    display: flex;
    gap: 0.1rem;
}

.ta-star {
    font-size: 1.2rem;
    color: #e5e7eb;
    transition: color 0.2s ease;
    display: inline-block;
}

.ta-star--filled {
    color: #fbbf24;
}

.ta-rating-count {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.ta-carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.ta-nav-button {
    background: var(--bg-white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.ta-nav-button:hover {
    background: #f6f6f6;
    transform: scale(1.05);
}

.ta-nav-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
}



/* Animation for testimonial transitions */
.ta-testimonial {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ta-testimonial.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

/* Responsive design */
@media (min-width: 768px) {
    .ta-carousel-container {
        flex-direction: row;
        margin: 3rem 0;
    }
    
    .ta-carousel-header {
        width: 40%;
        min-height: 400px;
        padding: 3rem 2rem;
    }
       
    .ta-carousel-title {
        font-size: 2.5rem;
    }
    
    .ta-carousel-content {
        width: 60%;
        padding: 3rem;
        min-height: 400px;
    }
    
    .ta-quote-icon {
        width: 4rem;
        height: 4rem;
        top: 2rem;
        left: 2rem;
    }
    
    .ta-testimonial-text {
        font-size: 1.5rem;
        padding: 0 2rem;
    }
    
    .ta-nav-button {
        position: relative;
        bottom: auto;
        right: auto;
    }
    
    .ta-nav-button:first-child {
        right: auto;
    }
}

@media (max-width: 767px) {
    .ta-carousel-title {
        font-size: 1.75rem;
    }
    
    .ta-testimonial-text {
        font-size: 0.8rem;
        padding: 0 0.5rem;
    }
    
    .ta-carousel-controls {
        flex-wrap: wrap;
    }
    

}
