/* News Ticker Section */
.news-ticker-section {
    width: 100%;
    /* height: 80px; */
    /* border-radius: 20px; */
    max-width: 1480px;
    margin: 0 auto;
    /* filter: grayscale(100%); */
    opacity: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: #00000094;
}
.news-ticker-section:after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    /* border-radius: 20px; */
    z-index: -1;
    background-image: url('../images/news.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter:grayscale(100%);
    opacity:0.9;
}
.news-ticker-container {
    max-width: 1480px;
    width: 100%;
    height: 100%;
    /* background: rgba(0, 0, 0, 0.3); */
    backdrop-filter: blur(1px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin: 0 0px;
}

.news-ticker-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 20px;
    gap: 15px;
    position: relative;
}

.news-ticker-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e0192e;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 30px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.news-ticker-icon i {
    font-size: 35px;
}

.news-ticker-label {
    font-size: 30px;
    font-weight: 600;
}

.news-ticker-content {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.news-ticker-track {
    flex: 1;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.news-ticker-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 35px;
    bottom: 0;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    /* transform: translateY(10px); */
    display: none;
}

.news-ticker-item.active {
    opacity: 1;
    visibility: visible;
    display: flex;
    transform: translateY(0);
    z-index: 2;
}

.news-ticker-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.news-ticker-link:hover {
    color: #e0192e;
    text-decoration: underline;
}

.news-ticker-date {
    color: #e0192e;
    font-weight: 700;
    font-size: 30px;
    flex-shrink: 0;
    order: 1;
}

.news-ticker-text {
    color: white;
    font-weight: 500;
    flex: 1;
}

/* Item Counter */
.news-ticker-counter {
    display: flex;
    align-items: center;
    gap: 2px;
    color: white;
    font-size: 22px;
    font-weight: 600;
    flex-shrink: 0;
    /* background: rgba(0, 0, 0, 0.5); */
    padding: 4px 8px;
    border-radius: 12px;
    display: none;
}

.current-item {
    /* color: #e0192e; */
    /* font-weight: 700; */
}

.counter-separator {
    color: rgba(255, 255, 255, 0.7);
}

.total-items {
    color: rgba(255, 255, 255, 0.9);
}

/* Navigation Arrows */
.news-ticker-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.news-ticker-nav-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: #e0192e;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-ticker-nav-btn:hover {
    /* background: #e0192e; */
    /* color: white; */
    /* transform: scale(1.1); */
}

.news-ticker-nav-btn:active {
    transform: scale(0.95);
}

.news-ticker-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.news-ticker-nav-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #e0192e;
    transform: none;
}

/* RTL Support */
[dir="rtl"] .news-ticker-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .news-ticker-nav {
    flex-direction: row-reverse;
}

/* Responsive Design */
@media (max-width: 1520px) {
    .news-ticker-section {
        /* margin: 0 20px; */
        width: -webkit-fill-available;
    }
    
    .news-ticker-container {
        max-width: 100%;
    }
}

@media (max-width: 1200px) {
    .news-ticker-section {
        height: 70px;
    }
    
    .news-ticker-wrapper {
        padding: 0 15px;
        gap: 12px;
    }
    
    .news-ticker-icon {
        padding: 6px 10px;
        font-size: 27px;
    }
    
    .news-ticker-icon i {
        font-size: 32px;
    }
    
    .news-ticker-label {
        font-size: 27px;
    }
    
    .news-ticker-item {
        font-size: 32px;
        gap: 6px;
    }
    
    .news-ticker-date {
        font-size: 27px;
    }
    
    .news-ticker-counter {
        font-size: 27px;
        padding: 3px 6px;
    }
    
    .news-ticker-nav-btn {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }
}

@media (max-width: 991px) {
    .news-ticker-section {
        height: 65px;
    }
    
    .news-ticker-wrapper {
        padding: 0 12px;
        gap: 10px;
    }
    
    .news-ticker-icon {
        padding: 5px 8px;
        font-size: 25px;
    }
    
    .news-ticker-icon i {
        font-size: 28px;
    }
    
    .news-ticker-label {
        font-size: 25px;
    }
    
    .news-ticker-item {
        font-size: 30px;
        gap: 5px;
    }
    
    .news-ticker-date {
        font-size: 25px;
    }
    
    .news-ticker-counter {
        font-size: 25px;
        padding: 2px 5px;
    }
    
    .news-ticker-nav-btn {
        width: 65px;
        height: 65px;
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .news-ticker-section {
        height: 60px;
    }
    
    .news-ticker-wrapper {
        padding: 0 10px;
        gap: 8px;
    }
    
    .news-ticker-icon {
        padding: 4px 6px;
        font-size: 22px;
    }
    
    .news-ticker-icon i {
        font-size: 25px;
    }
    
    .news-ticker-label {
        font-size: 22px;
    }
    
    .news-ticker-item {
        font-size: 27px;
        gap: 4px;
    }
    
    .news-ticker-date {
        font-size: 22px;
    }
    
    .news-ticker-counter {
        font-size: 22px;
        padding: 2px 4px;
    }
    
    .news-ticker-nav-btn {
        width: 60px;
        height: 60px;
        font-size: 25px;
    }
}

@media (max-width: 575px) {
    .news-ticker-section {
        height: auto;
        margin: 15px 15px;
        padding: 10px 0;
    }
    
    .news-ticker-wrapper {
        padding: 0 8px;
        gap: 6px;
    }
    
    .news-ticker-icon {
        padding: 3px 5px;
        font-size: 20px;
    }
    
    .news-ticker-icon i {
        font-size: 22px;
    }
    
    .news-ticker-label {
        font-size: 20px;
    }
    
    .news-ticker-item {
        font-size: 15px;
        gap: 3px;
        position: relative;
        display: none;
    }
    
    .news-ticker-date {
        font-size: 20px;
    }
    
    .news-ticker-counter {
        font-size: 20px;
        padding: 1px 3px;
    }
    
    .news-ticker-nav-btn {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
}

/* Focus states for accessibility */
.news-ticker-link:focus,
.news-ticker-nav-btn:focus {
    outline: 2px solid #e0192e;
    outline-offset: 2px;
    border-radius: 3px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .news-ticker-item {
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .news-ticker-nav-btn {
        transition: background-color 0.3s ease, color 0.3s ease;
    }
}

