/* Your custom CSS here */

/* ==========================================================================
   Announcement Ticker
   ========================================================================== */
.ticker-wrapper {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    background-color: #2563eb;
    color: white;
    padding: 0.75rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.ticker-track {
    display: inline-flex;
    cursor: default;
}
.ticker-track:hover {
    animation-play-state: paused;
}
.tracker-content {
    display: inline-flex;
    align-items: center;
}
.ticker-item {
    display: inline-flex;
    align-items: center;
    /* Increase margin heavily so if there's only one item, the clone is far away */
    margin-right: 20vw; 
    font-size: 0.95rem;
    font-weight: 500;
}
.ticker-item a {
    color: white;
    text-decoration: none;
}
.ticker-item a:hover {
    text-decoration: underline;
}
.ticker-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.75rem;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}
.ticker-badge::before {
    content: '';
    display: inline-block;
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 9999px;
    margin-right: 0.375rem;
}
.badge-success::before { background-color: #6ee7b7; }
.badge-warning::before { background-color: #fbbf24; }
.badge-info::before    { background-color: #93c5fd; }

/* -----------------------------
   Animations (LTR Default)
   ----------------------------- */
@keyframes scrollTickerLtr {
    /* Start completely off-screen to the right */
    0%   { transform: translateX(100vw); }
    /* End completely off-screen to the left */
    100% { transform: translateX(-100%); }
}

/* Apply LTR animation by default */
.ticker-track {
    animation: scrollTickerLtr 30s linear infinite;
}

/* -----------------------------
   Animations (RTL Support)
   ----------------------------- */
@keyframes scrollTickerRtl {
    /* Start completely off-screen to the left */
    0%   { transform: translateX(-100vw); }
    /* End completely off-screen to the right */
    100% { transform: translateX(100%); }
}

/* Override default animation when HTML has dir="rtl" */
html[dir="rtl"] .ticker-track {
    animation: scrollTickerRtl 30s linear infinite;
}

html[dir="rtl"] .ticker-item {
    margin-right: 0;
    margin-left: 25vw;
}

html[dir="rtl"] .ticker-badge {
    margin-right: 0;
    margin-left: 0.75rem;
}

html[dir="rtl"] .ticker-badge::before {
    margin-right: 0;
    margin-left: 0.375rem;
}
