/* =========================================================================
   Breaking News / Radar — news-first layout (Arzpaya signature)
   ========================================================================= */

.breaking-news-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding-inline: 20px;
    padding-block: 24px 56px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 32px;
    align-items: start;
}

.breaking-news-content {
    min-width: 0;
}

.breaking-news-content .post-content {
    margin: 0;
    padding: 0;
}

.breaking-news-sidebar {
    position: relative;
    min-width: 0;
}

.breaking-news-sidebar .sidebar-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 769px) {
    .site-main.breaking-news-page {
        padding: 76px 0 0;
    }
}

/* ---------------------------------------------------------------- Hero */
.breaking-news-hero {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    padding: 28px 0 8px;
    background:
        radial-gradient(ellipse 80% 60% at 15% 20%, rgba(61, 114, 254, 0.14), transparent 55%),
        radial-gradient(ellipse 50% 40% at 90% 80%, rgba(61, 114, 254, 0.08), transparent 50%),
        var(--nav-bg, #f8fafc);
    border-block-end: 1px solid var(--border-color, rgba(33, 51, 100, 0.08));
}

.breaking-news-hero__breadcrumb {
    max-width: 1200px;
    margin: 0 auto 18px;
    padding-inline: 20px;
}

.breaking-news-hero__breadcrumb .breadcrumb-container {
    max-width: none;
    margin: 0;
    padding: 0;
}

.breaking-news-hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding-inline: 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 24px;
    align-items: center;
}

.breaking-news-hero__info {
    direction: rtl;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    /* Reserve former eyebrow badge height + gap so hero rhythm stays unchanged */
    padding-top: calc(0.78rem * 1.3 + 8px + 12px);
}

.breaking-news-hero__eyebrow {
    display: none;
}

.breaking-news-hero__title {
    margin: 0;
    font-size: clamp(1.45rem, 3.2vw, 2.05rem);
    font-weight: 800;
    line-height: 1.4;
    color: var(--text-body, #1a1a1a);
}

.breaking-news-hero__brand {
    color: var(--accent-primary, #3d72fe);
}

.breaking-news-hero__seo-text {
    margin: 0;
    max-width: 38rem;
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.8;
    color: #64748b;
    text-align: justify;
}

/* Decorative radar — Arzpaya pulse, not a competitor illustration */
.breaking-news-hero__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.breaking-news-radar {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(61, 114, 254, 0.35) 0%, rgba(61, 114, 254, 0.08) 40%, transparent 70%);
    box-shadow: 0 0 0 1px rgba(61, 114, 254, 0.2);
}

.breaking-news-radar::before,
.breaking-news-radar::after {
    content: "";
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    border: 1.5px solid rgba(61, 114, 254, 0.35);
    animation: bn-radar-pulse 2.8s ease-out infinite;
}

.breaking-news-radar::after {
    inset: 0;
    animation-delay: 0.9s;
    border-color: rgba(61, 114, 254, 0.22);
}

@keyframes bn-radar-pulse {
    0% {
        transform: scale(0.72);
        opacity: 0.9;
    }
    100% {
        transform: scale(1.15);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .breaking-news-radar::before,
    .breaking-news-radar::after {
        animation: none;
        opacity: 0.45;
    }
}

/* Stats pills */
.breaking-news-hero__stats {
    max-width: 1200px;
    margin: 22px auto 20px;
    padding-inline: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.breaking-news-stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(33, 51, 100, 0.1);
    color: var(--text-body, #213364);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
    backdrop-filter: blur(8px);
}

.breaking-news-stat__icon {
    display: inline-flex;
    color: var(--accent-primary, #3d72fe);
}

.breaking-news-stat__icon svg {
    width: 16px;
    height: 16px;
}

.breaking-news-stat--live {
    color: var(--accent-primary, #3d72fe);
    border-color: rgba(61, 114, 254, 0.28);
    background: rgba(61, 114, 254, 0.08);
}

.breaking-news-stat__pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
    animation: bn-live-pulse 1.8s ease-out infinite;
}

@keyframes bn-live-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* ---------------------------------------------------------------- Filter bar (date range + search) */
.bn-filter-bar {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    background: var(--body-bg, #fff);
    border-block-end: 1px solid var(--border-color, #e5e7eb);
}

.bn-filter-bar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Mobile filter trigger — desktop hidden */
.bn-mobile-filter-btn {
    display: none;
}

.bn-mobile-filters {
    display: none;
}

.bn-date-filter-home {
    display: contents;
}

.bn-source-filter-home {
    display: contents;
}

.bn-date-filter {
    display: flex;
    align-items: center;
    min-width: 0;
}

.bn-calendar-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.bn-calendar-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    height: 46px;
    min-height: 46px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #475569;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.bn-calendar-btn__trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
}

.bn-calendar-btn__trigger svg {
    display: block;
    flex-shrink: 0;
}

.bn-calendar-btn:hover {
    color: var(--accent-primary, #3d72fe);
    background: rgba(61, 114, 254, 0.08);
    border-color: rgba(61, 114, 254, 0.35);
}

.bn-calendar-btn__trigger:focus-visible {
    outline: 2px solid var(--accent-primary, #3d72fe);
    outline-offset: 2px;
    border-radius: 6px;
}

.bn-range-badge {
    display: none;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    border-radius: 8px;
    background: rgba(61, 114, 254, 0.1);
    color: var(--accent-primary, #3d72fe);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    direction: ltr;
}

.bn-range-badge.is-visible {
    display: inline-flex;
}

.bn-range-badge-label {
    overflow: hidden;
    text-overflow: ellipsis;
}

.bn-range-clear {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(61, 114, 254, 0.16);
    color: var(--accent-primary, #3d72fe);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.18s ease;
}

.bn-range-clear:hover {
    background: rgba(61, 114, 254, 0.28);
}

/* Range picker modal */
.bn-range-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(15, 23, 42, 0.5);
    animation: bnBackdropFade 0.18s ease;
}

.bn-range-backdrop[hidden] {
    display: none;
}

body.bn-modal-open {
    overflow: hidden;
}

.bn-range-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    z-index: 100001;
    width: min(340px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: var(--body-bg, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    padding: 16px;
    transform: translate(-50%, -50%);
    animation: bnModalIn 0.2s ease;
}

.bn-range-popup[hidden] {
    display: none;
}

@keyframes bnBackdropFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bnModalIn {
    from { opacity: 0; transform: translate(-50%, calc(-50% + 10px)); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes bnSheetIn {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: translateY(0); }
}

.bn-range-fields {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.bn-range-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 8px 10px;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.bn-range-field.is-active {
    border-color: var(--accent-primary, #3d72fe);
    background: rgba(61, 114, 254, 0.08);
}

.bn-range-field-label {
    font-size: 11px;
    color: #94a3b8;
}

.bn-range-display {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-color, #0f172a);
}

.bn-range-display.is-placeholder {
    font-weight: 400;
    color: #9ca3af;
}

.bn-range-sep {
    color: #94a3b8;
    font-size: 14px;
}

.bn-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 10px;
}

.bn-cal-title {
    flex: 1;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color, #0f172a);
    white-space: nowrap;
}

.bn-cal-nav {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.bn-cal-nav:hover {
    background: rgba(61, 114, 254, 0.1);
    color: var(--accent-primary, #3d72fe);
}

.bn-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    margin-bottom: 5px;
}

.bn-cal-weekdays span {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    padding: 3px 0;
}

.bn-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.bn-cal-day {
    width: 100%;
    aspect-ratio: 1;
    min-height: 32px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--text-color, #0f172a);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.bn-cal-day:not(.is-disabled):not(.is-empty):hover {
    background: rgba(61, 114, 254, 0.1);
    color: var(--accent-primary, #3d72fe);
}

.bn-cal-day.is-today:not(.is-selected) {
    box-shadow: inset 0 0 0 1.5px #93c5fd;
    color: var(--accent-primary, #3d72fe);
    font-weight: 700;
}

.bn-cal-day.is-in-range {
    background: rgba(61, 114, 254, 0.1);
    color: var(--accent-primary, #3d72fe);
    border-radius: 0;
}

.bn-cal-day.is-selected {
    background: var(--accent-primary, #3d72fe);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(61, 114, 254, 0.35);
}

.bn-cal-day.is-from {
    border-radius: 0 9px 9px 0;
}

.bn-cal-day.is-to {
    border-radius: 9px 0 0 9px;
}

.bn-cal-day.is-disabled {
    color: #d1d5db;
    cursor: not-allowed;
}

.bn-cal-day.is-empty {
    pointer-events: none;
}

.bn-range-msg {
    margin: 10px 0 0;
    font-size: 12px;
    color: #ef4444;
}

.bn-range-msg[hidden] {
    display: none;
}

.bn-range-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.bn-range-apply,
.bn-range-cancel {
    flex: 1;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 12px;
    cursor: pointer;
    transition: background-color 0.18s ease, opacity 0.18s ease;
}

.bn-range-apply {
    background: var(--accent-primary, #3d72fe);
    color: #fff;
}

.bn-range-apply:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bn-range-cancel {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e5e7eb;
}

.bn-search.searchBox {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
}

.bn-search .searchInputGroup {
    display: inline-flex;
    align-items: center;
    width: 350px;
    max-width: 100%;
    margin-bottom: 0;
    box-sizing: border-box;
}

.bn-search .searchInput {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    margin: 0;
    border: 1px dashed #3b82f6;
    border-radius: 8px;
    height: 46px;
    padding: 0 12px;
    font-family: "IRANSansWeb", Tahoma, Arial, sans-serif;
    font-size: 14px;
    color: var(--text-body, #213364);
    background: transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bn-search .searchInput:focus {
    outline: none;
    border: 1px solid #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.bn-search .searchInput::placeholder {
    color: #94a3b8;
}

.breaking-news-page.is-filtering .arzpaya-rewritten-feed {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* ---------------------------------------------------------------- Source filter sidebar */
.bn-source-filter {
    display: flex;
    flex-direction: column;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.bn-source-filter__head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex: 0 0 auto;
    margin: 0;
    padding: 16px 16px 12px;
    background: var(--card-bg, #fff);
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.bn-source-filter__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary, #213364);
}

.bn-source-filter__clear {
    border: none;
    background: transparent;
    color: var(--accent-primary, #3d72fe);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.bn-source-filter__clear:hover {
    text-decoration: underline;
}

.bn-source-filter__list {
    list-style: none;
    margin: 0;
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: min(52vh, 360px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 transparent;
}

.bn-source-filter__list::-webkit-scrollbar {
    width: 6px;
}

.bn-source-filter__list::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 999px;
}

.bn-source-filter__list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 999px;
}

.bn-source-filter__list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.bn-source-filter__label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.bn-source-filter__label:hover {
    background: rgba(61, 114, 254, 0.06);
}

.bn-source-filter__checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-primary, #3d72fe);
    flex: 0 0 auto;
}

.bn-source-filter__name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-body, #213364);
}

.bn-source-filter__count {
    flex: 0 0 auto;
    min-width: 1.5rem;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    background: rgba(33, 51, 100, 0.06);
    border-radius: 999px;
    padding: 2px 7px;
}

.bn-source-filter__empty {
    padding: 12px 8px;
    font-size: 0.85rem;
    color: #94a3b8;
}

.breaking-news-sidebar .sticky-sidebar-widget {
    position: relative;
    width: 100%;
}

@media (min-width: 1025px) {
    .breaking-news-sidebar .sticky-sidebar-widget.is-sticky {
        position: fixed;
        top: 80px;
        width: 350px;
        max-width: 350px;
        z-index: 10;
    }
}

/* ---------------------------------------------------------------- News cards */
.breaking-news-page .arzpaya-rewritten-feed {
    max-width: none;
    margin: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    direction: rtl;
}

.breaking-news-page .arzpaya-rewritten-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.breaking-news-page .arzpaya-rewritten-item {
    margin: 0;
    padding: 0;
    border: none;
}

.breaking-news-page .arzpaya-rewritten-item > article {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, rgba(33, 51, 100, 0.1));
    border-radius: 14px;
    padding: 1.05rem 1.2rem 0.95rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.breaking-news-page .arzpaya-rewritten-item:hover > article {
    border-color: rgba(61, 114, 254, 0.28);
    box-shadow: 0 8px 24px rgba(33, 51, 100, 0.08);
    transform: translateY(-1px);
}

.breaking-news-page .arzpaya-rewritten-item.is-expanded > article {
    border-color: rgba(61, 114, 254, 0.32);
    box-shadow: 0 10px 28px rgba(61, 114, 254, 0.1);
}

/* Meta row: source stays right; datetime pinned to physical top-left (above chevron). */
.breaking-news-page .arzpaya-rewritten-head {
    position: relative;
    display: block;
    width: 100%;
    min-height: 1.85rem;
    margin: 0 0 0.65rem;
    padding-left: 9.5rem; /* reserve space so source never collides with datetime */
    box-sizing: border-box;
}

.breaking-news-page .arzpaya-rewritten-source {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin: 0;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-primary, #3d72fe);
    background: rgba(61, 114, 254, 0.08);
    border: 1px solid rgba(61, 114, 254, 0.16);
}

.breaking-news-page .arzpaya-rewritten-time {
    position: absolute;
    top: 0;
    left: 0;
    right: auto;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #64748b;
    background: rgba(33, 51, 100, 0.05);
    border: 1px solid rgba(33, 51, 100, 0.08);
    white-space: nowrap;
    direction: ltr;
    font-variant-numeric: tabular-nums;
}

.breaking-news-page .arzpaya-rewritten-time__date {
    color: #64748b;
}

.breaking-news-page .arzpaya-rewritten-time__sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.45;
    flex: 0 0 auto;
}

.breaking-news-page .arzpaya-rewritten-time__clock {
    color: #475569;
    font-weight: 700;
}

.breaking-news-page .arzpaya-rewritten-summary {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

/* Title + chevron: natural RTL order keeps chevron on the physical left (under datetime). */
.breaking-news-page .arzpaya-rewritten-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.65;
    color: var(--text-primary, #213364);
    transition: color 0.2s ease;
}

.breaking-news-page .arzpaya-rewritten-summary:hover .arzpaya-rewritten-title {
    color: var(--accent-primary, #3d72fe);
}

.breaking-news-page .arzpaya-rewritten-toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    margin-top: 2px;
    padding: 0;
    border: 1px solid rgba(61, 114, 254, 0.18);
    border-radius: 999px;
    background: rgba(61, 114, 254, 0.06);
    color: var(--accent-primary, #3d72fe);
    cursor: pointer;
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.breaking-news-page .arzpaya-rewritten-toggle:hover {
    background: rgba(61, 114, 254, 0.12);
    border-color: rgba(61, 114, 254, 0.35);
    box-shadow: 0 4px 12px rgba(61, 114, 254, 0.16);
}

.breaking-news-page .arzpaya-rewritten-toggle:focus-visible {
    outline: 2px solid var(--accent-primary, #3d72fe);
    outline-offset: 2px;
}

.breaking-news-page .arzpaya-rewritten-toggle:active {
    transform: scale(0.94);
}

.breaking-news-page .arzpaya-rewritten-toggle__chevron {
    display: block;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: center;
}

.breaking-news-page .arzpaya-rewritten-item.is-expanded .arzpaya-rewritten-toggle {
    background: var(--accent-primary, #3d72fe);
    border-color: var(--accent-primary, #3d72fe);
    color: #fff;
    box-shadow: 0 6px 16px rgba(61, 114, 254, 0.28);
}

.breaking-news-page .arzpaya-rewritten-item.is-expanded .arzpaya-rewritten-toggle__chevron {
    transform: rotate(180deg);
}

/* Soft height + fade reveal */
.breaking-news-page .arzpaya-rewritten-body-panel {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition:
        grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.3s ease;
}

.breaking-news-page .arzpaya-rewritten-item.is-expanded .arzpaya-rewritten-body-panel {
    grid-template-rows: 1fr;
    opacity: 1;
}

.breaking-news-page .arzpaya-rewritten-body-inner {
    overflow: hidden;
    min-height: 0;
}

.breaking-news-page .arzpaya-rewritten-body {
    margin: 0.85rem 0 0;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-color, rgba(33, 51, 100, 0.08));
    color: var(--text-secondary, rgba(33, 51, 100, 0.82));
    font-size: 0.92rem;
    line-height: 1.85;
    text-align: justify;
    white-space: normal;
    transform: translateY(-6px);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.breaking-news-page .arzpaya-rewritten-item.is-expanded .arzpaya-rewritten-body {
    transform: translateY(0);
}

.breaking-news-page .arzpaya-rewritten-feed.is-reduced-motion .arzpaya-rewritten-body-panel,
.breaking-news-page .arzpaya-rewritten-feed.is-reduced-motion .arzpaya-rewritten-body,
.breaking-news-page .arzpaya-rewritten-feed.is-reduced-motion .arzpaya-rewritten-toggle__chevron {
    transition: none;
}

.breaking-news-page .arzpaya-rewritten-original {
    margin: 0.75rem 0 0;
    font-size: 0.8rem;
    color: #94a3b8;
}

.breaking-news-page .arzpaya-rewritten-empty {
    text-align: center;
    padding: 3rem 1.25rem;
    color: #94a3b8;
    background: var(--card-bg, #fff);
    border: 1px dashed rgba(33, 51, 100, 0.15);
    border-radius: 14px;
}

.breaking-news-page .arzpaya-rewritten-pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    margin: 1.75rem 0 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.breaking-news-page .arzpaya-rewritten-pager a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 10px;
    color: var(--accent-primary, #3d72fe);
    background: rgba(61, 114, 254, 0.08);
    border: 1px solid rgba(61, 114, 254, 0.2);
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.breaking-news-page .arzpaya-rewritten-pager a:hover {
    color: #fff;
    background: var(--accent-primary, #3d72fe);
    text-decoration: none;
}

.breaking-news-page .arzpaya-rewritten-page {
    color: #94a3b8;
}

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1024px) {
    .breaking-news-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .breaking-news-sidebar {
        order: -1;
    }

    .bn-filter-bar__inner {
        flex-wrap: wrap;
    }

    .bn-search.searchBox {
        width: 100%;
        justify-content: stretch;
    }

    .bn-search .searchInputGroup {
        width: 100%;
    }

    .bn-source-filter__list {
        max-height: min(40vh, 280px);
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 6px;
    }
}

@media (max-width: 768px) {
    .breaking-news-layout {
        padding-inline: 16px;
        padding-block: 22px 48px;
    }

    .bn-filter-bar__inner {
        padding-inline: 16px;
        gap: 8px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: center;
    }

    .bn-date-filter-home {
        display: none;
    }

    .bn-mobile-filter-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        flex: 0 0 auto;
        order: 2;
        box-sizing: border-box;
        height: 46px;
        padding: 0 12px;
        border: 1px solid var(--border-color, #e5e7eb);
        border-radius: 8px;
        background: var(--card-bg, #f8fafc);
        color: var(--text-body, #475569);
        font-family: inherit;
        font-size: 13px;
        font-weight: 700;
        line-height: 1;
        cursor: pointer;
        white-space: nowrap;
        transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    }

    .bn-mobile-filter-btn svg {
        display: block;
        flex-shrink: 0;
    }

    .bn-mobile-filter-btn.is-active {
        color: var(--accent-primary, #3d72fe);
        border-color: rgba(61, 114, 254, 0.4);
        background: rgba(61, 114, 254, 0.08);
    }

    .bn-mobile-filter-btn__dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--accent-primary, #3d72fe);
    }

    .bn-mobile-filter-btn__dot:not([hidden]) {
        display: inline-block;
    }

    .bn-filter-bar .bn-search.searchBox {
        flex: 1 1 auto;
        order: 1;
        width: auto;
        max-width: none;
        min-width: 0;
        margin-top: 0;
        margin-bottom: 0;
        justify-content: stretch;
        align-self: center;
    }

    .bn-filter-bar .bn-search .searchInputGroup,
    .bn-filter-bar .bn-search .searchInput,
    .bn-filter-bar .bn-search .bn-search-input {
        margin-top: 0;
        margin-bottom: 0;
    }

    .bn-search .searchInputGroup {
        width: 100%;
    }

    /* Hide sidebar sources on mobile — moved into fullscreen sheet */
    .breaking-news-sidebar {
        display: none;
    }

    /* Fullscreen mobile filters */
    .bn-mobile-filters {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 100010;
        background: var(--body-bg, #fff);
    }

    .bn-mobile-filters[hidden] {
        display: none;
    }

    .bn-mobile-filters__panel {
        display: flex;
        flex-direction: column;
        height: 100%;
        max-height: 100dvh;
        background: var(--body-bg, #fff);
    }

    .bn-mobile-filters__header {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px 16px;
        padding-top: calc(14px + env(safe-area-inset-top, 0px));
        border-bottom: 1px solid var(--border-color, #e5e7eb);
        background: var(--card-bg, #fff);
    }

    .bn-mobile-filters__title {
        margin: 0;
        font-size: 1.05rem;
        font-weight: 800;
        color: var(--text-primary, #213364);
    }

    .bn-mobile-filters__close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        margin: 0;
        padding: 0;
        border: none;
        border-radius: 10px;
        background: transparent;
        color: var(--text-body, #475569);
        cursor: pointer;
    }

    .bn-mobile-filters__close:hover {
        background: rgba(61, 114, 254, 0.08);
        color: var(--accent-primary, #3d72fe);
    }

    .bn-mobile-filters__body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 16px;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .bn-mobile-filters__date-slot,
    .bn-mobile-filters__source-slot {
        min-width: 0;
    }

    .bn-mobile-filters__date-slot .bn-date-filter,
    .bn-mobile-filters__date-slot .bn-calendar-wrap,
    .bn-mobile-filters__date-slot .bn-calendar-btn {
        width: 100%;
    }

    .bn-mobile-filters__date-slot .bn-calendar-btn {
        height: auto;
        min-height: 46px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 6px 12px;
        gap: 8px;
    }

    .bn-mobile-filters__date-slot .bn-calendar-btn:has(.bn-range-badge.is-visible),
    .bn-mobile-filters__date-slot .bn-calendar-btn.is-active {
        justify-content: space-between;
    }

    .bn-mobile-filters__date-slot .bn-calendar-btn__trigger {
        flex: 0 0 auto;
    }

    .bn-mobile-filters__date-slot .bn-range-badge.is-visible {
        flex: 0 1 auto;
        min-width: 0;
        max-width: 60%;
    }

    .bn-mobile-filters__date-slot .bn-range-badge-label {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .bn-mobile-filters__source-slot .bn-source-filter {
        box-shadow: none;
        max-height: min(52vh, 360px);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .bn-mobile-filters__source-slot .bn-source-filter.sticky-sidebar-widget {
        position: static !important;
        top: auto !important;
        width: auto !important;
    }

    .bn-mobile-filters__source-slot .bn-source-filter__head {
        position: sticky;
        top: 0;
        z-index: 2;
        flex: 0 0 auto;
        background: var(--card-bg, #fff);
    }

    .bn-mobile-filters__source-slot .bn-source-filter__list {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        overscroll-behavior: contain;
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        scrollbar-gutter: stable;
        scrollbar-width: thin;
        scrollbar-color: #c1c1c1 transparent;
    }

    .bn-mobile-filters__footer {
        flex: 0 0 auto;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--border-color, #e5e7eb);
        background: var(--card-bg, #fff);
    }

    .bn-mobile-filters__done {
        display: block;
        width: 100%;
        border: none;
        border-radius: 10px;
        background: var(--accent-primary, #3d72fe);
        color: #fff;
        font-family: inherit;
        font-size: 14px;
        font-weight: 700;
        padding: 12px 16px;
        cursor: pointer;
    }

    body.bn-mobile-filters-open {
        overflow: hidden;
    }

    /* Legacy in-bar date styles no longer apply in bar on mobile */
    .bn-date-filter {
        width: 100%;
    }

    .bn-calendar-wrap {
        width: 100%;
    }

    .bn-range-popup {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
        border-radius: 18px 18px 0 0;
        padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)) 16px;
        transform: none;
        animation: bnSheetIn 0.24s ease;
        z-index: 100020;
    }

    .breaking-news-hero {
        position: relative;
        padding-top: 20px;
        overflow: hidden;
    }

    .breaking-news-hero__breadcrumb,
    .breaking-news-hero__inner,
    .breaking-news-hero__stats {
        padding-inline: 16px;
    }

    .breaking-news-hero__breadcrumb,
    .breaking-news-hero__stats,
    .breaking-news-hero__info {
        position: relative;
        z-index: 1;
    }

    .breaking-news-hero__inner {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    /* Mobile radar: modestly larger so it peeks slightly under the text */
    .breaking-news-hero__visual {
        display: flex;
        position: absolute;
        top: 18px;
        left: -6px;
        z-index: 0;
        width: 148px;
        height: 148px;
        min-height: 0;
        align-items: center;
        justify-content: center;
        pointer-events: none;
        opacity: 0.9;
    }

    .breaking-news-hero__visual .breaking-news-radar {
        width: 124px;
        height: 124px;
    }

    .breaking-news-hero__title {
        font-size: 1.45rem;
    }

    .breaking-news-hero__seo-text {
        font-size: 0.86rem;
    }

    /* Live on its own row (content-width), then the other two side-by-side — same style, RTL */
    .breaking-news-hero__stats {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .breaking-news-stat--live {
        order: -2;
        flex: 0 0 auto;
        width: fit-content;
        max-width: 100%;
    }

    .breaking-news-hero__stats::before {
        content: "";
        order: -1;
        flex: 0 0 100%;
        width: 100%;
        height: 0;
        margin: 0;
        padding: 0;
        border: 0;
        overflow: hidden;
        pointer-events: none;
    }

    .breaking-news-page .arzpaya-rewritten-item > article {
        padding: 0.95rem 1rem;
    }

    .breaking-news-page .arzpaya-rewritten-title {
        font-size: 0.98rem;
    }
}

@media (max-width: 480px) {
    .breaking-news-layout,
    .breaking-news-hero__breadcrumb,
    .breaking-news-hero__inner,
    .breaking-news-hero__stats,
    .bn-filter-bar__inner {
        padding-inline: 12px;
    }

    .breaking-news-stat {
        font-size: 0.76rem;
        padding: 7px 12px;
    }
}

/* ---------------------------------------------------------------- Dark theme */
[data-theme="dark"] .breaking-news-hero {
    background:
        radial-gradient(ellipse 80% 60% at 15% 20%, rgba(61, 114, 254, 0.18), transparent 55%),
        radial-gradient(ellipse 50% 40% at 90% 80%, rgba(61, 114, 254, 0.1), transparent 50%),
        var(--card-bg, #1a2332);
    border-color: var(--border-color, rgba(255, 255, 255, 0.08));
}

[data-theme="dark"] .breaking-news-hero__title {
    color: #f8fafc;
}

[data-theme="dark"] .breaking-news-hero__seo-text {
    color: rgba(255, 255, 255, 0.62);
}

[data-theme="dark"] .breaking-news-stat {
    background: rgba(15, 23, 42, 0.65);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

[data-theme="dark"] .breaking-news-stat--live {
    background: rgba(61, 114, 254, 0.14);
    border-color: rgba(61, 114, 254, 0.3);
    color: #93b4ff;
}

[data-theme="dark"] .bn-filter-bar {
    background: var(--body-bg, #0f1419);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .bn-calendar-btn {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

[data-theme="dark"] .bn-calendar-btn:hover {
    color: #93b4ff;
    background: rgba(61, 114, 254, 0.14);
    border-color: rgba(61, 114, 254, 0.35);
}

[data-theme="dark"] .bn-range-badge {
    background: rgba(61, 114, 254, 0.18);
    color: #93b4ff;
}

[data-theme="dark"] .bn-range-clear {
    background: rgba(61, 114, 254, 0.22);
    color: #93b4ff;
}

[data-theme="dark"] .bn-range-popup {
    background: var(--card-bg, #1a2332);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .bn-range-field {
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .bn-range-field.is-active {
    background: rgba(61, 114, 254, 0.14);
}

[data-theme="dark"] .bn-range-display {
    color: #e2e8f0;
}

[data-theme="dark"] .bn-cal-title {
    color: #e2e8f0;
}

[data-theme="dark"] .bn-cal-nav {
    background: rgba(15, 23, 42, 0.8);
    color: #94a3b8;
}

[data-theme="dark"] .bn-cal-day {
    color: #e2e8f0;
}

[data-theme="dark"] .bn-cal-day.is-disabled {
    color: #475569;
}

[data-theme="dark"] .bn-range-cancel {
    background: rgba(15, 23, 42, 0.8);
    color: #94a3b8;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .bn-search .searchInput {
    background: var(--card-bg, #1f1f1f);
    color: #e5e5e5;
    border: 1px dashed var(--accent-primary, #3b82f6);
}

[data-theme="dark"] .bn-search .searchInput:focus {
    background: var(--card-bg, #1f1f1f);
    border: 1px solid var(--accent-primary, #3b82f6);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .bn-mobile-filter-btn {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

[data-theme="dark"] .bn-mobile-filter-btn.is-active {
    color: #93b4ff;
    border-color: rgba(61, 114, 254, 0.45);
    background: rgba(61, 114, 254, 0.14);
}

[data-theme="dark"] .bn-mobile-filters,
[data-theme="dark"] .bn-mobile-filters__panel {
    background: var(--body-bg, #0f1419);
}

[data-theme="dark"] .bn-mobile-filters__header,
[data-theme="dark"] .bn-mobile-filters__footer {
    background: var(--card-bg, #1a2332);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .bn-mobile-filters__title {
    color: #f8fafc;
}

[data-theme="dark"] .bn-mobile-filters__close {
    color: #94a3b8;
}

[data-theme="dark"] .bn-source-filter {
    background: var(--card-bg, #1a2332);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .bn-source-filter__head {
    background: var(--card-bg, #1a2332);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .bn-source-filter__title,
[data-theme="dark"] .bn-source-filter__name {
    color: #f8fafc;
}

[data-theme="dark"] .bn-source-filter__label:hover {
    background: rgba(61, 114, 254, 0.12);
}

[data-theme="dark"] .bn-source-filter__count {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

[data-theme="dark"] .bn-source-filter__list {
    scrollbar-color: #4a5568 transparent;
}

[data-theme="dark"] .bn-source-filter__list::-webkit-scrollbar-track {
    background: transparent;
}

[data-theme="dark"] .bn-source-filter__list::-webkit-scrollbar-thumb {
    background: #4a5568;
}

[data-theme="dark"] .bn-source-filter__list::-webkit-scrollbar-thumb:hover {
    background: #5a6578;
}

[data-theme="dark"] .breaking-news-page .arzpaya-rewritten-item > article {
    background: var(--card-bg, #1a2332);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .breaking-news-page .arzpaya-rewritten-title {
    color: #f8fafc;
}

[data-theme="dark"] .breaking-news-page .arzpaya-rewritten-time {
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .breaking-news-page .arzpaya-rewritten-time__date {
    color: #94a3b8;
}

[data-theme="dark"] .breaking-news-page .arzpaya-rewritten-time__clock {
    color: #cbd5e1;
}

[data-theme="dark"] .breaking-news-page .arzpaya-rewritten-summary:hover .arzpaya-rewritten-title {
    color: #93b4ff;
}

[data-theme="dark"] .breaking-news-page .arzpaya-rewritten-toggle {
    background: rgba(61, 114, 254, 0.14);
    border-color: rgba(61, 114, 254, 0.28);
    color: #93b4ff;
}

[data-theme="dark"] .breaking-news-page .arzpaya-rewritten-item.is-expanded .arzpaya-rewritten-toggle {
    background: var(--accent-primary, #3d72fe);
    border-color: var(--accent-primary, #3d72fe);
    color: #fff;
}

[data-theme="dark"] .breaking-news-page .arzpaya-rewritten-body {
    color: rgba(255, 255, 255, 0.78);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .breaking-news-page .arzpaya-rewritten-empty {
    background: var(--card-bg, #1a2332);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.55);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .breaking-news-hero {
        background:
            radial-gradient(ellipse 80% 60% at 15% 20%, rgba(61, 114, 254, 0.18), transparent 55%),
            var(--card-bg, #1a2332);
    }

    :root:not([data-theme="light"]) .breaking-news-hero__title {
        color: #f8fafc;
    }

    :root:not([data-theme="light"]) .breaking-news-page .arzpaya-rewritten-item > article {
        background: var(--card-bg, #1a2332);
        border-color: rgba(255, 255, 255, 0.1);
    }

    :root:not([data-theme="light"]) .breaking-news-page .arzpaya-rewritten-title {
        color: #f8fafc;
    }
}