/* -------------------------------------- */
/* Testimonials Section CSS Layout - Light Theme */
/* -------------------------------------- */

.testimonials-section {
    background-color: #ffffff; /* Clean white backdrop matching user screenshot */
    color: #0c0d0e;
    padding: 60px 0 50px 0; /* Compact padding to reduce excess space */
    position: relative;
    z-index: 10;
    width: 100%;
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.02);
}

.testimonials-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 5;
}

/* Centered Header Layout matching first screenshot */
.testimonials-header-split {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    margin-bottom: 30px;
}

.testimonials-header-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Light mode chip badge styling */
.testimonials-chip {
    align-self: center !important;
    background-color: rgba(234, 161, 15, 0.08) !important;
    border: 1px solid rgba(234, 161, 15, 0.25) !important;
    color: var(--color-gold-start) !important;
    margin-bottom: 12px;
}

.testimonials-chip .badge-dot {
    background-color: var(--color-gold-start) !important;
}

.testimonials-title {
    font-family: var(--font-primary);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #0c0d0e;
    text-transform: none; /* Mixed-case to match screenshot */
    letter-spacing: -0.015em;
    margin: 10px 0;
    line-height: 1.2;
}

/* Gold Heading Span */
.testimonials-title span {
    background: linear-gradient(135deg, var(--color-gold-start), var(--color-gold-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.testimonials-header-right {
    max-width: 600px;
    text-align: center;
}

.testimonials-narrative {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    color: #55585d;
    line-height: 1.5;
    margin: 0;
}

/* Horizontal Testimonial Loop scroller track */
.testimonial-track-container {
    width: 100%;
    overflow: hidden;
    display: flex;
    position: relative;
    padding: 10px 0 20px 0; /* Space for card hover shadows */
}

.testimonial-marquee-wrapper {
    display: flex;
    gap: 24px; /* Space between cards */
    width: max-content;
}

@keyframes scroller-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-scroller-left {
    animation: scroller-left 45s linear infinite;
}

/* Freeze marquee scrolling on cursor hover */
.testimonial-track-container:hover .testimonial-marquee-wrapper {
    animation-play-state: paused;
    cursor: pointer;
}

/* Testimonial Card Styling (Premium Light Theme Card) */
.testimonial-card {
    width: 380px; /* Refined desktop card width */
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.015);
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 5;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(234, 161, 15, 0.25);
    box-shadow: 0 15px 35px rgba(234, 161, 15, 0.06);
}

.testimonial-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.star-rating {
    color: var(--color-gold-start);
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.testimonial-tag {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #6b7280;
    letter-spacing: 0.08em;
    transition: var(--transition-smooth);
}

.testimonial-card:hover .testimonial-tag {
    color: var(--color-gold-start);
}

.testimonial-text {
    font-family: var(--font-primary);
    font-size: 0.82rem;
    font-style: normal; /* Straight normal text style matching screenshot */
    font-weight: 500;
    color: #374151; /* Dark grey text for light theme readability */
    line-height: 1.55;
    margin: 0;
}

.testimonial-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06); /* Subtle dark border line */
}

/* Avatar badge matching screenshot */
.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #855835; /* Premium bronze-brown circle matching screenshot */
    color: var(--color-white);
    font-weight: 800;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.profile-name {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 800;
    color: #0c0d0e;
    margin: 0;
}

.profile-title {
    font-family: var(--font-primary);
    font-size: 0.68rem;
    font-weight: 500;
    color: #6b7280;
    margin-top: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .testimonial-card {
        width: 320px;
        padding: 20px;
    }

    .testimonials-title {
        font-size: 1.6rem;
    }
}

/* Video Testimonials Responsive Layout */
.video-testimonials-container {
    max-width: 1280px;
    margin: 50px auto 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 5;
}

.video-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.video-testimonial-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 9/16;
    height: auto;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.video-testimonial-card:hover .image-play-btn {
    transform: translate(-50%, -50%) scale(1.15) !important;
    background-color: var(--color-gold-start) !important;
}

@media (max-width: 1024px) {
    .video-testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .video-testimonials-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding-bottom: 10px;
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    .video-testimonials-grid::-webkit-scrollbar {
        display: none; /* Chrome, Safari and Opera */
    }
    .video-testimonial-card {
        flex: 0 0 220px; /* Fixed width for slider items */
        scroll-snap-align: start;
    }
}

@media (max-width: 480px) {
    .video-testimonial-card {
        flex: 0 0 200px;
    }
}
