/* ==========================================================================
   Premium Testimonial Marquee Custom Styling
   ========================================================================== */
.testimonial-marquee-wrapper {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    padding: 30px 0;
    /* Create a fading edge on left and right sides for a premium floating card look */
    mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
}

.testimonial-marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-slide 30s linear infinite;
}

.testimonial-marquee-track:hover {
    animation-play-state: paused; /* Automatically pause scrolling on hover for reading ease */
}

@keyframes marquee-slide {
    0 {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Slide exactly half the track width (the duplicated cards block) */
    }
}

.testimonial-card {
    flex: 0 0 450px;
    width: 450px;
    margin-right: 35px;
    background: rgba(255, 255, 255, 0.03) !important; /* Premium semi-transparent white */
    border: 1px solid rgba(255, 255, 255, 0.08) !important; /* Translucent thin border */
    border-radius: 8px !important;
    padding: 32px !important;
    white-space: normal !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 111, 0, 0.4) !important; /* Safety Orange glow border on hover */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3) !important;
}

/* Quote Graphic decoration inside cards */
.testimonial-quote-icon {
    position: absolute;
    top: 5px;
    right: 25px;
    font-size: 80px;
    line-height: 1;
    color: rgba(255, 111, 0, 0.08); /* Safety Orange subtle watermark */
    font-family: Georgia, serif;
    font-weight: bold;
    user-select: none;
    pointer-events: none;
}

.testimonial-text {
    font-family: 'Inter', sans-serif !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: #cbd5e1 !important; /* Metallic silver/gray text for perfect contrast in navy background */
    margin-bottom: 24px !important;
    font-style: italic;
}

.testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 16px;
}

.testimonial-stars {
    color: #ff6f00 !important; /* Safety Orange stars */
    font-size: 15px !important;
    letter-spacing: 2px;
}

.testimonial-author-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: right;
}

.testimonial-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 111, 0, 0.4);
}

.testimonial-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.testimonial-author {
    text-align: right;
}

.testimonial-author .author-name {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 2px 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.testimonial-author .author-company {
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    color: #94a3b8 !important; /* Light slate blue info */
    font-weight: 500;
}
