/**
 * Accreditation Scrolling Ticker
 * Smooth continuous right-to-left scrolling banner
 * Performance optimized with CSS animations only
 */

.accreditation-ticker {
    background: linear-gradient(90deg, #104D02 0%, #0a3301 100%);
    overflow: hidden;
    white-space: nowrap;
    padding: 15px 0;
    position: relative;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.accreditation-ticker::before,
.accreditation-ticker::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.accreditation-ticker::before {
    left: 0;
    background: linear-gradient(90deg, #104D02 0%, transparent 100%);
}

.accreditation-ticker::after {
    right: 0;
    background: linear-gradient(270deg, #104D02 0%, transparent 100%);
}

.ticker-wrapper {
    display: inline-block;
    animation: scroll-left 30s linear infinite;
    min-width: 200%;
    /* No padding-left, use min-width for seamless loop */
}

.ticker-content {
    display: inline-block;
    padding-right: 50px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.ticker-separator {
    display: inline-block;
    margin: 0 30px;
    color: #FA5405;
    font-size: 20px;
    vertical-align: middle;
}

/* Animation for smooth continuous scrolling */
@keyframes scroll-left {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Pause animation on hover for readability */
.accreditation-ticker:hover .ticker-wrapper {
    animation-play-state: paused;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ticker-content {
        font-size: 14px;
    }
    
    .ticker-separator {
        margin: 0 15px;
        font-size: 16px;
    }
    
    .ticker-wrapper {
        animation-duration: 25s; /* Slightly faster on mobile */
    }
}

@media (max-width: 480px) {
    .accreditation-ticker {
        padding: 12px 0;
    }
    
    .ticker-content {
        font-size: 13px;
    }
    
    .ticker-separator {
        margin: 0 10px;
    }
}

/* Performance optimization */
.ticker-wrapper {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}
