/* News Ticker Bar - Professional Design */
.news-ticker-bar {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    color: white;
    padding: 10px 0;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 998;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.news-ticker-bar.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.news-ticker-container {
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 15px;
}

.news-ticker-label {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 5px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.78rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    animation: pulse-glow 2s ease-in-out infinite;
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.4);
    letter-spacing: 0.5px;
}

.news-ticker-label i {
    font-size: 0.8rem;
    animation: rotate-icon 3s linear infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 2px 10px rgba(231, 76, 60, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 4px 20px rgba(231, 76, 60, 0.6);
        transform: scale(1.02);
    }
}

@keyframes rotate-icon {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-15deg); }
    30% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

.news-ticker-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 26px;
    mask-image: linear-gradient(to left, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to left, transparent, black 5%, black 95%, transparent);
}

.news-ticker-content {
    display: flex;
    animation: ticker-scroll 35s linear infinite;
    white-space: nowrap;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.news-ticker-content:hover {
    animation-play-state: paused;
}

.news-ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 35px;
    font-size: 0.85rem;
    gap: 10px;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.news-ticker-item::after {
    content: '|';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.2);
    font-weight: 300;
}

.news-ticker-item:first-child::after {
    display: none;
}

.news-ticker-item:hover {
    color: #f1c40f;
    text-shadow: 0 0 10px rgba(241, 196, 15, 0.3);
}

.news-ticker-item i {
    color: #f39c12;
    font-size: 0.5rem;
    animation: dot-pulse 1.5s ease-in-out infinite;
}

.news-ticker-item:nth-child(2) i {
    animation-delay: 0.3s;
}

.news-ticker-item:nth-child(3) i {
    animation-delay: 0.6s;
}

@keyframes dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

@keyframes ticker-scroll {
    0% { transform: translateY(-50%) translateX(100%); }
    100% { transform: translateY(-50%) translateX(-100%); }
}

.news-ticker-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.news-ticker-close:hover {
    background: rgba(231, 76, 60, 0.3);
    border-color: rgba(231, 76, 60, 0.5);
    color: white;
    transform: rotate(90deg);
}

.navbar.scrolled ~ .news-ticker-bar {
    top: 56px;
}

body {
    padding-top: 110px !important;
}

@media (max-width: 992px) {
    .news-ticker-bar {
        top: 60px;
        padding: 8px 0;
    }
    body {
        padding-top: 100px !important;
    }
}

@media (max-width: 768px) {
    .news-ticker-bar {
        top: 56px;
        padding: 7px 0;
    }
    .news-ticker-label {
        font-size: 0.7rem;
        padding: 4px 12px;
    }
    .news-ticker-item {
        font-size: 0.78rem;
        padding: 0 25px;
    }
    .news-ticker-content {
        animation-duration: 25s;
    }
    body {
        padding-top: 95px !important;
    }
}

@media (max-width: 480px) {
    .news-ticker-bar {
        top: 52px;
    }
    .news-ticker-label span {
        display: none;
    }
    .news-ticker-label {
        padding: 5px 10px;
        border-radius: 50%;
    }
    .news-ticker-label i {
        font-size: 0.9rem;
        animation: none;
    }
    .news-ticker-item {
        font-size: 0.72rem;
        padding: 0 20px;
    }
    body {
        padding-top: 88px !important;
    }
}