/* «آراء الطلاب» strip + «الأخبار والفعاليات» (home section and news.html) */
.bx-fb-card { flex: none; width: 300px; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); cursor: zoom-in; padding: 0; display: block; box-shadow: var(--shadow-card); transition: transform .2s ease, border-color .2s ease; }
.bx-fb-card:hover, .bx-fb-card:focus-visible { transform: translateY(-3px); border-color: var(--brand-lime); }
.bx-fb-card img { display: block; width: 100%; aspect-ratio: 810 / 690; object-fit: cover; background: #fff; }
.bx-fb-text { direction: rtl; text-align: start; padding: var(--space-6); display: grid; gap: 10px; align-content: start; min-height: 220px; cursor: default; }
.bx-fb-text q { font-size: 15.5px; line-height: 1.9; color: var(--ink); quotes: '«' '»'; }
.bx-fb-text b { color: var(--accent-text); font-size: 14px; }
.bx-fb-text small { color: var(--ink-muted); }
html[data-lang="en"] .bx-fb-text { direction: ltr; }
@media (max-width: 600px) { .bx-fb-card { width: 240px; } }

.nw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.nw-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.nw-card:hover, .nw-card:focus-visible { transform: translateY(-3px); border-color: var(--brand-lime); }
.nw-cover { position: relative; aspect-ratio: 16 / 9; background: var(--surface-raised); overflow: hidden; }
.nw-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nw-kind { position: absolute; top: 12px; inset-inline-start: 12px; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--brand-lime); color: #010232; }
.nw-kind.ev { background: #ffd76a; }
.nw-body { padding: 16px 18px 20px; display: grid; gap: 8px; }
.nw-body time { font-size: 13px; color: var(--ink-muted); }
.nw-body h3 { margin: 0; font-size: 17px; line-height: 1.6; }
.nw-body p { margin: 0; color: var(--ink-muted); font-size: 14.5px; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nw-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 24px; }

.nw-article { max-width: 820px; margin: 0 auto; }
.nw-article .nw-hero { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 16 / 9; object-fit: cover; display: block; margin: 8px 0 24px; background: var(--surface-raised); }
.nw-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; color: var(--ink-muted); font-size: 14px; margin: 0 0 8px; }
.nw-meta .nw-kind { position: static; }
.nw-article .nw-text p { font-size: 16.5px; line-height: 2; margin: 0 0 14px; white-space: pre-line; }
.nw-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 24px 0; }
.nw-gallery button { padding: 0; border: 0; border-radius: var(--radius-md); overflow: hidden; cursor: zoom-in; background: var(--surface-raised); aspect-ratio: 1; }
.nw-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }

.nw-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(1, 2, 30, .92); display: grid; place-items: center; padding: 16px; }
.nw-lightbox img { max-width: min(1100px, 100%); max-height: 88vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #fff; }
.nw-lightbox button { position: absolute; top: 14px; inset-inline-end: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 22px; cursor: pointer; }
.nw-lightbox .nw-prev, .nw-lightbox .nw-next { top: 50%; transform: translateY(-50%); }
.nw-lightbox .nw-prev { inset-inline-end: auto; inset-inline-start: 14px; }
.nw-lightbox .nw-next { inset-inline-end: 14px; }

.bx-marquee .nw-card { flex: none; width: 320px; }
@media (max-width: 600px) { .bx-marquee .nw-card { width: 260px; } }
