/* --- TESTIMONIALS SECTION --- */
.section-testimonials {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background-color: var(--bg-dark);
    overflow: hidden;
}

.testimonial-carousel-container {
    margin-top: 4rem;
    position: relative;
}

.testimonial-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    
    /* Aligns the first card with the container edge */
    scroll-padding-left: max(var(--app-padding), calc((100vw - var(--container-max)) / 2));
    padding-left: max(var(--app-padding), calc((100vw - var(--container-max)) / 2));
    padding-right: var(--app-padding);
}

.testimonial-track::-webkit-scrollbar {
    display: none;
}

.testi-card {
    flex: 0 0 auto;
    width: 450px; /* Wide format for detailed quotes */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s var(--ease-out), border-color 0.3s;
}

.testi-card:hover {
    border-color: rgba(132, 204, 22, 0.3);
    transform: translateY(-5px);
}

.quote-mark {
    margin-bottom: 1.5rem;
}

.quote-text {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-style: italic;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-details strong {
    color: var(--text-light);
    font-size: 1rem;
}

.author-details span {
    color: #9CA3AF;
    font-size: 0.85rem;
}

/* Controls */
.testi-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.t-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.3s;
}

.t-btn:hover {
    background: var(--text-light);
    color: var(--bg-dark);
}

.t-indicators {
    display: flex;
    gap: 0.5rem;
}

.t-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.2);
    transition: all 0.3s;
}

.t-dot.active {
    background-color: var(--accent);
    transform: scale(1.3);
}

/* Responsive */
@media (max-width: 768px) {
    .testi-card {
        width: 85vw;
        max-width: 320px;
        padding: 2rem;
        scroll-snap-align: center;
    }
    
    .quote-text {
        font-size: 1.1rem;
    }
    
    .testi-controls {
        gap: 1rem;
    }
    
    .t-btn {
        display: none; /* Rely on swiping for mobile */
    }
}