/* ============================================
   INDEX.CSS — home page only
   (ticker/item styles are injected by live-ticker.js —
    do NOT add .live-ticker animation rules here, they will
    double-run with the JS styles and break the loop)
   ============================================ */

/* ============================================
   LATEST NEWS CTA
   ============================================ */
.news-cta {
    padding: var(--space-8) 0 var(--space-12);
    text-align: center;
}

.btn-latest {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    text-transform: lowercase;
    padding: var(--space-3) var(--space-8);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow);
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-latest:hover,
.btn-latest:focus {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-latest:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

/* ============================================
   LIVE NOTIFICATION BAR
   ============================================ */
.live-bar {
    background: linear-gradient(90deg, #1e3a5f 0%, #2563eb 100%);
    color: #fff;
    padding: var(--space-3) 0;
    overflow: hidden;
    position: relative;
}

.live-flex {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    position: relative;
    overflow: hidden; /* hides the sliding ticker at the edges */
}

.live-badge-wrapper {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    padding-right: var(--space-4);
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: rgb(21, 11, 71);
    padding: var(--space-1) var(--space-4);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    flex-shrink: 0;
    position: relative;
    z-index: 3;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* ============================================
   EDGE FADE for the ticker
   ============================================ */
.live-bar::before,
.live-bar::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}

.live-bar::before {
    left: 0;
    background: linear-gradient(90deg, #1e3a5f 0%, transparent 100%);
}

.live-bar::after {
    right: 0;
    background: linear-gradient(270deg, #2563eb 0%, transparent 100%);
}

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 480px) {
    .live-badge {
        font-size: 0.65rem;
        padding: var(--space-1) var(--space-3);
    }

    .live-flex {
        gap: var(--space-2);
    }
}