/* Layout */
.container { max-width: 1200px; margin: auto; padding: 16px; }
.page-title { font-size: 1.8rem; margin-bottom: 12px; }

/* Search */
.announcement-search input {
    width: 100%; padding: 12px 16px;
    border-radius: 999px; border: 1px solid #ddd;
}

/* Ticker */
.announcement-ticker { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
.ticker-body { max-height: 260px; overflow-y: auto; }
.ticker-table { width: 100%; border-collapse: collapse; }
.ticker-table td, th { padding: 10px; border-bottom: 1px solid #f1f5f9; }

/* Badges */
.type { font-size: 11px; padding: 4px 8px; border-radius: 999px; }
.type-event { background:#e0f2fe; }
.type-notice { background:#fef3c7; }
.type-important { background:#fee2e2; }
.type-update { background:#ecfeff; }

.new { margin-left: 6px; }
.pin { margin-right: 4px; }

/* Tabs */
.tabs { display: flex; gap: 8px; margin: 16px 0; }
.tabs button { padding: 8px 14px; border-radius: 8px; border: none; }
.tabs button.active { background: #2563eb; color: white; }
.tab-panel { border: 1px solid #e5e7eb; padding: 12px; border-radius: 12px; }

/* Modal */
.modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    display: flex; justify-content: center; align-items: center;
}
.modal {
    background: white; border-radius: 16px;
    padding: 20px; max-width: 600px; max-height: 80vh; overflow-y: auto;
}

/* Responsive */
@media (max-width: 640px) {
    .ticker-table thead { display: none; }
    .ticker-table tr { display: block; }
    .ticker-table td { display: block; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .ticker-body { scroll-behavior: auto; }
}


.marquee {
    width: 100%;
    overflow: hidden;
    background: #0f172a;
    color: #fff;
    padding: 10px 0;
    position: relative;
}

.marquee-track {
    display: inline-flex;
    gap: 60px;
    white-space: nowrap;
    animation: marquee-scroll 40s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused; /* pause on hover */
}

.marquee-track span {
    font-size: 14px;
    font-weight: 500;
}

/* Animation */
@keyframes marquee-scroll {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}
