@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

.aafe-testimonials-columns-wrapper h1,
.aafe-testimonials-columns-wrapper h2,
.aafe-testimonials-columns-wrapper h3,
.aafe-testimonials-columns-wrapper h4,
.aafe-testimonials-columns-wrapper h5,
.aafe-testimonials-columns-wrapper h6 {
    font-family: 'Sora', sans-serif;
}

.aafe-testimonials-columns-wrapper p,
.aafe-testimonials-columns-wrapper span,
.aafe-testimonials-columns-wrapper li,
.aafe-testimonials-columns-wrapper a,
.aafe-testimonials-columns-wrapper .aafe-testimonials-columns__description,
.aafe-testimonials-columns-wrapper .aafe-testimonials-columns__body-text {
    font-family: 'Inter', sans-serif;
}

.aafe-testimonials-columns-wrapper {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    background-color: #ffffff;
}

.aafe-testimonials-columns-wrapper * {
    transition: all var(--aafe-transition, 300ms) ease;
    box-sizing: border-box;
}

.aafe-testimonials-columns-wrapper[data-hover="lift"]:hover,
.aafe-testimonials-columns-wrapper[data-hover="lift"]:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.aafe-testimonials-columns-wrapper[data-hover="scale"]:hover,
.aafe-testimonials-columns-wrapper[data-hover="scale"]:focus-within {
    transform: scale(var(--aafe-hover-scale, 1.03));
}

.aafe-testimonials-columns-wrapper[data-hover="glow"]:hover,
.aafe-testimonials-columns-wrapper[data-hover="glow"]:focus-within {
    box-shadow: 0 0 0 3px #4f46e5, 0 8px 30px rgba(79, 70, 229, 0.25);
}

.aafe-testimonials-columns-wrapper[data-hover="border-pop"]:hover,
.aafe-testimonials-columns-wrapper[data-hover="border-pop"]:focus-within {
    border: 1px solid #4f46e5;
    transform: scale(var(--aafe-hover-scale, 1.01));
}

.aafe-testimonials-columns-wrapper[data-hover="overlay"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--aafe-hover-overlay, rgba(0, 0, 0, 0.5));
    opacity: 0;
    pointer-events: none;
    z-index: 5;
    transition: opacity var(--aafe-transition, 300ms) ease;
}

.aafe-testimonials-columns-wrapper[data-hover="overlay"]:hover::before,
.aafe-testimonials-columns-wrapper[data-hover="overlay"]:focus-within::before {
    opacity: 1;
}

.aafe-testimonials-columns-wrapper[data-hover="shine"] {
    overflow: hidden;
}

.aafe-testimonials-columns-wrapper[data-hover="shine"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 10;
}

.aafe-testimonials-columns-wrapper[data-hover="shine"]:hover::after,
.aafe-testimonials-columns-wrapper[data-hover="shine"]:focus-within::after {
    left: 125%;
    transition: left 0.6s ease;
}

.aafe-testimonials-columns__header {
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.aafe-testimonials-columns__badge-wrap {
    display: flex;
    justify-content: center;
}

.aafe-testimonials-columns__badge {
    display: inline-block;
    border: 1px solid #e2e8f0;
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
}

.aafe-testimonials-columns__heading {
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #0f172a;
}

.aafe-testimonials-columns__description {
    margin: 0;
    opacity: 0.75;
    line-height: 1.6;
    color: #64748b;
}

.aafe-testimonials-columns__marquee {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: var(--aafe-tc-columns-gap, 24px);
    overflow: hidden;
    max-height: 740px;
    width: calc(100% + 80px);
    margin: 0 -40px;
    padding: 0 40px;
}

.aafe-testimonials-columns__marquee--masked {
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
}

.aafe-testimonials-columns__column {
    flex: 0 1 auto;
    width: var(--aafe-tc-column-width, 320px);
    max-width: 100%;
    min-width: 0;
    max-height: inherit;
}

/* By default, all columns output in HTML are visible on Desktop */
.aafe-testimonials-columns__column {
    display: block;
}

/* Loop wrappers use display:contents so every card is a direct flex child of the track (even gap between duplicates). */
.aafe-testimonials-columns__loop {
    display: contents;
}

.aafe-testimonials-columns__track {
    display: flex;
    flex-direction: column;
    gap: var(--aafe-tc-card-gap, 24px);
    padding-bottom: var(--aafe-tc-card-gap, 24px);
    animation: aafe-tc-scroll var(--aafe-col-duration, 15s) linear infinite;
    will-change: transform;
    
    /* Expand paint bounds to prevent GPU clipping of shadows */
    width: calc(100% + 80px);
    margin-left: -40px;
    margin-right: -40px;
    padding-left: 40px;
    padding-right: 40px;
}

.aafe-testimonials-columns-wrapper--pause-hover .aafe-testimonials-columns__column:hover .aafe-testimonials-columns__track,
.aafe-testimonials-columns-wrapper--pause-hover .aafe-testimonials-columns__column:focus-within .aafe-testimonials-columns__track {
    animation-play-state: paused;
}

@keyframes aafe-tc-scroll {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-50%);
    }
}

.aafe-testimonials-columns__card {
    flex-shrink: 0;
    width: 100%;
    margin: 0;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 40px rgba(79, 70, 229, 0.08);
    background: #ffffff;
}

.aafe-testimonials-columns__quote {
    line-height: 1.6;
}

.aafe-testimonials-columns__author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.aafe-testimonials-columns__avatar {
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.aafe-testimonials-columns__meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.aafe-testimonials-columns__name {
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.aafe-testimonials-columns__role {
    line-height: 1.25;
    opacity: 0.6;
    letter-spacing: -0.02em;
}

/* Tablet Media Query (Elementor tablet default max-width: 1024px) */
@media (max-width: 1024px) {
    .aafe-tc-cols-tablet-1 .aafe-testimonials-columns__column:nth-child(n+2) { display: none !important; }
    .aafe-tc-cols-tablet-2 .aafe-testimonials-columns__column:nth-child(n+3) { display: none !important; }
    .aafe-tc-cols-tablet-3 .aafe-testimonials-columns__column:nth-child(n+4) { display: none !important; }
    .aafe-tc-cols-tablet-4 .aafe-testimonials-columns__column:nth-child(n+5) { display: none !important; }
}

/* Mobile Media Query (Elementor mobile default max-width: 767px) */
@media (max-width: 767px) {
    .aafe-tc-cols-mobile-1 .aafe-testimonials-columns__column:nth-child(n+2) { display: none !important; }
    .aafe-tc-cols-mobile-2 .aafe-testimonials-columns__column:nth-child(n+3) { display: none !important; }
    .aafe-tc-cols-mobile-3 .aafe-testimonials-columns__column:nth-child(n+4) { display: none !important; }
    .aafe-tc-cols-mobile-4 .aafe-testimonials-columns__column:nth-child(n+5) { display: none !important; }
}

@media (max-width: 767px) {
    .aafe-testimonials-columns__column {
        width: min(var(--aafe-tc-column-width, 320px), 100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .aafe-testimonials-columns__track {
        animation: none;
    }
}
