/* Optional: reinforce the accent color if other theme CSS tries to override it */
.spotlight .title .accent { color: var(--accent) !important; }

/* ===== Client Spotlight ===== */
.client-spotlight-component {
    --accent:#12c8ff;
    --bg:#0b0b0d;
    --muted:#9ea4aa;

    /* ticker colors now configurable */
    --ticker-color:#8be2ff;
    --ticker-alt:#ffffff;

    /* duration variable used by JS for speed calc */
    --ticker-duration: var(--ticker-speed, 26s);
}
.client-spotlight-component .spotlight {
    background:var(--bg);
    color:#fff;
    position:relative;
    overflow:hidden;
    padding:clamp(2.5rem,4vw,4rem) 0;
}
.client-spotlight-component .white-top {
    position:absolute; top:0; left:0; width:100%; background:#fff; height:150px; z-index:0;
}

/* Dots (PNG) */
.client-spotlight-component .dots { position:absolute; inset:0; pointer-events:none; z-index:1; }
.client-spotlight-component .dots img {
    position:absolute;
    width:min(40vw,720px);
    height:auto;
}
/* Position roughly matching your original layout */
.client-spotlight-component .dots .dots-left  { left: -435px; top:36%; transform:translateY(-50%); }
.client-spotlight-component .dots .dots-right { transform: scaleX(-1);right:max(-8vw,-120px); bottom:10%; }

.client-spotlight-component .spotlight .section-inner{ position:relative; z-index:2; }

.client-spotlight-component .media-stack{ position:relative; min-height:360px; border-radius:.75rem; overflow:visible; }
.client-spotlight-component .media-main {
    width:80%;
    aspect-ratio:3/4;
    object-fit:cover;
    border-radius:.75rem;
    position:relative;
    z-index:1;
    box-shadow:0 12px 30px rgba(0,0,0,.6);
}
.client-spotlight-component .media-hash {
    position:absolute;
    z-index:2;
    transform:translateY(-50%);
    width:163px;
    height:253px;
    background:repeating-linear-gradient(to bottom,#fff,#fff 2px,transparent 2px,transparent 6px);
    opacity:.95;
    pointer-events:none;
    right:89px;
    top:48%;
}
.client-spotlight-component .media-circle {
    position:absolute;
    z-index:3;
    width:30%;
    aspect-ratio:1/1.35;
    right:6%;
    top:20%;
    border-radius:47%;
    overflow:hidden;
    box-shadow:0 10px 24px rgba(0,0,0,.55), 0 0 0 8px rgba(255,255,255,.06);
}
.client-spotlight-component .media-circle img{ width:100%; height:100%; object-fit:cover; }

.client-spotlight-component .eyebrow{ letter-spacing:.18em; text-transform:uppercase; color:var(--muted); font-weight:600; font-size:.85rem; }
.client-spotlight-component .title{ color:#fff; font-weight:100; letter-spacing:.14em; text-transform:uppercase; text-shadow:0 0 18px rgba(18,200,255,.18); }
.client-spotlight-component .title .accent{ color:var(--accent); word-spacing:.2em; }
.client-spotlight-component .copy{ color:#d6d9dd; max-width:52ch; }
.client-spotlight-component .btn-accent {
    background: #121318;
    border: 1px solid white;
    color: #fff;
    padding: .3rem 1.5rem;
    border-radius: 999px;
}
.client-spotlight-component .btn-accent:hover{
    border-color:var(--accent);
    color:#fff;
    box-shadow:0 0 0 .15rem rgba(18,200,255,.25);
}

/* ===== Ticker (JS-driven seamless, infinite) ===== */
.client-spotlight-component .ticker {
    background:#0f1116;
    padding: .5rem 0;
    overflow:hidden;
    position:relative;
}

.client-spotlight-component .ticker-viewport {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.client-spotlight-component .ticker-track {
    display: flex;
    align-items: center;
    will-change: transform;
    transform: translate3d(0,0,0);
}

.client-spotlight-component .tick-group {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    padding-right: 2rem;  /* breathing room between groups */
    white-space: nowrap;
}

.client-spotlight-component .tag {
    display: inline-block;
    padding: .35rem .75rem;
    border: none;
    font-size: .95rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing:.12em;
    color: var(--ticker-color);
    white-space: nowrap;
    font-family: 'Avenir';
}
.client-spotlight-component .tag:nth-child(even){ color:var(--ticker-alt); }

/* ===== Mobile layout (stack + dots-right between content and ticker) ===== */
@media (max-width: 767px) {
    .client-spotlight-component .spotlight {
        display: flex;
        flex-direction: column;
        padding: 2rem 0;
    }

    .client-spotlight-component .dots {
        position: static;
        inset: auto;
        pointer-events: none;
        z-index: auto;
        order: 3;
        margin-top: 1rem;
    }

    .client-spotlight-component .dots .dots-left { display: none !important; }

    .client-spotlight-component .dots .dots-right {
        position: relative;
        display: block;
        right: auto;
        bottom: auto;
        transform: none;
        margin: 0 auto;
        width: min(80vw, 420px);
        height: auto;
    }

    .client-spotlight-component .media-stack { min-height: 0; }
    .client-spotlight-component .media-main { width: 100%; }
    .client-spotlight-component .media-circle {
        position: absolute;
        width: 38%;
        right: 4%;
        top: 14%;
    }

    .client-spotlight-component .eyebrow { font-size: .8rem; }
    .client-spotlight-component .title { letter-spacing: .1em; }
    .client-spotlight-component .copy { max-width: 100%; }

    .client-spotlight-component .btn-accent { margin-bottom: .75rem; }
}

/* ===== Spotlight Button Arrow ===== */
.client-spotlight-component .btn-accent {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color .3s ease;
}

.client-spotlight-component .btn-accent::after {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask: url('../../assets/icons/arrow-up-right.svg') no-repeat center;
    -webkit-mask-size: contain;
    mask: url('../../assets/icons/arrow-up-right.svg') no-repeat center;
    mask-size: contain;
    transition: transform .3s ease;
    transform: translateX(0);
}

.client-spotlight-component .btn-accent:hover::after {
    transform: translateX(6px);
}
