/* Stats Marquee Section */
.stats-marquee {
    background-color: var(--dark-shades); /* Dark background for contrast with hero */
    color: var(--light-shades);
    padding: var(--space-lg) 0;
    overflow: hidden;
    position: relative;
}

.stats-marquee__container {
    width: 100%;
    max-width: 100%; /* Ensure it takes full width for marquee effect */
    margin: 0 auto;
}

.stats-marquee__track {
    display: flex;
    width: fit-content; /* Allow content to determine width */
    animation: marquee-scroll 30s linear infinite;
    will-change: transform; /* Optimize animation */
}

.stats-marquee__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 280px; /* Min width for each item */
    padding: var(--space-md) var(--space-lg);
    text-align: center;
    margin-right: var(--space-xl); /* Space between items */
    white-space: nowrap; /* Prevent text wrapping within an item if not desired */
}

.stats-marquee__number {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--main-brand); /* Orange accent for numbers */
    display: block;
    margin-bottom: var(--space-xs);
}

.stats-marquee__label {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.stats-marquee__highlight {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    color: var(--white);
    display: block;
    margin-bottom: var(--space-xs);
}

.stats-marquee__attribution {
    text-align: center;
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.6);
    margin-top: var(--space-lg);
}

.stats-marquee__attribution a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
}

.stats-marquee__attribution a:hover {
    color: var(--main-brand);
}

/* Pause animation on hover */
.stats-marquee__track:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%); /* Scroll by half the width (since items are duplicated) */
    }
}

/* Responsive adjustments if needed */
@media (max-width: 768px) {
    .stats-marquee__item {
        min-width: 220px;
        padding: var(--space-sm) var(--space-md);
    }
    .stats-marquee__number {
        font-size: var(--font-size-2xl);
    }
    .stats-marquee__highlight {
        font-size: var(--font-size-base);
    }
    .stats-marquee__label {
        font-size: var(--font-size-xs);
    }
    .stats-marquee__track {
        animation-duration: 25s; /* Slightly faster on smaller screens */
    }
}
