.quick-news {
    --news-primary: #075985;
    --news-primary-dark: #063b62;
    --news-background: #edf8fd;

    position: relative;
    z-index: 990;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    background: var(--news-background);
    border-bottom: 1px solid rgba(7, 89, 133, 0.18);
    box-shadow: 0 2px 10px rgba(15, 73, 110, 0.05);
    overflow: hidden;
}

.quick-news + .page-hero,
.quick-news + section,
.quick-news + div {
    margin-top: 0 !important;
}

.quick-news-container {
    width: 100%;
    min-height: 60px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

/* Remove Quick News button when news is running */
.quick-news-label {
    display: none !important;
}

.quick-news-viewport {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 0;
    mask-image: linear-gradient(to right, transparent 0%, black 24px, black calc(100% - 24px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 24px, black calc(100% - 24px), transparent 100%);
}

.quick-news-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: quickNewsTicker 80s linear infinite;
    will-change: transform;
}

.quick-news-track:hover,
.quick-news-viewport:hover .quick-news-track {
    animation-play-state: paused;
}

.quick-news-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.quick-news-ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 16px 16px;
}

.quick-news-link {
    color: #0c3d61;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: color 0.2s;
}

.quick-news-link:hover {
    color: #0284c7;
    text-decoration: underline;
}

.quick-news-link strong {
    color: #042742;
}

.quick-news-sep {
    color: #0284c7;
    font-size: 0.75rem;
    opacity: 0.6;
    padding: 0 10px;
    user-select: none;
}

.quick-news-controls {
    display: none !important;
}

.quick-news-message {
    color: #5e7381;
    font-size: 1rem;
}

@keyframes quickNewsTicker {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@media (max-width: 767px) {
    .quick-news-container {
        min-height: 52px;
    }

    .quick-news-track {
        animation-duration: 60s;
    }

    .quick-news-ticker-item {
        padding: 7px 10px;
    }

    .quick-news-link {
        font-size: 0.9rem;
    }

    .quick-news-sep {
        padding: 0 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .quick-news-track {
        animation: none;
        overflow-x: auto;
    }
}

/* ── Labeled Stripes: Activities & Upcoming News ───────────────────── */
#newlyAddedActivitiesStripe .quick-news-label,
#upcomingNewsStripe .quick-news-label {
    display: flex !important;
    flex-shrink: 0;
    align-self: stretch;
    min-height: 60px;
}

/* Activities stripe link colour */
#newlyAddedActivitiesStripe .quick-news-link {
    color: rgba(255, 255, 255, 0.92) !important;
}

#newlyAddedActivitiesStripe .quick-news-link:hover {
    color: #ffd700 !important;
    text-decoration: underline;
}

#newlyAddedActivitiesStripe .quick-news-sep {
    color: rgba(255, 215, 0, 0.7);
}

/* Pause on hover for activities stripe */
#newlyAddedActivitiesStripe .quick-news-viewport:hover .quick-news-track,
#upcomingNewsStripe .quick-news-viewport:hover .quick-news-track {
    animation-play-state: paused;
}
