/* News Ticker Styles */
.marquee-box {
    width: 100%;
    max-width: 1200px;
    height: 60px;
    background: linear-gradient(90deg, #2d3748 0%, #4a5568 50%, #2d3748 100%);
    border-radius: 12px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2rem auto 1rem;
}

.marquee-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.news-header {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: white;
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 12px 0 0 12px;
    min-width: 80px;
}

.news-header .fa-bullhorn {
    margin-right: 8px;
    font-size: 14px;
}

.marquee-container {
    height: 100%;
    overflow: hidden;
    margin-left: 80px;
    position: relative;
}

.marquee-content {
    display: flex;
    align-items: center;
    height: 100%;
    animation: scroll 60s linear infinite;
    white-space: nowrap;
}

@keyframes scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    margin-right: 50px;
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0 15px;
    height: 100%;
    border-radius: 6px;
    position: relative;
}

.marquee-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateY(-1px);
}

.marquee-date {
    background: linear-gradient(135deg, #3182ce, #2c5282);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 6px;
}

.marquee-date .fa-calendar-alt {
    font-size: 10px;
}

.marquee-text {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
}

.marquee-item::after {
    content: '';
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #718096;
    border-radius: 50%;
}

.marquee-item:last-child::after {
    display: none;
}

.marquee-box:hover .marquee-content {
    animation-play-state: paused;
}

.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 30px;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(90deg, #2d3748, transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(270deg, #2d3748, transparent);
}

/* News Modal Styles */
.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.news-modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    margin: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.news-modal h3 {
    margin-bottom: 10px;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-modal p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
}

.news-modal .close-btn {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
}

.news-modal .close-btn:hover {
    background: #c53030;
}

/* Status Indicator */
.ticker-status-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .marquee-box {
        height: 50px;
        margin: 1rem 10px 0.5rem;
    }

    .news-header {
        padding: 0 15px;
        font-size: 14px;
        min-width: 70px;
    }

    .marquee-container {
        margin-left: 70px;
    }

    .marquee-text {
        font-size: 13px;
    }

    .marquee-date {
        font-size: 11px;
        padding: 3px 10px;
    }

    .ticker-status-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .marquee-box {
        height: 45px;
        margin: 1rem 5px 0.5rem;
    }

    .news-header {
        padding: 0 12px;
        font-size: 12px;
        min-width: 60px;
    }

    .marquee-container {
        margin-left: 60px;
    }

    .marquee-text {
        font-size: 12px;
    }

    .marquee-date {
        font-size: 10px;
        padding: 2px 8px;
    }

    .news-modal-content {
        margin: 10px;
        padding: 20px;
    }
}
