/* Testimonials Header */
.testimonials-header {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/photography-client-reviews/review-testimonial.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 120px 0 60px;
}

.testimonials-header h1 {
    font-size: 3.5rem;
    font-weight: 300;
    font-family: 'Dancing Script', cursive;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.testimonials-header p {
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    letter-spacing: 0.5px;
}

/* Real Testimonials with Alternating Layout */
.real-testimonials {
    padding: 80px 0;
    background: #f8f9fa;
}

.testimonial-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-item.reverse {
    grid-template-columns: 1fr 1fr;
}

.testimonial-item.reverse .testimonial-image {
    order: -1;
}

.testimonial-content {
    background: white;
    padding: 3rem;
    border-radius: 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
}

.testimonial-text {
    position: relative;
}

.testimonial-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-style: italic;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
}

.testimonial-author {
    margin-top: 2rem;
}

.testimonial-author h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.testimonial-author span {
    color: #666;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
}

.photoshoot-type {
    color: #2c3e50;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rating {
    display: flex;
    gap: 0.25rem;
}

.rating i {
    color: #f39c12;
    font-size: 1rem;
}

.testimonial-image {
    height: 500px;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    background: #f0f0f0;
    position: relative;
    border: 20px solid white;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    margin: 10px;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

.testimonial-image:hover img {
    transform: scale(1.05);
    opacity: 1 !important;
}

/* Statistics Section */
.testimonials-stats {
    padding: 60px 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: #000000;
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-family: 'Dancing Script', cursive;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .testimonials-header h1 {
        font-size: 2.5rem;
    }

    .testimonial-item {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .testimonial-item.reverse .testimonial-image {
        order: 0;
    }
    
    /* Force all testimonials to stack the same way on mobile: text first, then image */
    .testimonial-item,
    .testimonial-item.reverse {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "content"
            "image";
    }
    
    .testimonial-item .testimonial-content,
    .testimonial-item.reverse .testimonial-content {
        grid-area: content;
        order: 1;
    }
    
    .testimonial-item .testimonial-image,
    .testimonial-item.reverse .testimonial-image {
        grid-area: image;
        order: 2;
    }

    .testimonial-content {
        padding: 2rem;
    }

    .testimonial-text p {
        font-size: 1rem;
    }

    .testimonial-image {
        height: 300px;
        border: 15px solid white;
        margin: 8px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .testimonials-header h1 {
        font-size: 2rem;
    }

    .testimonials-header p {
        font-size: 1rem;
    }

    .testimonial-content {
        padding: 1.5rem;
    }

    .testimonial-text p {
        font-size: 0.95rem;
    }

    .testimonial-image {
        height: 250px;
        border: 12px solid white;
        margin: 6px;
    }
    
    /* Ensure consistent mobile layout for all testimonials */
    .testimonial-item,
    .testimonial-item.reverse {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "content"
            "image";
    }
    
    .testimonial-item .testimonial-content,
    .testimonial-item.reverse .testimonial-content {
        grid-area: content;
        order: 1;
    }
    
    .testimonial-item .testimonial-image,
    .testimonial-item.reverse .testimonial-image {
        grid-area: image;
        order: 2;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2rem;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }
}

/* Animation for testimonial items */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-item {
    /* animation: slideInUp 0.6s ease-out; */
    opacity: 1;
}

.testimonial-item:nth-child(2) {
    animation-delay: 0.1s;
}

.testimonial-item:nth-child(3) {
    animation-delay: 0.2s;
}

.testimonial-item:nth-child(4) {
    animation-delay: 0.3s;
}

.testimonial-item:nth-child(5) {
    animation-delay: 0.4s;
}



/* Print styles */
@media print {
    .testimonial-image {
        break-inside: avoid;
        margin-bottom: 2rem;
    }
    
    .testimonial-item {
        break-inside: avoid;
        margin-bottom: 3rem;
    }
}
