/* HITEC University News Marquee Component */
/* Modern, responsive news ticker with smooth scrolling and elegant design */

.news-marquee-wrapper {
    background: #002155;
    padding: 0;
    margin-bottom: -1px;
}

.news-marquee {
    background: #002155;
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    position: relative;
    overflow: hidden;
    height: 50px;
    border-radius: 8px;
    margin: 0;
/*    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);*/
}

.news-marquee::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
/*    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.1) 100%);*/
    pointer-events: none;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.news-marquee-content {
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
    z-index: 2;
}

.news-label {
    background: rgba(255, 255, 255, 0.95);
    color: #1e3c72;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px 0 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-right: 3px solid #1e3c72;
    min-width: 120px;
    justify-content: center;
    z-index: 5;
}

.news-label i {
    color: #e74c3c;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.news-scroll-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    white-space: nowrap;
}

.news-scroll {
    display: inline-flex;
    height: 100%;
    align-items: center;
    white-space: nowrap;
    position: relative;
    will-change: transform;
}

/* Updated animation for seamless scrolling */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50%)); }
}

.news-scroll.animate {
    animation: scroll linear infinite;
    animation-duration: var(--scroll-duration, 25s);
}

/* Container for news items to enable proper looping */
.news-menu-wrapper {
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.news-item {
    color: white;
    text-decoration: none;
    padding: 0 30px;
    font-weight: 500;
    font-size: 15px;
    white-space: nowrap;
    transition: all 0.3s ease;
    position: relative;
    line-height: 1.2;
    display: inline-block;
}

.news-item::before {
    content: '•';
    margin-right: 15px;
    color: #ffd700;
    font-size: 16px;
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.news-item:hover {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    transform: scale(1.05);
}

.news-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: width 0.3s ease;
}

.news-item:hover::after {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-marquee {
        height: 45px;
        margin: 0;
    }
    
    .news-label {
        font-size: 12px;
        padding: 6px 12px;
        min-width: 100px;
    }
    
    .news-item {
        font-size: 14px;
        padding: 0 20px;
    }
}

@media (max-width: 576px) {
    .news-marquee {
        height: 40px;
    }
    
    .news-label {
        font-size: 11px;
        padding: 5px 10px;
        min-width: 80px;
    }
    
    .news-item {
        font-size: 13px;
        padding: 0 15px;
    }
}

/* Pause animation on hover */
.news-marquee:hover .news-scroll,
.news-scroll.paused {
    animation-play-state: paused;
}

/* Enhanced visual effects */
.news-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
/*    background: linear-gradient(to right, transparent, rgba(30, 60, 114, 0.8));
*/    pointer-events: none;
    z-index: 3;
}

/* Integration with existing header styles */
.top-menu .news-marquee {
    margin: 0;
    border-radius: 0 0 8px 8px;
    height: 45px;
}

.top-menu .news-marquee .news-label {
    font-size: 13px;
    padding: 6px 14px;
    min-width: 110px;
}

.top-menu .news-marquee .news-item {
    font-size: 14px;
}
