/* Testimonials Section */
.real-testimonials-section {
    padding: var(--padding-section-sm) var(--spacing-md);
    background-color: #f8fafc;
    margin: var(--spacing-xl) 0;
    width: 100%;
}

.testimonials-container {
    max-width: var(--container-2xl);
    margin: 0 auto;
}

.testimonials-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.testimonials-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw + 0.5rem, 3rem);
    color: #003a5b;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.testimonials-subtitle {
    font-family: 'Rethink Sans', sans-serif;
    color: rgba(0, 58, 91, 0.7);
    font-size: clamp(1rem, 1.25vw, 1.125rem);
    max-width: 600px;
    margin: 0 auto;
}

.testimonials-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(0.75rem, 4vw, 2.5rem);
    /* Space for arrows */
}

.testimonials-grid {
    display: flex;
    overflow-x: auto;
    gap: var(--spacing-lg);
    padding: var(--spacing-md) 5px;
    /* Padding for shadow */
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.testimonials-grid::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

/* Responsive adjustments */
@media (min-width: 768px) {
    /* No grid template columns needed for flex */
}

@media (min-width: 1024px) {
    /* No grid template columns needed for flex */
}

.real-testimonial-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 58, 91, 0.05);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 58, 91, 0.05);
    height: auto;
    min-height: 100%;

    /* Carousel: one readable card per view on small screens */
    flex: 0 0 min(100%, calc(100vw - 2.5rem));
    min-width: min(100%, calc(100vw - 2.5rem));
    max-width: min(100%, calc(100vw - 2.5rem));
    box-sizing: border-box;
    scroll-snap-align: center;
}

@media (min-width: 640px) {
    .real-testimonial-card {
        flex: 0 0 min(100%, 28rem);
        min-width: min(100%, 28rem);
        max-width: min(100%, 28rem);
    }
}

@media (min-width: 900px) {
    .real-testimonial-card {
        flex: 0 0 calc(50% - 0.65rem);
        min-width: calc(50% - 0.65rem);
        max-width: calc(50% - 0.65rem);
    }
}

@media (min-width: 1200px) {
    .real-testimonial-card {
        flex: 0 0 calc(33.333% - 0.75rem);
        min-width: calc(33.333% - 0.75rem);
        max-width: calc(33.333% - 0.75rem);
    }
}

/* Navigation Buttons */
.testimonial-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    color: #003a5b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.testimonial-nav-btn:hover {
    background: #003a5b;
    color: white;
    box-shadow: 0 6px 16px rgba(0, 58, 91, 0.2);
}

.testimonial-nav-btn.prev {
    left: 0;
}

.testimonial-nav-btn.next {
    right: 0;
}

.real-testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 58, 91, 0.1);
}

.testimonial-quote-icon {
    color: #2EE08F;
    font-size: 2rem;
    line-height: 1;
    margin-bottom: -10px;
}

.testimonial-text {
    font-family: 'Rethink Sans', sans-serif;
    color: #334155;
    line-height: 1.6;
    font-size: 1.05rem;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid #f1f5f9;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #e2e8f0;
    object-fit: cover;
    flex-shrink: 0;
}

.testimonial-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #f0fdf4;
    color: #2EE08F;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
    border: 1px solid #2EE08F;
}

.testimonial-info {
    display: flex;
    flex-direction: column;
}

.testimonial-info h4 {
    font-weight: 700;
    color: #003a5b;
    font-size: 1rem;
    margin: 0;
}

.testimonial-info p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}