/* .client-logo-marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: visible; /* To allow the popup to float outside 
}
.client-logo-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}
.client-logo-track {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    will-change: transform;
}
.client-logo-item {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: default;
    transition: opacity 0.3s ease;
}
.client-logo-item[data-has-testimonial="true"] {
    cursor: pointer;
}
.client-logo-item img.client-logo-image {
    display: block;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}


.client-logo-track.is-paused .client-logo-item:not(.is-hovered) {
    opacity: 0.5;
}

.client-testimonial-panel-wrapper {
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none; 
    width: 100%;
    max-width: 800px;
}
.client-testimonial-panel-wrapper.is-visible {
    opacity: 1;
    visibility: visible;
} */


/* =========================================================
   CLIENT LOGO MARQUEE
   ========================================================= */

.client-logo-marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: visible;
}

.client-logo-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.client-logo-track {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    will-change: transform;
}

.client-logo-item {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: default;
    transition: opacity 0.3s ease;
}

.client-logo-item[data-has-testimonial="true"] {
    cursor: pointer;
}

.client-logo-item img.client-logo-image {
    display: block;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}


/* =========================================================
   PAUSE / HOVER EFFECT
   ========================================================= */

.client-logo-track.is-paused .client-logo-item:not(.is-hovered) {
    opacity: 0.5;
}


/* =========================================================
   TESTIMONIAL POPUP
   ONLY POSITIONING / VISIBILITY
   ========================================================= */

.client-testimonial-panel-wrapper {
    position: absolute;

    left: 0;

    z-index: 9999;

    width: 500px;
    max-width: calc(100vw - 32px);

    transform: translateX(-50%);

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;

    /*
     * Shadow follows the Elementor card and arrow.
     * The actual card design remains inside Elementor.
     */
    filter: drop-shadow(
        0 10px 25px rgba(0, 0, 0, 0.10)
    );
}


/* =========================================================
   VISIBLE STATE
   ========================================================= */

.client-testimonial-panel-wrapper.is-visible {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   TOP ARROW
   ========================================================= */

.client-testimonial-panel-wrapper::before {
    content: '';

    position: absolute;

    top: -10px;

    left: var(--arrow-pos, 50%);

    transform: translateX(-50%);

    border-width: 0 10px 10px 10px;
    border-style: solid;

    border-color:
        transparent
        transparent
        #ffffff
        transparent;

    z-index: 10000;
}


/* =========================================================
   ARROW WHEN POPUP IS ABOVE LOGO
   ========================================================= */

.client-testimonial-panel-wrapper.is-flipped-up::before {
    top: auto;

    bottom: -10px;

    border-width: 10px 10px 0 10px;

    border-color:
        #ffffff
        transparent
        transparent
        transparent;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

    .client-testimonial-panel-wrapper {
        width: 350px;
        max-width: calc(100vw - 28px);
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .client-testimonial-panel-wrapper {
        width: 310px;
        max-width: calc(100vw - 20px);
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .client-testimonial-panel-wrapper {
        width: 285px;
        max-width: calc(100vw - 16px);
    }

}


/* Override Elementor's circular avatar styling for the popup logo */
.client-testimonial-panel-wrapper .client-testimonial-image img {
    border: none !important;
    border-radius: 0 !important;
    width: 100% !important; 
    max-width: 180px !important; /* Increased from 140px to 180px so logos like APG are larger and more legible */
    height: auto !important;
    max-height: 90px !important; /* Increased slightly to match the wider width */
    object-fit: contain !important;
    margin: 0 auto !important; /* Centers the image */
}



/* =========================================================
   UTILITY: DISABLE MARQUEE CLONING ON SPECIFIC SECTIONS
   ========================================================= */
.no-marquee-clone.is-mobile-marquee {
    animation: none !important; /* Stop the infinite sliding animation */
    /* Ensure it remains horizontally scrollable */
    overflow-x: auto !important; 
    -webkit-overflow-scrolling: touch;
}

/* Hide the duplicates created by JavaScript (anything after the first child) */
.no-marquee-clone > *:nth-child(n+2) {
    display: none !important;
}