/* =========================================
   TESTIMONIALS CSS (Copy to styles.css)
   ========================================= */

.testimonials-section {
    padding: 0;
    width: 100%;
    background-color: transparent;
}

.carousel-wrapper {
    position: relative;
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 5rem; /* Space for the navigation arrows */
}

.carousel-viewport {
    overflow: hidden;
    width: 100%;
    padding: 2rem 1rem; /* Padding added so the hover drop-shadow doesn't get cut off */
}

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

.carousel-track.smooth-transition {
    /* Using the exact elegant transition curve from your styles.css */
    transition: transform 0.7s var(--transition-curve); 
}

/* --- Card Styles (Matching Partners Section) --- */
.testimonial-card {
    /* Flex sizing: 50% width minus half the gap */
    flex: 0 0 calc(50% - 1rem); 
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--primary-blue);
    transition: transform 0.4s var(--transition-curve), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* The Dotted Pattern Effect */
.testimonial-card::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(var(--hover-crimson) 2px, transparent 2px);
    background-size: 12px 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translate(-10px, -10px);
    pointer-events: none;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px var(--shadow-hover);
}

.testimonial-card:hover::after {
    opacity: 1;
    transform: translate(0, 0);
}

.testimonial-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid #f0f7ff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: border-color 0.3s ease;
}

.testimonial-card:hover .testimonial-img {
    border-color: var(--shadow-hover);
}

.testimonial-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-dark-blue);
    margin-bottom: 0.25rem;
    font-family: "Inter", "PT Sans", sans-serif;
}

.testimonial-role {
    font-size: 0.9rem;
    color: var(--hover-crimson);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

/* Elegant Quote Marks */
.quote-icon {
    font-family: Georgia, serif;
    font-size: 4rem;
    line-height: 0;
    color: #e0f2fe; /* Very light blue */
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 0;
    flex-grow: 1; /* Pushes content evenly */
}

/* --- Carousel Buttons --- */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--white);
    color: var(--primary-blue);
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--transition-curve);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.carousel-btn.prev-btn { left: 0; }
.carousel-btn.next-btn { right: 0; }

.carousel-btn:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    transform: translateY(-50%) scale(1.1);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .carousel-wrapper {
        padding: 0 1rem; /* Remove outer button padding */
    }
    .carousel-btn {
        display: none; /* Hide hardware buttons on tablet/mobile for swipe preference, or adjust to overlap */
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 100%; /* Show 1 card at a time on mobile */
    }
}