/* E-News Ticker Styles */
.e-news-ticker-container {
    position: relative;
    overflow: hidden;
}

.e-news-ticker-wrapper {
    position: relative;
    width: 100%;
    height: auto;
}

.e-news-ticker-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.e-news-ticker-item.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.e-news-ticker-text {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    word-wrap: break-word;
}

/* Responsive styles */
@media (max-width: 768px) {
    .e-news-ticker-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .e-news-ticker-text {
        font-size: 13px;
    }
}

/* Animation for smooth transitions */
.e-news-ticker-container.paused .e-news-ticker-item {
    animation-play-state: paused;
}

/* Accessibility */
.e-news-ticker-container:focus-within {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Loading state */
.e-news-ticker-container.loading {
    opacity: 0.7;
}

.e-news-ticker-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ccc;
    border-top: 2px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
