/* BREAKING NEWS BANNER – WNEWS */

/* Outer container */
.breaking-news-banner {
    position: relative;
    z-index: 9999;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    background: #d0021b; /* main red strip behind label/title/right */
    color: #fff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    border-bottom: 2px solid #b00016;
}

/* Sticky variant for major breaking */
.breaking-news-banner.sticky-breaking {
    position: sticky;
    top: 0;
}

/* Keep above nav/header */
body.has-breaking-news .breaking-news-banner,
body.has-major-breaking-news .breaking-news-banner {
    z-index: 9999;
}

/* Left label: red on red (slightly darker) */
.breaking-news-banner .breaking-left {
    flex: 0 0 auto;
    padding: 4px 10px;
    background: #b00016;
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

/* Center title: white background, red text */
.breaking-news-banner .breaking-center {
    flex: 1 1 auto;
    background: #ffffff;
    color: #d0021b;
    padding: 4px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.breaking-news-banner .breaking-center a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 100%;
}

.breaking-news-banner .breaking-center a:hover {
    text-decoration: underline;
}

/* Right updated time: white background with red text */
.breaking-news-banner .breaking-right {
    flex: 0 0 auto;
    background: #ffffff;
    color: #d0021b;
    padding: 4px 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    font-weight: 500;
    border-left: 2px solid #d0021b;
}

.breaking-news-banner .bn-clock {
    font-size: 14px;
}

/* Close button */
.breaking-news-banner .close-button {
    margin-left: 6px;
    flex: 0 0 auto;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    padding: 0 4px;
    display: flex;
    align-items: center;
}

.breaking-news-banner .close-button:hover,
.breaking-news-banner .close-button:focus {
    color: #ffccd2;
    outline: none;
}

/* Post-level tag styling (under headline) */
.post-breaking-news-tag {
    display: inline-flex;
    align-items: center;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.post-breaking-news-tag .breaking-label-tag {
    background-color: #d0021b;
    color: #fff;
    padding: 4px 9px;
    text-transform: uppercase;
}

.post-breaking-news-tag .updated-time {
    background-color: #fff;
    color: #d0021b;
    padding: 4px 9px;
    border-left: 2px solid #d0021b;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.post-breaking-news-tag .bn-clock {
    font-size: 13px;
}

/* Fade-out notice */
.breaking-news-fade.notice-fadeout {
    background-color: #f9f9f9;
    border-left: 4px solid #d0021b;
    padding: 8px 12px;
    margin-bottom: 1rem;
    color: #333;
    font-size: 0.9rem;
    font-style: italic;
    position: relative;
    transition: opacity 1s ease-in-out;
}

/* Mobile & tablet responsiveness */
@media (max-width: 768px) {
    .breaking-news-banner {
        flex-wrap: wrap;
        padding: 6px 8px;
        font-size: 13px;
    }

    .breaking-news-banner .breaking-left {
        margin-bottom: 4px;
    }

    .breaking-news-banner .breaking-center {
        order: 3;
        width: 100%;
        margin-top: 4px;
    }

    .breaking-news-banner .breaking-right {
        order: 2;
    }
}

@media (max-width: 480px) {
    .breaking-news-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .breaking-news-banner .breaking-left,
    .breaking-news-banner .breaking-center,
    .breaking-news-banner .breaking-right {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .breaking-news-banner .close-button {
        position: absolute;
        top: 4px;
        right: 6px;
    }
}