/* Testimonials Animation and Styling */

/* Import Nunito font */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700;800&display=swap');

/* Infinite Scroll Animation */
@keyframes scroll {
    to {
        transform: translate(calc(-50% - 0.5rem));
    }
}

/* Testimonials Section */
.testimonials-section {
    background-color: #f8f9fa;
    color: #0f172a;
    padding: 4rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.testimonials-container {
    max-width: 1200px;
    width: 100%;
    padding: 1rem 2rem;
    text-align: center;
}

.testimonials-title {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #0f172a;
}

.testimonials-subtitle {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Scroller Container */
.scroller {
    position: relative;
    z-index: 20;
    max-width: 80rem;
    overflow: hidden;
    /* Gradient mask for fade effect on edges */
    -webkit-mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
    mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
}

.scroller ul {
    display: flex;
    width: max-content;
    min-width: 100%;
    flex-shrink: 0;
    flex-wrap: nowrap;
    gap: 1rem;
    padding: 1rem 0;
    margin: 0;
    list-style: none;
}

.scroller ul.animate-scroll {
    animation: scroll var(--animation-duration, 50s) var(--animation-direction, forwards) linear infinite;
}

/* Pause animation on hover */
.scroller ul.hover-pause:hover {
    animation-play-state: paused;
}

/* Testimonial Card */
.testimonial-card {
    position: relative;
    width: 350px;
    max-width: 100%;
    flex-shrink: 0;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 1.5rem 2rem;
    color: #0f172a;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #cbd5e1;
}

.testimonial-card blockquote {
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Quote Text */
.testimonial-quote {
    position: relative;
    z-index: 20;
    font-size: 0.875rem;
    line-height: 1.6;
    font-weight: 400;
    color: #475569;
    margin-bottom: 0;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-style: italic;
    flex: 1;
}

.debug-spacing-container {
    margin: 1rem 0;
}

/* Author Section */
.testimonial-author {
    position: relative;
    z-index: 20;
    margin-top: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.testimonial-profile-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.75rem;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
}

.testimonial-author-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial-author-name {
    font-size: 0.875rem;
    line-height: 1.6;
    font-weight: 600;
    color: #0f172a;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

.testimonial-author-title {
    font-size: 0.875rem;
    line-height: 1.6;
    font-weight: 400;
    color: #64748b;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* Infinite Cards Container */
.infinite-cards-container {
    width: 100%;
    margin-top: 2rem;
}

/* Section Divider */
.section-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

/* Loading/Error States */
.testimonials-loading,
.testimonials-error {
    padding: 2rem;
    text-align: center;
    color: #cccccc;
    font-family: 'Nunito', sans-serif;
}

/* Responsive Design */
@media (min-width: 768px) {
    .testimonial-card {
        width: 450px;
        min-height: 200px;
        background-color: #ffffff;
        /* Default background for desktop */
        color: #0f172a;
        /* Default text color for desktop */
        border-color: #e2e8f0;
        /* Default border color for desktop */
    }
}

@media (max-width: 768px) {
    .testimonials-title {
        font-size: 2rem;
    }

    .testimonials-subtitle {
        font-size: 1rem;
    }

    .testimonials-section {
        padding: 2rem 0;
    }

    .testimonials-container {
        padding: 0 1rem;
    }

    .testimonial-card {
        width: 300px;
    }
}

/* ============================================ */
/* REVIEWS SECTION STYLES */
/* ============================================ */

/* Reviews Section */
.reviews-section {
    background-color: #ffffff;
    color: #0f172a;
    padding: 4rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.reviews-container {
    max-width: 1200px;
    width: 100%;
    padding: 1rem 2rem;
    text-align: center;
}

.reviews-title {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #0f172a;
}

.reviews-subtitle {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Review Card */
.review-card {
    position: relative;
    width: 350px;
    max-width: 100%;
    flex-shrink: 0;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 1.5rem 2rem;
    color: #0f172a;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #cbd5e1;
}

.review-card blockquote {
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Review Header (Stars + Type Badge) */
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

/* Star Rating */
.review-stars {
    display: flex;
    gap: 0.15rem;
    font-size: 1rem;
}

.star {
    display: inline-block;
}

.star.filled {
    color: #fbbf24 !important;
}

.star.empty {
    color: #d1d5db !important;
}

/* Type Badge */
.review-type-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.review-type-group {
    background-color: #dbeafe;
    color: #1e40af;
}

.review-type-trek {
    background-color: #d1fae5;
    color: #065f46;
}

/* Entity Info (Group/Trek Name and Description) */
.review-entity-info {
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
    background-color: #f8fafc;
    border-left: 3px solid #cbd5e1;
    border-radius: 0.25rem;
}

.review-entity-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.review-entity-description {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
}

/* Review Title */
.review-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Review Text */
.review-text {
    position: relative;
    z-index: 20;
    font-size: 0.875rem;
    line-height: 1.6;
    font-weight: 400;
    color: #475569;
    margin-bottom: 0;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-style: italic;
    flex: 1;
}

/* Review Author Section */
.review-author {
    position: relative;
    z-index: 20;
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.review-profile-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.75rem;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
}

.review-author-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.review-author-name {
    font-size: 0.875rem;
    line-height: 1.6;
    font-weight: 600;
    color: #0f172a;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* Loading/Error States for Reviews */
.reviews-loading,
.reviews-error {
    padding: 2rem;
    text-align: center;
    color: #cccccc;
    font-family: 'Nunito', sans-serif;
}

/* Responsive Design for Reviews */
@media (min-width: 768px) {
    .review-card {
        width: 450px;
        min-height: 220px;
    }
}

@media (max-width: 768px) {
    .reviews-title {
        font-size: 2rem;
    }

    .reviews-subtitle {
        font-size: 1rem;
    }

    .reviews-section {
        padding: 2rem 0;
    }

    .reviews-container {
        padding: 0 1rem;
    }

    .review-card {
        width: 300px;
    }
}