/**
 * Elementor Scrolling Text Widget Styles
 */

.scrolling-text-container {
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    background-color: #e53e3e;
    height: 60px;
    display: flex;
    align-items: center;
    width: 100%;
}

.scrolling-text-wrapper {
    display: flex;
    align-items: center;
    height: 100%;
    animation: scroll-rtl 30s linear infinite;
    will-change: transform;
    width: max-content;
}

.scrolling-text-content {
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    flex-shrink: 0;
}

.scrolling-text-item {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-right: 80px;
    white-space: nowrap;
    flex-shrink: 0;
}

.scrolling-text-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
    font-size: 1em;
    flex-shrink: 0;
}

.scrolling-text-image {
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.scrolling-text-image img {
    max-height: 30px;
    width: auto;
    object-fit: contain;
}

.scrolling-text-text {
    display: inline-block;
    flex-shrink: 0;
}

/* Improved Right to Left Animation for seamless loop */
@keyframes scroll-rtl {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause on hover functionality */
.scrolling-text-container.pause-on-hover:hover .scrolling-text-wrapper {
    animation-play-state: paused;
}

/* Responsive Design */
@media (max-width: 768px) {
    .scrolling-text-container {
        height: 50px;
    }
    
    .scrolling-text-item {
        font-size: 16px;
        margin-right: 60px;
    }
}

@media (max-width: 480px) {
    .scrolling-text-container {
        height: 45px;
    }
    
    .scrolling-text-item {
        font-size: 14px;
        margin-right: 40px;
    }
}

/* Smooth performance optimizations */
.scrolling-text-wrapper {
    backface-visibility: hidden;
    perspective: 1000px;
    transform: translateZ(0);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .scrolling-text-wrapper {
        animation: none;
        transform: none;
    }
    
    .scrolling-text-container {
        overflow-x: auto;
        white-space: normal;
    }
    
    .scrolling-text-content {
        white-space: normal;
        flex-wrap: wrap;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .scrolling-text-container {
        border: 2px solid;
    }
    
    .scrolling-text-item {
        font-weight: bold;
    }
}

/* Print styles */
@media print {
    .scrolling-text-wrapper {
        animation: none;
        transform: none;
    }
    
    .scrolling-text-container {
        overflow: visible;
        white-space: normal;
        height: auto;
        padding: 10px;
    }
    
    .scrolling-text-content {
        white-space: normal;
        flex-wrap: wrap;
    }
    
    .scrolling-text-item {
        margin-right: 20px;
        margin-bottom: 5px;
    }
}

