/* TESTIMONIALS SECTION */
.testimonials-section {
    background-color: #F9FAFB; /* Slightly off-white for contrast from the white partners section */
    padding: 6rem 2rem;
    overflow: hidden;
}

.testimonials-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.testimonials-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    display: block;
}

.testimonials-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.testimonials-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* CAROUSEL CONTAINER */
.carousel-container {
    max-width: 1200px; /* limits how wide the carousel gets on very large screens */
    margin: 0 auto;
    position: relative;
}

.carousel-viewport {
    overflow: hidden;
    position: relative;
    padding: 1rem 0; /* padding for box-shadows */
}

.carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
    will-change: transform;
}

.carousel-track.no-transition {
    transition: none;
}

/* TESTIMONIAL CARD */
.testimonial-card {
    flex: 0 0 calc(33.3333% - 1.3333rem); /* 3 visible on desktop with 2rem gap */
    width: calc(33.3333% - 1.3333rem);
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    /* Maintain equal heights automatically via flex, but restrict content if necessary */
    height: 100%;
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.star {
    color: #F59E0B; /* Warm orange/yellow for stars */
}

.quote-text {
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1; /* Pushes author info to the bottom */
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-main);
}

.author-role {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.author-program {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--primary-green);
    margin-top: 0.25rem;
}

/* NAVIGATION & PAGINATION */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2.5rem;
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
    margin: 0 auto;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #D1D5DB;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.dot.active {
    background-color: var(--primary-green);
    transform: scale(1.2);
}

.carousel-arrows {
    display: flex;
    gap: 1rem;
    position: absolute;
    top: -5rem; /* Position above the cards */
    right: 0;
}

.carousel-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.carousel-arrow:hover {
    background-color: #f3f4f6;
    border-color: #c1c5cb;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 1rem); /* 2 visible on tablet with 2rem gap */
        width: calc(50% - 1rem);
    }
    
    .carousel-arrows {
        top: auto;
        position: static;
        margin-top: 2rem;
        justify-content: center;
        width: 100%;
    }
    
    .carousel-controls {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 4rem 1.5rem;
    }
    
    .testimonial-card {
        flex: 0 0 100%; /* 1 visible on mobile */
        width: 100%;
    }
    
    .testimonials-title {
        font-size: 2rem;
    }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    .carousel-track {
        transition: none !important;
    }
}

.testimonials-section { display: none !important; }
