/* 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: #0d1b2a;
    color: #fff;
    padding: 10px 0;
    position:relative;
}

.marquee-content {
    display: flex;
    gap: 80px;
    width: max-content; */
    /* animation: scroll-marquee 18s linear infinite; */
    /* animation: marquee-scroll 10s linear infinite;
}

.marquee-content span {
    white-space: nowrap;
    font-weight: 500;
}

@keyframes scroll-marquee {
    from {
        transform: translateX(-100);
    }
    to {
        transform: translateX(-100%);
    }
}

.marquee:hover .marquee-content {
    animation-play-state: paused;
} */




/* Animation */
/* @keyframes marquee-scroll {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
} */




/* Mobile first */
.announcement-con {
    padding: 2rem;
}
.ticker-table td{
    padding: 2px 5px;
}

/* Tablet and above */
@media (min-width: 769px) {
    .announcement-con {
        padding: 10rem;
    }
    .ticker-table td{
        padding: 14px 16px;
    }
}


/* ── Marquee / Scrolling Ticker ── */
.marquee {
    width: 100%;
    overflow: hidden;
    background: #0d1b2a;
    color: #fff;
    padding: 10px 0;
    will-change: transform;
}

.marquee-content {
    display: flex;
    /* Force each copy to be AT LEAST full viewport width */
    width: max-content;
    min-width: 200%;
    animation: marquee-scroll 20s linear infinite;
}

.marquee-content span {
    /* Each span takes at least half the container = one full viewport */
    flex: 0 0 50%;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    padding-right: 80px;
}

.marquee:hover .marquee-content,
.marquee:focus-within .marquee-content {
    animation-play-state: paused;
}

/* -50% of min-width:200% = exactly 100vw = one copy */
@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-content {
        animation: none;
    }
}

