.trusted-by-section {
    padding: 90px 0;
    background: #fff;
    text-align: center;
}

.trusted-by-section .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.trusted-by-section .eyebrow i {
    color: var(--ce-color-primary);
}

.trusted-by-section h2 {
    font-weight: 800;
    font-size: 2.2rem;
    color: var(--ce-color-navy);
    max-width: 820px;
    margin: 14px auto 56px;
}

.trusted-by-section h2 .accent {
    color: var(--ce-color-primary);
}

/* ---- Logo marquee: continuous auto-scroll, grayscale -> color on hover ---- */
.logo-marquee {
    overflow: hidden;
    margin-bottom: 76px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logo-marquee-track {
    display: flex;
    align-items: center;
    gap: 64px;
    width: max-content;
    animation: logoMarqueeScroll 150s linear infinite;
}

.logo-marquee:hover .logo-marquee-track {
    animation-play-state: paused;
}

.logo-marquee-track img {
    height: 40px;
    width: auto;
    flex-shrink: 0;
    filter: grayscale(1);
    opacity: 0.55;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.logo-marquee-track img:hover {
    filter: grayscale(0);
    opacity: 1;
}

@keyframes logoMarqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); } /* logo list is rendered twice for a seamless loop */
}

/* ---- Testimonial carousel: paginated groups of 3, not a single-item peek ---- */
.testimonial-carousel-wrap {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 56px;
}

.testimonial-viewport {
    overflow-x: hidden; /* needed for the carousel's slide mechanism —
       hides the other pages during the transform transition */
    overflow-y: visible; /* NOTE: browsers silently convert this to
       'auto' when overflow-x is non-visible on the same element — it
       still clips, just without a scrollbar. The vertical padding
       below is what actually prevents shadows from being cut on the
       top/bottom edges, by giving them room before reaching that
       (still-effectively-clipping) edge.
       IMPORTANT: do NOT add horizontal padding here — it also widens
       the boundary that hides the *next/previous page*, not just
       shadow bleed, exposing a sliver of the adjacent page's card.
       Horizontal shadow room is handled per-page instead, below. */
    padding: 24px 0;
    margin: -24px 0;
}

.testimonial-track {
    display: flex;
    transition: transform 0.4s ease;
}

.testimonial-page {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    align-items: start;
    padding: 0 24px; /* inset so card shadows have room within THIS page's own edge, without moving the viewport's clip boundary (which would expose the adjacent page) */
}

.testimonial-card {
    height: 480px;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: var(--ce-radius-md);
    box-shadow: var(--ce-shadow-sm);
    padding: 28px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.testimonial-card .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.testimonial-card .company-logo {
    height: 44px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
}

.testimonial-card .logo-canada-abroad {
    height: 64px;
}

.testimonial-card .quote-icon {
    width: 32px;
    height: auto;
    flex-shrink: 0;
    opacity: 0.7;
}

.testimonial-card .testi-text {
    color: #374151;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.65;
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 10px; /* room for the thin scrollbar so text doesn't sit flush against it */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #c9cfda transparent; /* Firefox */
}

.testimonial-card .testi-text::-webkit-scrollbar {
    width: 6px;
}

.testimonial-card .testi-text::-webkit-scrollbar-track {
    background: transparent;
}

.testimonial-card .testi-text::-webkit-scrollbar-thumb {
    background: #c9cfda;
    border-radius: 3px;
}

.testimonial-card .testi-text::-webkit-scrollbar-thumb:hover {
    background: #9aa3b5;
}

.testimonial-card .testi-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #eef0f4;
    padding-top: 16px;
    margin-top: 18px;
}

.testimonial-card .testi-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.testimonial-card .testi-name {
    display: block;
    color: var(--ce-color-navy);
    font-weight: 700;
    font-size: 0.98rem;
}

.testimonial-card .testi-role {
    font-size: 0.88rem;
    font-weight: 500;
    color: #4b5567;
}

.testimonial-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: none;
    color: var(--ce-color-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--ce-shadow-sm);
    z-index: 2;
}

.testimonial-carousel-nav:hover {
    background: #eef2ff;
}

.testimonial-carousel-nav:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.testimonial-carousel-nav.prev {
    left: 0;
}

.testimonial-carousel-nav.next {
    right: 0;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.testimonial-dots button {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: #c9cfda;
    border: none;
    padding: 0;
    transition: width 0.2s ease, background 0.2s ease;
}

.testimonial-dots button.is-active {
    background: var(--ce-color-primary);
    width: 22px;
}

@media (max-width: 991px) {
    .testimonial-page {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .trusted-by-section h2 {
        font-size: 1.6rem;
    }

    .testimonial-carousel-wrap {
        padding: 0 44px;
    }
}
