/*
Theme Name: كل جديد الإخباري - News2050 Pro Enterprise
Theme URI: https://news2050.online/
Author: فريق تطوير موقع كل جديد الإخباري (News2050 Engineering)
Author URI: https://news2050.online/
Description: قالب ووردبريس إخباري عربي احترافي متكامل وضخم مصمم خصيصاً لموقع كل جديد الإخباري (news2050.online). الإصدار 4.2.1 يعالج مشكلة عدم ظهور التنسيقات في المواقع العربية (RTL) وإضافات الكاش عبر دمج كامل الأكواد التنسيقية داخل style.css و style-rtl.css وحقنها تلقائياً في ترويسة الموقع (wp_head).
Version: 4.2.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: news2050-pro
Domain Path: /languages
Tags: news, blog, rtl-language-support, custom-logo, custom-menu, featured-images, theme-options, threaded-comments, translation-ready
*/

/* 01. Design Tokens & Semantic Variables */
:root {
    --news2050-primary: #dc2626;
    --news2050-primary-dark: #991b1b;
    --news2050-navy: #0f172a;
    --news2050-navy-light: #1e293b;
    --news2050-bg: #f8fafc;
    --news2050-surface: #ffffff;
    --news2050-surface-alt: #f1f5f9;
    --news2050-text: #0f172a;
    --news2050-text-muted: #475569;
    --news2050-border: #e2e8f0;
    --news2050-emerald: #059669;
    --news2050-royal: #2563eb;
    --news2050-amber: #d97706;
    --news2050-purple: #7c3aed;
    --news2050-radius: 12px;
    --news2050-radius-sm: 8px;
    --news2050-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.07);
    --news2050-shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.14);
    --news2050-font-main: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
    --news2050-font-head: 'Changa', 'Cairo', sans-serif;
    --news2050-article-size: 1.125rem;
}


/* 02. Modern Reset & RTL Foundation */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    direction: rtl;
    scroll-behavior: smooth;
    font-size: 16px;
}
body.news2050-body {
    font-family: var(--news2050-font-main);
    background-color: var(--news2050-bg);
    color: var(--news2050-text);
    line-height: 1.75;
    overflow-x: hidden;
    transition: background-color 0.25s ease, color 0.25s ease;
}
img, video, svg {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}
a:hover {
    color: var(--news2050-primary);
}
ul, ol {
    list-style: none;
}
button, input, select, textarea {
    font-family: inherit;
}
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}


/* 03. Arabic Editorial Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--news2050-font-main);
    font-weight: 800;
    line-height: 1.4;
    color: var(--news2050-text);
}
.news2050-ltr-num {
    direction: ltr;
    display: inline-block;
    unicode-bidi: isolate;
}


/* 04. Responsive Container & Grid System */
.news2050-container {
    width: 100%;
    max-width: 1320px;
    margin-inline: auto;
    padding-inline: 1.25rem;
}
.news2050-section {
    padding-block: 1.85rem;
}
.news2050-section-spacing {
    padding-block: 2.25rem;
}
.news2050-grid {
    display: grid;
    gap: 1.35rem;
}
.news2050-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.news2050-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.news2050-layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 2rem;
    align-items: start;
}


/* 05. Top Utility Bar & Markets Ribbon */
.news2050-top-bar {
    background: #020617;
    color: #e2e8f0;
    font-size: 0.84rem;
    padding-block: 0.45rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.news2050-top-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.news2050-top-bar__right, .news2050-top-bar__left {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.news2050-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--news2050-primary);
    color: #fff;
    font-weight: 800;
    padding: 0.18rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
}
.news2050-live-pill__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    animation: news2050Pulse 1.4s infinite;
}
.news2050-dark-toggle {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.news2050-markets-bar {
    background: #0f172a;
    color: #cbd5e1;
    font-size: 0.8rem;
    padding-block: 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.news2050-markets-bar__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow-x: auto;
    white-space: nowrap;
}
.news2050-markets-bar__label {
    color: #fbbf24;
    font-weight: 700;
}
.news2050-markets-bar__items {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.news2050-market-chip em.is-up { color: #34d399; font-style: normal; }
.news2050-market-chip em.is-down { color: #f87171; font-style: normal; }
.news2050-market-chip em.is-flat { color: #94a3b8; font-style: normal; }


/* 06. Header Masthead & Primary Sticky Navigation */
.news2050-header-main {
    background: var(--news2050-surface);
    padding-block: 1.25rem;
    border-bottom: 1px solid var(--news2050-border);
}
.news2050-header-main__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.news2050-site-title {
    font-size: 1.9rem;
    font-weight: 900;
    margin: 0;
}
.news2050-site-title a {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
.news2050-site-title__badge {
    background: var(--news2050-primary);
    color: #fff;
    padding: 0.1rem 0.65rem;
    border-radius: 8px;
    font-size: 1.15rem;
}
.news2050-site-desc {
    color: var(--news2050-text-muted);
    font-size: 0.88rem;
    max-width: 680px;
    margin-top: 0.25rem;
}
.news2050-editorial-banner {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    padding: 0.85rem 1.25rem;
    border-radius: var(--news2050-radius);
    border-right: 4px solid var(--news2050-primary);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.news2050-editorial-banner__tag {
    color: #fca5a5;
    font-size: 0.78rem;
    font-weight: 700;
}
.news2050-primary-nav {
    background: var(--news2050-navy);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 4px 16px rgba(2, 6, 23, 0.2);
}
.news2050-primary-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    gap: 1rem;
}
.news2050-primary-nav__right, .news2050-primary-nav__left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.news2050-nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}
.news2050-nav-list a {
    color: #f1f5f9;
    font-weight: 700;
    font-size: 0.94rem;
    padding: 0.55rem 0.9rem;
    border-radius: 6px;
    display: inline-block;
}
.news2050-nav-list a:hover,
.news2050-nav-list .current-menu-item a {
    background: var(--news2050-primary);
    color: #fff;
}
.news2050-drawer-trigger,
.news2050-search-trigger,
.news2050-bookmarks-trigger {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 0.42rem 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.86rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.news2050-drawer-trigger:hover,
.news2050-search-trigger:hover {
    background: var(--news2050-primary);
}
.news2050-bookmarks-count {
    background: var(--news2050-primary);
    color: #fff;
    border-radius: 99px;
    padding: 0 0.42rem;
    font-size: 0.74rem;
}


/* 07. Subcategory Pills & Category Hero */
.news2050-subcat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
.news2050-subcat-pill {
    background: var(--news2050-surface-alt);
    color: var(--news2050-text);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}
.news2050-subcat-pill:hover {
    background: var(--news2050-primary);
    color: #fff;
}


/* 08. Breaking News Ticker ("جديد الأخبار") */
.news2050-ticker {
    background: var(--news2050-surface);
    border-bottom: 2px solid var(--news2050-border);
    padding-block: 0.5rem;
}
.news2050-ticker__inner {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.news2050-ticker__badge {
    background: var(--news2050-primary);
    color: #fff;
    padding: 0.35rem 0.95rem;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}
.news2050-ticker__pulse {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: news2050Pulse 1.2s infinite;
}
.news2050-ticker__viewport {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}
.news2050-ticker__track {
    display: inline-flex;
    align-items: center;
    gap: 2.25rem;
    animation: news2050TickerScroll 42s linear infinite;
}
.news2050-ticker__track.is-paused,
.news2050-ticker__viewport:hover .news2050-ticker__track {
    animation-play-state: paused;
}
.news2050-ticker__item {
    font-weight: 700;
    font-size: 0.94rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.news2050-ticker__sep {
    color: var(--news2050-primary);
}
.news2050-ticker__controls {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}
.news2050-ticker__btn {
    background: var(--news2050-surface-alt);
    border: 1px solid var(--news2050-border);
    color: var(--news2050-text);
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
}


/* 09. Main 5-Card Hero Bento Grid */
.news2050-hero-bento {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, 230px);
    gap: 1.15rem;
}
.news2050-hero-bento__item--1 {
    grid-column: span 2;
    grid-row: span 2;
}
.news2050-hero-bento__item--1 .news2050-card__title {
    font-size: 1.55rem;
}
.news2050-live-ribbon {
    background: linear-gradient(90deg, #991b1b, #dc2626);
    color: #fff;
    padding-block: 0.55rem;
    font-size: 0.88rem;
}
.news2050-live-ribbon__inner {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}
.news2050-live-ribbon__badge {
    background: rgba(0, 0, 0, 0.28);
    padding: 0.15rem 0.65rem;
    border-radius: 6px;
    font-weight: 800;
}


/* 10. Editorial Section Headers */
.news2050-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.35rem;
    padding-bottom: 0.7rem;
    border-bottom: 2px solid var(--news2050-border);
    position: relative;
}
.news2050-section-header::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -2px;
    width: 110px;
    height: 3px;
    background: var(--section-accent, var(--news2050-primary));
}
.news2050-section-header__right {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}
.news2050-section-header__bar {
    width: 6px;
    height: 24px;
    border-radius: 4px;
    background: var(--section-accent, var(--news2050-primary));
}
.news2050-section-header__title {
    font-size: 1.35rem;
    font-weight: 900;
}
.news2050-section-header__sub {
    color: var(--news2050-text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}
.news2050-section-header__more {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--section-accent, var(--news2050-primary));
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}


/* 11. News Cards System (Overlay, Grid, Horizontal, Compact, Opinion) */
.news2050-card {
    background: var(--news2050-surface);
    border-radius: var(--news2050-radius);
    border: 1px solid var(--news2050-border);
    overflow: hidden;
    box-shadow: var(--news2050-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}
.news2050-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--news2050-shadow-lg);
}
.news2050-card__thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #1e293b;
}
.news2050-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.news2050-card:hover .news2050-card__img {
    transform: scale(1.04);
}
.news2050-card__placeholder {
    width: 100%;
    height: 100%;
    min-height: 180px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #334155 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 1rem;
    text-align: center;
    font-weight: 800;
}
.news2050-card__placeholder small {
    color: #94a3b8;
    font-size: 0.74rem;
}
.news2050-card__floating-badges {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    gap: 0.4rem;
    z-index: 2;
}
.news2050-cat-badge {
    background: var(--badge-color, var(--news2050-primary));
    color: #fff !important;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 0.2rem 0.65rem;
    border-radius: 6px;
    display: inline-block;
}
.news2050-breaking-pill {
    background: #dc2626;
    color: #fff;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}
.news2050-bookmark-btn {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(15, 23, 42, 0.75);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    z-index: 2;
}
.news2050-card__body {
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
}
.news2050-card__title {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.48;
}
.news2050-card__excerpt {
    color: var(--news2050-text-muted);
    font-size: 0.88rem;
    line-height: 1.65;
}
.news2050-card__meta {
    margin-top: auto;
    padding-top: 0.6rem;
    border-top: 1px solid var(--news2050-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--news2050-text-muted);
}
/* Overlay Card */
.news2050-card--overlay {
    height: 100%;
    min-height: 220px;
    justify-content: flex-end;
    border: none;
}
.news2050-card--overlay .news2050-card__media-link {
    position: absolute;
    inset: 0;
}
.news2050-card--overlay .news2050-card__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.94) 12%, rgba(2, 6, 23, 0.25) 100%);
}
.news2050-card__overlay-content {
    position: relative;
    z-index: 2;
    padding: 1.25rem;
    color: #fff;
}
.news2050-card--overlay .news2050-card__title,
.news2050-card--overlay .news2050-card__title a {
    color: #fff;
    margin-top: 0.45rem;
}
.news2050-card--overlay .news2050-card__meta {
    color: #cbd5e1;
    border-top-color: rgba(255, 255, 255, 0.15);
}
/* Compact & Opinion Cards */
.news2050-card--compact {
    flex-direction: row;
    align-items: flex-start;
    padding: 0.95rem;
    gap: 0.75rem;
}
.news2050-card--opinion {
    padding: 1.25rem;
    gap: 0.75rem;
    border-top: 4px solid var(--news2050-purple);
}
.news2050-card__author-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.news2050-card__author-top img {
    border-radius: 50%;
}


/* 12. Dark Cinema Section ("شريط التقارير المصورة") */
.news2050-section--dark-video {
    background: #090d16;
    color: #f8fafc;
    padding-block: 2.75rem;
}
.news2050-section--dark-video .news2050-section-header__title {
    color: #fff;
}
.news2050-section--dark-video .news2050-card--video {
    background: #131c2e;
    border-color: #1e293b;
}
.news2050-section--dark-video .news2050-card__title a {
    color: #f8fafc;
}
.news2050-video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.92);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.25);
}
.news2050-video-duration {
    position: absolute;
    bottom: 0.6rem;
    left: 0.6rem;
    background: rgba(2, 6, 23, 0.85);
    color: #fff;
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}


/* 13. Weekly Dossier Spotlight ("ملف الأسبوع البارز") */
.news2050-dossier-banner .news2050-card--overlay {
    min-height: 360px;
    border-radius: 16px;
}
.news2050-dossier-banner .news2050-card__title {
    font-size: 1.85rem;
}


/* 14. Single Article Reader Experience */
.news2050-single-article {
    background: var(--news2050-surface);
    padding: 2rem;
    border-radius: var(--news2050-radius);
    border: 1px solid var(--news2050-border);
    box-shadow: var(--news2050-shadow);
}
.news2050-single-title {
    font-size: 2.1rem;
    margin-block: 0.75rem;
}
.news2050-single-subtitle {
    font-size: 1.15rem;
    color: var(--news2050-text-muted);
    margin-bottom: 1rem;
}
.news2050-single-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-block: 0.9rem;
    border-block: 1px solid var(--news2050-border);
    margin-bottom: 1.5rem;
}
.news2050-single-meta__author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.news2050-single-meta__author img {
    border-radius: 50%;
}
.news2050-reading-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    background: var(--news2050-surface-alt);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-block: 1.25rem;
}
.news2050-tool-btn {
    background: var(--news2050-surface);
    border: 1px solid var(--news2050-border);
    color: var(--news2050-text);
    padding: 0.35rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
}
.news2050-tool-btn.is-tts {
    background: var(--news2050-primary);
    color: #fff;
    border-color: var(--news2050-primary);
}
.news2050-article-body {
    font-size: var(--news2050-article-size);
    line-height: 1.95;
}
.news2050-article-body p {
    margin-bottom: 1.35rem;
}
.news2050-takeaways-box,
.news2050-toc-box,
.news2050-factcheck-box,
.news2050-inline-read-also {
    background: var(--news2050-surface-alt);
    border-right: 4px solid var(--news2050-primary);
    padding: 1.25rem;
    border-radius: 10px;
    margin-block: 1.5rem;
}
.news2050-share-bar,
.news2050-reactions-box,
.news2050-author-box {
    margin-top: 1.75rem;
    padding: 1.25rem;
    background: var(--news2050-surface-alt);
    border-radius: 12px;
}
.news2050-reactions-box__grid,
.news2050-share-bar__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.75rem;
}
.news2050-reaction-btn,
.news2050-share-btn {
    padding: 0.45rem 0.95rem;
    border-radius: 8px;
    border: 1px solid var(--news2050-border);
    background: var(--news2050-surface);
    cursor: pointer;
    font-weight: 700;
}
.news2050-reading-progress {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    z-index: 9999;
}
.news2050-reading-progress__bar {
    height: 100%;
    width: 0%;
    background: var(--news2050-primary);
}


/* 15. Sidebar & Trending Leaderboard ("الأكثر تداولاً اليوم") */
.news2050-widget {
    background: var(--news2050-surface);
    border: 1px solid var(--news2050-border);
    border-radius: var(--news2050-radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--news2050-shadow);
}
.news2050-widget__header {
    border-bottom: 2px solid var(--news2050-border);
    padding-bottom: 0.65rem;
    margin-bottom: 1rem;
}
.news2050-widget__title {
    font-size: 1.1rem;
    font-weight: 900;
}
.news2050-trending-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.news2050-trending-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px dashed var(--news2050-border);
}
.news2050-trending-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.news2050-trending-item__num {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--news2050-primary);
    color: #fff;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.news2050-trending-item__title {
    font-weight: 800;
    font-size: 0.94rem;
    display: block;
    line-height: 1.45;
}
.news2050-trending-item__meta {
    font-size: 0.76rem;
    color: var(--news2050-text-muted);
}


/* 16. Scoreboard, Jobs Board, Currencies & Weather Grids */
.news2050-scoreboard-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}
.news2050-match-pill {
    background: var(--news2050-surface);
    border: 1px solid var(--news2050-border);
    border-radius: 10px;
    padding: 0.75rem;
    text-align: center;
}
.news2050-match-pill__teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-block: 0.35rem;
}
.news2050-match-pill__score {
    background: var(--news2050-navy);
    color: #fff;
    padding: 0.1rem 0.55rem;
    border-radius: 6px;
    font-weight: 800;
}
.news2050-card--job,
.news2050-card--podcast {
    padding: 1.25rem;
    gap: 0.65rem;
}
.news2050-sc-rates-grid,
.news2050-sc-weather-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}
.news2050-sc-rate-card,
.news2050-sc-weather-card {
    background: var(--news2050-surface-alt);
    padding: 0.65rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    font-size: 0.84rem;
}


/* 17. Channels CTA & 4-Column Editorial Footer */
.news2050-channels-cta {
    background: linear-gradient(135deg, #991b1b 0%, #dc2626 55%, #b91c1c 100%);
    color: #fff;
    padding-block: 2.5rem;
    margin-top: 2rem;
}
.news2050-channels-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.news2050-channels-cta__text h2 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
}
.news2050-channels-cta__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.news2050-channel-btn {
    background: #fff;
    color: #0f172a !important;
    font-weight: 800;
    padding: 0.6rem 1.15rem;
    border-radius: 999px;
    font-size: 0.9rem;
}
.news2050-footer {
    background: #020617;
    color: #cbd5e1;
    padding-top: 3rem;
    padding-bottom: 2rem;
}
.news2050-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    padding-bottom: 2.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.news2050-footer-col__title {
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 1rem;
    padding-right: 0.65rem;
    border-right: 3px solid var(--news2050-primary);
}
.news2050-footer-links li {
    margin-bottom: 0.5rem;
}
.news2050-footer-hourly__item {
    margin-bottom: 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.news2050-footer-hourly__item a {
    color: #f1f5f9;
    font-weight: 700;
    font-size: 0.9rem;
    display: block;
}
.news2050-footer-hourly__item span {
    font-size: 0.76rem;
    color: #94a3b8;
}
.news2050-footer-bottom {
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.88rem;
    color: #94a3b8;
}


/* 18. Full Dark Mode ("🌙 الوضع الليلي") */
html[data-theme="dark"] {
    --news2050-bg: #020617;
    --news2050-surface: #0f172a;
    --news2050-surface-alt: #1e293b;
    --news2050-text: #f8fafc;
    --news2050-text-muted: #94a3b8;
    --news2050-border: #1e293b;
}


/* 19. Off-Canvas Drawer, Smart Search Modal & Floating Back-to-Top */
.news2050-drawer,
.news2050-search-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}
.news2050-drawer.is-open,
.news2050-search-modal.is-open {
    display: block;
}
.news2050-drawer__overlay,
.news2050-search-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(4px);
}
.news2050-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 88vw);
    background: var(--news2050-surface);
    padding: 1.5rem;
    overflow-y: auto;
}
.news2050-drawer__header,
.news2050-search-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.news2050-drawer__list li a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.4rem;
    border-bottom: 1px solid var(--news2050-border);
    font-weight: 700;
}
.news2050-drawer__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.news2050-search-modal__dialog {
    position: relative;
    max-width: 680px;
    margin: 8vh auto 0;
    background: var(--news2050-surface);
    padding: 1.75rem;
    border-radius: 16px;
    box-shadow: var(--news2050-shadow-lg);
}
.news2050-search-form {
    display: flex;
    gap: 0.5rem;
}
.news2050-search-form__input {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--news2050-border);
    background: var(--news2050-surface-alt);
    color: var(--news2050-text);
}
.news2050-search-form__submit,
.news2050-btn--primary {
    background: var(--news2050-primary);
    color: #fff;
    border: none;
    padding: 0.75rem 1.4rem;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
}
.news2050-back-to-top {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--news2050-primary);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 950;
    box-shadow: var(--news2050-shadow-lg);
}
.news2050-mobile-bottom-bar {
    display: none;
}


/* 20. Keyframe Animations */
@keyframes news2050Pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.85); }
}
@keyframes news2050TickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}


/* 21. Tablet & Mobile Breakpoints */
@media (max-width: 1024px) {
    .news2050-hero-bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
    }
    .news2050-layout-with-sidebar {
        grid-template-columns: 1fr;
    }
    .news2050-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .news2050-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 680px) {
    .news2050-hero-bento,
    .news2050-grid--3,
    .news2050-grid--4,
    .news2050-scoreboard-strip,
    .news2050-footer-grid {
        grid-template-columns: 1fr;
    }
    .news2050-hero-bento__item--1 {
        grid-column: span 1;
        grid-row: span 1;
    }
    .news2050-mobile-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        background: var(--news2050-navy);
        color: #fff;
        z-index: 1200;
        justify-content: space-around;
        padding-block: 0.45rem;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }
    .news2050-mobile-bottom-bar__item {
        background: none;
        border: none;
        color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 0.75rem;
    }
}


/* 22. Clean Print Stylesheet */
@media print {
    .news2050-site-header,
    .news2050-sidebar-col,
    .news2050-channels-cta,
    .news2050-footer,
    .news2050-reading-toolbar,
    .news2050-mobile-bottom-bar,
    .news2050-back-to-top {
        display: none !important;
    }
    .news2050-single-article {
        border: none;
        box-shadow: none;
    }
}



/* ==========================================================================
   23. WordPress Core Elements, Menus, Images, Widgets & Hardening (v4.2.1 Fix)
   ========================================================================== */
.news2050-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.custom-logo-link {
    display: inline-flex;
    align-items: center;
    max-height: 76px;
}
.custom-logo-link img,
.news2050-branding__logo img {
    max-height: 72px !important;
    width: auto !important;
    max-width: 260px !important;
    object-fit: contain !important;
}
.wp-post-image,
.news2050-card__thumb img,
.news2050-card__thumb-sm img,
.news2050-single-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}
.news2050-single-media {
    margin: 0 0 1.5rem 0;
    border-radius: var(--news2050-radius);
    overflow: hidden;
    max-height: 520px;
    background: #0f172a;
}
.news2050-single-media img {
    max-height: 520px;
}
.news2050-single-media__caption {
    background: var(--news2050-surface-alt);
    color: var(--news2050-text-muted);
    padding: 0.55rem 1rem;
    font-size: 0.84rem;
}

/* WordPress Navigation Menus (wp_nav_menu, ul.menu, sub-menu dropdowns) */
.news2050-primary-nav ul,
.news2050-nav-list,
.news2050-primary-nav .menu {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.news2050-primary-nav li,
.news2050-nav-list li {
    position: relative;
    list-style: none !important;
    margin: 0;
}
.news2050-primary-nav li a,
.news2050-nav-list li a {
    color: #f1f5f9 !important;
    font-weight: 700;
    font-size: 0.93rem;
    padding: 0.52rem 0.9rem;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none !important;
    white-space: nowrap;
}
.news2050-primary-nav li a:hover,
.news2050-primary-nav li.current-menu-item > a,
.news2050-primary-nav li.current_page_item > a {
    background: var(--news2050-primary) !important;
    color: #ffffff !important;
}

/* Dropdown Sub-Menus */
.news2050-primary-nav ul.sub-menu,
.news2050-primary-nav ul.children {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 230px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    box-shadow: 0 14px 30px rgba(2, 6, 23, 0.4);
    padding: 0.45rem !important;
    display: none !important;
    flex-direction: column;
    align-items: stretch;
    z-index: 1100;
}
.news2050-primary-nav li:hover > ul.sub-menu,
.news2050-primary-nav li:focus-within > ul.sub-menu,
.news2050-primary-nav li:hover > ul.children {
    display: flex !important;
}
.news2050-primary-nav ul.sub-menu li a {
    width: 100%;
    padding: 0.5rem 0.8rem;
    font-size: 0.88rem;
    border-radius: 6px;
}

/* Hero Bento & Card Safeguards */
.news2050-hero-bento__item {
    min-height: 225px;
    display: flex;
    flex-direction: column;
}
.news2050-hero-bento__item .news2050-card--overlay {
    flex: 1;
    width: 100%;
    height: 100%;
}
.news2050-hero-bento__item:not(.news2050-hero-bento__item--1) .news2050-card__title {
    font-size: 1.02rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news2050-card--grid .news2050-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.95em;
}
.news2050-card--grid .news2050-card__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news2050-card--horizontal {
    flex-direction: row;
    align-items: stretch;
    gap: 1rem;
    padding: 0.85rem;
}
.news2050-card__thumb-sm {
    width: 135px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #1e293b;
}

/* Enhanced Placeholder Card Visuals when post has no featured image */
.news2050-card__placeholder {
    width: 100%;
    height: 100%;
    min-height: 185px;
    background: linear-gradient(135deg, var(--ph-color-1, #0f172a) 0%, var(--ph-color-2, #1e293b) 55%, var(--ph-color-3, #dc2626) 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 1.2rem;
    text-align: center;
    font-weight: 800;
    position: relative;
    overflow: hidden;
}
.news2050-card__placeholder::before {
    content: '2050';
    position: absolute;
    font-size: 4.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.06);
    left: 10px;
    bottom: -15px;
    line-height: 1;
    pointer-events: none;
}
.news2050-card__placeholder-icon {
    font-size: 1.75rem;
    line-height: 1;
    margin-bottom: 0.15rem;
}

/* WordPress Pagination (paginate_links ul.page-numbers) */
.news2050-pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}
.news2050-pagination ul.page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    list-style: none;
    align-items: center;
}
.news2050-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.85rem;
    border-radius: 8px;
    background: var(--news2050-surface);
    border: 1px solid var(--news2050-border);
    color: var(--news2050-text);
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none;
}
.news2050-pagination .page-numbers.current,
.news2050-pagination a.page-numbers:hover {
    background: var(--news2050-primary);
    border-color: var(--news2050-primary);
    color: #ffffff;
}
.news2050-loadmore-wrap {
    margin-top: 2rem;
    text-align: center;
}
.news2050-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    font-size: 0.84rem;
    color: var(--news2050-text-muted);
    margin-bottom: 0.85rem;
}
.news2050-category-hero,
.news2050-archive-banner,
.news2050-search-hero,
.news2050-page-hero,
.news2050-author-hero,
.news2050-404-card {
    background: var(--news2050-surface);
    border: 1px solid var(--news2050-border);
    border-right: 5px solid var(--cat-accent, var(--news2050-primary));
    border-radius: var(--news2050-radius);
    padding: 1.65rem;
    margin-bottom: 2rem;
    box-shadow: var(--news2050-shadow);
}
.news2050-author-hero {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.news2050-author-hero__avatar img,
.news2050-author-box__avatar img,
.comment-author img.avatar {
    border-radius: 50% !important;
    width: 64px !important;
    height: 64px !important;
    object-fit: cover !important;
}
.news2050-author-box {
    display: flex;
    align-items: center;
    gap: 1.15rem;
}
.news2050-sidebar-col {
    position: sticky;
    top: 74px;
}
.news2050-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
}
.news2050-btn:hover {
    transform: translateY(-1px);
    opacity: 0.94;
}
.news2050-btn--sm {
    background: var(--news2050-surface-alt);
    color: var(--news2050-primary);
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    font-size: 0.84rem;
    margin-top: auto;
}
.news2050-btn--sm:hover {
    background: var(--news2050-primary);
    color: #ffffff !important;
}
.news2050-job-type-badge {
    background: rgba(2, 132, 199, 0.12);
    color: #0284c7;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.78rem;
}
.news2050-card__job-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}
.news2050-podcast-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(124, 58, 237, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.news2050-podcast-tag {
    color: #7c3aed;
    font-size: 0.78rem;
    font-weight: 800;
}
.news2050-footer-socials {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
}
.news2050-footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}
.news2050-footer-socials a:hover {
    background: var(--news2050-primary);
}
