/* أخبار المنصة — a news item (news.js), in the mosque's popup (index.html) and the owner's preview (superadmin.html) */

.news-meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: .82rem; color: #64748B; margin-bottom: .6rem; }
.news-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .7rem; border-radius: 999px; background: #ECFDF5; color: #047857; font-weight: 700; }
.news-title { font-size: clamp(1.25rem, 1.05rem + 1vw, 1.65rem); font-weight: 800; line-height: 1.35; color: #0F172A; margin: 0 0 .75rem; }
.news-text { font-size: 1rem; line-height: 1.85; color: #334155; }
.news-text p { margin: 0 0 .8rem; }
.news-text ul { margin: 0 0 .9rem; padding-inline-start: 1.3rem; }
.news-text li { margin-bottom: .3rem; }
.news-text strong { color: #0F172A; }

.news-steps { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
.news-step-caption { display: flex; align-items: flex-start; gap: .55rem; font-weight: 600; color: #0F172A; line-height: 1.6; margin-bottom: .5rem; }
.news-step-num { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: #047857; color: #fff; display: grid; place-items: center; font-size: .85rem; font-weight: 700; margin-top: .05rem; }
.news-shot { display: block; width: 100%; padding: 0; border: 1px solid #E2E8F0; border-radius: 14px; overflow: hidden; background: #0F172A; cursor: zoom-in; box-shadow: 0 1px 3px rgba(15, 23, 42, .08); }
.news-shot img { display: block; width: 100%; height: auto; }

/* Full-screen picture */
.news-zoom { position: fixed; inset: 0; z-index: 3000; background: rgba(2, 6, 23, .92); display: flex; align-items: center; justify-content: center; padding: 1rem; cursor: zoom-out; }
.news-zoom[hidden] { display: none; }
.news-zoom img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; }
.news-zoom-close { position: absolute; top: max(14px, env(safe-area-inset-top)); left: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff; font-size: 1.1rem; cursor: pointer; }

/* The mosque's popup */
.news-modal { position: fixed; inset: 0; z-index: 2000; background: rgba(15, 23, 42, .55); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.news-card { width: 100%; max-width: 760px; max-height: min(92vh, 1000px); background: #fff; border-radius: 22px; box-shadow: 0 24px 64px rgba(15, 23, 42, .3); display: flex; flex-direction: column; overflow: hidden; animation: newsIn .3s ease; }
@keyframes newsIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .news-card { animation: none; } }
.news-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 1.5rem 1.5rem 1rem; }
.news-foot { display: flex; align-items: center; gap: .5rem; padding: .85rem 1.5rem; padding-bottom: max(.85rem, env(safe-area-inset-bottom)); border-top: 1px solid #E2E8F0; background: #F8FAFC; }
.news-count { flex: 1; font-size: .82rem; color: #64748B; }
.news-btn { min-height: 44px; padding: 0 1.1rem; border-radius: 12px; border: 1px solid #E2E8F0; background: #fff; color: #334155; font: inherit; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; }
.news-btn.primary { background: #047857; border-color: #047857; color: #fff; }
.news-btn.primary:hover { background: #064E3B; }
.news-btn:disabled { opacity: .6; cursor: default; }
body.news-open { overflow: hidden; }
@media (max-width: 600px) {
    .news-modal { padding: 0; align-items: flex-end; }
    .news-card { max-height: 94vh; border-radius: 22px 22px 0 0; }
    .news-scroll { padding: 1.15rem 1rem .75rem; }
    .news-foot { padding-inline: 1rem; }
    .news-count { display: none; }
    .news-btn.primary { flex: 1; justify-content: center; }
}
