/* Nowagram village website — premium green rural theme.
   Bengali-first, mobile-first. Fonts: Hind Siliguri (body),
   Noto Serif Bengali (display headings). */
:root {
  --green-900: #0c3b22;
  --green-800: #14532d;
  --green-700: #166534;
  --green-600: #15803d;
  --green-100: #dcfce7;
  --green-50: #f0fdf4;
  --cream: #f7f5ef;
  --paper: #fffdf7;
  --gold: #b45309;
  --gold-light: #fef3c7;
  --ink: #1c241e;
  --muted: #5b665e;
  --line: #e3e0d3;
  --shadow: 0 6px 24px rgba(12, 59, 34, 0.10);
  --shadow-sm: 0 2px 10px rgba(12, 59, 34, 0.08);
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Hind Siliguri", system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 680px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
a { color: var(--green-700); }
img { max-width: 100%; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 247, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  color: #fff; display: grid; place-items: center;
  font-family: "Noto Serif Bengali", serif; font-weight: 700; font-size: 22px;
  flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-family: "Noto Serif Bengali", serif; font-size: 20px; color: var(--green-800); }
.brand-text small { font-size: 12px; color: var(--muted); }
.menu-btn {
  margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: 10px; font-size: 22px; line-height: 1; padding: 6px 12px;
  cursor: pointer; color: var(--green-800);
}
.nav { display: none; }
.nav.open {
  display: flex; flex-direction: column; gap: 2px;
  position: absolute; top: 60px; left: 0; right: 0;
  background: var(--paper); border-bottom: 1px solid var(--line);
  padding: 8px 16px 14px; box-shadow: var(--shadow);
}
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 600;
  padding: 8px 10px; border-radius: 8px;
}
.nav a:hover { background: var(--green-50); color: var(--green-800); }
.nav a.nav-admin { color: var(--gold); }
@media (min-width: 900px) {
  .menu-btn { display: none; }
  .nav { display: flex; margin-left: auto; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
  .nav a { font-size: 15px; padding: 6px 9px; }
}

/* notification bell */
.notif-wrap { position: relative; margin-left: auto; flex: none; }
@media (min-width: 900px) { .notif-wrap { margin-left: 8px; order: 3; } }
.notif-bell {
  position: relative; background: none; border: 1px solid var(--line);
  border-radius: 50%; width: 42px; height: 42px; display: grid; place-items: center;
  cursor: pointer; color: var(--green-800);
}
.notif-bell:hover { background: var(--green-50); }
.notif-badge {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px;
  padding: 0 5px; border-radius: 999px; background: var(--red, #991b1b); color: #fff;
  font-size: 12px; font-weight: 700; display: grid; place-items: center;
}
.notif-panel {
  position: absolute; top: 50px; right: 0; width: min(360px, calc(100vw - 24px));
  max-height: 70vh; overflow-y: auto; background: var(--paper);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  z-index: 60;
}
.notif-panel-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--paper);
}
.notif-panel-head button {
  background: none; border: none; color: var(--green-700); font-family: inherit;
  font-size: 13px; font-weight: 700; cursor: pointer;
}
#notifList .notif-item { padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
#notifList .notif-item:last-child { border-bottom: none; }
#notifList .notif-item:hover { background: var(--green-50); }
#notifList .notif-item.notif-unread { background: #fffbeb; border-left: 4px solid var(--gold); }
#notifList .notif-item b { display: block; font-size: 14px; }
#notifList .notif-item p { margin: 2px 0; font-size: 13px; }
#notifList .notif-item small { color: var(--muted); font-size: 12px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(255, 255, 255, 0.12), transparent 60%),
    linear-gradient(160deg, var(--green-800) 0%, var(--green-900) 70%);
  color: #fff; overflow: hidden;
}
.hero-in { padding: 56px 16px 64px; text-align: center; position: relative; z-index: 1; }
.hero-kicker {
  display: inline-block; margin: 0 0 10px;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 4px 14px; border-radius: 999px; font-size: 15px; font-weight: 600;
}
.hero h1 {
  font-family: "Noto Serif Bengali", serif; font-size: 56px; line-height: 1.15;
  margin: 0 0 8px; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}
.hero-text { max-width: 640px; margin: 0 auto 22px; font-size: 17px; opacity: 0.94; }
.hero-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.hero-chips span {
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px; padding: 3px 12px; font-size: 14px;
}
.hero-wave {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 34px;
  background: var(--cream);
  clip-path: ellipse(60% 100% at 50% 100%);
}
@media (min-width: 700px) {
  .hero h1 { font-size: 76px; }
  .hero-in { padding: 72px 16px 84px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 16px; font-weight: 700;
  padding: 11px 22px; border-radius: 999px; transition: transform 0.1s, box-shadow 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-gold { background: linear-gradient(135deg, #d97706, var(--gold)); color: #fff; box-shadow: 0 4px 16px rgba(180, 83, 9, 0.35); }
.btn-green { background: var(--green-700); color: #fff; box-shadow: 0 4px 16px rgba(22, 101, 52, 0.3); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, 0.7); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: wait; }

/* ---------- sections ---------- */
.section { padding: 44px 0; }
.section-alt { background: var(--green-50); }
.sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.sec-head h2 {
  font-family: "Noto Serif Bengali", serif; font-size: 28px; margin: 0;
  color: var(--green-900);
}
.sec-rule { flex: 1; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--green-600), transparent); }
.sec-sub { color: var(--muted); margin: 0 0 20px; }
.sub-head { font-family: "Noto Serif Bengali", serif; color: var(--green-800); font-size: 20px; margin: 26px 0 12px; }
.about-text { font-size: 17px; max-width: 760px; white-space: pre-line; }

/* ---------- latest strip ---------- */
.strip { padding: 0 0 8px; margin-top: -8px; }
.strip-in { display: grid; gap: 14px; }
@media (min-width: 800px) { .strip-in { grid-template-columns: repeat(3, 1fr); } }
.strip-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-sm);
}
.strip-card h2 { font-size: 18px; margin: 0 0 10px; color: var(--green-800); font-family: "Noto Serif Bengali", serif; }
.strip-card .more { display: inline-block; margin-top: 10px; font-weight: 700; text-decoration: none; }
.strip-item { padding: 8px 0; border-bottom: 1px dashed var(--line); cursor: pointer; }
.strip-item:last-child { border-bottom: none; }
.strip-item b { display: block; font-size: 15px; line-height: 1.5; }
.strip-item small { color: var(--muted); font-size: 13px; }

/* ---------- facts ---------- */
.fact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 22px 0; }
@media (min-width: 700px) { .fact-grid { grid-template-columns: repeat(5, 1fr); } }
.fact {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; text-align: center; box-shadow: var(--shadow-sm);
}
.fact small { display: block; color: var(--muted); font-size: 13px; }
.fact strong { color: var(--green-800); font-size: 16px; }
.map-row { margin-top: 8px; }

/* ---------- notices ---------- */
.notice-list { display: grid; gap: 12px; }
.notice {
  background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--green-600);
  border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.notice.important { border-left-color: var(--gold); background: #fffbeb; }
.notice-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.notice-head h3 { margin: 0; font-size: 18px; flex: 1; }
.notice-date { color: var(--muted); font-size: 13px; white-space: nowrap; }
.notice .badge {
  background: var(--gold-light); color: var(--gold); font-size: 12px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
}
.notice p { margin: 8px 0 0; white-space: pre-line; }

/* ---------- news ---------- */
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; align-items: end; }
.filters label { font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.filters select {
  font-family: inherit; font-size: 15px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper); min-width: 160px;
}
.news-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
.news-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; display: flex; flex-direction: column;
}
.news-card:hover { box-shadow: var(--shadow); }
.news-card img { width: 100%; height: 170px; object-fit: cover; background: var(--green-100); }
.news-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.news-meta { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.news-cat {
  background: var(--green-100); color: var(--green-800); font-weight: 700;
  padding: 1px 9px; border-radius: 999px; font-size: 12px;
}
.news-card h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.5; }
.news-card p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.news-read { margin-top: 10px; font-weight: 700; color: var(--green-700); font-size: 14px; }

/* ---------- events ---------- */
.event-list { display: grid; gap: 12px; }
.event {
  display: flex; gap: 16px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px; box-shadow: var(--shadow-sm); align-items: flex-start;
}
.event-date {
  flex: none; width: 64px; text-align: center; background: var(--green-800); color: #fff;
  border-radius: 12px; padding: 8px 4px; line-height: 1.3;
}
.event-date b { display: block; font-size: 24px; }
.event-date small { font-size: 13px; }
.event.past .event-date { background: #6b7a6e; }
.event h3 { margin: 0 0 4px; font-size: 18px; }
.event p { margin: 0; color: var(--muted); font-size: 15px; white-space: pre-line; }
.event .event-loc { color: var(--green-700); font-weight: 600; font-size: 14px; margin-top: 4px; }

/* ---------- institutions ---------- */
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px;
}
.chip.active { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.inst-grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .inst-grid { grid-template-columns: repeat(2, 1fr); } }
.inst-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-sm);
}
.inst-card h3 { margin: 0 0 4px; font-size: 19px; }
.inst-type {
  display: inline-block; background: var(--green-100); color: var(--green-800);
  font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; margin-bottom: 8px;
}
.inst-card dl { margin: 0; font-size: 15px; }
.inst-card dt { color: var(--muted); font-size: 13px; }
.inst-card dd { margin: 0 0 8px; }
.inst-card .desc { color: var(--muted); white-space: pre-line; }
.inst-map { margin: 0 0 8px; }
.inst-map a { color: var(--green-700); font-weight: 600; text-decoration: none; }
.inst-map a:hover { text-decoration: underline; }

/* ---------- representatives ---------- */
.rep-grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .rep-grid { grid-template-columns: repeat(2, 1fr); } }
.rep-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); text-align: center; padding-bottom: 20px;
}
.rep-card img { width: 100%; height: 300px; object-fit: cover; object-position: top; background: var(--green-100); }
.rep-card h3 { margin: 14px 0 2px; font-size: 22px; font-family: "Noto Serif Bengali", serif; }
.rep-position { color: var(--gold); font-weight: 700; }
.rep-ward { color: var(--muted); font-size: 15px; }
.rep-card p { margin: 6px 16px 0; white-space: pre-line; }
.rep-phone a { font-weight: 700; text-decoration: none; }

/* ---------- gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item {
  position: relative; border-radius: 12px; overflow: hidden; cursor: pointer;
  aspect-ratio: 4 / 3; background: var(--green-100);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-item span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72)); color: #fff;
  font-size: 14px; font-weight: 600;
}

/* ---------- members / youth ---------- */
.member-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .member-grid { grid-template-columns: repeat(4, 1fr); } }
.member-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 12px; text-align: center; box-shadow: var(--shadow-sm);
}
.member-card img {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
  background: var(--green-100); margin-bottom: 8px;
}
.member-card .avatar {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 8px;
  background: var(--green-100); color: var(--green-800); display: grid; place-items: center;
  font-size: 34px; font-weight: 700; font-family: "Noto Serif Bengali", serif;
}
.member-card h4 { margin: 0; font-size: 17px; }
.member-card p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.join-card {
  margin-top: 24px; background: linear-gradient(135deg, var(--green-800), var(--green-900));
  color: #fff; border-radius: var(--radius); padding: 24px; text-align: center;
}
.join-card h3 { margin: 0 0 6px; font-family: "Noto Serif Bengali", serif; font-size: 22px; }
.join-card p { opacity: 0.92; margin: 0 0 16px; }
.join-card .btn { background: #fff; color: var(--green-800); box-shadow: none; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm);
}
.contact-card h3 { margin: 0 0 10px; color: var(--green-800); font-family: "Noto Serif Bengali", serif; }
.emergency-list { list-style: none; margin: 0; padding: 0; }
.emergency-list li {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px dashed var(--line);
}
.emergency-list li:last-child { border-bottom: none; }
.emergency-list .em-name { font-weight: 600; }
.emergency-list .em-desc { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.emergency-list a { font-weight: 700; text-decoration: none; font-size: 18px; white-space: nowrap; }

/* ---------- forms ---------- */
.form-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.form-card label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.form-card input, .form-card textarea {
  display: block; width: 100%; margin-top: 6px; font-family: inherit; font-size: 16px;
  padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.form-card input:focus, .form-card textarea:focus { outline: 2px solid var(--green-600); border-color: transparent; }
.msg { padding: 10px 14px; border-radius: 10px; font-weight: 600; margin: 0 0 12px; }
.msg-info { background: var(--green-50); color: var(--green-800); }
.msg-ok { background: var(--green-100); color: var(--green-800); }
.msg-error { background: #fef2f2; color: #991b1b; }

/* ---------- footer ---------- */
.footer { background: var(--green-900); color: rgba(255, 255, 255, 0.9); padding: 30px 0; text-align: center; }
.footer-text { font-family: "Noto Serif Bengali", serif; font-size: 19px; margin: 0; color: #fff; }
.footer-note { margin: 4px 0 0; font-size: 14px; opacity: 0.8; }
.footer-admin { margin: 14px 0 0; font-size: 13px; }
.footer-admin a { color: rgba(255, 255, 255, 0.6); }

/* ---------- lightbox / reader ---------- */
.lightbox, .reader {
  position: fixed; inset: 0; z-index: 100; background: rgba(10, 25, 16, 0.88);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px;
}
.lightbox img { max-width: 96vw; max-height: 80vh; border-radius: 12px; }
.lightbox p { color: #fff; margin: 12px 0 0; font-weight: 600; }
.lightbox-close, .reader-close {
  position: absolute; top: 14px; right: 14px; background: #fff; border: none;
  width: 40px; height: 40px; border-radius: 50%; font-size: 18px; cursor: pointer;
}
.reader-card {
  background: var(--paper); border-radius: var(--radius); max-width: 680px; width: 100%;
  max-height: 88vh; overflow-y: auto; padding: 28px; position: relative;
}
.reader-meta { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
.reader-card h3 { font-family: "Noto Serif Bengali", serif; font-size: 24px; margin: 0 0 12px; line-height: 1.5; }
.reader-img { width: 100%; border-radius: 12px; margin-bottom: 14px; }
.reader-body { white-space: pre-line; font-size: 17px; }

/* ---------- account ---------- */
.auth-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.auth-tabs button {
  flex: 1; font-family: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
  background: var(--green-50); border: 1px solid var(--line); border-radius: 10px; padding: 10px;
}
.auth-tabs button.active { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.citizen-id {
  font-size: 28px; font-weight: 700; color: var(--green-800); text-align: center;
  background: var(--green-50); border: 2px dashed var(--green-600); border-radius: 12px;
  padding: 12px; margin: 8px 0; letter-spacing: 2px;
}
.account-card {
  background: linear-gradient(135deg, var(--green-800), var(--green-900)); color: #fff;
  border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.account-card h3 { margin: 0; color: #fff; font-family: "Noto Serif Bengali", serif; font-size: 20px; }
.account-card .muted { color: rgba(255, 255, 255, 0.85); margin: 2px 0 0; }
.account-card .btn-danger-outline { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.role-badge {
  display: inline-block; background: var(--gold-light); color: var(--gold);
  font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; margin-left: 6px;
}
.form-card h3 { font-family: "Noto Serif Bengali", serif; color: var(--green-800); margin: 0 0 4px; font-size: 20px; }
.form-card select {
  display: block; width: 100%; margin-top: 6px; font-family: inherit; font-size: 16px;
  padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.btn-outline-green { background: transparent; color: var(--green-700); border: 2px solid var(--green-700); }
.btn-danger-outline { background: transparent; color: #991b1b; border: 2px solid #991b1b; }
.btn-small { padding: 6px 12px; font-size: 14px; }
.progress { font-size: 14px; color: var(--muted); }
.media-picked { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
.media-picked .picked {
  position: relative; width: 96px; height: 72px; border-radius: 10px; overflow: hidden;
  background: var(--green-100); border: 1px solid var(--line);
}
.media-picked .picked img, .media-picked .picked video { width: 100%; height: 100%; object-fit: cover; }
.media-picked .picked button {
  position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border: none;
  border-radius: 50%; background: rgba(0, 0, 0, 0.7); color: #fff; cursor: pointer; font-size: 12px;
}
.media-picked .picked .vid-tag {
  position: absolute; bottom: 2px; left: 4px; background: rgba(0, 0, 0, 0.7); color: #fff;
  font-size: 11px; padding: 1px 6px; border-radius: 999px;
}
.sub-item {
  border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px;
  background: #fff;
}
.sub-item h4 { margin: 0 0 4px; font-size: 17px; }
.sub-item small { color: var(--muted); display: block; }
.sub-item p { margin: 6px 0 0; white-space: pre-line; font-size: 15px; }
.status-badge {
  display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px;
  border-radius: 999px; margin-left: 6px;
}
.status-pending { background: #fef3c7; color: #92400e; }
.status-approved { background: var(--green-100); color: var(--green-800); }
.status-rejected { background: #fee2e2; color: #991b1b; }
.sub-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* ---------- media on public items ---------- */
.media-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.media-row img, .media-row video {
  width: 120px; height: 90px; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--line); background: var(--green-100); cursor: pointer;
}
.media-row video { cursor: default; }
.reader-media { display: grid; gap: 10px; margin-bottom: 14px; }
.reader-media img, .reader-media video { width: 100%; border-radius: 12px; }
.event-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; background: var(--green-100); }
.inst-thumb { width: 100%; height: 170px; object-fit: cover; border-radius: 12px; margin-bottom: 10px; background: var(--green-100); }

.empty { color: var(--muted); background: var(--paper); border: 1px dashed var(--line); border-radius: 12px; padding: 22px; text-align: center; }

/* ---------- new sections: donors, lost & found, announcements, shops ---------- */
.donor-grid, .lf-grid, .ann-grid {
  display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.donor-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px;
  position: relative; box-shadow: var(--shadow);
}
.donor-card.unavailable { opacity: .72; }
.donor-card h3 { margin: 0 0 6px; font-size: 18px; padding-right: 52px; }
.donor-card p { margin: 4px 0; font-size: 14px; color: var(--muted); }
.donor-card .donor-phone a { color: var(--green-700); font-weight: 700; font-size: 15px; }
.blood-badge {
  position: absolute; top: 14px; right: 14px; background: #dc2626; color: #fff;
  font-weight: 800; font-size: 14px; padding: 5px 11px; border-radius: 999px;
}
.avail-badge { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.avail-badge.on { background: var(--green-100); color: var(--green-800); }
.avail-badge.off { background: #fee2e2; color: #991b1b; }

.lf-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px;
  box-shadow: var(--shadow);
}
.lf-card.resolved { opacity: .75; }
.lf-card h3 { margin: 8px 0 4px; font-size: 18px; }
.lf-card .lf-meta { margin: 0; color: var(--muted); font-size: 13px; }
.lf-card .desc { white-space: pre-line; font-size: 15px; margin: 8px 0 0; }
.lf-card .lf-phone a { color: var(--green-700); font-weight: 700; }
.lf-badge { font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 999px; }
.lf-badge.lost { background: #fee2e2; color: #991b1b; }
.lf-badge.found { background: var(--green-100); color: var(--green-800); }
.lf-badge.resolved-badge { background: #dbeafe; color: #1e40af; margin-left: 6px; }

.ann-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px;
  box-shadow: var(--shadow);
}
.ann-card.condolence { background: #f8fafc; border-color: #e2e8f0; }
.ann-card.condolence h3 { color: #475569; }
.ann-card h3 { margin: 8px 0 4px; font-size: 18px; }
.ann-card .ann-meta { margin: 0; color: var(--muted); font-size: 13px; }
.ann-card .ann-janaza, .ann-card .ann-ach { font-size: 15px; margin: 8px 0 0; white-space: pre-line; }
.ann-badge { font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 999px; }
.ann-badge.cond { background: #e2e8f0; color: #334155; }
.ann-badge.cong { background: #fef3c7; color: #92400e; }
