:root {
    --mf-ink: #111827;
    --mf-muted: #64748b;
    --mf-line: rgba(15, 23, 42, .09);
    --mf-violet: #5b5cf0;
    --mf-cyan: #22d3ee;
    --mf-surface: #fff;
}

.mf-news-shell { background: #f8fafc; color: var(--mf-ink); min-height: 70vh; }
.mf-news-container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.mf-news-hero { position: relative; overflow: hidden; background: #0b1024; color: #fff; isolation: isolate; }
.mf-news-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; opacity: .28; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, #000, transparent); }
.mf-news-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, rgba(91,92,240,.38), transparent 44%, rgba(34,211,238,.14)); }
.mf-news-orb { position: absolute; border-radius: 999px; filter: blur(1px); opacity: .5; z-index: -1; }
.mf-news-orb-one { width: 420px; height: 420px; right: -140px; top: -260px; background: radial-gradient(circle, #7c3aed, transparent 68%); }
.mf-news-orb-two { width: 360px; height: 360px; left: -110px; bottom: -270px; background: radial-gradient(circle, #0891b2, transparent 68%); }
.mf-news-hero-inner { padding-block: 74px 82px; text-align: center; }
.mf-news-kicker { display: inline-flex; gap: 9px; align-items: center; color: #c4b5fd; font-size: .86rem; font-weight: 800; letter-spacing: .02em; margin-bottom: 20px; }
.mf-news-kicker span, .mf-news-live i, .mf-news-trending i { width: 8px; height: 8px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 0 6px rgba(34,211,238,.13); }
.mf-news-hero h1 { font-size: clamp(2.35rem, 7vw, 5.25rem); line-height: 1.12; font-weight: 950; letter-spacing: -.045em; margin: 0; }
.mf-news-hero p { max-width: 760px; margin: 24px auto 0; font-size: clamp(1rem, 2vw, 1.18rem); line-height: 2; color: #cbd5e1; }
.mf-news-hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.mf-news-primary-action, .mf-news-secondary-action { padding: 12px 21px; border-radius: 14px; text-decoration: none; font-weight: 850; transition: transform .2s, background .2s, border-color .2s; }
.mf-news-primary-action { color: #10152f; background: linear-gradient(135deg, #fff, #dbeafe); box-shadow: 0 12px 32px rgba(0,0,0,.22); }
.mf-news-secondary-action { color: #fff; border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.07); backdrop-filter: blur(10px); }
.mf-news-primary-action:hover, .mf-news-secondary-action:hover { transform: translateY(-2px); }
.mf-news-category-bar { position: sticky; top: 72px; z-index: 30; background: rgba(255,255,255,.9); border-bottom: 1px solid var(--mf-line); backdrop-filter: blur(18px); }
.mf-news-category-scroll { display: flex; gap: 8px; overflow-x: auto; padding-block: 13px; scrollbar-width: none; }
.mf-news-category-scroll::-webkit-scrollbar { display: none; }
.mf-news-category-scroll a { flex: 0 0 auto; padding: 9px 15px; border-radius: 999px; color: #475569; text-decoration: none; font-size: .88rem; font-weight: 800; border: 1px solid transparent; }
.mf-news-category-scroll a:hover { background: #f1f5f9; color: var(--mf-ink); }
.mf-news-category-scroll a.is-active { color: var(--category-color, #4338ca); border-color: color-mix(in srgb, var(--category-color, #4f46e5) 24%, transparent); background: color-mix(in srgb, var(--category-color, #4f46e5) 9%, white); }
.mf-news-main { padding-block: 46px 80px; }
.mf-news-featured { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(330px, .8fr); direction: ltr; border-radius: 30px; overflow: hidden; background: #fff; border: 1px solid var(--mf-line); box-shadow: 0 20px 65px rgba(15,23,42,.08); }
.mf-news-featured > * { direction: rtl; }
.mf-news-featured-media { position: relative; display: block; min-height: 460px; background: #151b38; overflow: hidden; }
.mf-news-featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.mf-news-featured:hover img { transform: scale(1.035); }
.mf-news-featured-pattern { display: block; width: 100%; height: 100%; min-height: 420px; background: radial-gradient(circle at 70% 20%, rgba(34,211,238,.52), transparent 24%), radial-gradient(circle at 25% 80%, rgba(124,58,237,.62), transparent 30%), linear-gradient(135deg, #111936, #25256e); }
.mf-news-featured-pattern::after { content: "خبر"; display: grid; place-items: center; height: 100%; color: rgba(255,255,255,.76); font-size: clamp(3rem, 7vw, 6rem); font-weight: 950; }
.mf-news-trending { position: absolute; right: 20px; top: 20px; display: flex; gap: 9px; align-items: center; padding: 9px 13px; border-radius: 999px; background: rgba(8,15,36,.78); color: #fff; font-size: .78rem; font-weight: 850; backdrop-filter: blur(12px); }
.mf-news-featured-content { padding: clamp(30px, 5vw, 58px); display: flex; flex-direction: column; justify-content: center; }
.mf-news-category { display: inline-flex; width: fit-content; align-items: center; padding: 7px 11px; border-radius: 999px; color: var(--category-color); background: color-mix(in srgb, var(--category-color) 10%, white); text-decoration: none; font-size: .77rem; font-weight: 900; }
.mf-news-featured h2 { font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1.5; letter-spacing: -.025em; margin: 17px 0 12px; font-weight: 950; }
.mf-news-featured h2 a, .mf-news-card h2 a { color: inherit; text-decoration: none; }
.mf-news-featured-content > p { color: var(--mf-muted); font-size: 1rem; line-height: 1.95; }
.mf-news-featured-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--mf-line); color: #94a3b8; font-size: .82rem; }
.mf-news-featured-footer a, .mf-news-read { color: #4338ca; text-decoration: none; font-weight: 900; }
.mf-news-section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 52px 0 22px; }
.mf-news-section-head span { color: #6366f1; font-size: .78rem; font-weight: 900; }
.mf-news-section-head h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); margin: 5px 0 0; font-weight: 950; letter-spacing: -.025em; }
.mf-news-live { display: flex; align-items: center; gap: 10px; color: #64748b !important; padding: 9px 12px; border: 1px solid var(--mf-line); border-radius: 999px; background: #fff; }
.mf-news-live i { width: 7px; height: 7px; background: #22c55e; box-shadow: 0 0 0 5px rgba(34,197,94,.1); }
.mf-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.mf-news-card { overflow: hidden; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--mf-line); border-radius: 22px; background: var(--mf-surface); box-shadow: 0 8px 30px rgba(15,23,42,.045); transition: transform .25s, box-shadow .25s; }
.mf-news-card:hover { transform: translateY(-5px); box-shadow: 0 18px 45px rgba(15,23,42,.1); }
.mf-news-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #eef2ff; }
.mf-news-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mf-news-card:hover .mf-news-card-media img { transform: scale(1.045); }
.mf-news-card-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: #fff; background: radial-gradient(circle at 20% 10%, rgba(255,255,255,.32), transparent 30%), linear-gradient(135deg, var(--category-color), color-mix(in srgb, var(--category-color) 48%, #111827)); }
.mf-news-card-placeholder svg { width: 62px; fill: currentColor; opacity: .9; }
.mf-news-card-body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.mf-news-meta { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.mf-news-meta time { color: #94a3b8; font-size: .73rem; }
.mf-news-card h2 { margin: 14px 0 8px; font-size: 1.1rem; line-height: 1.72; font-weight: 950; }
.mf-news-card p { color: var(--mf-muted); font-size: .88rem; line-height: 1.85; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mf-news-read { margin-top: auto; padding-top: 15px; font-size: .84rem; }
.mf-news-pagination { margin-top: 36px; }
.mf-news-empty { padding: 70px 22px; text-align: center; border: 1px dashed rgba(99,102,241,.28); border-radius: 26px; background: linear-gradient(135deg, #fff, #f5f3ff); }
.mf-news-empty > span { display: block; color: #7c3aed; font-size: 2.5rem; }.mf-news-empty h2 { margin: 8px 0; font-size: 1.7rem; }.mf-news-empty p { color: var(--mf-muted); }

.mf-article-shell { padding-block: 34px 80px; }
.mf-article-layout { max-width: 980px; }
.mf-news-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: #94a3b8; font-size: .8rem; margin-bottom: 32px; }
.mf-news-breadcrumb a { color: #64748b; text-decoration: none; }
.mf-article { background: #fff; border-radius: 30px; padding: clamp(24px, 6vw, 68px); border: 1px solid var(--mf-line); box-shadow: 0 20px 70px rgba(15,23,42,.07); }
.mf-article-header { text-align: center; max-width: 810px; margin-inline: auto; }
.mf-article-header .mf-news-category { margin-inline: auto; }
.mf-article-header h1 { font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.42; letter-spacing: -.035em; font-weight: 950; margin: 22px 0 15px; }
.mf-article-lead { color: #64748b; font-size: clamp(1rem, 2vw, 1.2rem); line-height: 2; }
.mf-article-byline { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 10px; color: #94a3b8; font-size: .78rem; margin-top: 23px; }
.mf-article-byline i { width: 4px; height: 4px; border-radius: 50%; background: #cbd5e1; }
.mf-article-cover { overflow: hidden; margin: 38px 0; border-radius: 22px; background: #111936; }
.mf-article-cover img { display: block; width: 100%; max-height: 620px; object-fit: cover; }
.mf-article-cover.is-placeholder { height: min(480px, 50vw); }.mf-article-cover .mf-news-featured-pattern { min-height: 100%; }
.mf-article-cover figcaption { padding: 10px 16px; color: #64748b; background: #f8fafc; font-size: .75rem; }.mf-article-cover figcaption span { color: #94a3b8; }
.mf-article-content { max-width: 760px; margin-inline: auto; color: #273449; font-size: 1.04rem; line-height: 2.2; }
.mf-article-content p { margin: 0 0 1.35em; }.mf-article-content h2 { margin: 2.1em 0 .65em; color: #111827; font-size: 1.65rem; line-height: 1.6; font-weight: 950; }.mf-article-content h3 { margin: 1.8em 0 .6em; font-size: 1.28rem; font-weight: 900; }
.mf-article-content ul, .mf-article-content ol { margin: 1em 1.4em 1.6em 0; }.mf-article-content li { margin-bottom: .45em; }
.mf-article-content blockquote { margin: 1.6em 0; padding: 17px 20px; border-right: 4px solid #6366f1; border-radius: 12px 0 0 12px; background: #f5f3ff; color: #4c1d95; }
.mf-article-sources { max-width: 760px; margin: 42px auto 0; padding: 24px; border-radius: 20px; background: #f8fafc; border: 1px solid var(--mf-line); }
.mf-source-heading { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 15px; }.mf-source-heading span { font-weight: 950; }.mf-source-heading small { color: #94a3b8; }
.mf-article-sources ol { list-style: none; margin: 0; padding: 0; counter-reset: source; }.mf-article-sources li + li { border-top: 1px solid var(--mf-line); }
.mf-article-sources a { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 13px 0; color: #334155; text-decoration: none; }.mf-article-sources a strong { color: #4338ca; font-size: .8rem; }.mf-article-sources a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .84rem; }.mf-article-sources a i { font-style: normal; }
.mf-article-tags { max-width: 760px; display: flex; flex-wrap: wrap; gap: 8px; margin: 26px auto 0; }.mf-article-tags span { padding: 7px 11px; border-radius: 999px; color: #64748b; background: #f1f5f9; font-size: .77rem; }
.mf-related { margin-top: 50px; }.mf-related .mf-news-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }

@media (max-width: 900px) {
    .mf-news-featured { grid-template-columns: 1fr; }.mf-news-featured-media { min-height: 360px; }.mf-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mf-related .mf-news-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 620px) {
    .mf-news-container { width: min(100% - 22px, 1180px); }.mf-news-hero-inner { padding-block: 55px 62px; }.mf-news-hero h1 { font-size: 2.65rem; }
    .mf-news-category-bar { top: 68px; }.mf-news-main { padding-top: 24px; }.mf-news-featured { border-radius: 22px; }.mf-news-featured-media { min-height: 260px; }.mf-news-featured-content { padding: 25px; }
    .mf-news-grid, .mf-related .mf-news-grid { grid-template-columns: 1fr; }.mf-news-section-head { align-items: center; }.mf-news-live { display: none; }
    .mf-article-shell { padding-top: 16px; }.mf-article { border-radius: 22px; padding: 22px 18px 32px; }.mf-article-header h1 { font-size: 2rem; }.mf-article-cover { margin-inline: -8px; border-radius: 18px; }
    .mf-source-heading { flex-direction: column; }.mf-article-sources a { grid-template-columns: 1fr auto; }.mf-article-sources a strong { grid-column: 1 / -1; }.mf-article-sources a span { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) { .mf-news-card, .mf-news-card img, .mf-news-featured img, .mf-news-primary-action, .mf-news-secondary-action { transition: none !important; } }
