﻿/* ========== أنماط شريط التنقل (Navbar) ========== */

/* ══ DARK MODE (default) ══ */
:root {
    --brand: #407ebd;
    --brand-dark: #2d5f96;
    --brand-light: #5b96cc;
    --brand-xlight: #d0e4f5;
    --gold: #c8a96e;
    --gold-light: #e8cc9a;
    --dark: #0a0f1e;
    --dark-2: #111827;
    --dark-3: #1a2236;
    --text: #e8edf5;
    --text-muted: #8fa3be;
    --white: #ffffff;
    --success: #10b981;
    --glass: rgba(64,126,189,0.08);
    --glass-border: rgba(64,126,189,0.2);
}

/* ══ LIGHT MODE ══ */
html.light {
    --dark: #f8f9fa;
    --dark-2: #f8f9fa;
    --dark-3: #f8f9fa;
    --text: #1a2a3a;
    --text-muted: #4a6580;
    --glass: rgba(64,126,189,0.07);
    --glass-border: rgba(64,126,189,0.18);
}

    html.light body {
        background: var(--dark);
    }

    html.light .navbar {
        background: rgba(223,229,235,0.92) !important;
    }

        html.light .navbar.scrolled {
            background: rgba(223,229,235,0.98) !important;
            box-shadow: 0 4px 30px rgba(64,126,189,0.12);
        }

    html.light .nav-brand-text strong {
        color: var(--brand-dark);
    }

    html.light .nav-links a {
        color: #4a6580;
    }

        html.light .nav-links a:hover,
        html.light .nav-links a.active {
            color: var(--brand-dark);
        }

    html.light .mobile-nav {
        background: rgba(223,229,235,0.99);
    }

        html.light .mobile-nav a {
            color: #4a6580;
        }

            html.light .mobile-nav a:hover,
            html.light .mobile-nav a.active {
                background: rgba(64,126,189,0.1);
                color: var(--brand-dark);
            }

    html.light .hamburger span {
        background: var(--brand-dark);
    }

/* ══ THEME TOGGLE ══ */
.theme-toggle {
    display: flex;
    align-items: center;
    background: var(--dark-2);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 4px;
    gap: 2px;
    margin-right: 12px;
    flex-shrink: 0;
}

.theme-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: .78rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all .35s cubic-bezier(.4,0,.2,1);
    background: transparent;
    color: var(--text-muted);
    font-family: 'Tajawal', sans-serif;
    white-space: nowrap;
}

    .theme-btn i {
        font-size: .85rem;
        transition: transform .4s;
    }

    .theme-btn.active {
        background: var(--brand);
        color: white;
        box-shadow: 0 3px 12px rgba(64,126,189,0.35);
    }

        .theme-btn.active i {
            transform: rotate(20deg);
        }

html.light .theme-toggle {
    background: #eaf0f6;
    border-color: rgba(64,126,189,0.2);
}

html.light .theme-btn {
    color: #4a6580;
}

    html.light .theme-btn.active {
        color: white;
    }

/* ══ LANG TOGGLE ══ */
.lang-toggle {
    display: flex;
    align-items: center;
    background: var(--dark-2);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 4px;
    gap: 2px;
    flex-shrink: 0;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: .78rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all .35s cubic-bezier(.4,0,.2,1);
    background: transparent;
    color: var(--text-muted);
    font-family: 'Tajawal', sans-serif;
    white-space: nowrap;
}

    .lang-btn.active {
        background: #ffffff;
        color: #1a2a3a;
        box-shadow: 0 3px 12px rgba(200,169,110,0.4);
    }

html.light .lang-toggle {
    background: #eaf0f6;
    border-color: rgba(64,126,189,0.2);
}

html.light .lang-btn {
    color: #4a6580;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
    padding-top: 100px;
}

/* ── NAVBAR ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 40px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10,15,30,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all .4s;
}

    .navbar.scrolled {
        height: 80px;
        background: rgba(10,15,30,0.97);
        box-shadow: 0 4px 30px rgba(0,0,0,0.5);
    }

.nav-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.nav-logo-wrap {
    width: 82px;
    height: 82px;
    background: #ffffff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-shadow: 0 0 0 2px var(--brand), 0 0 0 4px rgba(64,126,189,0.25), 0 6px 24px rgba(64,126,189,0.35);
    transition: box-shadow .3s, transform .3s;
    flex-shrink: 0;
    overflow: hidden;
}

.navbar.scrolled .nav-logo-wrap {
    width: 70px;
    height: 70px;
}

.nav-logo-wrap:hover {
    box-shadow: 0 0 0 2px var(--gold), 0 0 0 5px rgba(200,169,110,0.3), 0 8px 30px rgba(200,169,110,0.35);
    transform: scale(1.04);
}

.nav-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.nav-logo-wrap .logo-fallback {
    font-family: 'Cairo', sans-serif;
    font-weight: 900;
    font-size: 28px;
    color: var(--brand-dark);
}

.nav-brand-text {
    line-height: 1.2;
}

    .nav-brand-text strong {
        display: block;
        color: white;
        font-size: .95rem;
        font-weight: 700;
    }

    .nav-brand-text span {
        font-size: .65rem;
        color: var(--brand-light);
        letter-spacing: 1px;
    }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    flex-wrap: wrap;
}

    .nav-links a {
        color: var(--text-muted);
        text-decoration: none;
        font-size: .95rem;
        font-weight: 500;
        padding: 7px 11px;
        border-radius: 8px;
        transition: all .3s;
        position: relative;
        white-space: nowrap;
    }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 4px;
            left: 50%;
            right: 50%;
            height: 2px;
            background: var(--brand);
            border-radius: 2px;
            transition: all .3s;
        }

        .nav-links a:hover,
        .nav-links a.active {
            color: white;
        }

            .nav-links a:hover::after,
            .nav-links a.active::after {
                left: 11px;
                right: 11px;
            }

.nav-cta {
    background: var(--brand);
    color: white !important;
    border-radius: 10px !important;
    padding: 8px 18px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(64,126,189,0.35);
    transition: all .3s !important;
}

    .nav-cta:hover {
        background: var(--brand-dark) !important;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(64,126,189,0.45) !important;
    }

    .nav-cta::after {
        display: none !important;
    }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

    .hamburger span {
        width: 24px;
        height: 2px;
        background: var(--text);
        border-radius: 2px;
        transition: all .3s;
    }

/* ── MOBILE NAV ── */
.mobile-nav {
    display: none;
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10,15,30,.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 30px 40px;
    flex-direction: column;
    gap: 10px;
    transform: translateX(100%);
    transition: transform .4s;
    overflow-y: auto;
}

    .mobile-nav.open {
        transform: translateX(0);
    }

    .mobile-nav a {
        color: var(--text-muted);
        text-decoration: none;
        font-size: 1.1rem;
        font-weight: 600;
        padding: 14px 20px;
        border-radius: 12px;
        border: 1px solid transparent;
        transition: all .3s;
        display: flex;
        align-items: center;
        gap: 12px;
    }

        .mobile-nav a:hover,
        .mobile-nav a.active {
            background: var(--glass);
            border-color: var(--glass-border);
            color: white;
        }

/* ========== DROPDOWN MENU STYLES ========== */
.nav-links li {
    position: relative;
    list-style: none;
}

.nav-links .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--dark-3);
    backdrop-filter: blur(15px);
    background: rgba(10, 15, 30, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px 0;
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    z-index: 100;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

html.light .dropdown-menu {
    background: rgba(248, 249, 250, 0.98);
    border-color: var(--glass-border);
}

.nav-links li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px !important;
    white-space: nowrap;
    font-size: 0.9rem !important;
    color: var(--text-muted) !important;
}

    .dropdown-menu a:hover {
        background: var(--glass);
        color: white !important;
        padding-right: 25px !important;
    }

html.light .dropdown-menu a:hover {
    background: rgba(64,126,189,0.1);
    color: var(--brand-dark) !important;
}

/* ========== MOBILE GROUP STYLES (Folders) ========== */
.mobile-group {
    border-bottom: 1px solid var(--glass-border);
}

.mobile-group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
}

    .mobile-group-header i:first-child {
        width: 24px;
    }

    .mobile-group-header i:last-child {
        margin-right: auto;
        transition: transform 0.3s;
    }

.mobile-group.open .mobile-group-header i:last-child {
    transform: rotate(180deg);
}

.mobile-group-items {
    display: none;
    padding-right: 35px;
    background: rgba(0,0,0,0.2);
}

.mobile-group.open .mobile-group-items {
    display: block;
}

.mobile-group-items a {
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
    border-right: 2px solid transparent;
}

    .mobile-group-items a:hover {
        border-right-color: var(--brand);
        background: var(--glass);
    }

.nav-links a {
    font-size: 1rem !important;
    font-weight: 600;
}

.nav-cta {
    font-size: 0.95rem !important;
}

/* ── GO TOP ── */
.go-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 48px;
    height: 48px;
    background: var(--brand);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all .3s;
    z-index: 999;
    box-shadow: 0 8px 25px rgba(64,126,189,.4);
    border: none;
}

    .go-top.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .go-top:hover {
        background: var(--brand-dark);
        transform: translateY(-3px);
    }

/* استجابة لشريط التنقل */
@media (max-width: 1100px) {
    .nav-links a {
        font-size: .75rem;
        padding: 6px 8px;
    }
}

@media (max-width: 768px) {
    .theme-btn span {
        display: none;
    }

    .theme-toggle {
        margin-right: 6px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-nav {
        display: flex;
    }
}

/* ========== أنماط صفحة الأخبار ========== */

/* ════ المتغيرات — الوضع الداكن (افتراضي) ════ */
.news-masthead {
    background: var(--dark-2);
    border-bottom: 3px solid var(--brand);
    padding: 0;
    position: relative;
    overflow: hidden;
}

html.light .news-masthead {
    background: #eaf0f6;
    border-bottom-color: var(--brand);
}

.news-masthead-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: stretch;
    gap: 0;
}

.news-masthead-date {
    padding: 14px 28px 14px 0;
    font-size: .78rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: .06em;
    border-left: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

html.light .news-masthead-date {
    color: #4a6580;
    border-left-color: rgba(64,126,189,.18);
}

.news-masthead-cats {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    padding: 0 28px;
}

.news-cat-btn {
    padding: 14px 18px;
    font-family: 'Tajawal', sans-serif;
    font-size: .82rem;
    font-weight: 700;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all .25s;
    position: relative;
    letter-spacing: .03em;
    white-space: nowrap;
}

    .news-cat-btn::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--brand);
        transform: scaleX(0);
        transition: transform .25s;
    }

    .news-cat-btn:hover {
        color: var(--text);
    }

    .news-cat-btn.active {
        color: var(--brand);
    }

        .news-cat-btn.active::after {
            transform: scaleX(1);
        }

html.light .news-cat-btn:hover {
    color: #1a2a3a;
}

html.light .news-cat-btn.active {
    color: var(--brand-dark);
}

.news-masthead-search {
    padding: 10px 0 10px 28px;
    border-right: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
}

.news-search-box {
    display: flex;
    align-items: center;
    background: var(--dark-3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color .25s;
}

    .news-search-box:focus-within {
        border-color: var(--brand);
    }

    .news-search-box input {
        background: transparent;
        border: none;
        outline: none;
        padding: 7px 14px;
        color: var(--text);
        font-family: 'Tajawal', sans-serif;
        font-size: .82rem;
        width: 180px;
    }

        .news-search-box input::placeholder {
            color: var(--text-muted);
        }

    .news-search-box button {
        background: var(--brand);
        border: none;
        padding: 7px 14px;
        color: white;
        cursor: pointer;
        font-size: .82rem;
        transition: background .2s;
    }

        .news-search-box button:hover {
            background: var(--brand-dark);
        }

html.light .news-search-box {
    background: #f4f7fa;
    border-color: rgba(64,126,189,.2);
}

    html.light .news-search-box input {
        color: #1a2a3a;
    }

/* ========== HERO STORY ========== */
.news-hero-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 40px 0;
}

.news-hero-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

.news-hero-main {
    position: relative;
    background: var(--dark-2);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s;
}

    .news-hero-main:hover {
        transform: translateY(-5px);
        box-shadow: 0 24px 60px rgba(64,126,189,.18);
    }

.news-hero-img {
    height: 420px;
    overflow: hidden;
    position: relative;
}

    .news-hero-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .6s ease;
    }

.news-hero-main:hover .news-hero-img img {
    transform: scale(1.04);
}

.news-hero-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,15,30,.92) 0%, rgba(10,15,30,.3) 50%, transparent 100%);
}

html.light .news-hero-img-overlay {
    background: linear-gradient(to top, rgba(10,15,30,.82) 0%, rgba(10,15,30,.2) 50%, transparent 100%);
}

.news-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
}

.news-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand);
    color: white;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
    padding: 5px 14px;
    border-radius: 4px;
    margin-bottom: 14px;
}

.news-hero-title {
    font-family: 'Cairo', sans-serif;
    font-size: 1.65rem;
    font-weight: 900;
    color: white;
    line-height: 1.3;
    margin-bottom: 12px;
}

.news-hero-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: .75rem;
    color: rgba(255,255,255,.65);
}

    .news-hero-meta span {
        display: flex;
        align-items: center;
        gap: 5px;
    }

/* الأخبار الجانبية */
.news-hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-side-card {
    background: var(--dark-2);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 100px 1fr;
    cursor: pointer;
    transition: all .3s;
    min-height: 90px;
}

    .news-side-card:hover {
        border-color: var(--brand);
        transform: translateX(-4px);
        box-shadow: 0 8px 30px rgba(64,126,189,.12);
    }

html.light .news-side-card {
    background: #eaf0f6;
    border-color: rgba(64,126,189,.15);
}

.news-side-img {
    overflow: hidden;
}

    .news-side-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .5s;
    }

.news-side-card:hover .news-side-img img {
    transform: scale(1.08);
}

.news-side-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-side-tag {
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .08em;
    color: var(--brand-light);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.news-side-title {
    font-size: .85rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 8px;
}

html.light .news-side-title {
    color: #1a2a3a;
}

.news-side-date {
    font-size: .7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ========== فاصل الأقسام ========== */
.news-section-divider {
    max-width: 1200px;
    margin: 48px auto 0;
    padding: 0 40px;
}

.news-section-label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

    .news-section-label h3 {
        font-family: 'Cairo', sans-serif;
        font-size: 1.1rem;
        font-weight: 900;
        color: var(--text);
        white-space: nowrap;
    }

html.light .news-section-label h3 {
    color: #1a2a3a;
}

.news-section-line {
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.news-section-accent {
    width: 28px;
    height: 4px;
    background: var(--brand);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ========== شبكة الأخبار المتنوعة ========== */
.news-content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 60px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.news-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-bottom: 28px;
}

/* بطاقة الخبر الكبيرة */
.news-article-card {
    background: var(--dark-2);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all .35s cubic-bezier(.4,0,.2,1);
    position: relative;
}

    .news-article-card:hover {
        border-color: var(--brand);
        transform: translateY(-5px);
        box-shadow: 0 20px 50px rgba(64,126,189,.13);
    }

html.light .news-article-card {
    background: #eaf0f6;
    border-color: rgba(64,126,189,.15);
}

.news-article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-light));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .35s;
}

.news-article-card:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.news-article-img {
    height: 180px;
    overflow: hidden;
    position: relative;
}

    .news-article-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .55s ease;
    }

.news-article-card:hover .news-article-img img {
    transform: scale(1.06);
}

.news-article-cat-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--brand);
    color: white;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .06em;
    padding: 4px 10px;
    border-radius: 4px;
}

.news-article-body {
    padding: 18px 20px;
}

.news-article-title {
    font-family: 'Cairo', sans-serif;
    font-size: .97rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.45;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

html.light .news-article-title {
    color: #1a2a3a;
}

.news-article-excerpt {
    font-size: .8rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--glass-border);
}

.news-article-date {
    font-size: .7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-read-link {
    font-size: .72rem;
    font-weight: 700;
    color: var(--brand);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap .25s;
}

    .news-read-link:hover {
        gap: 8px;
    }

/* بطاقة خبر أفقية صغيرة */
.news-list-item {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all .25s;
}

    .news-list-item:last-child {
        border-bottom: none;
    }

    .news-list-item:hover .news-list-title {
        color: var(--brand);
    }

.news-list-img {
    border-radius: 10px;
    overflow: hidden;
    height: 66px;
}

    .news-list-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .4s;
    }

.news-list-item:hover .news-list-img img {
    transform: scale(1.06);
}

.news-list-title {
    font-size: .87rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .25s;
}

html.light .news-list-title {
    color: #1a2a3a;
}

.news-list-meta {
    font-size: .68rem;
    color: var(--text-muted);
    display: flex;
    gap: 10px;
}

/* ========== الشريط الجانبي ========== */

/* أخبار عاجلة */
.news-breaking-box {
    background: var(--dark-2);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
}

html.light .news-breaking-box {
    background: #eaf0f6;
    border-color: rgba(64,126,189,.15);
}

.news-breaking-head {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .news-breaking-head span {
        color: white;
        font-weight: 800;
        font-size: .82rem;
        letter-spacing: .05em;
    }

.news-breaking-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: newsPulse 1s infinite;
}

@keyframes newsPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .5;
        transform: scale(1.3);
    }
}

.news-breaking-list {
    padding: 14px 18px;
}

.news-breaking-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--glass-border);
    cursor: pointer;
}

    .news-breaking-item:last-child {
        border-bottom: none;
    }

.news-breaking-title {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.45;
    margin-bottom: 4px;
    transition: color .2s;
}

html.light .news-breaking-title {
    color: #1a2a3a;
}

.news-breaking-item:hover .news-breaking-title {
    color: var(--brand);
}

.news-breaking-time {
    font-size: .65rem;
    color: var(--text-muted);
}

/* مقاييس ذكية */
.news-stats-box {
    background: linear-gradient(135deg, var(--brand-dark), var(--dark-3));
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 24px;
    border: 1px solid rgba(64,126,189,.25);
    position: relative;
    overflow: hidden;
}

    .news-stats-box::before {
        content: '';
        position: absolute;
        top: -40px;
        right: -40px;
        width: 130px;
        height: 130px;
        background: rgba(255,255,255,.04);
        border-radius: 50%;
        pointer-events: none;
    }

.news-stats-title {
    font-size: .78rem;
    font-weight: 700;
    color: rgba(255,255,255,.65);
    margin-bottom: 16px;
    letter-spacing: .05em;
}

.news-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.news-stat-item {
    background: rgba(255,255,255,.06);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}

.news-stat-num {
    font-family: 'Cairo', sans-serif;
    font-size: 1.45rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    display: block;
}

.news-stat-lbl {
    font-size: .65rem;
    color: rgba(255,255,255,.55);
    margin-top: 4px;
}

/* النشرة البريدية */
.news-newsletter-box {
    background: var(--dark-2);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 24px;
    text-align: center;
}

html.light .news-newsletter-box {
    background: #eaf0f6;
    border-color: rgba(64,126,189,.15);
}

.news-newsletter-icon {
    width: 48px;
    height: 48px;
    background: rgba(64,126,189,.12);
    border: 1px solid rgba(64,126,189,.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.2rem;
    color: var(--brand);
}

.news-newsletter-box h4 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

html.light .news-newsletter-box h4 {
    color: #1a2a3a;
}

.news-newsletter-box p {
    font-size: .78rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

.news-nl-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-nl-input {
    background: var(--dark-3);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--text);
    font-family: 'Tajawal', sans-serif;
    font-size: .82rem;
    outline: none;
    transition: border-color .25s;
}

    .news-nl-input:focus {
        border-color: var(--brand);
    }

    .news-nl-input::placeholder {
        color: var(--text-muted);
    }

html.light .news-nl-input {
    background: #f4f7fa;
    border-color: rgba(64,126,189,.2);
    color: #1a2a3a;
}

.news-nl-btn {
    background: var(--brand);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-family: 'Tajawal', sans-serif;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s;
}

    .news-nl-btn:hover {
        background: var(--brand-dark);
    }

/* المواضيع الرائجة */
.news-trending-box {
    background: var(--dark-2);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
}

html.light .news-trending-box {
    background: #eaf0f6;
    border-color: rgba(64,126,189,.15);
}

.news-trending-head {
    padding: 14px 18px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    font-weight: 700;
    color: var(--text);
}

html.light .news-trending-head {
    color: #1a2a3a;
}

.news-trending-head i {
    color: var(--brand);
}

.news-trending-list {
    padding: 8px 0;
}

.news-trending-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    cursor: pointer;
    transition: background .2s;
}

    .news-trending-item:hover {
        background: var(--glass);
    }

.news-trending-num {
    font-family: 'Cairo', sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--glass-border);
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

html.light .news-trending-num {
    color: rgba(64,126,189,.3);
}

.news-trending-text {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.4;
    transition: color .2s;
}

.news-trending-item:hover .news-trending-text {
    color: var(--brand);
}

/* ========== صفحة تفاصيل الخبر (Modal) ========== */
.news-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    z-index: 9999;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    overflow-y: auto;
    backdrop-filter: blur(6px);
}

    .news-modal-overlay.open {
        display: flex;
    }

.news-modal {
    background: var(--dark-2);
    border-radius: 24px;
    width: 100%;
    max-width: 800px;
    border: 1px solid var(--glass-border);
    animation: newsModalIn .35s ease;
    position: relative;
}

html.light .news-modal {
    background: #ffffff;
    border-color: rgba(64,126,189,.18);
}

@keyframes newsModalIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-modal-img {
    height: 300px;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
    position: relative;
}

    .news-modal-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.news-modal-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,15,30,.85) 0%, transparent 50%);
}

html.light .news-modal-img-overlay {
    background: linear-gradient(to top, rgba(10,15,30,.7) 0%, transparent 50%);
}

.news-modal-img-title {
    position: absolute;
    bottom: 24px;
    right: 28px;
    left: 28px;
    font-family: 'Cairo', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    color: white;
    line-height: 1.3;
}

.news-modal-close {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 38px;
    height: 38px;
    background: rgba(0,0,0,.5);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    z-index: 2;
}

    .news-modal-close:hover {
        background: var(--brand);
    }

.news-modal-body {
    padding: 28px 32px;
}

.news-modal-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.news-modal-tag {
    background: rgba(64,126,189,.12);
    color: var(--brand-light);
    font-size: .7rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 4px;
    letter-spacing: .05em;
}

html.light .news-modal-tag {
    color: var(--brand-dark);
}

.news-modal-date {
    font-size: .75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-modal-text {
    color: var(--text-muted);
    font-size: .92rem;
    line-height: 1.8;
}

html.light .news-modal-text {
    color: #4a6580;
}

.news-modal-text p {
    margin-bottom: 16px;
}

.news-modal-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

    .news-modal-share span {
        font-size: .78rem;
        font-weight: 700;
        color: var(--text-muted);
    }

.news-share-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    transition: all .25s;
}

    .news-share-btn:hover {
        background: var(--brand);
        border-color: var(--brand);
        color: white;
    }

/* ========== شريط التحميل والمزيد من الأخبار ========== */
.news-load-more {
    text-align: center;
    margin: 32px 0 0;
}

.news-load-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1.5px solid var(--brand);
    color: var(--brand);
    border-radius: 10px;
    padding: 11px 28px;
    font-family: 'Tajawal', sans-serif;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .3s;
}

    .news-load-btn:hover {
        background: var(--brand);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(64,126,189,.3);
    }

/* ========== تجاوب ========== */
@media (max-width: 1024px) {
    .news-hero-grid {
        grid-template-columns: 1fr;
    }

    .news-hero-sidebar {
        grid-template-columns: 1fr 1fr;
        display: grid;
    }

    .news-content-area {
        grid-template-columns: 1fr;
    }

    .news-sidebar-col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .news-breaking-box,
    .news-trending-box {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .news-hero-section {
        padding: 28px 20px 0;
    }

    .news-content-area {
        padding: 0 20px 48px;
    }

    .news-section-divider {
        padding: 0 20px;
    }

    .news-cards-grid {
        grid-template-columns: 1fr;
    }

    .news-hero-img {
        height: 280px;
    }

    .news-hero-sidebar {
        grid-template-columns: 1fr;
    }

    .news-masthead-inner {
        padding: 0 16px;
    }

    .news-masthead-search {
        display: none;
    }

    .news-masthead-cats {
        overflow-x: auto;
        gap: 0;
    }

    .news-masthead-date {
        display: none;
    }

    .news-sidebar-col {
        grid-template-columns: 1fr;
    }

    .news-modal-body {
        padding: 20px;
    }

    .news-modal-img-title {
        font-size: 1.1rem;
    }
}

/* ========== المشاركات الخارجية والفعاليات ========== */
.events-box {
    background: var(--dark-2);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
}

html.light .events-box {
    background: #eaf0f6;
    border-color: rgba(64,126,189,.15);
}

.events-head {
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .events-head i {
        color: white;
        font-size: 1rem;
    }

    .events-head span {
        color: white;
        font-weight: 800;
        font-size: .85rem;
        letter-spacing: .05em;
    }

.events-list {
    padding: 8px 0;
}

.event-item {
    display: flex;
    gap: 14px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--glass-border);
}

    .event-item:last-child {
        border-bottom: none;
    }

    .event-item:hover {
        background: var(--glass);
        transform: translateX(-4px);
    }

.event-img {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
}

    .event-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.event-item:hover .event-img img {
    transform: scale(1.08);
}

.event-info {
    flex: 1;
}

.event-title {
    font-size: .85rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

html.light .event-title {
    color: #1a2a3a;
}

.event-date {
    font-size: .68rem;
    color: var(--brand-light);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 3px;
}

.event-location {
    font-size: .65rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

    .event-location i {
        font-size: .6rem;
    }

/* ========== إنجازات الشركة 2025-2026 ========== */
.achievements-box {
    background: linear-gradient(135deg, var(--dark-2), var(--dark-3));
    border-radius: 20px;
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

html.light .achievements-box {
    background: linear-gradient(135deg, #ffffff, #f4f7fa);
    border-color: rgba(64,126,189,0.15);
}

.achievements-header {
    text-align: center;
    padding: 24px 20px 16px;
    position: relative;
    background: linear-gradient(135deg, rgba(64,126,189,0.05), rgba(64,126,189,0.02));
}

.achievements-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    box-shadow: 0 8px 20px rgba(64,126,189,0.3);
    animation: iconPulse 2s ease infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 20px rgba(64,126,189,0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 30px rgba(64,126,189,0.5);
    }
}

.achievements-icon i {
    font-size: 1.8rem;
    color: white;
}

.achievements-title {
    font-family: 'Cairo', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

html.light .achievements-title {
    color: #1a2a3a;
}

.achievements-title span {
    color: var(--brand);
    font-weight: 900;
}

.achievements-subtitle {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--glass-border);
    padding: 0;
}

.achievement-card {
    background: var(--dark-2);
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

html.light .achievement-card {
    background: #ffffff;
}

.achievement-card:hover {
    transform: translateY(-2px);
    background: var(--glass);
}

html.light .achievement-card:hover {
    background: rgba(64,126,189,0.05);
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand), transparent);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.achievement-card:hover::before {
    transform: translateX(0);
}

.achievement-icon {
    width: 50px;
    height: 50px;
    background: rgba(64,126,189,0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.achievement-card:hover .achievement-icon {
    background: var(--brand);
    transform: scale(1.05) rotate(5deg);
}

    .achievement-card:hover .achievement-icon i {
        color: white;
    }

.achievement-icon i {
    font-size: 1.3rem;
    color: var(--brand);
    transition: all 0.3s ease;
}

.achievement-content {
    flex: 1;
}

.achievement-number {
    font-family: 'Cairo', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--brand);
    line-height: 1;
    letter-spacing: -0.5px;
}

    .achievement-number span {
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--brand-light);
    }

.achievement-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.3;
}

.achievement-progress {
    margin-top: 10px;
    height: 3px;
    background: var(--glass-border);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--brand), var(--brand-light));
    border-radius: 3px;
    position: relative;
    animation: progressMove 1.5s ease-out;
}

@keyframes progressMove {
    from {
        width: 0;
    }

    to {
        width: var(--target-width);
    }
}

/* أنماط إضافية للشاشات الصغيرة */
@media (max-width: 500px) {
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        background: transparent;
    }

    .achievement-card {
        border-radius: 12px;
        border: 1px solid var(--glass-border);
        margin-bottom: 6px;
    }

    .achievement-number {
        font-size: 1.3rem;
    }

    .achievement-icon {
        width: 45px;
        height: 45px;
    }

        .achievement-icon i {
            font-size: 1.1rem;
        }
}

/* تأثير ظهور متحرك */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.achievement-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

    .achievement-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .achievement-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .achievement-card:nth-child(3) {
        animation-delay: 0.3s;
    }

    .achievement-card:nth-child(4) {
        animation-delay: 0.4s;
    }
