#testimonials {
    padding: 64px 20px;
    background: #f8fafc;
    scroll-margin-top: 80px;
}

#testimonials h2 {
    margin: 0 0 28px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
    text-align: center;
}

#testimonials .testimonial-container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0;
}

#testimonials .testimonial-track {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
    cursor: auto;
    touch-action: pan-y pinch-zoom;
}

#testimonials .testimonial-slides {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 20px;
}

#testimonials .testimonial-card {
    min-width: 0;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-top: 3px solid #0055a4;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 16px rgb(15 23 42 / 5%);
    transform: none;
}

#testimonials [hidden] { display: none !important; }

#testimonials .testimonial-quote {
    margin: 0;
    color: #334155;
    font-size: 16px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

#testimonials [data-expanded="false"] .testimonial-quote {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    max-height: 9.9em;
    overflow: hidden;
}

#testimonials .testimonial-read-more {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 4px 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #0055a4;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 3px;
    box-shadow: none;
    transform: none;
}

#testimonials .testimonial-author {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #edf2f7;
}

#testimonials .testimonial-author h3 {
    margin: 0 0 4px;
    color: #123554;
    background: none;
    -webkit-text-fill-color: currentColor;
    font-size: 16px;
    line-height: 1.4;
}

#testimonials .testimonial-author p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

#testimonials .testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

#testimonials .testimonial-controls > button {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    background: #fff;
    color: #0055a4;
    opacity: 1;
    box-shadow: none;
    transform: none;
}

#testimonials .testimonial-controls > button:disabled { opacity: 0.35; cursor: default; }
#testimonials .testimonial-controls svg { width: 20px; height: 20px; }
#testimonials .testimonial-pagination { display: flex; align-items: center; gap: 2px; margin: 0; }

#testimonials .pagination-dot {
    display: grid;
    place-items: center;
    width: 28px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    transform: none;
}

#testimonials .pagination-dot::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #cbd5e1;
}

#testimonials .pagination-dot[aria-current="true"]::before { background: #0055a4; }
#testimonials button:focus-visible { outline: 2px solid #0055a4; outline-offset: 3px; }
#testimonials .testimonial-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

@media (min-width: 768px) {
    #testimonials { padding: 80px 32px; }
    #testimonials .testimonial-slides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #testimonials .testimonial-card { padding: 32px; }
}
