/* ==========================================================================
   Continuous Moving Public Warning Banner (Responsive)
   ========================================================================== */

:root {
    --pwb-height: 0px;
}

/* Push fixed navbar below banner */
.nav-area.fixed-top,
.nav-area .navbar-area.is-sticky {
    top: var(--pwb-height) !important;
}

/* Push page content below banner */
body {
    margin-top: var(--pwb-height);
}

/* Banner */
.pwb-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #b91c1c 0%, #d32f2f 50%, #b91c1c 100%);
    border-bottom: 2px solid #7f1010;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Scrolling Track */
.pwb-track {
    display: flex;
    align-items: center;
    width: max-content;
    white-space: nowrap;
    animation: pwb-scroll 88s linear infinite;
}

/* Pause on Hover */
.pwb-banner:hover .pwb-track,
.pwb-banner:focus-within .pwb-track {
    animation-play-state: paused;
}

/* Banner Text */
.pwb-content {
    display: inline-block;
    padding: 10px 0;
    padding-right: 60px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #fff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

/* Animation */
@keyframes pwb-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Screen Reader */
.pwb-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .pwb-track {
        animation: none;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ===========================
   Tablet (768px)
   =========================== */
@media (max-width: 768px) {

    .pwb-content {
        font-size: 13px;
        padding: 9px 0;
        padding-right: 40px;
        font-weight: 600;
    }

    .pwb-track {
        animation-duration: 85s;
    }
}

/* ===========================
   Large Mobile (576px)
   =========================== */
@media (max-width: 576px) {

    .pwb-content {
        font-size: 12px;
        padding: 8px 0;
        padding-right: 32px;
        font-weight: 600;
    }

    .pwb-track {
        animation-duration: 80s;
    }
}

/* ===========================
   Mobile (480px)
   =========================== */
@media (max-width: 480px) {

    .pwb-content {
        font-size: 11px;
        padding: 7px 0;
        padding-right: 24px;
        line-height: 1.4;
        letter-spacing: 0;
    }

    .pwb-track {
        animation-duration: 75s;
    }
}

/* ===========================
   Small Mobile (414px)
   =========================== */
@media (max-width: 414px) {

    .pwb-content {
        font-size: 10.5px;
        padding: 7px 0;
        padding-right: 22px;
    }

    .pwb-track {
        animation-duration: 72s;
    }
}

/* ===========================
   Small Mobile (390px)
   =========================== */
@media (max-width: 390px) {

    .pwb-content {
        font-size: 10px;
        padding: 6px 0;
        padding-right: 20px;
    }

    .pwb-track {
        animation-duration: 70s;
    }
}

/* ===========================
   Extra Small (360px)
   =========================== */
@media (max-width: 360px) {

    .pwb-content {
        font-size: 9.5px;
        padding: 6px 0;
        padding-right: 18px;
        line-height: 1.3;
    }

    .pwb-track {
        animation-duration: 68s;
    }
}

/* ===========================
   Very Small (320px)
   =========================== */
@media (max-width: 320px) {

    .pwb-content {
        font-size: 9px;
        padding: 5px 0;
        padding-right: 16px;
        line-height: 1.2;
    }

    .pwb-track {
        animation-duration: 65s;
    }
}