/* Coaching Testimonials Section */
.coaching-testimonials {
    padding: 4rem 0;
    background: #f8f9fa; /* Light gray background to make section visible */
    margin-top: 2rem;
    overflow: hidden;
    border-top: 2px solid #e0e0e0; /* Add visible border */
}

.coaching-testimonials .section-header {
    text-align: center;
    margin-bottom: 2rem; /* Reduced from 3rem */
}

.coaching-testimonials .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem; /* Reduced from 1rem */
    font-family: 'Poppins', sans-serif;
}

.coaching-testimonials .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Testimonial Carousel */
.testimonial-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px; /* Reduced from 60px */
    overflow: visible; /* Ensure clicks aren't blocked */
}

.testimonial-track {
    display: flex;
    position: relative;
    transition: transform 0.5s ease;
    gap: 1rem; /* Reduced from 2rem */
    width: 100%;
}

.testimonial-slide {
    flex: 0 0 calc(33.333% - 0.67rem); /* Adjusted for smaller gap */
    min-width: calc(33.333% - 0.67rem);
    background: white;
    border-radius: 15px;
    padding: 1.5rem; /* Reduced from 2rem */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.testimonial-quote {
    font-size: 2.5rem; /* Reduced from 3rem */
    color: var(--primary);
    position: absolute;
    top: 0.75rem; /* Reduced from 1rem */
    left: 1rem; /* Reduced from 1.5rem */
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-rating {
    margin: 0.75rem 0; /* Reduced from 1rem */
    color: #FFD700;
    font-size: 1.1rem; /* Reduced from 1.2rem */
}

.testimonial-preview {
    font-size: 0.95rem; /* Reduced from 1rem */
    line-height: 1.5;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

/* Add gradient fade at bottom of preview */
.testimonial-preview::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom, transparent, white);
    pointer-events: none;
}

.testimonial-slide.expanded .testimonial-preview::after {
    display: none;
}

/* Read more button */
.testimonial-read-more {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    text-align: center;
    padding: 8px 16px;
    margin: 0.5rem -0.5rem 1rem -0.5rem;
    background: rgba(0, 102, 204, 0.05);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
    z-index: 2;
}

.testimonial-read-more:hover {
    background: rgba(0, 102, 204, 0.1);
}

.testimonial-read-more:active {
    transform: scale(0.98);
}

/* Hide preview and show full content when expanded */
.testimonial-slide.expanded .testimonial-preview {
    display: none !important;
}

.testimonial-slide.expanded .testimonial-full-content {
    display: block !important;
    margin-bottom: 1rem;
}

.testimonial-client {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* Reduced from 1rem */
    margin-top: auto;
}

.client-image {
    width: 50px; /* Reduced from 60px */
    height: 50px; /* Reduced from 60px */
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #0066cc, #0099ff);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.client-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Remove blue background for player placeholder images */
.client-image img[src="player_placeholder.png"] {
    background: none;
}

.client-image .placeholder-image {
    color: white;
    font-size: 1.1rem; /* Reduced from 1.2rem */
    font-weight: 600;
}

.client-details {
    flex: 1;
    min-width: 0;
}

.client-name {
    font-size: 1rem; /* Reduced from 1.1rem */
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.client-role {
    font-size: 0.85rem; /* Reduced from 0.9rem */
    color: var(--text-light);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Navigation Controls */
.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    left: 0;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    padding: 0;
}

.nav-button {
    width: 36px; /* Reduced from 40px */
    height: 36px; /* Reduced from 40px */
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: all 0.3s ease;
    z-index: 2;
    margin: 0 -18px; /* Added negative margin to position buttons */
}

.nav-button:hover {
    background: var(--primary);
    color: white;
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Navigation Dots */
.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem; /* Reduced from 2rem */
}

.dot {
    width: 6px; /* Reduced from 8px */
    height: 6px; /* Reduced from 8px */
    border-radius: 50%;
    background: #ccc;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* Full content (hidden by default) */
.testimonial-full-content {
    display: none !important;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-dark);
}

/* Expanded state for in-place expansion */
.testimonial-slide.expanded {
    background: #f8f9fa;
    transform: none;
}

.testimonial-slide.expanded .testimonial-quote {
    font-size: 2.8rem;
}