/**
 * News Listing & Detail Page Styling
 * Amida Theme for Rojname
 */

/* ==========================================================================
   News Category Listing (.newses-page)
   ========================================================================== */

.newses-page {
    --news-ink: #0f172a;
    --news-ink-muted: #64748b;
    --news-card-bg: #ffffff;
    --news-card-border: rgba(15, 23, 42, 0.08);
    --news-card-hover-border: rgba(15, 23, 42, 0.16);
    --news-card-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    --news-card-hover-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.12);
    --news-placeholder-bg: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --news-placeholder-icon: #94a3b8;
    --news-accent: #0284c7;
    --news-accent-hover: #0369a1;
    --news-filter-active-bg: #0f172a;
    --news-filter-active-text: #ffffff;
    --news-badge-bg: rgba(15, 23, 42, 0.06);
    --news-badge-text: #334155;

    margin-top: 1.5rem;
    margin-bottom: 3.5rem;
}

html[data-bs-theme="dark"] .newses-page {
    --news-ink: #f8fafc;
    --news-ink-muted: #94a3b8;
    --news-card-bg: #1e293b;
    --news-card-border: rgba(255, 255, 255, 0.08);
    --news-card-hover-border: rgba(255, 255, 255, 0.18);
    --news-card-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    --news-card-hover-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.5);
    --news-placeholder-bg: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --news-placeholder-icon: #64748b;
    --news-accent: #38bdf8;
    --news-accent-hover: #7dd3fc;
    --news-filter-active-bg: #38bdf8;
    --news-filter-active-text: #0f172a;
    --news-badge-bg: rgba(255, 255, 255, 0.08);
    --news-badge-text: #cbd5e1;
}

.newses-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--news-card-border);
}

.newses-header-lead {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.newses-page-title {
    margin: 0;
    font-family: var(--bs-font-serif, 'Literata', Georgia, serif);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--news-ink);
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.newses-page-title i {
    font-size: 1.55rem;
    color: var(--news-accent);
}

.newses-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: var(--news-ink-muted);
}

.newses-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--news-badge-text);
    background-color: var(--news-badge-bg);
    border-radius: 999px;
    white-space: nowrap;
}

.newses-sidebar-col {
    position: relative;
}

.news-filter-card {
    position: sticky;
    top: 1.5rem;
    z-index: 5;
    background-color: var(--news-card-bg);
    border: 1px solid var(--news-card-border);
    border-radius: 14px;
    box-shadow: var(--news-card-shadow);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.news-filter-header {
    padding: 1.15rem 1.25rem 0.85rem;
    border-bottom: 1px solid var(--news-card-border);
}

.news-filter-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--news-ink);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-filter-title i {
    color: var(--news-accent);
}

.news-filter-list {
    display: flex;
    flex-direction: column;
}

.news-filter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--news-ink);
    text-decoration: none;
    border-top: 1px solid var(--news-card-border);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.news-filter-item:first-child {
    border-top: 0;
}

.news-filter-item:hover {
    background-color: rgba(2, 132, 199, 0.06);
    color: var(--news-accent);
}

.news-filter-item.active {
    background-color: var(--news-filter-active-bg);
    color: var(--news-filter-active-text);
    font-weight: 600;
}

.news-filter-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-filter-badge {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background-color: var(--news-badge-bg);
    color: var(--news-badge-text);
}

.news-filter-item.active .news-filter-badge {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--news-filter-active-text);
}

.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--news-card-bg);
    border: 1px solid var(--news-card-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--news-card-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: var(--news-card-hover-border);
    box-shadow: var(--news-card-hover-shadow);
}

.news-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--news-placeholder-bg);
    overflow: hidden;
    text-decoration: none;
}

.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-img {
    transform: scale(1.04);
}

.news-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--news-placeholder-bg);
}

.news-card-placeholder-icon {
    font-size: 2.75rem;
    color: var(--news-placeholder-icon);
}

.news-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 1.25rem 1.25rem 1.15rem;
}

.news-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.news-card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: var(--news-ink-muted);
}

.news-card-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background-color: var(--news-badge-bg);
    color: var(--news-badge-text);
}

.news-card-category-pill i {
    font-size: 0.7rem;
    color: var(--news-accent);
}

.news-card-title {
    margin: 0 0 0.65rem 0;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.35;
}

.news-card-title a {
    color: var(--news-ink);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.news-card-title a:hover {
    color: var(--news-accent);
}

.news-card-summary {
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--news-ink-muted);
    flex: 1 1 auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--news-card-border);
    margin-top: auto;
}

.news-card-read-time {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--news-ink-muted);
    white-space: nowrap;
}

.news-card-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--news-accent);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.news-card-read-more:hover {
    color: var(--news-accent-hover);
    transform: translateX(2px);
}

.newses-pagination-nav {
    margin-top: 2.5rem;
}

.newses-pagination-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.newses-page-item {
    display: inline-block;
}

.newses-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--news-card-border);
    background-color: var(--news-card-bg);
    color: var(--news-ink);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.newses-page-link:hover {
    background-color: rgba(2, 132, 199, 0.08);
    border-color: var(--news-accent);
    color: var(--news-accent);
}

.newses-page-item.active .newses-page-link {
    background-color: var(--news-filter-active-bg);
    border-color: var(--news-filter-active-bg);
    color: var(--news-filter-active-text);
}

.newses-page-item.disabled .newses-page-link {
    opacity: 0.5;
    pointer-events: none;
    background-color: transparent;
}

.news-empty-card {
    background-color: var(--news-card-bg);
    border: 1px solid var(--news-card-border);
    border-radius: 14px;
    padding: 3.5rem 1.5rem;
    text-align: center;
    box-shadow: var(--news-card-shadow);
}

.news-empty-icon-wrap {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.25rem;
    border-radius: 999px;
    background-color: var(--news-badge-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--news-ink-muted);
}

.news-empty-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--news-ink);
}

.news-empty-text {
    margin: 0 0 1.5rem 0;
    font-size: 0.95rem;
    color: var(--news-ink-muted);
}

.news-empty-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.35rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--news-filter-active-text);
    background-color: var(--news-filter-active-bg);
    border-radius: 10px;
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .news-filter-card {
        position: static;
        margin-bottom: 1.75rem;
    }

    .news-filter-list {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }

    .news-filter-item {
        border-top: 0;
        border-radius: 999px;
        padding: 0.45rem 0.9rem;
        background-color: var(--news-badge-bg);
    }

    .news-filter-item.active {
        background-color: var(--news-filter-active-bg);
    }

    .news-filter-header {
        display: none;
    }
}

/* ==========================================================================
   News Detail Page Styling (#mod_news)
   ========================================================================== */

#mod_news {
    --news-detail-ink: #0f172a;
    --news-detail-body: #1e293b;
    --news-detail-muted: #64748b;
    --news-detail-surface: #ffffff;
    --news-detail-surface-alt: #f8fafc;
    --news-detail-border: rgba(15, 23, 42, 0.08);
    --news-detail-accent: #0284c7;
    --news-detail-accent-soft: rgba(2, 132, 199, 0.09);
    --news-detail-shadow: 0 18px 48px -12px rgba(15, 23, 42, 0.08);
}

html[data-bs-theme="dark"] #mod_news {
    --news-detail-ink: #f8fafc;
    --news-detail-body: #e2e8f0;
    --news-detail-muted: #94a3b8;
    --news-detail-surface: #1e293b;
    --news-detail-surface-alt: #0f172a;
    --news-detail-border: rgba(255, 255, 255, 0.09);
    --news-detail-accent: #38bdf8;
    --news-detail-accent-soft: rgba(56, 189, 248, 0.14);
    --news-detail-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.45);
}

/* News detail byline and action bar */
#mod_news .news-byline-bar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 0;
    margin-bottom: 1.5rem;
    border-top: 1px solid var(--news-detail-border);
    border-bottom: 1px solid var(--news-detail-border);
}

@media (min-width: 768px) {
    #mod_news .news-byline-bar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }
}

.news-byline-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex: 1 1 auto;
}

.news-byline-avatar-link {
    display: inline-flex;
    flex-shrink: 0;
    text-decoration: none;
}

.news-byline-avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--news-detail-border);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.news-byline-avatar-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

html[data-bs-theme="dark"] #mod_news .news-byline-avatar-initials {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    color: #f8fafc;
}

.news-byline-copy {
    min-width: 0;
}

.news-byline-name-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.22rem;
}

.news-byline-name {
    font-size: 1.025rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--news-detail-ink);
    text-decoration: none;
    line-height: 1.25;
}

a.news-byline-name:hover {
    color: var(--news-detail-accent);
}

.news-byline-dates {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 0.25rem;
    column-gap: 0.9rem;
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--news-detail-muted);
    font-variant-numeric: tabular-nums;
}

.news-byline-date-item {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
}

.news-byline-date-label {
    font-weight: 500;
}

.news-byline-date-item--breaking {
    color: #dc2626;
    font-weight: 700;
    background-color: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.22);
    padding: 0.08rem 0.45rem;
    border-radius: 0.3rem;
}

.news-byline-date-item--breaking .news-byline-date-label {
    font-weight: 700;
}

html[data-bs-theme="dark"] #mod_news .news-byline-date-item--breaking {
    color: #f87171;
    background-color: rgba(248, 113, 113, 0.14);
    border-color: rgba(248, 113, 113, 0.28);
}

.news-byline-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
    display: inline-block;
    flex-shrink: 0;
    animation: breakingUpdatePulse 1.8s infinite;
}

@keyframes breakingUpdatePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.65);
    }
    70% {
        box-shadow: 0 0 0 5px rgba(220, 38, 38, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

/* Unified action bar on the right side of the byline */
#mod_news .news-byline-tools {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    flex: 0 0 auto;
    flex-shrink: 0;
    width: auto;
    gap: 0.2rem;
    padding: 0.25rem;
    border-radius: 999px;
    background-color: var(--news-detail-surface-alt);
    border: 1px solid var(--news-detail-border);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

#mod_news .news-tool-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background-color: transparent;
    color: var(--news-detail-muted);
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

#mod_news .news-tool-btn:hover,
#mod_news .news-tool-btn:focus-visible {
    background-color: var(--news-detail-surface);
    color: var(--news-detail-ink);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
    outline: none;
}

#mod_news .news-byline-tools-divider {
    width: 1px;
    height: 18px;
    background-color: var(--news-detail-border);
    margin: 0 0.15rem;
    flex-shrink: 0;
}

.news-inline-video {
    margin: 1.75rem 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.news-inline-video .video-embed-figure {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
}

/* Hero Video Container & Flush Caption Bar */
#mod_news .detail-hero--video {
    background: #0b0f19;
    border: 1px solid var(--news-detail-border);
    isolation: isolate;
}

#mod_news .detail-hero--video .video-embed-figure,
#mod_news .detail-hero--video .video-embed-figure--hero {
    margin: 0;
    padding: 0;
    width: 100%;
}

#mod_news .detail-hero--video .video-embed-stage {
    border-radius: 0;
    box-shadow: none;
}

#mod_news .detail-hero--video .video-embed-mounted-frame {
    border-radius: 0;
}

#mod_news .detail-hero--video .video-embed-caption,
#mod_news .detail-hero--video .video-embed-caption--hero {
    margin: 0;
    padding: 0.6rem 1rem;
    background: var(--news-detail-surface-alt);
    border-top: 1px solid var(--news-detail-border);
}

/* Swapped Inline Main Article Image */
#mod_news .news-inline-image {
    margin: 1.75rem 0;
    border-radius: 1.25rem;
    overflow: hidden;
    background: var(--news-detail-surface-alt);
    border: 1px solid var(--news-detail-border);
    box-shadow: var(--detail-shadow-soft);
}

#mod_news .news-inline-image a {
    display: block;
}

#mod_news .news-inline-image .news-inline-image-el {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

/* Article Main Image */
.article-main-image {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background-color: var(--detail-surface-soft, #f8f9fa);
}

/* Video Gallery Styles */
.video-card-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
}

.video-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--bs-border-radius-lg, 0.75rem);
    box-shadow: var(--bs-box-shadow-sm, 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075));
    transition: all 0.2s ease-in-out;
    height: 100%;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--bs-box-shadow, 0 0.5rem 1rem rgba(0, 0, 0, 0.15));
}

.video-card .video-poster {
    position: relative;
    padding-top: 56.25%;
    background-size: cover;
    background-position: center;
    transition: transform 0.2s ease-in-out;
}

.video-card:hover .video-poster {
    transform: scale(1.05);
}

.video-card .video-poster::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    z-index: 1;
}

.video-card:hover .video-poster::before {
    opacity: 1;
}

.video-card .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    font-size: 4rem;
    color: #ffffff;
    opacity: 0;
    transition: all 0.2s ease-in-out;
    z-index: 2;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.video-card:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ==========================================================================
   24 Hours News Sidebar Card (.news-24h-card)
   ========================================================================== */

.news-sidebar-col {
    position: relative;
}

.news-24h-card {
    background: var(--detail-surface, #ffffff);
    border: 1px solid var(--detail-border, rgba(28, 43, 64, 0.09));
    border-radius: 1.25rem;
    padding: 1.25rem 1.25rem 0.85rem;
    box-shadow: var(--detail-shadow-soft, 0 14px 38px rgba(20, 37, 63, 0.06));
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

@media (min-width: 992px) {
    .news-24h-card {
        position: sticky;
        top: 1.5rem;
        max-height: calc(100vh - 3rem);
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: var(--detail-border, rgba(0, 0, 0, 0.12)) transparent;
        z-index: 5;
    }

    .news-24h-card::-webkit-scrollbar {
        width: 4px;
    }

    .news-24h-card::-webkit-scrollbar-thumb {
        background-color: var(--detail-border, rgba(0, 0, 0, 0.15));
        border-radius: 999px;
    }
}

.news-24h-card:hover {
    box-shadow: var(--detail-shadow, 0 24px 70px rgba(20, 37, 63, 0.08));
    border-color: rgba(16, 185, 129, 0.3);
}

.news-24h-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.85rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--detail-border, rgba(28, 43, 64, 0.09));
}

.news-24h-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.news-24h-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulse-dot 2s infinite;
    display: inline-block;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.news-24h-title {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--detail-title, #18253f);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    line-height: 1.2;
}

.news-24h-title i {
    color: #10b981;
    font-size: 1.05rem;
}

.news-24h-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.25);
    line-height: 1;
    letter-spacing: 0.02em;
}

.news-24h-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.news-24h-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--detail-border, rgba(28, 43, 64, 0.07));
    transition: transform 0.2s ease;
}

.news-24h-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.news-24h-media {
    position: relative;
    width: 86px;
    height: 56px;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
    background: var(--detail-surface-soft, #f8f9fa);
    border: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
    display: block;
    text-decoration: none;
}

.news-24h-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.news-24h-item:hover .news-24h-img {
    transform: scale(1.05);
}

.news-24h-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--detail-surface-soft, #f8f9fa);
    color: var(--detail-muted, #94a3b8);
    font-size: 1.25rem;
}

.news-24h-content {
    flex: 1;
    min-width: 0;
}

.news-24h-headline {
    margin: 0 0 0.3rem 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.38;
}

.news-24h-headline a {
    color: var(--detail-title, #18253f) !important;
    text-decoration: none;
    transition: color 0.18s ease;
}

.news-24h-headline a:hover,
.news-24h-item:hover .news-24h-headline a {
    color: var(--detail-accent, #2457d6) !important;
}

.news-24h-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--detail-muted, #6c757d);
    margin-top: 0.25rem;
}

.news-24h-meta i {
    font-size: 0.8rem;
    color: var(--detail-muted, #6c757d);
}

.news-24h-meta i.bi-clock-history {
    color: #10b981;
}

/* Dark Mode Tokens */
html[data-bs-theme="dark"] .news-24h-card {
    background: var(--detail-surface, #1e293b);
    border-color: var(--detail-border, rgba(255, 255, 255, 0.08));
}

html[data-bs-theme="dark"] .news-24h-media {
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-bs-theme="dark"] .news-24h-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.35);
}

html[data-bs-theme="dark"] .news-24h-header,
html[data-bs-theme="dark"] .news-24h-item {
    border-color: var(--detail-border, rgba(255, 255, 255, 0.08));
}

html[data-bs-theme="dark"] .news-24h-title {
    color: var(--detail-title, #f8fafc);
}

html[data-bs-theme="dark"] .news-24h-headline a {
    color: var(--detail-title, #f8fafc) !important;
}

html[data-bs-theme="dark"] .news-24h-headline a:hover,
html[data-bs-theme="dark"] .news-24h-item:hover .news-24h-headline a {
    color: #60a5fa !important;
}

html[data-bs-theme="dark"] .news-24h-meta {
    color: var(--detail-muted, #94a3b8);
}

/* ==========================================================================
   Google Search Preferred Sources Banner (.preferred-source-banner)
   ========================================================================== */

.preferred-source-banner {
    --pref-banner-bg: #f4f1e6;
    --pref-banner-border: rgba(15, 23, 42, 0.1);
    --pref-banner-top-rule: #dc2626;
    --pref-banner-kicker: #dc2626;
    --pref-banner-text: #1e293b;
    --pref-btn-ink: #0f172a;
    --pref-btn-border: #0f172a;
    --pref-btn-bg: transparent;
    --pref-btn-hover-bg: #0f172a;
    --pref-btn-hover-ink: #ffffff;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    margin: 2rem 0 0;
    padding: 1.25rem 1.35rem;
    background-color: var(--pref-banner-bg);
    border: 1px solid var(--pref-banner-border);
    border-top: 3px solid var(--pref-banner-top-rule);
    border-radius: 0 0 0.75rem 0.75rem;
}

@media (min-width: 768px) {
    .preferred-source-banner {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 1.15rem 1.75rem;
        padding: 1.35rem 1.65rem;
    }
}

html[data-bs-theme="dark"] .preferred-source-banner,
.theme-dark .preferred-source-banner {
    --pref-banner-bg: #162033;
    --pref-banner-border: rgba(148, 163, 184, 0.16);
    --pref-banner-top-rule: #ef4444;
    --pref-banner-kicker: #f87171;
    --pref-banner-text: #e2e8f0;
    --pref-btn-ink: #f8fafc;
    --pref-btn-border: rgba(248, 250, 252, 0.78);
    --pref-btn-bg: rgba(15, 23, 42, 0.35);
    --pref-btn-hover-bg: #f8fafc;
    --pref-btn-hover-ink: #0f172a;
}

.preferred-source-copy {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    flex: 1 1 auto;
}

@media (min-width: 768px) {
    .preferred-source-copy {
        flex: 1 1 240px;
    }
}

.preferred-source-kicker {
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.25;
    color: var(--pref-banner-kicker);
}

.preferred-source-desc {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.52;
    font-weight: 400;
    color: var(--pref-banner-text);
    max-width: 56ch;
}

.preferred-source-action {
    display: flex;
    flex: 0 1 auto;
    max-width: 100%;
}

.preferred-source-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    padding: 0.65rem 1.25rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    color: var(--pref-btn-ink);
    background-color: var(--pref-btn-bg);
    border: 1.5px solid var(--pref-btn-border);
    border-radius: 0.375rem;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

@media (min-width: 768px) {
    .preferred-source-btn {
        width: auto;
    }
}

.preferred-source-btn-icon {
    width: 0.95rem;
    height: 0.95rem;
    flex-shrink: 0;
}

.preferred-source-btn:hover {
    background-color: var(--pref-btn-hover-bg);
    color: var(--pref-btn-hover-ink);
    border-color: var(--pref-btn-hover-bg);
    transform: translateY(-1px);
    text-decoration: none;
}

.preferred-source-btn:active {
    transform: translateY(0);
}

.preferred-source-btn:focus-visible {
    outline: 2px solid var(--pref-banner-top-rule);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .news-card,
    .news-card-img,
    .news-filter-item,
    .news-card-read-more,
    .newses-page-link,
    .video-card,
    .video-card .video-poster,
    .news-24h-img,
    .news-24h-pulse-dot,
    .news-byline-live-dot,
    .preferred-source-banner,
    .preferred-source-btn {
        transition: none !important;
        transform: none !important;
        animation: none !important;
    }
}