

.impulse-marquee { position: relative; width: 100%; }

.impulse-marquee-row {
    position: relative;
    overflow: hidden;
}
.impulse-marquee-row + .impulse-marquee-row { margin-top: var(--mq-row-gap, 14px); }

.impulse-marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
}
@keyframes impulse-mq-left  { from { transform: translateX(0); }    to { transform: translateX(-50%); } }
@keyframes impulse-mq-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.impulse-marquee[data-pause="1"] .impulse-marquee-row:hover .impulse-marquee-track,
.impulse-marquee[data-pause="1"] .impulse-marquee-row:focus-within .impulse-marquee-track {
    animation-play-state: paused !important;
}

.impulse-marquee-row.mq-fade {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--mq-fade, 12%), #000 calc(100% - var(--mq-fade, 12%)), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 var(--mq-fade, 12%), #000 calc(100% - var(--mq-fade, 12%)), transparent 100%);
}

@media (prefers-reduced-motion: reduce) {
    .impulse-marquee-track { animation: none !important; }
    .impulse-marquee-row { overflow-x: auto; }
    .impulse-marquee-row.mq-fade { -webkit-mask-image: none; mask-image: none; }
}

.impulse-marquee.mq-frosted .impulse-marquee-card {
    background: var(--mq-card-bg, rgba(255, 255, 255, 0.10));
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.14);
}

.impulse-marquee-card {
    position: relative;
    flex: 0 0 var(--mq-card-w, 196px);
    margin-inline-end: var(--mq-gap, 14px);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding: var(--mq-pad-v, 14px) var(--mq-pad-h, 16px);
    min-height: var(--mq-card-h, 0);
    border: 1px solid var(--mq-border, rgba(127, 127, 127, 0.22));
    border-radius: var(--mq-radius, 12px);
    background: var(--mq-card-bg, rgba(127, 127, 127, 0.08));
    color: var(--mq-text, inherit);
    text-decoration: none;
    overflow: hidden;
    transition: border-color 0.25s ease-in-out, transform 0.25s ease-in-out;
}
a.impulse-marquee-card:hover {
    border-color: var(--mq-border, rgba(127, 127, 127, 0.5));
    transform: translateY(-2px);
}

.impulse-marquee-front {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    transition: opacity 0.25s ease-in-out;
}
.impulse-marquee-back {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: var(--mq-pad-v, 14px) var(--mq-pad-h, 16px);
    font-size: var(--mq-sub-size, 12px);
    line-height: 1.35;
    color: inherit;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease-in-out;
}
.impulse-marquee[data-reveal="1"] .impulse-marquee-card:hover .impulse-marquee-front { opacity: 0; }
.impulse-marquee[data-reveal="1"] .impulse-marquee-card:hover .impulse-marquee-back { opacity: 1; }
.impulse-marquee-ico {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--mq-icon-color, var(--mq-text, inherit));
}
.impulse-marquee-ico svg { display: block; }
.impulse-marquee-tt { display: flex; flex-direction: column; min-width: 0; }
.impulse-marquee-title {
    font-weight: 500;
    font-size: var(--mq-title-size, 15px);
    line-height: 1.2;
    color: inherit;
}
.impulse-marquee-sub {
    font-size: var(--mq-sub-size, 12px);
    line-height: 1.3;
    margin-top: 2px;
    opacity: 0.7;
    color: inherit;
}

.impulse-marquee--image .impulse-marquee-card {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 0;
}
.impulse-marquee-img {
    display: block;
    width: 100%;
    height: var(--mq-card-h, 120px);
    object-fit: cover;
}
.impulse-marquee-img-ph {
    background: repeating-linear-gradient(45deg, rgba(127,127,127,0.08), rgba(127,127,127,0.08) 10px, rgba(127,127,127,0.14) 10px, rgba(127,127,127,0.14) 20px);
}
.impulse-marquee-cap {
    padding: 8px var(--mq-pad-h, 14px);
    font-size: var(--mq-sub-size, 12px);
    line-height: 1.3;
    color: inherit;
    text-align: center;
}
.impulse-marquee--image.mq-img-logo .impulse-marquee-card {
    background: transparent;
    border: none;
}
.impulse-marquee--image.mq-img-logo .impulse-marquee-img {
    height: var(--mq-card-h, 64px);
    object-fit: contain;
    padding: var(--mq-pad-v, 10px) var(--mq-pad-h, 14px);
    filter: grayscale(1);
    opacity: 0.7;
    transition: filter 0.25s ease-in-out, opacity 0.25s ease-in-out;
}
.impulse-marquee--image.mq-img-logo .impulse-marquee-card:hover .impulse-marquee-img {
    filter: grayscale(0);
    opacity: 1;
}

.impulse-marquee--testimonial .impulse-marquee-card {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    text-align: left;
}
.impulse-marquee-stars { display: inline-flex; gap: 2px; line-height: 1; }
.impulse-marquee-star { color: rgba(127, 127, 127, 0.3); display: inline-flex; }
.impulse-marquee-star svg { display: block; fill: currentColor; }
.impulse-marquee-star.on { color: var(--mq-icon-color, #fbbc04); }
.impulse-marquee-quote {
    font-size: var(--mq-title-size, 15px);
    line-height: 1.45;
    color: inherit;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.impulse-marquee-person {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}
.impulse-marquee-avatar {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.impulse-marquee-person-tt { display: flex; flex-direction: column; min-width: 0; }
.impulse-marquee-name { font-weight: 600; font-size: var(--mq-sub-size, 13px); line-height: 1.2; color: inherit; }
.impulse-marquee-role { font-size: calc(var(--mq-sub-size, 12px) - 1px); opacity: 0.65; line-height: 1.2; margin-top: 1px; color: inherit; }

.impulse-marquee--image.mq-cap-none .impulse-marquee-cap { display: none; }
.impulse-marquee--image.mq-cap-overlay .impulse-marquee-cap,
.impulse-marquee--image.mq-cap-hover .impulse-marquee-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 22px 12px 9px;
    color: #fff;
    text-align: left;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent);
}
.impulse-marquee--image.mq-cap-hover .impulse-marquee-cap {
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}
.impulse-marquee--image.mq-cap-hover .impulse-marquee-card:hover .impulse-marquee-cap { opacity: 1; }
