.running-cards-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* Fade overlays on left and right edges */
.running-cards-slider::before,
.running-cards-slider::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 5;
    pointer-events: none;
}

.running-cards-slider::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.running-cards-slider::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.running-cards-track {
    display: flex;
    width: max-content;
    animation: running-cards-scroll var(--rc-speed, 25s) linear infinite;
    animation-direction: var(--rc-direction, normal);
}

.running-cards-slider:hover .running-cards-track {
    animation-play-state: paused;
}

.running-card {
    flex-shrink: 0;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    /* Desktop: show ~3 cards. Card width = ~31% of container minus gap */
    min-width: calc(33.333% - 24px);
    width: calc(33.333% - 24px);
    margin: 0 12px;
}

.running-card:hover {
    transform: translateY(-8px);
}

.running-card-image-wrapper {
    position: relative;
    overflow: hidden;
    line-height: 0;
    height: 200px;
}

.running-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.running-card-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    z-index: 2;
    white-space: nowrap;
    background: #7c3aed;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.running-card-content {
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.running-card-subtitle {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #7c3aed;
    margin: 0 0 8px 0;
}

.running-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.running-card-subtext {
    font-size: 15px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0 0 12px 0;
}

.running-card-date {
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
}

@keyframes running-cards-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .running-card {
        min-width: calc(50% - 20px);
        width: calc(50% - 20px);
    }
}

/* Mobile */
@media (max-width: 767px) {
    .running-card {
        min-width: calc(85% - 16px);
        width: calc(85% - 16px);
    }

    .running-cards-slider::before,
    .running-cards-slider::after {
        width: 40px;
    }
}
