/* ==========================================================================
   TESTIMONIALS SECTION (HOME)
   ========================================================================== */

.testimonials-section {
    padding: clamp(64px, 10vw, 96px) 0;
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgb(0 23 255 / 7%) 2px, transparent 3px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    color: rgba(50, 93, 168, 0.25);
}

.testimonials-header {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: clamp(32px, 6vw, 40px);
}

.testimonials-header .section-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: clamp(12px, 1.5vw, 14px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
}

.carousel-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 31px 0 47px 0;
    cursor: grab;
    scroll-behavior: smooth;
}

.testimonials-track:active {
    cursor: grabbing;
}

.testimonials-track::-webkit-scrollbar {
    display: none;
}

.testimonials-track.no-transition .testimonial-card {
    transition: none !important;
}

.testimonial-card {
    flex: 0 0 clamp(280px, 75vw, 600px);
    scroll-snap-align: center;
    background-color: #FFFFFF;
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0.6;
    transform: scale(0.85) translateZ(0);
    backface-visibility: hidden;
    display: block;
    max-width: 500px;
    user-select: none;
}

.testimonial-card.is-active {
    opacity: 1;
    transform: scale(1) translateZ(0);
    box-shadow: 0 15px 40px rgba(50, 93, 168, 0.25);
}

.testimonial-content {
    width: 100%;
    height: 100%;
    display: block;
}

.testimonial-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.testimonial-text {
    font-family: var(--font-heading);
    font-size: clamp(15px, 1.8vw, 18px);
    font-weight: 500;
    color: var(--color-neutral-800);
    line-height: 1.6;
    margin: 0;
}

.testimonial-avatar {
    width: clamp(48px, 6vw, 64px);
    height: clamp(48px, 6vw, 64px);
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
    flex-shrink: 0;
}

.testimonial-avatar svg,
.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--color-primary-500);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-arrow svg {
    width: 28px;
    height: 28px;
}

.carousel-arrow:hover {
    color: var(--color-primary-400);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.prev {
    left: clamp(8px, 2vw, 24px);
}

.carousel-arrow.next {
    right: clamp(8px, 2vw, 24px);
}

.carousel-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.carousel-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-neutral-300);
    opacity: 0.4;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.carousel-bullet.is-active {
    opacity: 1;
    background-color: var(--color-primary-600);
    transform: scale(1.2);
}

@media (max-width: 767px) {
    .carousel-arrow {
        display: none;
    }
}