/* News CSS matching catalog.css design language */
.news-main-layout {
    display: flex;
    flex-direction: row-reverse; /* For RTL by default */
    gap: 40px;
    padding: 60px 6%;
    max-width: 1400px;
    margin: 0 auto;
}

/* For LTR pages */
[dir="ltr"] .news-main-layout {
    flex-direction: row;
}

/* Sidebar styling */
.news-sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 110px;
    height: fit-content;
}

.news-sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(11, 18, 31, 0.02);
    border: 1px solid rgba(182, 141, 46, 0.08);
}

.news-sidebar-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--navy-corporate);
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(182, 141, 46, 0.15);
    padding-bottom: 12px;
    font-family: 'Almarai', sans-serif;
}

/* Search input */
.news-search-box {
    position: relative;
    margin-bottom: 25px;
}

.news-search-box input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border-radius: 8px;
    border: 1.5px solid rgba(182, 141, 46, 0.15);
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    outline: none;
    transition: var(--transition-smooth);
}

[dir="ltr"] .news-search-box input {
    padding: 12px 15px 12px 45px;
}

.news-search-box input:focus {
    border-color: var(--gold-premium);
    box-shadow: 0 0 10px rgba(182, 141, 46, 0.1);
}

.news-search-box i {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: var(--gold-premium);
    font-size: 15px;
}

[dir="ltr"] .news-search-box i {
    left: 15px;
    right: auto;
}

/* Years filters list */
.year-filters-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.year-filter-btn {
    background: transparent;
    border: 1px solid rgba(182, 141, 46, 0.1);
    color: var(--text-main);
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: right;
    transition: var(--transition-smooth);
    width: 100%;
}

[dir="ltr"] .year-filter-btn {
    text-align: left;
}

.year-filter-btn i {
    color: var(--gold-premium);
    font-size: 16px;
}

.year-filter-btn:hover {
    background: rgba(182, 141, 46, 0.05);
    border-color: rgba(182, 141, 46, 0.25);
    transform: translateX(-4px);
}

[dir="ltr"] .year-filter-btn:hover {
    transform: translateX(4px);
}

.year-filter-btn.active {
    background: var(--navy-corporate);
    border-color: var(--navy-corporate);
    color: #fff;
}

.year-filter-btn.active i {
    color: var(--gold-glow);
}

/* Content Panel */
.news-content-panel {
    flex-grow: 1;
}

.news-count-text {
    font-size: 15px;
    font-weight: 700;
    color: #718096;
    margin-bottom: 25px;
    font-family: 'Cairo', sans-serif;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* News Cards */
.news-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(11, 18, 31, 0.02);
    border: 1px solid rgba(182, 141, 46, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-smooth);
    animation: cardFadeIn 0.5s ease forwards;
}

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(182, 141, 46, 0.12);
    border-color: rgba(182, 141, 46, 0.2);
}

.news-card-media {
    position: relative;
    width: 100%;
    height: 200px;
    background: #000;
    overflow: hidden;
}

.news-card-media img, .news-card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.news-multi-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(10, 15, 29, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 175, 55, 0.45);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    transition: var(--transition-smooth);
}

[dir="ltr"] .news-multi-badge {
    right: auto;
    left: 12px;
}

.news-multi-badge i {
    color: var(--gold-glow);
    font-size: 12px;
}

.news-card:hover .news-multi-badge {
    background: rgba(182, 141, 46, 0.92);
    border-color: #fff;
    color: #0A0F1D;
}

.news-card:hover .news-multi-badge i {
    color: #0A0F1D;
}

.news-card-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--navy-corporate), var(--navy-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-premium);
    font-size: 48px;
}

.news-card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-premium);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: 'Almarai', sans-serif;
}

.news-card-body h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--navy-corporate);
    line-height: 1.5;
    margin-bottom: 12px;
    font-family: 'Almarai', sans-serif;
}

.news-card-body h3 a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.news-card-body h3 a:hover {
    color: var(--gold-premium);
}

.news-card-body p {
    font-size: 14.5px;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-read-more {
    color: var(--gold-premium);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    transition: var(--transition-smooth);
}

.news-read-more:hover {
    color: var(--gold-glow);
    gap: 10px;
}

/* Empty State */
.news-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px dashed rgba(182, 141, 46, 0.3);
    color: #718096;
}

.news-empty-state i {
    font-size: 48px;
    color: var(--gold-premium);
    margin-bottom: 15px;
}

.news-empty-state h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy-corporate);
    margin-bottom: 8px;
}

/* Hero Section */
.news-hero-banner {
    background-color: #0B121F !important;
    background-image: 
        radial-gradient(circle at 80% 20%, rgba(182, 141, 46, 0.12) 0%, transparent 45%), 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 100 100'%3E%3Cg stroke='%23B68D2E' stroke-width='1.5' stroke-opacity='0.04' fill='none'%3E%3Cpath d='M50 15L58 35L75 25L65 42L85 50L65 58L75 75L58 65L50 85L42 65L25 75L35 58L15 50L35 42L25 25L42 35Z'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(135deg, #0A0F1D 0%, #162440 100%) !important;
    background-size: cover, 120px, cover;
    padding: 75px 6%;
    text-align: center;
    position: relative;
    border-bottom: 3.5px solid var(--gold-premium);
}

.news-hero-container h1 {
    font-family: 'Almarai', sans-serif;
    font-weight: 800;
    font-size: 34px;
    color: #ffffff !important;
    margin-bottom: 15px;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.news-hero-container h1 span {
    color: var(--gold-glow) !important;
}

.news-hero-container p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.88) !important;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .news-main-layout {
        flex-direction: column;
    }
    .news-sidebar {
        width: 100%;
        position: static;
    }
}

/* ذيل الكرت المطور وأزرار المشاركة */
.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(182, 141, 46, 0.1);
}

.news-card-share {
    position: relative;
}

.card-share-trigger {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(182, 141, 46, 0.15);
    background: transparent;
    color: var(--gold-premium, #B68D2E);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-share-trigger:hover {
    background: rgba(182, 141, 46, 0.08);
    border-color: var(--gold-premium, #B68D2E);
    color: var(--gold-glow, #D4AF37);
    transform: scale(1.05);
}

.card-share-menu {
    position: absolute;
    bottom: 120%;
    right: 0;
    background: #fff;
    border: 1.5px solid rgba(182, 141, 46, 0.15);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(11, 18, 31, 0.12);
    padding: 8px;
    display: flex;
    gap: 8px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 100;
}

/* اتجاه القوائم المنسدلة في صفحات LTR */
[dir="ltr"] .card-share-menu {
    right: auto;
    left: 0;
}

.card-share-menu.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.share-menu-item {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.share-menu-item:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

/* ألوان الأيقونات */
.share-menu-item.whatsapp { background-color: #25D366; }
.share-menu-item.telegram { background-color: #0088cc; }
.share-menu-item.messenger { background-color: #0084FF; }
.share-menu-item.facebook { background-color: #1877F2; }
.share-menu-item.copy { 
    background-color: #edf2f7; 
    color: #4a5568 !important; 
    border: 1px solid #cbd5e0;
}

/* تلميح نسخ الرابط المنسوخ بداخل كرت الأخبار */
.share-menu-item .copy-tooltip {
    visibility: hidden;
    background-color: #2d3748;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 4px 8px;
    position: absolute;
    z-index: 101;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 10px;
    white-space: nowrap;
}

.share-menu-item .copy-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -4px;
    border-width: 4px;
    border-style: solid;
    border-color: #2d3748 transparent transparent transparent;
}

.share-menu-item.copied .copy-tooltip {
    visibility: visible;
    opacity: 1;
}

/* التنبيهات العائمة الفخمة (Toast Notifications) */
.news-toast {
    visibility: hidden;
    min-width: 300px;
    background-color: var(--navy-corporate, #141F36);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px 24px;
    position: fixed;
    z-index: 1000000;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14.5px;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(182, 141, 46, 0.25);
    border: 1.5px solid var(--gold-premium, #B68D2E);
    opacity: 0;
    transition: opacity 0.5s, bottom 0.5s, visibility 0.5s;
}

.news-toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}

/* ==========================================================================
   تطوير الأرشيف السنوي والفصلي (الأرباع السنوية) والقوائم المختصرة
   ========================================================================== */

.badge-total-count {
    background: rgba(182, 141, 46, 0.12);
    color: var(--gold-premium);
    font-size: 12px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid rgba(182, 141, 46, 0.25);
}

.archive-accordion-tree {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.year-accordion-group {
    background: #fafbfc;
    border: 1px solid rgba(182, 141, 46, 0.14);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.year-accordion-group.open {
    border-color: rgba(182, 141, 46, 0.35);
    box-shadow: 0 4px 14px rgba(20, 31, 54, 0.04);
}

.year-group-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px;
}

.year-group-header .year-main-btn {
    flex-grow: 1;
    margin-bottom: 0 !important;
}

.year-accordion-toggle {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(182, 141, 46, 0.2);
    background: #fff;
    color: var(--navy-corporate);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.year-accordion-toggle:hover {
    background: rgba(182, 141, 46, 0.1);
    color: var(--gold-premium);
}

.year-accordion-group.open .year-accordion-toggle {
    transform: rotate(180deg);
    color: var(--gold-premium);
    background: rgba(182, 141, 46, 0.08);
}

.quarters-accordion-body {
    display: none;
    padding: 8px 10px 12px 10px;
    border-top: 1px solid rgba(182, 141, 46, 0.1);
    background: #ffffff;
}

.year-accordion-group.open .quarters-accordion-body {
    display: block;
    animation: fadeInQuarter 0.3s ease forwards;
}

@keyframes fadeInQuarter {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.quarter-item-block {
    margin-bottom: 8px;
    border-radius: 8px;
    border: 1px solid rgba(182, 141, 46, 0.1);
    background: #fdfdfd;
    overflow: hidden;
    transition: all 0.2s ease;
}

.quarter-item-block:last-child {
    margin-bottom: 0;
}

.quarter-pill-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy-corporate);
    background: #f8fafc;
    transition: all 0.25s ease;
    user-select: none;
}

.quarter-pill-btn:hover {
    background: rgba(182, 141, 46, 0.1);
    color: var(--gold-premium);
}

.quarter-pill-btn.active {
    background: linear-gradient(135deg, var(--navy-corporate), var(--navy-dark));
    color: #fff;
    border-inline-start: 3.5px solid var(--gold-premium);
}

.quarter-pill-btn.active .q-badge-chip {
    background: var(--gold-premium);
    color: #fff;
}

.quarter-pill-btn.active .q-count-chip {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.q-badge-chip {
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 5px;
    background: rgba(182, 141, 46, 0.12);
    color: var(--gold-premium);
    letter-spacing: 0.5px;
}

.q-name {
    font-size: 12.5px;
}

.q-count-chip {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    background: #edf2f7;
    color: #4a5568;
}

/* قائمة أسماء الأخبار بشكل مختصر داخل كل ربع */
.quarter-concise-titles-list {
    list-style: none;
    margin: 0;
    padding: 6px 6px 8px 6px;
    border-top: 1px dashed rgba(182, 141, 46, 0.15);
    background: #ffffff;
}

.concise-title-item {
    margin: 3px 0;
}

.concise-link {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 8px;
    border-radius: 6px;
    text-decoration: none;
    color: #4a5568;
    font-size: 12px;
    line-height: 1.35;
    transition: all 0.2s ease;
}

.concise-link:hover {
    background: #f7fafc;
    color: var(--gold-premium);
    transform: translateX(dir === 'rtl' ? -3px : 3px);
}

[dir="rtl"] .concise-link:hover {
    transform: translateX(-4px);
}

[dir="ltr"] .concise-link:hover {
    transform: translateX(4px);
}

.concise-link .bullet-icon {
    font-size: 10px;
    color: var(--gold-premium);
    flex-shrink: 0;
}

.concise-title-text {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.concise-date-badge {
    font-size: 10.5px;
    color: #a0aec0;
    flex-shrink: 0;
}

/* ==========================================================================
   الشريط العلوي الذكي وطرق العرض (شبكة البطاقات vs الخط الزمني)
   ========================================================================== */

.news-panel-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    background: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(182, 141, 46, 0.15);
    margin-bottom: 20px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.news-active-filter-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(182, 141, 46, 0.1);
    color: var(--navy-corporate);
    font-size: 13px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(182, 141, 46, 0.25);
}

.news-active-filter-indicator .reset-filter-btn {
    background: none;
    border: none;
    color: #e53e3e;
    cursor: pointer;
    padding: 0 2px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.news-active-filter-indicator .reset-filter-btn:hover {
    transform: scale(1.2);
}

.news-count-text {
    font-size: 13.5px;
    color: #718096;
    font-weight: 700;
}

.news-view-mode-switch {
    display: inline-flex;
    background: #f7fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 3px;
    gap: 4px;
}

.view-mode-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #718096;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.view-mode-btn.active {
    background: var(--navy-corporate);
    color: #fff;
    box-shadow: 0 2px 8px rgba(20, 31, 54, 0.2);
}

.view-mode-btn:hover:not(.active) {
    color: var(--navy-corporate);
    background: rgba(0, 0, 0, 0.04);
}

/* فلاتر الأرباع السريعة */
.quarter-quick-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.quick-q-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 25px;
    border: 1.5px solid rgba(182, 141, 46, 0.2);
    background: #fff;
    color: var(--navy-corporate);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.quick-q-btn:hover {
    border-color: var(--gold-premium);
    color: var(--gold-premium);
    transform: translateY(-2px);
}

.quick-q-btn.active {
    background: linear-gradient(135deg, var(--gold-premium), var(--gold-glow));
    color: #fff;
    border-color: var(--gold-premium);
    box-shadow: 0 4px 12px rgba(182, 141, 46, 0.3);
}

.quick-q-btn .chip-q {
    background: rgba(0, 0, 0, 0.1);
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 11px;
}

.quick-q-btn.active .chip-q {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* بادج الربع في الكرت (في الزاوية المقابلة لبادج عدد الصور/الفيديو لمنع التداخل) */
.news-card-quarter-tag {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    inset-inline-start: auto;
    background: rgba(20, 31, 54, 0.85);
    backdrop-filter: blur(4px);
    color: var(--gold-glow);
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(182, 141, 46, 0.4);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ==========================================================================
   طريقة العرض 2: الخط الزمني الفصلي الملخص (Chronological Timeline View)
   ========================================================================== */

.news-timeline-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.timeline-quarter-group {
    position: relative;
}

.timeline-quarter-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--navy-corporate), var(--navy-dark));
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    border-inline-start: 4px solid var(--gold-premium);
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(20, 31, 54, 0.08);
}

.timeline-quarter-title {
    font-size: 15.5px;
    font-weight: 800;
    font-family: 'Almarai', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-quarter-title i {
    color: var(--gold-glow);
}

.timeline-quarter-count {
    background: rgba(182, 141, 46, 0.2);
    color: var(--gold-glow);
    padding: 3px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(182, 141, 46, 0.3);
}

.timeline-news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timeline-news-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid rgba(182, 141, 46, 0.15);
    border-radius: 10px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.timeline-news-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(182, 141, 46, 0.12);
    border-color: var(--gold-premium);
}

.timeline-thumb-box {
    width: 90px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.timeline-thumb-box i {
    font-size: 24px;
    color: var(--gold-premium);
}

.timeline-info-box {
    flex-grow: 1;
    min-width: 0;
}

.timeline-date-tag {
    font-size: 11.5px;
    color: #718096;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.timeline-headline {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--navy-corporate);
    margin: 0 0 5px 0;
    line-height: 1.4;
}

.timeline-headline a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.timeline-headline a:hover {
    color: var(--gold-premium);
}

.timeline-summary-text {
    font-size: 12.5px;
    color: #4a5568;
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.timeline-action-box {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.timeline-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(182, 141, 46, 0.1);
    color: var(--gold-premium);
    border-radius: 6px;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 700;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.timeline-read-btn:hover {
    background: var(--gold-premium);
    color: #fff;
}

@media (max-width: 768px) {
    .timeline-news-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px !important;
    }
    .timeline-thumb-box {
        width: 100%;
        height: 160px;
        border-radius: 10px;
    }
    .timeline-action-box {
        width: 100%;
        justify-content: space-between;
        margin-top: 12px;
    }
    .quarter-quick-filter-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
    }
    .quick-q-btn {
        white-space: nowrap;
        flex-shrink: 0;
        min-height: 42px !important;
        padding: 8px 16px !important;
        border-radius: 20px !important;
        font-size: 13.5px !important;
    }
    .timeline-read-btn {
        min-height: 42px !important;
        padding: 8px 16px !important;
        font-size: 13.5px !important;
        border-radius: 8px !important;
        display: inline-flex !important;
        align-items: center !important;
    }
    .year-accordion-toggle {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }
}


/* ==========================================================================
   تبويبات النطاق الإعلامي وعرض الصور والفيديو السينمائي المطور (Nov 2026)
   ========================================================================== */

/* تصحيح تباين مربع البحث في الوضع الليلي والنهاري داخل بطاقة الشريط الجانبي البيضاء */
.news-sidebar-card .news-search-box input {
    background: #f8fafc !important;
    color: #0f172a !important;
    border: 1.5px solid rgba(182, 141, 46, 0.25) !important;
}
.news-sidebar-card .news-search-box input::placeholder {
    color: #64748b !important;
}

/* شريط التبويبات الثلاثة (أحدث الأخبار | أرشيف الأخبار السابقة | كامل السجل الإعلامي) */
.news-scope-tabs-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
    background: #ffffff;
    padding: 8px;
    border-radius: 14px;
    border: 1.5px solid rgba(182, 141, 46, 0.22);
    box-shadow: 0 8px 24px rgba(10, 15, 29, 0.06);
}

.news-scope-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: #f8fafc;
    color: #1e293b;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-scope-tab .scope-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(182, 141, 46, 0.12);
    color: var(--gold-premium);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.news-scope-tab .scope-count-badge {
    background: rgba(20, 31, 54, 0.08);
    color: #334155;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    transition: all 0.25s ease;
}

.news-scope-tab:hover {
    background: rgba(182, 141, 46, 0.08);
    border-color: rgba(182, 141, 46, 0.35);
    transform: translateY(-1px);
}

.news-scope-tab.active {
    background: linear-gradient(135deg, #141F36 0%, #0A0F1D 100%);
    color: #ffffff;
    border-color: var(--gold-premium);
    box-shadow: 0 8px 20px rgba(10, 15, 29, 0.22);
}

.news-scope-tab.active .scope-icon {
    background: linear-gradient(135deg, #D4AF37, #B68D2E);
    color: #0A0F1D;
}

.news-scope-tab.active .scope-count-badge {
    background: rgba(212, 175, 55, 0.22);
    color: #F3E5AB;
    border: 1px solid rgba(212, 175, 55, 0.45);
}

/* تطوير بطاقة الخبر ومسرح العرض التفاعلي */
.news-card {
    border-radius: 16px;
    border: 1px solid rgba(182, 141, 46, 0.16);
    box-shadow: 0 12px 32px rgba(10, 15, 29, 0.05);
}

.news-card.is-video-card {
    border-color: rgba(212, 175, 55, 0.38);
}

.news-card-showcase {
    background: #0a0f1d;
    display: flex;
    flex-direction: column;
    border-bottom: 2px solid rgba(182, 141, 46, 0.22);
}

.news-card-showcase .news-card-media {
    height: 210px;
    background: radial-gradient(circle at center, #162238 0%, #080d18 100%);
}

.news-card-showcase.single-photo .news-card-media {
    height: 258px;
}

.news-stage-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.18s ease;
}

.news-stage-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 15, 29, 0.72) 0%, rgba(10, 15, 29, 0.1) 45%, rgba(10, 15, 29, 0.35) 100%);
    pointer-events: none;
}

/* زر التكبير المباشر على صورة الخبر */
.news-stage-zoom-btn {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(10, 15, 29, 0.78);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(212, 175, 55, 0.45);
    color: #F3E5AB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    z-index: 3;
    transition: all 0.25s ease;
}

[dir="ltr"] .news-stage-zoom-btn {
    left: auto;
    right: 10px;
}

.news-stage-zoom-btn:hover {
    background: var(--gold-premium);
    color: #0A0F1D;
    transform: scale(1.08);
}

/* شريط الصور المصغرة التفاعلي أسفل مسرح البطاقة */
.news-card-thumbs-strip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    background: #0d1526;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.news-card-thumbs-strip .strip-label {
    font-size: 11px;
    font-weight: 700;
    color: #F3E5AB;
    white-space: nowrap;
    margin-inline-end: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.news-card-thumb-btn {
    position: relative;
    flex: 1;
    height: 44px;
    max-width: 68px;
    border-radius: 6px;
    overflow: hidden;
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    padding: 0;
    background: #141f36;
    cursor: pointer;
    transition: all 0.2s ease;
}

.news-card-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.72;
    transition: opacity 0.2s ease, transform 0.25s ease;
}

.news-card-thumb-btn:hover img,
.news-card-thumb-btn.active img {
    opacity: 1;
    transform: scale(1.06);
}

.news-card-thumb-btn.active {
    border-color: #D4AF37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.32);
}

.news-card-thumb-btn .more-count {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 29, 0.76);
    color: #F3E5AB;
    font-size: 11.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* طبقة تشغيل الفيديو السينمائية داخل الكرت */
.news-video-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(10, 15, 29, 0.22) 0%, rgba(10, 15, 29, 0.72) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.video-stage.is-playing .news-video-overlay {
    opacity: 0;
    pointer-events: none;
}

.news-video-play-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4AF37 0%, #9E761E 100%);
    color: #0A0F1D;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    box-shadow: 0 0 0 7px rgba(212, 175, 55, 0.24), 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.news-video-play-circle i {
    margin-left: 3px;
}

.news-video-overlay:hover .news-video-play-circle {
    transform: scale(1.12);
    box-shadow: 0 0 0 11px rgba(212, 175, 55, 0.34), 0 14px 30px rgba(0, 0, 0, 0.65);
}

.news-video-cta-label {
    background: rgba(10, 15, 29, 0.85);
    color: #F3E5AB;
    border: 1px solid rgba(212, 175, 55, 0.45);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
}

.news-media-type-pill.video-pill {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    background: linear-gradient(135deg, rgba(182, 141, 46, 0.96), rgba(140, 104, 24, 0.96));
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

[dir="ltr"] .news-media-type-pill.video-pill {
    right: auto;
    left: 12px;
}

.news-media-type-pill .pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff3b30;
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.35);
}

/* شارة الخبر المؤرشف */
.news-archived-ribbon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 3;
    background: rgba(15, 23, 42, 0.88);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

[dir="ltr"] .news-archived-ribbon {
    right: auto;
    left: 10px;
}

.news-card-date-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.news-card-date-row .news-card-date {
    margin-bottom: 0;
}

.news-card-cat-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(182, 141, 46, 0.1);
    color: var(--gold-premium);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

/* عارض الصور السينمائي المكبر (Full-Screen Lightbox) لصفحة المركز الإعلامي */
.news-page-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(6, 10, 20, 0.94);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    padding: 24px;
}

.news-page-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.npl-stage {
    max-width: 1020px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.npl-stage > img {
    max-width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 14px;
    border: 2px solid rgba(212, 175, 55, 0.45);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
    background: #050811;
}

.npl-footer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #f8fafc;
    padding: 0 8px;
}

.npl-caption {
    font-size: 15px;
    font-weight: 700;
    color: #f1f5f9;
}

.npl-counter {
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: #F3E5AB;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.npl-thumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.npl-thumb {
    width: 66px;
    height: 46px;
    border-radius: 7px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0;
    background: #0a0f1d;
    cursor: pointer;
    transition: all 0.2s ease;
}

.npl-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.65;
}

.npl-thumb.active {
    border-color: #D4AF37;
    transform: translateY(-2px);
}

.npl-thumb.active img,
.npl-thumb:hover img {
    opacity: 1;
}

.npl-close {
    position: absolute;
    top: 22px;
    right: 26px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.npl-close:hover {
    background: #ef4444;
    border-color: #ef4444;
}

.npl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(20, 31, 54, 0.85);
    border: 1.5px solid rgba(212, 175, 55, 0.5);
    color: #F3E5AB;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.npl-nav:hover {
    background: var(--gold-premium);
    color: #0A0F1D;
}

.npl-prev { right: 26px; }
.npl-next { left: 26px; }
[dir="ltr"] .npl-prev { left: 26px; right: auto; }
[dir="ltr"] .npl-next { right: 26px; left: auto; }

@media (max-width: 768px) {
    .news-scope-tabs-bar {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .news-scope-tab {
        justify-content: space-between;
    }
    .npl-nav {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
    .npl-prev { right: 10px; }
    .npl-next { left: 10px; }
}


/* ==========================================================================
   دعم الوضع المظلم الشامل لصفحة المركز الإعلامي وأرشيف الأخبار (Nov 2026)
   ========================================================================== */
[data-theme="dark"] .news-sidebar-card,
[data-theme="dark"] .news-panel-top-bar,
[data-theme="dark"] .news-scope-tabs-bar,
[data-theme="dark"] .news-card,
[data-theme="dark"] .timeline-news-row,
[data-theme="dark"] .news-empty-state {
    background: linear-gradient(165deg, #0d182c 0%, #091220 100%) !important;
    border-color: rgba(212, 175, 55, 0.24) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45) !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .news-sidebar-title,
[data-theme="dark"] .news-card-body h3,
[data-theme="dark"] .news-card-body h3 a,
[data-theme="dark"] .timeline-headline,
[data-theme="dark"] .timeline-headline a,
[data-theme="dark"] .news-empty-state h4 {
    color: #ffffff !important;
}

[data-theme="dark"] .news-card-body h3 a:hover,
[data-theme="dark"] .timeline-headline a:hover {
    color: #f6d365 !important;
}

[data-theme="dark"] .news-card-body p,
[data-theme="dark"] .timeline-summary-text,
[data-theme="dark"] .news-count-text,
[data-theme="dark"] .timeline-date-tag,
[data-theme="dark"] .news-empty-state p {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .news-sidebar-card .news-search-box input {
    background: #070e1b !important;
    color: #f8fafc !important;
    border-color: rgba(212, 175, 55, 0.32) !important;
}

[data-theme="dark"] .news-sidebar-card .news-search-box input::placeholder {
    color: #94a3b8 !important;
}

[data-theme="dark"] .year-filter-btn {
    color: #e2e8f0 !important;
    border-color: rgba(212, 175, 55, 0.18) !important;
    background: rgba(255, 255, 255, 0.02) !important;
}

[data-theme="dark"] .year-filter-btn:hover {
    background: rgba(212, 175, 55, 0.1) !important;
    border-color: rgba(212, 175, 55, 0.38) !important;
}

[data-theme="dark"] .year-filter-btn.active {
    background: linear-gradient(135deg, #d4af37, #9e761e) !important;
    color: #091220 !important;
    border-color: #f6d365 !important;
}

[data-theme="dark"] .year-filter-btn.active i,
[data-theme="dark"] .year-filter-btn.active .filter-btn-text {
    color: #091220 !important;
}

[data-theme="dark"] .year-accordion-toggle {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(212, 175, 55, 0.22) !important;
    color: #f6d365 !important;
}

[data-theme="dark"] .quarter-item-block {
    background: rgba(7, 14, 27, 0.65) !important;
    border-color: rgba(212, 175, 55, 0.18) !important;
}

[data-theme="dark"] .quarter-pill-btn {
    background: rgba(255, 255, 255, 0.03) !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .quarter-pill-btn .q-name {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .quarter-pill-btn.active {
    background: rgba(212, 175, 55, 0.18) !important;
    border-color: #d4af37 !important;
}

[data-theme="dark"] .concise-link {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .concise-link:hover {
    color: #f6d365 !important;
    background: rgba(212, 175, 55, 0.08) !important;
}

[data-theme="dark"] .concise-date-badge {
    background: rgba(212, 175, 55, 0.14) !important;
    color: #f6d365 !important;
}

[data-theme="dark"] .news-scope-tab {
    background: rgba(255, 255, 255, 0.03) !important;
    color: #e2e8f0 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .news-scope-tab .scope-count-badge {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .news-scope-tab.active {
    background: linear-gradient(135deg, #d4af37 0%, #9e761e 100%) !important;
    color: #091220 !important;
    border-color: #f6d365 !important;
}

[data-theme="dark"] .news-scope-tab.active .scope-icon {
    background: #091220 !important;
    color: #f6d365 !important;
}

[data-theme="dark"] .news-scope-tab.active .scope-count-badge {
    background: rgba(9, 18, 32, 0.85) !important;
    color: #f6d365 !important;
}

[data-theme="dark"] .news-active-filter-indicator {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(212, 175, 55, 0.28) !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .news-view-mode-switch {
    background: #070e1b !important;
    border-color: rgba(212, 175, 55, 0.22) !important;
}

[data-theme="dark"] .view-mode-btn {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .view-mode-btn.active {
    background: linear-gradient(135deg, #d4af37, #9e761e) !important;
    color: #091220 !important;
}

[data-theme="dark"] .quick-q-btn {
    background: #0d182c !important;
    color: #e2e8f0 !important;
    border-color: rgba(212, 175, 55, 0.25) !important;
}

[data-theme="dark"] .quick-q-btn .chip-q {
    background: rgba(212, 175, 55, 0.15) !important;
    color: #f6d365 !important;
}

[data-theme="dark"] .quick-q-btn.active {
    background: linear-gradient(135deg, #d4af37, #9e761e) !important;
    color: #091220 !important;
    border-color: #f6d365 !important;
}

[data-theme="dark"] .quick-q-btn.active .chip-q {
    background: rgba(9, 18, 32, 0.85) !important;
    color: #f6d365 !important;
}

[data-theme="dark"] .card-share-menu {
    background: #0f1b31 !important;
    border-color: rgba(212, 175, 55, 0.35) !important;
}


/* ==========================================================================
   ترقية المركز الإعلامي: الشريط الموحد + الخبر البارز + بطاقات العناوين (Nov 2026)
   ========================================================================== */

/* توسيع التخطيط وتقليص الشريط الجانبي لإعطاء مساحة أرحب للبطاقات */
.news-main-layout {
    gap: 28px !important;
    padding: 45px 5% !important;
    max-width: 1440px !important;
}

.news-sidebar {
    width: 265px !important;
}

.news-sidebar-card {
    padding: 22px 20px !important;
}

/* شريط التبويبات العلوي الرشيق */
.news-scope-tabs-bar {
    padding: 6px !important;
    margin-bottom: 14px !important;
    border-radius: 12px !important;
}

.news-scope-tab {
    padding: 10px 14px !important;
    font-size: 13.5px !important;
}

/* الشريط الموحد الذكي (مؤشر النطاق + فلتر نوع الميديا + تبديل طريقة العرض) */
.news-panel-top-bar.unified-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 16px !important;
    margin-bottom: 22px !important;
    border-radius: 12px !important;
}

.news-panel-top-bar.unified-toolbar .news-count-text {
    margin-bottom: 0 !important;
    font-size: 13.5px !important;
}

.news-media-type-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
    border: 1px solid rgba(182, 141, 46, 0.2);
}

.media-type-btn {
    border: none;
    background: transparent;
    color: #334155;
    font-family: 'Cairo', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 13px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.22s ease;
    white-space: nowrap;
}

.media-type-btn i {
    color: var(--gold-premium);
    font-size: 12.5px;
}

.media-type-btn:hover {
    background: rgba(182, 141, 46, 0.1);
    color: #0f172a;
}

.media-type-btn.active {
    background: var(--navy-corporate);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(10, 15, 29, 0.16);
}

.media-type-btn.active i {
    color: var(--gold-glow);
}

[data-theme="dark"] .news-media-type-filter {
    background: #070e1b !important;
    border-color: rgba(212, 175, 55, 0.25) !important;
}

[data-theme="dark"] .media-type-btn {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .media-type-btn:hover {
    color: #ffffff !important;
    background: rgba(212, 175, 55, 0.12) !important;
}

[data-theme="dark"] .media-type-btn.active {
    background: linear-gradient(135deg, #d4af37, #9e761e) !important;
    color: #091220 !important;
}

[data-theme="dark"] .media-type-btn.active i {
    color: #091220 !important;
}

/* ==========================================================================
   بطاقة الخبر الرئيسي البارز أعلى الشبكة (Featured Hero Story Card)
   ========================================================================== */
.news-card.news-featured-hero-card {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    border-radius: 18px;
    border: 1.5px solid rgba(182, 141, 46, 0.35);
    box-shadow: 0 18px 45px rgba(10, 15, 29, 0.08);
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #fcfaf5 100%);
}

.news-featured-hero-card .news-card-showcase {
    border-bottom: none;
    border-inline-end: 2px solid rgba(182, 141, 46, 0.25);
    height: 100%;
    justify-content: space-between;
}

.news-featured-hero-card .news-card-showcase .news-card-media {
    height: 295px;
    flex-grow: 1;
}

.news-featured-hero-card .news-card-showcase.single-photo .news-card-media {
    height: 345px;
}

.news-featured-hero-card .news-card-thumbs-strip {
    padding: 9px 14px;
}

.news-featured-hero-card .news-card-thumb-btn {
    height: 52px;
    max-width: 84px;
}

.news-featured-hero-card .news-card-body {
    padding: 28px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-card-kicker-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.hero-card-kicker-row .news-card-date {
    margin-bottom: 0;
    background: rgba(182, 141, 46, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(182, 141, 46, 0.25);
}

.hero-kicker-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #141F36, #0A0F1D);
    color: #F3E5AB;
    border: 1px solid rgba(212, 175, 55, 0.5);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(10, 15, 29, 0.15);
}

.hero-kicker-badge i {
    color: #D4AF37;
}

.news-featured-hero-card h3.hero-news-title {
    font-size: 21.5px !important;
    line-height: 1.58 !important;
    font-weight: 800 !important;
    margin-bottom: 14px !important;
    color: var(--navy-corporate);
}

.news-featured-hero-card p.hero-news-excerpt {
    font-size: 14.5px !important;
    line-height: 1.8 !important;
    color: #475569 !important;
    margin-bottom: 22px !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-hero-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #B68D2E 0%, #D4AF37 100%);
    color: #0A0F1D !important;
    font-weight: 800;
    font-size: 13.5px;
    padding: 9px 20px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(182, 141, 46, 0.28);
}

.btn-hero-read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(182, 141, 46, 0.4);
    color: #0A0F1D !important;
}

.news-card-quick-preview {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(20, 31, 54, 0.06);
    color: #1e293b;
    border: 1px solid rgba(20, 31, 54, 0.15);
    font-family: 'Cairo', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.22s ease;
}

.news-card-quick-preview i {
    color: var(--gold-premium);
}

.news-card-quick-preview:hover {
    background: rgba(182, 141, 46, 0.14);
    border-color: var(--gold-premium);
    color: #0f172a;
}

/* ==========================================================================
   بطاقات الشبكة الرشيقة بالعناوين الكاملة (Compact Headline Cards)
   ========================================================================== */
.news-card.is-compact-headline-card .news-card-body {
    padding: 18px 20px 16px !important;
}

.news-card.is-compact-headline-card .news-card-body h3 {
    font-size: 16.5px !important;
    line-height: 1.62 !important;
    margin: 2px 0 16px 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 78px;
}

.news-card-mini-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(182, 141, 46, 0.1);
    color: #1e293b;
    border: 1px solid rgba(182, 141, 46, 0.28);
    font-family: 'Cairo', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.news-card-mini-pill i {
    color: var(--gold-premium);
}

.news-card-mini-pill:hover {
    background: var(--gold-premium);
    color: #0A0F1D;
}

.news-card-mini-pill:hover i {
    color: #0A0F1D;
}

/* دعم الوضع المظلم للبطاقة البارزة وبطاقات الشبكة المحدثة */
[data-theme="dark"] .news-card.news-featured-hero-card {
    background: linear-gradient(155deg, #101d35 0%, #091220 100%) !important;
    border-color: rgba(212, 175, 55, 0.42) !important;
}

[data-theme="dark"] .news-featured-hero-card p.hero-news-excerpt {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .news-card-quick-preview,
[data-theme="dark"] .news-card-mini-pill {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #f1f5f9 !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
}

[data-theme="dark"] .news-card-quick-preview:hover,
[data-theme="dark"] .news-card-mini-pill:hover {
    background: var(--gold-premium) !important;
    color: #0A0F1D !important;
}

@media (max-width: 992px) {
    .news-sidebar {
        width: 100% !important;
    }
    .news-card.news-featured-hero-card {
        grid-template-columns: 1fr;
    }
    .news-featured-hero-card .news-card-showcase {
        border-inline-end: none;
        border-bottom: 2px solid rgba(182, 141, 46, 0.25);
    }
}
