/* --- Section Container --- */
/* --- Carousel Wrapper (relative for nav buttons) --- */
.testimonials-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 3rem auto 0 auto;
    overflow: hidden;
}

.testimonials-carousel-wrapper.carousel-active {
    padding-bottom: 80px;
    overflow: initial;
}

/* --- Carousel Viewport (hides overflowing slides) --- */
.testimonials-carousel-viewport {
    overflow: hidden; /* Hides cards outside the current view */
    width: 100%;
}

/* --- Carousel Track (holds all cards, moves horizontally) --- */
.testimonials-carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
    will-change: transform;
}

/* Responsive grid for testimonials (default behavior when not "carouseling") */
@media (min-width: 768px) { /* md breakpoint */
    .testimonials-carousel-track {
        /* For md:grid-cols-2 */
        /* When acting as a grid, flex-wrap should be removed */
        flex-wrap: wrap; /* This class is for grid behavior, JS will remove it for carousel */
    }
}

@media (min-width: 1024px) { /* lg breakpoint */
    .testimonials-carousel-track {
        /* For lg:grid-cols-3 */
        /* When acting as a grid, flex-wrap should be removed */
        flex-wrap: wrap; /* This class is for grid behavior, JS will remove it for carousel */
    }
}

/* When the carousel is active, cards are explicitly sized and flexed */
.testimonials-carousel-wrapper.carousel-active .testimonials-carousel-track {
    flex-wrap: nowrap; /* Forces all cards into a single row for sliding */
    /* Cards will be sized by JS based on viewports/items per slide */
}

/* Basic sizing for cards within the carousel */
.testimonial-card {
    flex: 0 0 calc((100% - 4rem) / 3);
    width: 100%; /* Default 1 card per view on small screens */
    /* Adjusted by JS for md/lg breakpoints when carousel is active */
    /* Card styling from React code */
    background-color: rgba(255, 255, 255, 0.1); /* Equivalent to bg-white/10 */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Equivalent to border-white/20 */
    backdrop-filter: blur(4px); /* Equivalent to backdrop-blur */
    padding: 1.5rem; /* Equivalent to p-6 */
    border-radius: 0.5rem; /* Equivalent to rounded-md (assuming default Card radius) */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* Common shadow */
    transition: box-shadow 0.3s ease-in-out; /* Equivalent to transition-shadow */
}

    .testimonial-card:hover {
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); /* Equivalent to hover:shadow-lg */
    }

/* Styles for testimonial content (CardContent p-0 implies no padding here) */
.testimonial-card-content {
    padding: 0;
}

.testimonial-quote {
    font-size: 1.125rem; /* Equivalent to text-lg */
    margin-bottom: 1rem; /* Equivalent to mb-4 */
    font-style: italic; /* Equivalent to italic */
    color: rgba(255, 255, 255, 0.9); /* Equivalent to text-white/90 */
}

.testimonial-author-info {
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* Equivalent to border-t border-white/20 */
    padding-top: 1rem; /* Equivalent to pt-4 */
}

.testimonial-author {
    font-weight: 600; /* Equivalent to font-semibold */
    color: #fff; /* Equivalent to text-white */
}

.testimonial-title,
.testimonial-company {
    font-size: 0.875rem; /* Equivalent to text-sm */
    color: rgba(255, 255, 255, 0.8); /* Equivalent to text-white/80 */
}

/* --- Carousel Navigation Buttons --- */
.carousel-nav-button {
    bottom: 15px;
    position: absolute;
    background-color: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 9999px;
    padding: 0.75rem;
    cursor: pointer;
    z-index: 20;
    display: none;
    transition: background-color 0.3s ease;
}

.carousel-nav-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.carousel-nav-button.prev-button {
    left: 0rem; /* Position left, adjust as needed */
}

.carousel-nav-button.next-button {
    left: 60px; /* Position right, adjust as needed */
}

.carousel-nav-button[disabled] {
    opacity: 0.2;
    cursor: none;
}

.carousel-nav-icon {
    width: 1.5rem; /* h-6 w-6 */
    height: 1.5rem;
    color: #fff;
    stroke: currentColor;
}

/* --- Carousel Indicators --- */
.carousel-indicators {
    position: absolute;
    bottom: 20px; /* Adjust positioning below carousel */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem; /* space-x-2 */
    z-index: 20;
    display: none; /* Hidden by default, shown by JS */
}

.indicator-dot {
    width: 0.75rem; /* w-3 */
    height: 0.75rem; /* h-3 */
    border-radius: 9999px; /* rounded-full */
    background-color: rgba(255, 255, 255, 0.4); /* bg-white/40 */
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .indicator-dot.active {
        background-color: #fff; /* bg-white */
    }

@media (max-width: 900px) {
    .testimonial-card {
        flex: 0 0 calc((100% - 2rem) / 2); /* 2 items, 1 gap */
    }
}

@media (max-width: 600px) {
    .testimonial-card {
        flex: 0 0 100%;
    }

    .testimonials-carousel-track {
        gap: 1rem;
    }
}

.testimonials-carousel-wrapper.carousel-active .testimonials-carousel-track {
    flex-wrap: nowrap;
}

.testimonials-carousel-wrapper.carousel-active .testimonial-card {
    flex: 0 0 calc((100% - 4rem) / 3);
    max-width: calc((100% - 4rem) / 3);
}

@media (max-width: 900px) {
    .testimonials-carousel-wrapper.carousel-active .testimonial-card {
        flex: 0 0 calc((100% - 2rem) / 2);
        max-width: calc((100% - 2rem) / 2);
    }
    .carousel-indicators {
        bottom: 30px;
        left: 100%;
        transform: translateX(-100%);
    }
}

@media (max-width: 600px) {
    .testimonials-carousel-wrapper.carousel-active .testimonial-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
