/* Marquee with Rotating Icons - Properly Nested */
.marquee-section {
    background-color: #f9fafb;
    /* bg-gray-50 */
    overflow: hidden;
}

.marquee {
    overflow: hidden;
    width: 100%;
}

.marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 3rem;
    white-space: nowrap;
    will-change: transform;

    /* Marquee movement */
    animation: marquee 40s linear infinite;
}

.marquee-track span {
    font-size: 7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #000000;
}

/* Rotating icon (nested element = separate transform space) */
.rotating-icon {
    display: inline-block;
    /* REQUIRED for rotation */
    width: 6rem;
    height: 6rem;
    color: #D97706 !important;
    /* Gold - override parent span color */

    /* Icon rotation */
    animation: spin 4s linear infinite;
}

.rotating-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Marquee movement animation */
@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Icon rotation animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .marquee-track span {
        font-size: 2.5rem;
    }

    .rotating-icon {
        font-size: 2rem;
    }

    .marquee-track {
        gap: 1.5rem;
    }
}